]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
dd2f258499c13483941e0b60f6b018327db6697e
[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 TRUEPRG
805 FALSEPRG
806 VERSION
807 DATE
808 LSMDATE
809 BACULA
810 post_host
811 CC
812 CFLAGS
813 LDFLAGS
814 CPPFLAGS
815 ac_ct_CC
816 EXEEXT
817 OBJEXT
818 CXX
819 CXXFLAGS
820 ac_ct_CXX
821 CPP
822 GREP
823 EGREP
824 INSTALL_PROGRAM
825 INSTALL_SCRIPT
826 INSTALL_DATA
827 MV
828 REMOVE
829 CP
830 SED
831 ECHO
832 CMP
833 TBL
834 AR
835 OPENSSL
836 MTX
837 DD
838 MKISOFS
839 PYTHON
840 GROWISOFS
841 DVDRWMEDIAINFO
842 DVDRWFORMAT
843 PKGCONFIG
844 QMAKE
845 QMAKEQT4
846 WXCONFIG
847 WXFLAGS
848 CDRECORD
849 PIDOF
850 AWK
851 ARFLAGS
852 MAKE_SHELL
853 LOCAL_LIBS
854 LOCAL_CFLAGS
855 LOCAL_LDFLAGS
856 LOCAL_DEFS
857 LIBTOOL
858 build
859 build_cpu
860 build_vendor
861 build_os
862 host
863 host_cpu
864 host_vendor
865 host_os
866 FGREP
867 LD
868 DUMPBIN
869 ac_ct_DUMPBIN
870 NM
871 LN_S
872 OBJDUMP
873 STRIP
874 RANLIB
875 lt_ECHO
876 DSYMUTIL
877 NMEDIT
878 LIPO
879 OTOOL
880 OTOOL64
881 CXXCPP
882 DEFAULT_OBJECT_TYPE
883 DEFAULT_ARCHIVE_TYPE
884 DEFAULT_SHARED_OBJECT_TYPE
885 LIBTOOL_INSTALL_TARGET
886 LIBTOOL_UNINSTALL_TARGET
887 LIBTOOL_CLEAN_TARGET
888 QMAKE_LIBTOOL
889 INCLUDE_INSTALL_TARGET
890 INCLUDE_UNINSTALL_TARGET
891 HAVE_SUN_OS_TRUE
892 HAVE_SUN_OS_FALSE
893 HAVE_OSF1_OS_TRUE
894 HAVE_OSF1_OS_FALSE
895 HAVE_AIX_OS_TRUE
896 HAVE_AIX_OS_FALSE
897 HAVE_HPUX_OS_TRUE
898 HAVE_HPUX_OS_FALSE
899 HAVE_LINUX_OS_TRUE
900 HAVE_LINUX_OS_FALSE
901 HAVE_FREEBSD_OS_TRUE
902 HAVE_FREEBSD_OS_FALSE
903 HAVE_NETBSD_OS_TRUE
904 HAVE_NETBSD_OS_FALSE
905 HAVE_OPENBSD_OS_TRUE
906 HAVE_OPENBSD_OS_FALSE
907 HAVE_BSDI_OS_TRUE
908 HAVE_BSDI_OS_FALSE
909 HAVE_SGI_OS_TRUE
910 HAVE_SGI_OS_FALSE
911 HAVE_IRIX_OS_TRUE
912 HAVE_IRIX_OS_FALSE
913 HAVE_DARWIN_OS_TRUE
914 HAVE_DARWIN_OS_FALSE
915 SET_MAKE
916 MKINSTALLDIRS
917 USE_NLS
918 MSGFMT
919 GMSGFMT
920 XGETTEXT
921 MSGMERGE
922 INTL_MACOSX_LIBS
923 LIBICONV
924 LTLIBICONV
925 INTLLIBS
926 LIBINTL
927 LTLIBINTL
928 POSUB
929 GLIBC2
930 ALLOCA
931 GLIBC21
932 HAVE_POSIX_PRINTF
933 HAVE_ASPRINTF
934 HAVE_SNPRINTF
935 HAVE_WPRINTF
936 INTLBISON
937 BUILD_INCLUDED_LIBINTL
938 USE_INCLUDED_LIBINTL
939 CATOBJEXT
940 DATADIRNAME
941 INSTOBJEXT
942 GENCAT
943 INTLOBJS
944 INTL_LIBTOOL_SUFFIX_PREFIX
945 GNOME_INCLUDEDIR
946 GNOMEUI_LIBS
947 GNOME_LIBDIR
948 GNOME_LIBS
949 GNOME_DIR
950 BAT_DIR
951 QWT_INC
952 QWT_LDFLAGS
953 QWT_LIB
954 QWT
955 WXCONS_CPPFLAGS
956 WXCONS_LDFLAGS
957 WX_DIR
958 TRAY_MONITOR_CPPFLAGS
959 TRAY_MONITOR_LDFLAGS
960 TRAY_MONITOR_DIR
961 TTOOL_LDFLAGS
962 STATIC_FD
963 STATIC_SD
964 STATIC_DIR
965 STATIC_CONS
966 STATIC_GNOME_CONS
967 STATIC_WX_CONS
968 ALL_DIRS
969 DIRD_DIR
970 DIR_TOOLS
971 STORED_DIR
972 CONS_INC
973 CONS_OBJ
974 CONS_SRC
975 CONS_LIBS
976 CONS_LDFLAGS
977 READLINE_SRC
978 PYTHON_LIBS
979 PYTHON_INCDIR
980 OPENSSL_LIBS
981 OPENSSL_INC
982 working_dir
983 archivedir
984 scriptdir
985 plugindir
986 dump_email
987 job_email
988 smtp_host
989 piddir
990 subsysdir
991 baseport
992 dir_port
993 fd_port
994 sd_port
995 dir_password
996 fd_password
997 sd_password
998 mon_dir_password
999 mon_fd_password
1000 mon_sd_password
1001 db_name
1002 db_user
1003 db_password
1004 db_port
1005 dir_user
1006 dir_group
1007 sd_user
1008 sd_group
1009 fd_user
1010 fd_group
1011 SBINPERM
1012 SQL_LFLAGS
1013 SQL_INCLUDE
1014 SQL_BINDIR
1015 DBI_DBD_DRIVERDIR
1016 uncomment_dbi
1017 DB_PROG
1018 DB_PROG_LIB
1019 cats
1020 DB_TYPE
1021 GETCONF
1022 XMKMF
1023 X_CFLAGS
1024 X_PRE_LIBS
1025 X_LIBS
1026 X_EXTRA_LIBS
1027 LIBOBJS
1028 FDLIBS
1029 DEBUG
1030 DINCLUDE
1031 DLIB
1032 DB_LIBS
1033 WCFLAGS
1034 WLDFLAGS
1035 WRAPLIBS
1036 OBJLIST
1037 hostname
1038 TAPEDRIVE
1039 PSCMD
1040 WIN32
1041 MACOSX
1042 DISTNAME
1043 DISTVER
1044 LTLIBOBJS'
1045 ac_subst_files='MCOMMON'
1046       ac_precious_vars='build_alias
1047 host_alias
1048 target_alias
1049 CC
1050 CFLAGS
1051 LDFLAGS
1052 LIBS
1053 CPPFLAGS
1054 CXX
1055 CXXFLAGS
1056 CCC
1057 CPP
1058 WXCONFIG
1059 WXFLAGS
1060 CXXCPP
1061 XMKMF'
1062
1063
1064 # Initialize some variables set by options.
1065 ac_init_help=
1066 ac_init_version=false
1067 # The variables have the same names as the options, with
1068 # dashes changed to underlines.
1069 cache_file=/dev/null
1070 exec_prefix=NONE
1071 no_create=
1072 no_recursion=
1073 prefix=NONE
1074 program_prefix=NONE
1075 program_suffix=NONE
1076 program_transform_name=s,x,x,
1077 silent=
1078 site=
1079 srcdir=
1080 verbose=
1081 x_includes=NONE
1082 x_libraries=NONE
1083
1084 # Installation directory options.
1085 # These are left unexpanded so users can "make install exec_prefix=/foo"
1086 # and all the variables that are supposed to be based on exec_prefix
1087 # by default will actually change.
1088 # Use braces instead of parens because sh, perl, etc. also accept them.
1089 # (The list follows the same order as the GNU Coding Standards.)
1090 bindir='${exec_prefix}/bin'
1091 sbindir='${exec_prefix}/sbin'
1092 libexecdir='${exec_prefix}/libexec'
1093 datarootdir='${prefix}/share'
1094 datadir='${datarootdir}'
1095 sysconfdir='${prefix}/etc'
1096 sharedstatedir='${prefix}/com'
1097 localstatedir='${prefix}/var'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE}'
1101 infodir='${datarootdir}/info'
1102 htmldir='${docdir}'
1103 dvidir='${docdir}'
1104 pdfdir='${docdir}'
1105 psdir='${docdir}'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1109
1110 ac_prev=
1111 ac_dashdash=
1112 for ac_option
1113 do
1114   # If the previous option needs an argument, assign it.
1115   if test -n "$ac_prev"; then
1116     eval $ac_prev=\$ac_option
1117     ac_prev=
1118     continue
1119   fi
1120
1121   case $ac_option in
1122   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1123   *)    ac_optarg=yes ;;
1124   esac
1125
1126   # Accept the important Cygnus configure options, so we can diagnose typos.
1127
1128   case $ac_dashdash$ac_option in
1129   --)
1130     ac_dashdash=yes ;;
1131
1132   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1133     ac_prev=bindir ;;
1134   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135     bindir=$ac_optarg ;;
1136
1137   -build | --build | --buil | --bui | --bu)
1138     ac_prev=build_alias ;;
1139   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140     build_alias=$ac_optarg ;;
1141
1142   -cache-file | --cache-file | --cache-fil | --cache-fi \
1143   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144     ac_prev=cache_file ;;
1145   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147     cache_file=$ac_optarg ;;
1148
1149   --config-cache | -C)
1150     cache_file=config.cache ;;
1151
1152   -datadir | --datadir | --datadi | --datad)
1153     ac_prev=datadir ;;
1154   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155     datadir=$ac_optarg ;;
1156
1157   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158   | --dataroo | --dataro | --datar)
1159     ac_prev=datarootdir ;;
1160   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162     datarootdir=$ac_optarg ;;
1163
1164   -disable-* | --disable-*)
1165     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1169    { (exit 1); exit 1; }; }
1170     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1171     eval enable_$ac_feature=no ;;
1172
1173   -docdir | --docdir | --docdi | --doc | --do)
1174     ac_prev=docdir ;;
1175   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1176     docdir=$ac_optarg ;;
1177
1178   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1179     ac_prev=dvidir ;;
1180   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1181     dvidir=$ac_optarg ;;
1182
1183   -enable-* | --enable-*)
1184     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1185     # Reject names that are not valid shell variable names.
1186     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1188    { (exit 1); exit 1; }; }
1189     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1190     eval enable_$ac_feature=\$ac_optarg ;;
1191
1192   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1193   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1194   | --exec | --exe | --ex)
1195     ac_prev=exec_prefix ;;
1196   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1197   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1198   | --exec=* | --exe=* | --ex=*)
1199     exec_prefix=$ac_optarg ;;
1200
1201   -gas | --gas | --ga | --g)
1202     # Obsolete; use --with-gas.
1203     with_gas=yes ;;
1204
1205   -help | --help | --hel | --he | -h)
1206     ac_init_help=long ;;
1207   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1208     ac_init_help=recursive ;;
1209   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1210     ac_init_help=short ;;
1211
1212   -host | --host | --hos | --ho)
1213     ac_prev=host_alias ;;
1214   -host=* | --host=* | --hos=* | --ho=*)
1215     host_alias=$ac_optarg ;;
1216
1217   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1218     ac_prev=htmldir ;;
1219   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1220   | --ht=*)
1221     htmldir=$ac_optarg ;;
1222
1223   -includedir | --includedir | --includedi | --included | --include \
1224   | --includ | --inclu | --incl | --inc)
1225     ac_prev=includedir ;;
1226   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1227   | --includ=* | --inclu=* | --incl=* | --inc=*)
1228     includedir=$ac_optarg ;;
1229
1230   -infodir | --infodir | --infodi | --infod | --info | --inf)
1231     ac_prev=infodir ;;
1232   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1233     infodir=$ac_optarg ;;
1234
1235   -libdir | --libdir | --libdi | --libd)
1236     ac_prev=libdir ;;
1237   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1238     libdir=$ac_optarg ;;
1239
1240   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1241   | --libexe | --libex | --libe)
1242     ac_prev=libexecdir ;;
1243   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1244   | --libexe=* | --libex=* | --libe=*)
1245     libexecdir=$ac_optarg ;;
1246
1247   -localedir | --localedir | --localedi | --localed | --locale)
1248     ac_prev=localedir ;;
1249   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1250     localedir=$ac_optarg ;;
1251
1252   -localstatedir | --localstatedir | --localstatedi | --localstated \
1253   | --localstate | --localstat | --localsta | --localst | --locals)
1254     ac_prev=localstatedir ;;
1255   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1256   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1257     localstatedir=$ac_optarg ;;
1258
1259   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1260     ac_prev=mandir ;;
1261   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1262     mandir=$ac_optarg ;;
1263
1264   -nfp | --nfp | --nf)
1265     # Obsolete; use --without-fp.
1266     with_fp=no ;;
1267
1268   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1269   | --no-cr | --no-c | -n)
1270     no_create=yes ;;
1271
1272   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1273   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1274     no_recursion=yes ;;
1275
1276   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1277   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1278   | --oldin | --oldi | --old | --ol | --o)
1279     ac_prev=oldincludedir ;;
1280   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1281   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1282   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1283     oldincludedir=$ac_optarg ;;
1284
1285   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1286     ac_prev=prefix ;;
1287   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1288     prefix=$ac_optarg ;;
1289
1290   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1291   | --program-pre | --program-pr | --program-p)
1292     ac_prev=program_prefix ;;
1293   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1294   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1295     program_prefix=$ac_optarg ;;
1296
1297   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1298   | --program-suf | --program-su | --program-s)
1299     ac_prev=program_suffix ;;
1300   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1301   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1302     program_suffix=$ac_optarg ;;
1303
1304   -program-transform-name | --program-transform-name \
1305   | --program-transform-nam | --program-transform-na \
1306   | --program-transform-n | --program-transform- \
1307   | --program-transform | --program-transfor \
1308   | --program-transfo | --program-transf \
1309   | --program-trans | --program-tran \
1310   | --progr-tra | --program-tr | --program-t)
1311     ac_prev=program_transform_name ;;
1312   -program-transform-name=* | --program-transform-name=* \
1313   | --program-transform-nam=* | --program-transform-na=* \
1314   | --program-transform-n=* | --program-transform-=* \
1315   | --program-transform=* | --program-transfor=* \
1316   | --program-transfo=* | --program-transf=* \
1317   | --program-trans=* | --program-tran=* \
1318   | --progr-tra=* | --program-tr=* | --program-t=*)
1319     program_transform_name=$ac_optarg ;;
1320
1321   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1322     ac_prev=pdfdir ;;
1323   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1324     pdfdir=$ac_optarg ;;
1325
1326   -psdir | --psdir | --psdi | --psd | --ps)
1327     ac_prev=psdir ;;
1328   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1329     psdir=$ac_optarg ;;
1330
1331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332   | -silent | --silent | --silen | --sile | --sil)
1333     silent=yes ;;
1334
1335   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1336     ac_prev=sbindir ;;
1337   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1338   | --sbi=* | --sb=*)
1339     sbindir=$ac_optarg ;;
1340
1341   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1342   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1343   | --sharedst | --shareds | --shared | --share | --shar \
1344   | --sha | --sh)
1345     ac_prev=sharedstatedir ;;
1346   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1347   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1348   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1349   | --sha=* | --sh=*)
1350     sharedstatedir=$ac_optarg ;;
1351
1352   -site | --site | --sit)
1353     ac_prev=site ;;
1354   -site=* | --site=* | --sit=*)
1355     site=$ac_optarg ;;
1356
1357   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1358     ac_prev=srcdir ;;
1359   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1360     srcdir=$ac_optarg ;;
1361
1362   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1363   | --syscon | --sysco | --sysc | --sys | --sy)
1364     ac_prev=sysconfdir ;;
1365   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1366   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1367     sysconfdir=$ac_optarg ;;
1368
1369   -target | --target | --targe | --targ | --tar | --ta | --t)
1370     ac_prev=target_alias ;;
1371   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1372     target_alias=$ac_optarg ;;
1373
1374   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1375     verbose=yes ;;
1376
1377   -version | --version | --versio | --versi | --vers | -V)
1378     ac_init_version=: ;;
1379
1380   -with-* | --with-*)
1381     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384       { echo "$as_me: error: invalid package name: $ac_package" >&2
1385    { (exit 1); exit 1; }; }
1386     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387     eval with_$ac_package=\$ac_optarg ;;
1388
1389   -without-* | --without-*)
1390     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391     # Reject names that are not valid shell variable names.
1392     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393       { echo "$as_me: error: invalid package name: $ac_package" >&2
1394    { (exit 1); exit 1; }; }
1395     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1396     eval with_$ac_package=no ;;
1397
1398   --x)
1399     # Obsolete; use --with-x.
1400     with_x=yes ;;
1401
1402   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1403   | --x-incl | --x-inc | --x-in | --x-i)
1404     ac_prev=x_includes ;;
1405   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1406   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1407     x_includes=$ac_optarg ;;
1408
1409   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1410   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1411     ac_prev=x_libraries ;;
1412   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1413   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1414     x_libraries=$ac_optarg ;;
1415
1416   -*) { echo "$as_me: error: unrecognized option: $ac_option
1417 Try \`$0 --help' for more information." >&2
1418    { (exit 1); exit 1; }; }
1419     ;;
1420
1421   *=*)
1422     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423     # Reject names that are not valid shell variable names.
1424     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1425       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1426    { (exit 1); exit 1; }; }
1427     eval $ac_envvar=\$ac_optarg
1428     export $ac_envvar ;;
1429
1430   *)
1431     # FIXME: should be removed in autoconf 3.0.
1432     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1433     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1434       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1435     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1436     ;;
1437
1438   esac
1439 done
1440
1441 if test -n "$ac_prev"; then
1442   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1443   { echo "$as_me: error: missing argument to $ac_option" >&2
1444    { (exit 1); exit 1; }; }
1445 fi
1446
1447 # Be sure to have absolute directory names.
1448 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449                 datadir sysconfdir sharedstatedir localstatedir includedir \
1450                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451                 libdir localedir mandir
1452 do
1453   eval ac_val=\$$ac_var
1454   case $ac_val in
1455     [\\/$]* | ?:[\\/]* )  continue;;
1456     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1457   esac
1458   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1459    { (exit 1); exit 1; }; }
1460 done
1461
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1465 build=$build_alias
1466 host=$host_alias
1467 target=$target_alias
1468
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471   if test "x$build_alias" = x; then
1472     cross_compiling=maybe
1473     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1474     If a cross compiler is detected then cross compile mode will be used." >&2
1475   elif test "x$build_alias" != "x$host_alias"; then
1476     cross_compiling=yes
1477   fi
1478 fi
1479
1480 ac_tool_prefix=
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1482
1483 test "$silent" = yes && exec 6>/dev/null
1484
1485
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489   { echo "$as_me: error: Working directory cannot be determined" >&2
1490    { (exit 1); exit 1; }; }
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492   { echo "$as_me: error: pwd does not report name of working directory" >&2
1493    { (exit 1); exit 1; }; }
1494
1495
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498   ac_srcdir_defaulted=yes
1499   # Try the directory containing this script, then the parent directory.
1500   ac_confdir=`$as_dirname -- "$0" ||
1501 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502          X"$0" : 'X\(//\)[^/]' \| \
1503          X"$0" : 'X\(//\)$' \| \
1504          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1505 echo X"$0" |
1506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)[^/].*/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)$/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\).*/{
1519             s//\1/
1520             q
1521           }
1522           s/.*/./; q'`
1523   srcdir=$ac_confdir
1524   if test ! -r "$srcdir/$ac_unique_file"; then
1525     srcdir=..
1526   fi
1527 else
1528   ac_srcdir_defaulted=no
1529 fi
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1533    { (exit 1); exit 1; }; }
1534 fi
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 ac_abs_confdir=`(
1537         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1538    { (exit 1); exit 1; }; }
1539         pwd)`
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1542   srcdir=.
1543 fi
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1547 case $srcdir in
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1549 esac
1550 for ac_var in $ac_precious_vars; do
1551   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_env_${ac_var}_value=\$${ac_var}
1553   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1555 done
1556
1557 #
1558 # Report the --help message.
1559 #
1560 if test "$ac_init_help" = "long"; then
1561   # Omit some internal or obsolete options to make the list less imposing.
1562   # This message is too long to be a string in the A/UX 3.1 sh.
1563   cat <<_ACEOF
1564 \`configure' configures this package to adapt to many kinds of systems.
1565
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1567
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE.  See below for descriptions of some of the useful variables.
1570
1571 Defaults for the options are specified in brackets.
1572
1573 Configuration:
1574   -h, --help              display this help and exit
1575       --help=short        display options specific to this package
1576       --help=recursive    display the short help of all the included packages
1577   -V, --version           display version information and exit
1578   -q, --quiet, --silent   do not print \`checking...' messages
1579       --cache-file=FILE   cache test results in FILE [disabled]
1580   -C, --config-cache      alias for \`--cache-file=config.cache'
1581   -n, --no-create         do not create output files
1582       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1583
1584 Installation directories:
1585   --prefix=PREFIX         install architecture-independent files in PREFIX
1586                           [$ac_default_prefix]
1587   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1588                           [PREFIX]
1589
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1594
1595 For better control, use the options below.
1596
1597 Fine tuning of the installation directories:
1598   --bindir=DIR           user executables [EPREFIX/bin]
1599   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1600   --libexecdir=DIR       program executables [EPREFIX/libexec]
1601   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1602   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1603   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1604   --libdir=DIR           object code libraries [EPREFIX/lib]
1605   --includedir=DIR       C header files [PREFIX/include]
1606   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1607   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1608   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1609   --infodir=DIR          info documentation [DATAROOTDIR/info]
1610   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1611   --mandir=DIR           man documentation [DATAROOTDIR/man]
1612   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1613   --htmldir=DIR          html documentation [DOCDIR]
1614   --dvidir=DIR           dvi documentation [DOCDIR]
1615   --pdfdir=DIR           pdf documentation [DOCDIR]
1616   --psdir=DIR            ps documentation [DOCDIR]
1617 _ACEOF
1618
1619   cat <<\_ACEOF
1620
1621 X features:
1622   --x-includes=DIR    X include files are in DIR
1623   --x-libraries=DIR   X library files are in DIR
1624
1625 System types:
1626   --build=BUILD     configure for building on BUILD [guessed]
1627   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1628 _ACEOF
1629 fi
1630
1631 if test -n "$ac_init_help"; then
1632
1633   cat <<\_ACEOF
1634
1635 Optional Features:
1636   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1637   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1638   --enable-libtool        enable building using GNU libtool [default=yes]
1639   --enable-shared[=PKGS]  build shared libraries [default=yes]
1640   --enable-static[=PKGS]  build static libraries [default=no]
1641   --enable-fast-install[=PKGS]
1642                           optimize for fast installation [default=yes]
1643   --disable-libtool-lock  avoid locking (might break parallel builds)
1644   --enable-includes       enable installing of include files [default=yes]
1645   --disable-nls           do not use Native Language Support
1646   --disable-rpath         do not hardcode runtime library paths
1647   --enable-gnome          enable build of bgnome-console GUI [default=no]
1648   --enable-bat            enable build of bat Qt4 GUI [default=no]
1649   --enable-bwx-console    enable build of wxWidgets console [default=no]
1650   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1651                           KDE [default=no]
1652   --enable-smartalloc     enable smartalloc debugging support [default=no]
1653   --enable-static-tools   enable static tape tools [default=no]
1654   --enable-static-fd      enable static File daemon [default=no]
1655   --enable-static-sd      enable static Storage daemon [default=no]
1656   --enable-static-dir     enable static Director [default=no]
1657   --enable-static-cons    enable static Console [default=no]
1658   --enable-client-only    build client (File daemon) only [default=no]
1659   --enable-build-dird     enable building of dird (Director) [default=yes]
1660   --enable-build-stored   enable building of stored (Storage daemon)
1661                           [default=yes]
1662   --disable-conio         disable conio support [default=no]
1663   --enable-ipv6           enable ipv6 support [default=yes]
1664   --disable-readline      disable readline support [default=yes]
1665   --enable-batch-insert   enable the DB batch insert code [default=no]
1666   --disable-largefile     omit support for large files
1667
1668 Optional Packages:
1669   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1670   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1671   --with-pic              try to use only PIC/non-PIC objects [default=use
1672                           both]
1673   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1674   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1675   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1676   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1677   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1678   --without-libintl-prefix     don't search for libintl in includedir and libdir
1679   --with-included-gettext use the GNU gettext library included here
1680   --with-qwt[=DIR]        specify qwt library directory
1681   --with-readline[=DIR]   specify readline library directory
1682   --with-python[=DIR]     Include Python support. DIR is the Python base
1683                           install directory, default is to search through a
1684                           number of common places for the Python files.
1685   --with-tcp-wrappers[=DIR]
1686                           enable tcpwrappers support
1687   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1688   --with-working-dir=PATH specify path of Bacula working directory
1689   --with-archivedir=PATH  specify path of SD archive directory
1690   --with-scriptdir=PATH   specify path of Bacula scripts directory
1691   --with-plugindir=PATH   specify path of Bacula plugins directory
1692   --with-dump-email=EMAIL dump email address
1693   --with-job-email=EMAIL  job output email address
1694   --with-smtp-host=HOST   SMTP mail host address
1695   --with-pid-dir=PATH     specify location of Bacula pid files
1696   --with-subsys-dir=PATH  specify location of Bacula subsys file
1697   --with-baseport=PORT    specify base port address for daemons
1698   --with-dir-password=PASSWORD
1699                           specify Director's password
1700   --with-fd-password=PASSWORD
1701                           specify Client's password
1702   --with-sd-password=PASSWORD
1703                           specify Storage daemon's password
1704   --with-mon-dir-password=PASSWORD
1705                           specify Director's password used by the monitor
1706   --with-mon-fd-password=PASSWORD
1707                           specify Client's password used by the monitor
1708   --with-mon-sd-password=PASSWORD
1709                           specify Storage daemon's password used by the
1710                           monitor
1711   --with-db-name=DBNAME   specify database name [default=bacula]
1712   --with-db-user=UNAME    specify database user [default=bacula]
1713   --with-db-password=PWD  specify database password [default=*none*]
1714   --with-db-port=DBPORT   specify a database port [default=null]
1715   --with-dir-user=USER    specify user for Director daemon
1716   --with-dir-group=GROUP  specify group for Director daemon
1717   --with-sd-user=USER     specify user for Storage daemon
1718   --with-sd-group=GROUP   specify group for Storage daemon
1719   --with-fd-user=USER     specify user for File daemon
1720   --with-fd-group=GROUP   specify group for File daemon
1721   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1722   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1723                           base install directory, [default=/usr/local/pgsql]
1724   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1725                           directory, default is to search through a number of
1726                           common places for the MySQL files.
1727   --with-embedded-mysql[=DIR]
1728                           Include MySQL support. DIR is the MySQL base install
1729                           directory, default is to search through a number of
1730                           common places for the MySQL files.
1731   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1732                           install directory, default is to search through a
1733                           number of common places for the SQLite3 files.
1734   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1735                           install directory, default is to search through a
1736                           number of common places for the SQLite files.
1737   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1738                           directory, default is to search through a number of
1739                           common places for the DBI files.
1740   --with-dbi-driver[=DRIVER]
1741                           Suport for DBI driver. DRIVER is the one DBI driver
1742                           like Mysql, Postgresql, others. Default is to not
1743                           configure any driver.
1744   --with-x                use the X Window System
1745
1746 Some influential environment variables:
1747   CC          C compiler command
1748   CFLAGS      C compiler flags
1749   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1750               nonstandard directory <lib dir>
1751   LIBS        libraries to pass to the linker, e.g. -l<library>
1752   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1753               you have headers in a nonstandard directory <include dir>
1754   CXX         C++ compiler command
1755   CXXFLAGS    C++ compiler flags
1756   CPP         C preprocessor
1757   WXCONFIG    wx-config command. On some systems, you must set it to
1758               wx-config-2.6 to use wxWidgets 2.6.
1759   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1760   CXXCPP      C++ preprocessor
1761   XMKMF       Path to xmkmf, Makefile generator for X Window System
1762
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1765
1766 _ACEOF
1767 ac_status=$?
1768 fi
1769
1770 if test "$ac_init_help" = "recursive"; then
1771   # If there are subdirs, report their specific --help.
1772   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1773     test -d "$ac_dir" || continue
1774     ac_builddir=.
1775
1776 case "$ac_dir" in
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1778 *)
1779   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1780   # A ".." for each directory in $ac_dir_suffix.
1781   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1782   case $ac_top_builddir_sub in
1783   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785   esac ;;
1786 esac
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1791
1792 case $srcdir in
1793   .)  # We are building in place.
1794     ac_srcdir=.
1795     ac_top_srcdir=$ac_top_builddir_sub
1796     ac_abs_top_srcdir=$ac_pwd ;;
1797   [\\/]* | ?:[\\/]* )  # Absolute name.
1798     ac_srcdir=$srcdir$ac_dir_suffix;
1799     ac_top_srcdir=$srcdir
1800     ac_abs_top_srcdir=$srcdir ;;
1801   *) # Relative name.
1802     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803     ac_top_srcdir=$ac_top_build_prefix$srcdir
1804     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1805 esac
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1807
1808     cd "$ac_dir" || { ac_status=$?; continue; }
1809     # Check for guested configure.
1810     if test -f "$ac_srcdir/configure.gnu"; then
1811       echo &&
1812       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813     elif test -f "$ac_srcdir/configure"; then
1814       echo &&
1815       $SHELL "$ac_srcdir/configure" --help=recursive
1816     else
1817       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818     fi || ac_status=$?
1819     cd "$ac_pwd" || { ac_status=$?; break; }
1820   done
1821 fi
1822
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1825   cat <<\_ACEOF
1826 configure
1827 generated by GNU Autoconf 2.61
1828
1829 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1830 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1831 This configure script is free software; the Free Software Foundation
1832 gives unlimited permission to copy, distribute and modify it.
1833 _ACEOF
1834   exit
1835 fi
1836 cat >config.log <<_ACEOF
1837 This file contains any messages produced by compilers while
1838 running configure, to aid debugging if configure makes a mistake.
1839
1840 It was created by $as_me, which was
1841 generated by GNU Autoconf 2.61.  Invocation command line was
1842
1843   $ $0 $@
1844
1845 _ACEOF
1846 exec 5>>config.log
1847 {
1848 cat <<_ASUNAME
1849 ## --------- ##
1850 ## Platform. ##
1851 ## --------- ##
1852
1853 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1858
1859 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1861
1862 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1863 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1864 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1866 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1867 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1868 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1869
1870 _ASUNAME
1871
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875   IFS=$as_save_IFS
1876   test -z "$as_dir" && as_dir=.
1877   echo "PATH: $as_dir"
1878 done
1879 IFS=$as_save_IFS
1880
1881 } >&5
1882
1883 cat >&5 <<_ACEOF
1884
1885
1886 ## ----------- ##
1887 ## Core tests. ##
1888 ## ----------- ##
1889
1890 _ACEOF
1891
1892
1893 # Keep a trace of the command line.
1894 # Strip out --no-create and --no-recursion so they do not pile up.
1895 # Strip out --silent because we don't want to record it for future runs.
1896 # Also quote any args containing shell meta-characters.
1897 # Make two passes to allow for proper duplicate-argument suppression.
1898 ac_configure_args=
1899 ac_configure_args0=
1900 ac_configure_args1=
1901 ac_must_keep_next=false
1902 for ac_pass in 1 2
1903 do
1904   for ac_arg
1905   do
1906     case $ac_arg in
1907     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909     | -silent | --silent | --silen | --sile | --sil)
1910       continue ;;
1911     *\'*)
1912       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1913     esac
1914     case $ac_pass in
1915     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1916     2)
1917       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1918       if test $ac_must_keep_next = true; then
1919         ac_must_keep_next=false # Got value, back to normal.
1920       else
1921         case $ac_arg in
1922           *=* | --config-cache | -C | -disable-* | --disable-* \
1923           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925           | -with-* | --with-* | -without-* | --without-* | --x)
1926             case "$ac_configure_args0 " in
1927               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1928             esac
1929             ;;
1930           -* ) ac_must_keep_next=true ;;
1931         esac
1932       fi
1933       ac_configure_args="$ac_configure_args '$ac_arg'"
1934       ;;
1935     esac
1936   done
1937 done
1938 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1939 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1940
1941 # When interrupted or exit'd, cleanup temporary files, and complete
1942 # config.log.  We remove comments because anyway the quotes in there
1943 # would cause problems or look ugly.
1944 # WARNING: Use '\'' to represent an apostrophe within the trap.
1945 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946 trap 'exit_status=$?
1947   # Save into config.log some information that might help in debugging.
1948   {
1949     echo
1950
1951     cat <<\_ASBOX
1952 ## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##
1955 _ASBOX
1956     echo
1957     # The following way of writing the cache mishandles newlines in values,
1958 (
1959   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960     eval ac_val=\$$ac_var
1961     case $ac_val in #(
1962     *${as_nl}*)
1963       case $ac_var in #(
1964       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1965 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1966       esac
1967       case $ac_var in #(
1968       _ | IFS | as_nl) ;; #(
1969       *) $as_unset $ac_var ;;
1970       esac ;;
1971     esac
1972   done
1973   (set) 2>&1 |
1974     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975     *${as_nl}ac_space=\ *)
1976       sed -n \
1977         "s/'\''/'\''\\\\'\'''\''/g;
1978           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979       ;; #(
1980     *)
1981       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1982       ;;
1983     esac |
1984     sort
1985 )
1986     echo
1987
1988     cat <<\_ASBOX
1989 ## ----------------- ##
1990 ## Output variables. ##
1991 ## ----------------- ##
1992 _ASBOX
1993     echo
1994     for ac_var in $ac_subst_vars
1995     do
1996       eval ac_val=\$$ac_var
1997       case $ac_val in
1998       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999       esac
2000       echo "$ac_var='\''$ac_val'\''"
2001     done | sort
2002     echo
2003
2004     if test -n "$ac_subst_files"; then
2005       cat <<\_ASBOX
2006 ## ------------------- ##
2007 ## File substitutions. ##
2008 ## ------------------- ##
2009 _ASBOX
2010       echo
2011       for ac_var in $ac_subst_files
2012       do
2013         eval ac_val=\$$ac_var
2014         case $ac_val in
2015         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2016         esac
2017         echo "$ac_var='\''$ac_val'\''"
2018       done | sort
2019       echo
2020     fi
2021
2022     if test -s confdefs.h; then
2023       cat <<\_ASBOX
2024 ## ----------- ##
2025 ## confdefs.h. ##
2026 ## ----------- ##
2027 _ASBOX
2028       echo
2029       cat confdefs.h
2030       echo
2031     fi
2032     test "$ac_signal" != 0 &&
2033       echo "$as_me: caught signal $ac_signal"
2034     echo "$as_me: exit $exit_status"
2035   } >&5
2036   rm -f core *.core core.conftest.* &&
2037     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2038     exit $exit_status
2039 ' 0
2040 for ac_signal in 1 2 13 15; do
2041   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2042 done
2043 ac_signal=0
2044
2045 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2046 rm -f -r conftest* confdefs.h
2047
2048 # Predefined preprocessor variables.
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_NAME "$PACKAGE_NAME"
2052 _ACEOF
2053
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2057 _ACEOF
2058
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2062 _ACEOF
2063
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_STRING "$PACKAGE_STRING"
2067 _ACEOF
2068
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2072 _ACEOF
2073
2074
2075 # Let the site file select an alternate cache file if it wants to.
2076 # Prefer explicitly selected file to automatically selected ones.
2077 if test -n "$CONFIG_SITE"; then
2078   set x "$CONFIG_SITE"
2079 elif test "x$prefix" != xNONE; then
2080   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2081 else
2082   set x "$ac_default_prefix/share/config.site" \
2083         "$ac_default_prefix/etc/config.site"
2084 fi
2085 shift
2086 for ac_site_file
2087 do
2088   if test -r "$ac_site_file"; then
2089     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2090 echo "$as_me: loading site script $ac_site_file" >&6;}
2091     sed 's/^/| /' "$ac_site_file" >&5
2092     . "$ac_site_file"
2093   fi
2094 done
2095
2096 if test -r "$cache_file"; then
2097   # Some versions of bash will fail to source /dev/null (special
2098   # files actually), so we avoid doing that.
2099   if test -f "$cache_file"; then
2100     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2101 echo "$as_me: loading cache $cache_file" >&6;}
2102     case $cache_file in
2103       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104       *)                      . "./$cache_file";;
2105     esac
2106   fi
2107 else
2108   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2109 echo "$as_me: creating cache $cache_file" >&6;}
2110   >$cache_file
2111 fi
2112
2113 # Check that the precious variables saved in the cache have kept the same
2114 # value.
2115 ac_cache_corrupted=false
2116 for ac_var in $ac_precious_vars; do
2117   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2118   eval ac_new_set=\$ac_env_${ac_var}_set
2119   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2120   eval ac_new_val=\$ac_env_${ac_var}_value
2121   case $ac_old_set,$ac_new_set in
2122     set,)
2123       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2124 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2125       ac_cache_corrupted=: ;;
2126     ,set)
2127       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2128 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2129       ac_cache_corrupted=: ;;
2130     ,);;
2131     *)
2132       if test "x$ac_old_val" != "x$ac_new_val"; then
2133         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2134 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2135         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2136 echo "$as_me:   former value:  $ac_old_val" >&2;}
2137         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2138 echo "$as_me:   current value: $ac_new_val" >&2;}
2139         ac_cache_corrupted=:
2140       fi;;
2141   esac
2142   # Pass precious variables to config.status.
2143   if test "$ac_new_set" = set; then
2144     case $ac_new_val in
2145     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2146     *) ac_arg=$ac_var=$ac_new_val ;;
2147     esac
2148     case " $ac_configure_args " in
2149       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2150       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2151     esac
2152   fi
2153 done
2154 if $ac_cache_corrupted; then
2155   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2156 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2158 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2159    { (exit 1); exit 1; }; }
2160 fi
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178 ac_ext=c
2179 ac_cpp='$CPP $CPPFLAGS'
2180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2183
2184
2185 BUILD_DIR=`pwd`
2186 cd ..
2187 TOP_DIR=`pwd`
2188 cd ${BUILD_DIR}
2189
2190
2191 ac_aux_dir=
2192 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2193   if test -f "$ac_dir/install-sh"; then
2194     ac_aux_dir=$ac_dir
2195     ac_install_sh="$ac_aux_dir/install-sh -c"
2196     break
2197   elif test -f "$ac_dir/install.sh"; then
2198     ac_aux_dir=$ac_dir
2199     ac_install_sh="$ac_aux_dir/install.sh -c"
2200     break
2201   elif test -f "$ac_dir/shtool"; then
2202     ac_aux_dir=$ac_dir
2203     ac_install_sh="$ac_aux_dir/shtool install -c"
2204     break
2205   fi
2206 done
2207 if test -z "$ac_aux_dir"; then
2208   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2209 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2210    { (exit 1); exit 1; }; }
2211 fi
2212
2213 # These three variables are undocumented and unsupported,
2214 # and are intended to be withdrawn in a future Autoconf release.
2215 # They can cause serious problems if a builder's source tree is in a directory
2216 # whose full name contains unusual characters.
2217 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2218 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2219 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2220
2221
2222 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2223
2224
2225
2226
2227 for ac_prog in true
2228 do
2229   # Extract the first word of "$ac_prog", so it can be a program name with args.
2230 set dummy $ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   case $TRUEPRG in
2237   [\\/]* | ?:[\\/]*)
2238   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2239   ;;
2240   *)
2241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246   for ac_exec_ext in '' $ac_executable_extensions; do
2247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2248     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250     break 2
2251   fi
2252 done
2253 done
2254 IFS=$as_save_IFS
2255
2256   ;;
2257 esac
2258 fi
2259 TRUEPRG=$ac_cv_path_TRUEPRG
2260 if test -n "$TRUEPRG"; then
2261   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2262 echo "${ECHO_T}$TRUEPRG" >&6; }
2263 else
2264   { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2266 fi
2267
2268
2269   test -n "$TRUEPRG" && break
2270 done
2271 test -n "$TRUEPRG" || TRUEPRG=":"
2272
2273 for ac_prog in false
2274 do
2275   # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   case $FALSEPRG in
2283   [\\/]* | ?:[\\/]*)
2284   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2285   ;;
2286   *)
2287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290   IFS=$as_save_IFS
2291   test -z "$as_dir" && as_dir=.
2292   for ac_exec_ext in '' $ac_executable_extensions; do
2293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2294     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296     break 2
2297   fi
2298 done
2299 done
2300 IFS=$as_save_IFS
2301
2302   ;;
2303 esac
2304 fi
2305 FALSEPRG=$ac_cv_path_FALSEPRG
2306 if test -n "$FALSEPRG"; then
2307   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2308 echo "${ECHO_T}$FALSEPRG" >&6; }
2309 else
2310   { echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6; }
2312 fi
2313
2314
2315   test -n "$FALSEPRG" && break
2316 done
2317 test -n "$FALSEPRG" || FALSEPRG=":"
2318
2319
2320 post_host=
2321 if test "x$BACULA" != x; then
2322    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2323 fi
2324 BACULA=${BACULA-Bacula}
2325 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2326 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2327 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2328 echo "configuring for ${BACULA} $VERSION ($DATE)"
2329
2330
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 if test -n "$ac_tool_prefix"; then
2337   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2338 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   if test -n "$CC"; then
2345   ac_cv_prog_CC="$CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352   for ac_exec_ext in '' $ac_executable_extensions; do
2353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356     break 2
2357   fi
2358 done
2359 done
2360 IFS=$as_save_IFS
2361
2362 fi
2363 fi
2364 CC=$ac_cv_prog_CC
2365 if test -n "$CC"; then
2366   { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2368 else
2369   { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2371 fi
2372
2373
2374 fi
2375 if test -z "$ac_cv_prog_CC"; then
2376   ac_ct_CC=$CC
2377   # Extract the first word of "gcc", so it can be a program name with args.
2378 set dummy gcc; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2382   echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384   if test -n "$ac_ct_CC"; then
2385   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2389 do
2390   IFS=$as_save_IFS
2391   test -z "$as_dir" && as_dir=.
2392   for ac_exec_ext in '' $ac_executable_extensions; do
2393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394     ac_cv_prog_ac_ct_CC="gcc"
2395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396     break 2
2397   fi
2398 done
2399 done
2400 IFS=$as_save_IFS
2401
2402 fi
2403 fi
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2407 echo "${ECHO_T}$ac_ct_CC" >&6; }
2408 else
2409   { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2411 fi
2412
2413   if test "x$ac_ct_CC" = x; then
2414     CC=""
2415   else
2416     case $cross_compiling:$ac_tool_warned in
2417 yes:)
2418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2419 whose name does not start with the host triplet.  If you think this
2420 configuration is useful to you, please write to autoconf@gnu.org." >&5
2421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2422 whose name does not start with the host triplet.  If you think this
2423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2424 ac_tool_warned=yes ;;
2425 esac
2426     CC=$ac_ct_CC
2427   fi
2428 else
2429   CC="$ac_cv_prog_CC"
2430 fi
2431
2432 if test -z "$CC"; then
2433           if test -n "$ac_tool_prefix"; then
2434     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2435 set dummy ${ac_tool_prefix}cc; ac_word=$2
2436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_CC+set}" = set; then
2439   echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441   if test -n "$CC"; then
2442   ac_cv_prog_CC="$CC" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447   IFS=$as_save_IFS
2448   test -z "$as_dir" && as_dir=.
2449   for ac_exec_ext in '' $ac_executable_extensions; do
2450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451     ac_cv_prog_CC="${ac_tool_prefix}cc"
2452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453     break 2
2454   fi
2455 done
2456 done
2457 IFS=$as_save_IFS
2458
2459 fi
2460 fi
2461 CC=$ac_cv_prog_CC
2462 if test -n "$CC"; then
2463   { echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6; }
2465 else
2466   { echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6; }
2468 fi
2469
2470
2471   fi
2472 fi
2473 if test -z "$CC"; then
2474   # Extract the first word of "cc", so it can be a program name with args.
2475 set dummy cc; ac_word=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_CC+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   if test -n "$CC"; then
2482   ac_cv_prog_CC="$CC" # Let the user override the test.
2483 else
2484   ac_prog_rejected=no
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2493        ac_prog_rejected=yes
2494        continue
2495      fi
2496     ac_cv_prog_CC="cc"
2497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498     break 2
2499   fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 if test $ac_prog_rejected = yes; then
2505   # We found a bogon in the path, so make sure we never use it.
2506   set dummy $ac_cv_prog_CC
2507   shift
2508   if test $# != 0; then
2509     # We chose a different compiler from the bogus one.
2510     # However, it has the same basename, so the bogon will be chosen
2511     # first if we set CC to just the basename; use the full file name.
2512     shift
2513     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2514   fi
2515 fi
2516 fi
2517 fi
2518 CC=$ac_cv_prog_CC
2519 if test -n "$CC"; then
2520   { echo "$as_me:$LINENO: result: $CC" >&5
2521 echo "${ECHO_T}$CC" >&6; }
2522 else
2523   { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2525 fi
2526
2527
2528 fi
2529 if test -z "$CC"; then
2530   if test -n "$ac_tool_prefix"; then
2531   for ac_prog in cl.exe
2532   do
2533     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540   if test -n "$CC"; then
2541   ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548   for ac_exec_ext in '' $ac_executable_extensions; do
2549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562   { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2564 else
2565   { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2567 fi
2568
2569
2570     test -n "$CC" && break
2571   done
2572 fi
2573 if test -z "$CC"; then
2574   ac_ct_CC=$CC
2575   for ac_prog in cl.exe
2576 do
2577   # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   if test -n "$ac_ct_CC"; then
2585   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590   IFS=$as_save_IFS
2591   test -z "$as_dir" && as_dir=.
2592   for ac_exec_ext in '' $ac_executable_extensions; do
2593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594     ac_cv_prog_ac_ct_CC="$ac_prog"
2595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605 if test -n "$ac_ct_CC"; then
2606   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2607 echo "${ECHO_T}$ac_ct_CC" >&6; }
2608 else
2609   { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2611 fi
2612
2613
2614   test -n "$ac_ct_CC" && break
2615 done
2616
2617   if test "x$ac_ct_CC" = x; then
2618     CC=""
2619   else
2620     case $cross_compiling:$ac_tool_warned in
2621 yes:)
2622 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2623 whose name does not start with the host triplet.  If you think this
2624 configuration is useful to you, please write to autoconf@gnu.org." >&5
2625 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet.  If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2628 ac_tool_warned=yes ;;
2629 esac
2630     CC=$ac_ct_CC
2631   fi
2632 fi
2633
2634 fi
2635
2636
2637 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2638 See \`config.log' for more details." >&5
2639 echo "$as_me: error: no acceptable C compiler found in \$PATH
2640 See \`config.log' for more details." >&2;}
2641    { (exit 1); exit 1; }; }
2642
2643 # Provide some information about the compiler.
2644 echo "$as_me:$LINENO: checking for C compiler version" >&5
2645 ac_compiler=`set X $ac_compile; echo $2`
2646 { (ac_try="$ac_compiler --version >&5"
2647 case "(($ac_try" in
2648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649   *) ac_try_echo=$ac_try;;
2650 esac
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652   (eval "$ac_compiler --version >&5") 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }
2656 { (ac_try="$ac_compiler -v >&5"
2657 case "(($ac_try" in
2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659   *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662   (eval "$ac_compiler -v >&5") 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }
2666 { (ac_try="$ac_compiler -V >&5"
2667 case "(($ac_try" in
2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669   *) ac_try_echo=$ac_try;;
2670 esac
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672   (eval "$ac_compiler -V >&5") 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }
2676
2677 cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683
2684 int
2685 main ()
2686 {
2687
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 ac_clean_files_save=$ac_clean_files
2693 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2694 # Try to create an executable without -o first, disregard a.out.
2695 # It will help us diagnose broken compilers, and finding out an intuition
2696 # of exeext.
2697 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2698 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2699 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2700 #
2701 # List of possible output files, starting from the most likely.
2702 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2703 # only as a last resort.  b.out is created by i960 compilers.
2704 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2705 #
2706 # The IRIX 6 linker writes into existing files which may not be
2707 # executable, retaining their permissions.  Remove them first so a
2708 # subsequent execution test works.
2709 ac_rmfiles=
2710 for ac_file in $ac_files
2711 do
2712   case $ac_file in
2713     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2714     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2715   esac
2716 done
2717 rm -f $ac_rmfiles
2718
2719 if { (ac_try="$ac_link_default"
2720 case "(($ac_try" in
2721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722   *) ac_try_echo=$ac_try;;
2723 esac
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725   (eval "$ac_link_default") 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); }; then
2729   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2730 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2731 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2732 # so that the user can short-circuit this test for compilers unknown to
2733 # Autoconf.
2734 for ac_file in $ac_files ''
2735 do
2736   test -f "$ac_file" || continue
2737   case $ac_file in
2738     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2739         ;;
2740     [ab].out )
2741         # We found the default executable, but exeext='' is most
2742         # certainly right.
2743         break;;
2744     *.* )
2745         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2746         then :; else
2747            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2748         fi
2749         # We set ac_cv_exeext here because the later test for it is not
2750         # safe: cross compilers may not add the suffix if given an `-o'
2751         # argument, so we may need to know it at that point already.
2752         # Even if this section looks crufty: it has the advantage of
2753         # actually working.
2754         break;;
2755     * )
2756         break;;
2757   esac
2758 done
2759 test "$ac_cv_exeext" = no && ac_cv_exeext=
2760
2761 else
2762   ac_file=''
2763 fi
2764
2765 { echo "$as_me:$LINENO: result: $ac_file" >&5
2766 echo "${ECHO_T}$ac_file" >&6; }
2767 if test -z "$ac_file"; then
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2772 See \`config.log' for more details." >&5
2773 echo "$as_me: error: C compiler cannot create executables
2774 See \`config.log' for more details." >&2;}
2775    { (exit 77); exit 77; }; }
2776 fi
2777
2778 ac_exeext=$ac_cv_exeext
2779
2780 # Check that the compiler produces executables we can run.  If not, either
2781 # the compiler is broken, or we cross compile.
2782 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2785 # If not cross compiling, check that we can run a simple program.
2786 if test "$cross_compiling" != yes; then
2787   if { ac_try='./$ac_file'
2788   { (case "(($ac_try" in
2789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790   *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793   (eval "$ac_try") 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; }; then
2797     cross_compiling=no
2798   else
2799     if test "$cross_compiling" = maybe; then
2800         cross_compiling=yes
2801     else
2802         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2803 If you meant to cross compile, use \`--host'.
2804 See \`config.log' for more details." >&5
2805 echo "$as_me: error: cannot run C compiled programs.
2806 If you meant to cross compile, use \`--host'.
2807 See \`config.log' for more details." >&2;}
2808    { (exit 1); exit 1; }; }
2809     fi
2810   fi
2811 fi
2812 { echo "$as_me:$LINENO: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6; }
2814
2815 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2816 ac_clean_files=$ac_clean_files_save
2817 # Check that the compiler produces executables we can run.  If not, either
2818 # the compiler is broken, or we cross compile.
2819 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2820 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2821 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2822 echo "${ECHO_T}$cross_compiling" >&6; }
2823
2824 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2825 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2826 if { (ac_try="$ac_link"
2827 case "(($ac_try" in
2828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829   *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832   (eval "$ac_link") 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }; then
2836   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2837 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2838 # work properly (i.e., refer to `conftest.exe'), while it won't with
2839 # `rm'.
2840 for ac_file in conftest.exe conftest conftest.*; do
2841   test -f "$ac_file" || continue
2842   case $ac_file in
2843     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2844     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2845           break;;
2846     * ) break;;
2847   esac
2848 done
2849 else
2850   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2851 See \`config.log' for more details." >&5
2852 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2853 See \`config.log' for more details." >&2;}
2854    { (exit 1); exit 1; }; }
2855 fi
2856
2857 rm -f conftest$ac_cv_exeext
2858 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2859 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2860
2861 rm -f conftest.$ac_ext
2862 EXEEXT=$ac_cv_exeext
2863 ac_exeext=$EXEEXT
2864 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2865 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2866 if test "${ac_cv_objext+set}" = set; then
2867   echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869   cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h.  */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h.  */
2875
2876 int
2877 main ()
2878 {
2879
2880   ;
2881   return 0;
2882 }
2883 _ACEOF
2884 rm -f conftest.o conftest.obj
2885 if { (ac_try="$ac_compile"
2886 case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891   (eval "$ac_compile") 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; then
2895   for ac_file in conftest.o conftest.obj conftest.*; do
2896   test -f "$ac_file" || continue;
2897   case $ac_file in
2898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2899     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2900        break;;
2901   esac
2902 done
2903 else
2904   echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2910 See \`config.log' for more details." >&2;}
2911    { (exit 1); exit 1; }; }
2912 fi
2913
2914 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2915 fi
2916 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2917 echo "${ECHO_T}$ac_cv_objext" >&6; }
2918 OBJEXT=$ac_cv_objext
2919 ac_objext=$OBJEXT
2920 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2921 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2922 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931
2932 int
2933 main ()
2934 {
2935 #ifndef __GNUC__
2936        choke me
2937 #endif
2938
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2945 case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950   (eval "$ac_compile") 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } && {
2957          test -z "$ac_c_werror_flag" ||
2958          test ! -s conftest.err
2959        } && test -s conftest.$ac_objext; then
2960   ac_compiler_gnu=yes
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965         ac_compiler_gnu=no
2966 fi
2967
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2970
2971 fi
2972 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2973 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2974 GCC=`test $ac_compiler_gnu = yes && echo yes`
2975 ac_test_CFLAGS=${CFLAGS+set}
2976 ac_save_CFLAGS=$CFLAGS
2977 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2978 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_cc_g+set}" = set; then
2980   echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982   ac_save_c_werror_flag=$ac_c_werror_flag
2983    ac_c_werror_flag=yes
2984    ac_cv_prog_cc_g=no
2985    CFLAGS="-g"
2986    cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h.  */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h.  */
2992
2993 int
2994 main ()
2995 {
2996
2997   ;
2998   return 0;
2999 }
3000 _ACEOF
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3003 case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_compile") 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
3012   cat conftest.err >&5
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); } && {
3015          test -z "$ac_c_werror_flag" ||
3016          test ! -s conftest.err
3017        } && test -s conftest.$ac_objext; then
3018   ac_cv_prog_cc_g=yes
3019 else
3020   echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023         CFLAGS=""
3024       cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_compile") 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } && {
3053          test -z "$ac_c_werror_flag" ||
3054          test ! -s conftest.err
3055        } && test -s conftest.$ac_objext; then
3056   :
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061         ac_c_werror_flag=$ac_save_c_werror_flag
3062          CFLAGS="-g"
3063          cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h.  */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h.  */
3069
3070 int
3071 main ()
3072 {
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3080 case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085   (eval "$ac_compile") 2>conftest.er1
3086   ac_status=$?
3087   grep -v '^ *+' conftest.er1 >conftest.err
3088   rm -f conftest.er1
3089   cat conftest.err >&5
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); } && {
3092          test -z "$ac_c_werror_flag" ||
3093          test ! -s conftest.err
3094        } && test -s conftest.$ac_objext; then
3095   ac_cv_prog_cc_g=yes
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100
3101 fi
3102
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 fi
3105
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 fi
3108
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110    ac_c_werror_flag=$ac_save_c_werror_flag
3111 fi
3112 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3114 if test "$ac_test_CFLAGS" = set; then
3115   CFLAGS=$ac_save_CFLAGS
3116 elif test $ac_cv_prog_cc_g = yes; then
3117   if test "$GCC" = yes; then
3118     CFLAGS="-g -O2"
3119   else
3120     CFLAGS="-g"
3121   fi
3122 else
3123   if test "$GCC" = yes; then
3124     CFLAGS="-O2"
3125   else
3126     CFLAGS=
3127   fi
3128 fi
3129 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3130 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3131 if test "${ac_cv_prog_cc_c89+set}" = set; then
3132   echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134   ac_cv_prog_cc_c89=no
3135 ac_save_CC=$CC
3136 cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h.  */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h.  */
3142 #include <stdarg.h>
3143 #include <stdio.h>
3144 #include <sys/types.h>
3145 #include <sys/stat.h>
3146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3147 struct buf { int x; };
3148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3149 static char *e (p, i)
3150      char **p;
3151      int i;
3152 {
3153   return p[i];
3154 }
3155 static char *f (char * (*g) (char **, int), char **p, ...)
3156 {
3157   char *s;
3158   va_list v;
3159   va_start (v,p);
3160   s = g (p, va_arg (v,int));
3161   va_end (v);
3162   return s;
3163 }
3164
3165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3166    function prototypes and stuff, but not '\xHH' hex character constants.
3167    These don't provoke an error unfortunately, instead are silently treated
3168    as 'x'.  The following induces an error, until -std is added to get
3169    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3170    array size at least.  It's necessary to write '\x00'==0 to get something
3171    that's true only with -std.  */
3172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3173
3174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3175    inside strings and character constants.  */
3176 #define FOO(x) 'x'
3177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3178
3179 int test (int i, double x);
3180 struct s1 {int (*f) (int a);};
3181 struct s2 {int (*f) (double a);};
3182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3183 int argc;
3184 char **argv;
3185 int
3186 main ()
3187 {
3188 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3189   ;
3190   return 0;
3191 }
3192 _ACEOF
3193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3194         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3195 do
3196   CC="$ac_save_CC $ac_arg"
3197   rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3199 case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204   (eval "$ac_compile") 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } && {
3211          test -z "$ac_c_werror_flag" ||
3212          test ! -s conftest.err
3213        } && test -s conftest.$ac_objext; then
3214   ac_cv_prog_cc_c89=$ac_arg
3215 else
3216   echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext
3223   test "x$ac_cv_prog_cc_c89" != "xno" && break
3224 done
3225 rm -f conftest.$ac_ext
3226 CC=$ac_save_CC
3227
3228 fi
3229 # AC_CACHE_VAL
3230 case "x$ac_cv_prog_cc_c89" in
3231   x)
3232     { echo "$as_me:$LINENO: result: none needed" >&5
3233 echo "${ECHO_T}none needed" >&6; } ;;
3234   xno)
3235     { echo "$as_me:$LINENO: result: unsupported" >&5
3236 echo "${ECHO_T}unsupported" >&6; } ;;
3237   *)
3238     CC="$CC $ac_cv_prog_cc_c89"
3239     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3240 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3241 esac
3242
3243
3244 ac_ext=c
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249
3250 ac_ext=cpp
3251 ac_cpp='$CXXCPP $CPPFLAGS'
3252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3255 if test -z "$CXX"; then
3256   if test -n "$CCC"; then
3257     CXX=$CCC
3258   else
3259     if test -n "$ac_tool_prefix"; then
3260   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3261   do
3262     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3266 if test "${ac_cv_prog_CXX+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   if test -n "$CXX"; then
3270   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275   IFS=$as_save_IFS
3276   test -z "$as_dir" && as_dir=.
3277   for ac_exec_ext in '' $ac_executable_extensions; do
3278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3281     break 2
3282   fi
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 fi
3288 fi
3289 CXX=$ac_cv_prog_CXX
3290 if test -n "$CXX"; then
3291   { echo "$as_me:$LINENO: result: $CXX" >&5
3292 echo "${ECHO_T}$CXX" >&6; }
3293 else
3294   { echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6; }
3296 fi
3297
3298
3299     test -n "$CXX" && break
3300   done
3301 fi
3302 if test -z "$CXX"; then
3303   ac_ct_CXX=$CXX
3304   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3305 do
3306   # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3310 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3311   echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313   if test -n "$ac_ct_CXX"; then
3314   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321   for ac_exec_ext in '' $ac_executable_extensions; do
3322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323     ac_cv_prog_ac_ct_CXX="$ac_prog"
3324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3334 if test -n "$ac_ct_CXX"; then
3335   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3336 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3337 else
3338   { echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6; }
3340 fi
3341
3342
3343   test -n "$ac_ct_CXX" && break
3344 done
3345
3346   if test "x$ac_ct_CXX" = x; then
3347     CXX="g++"
3348   else
3349     case $cross_compiling:$ac_tool_warned in
3350 yes:)
3351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3352 whose name does not start with the host triplet.  If you think this
3353 configuration is useful to you, please write to autoconf@gnu.org." >&5
3354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet.  If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3357 ac_tool_warned=yes ;;
3358 esac
3359     CXX=$ac_ct_CXX
3360   fi
3361 fi
3362
3363   fi
3364 fi
3365 # Provide some information about the compiler.
3366 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3367 ac_compiler=`set X $ac_compile; echo $2`
3368 { (ac_try="$ac_compiler --version >&5"
3369 case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374   (eval "$ac_compiler --version >&5") 2>&5
3375   ac_status=$?
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); }
3378 { (ac_try="$ac_compiler -v >&5"
3379 case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384   (eval "$ac_compiler -v >&5") 2>&5
3385   ac_status=$?
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); }
3388 { (ac_try="$ac_compiler -V >&5"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_compiler -V >&5") 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }
3398
3399 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3400 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3401 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410
3411 int
3412 main ()
3413 {
3414 #ifndef __GNUC__
3415        choke me
3416 #endif
3417
3418   ;
3419   return 0;
3420 }
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3424 case "(($ac_try" in
3425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426   *) ac_try_echo=$ac_try;;
3427 esac
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429   (eval "$ac_compile") 2>conftest.er1
3430   ac_status=$?
3431   grep -v '^ *+' conftest.er1 >conftest.err
3432   rm -f conftest.er1
3433   cat conftest.err >&5
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); } && {
3436          test -z "$ac_cxx_werror_flag" ||
3437          test ! -s conftest.err
3438        } && test -s conftest.$ac_objext; then
3439   ac_compiler_gnu=yes
3440 else
3441   echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444         ac_compiler_gnu=no
3445 fi
3446
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3449
3450 fi
3451 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3452 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3453 GXX=`test $ac_compiler_gnu = yes && echo yes`
3454 ac_test_CXXFLAGS=${CXXFLAGS+set}
3455 ac_save_CXXFLAGS=$CXXFLAGS
3456 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3457 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3458 if test "${ac_cv_prog_cxx_g+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3462    ac_cxx_werror_flag=yes
3463    ac_cv_prog_cxx_g=no
3464    CXXFLAGS="-g"
3465    cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h.  */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_compile") 2>conftest.er1
3488   ac_status=$?
3489   grep -v '^ *+' conftest.er1 >conftest.err
3490   rm -f conftest.er1
3491   cat conftest.err >&5
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } && {
3494          test -z "$ac_cxx_werror_flag" ||
3495          test ! -s conftest.err
3496        } && test -s conftest.$ac_objext; then
3497   ac_cv_prog_cxx_g=yes
3498 else
3499   echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502         CXXFLAGS=""
3503       cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h.  */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h.  */
3509
3510 int
3511 main ()
3512 {
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3520 case "(($ac_try" in
3521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522   *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525   (eval "$ac_compile") 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } && {
3532          test -z "$ac_cxx_werror_flag" ||
3533          test ! -s conftest.err
3534        } && test -s conftest.$ac_objext; then
3535   :
3536 else
3537   echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3541          CXXFLAGS="-g"
3542          cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h.  */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h.  */
3548
3549 int
3550 main ()
3551 {
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 rm -f conftest.$ac_objext
3558 if { (ac_try="$ac_compile"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_compile") 2>conftest.er1
3565   ac_status=$?
3566   grep -v '^ *+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } && {
3571          test -z "$ac_cxx_werror_flag" ||
3572          test ! -s conftest.err
3573        } && test -s conftest.$ac_objext; then
3574   ac_cv_prog_cxx_g=yes
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579
3580 fi
3581
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 fi
3584
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 fi
3587
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3590 fi
3591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3592 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3593 if test "$ac_test_CXXFLAGS" = set; then
3594   CXXFLAGS=$ac_save_CXXFLAGS
3595 elif test $ac_cv_prog_cxx_g = yes; then
3596   if test "$GXX" = yes; then
3597     CXXFLAGS="-g -O2"
3598   else
3599     CXXFLAGS="-g"
3600   fi
3601 else
3602   if test "$GXX" = yes; then
3603     CXXFLAGS="-O2"
3604   else
3605     CXXFLAGS=
3606   fi
3607 fi
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614 if test "x$CC" != xcc; then
3615   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3616 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3617 else
3618   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3619 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3620 fi
3621 set dummy $CC; ac_cc=`echo $2 |
3622                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3623 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632
3633 int
3634 main ()
3635 {
3636
3637   ;
3638   return 0;
3639 }
3640 _ACEOF
3641 # Make sure it works both with $CC and with simple cc.
3642 # We do the test twice because some compilers refuse to overwrite an
3643 # existing .o file with -o, though they will create one.
3644 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3645 rm -f conftest2.*
3646 if { (case "(($ac_try" in
3647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648   *) ac_try_echo=$ac_try;;
3649 esac
3650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651   (eval "$ac_try") 2>&5
3652   ac_status=$?
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); } &&
3655    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657   *) ac_try_echo=$ac_try;;
3658 esac
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660   (eval "$ac_try") 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); };
3664 then
3665   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3666   if test "x$CC" != xcc; then
3667     # Test first that cc exists at all.
3668     if { ac_try='cc -c conftest.$ac_ext >&5'
3669   { (case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674   (eval "$ac_try") 2>&5
3675   ac_status=$?
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); }; }; then
3678       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3679       rm -f conftest2.*
3680       if { (case "(($ac_try" in
3681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682   *) ac_try_echo=$ac_try;;
3683 esac
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685   (eval "$ac_try") 2>&5
3686   ac_status=$?
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); } &&
3689          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694   (eval "$ac_try") 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); };
3698       then
3699         # cc works too.
3700         :
3701       else
3702         # cc exists but doesn't like -o.
3703         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3704       fi
3705     fi
3706   fi
3707 else
3708   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3709 fi
3710 rm -f core conftest*
3711
3712 fi
3713 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3714   { echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6; }
3716 else
3717   { echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6; }
3719
3720 cat >>confdefs.h <<\_ACEOF
3721 #define NO_MINUS_C_MINUS_O 1
3722 _ACEOF
3723
3724 fi
3725
3726 ac_ext=c
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3732 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3733 # On Suns, sometimes $CPP names a directory.
3734 if test -n "$CPP" && test -d "$CPP"; then
3735   CPP=
3736 fi
3737 if test -z "$CPP"; then
3738   if test "${ac_cv_prog_CPP+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741       # Double quotes because CPP needs to be expanded
3742     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3743     do
3744       ac_preproc_ok=false
3745 for ac_c_preproc_warn_flag in '' yes
3746 do
3747   # Use a header file that comes with gcc, so configuring glibc
3748   # with a fresh cross-compiler works.
3749   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3750   # <limits.h> exists even on freestanding compilers.
3751   # On the NeXT, cc -E runs the code through the compiler's parser,
3752   # not just through cpp. "Syntax error" is here to catch this case.
3753   cat >conftest.$ac_ext <<_ACEOF
3754 /* confdefs.h.  */
3755 _ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h.  */
3759 #ifdef __STDC__
3760 # include <limits.h>
3761 #else
3762 # include <assert.h>
3763 #endif
3764                      Syntax error
3765 _ACEOF
3766 if { (ac_try="$ac_cpp conftest.$ac_ext"
3767 case "(($ac_try" in
3768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769   *) ac_try_echo=$ac_try;;
3770 esac
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3773   ac_status=$?
3774   grep -v '^ *+' conftest.er1 >conftest.err
3775   rm -f conftest.er1
3776   cat conftest.err >&5
3777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778   (exit $ac_status); } >/dev/null && {
3779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3780          test ! -s conftest.err
3781        }; then
3782   :
3783 else
3784   echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787   # Broken: fails on valid input.
3788 continue
3789 fi
3790
3791 rm -f conftest.err conftest.$ac_ext
3792
3793   # OK, works on sane cases.  Now check whether nonexistent headers
3794   # can be detected and how.
3795   cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h.  */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h.  */
3801 #include <ac_nonexistent.h>
3802 _ACEOF
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3804 case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810   ac_status=$?
3811   grep -v '^ *+' conftest.er1 >conftest.err
3812   rm -f conftest.er1
3813   cat conftest.err >&5
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } >/dev/null && {
3816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817          test ! -s conftest.err
3818        }; then
3819   # Broken: success on invalid input.
3820 continue
3821 else
3822   echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3824
3825   # Passes both tests.
3826 ac_preproc_ok=:
3827 break
3828 fi
3829
3830 rm -f conftest.err conftest.$ac_ext
3831
3832 done
3833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3834 rm -f conftest.err conftest.$ac_ext
3835 if $ac_preproc_ok; then
3836   break
3837 fi
3838
3839     done
3840     ac_cv_prog_CPP=$CPP
3841
3842 fi
3843   CPP=$ac_cv_prog_CPP
3844 else
3845   ac_cv_prog_CPP=$CPP
3846 fi
3847 { echo "$as_me:$LINENO: result: $CPP" >&5
3848 echo "${ECHO_T}$CPP" >&6; }
3849 ac_preproc_ok=false
3850 for ac_c_preproc_warn_flag in '' yes
3851 do
3852   # Use a header file that comes with gcc, so configuring glibc
3853   # with a fresh cross-compiler works.
3854   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855   # <limits.h> exists even on freestanding compilers.
3856   # On the NeXT, cc -E runs the code through the compiler's parser,
3857   # not just through cpp. "Syntax error" is here to catch this case.
3858   cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h.  */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h.  */
3864 #ifdef __STDC__
3865 # include <limits.h>
3866 #else
3867 # include <assert.h>
3868 #endif
3869                      Syntax error
3870 _ACEOF
3871 if { (ac_try="$ac_cpp conftest.$ac_ext"
3872 case "(($ac_try" in
3873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874   *) ac_try_echo=$ac_try;;
3875 esac
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3878   ac_status=$?
3879   grep -v '^ *+' conftest.er1 >conftest.err
3880   rm -f conftest.er1
3881   cat conftest.err >&5
3882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883   (exit $ac_status); } >/dev/null && {
3884          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3885          test ! -s conftest.err
3886        }; then
3887   :
3888 else
3889   echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892   # Broken: fails on valid input.
3893 continue
3894 fi
3895
3896 rm -f conftest.err conftest.$ac_ext
3897
3898   # OK, works on sane cases.  Now check whether nonexistent headers
3899   # can be detected and how.
3900   cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h.  */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h.  */
3906 #include <ac_nonexistent.h>
3907 _ACEOF
3908 if { (ac_try="$ac_cpp conftest.$ac_ext"
3909 case "(($ac_try" in
3910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911   *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3915   ac_status=$?
3916   grep -v '^ *+' conftest.er1 >conftest.err
3917   rm -f conftest.er1
3918   cat conftest.err >&5
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } >/dev/null && {
3921          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922          test ! -s conftest.err
3923        }; then
3924   # Broken: success on invalid input.
3925 continue
3926 else
3927   echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930   # Passes both tests.
3931 ac_preproc_ok=:
3932 break
3933 fi
3934
3935 rm -f conftest.err conftest.$ac_ext
3936
3937 done
3938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3939 rm -f conftest.err conftest.$ac_ext
3940 if $ac_preproc_ok; then
3941   :
3942 else
3943   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3944 See \`config.log' for more details." >&5
3945 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3946 See \`config.log' for more details." >&2;}
3947    { (exit 1); exit 1; }; }
3948 fi
3949
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955
3956
3957 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3958 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_GREP+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   # Extract the first word of "grep ggrep" to use in msg output
3963 if test -z "$GREP"; then
3964 set dummy grep ggrep; ac_prog_name=$2
3965 if test "${ac_cv_path_GREP+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   ac_path_GREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3972 do
3973   IFS=$as_save_IFS
3974   test -z "$as_dir" && as_dir=.
3975   for ac_prog in grep ggrep; do
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3979     # Check for GNU ac_path_GREP and select it if it is found.
3980   # Check for GNU $ac_path_GREP
3981 case `"$ac_path_GREP" --version 2>&1` in
3982 *GNU*)
3983   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3984 *)
3985   ac_count=0
3986   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3987   while :
3988   do
3989     cat "conftest.in" "conftest.in" >"conftest.tmp"
3990     mv "conftest.tmp" "conftest.in"
3991     cp "conftest.in" "conftest.nl"
3992     echo 'GREP' >> "conftest.nl"
3993     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995     ac_count=`expr $ac_count + 1`
3996     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997       # Best one so far, save it but keep looking for a better one
3998       ac_cv_path_GREP="$ac_path_GREP"
3999       ac_path_GREP_max=$ac_count
4000     fi
4001     # 10*(2^10) chars as input seems more than enough
4002     test $ac_count -gt 10 && break
4003   done
4004   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005 esac
4006
4007
4008     $ac_path_GREP_found && break 3
4009   done
4010 done
4011
4012 done
4013 IFS=$as_save_IFS
4014
4015
4016 fi
4017
4018 GREP="$ac_cv_path_GREP"
4019 if test -z "$GREP"; then
4020   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022    { (exit 1); exit 1; }; }
4023 fi
4024
4025 else
4026   ac_cv_path_GREP=$GREP
4027 fi
4028
4029
4030 fi
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4033  GREP="$ac_cv_path_GREP"
4034
4035
4036 { echo "$as_me:$LINENO: checking for egrep" >&5
4037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4038 if test "${ac_cv_path_EGREP+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4042    then ac_cv_path_EGREP="$GREP -E"
4043    else
4044      # Extract the first word of "egrep" to use in msg output
4045 if test -z "$EGREP"; then
4046 set dummy egrep; ac_prog_name=$2
4047 if test "${ac_cv_path_EGREP+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   ac_path_EGREP_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057   for ac_prog in egrep; do
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4060     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4061     # Check for GNU ac_path_EGREP and select it if it is found.
4062   # Check for GNU $ac_path_EGREP
4063 case `"$ac_path_EGREP" --version 2>&1` in
4064 *GNU*)
4065   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4066 *)
4067   ac_count=0
4068   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4069   while :
4070   do
4071     cat "conftest.in" "conftest.in" >"conftest.tmp"
4072     mv "conftest.tmp" "conftest.in"
4073     cp "conftest.in" "conftest.nl"
4074     echo 'EGREP' >> "conftest.nl"
4075     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077     ac_count=`expr $ac_count + 1`
4078     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4079       # Best one so far, save it but keep looking for a better one
4080       ac_cv_path_EGREP="$ac_path_EGREP"
4081       ac_path_EGREP_max=$ac_count
4082     fi
4083     # 10*(2^10) chars as input seems more than enough
4084     test $ac_count -gt 10 && break
4085   done
4086   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4087 esac
4088
4089
4090     $ac_path_EGREP_found && break 3
4091   done
4092 done
4093
4094 done
4095 IFS=$as_save_IFS
4096
4097
4098 fi
4099
4100 EGREP="$ac_cv_path_EGREP"
4101 if test -z "$EGREP"; then
4102   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4103 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4104    { (exit 1); exit 1; }; }
4105 fi
4106
4107 else
4108   ac_cv_path_EGREP=$EGREP
4109 fi
4110
4111
4112    fi
4113 fi
4114 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4115 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4116  EGREP="$ac_cv_path_EGREP"
4117
4118
4119 if test $ac_cv_c_compiler_gnu = yes; then
4120     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4121 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4122 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125     ac_pattern="Autoconf.*'x'"
4126   cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h.  */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h.  */
4132 #include <sgtty.h>
4133 Autoconf TIOCGETP
4134 _ACEOF
4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4137   ac_cv_prog_gcc_traditional=yes
4138 else
4139   ac_cv_prog_gcc_traditional=no
4140 fi
4141 rm -f conftest*
4142
4143
4144   if test $ac_cv_prog_gcc_traditional = no; then
4145     cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151 #include <termio.h>
4152 Autoconf TCGETA
4153 _ACEOF
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156   ac_cv_prog_gcc_traditional=yes
4157 fi
4158 rm -f conftest*
4159
4160   fi
4161 fi
4162 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4163 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4164   if test $ac_cv_prog_gcc_traditional = yes; then
4165     CC="$CC -traditional"
4166   fi
4167 fi
4168
4169 BASECC=`basename $CC`
4170 have_gcc=no
4171 if test "x$BASECC" = xgcc; then
4172    cat >>confdefs.h <<\_ACEOF
4173 #define HAVE_GCC 1
4174 _ACEOF
4175
4176    have_gcc=yes
4177 fi
4178 # Extract the first word of "$CXX", so it can be a program name with args.
4179 set dummy $CXX; ac_word=$2
4180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4182 if test "${ac_cv_path_CXX+set}" = set; then
4183   echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185   case $CXX in
4186   [\\/]* | ?:[\\/]*)
4187   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4188   ;;
4189   *)
4190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195   for ac_exec_ext in '' $ac_executable_extensions; do
4196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199     break 2
4200   fi
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4206   ;;
4207 esac
4208 fi
4209 CXX=$ac_cv_path_CXX
4210 if test -n "$CXX"; then
4211   { echo "$as_me:$LINENO: result: $CXX" >&5
4212 echo "${ECHO_T}$CXX" >&6; }
4213 else
4214   { echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6; }
4216 fi
4217
4218
4219 if test ! -e $CXX; then
4220    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4221 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4222    { (exit 1); exit 1; }; }
4223 fi
4224
4225 # Find a good install program.  We prefer a C program (faster),
4226 # so one script is as good as another.  But avoid the broken or
4227 # incompatible versions:
4228 # SysV /etc/install, /usr/sbin/install
4229 # SunOS /usr/etc/install
4230 # IRIX /sbin/install
4231 # AIX /bin/install
4232 # AmigaOS /C/install, which installs bootblocks on floppy discs
4233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4236 # OS/2's system install, which has a completely different semantic
4237 # ./install, which can be erroneously created by make from ./install.sh.
4238 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4239 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4240 if test -z "$INSTALL"; then
4241 if test "${ac_cv_path_install+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249   # Account for people who put trailing slashes in PATH elements.
4250 case $as_dir/ in
4251   ./ | .// | /cC/* | \
4252   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4253   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4254   /usr/ucb/* ) ;;
4255   *)
4256     # OSF1 and SCO ODT 3.0 have their own names for install.
4257     # Don't use installbsd from OSF since it installs stuff as root
4258     # by default.
4259     for ac_prog in ginstall scoinst install; do
4260       for ac_exec_ext in '' $ac_executable_extensions; do
4261         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4262           if test $ac_prog = install &&
4263             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4264             # AIX install.  It has an incompatible calling convention.
4265             :
4266           elif test $ac_prog = install &&
4267             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268             # program-specific install script used by HP pwplus--don't use.
4269             :
4270           else
4271             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4272             break 3
4273           fi
4274         fi
4275       done
4276     done
4277     ;;
4278 esac
4279 done
4280 IFS=$as_save_IFS
4281
4282
4283 fi
4284   if test "${ac_cv_path_install+set}" = set; then
4285     INSTALL=$ac_cv_path_install
4286   else
4287     # As a last resort, use the slow shell script.  Don't cache a
4288     # value for INSTALL within a source directory, because that will
4289     # break other packages using the cache if that directory is
4290     # removed, or if the value is a relative name.
4291     INSTALL=$ac_install_sh
4292   fi
4293 fi
4294 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4295 echo "${ECHO_T}$INSTALL" >&6; }
4296
4297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4298 # It thinks the first close brace ends the variable substitution.
4299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4300
4301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4302
4303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4304
4305 # Extract the first word of "mv", so it can be a program name with args.
4306 set dummy mv; ac_word=$2
4307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309 if test "${ac_cv_path_MV+set}" = set; then
4310   echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312   case $MV in
4313   [\\/]* | ?:[\\/]*)
4314   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4315   ;;
4316   *)
4317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320   IFS=$as_save_IFS
4321   test -z "$as_dir" && as_dir=.
4322   for ac_exec_ext in '' $ac_executable_extensions; do
4323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326     break 2
4327   fi
4328 done
4329 done
4330 IFS=$as_save_IFS
4331
4332   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4333   ;;
4334 esac
4335 fi
4336 MV=$ac_cv_path_MV
4337 if test -n "$MV"; then
4338   { echo "$as_me:$LINENO: result: $MV" >&5
4339 echo "${ECHO_T}$MV" >&6; }
4340 else
4341   { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4343 fi
4344
4345
4346 # Extract the first word of "rm", so it can be a program name with args.
4347 set dummy rm; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_path_REMOVE+set}" = set; then
4351   echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353   case $REMOVE in
4354   [\\/]* | ?:[\\/]*)
4355   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4356   ;;
4357   *)
4358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_exec_ext in '' $ac_executable_extensions; do
4364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367     break 2
4368   fi
4369 done
4370 done
4371 IFS=$as_save_IFS
4372
4373   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4374   ;;
4375 esac
4376 fi
4377 REMOVE=$ac_cv_path_REMOVE
4378 if test -n "$REMOVE"; then
4379   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4380 echo "${ECHO_T}$REMOVE" >&6; }
4381 else
4382   { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4384 fi
4385
4386
4387 # Extract the first word of "cp", so it can be a program name with args.
4388 set dummy cp; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_path_CP+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   case $CP in
4395   [\\/]* | ?:[\\/]*)
4396   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4397   ;;
4398   *)
4399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404   for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411 done
4412 IFS=$as_save_IFS
4413
4414   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4415   ;;
4416 esac
4417 fi
4418 CP=$ac_cv_path_CP
4419 if test -n "$CP"; then
4420   { echo "$as_me:$LINENO: result: $CP" >&5
4421 echo "${ECHO_T}$CP" >&6; }
4422 else
4423   { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4425 fi
4426
4427
4428 # Extract the first word of "sed", so it can be a program name with args.
4429 set dummy sed; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_path_SED+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   case $SED in
4436   [\\/]* | ?:[\\/]*)
4437   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4438   ;;
4439   *)
4440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   for ac_exec_ext in '' $ac_executable_extensions; do
4446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450   fi
4451 done
4452 done
4453 IFS=$as_save_IFS
4454
4455   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4456   ;;
4457 esac
4458 fi
4459 SED=$ac_cv_path_SED
4460 if test -n "$SED"; then
4461   { echo "$as_me:$LINENO: result: $SED" >&5
4462 echo "${ECHO_T}$SED" >&6; }
4463 else
4464   { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4466 fi
4467
4468
4469 # Extract the first word of "echo", so it can be a program name with args.
4470 set dummy echo; ac_word=$2
4471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4473 if test "${ac_cv_path_ECHO+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   case $ECHO in
4477   [\\/]* | ?:[\\/]*)
4478   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4479   ;;
4480   *)
4481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494 IFS=$as_save_IFS
4495
4496   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4497   ;;
4498 esac
4499 fi
4500 ECHO=$ac_cv_path_ECHO
4501 if test -n "$ECHO"; then
4502   { echo "$as_me:$LINENO: result: $ECHO" >&5
4503 echo "${ECHO_T}$ECHO" >&6; }
4504 else
4505   { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4507 fi
4508
4509
4510 # Extract the first word of "cmp", so it can be a program name with args.
4511 set dummy cmp; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_CMP+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   case $CMP in
4518   [\\/]* | ?:[\\/]*)
4519   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4520   ;;
4521   *)
4522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527   for ac_exec_ext in '' $ac_executable_extensions; do
4528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534 done
4535 IFS=$as_save_IFS
4536
4537   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4538   ;;
4539 esac
4540 fi
4541 CMP=$ac_cv_path_CMP
4542 if test -n "$CMP"; then
4543   { echo "$as_me:$LINENO: result: $CMP" >&5
4544 echo "${ECHO_T}$CMP" >&6; }
4545 else
4546   { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4548 fi
4549
4550
4551 # Extract the first word of "tbl", so it can be a program name with args.
4552 set dummy tbl; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_path_TBL+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   case $TBL in
4559   [\\/]* | ?:[\\/]*)
4560   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4561   ;;
4562   *)
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568   for ac_exec_ext in '' $ac_executable_extensions; do
4569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4579   ;;
4580 esac
4581 fi
4582 TBL=$ac_cv_path_TBL
4583 if test -n "$TBL"; then
4584   { echo "$as_me:$LINENO: result: $TBL" >&5
4585 echo "${ECHO_T}$TBL" >&6; }
4586 else
4587   { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4589 fi
4590
4591
4592 # Extract the first word of "ar", so it can be a program name with args.
4593 set dummy ar; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_path_AR+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   case $AR in
4600   [\\/]* | ?:[\\/]*)
4601   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4602   ;;
4603   *)
4604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4620   ;;
4621 esac
4622 fi
4623 AR=$ac_cv_path_AR
4624 if test -n "$AR"; then
4625   { echo "$as_me:$LINENO: result: $AR" >&5
4626 echo "${ECHO_T}$AR" >&6; }
4627 else
4628   { echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6; }
4630 fi
4631
4632
4633 # Extract the first word of "openssl", so it can be a program name with args.
4634 set dummy openssl; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_path_OPENSSL+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   case $OPENSSL in
4641   [\\/]* | ?:[\\/]*)
4642   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4643   ;;
4644   *)
4645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648   IFS=$as_save_IFS
4649   test -z "$as_dir" && as_dir=.
4650   for ac_exec_ext in '' $ac_executable_extensions; do
4651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654     break 2
4655   fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4661   ;;
4662 esac
4663 fi
4664 OPENSSL=$ac_cv_path_OPENSSL
4665 if test -n "$OPENSSL"; then
4666   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4667 echo "${ECHO_T}$OPENSSL" >&6; }
4668 else
4669   { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4671 fi
4672
4673
4674 # Extract the first word of "mtx", so it can be a program name with args.
4675 set dummy mtx; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_path_MTX+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   case $MTX in
4682   [\\/]* | ?:[\\/]*)
4683   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4684   ;;
4685   *)
4686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691   for ac_exec_ext in '' $ac_executable_extensions; do
4692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695     break 2
4696   fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4702   ;;
4703 esac
4704 fi
4705 MTX=$ac_cv_path_MTX
4706 if test -n "$MTX"; then
4707   { echo "$as_me:$LINENO: result: $MTX" >&5
4708 echo "${ECHO_T}$MTX" >&6; }
4709 else
4710   { echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6; }
4712 fi
4713
4714
4715 # Extract the first word of "dd", so it can be a program name with args.
4716 set dummy dd; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_path_DD+set}" = set; then
4720   echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722   case $DD in
4723   [\\/]* | ?:[\\/]*)
4724   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4725   ;;
4726   *)
4727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730   IFS=$as_save_IFS
4731   test -z "$as_dir" && as_dir=.
4732   for ac_exec_ext in '' $ac_executable_extensions; do
4733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736     break 2
4737   fi
4738 done
4739 done
4740 IFS=$as_save_IFS
4741
4742   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4743   ;;
4744 esac
4745 fi
4746 DD=$ac_cv_path_DD
4747 if test -n "$DD"; then
4748   { echo "$as_me:$LINENO: result: $DD" >&5
4749 echo "${ECHO_T}$DD" >&6; }
4750 else
4751   { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4753 fi
4754
4755
4756 # Extract the first word of "mkisofs", so it can be a program name with args.
4757 set dummy mkisofs; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_path_MKISOFS+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   case $MKISOFS in
4764   [\\/]* | ?:[\\/]*)
4765   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4766   ;;
4767   *)
4768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773   for ac_exec_ext in '' $ac_executable_extensions; do
4774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780 done
4781 IFS=$as_save_IFS
4782
4783   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4784   ;;
4785 esac
4786 fi
4787 MKISOFS=$ac_cv_path_MKISOFS
4788 if test -n "$MKISOFS"; then
4789   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4790 echo "${ECHO_T}$MKISOFS" >&6; }
4791 else
4792   { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4794 fi
4795
4796
4797 # Extract the first word of "python", so it can be a program name with args.
4798 set dummy python; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_path_PYTHON+set}" = set; then
4802   echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804   case $PYTHON in
4805   [\\/]* | ?:[\\/]*)
4806   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4807   ;;
4808   *)
4809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814   for ac_exec_ext in '' $ac_executable_extensions; do
4815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821 done
4822 IFS=$as_save_IFS
4823
4824   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4825   ;;
4826 esac
4827 fi
4828 PYTHON=$ac_cv_path_PYTHON
4829 if test -n "$PYTHON"; then
4830   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4831 echo "${ECHO_T}$PYTHON" >&6; }
4832 else
4833   { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835 fi
4836
4837
4838 # Extract the first word of "growisofs", so it can be a program name with args.
4839 set dummy growisofs; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845   case $GROWISOFS in
4846   [\\/]* | ?:[\\/]*)
4847   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4848   ;;
4849   *)
4850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855   for ac_exec_ext in '' $ac_executable_extensions; do
4856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4866   ;;
4867 esac
4868 fi
4869 GROWISOFS=$ac_cv_path_GROWISOFS
4870 if test -n "$GROWISOFS"; then
4871   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4872 echo "${ECHO_T}$GROWISOFS" >&6; }
4873 else
4874   { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4876 fi
4877
4878
4879 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4880 set dummy dvd+rw-mediainfo; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   case $DVDRWMEDIAINFO in
4887   [\\/]* | ?:[\\/]*)
4888   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4889   ;;
4890   *)
4891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896   for ac_exec_ext in '' $ac_executable_extensions; do
4897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900     break 2
4901   fi
4902 done
4903 done
4904 IFS=$as_save_IFS
4905
4906   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4907   ;;
4908 esac
4909 fi
4910 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4911 if test -n "$DVDRWMEDIAINFO"; then
4912   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4913 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4914 else
4915   { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4917 fi
4918
4919
4920 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4921 set dummy dvd+rw-format; ac_word=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   case $DVDRWFORMAT in
4928   [\\/]* | ?:[\\/]*)
4929   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4930   ;;
4931   *)
4932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937   for ac_exec_ext in '' $ac_executable_extensions; do
4938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944 done
4945 IFS=$as_save_IFS
4946
4947   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4948   ;;
4949 esac
4950 fi
4951 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4952 if test -n "$DVDRWFORMAT"; then
4953   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4954 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4955 else
4956   { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4958 fi
4959
4960
4961 # Extract the first word of "pkg-config", so it can be a program name with args.
4962 set dummy pkg-config; ac_word=$2
4963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4965 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   case $PKGCONFIG in
4969   [\\/]* | ?:[\\/]*)
4970   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4971   ;;
4972   *)
4973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976   IFS=$as_save_IFS
4977   test -z "$as_dir" && as_dir=.
4978   for ac_exec_ext in '' $ac_executable_extensions; do
4979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982     break 2
4983   fi
4984 done
4985 done
4986 IFS=$as_save_IFS
4987
4988   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4989   ;;
4990 esac
4991 fi
4992 PKGCONFIG=$ac_cv_path_PKGCONFIG
4993 if test -n "$PKGCONFIG"; then
4994   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4995 echo "${ECHO_T}$PKGCONFIG" >&6; }
4996 else
4997   { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
4999 fi
5000
5001
5002 # Extract the first word of "qmake", so it can be a program name with args.
5003 set dummy qmake; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_path_QMAKE+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   case $QMAKE in
5010   [\\/]* | ?:[\\/]*)
5011   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5012   ;;
5013   *)
5014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019   for ac_exec_ext in '' $ac_executable_extensions; do
5020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026 done
5027 IFS=$as_save_IFS
5028
5029   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5030   ;;
5031 esac
5032 fi
5033 QMAKE=$ac_cv_path_QMAKE
5034 if test -n "$QMAKE"; then
5035   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5036 echo "${ECHO_T}$QMAKE" >&6; }
5037 else
5038   { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5040 fi
5041
5042
5043 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5044 set dummy qmake-qt4; ac_word=$2
5045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5047 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050   case $QMAKEQT4 in
5051   [\\/]* | ?:[\\/]*)
5052   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5053   ;;
5054   *)
5055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060   for ac_exec_ext in '' $ac_executable_extensions; do
5061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064     break 2
5065   fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5071   ;;
5072 esac
5073 fi
5074 QMAKEQT4=$ac_cv_path_QMAKEQT4
5075 if test -n "$QMAKEQT4"; then
5076   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5077 echo "${ECHO_T}$QMAKEQT4" >&6; }
5078 else
5079   { echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6; }
5081 fi
5082
5083
5084
5085 if test "x$WXCONFIG" = x; then
5086    WXCONFIG=wx-config
5087 fi
5088 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5089 set dummy ${WXCONFIG}; ac_word=$2
5090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5092 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   case $WXCONFIG in
5096   [\\/]* | ?:[\\/]*)
5097   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5098   ;;
5099   *)
5100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105   for ac_exec_ext in '' $ac_executable_extensions; do
5106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109     break 2
5110   fi
5111 done
5112 done
5113 IFS=$as_save_IFS
5114
5115   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5116   ;;
5117 esac
5118 fi
5119 WXCONFIG=$ac_cv_path_WXCONFIG
5120 if test -n "$WXCONFIG"; then
5121   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5122 echo "${ECHO_T}$WXCONFIG" >&6; }
5123 else
5124   { echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6; }
5126 fi
5127
5128
5129
5130 # Extract the first word of "cdrecord", so it can be a program name with args.
5131 set dummy cdrecord; ac_word=$2
5132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5134 if test "${ac_cv_path_CDRECORD+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   case $CDRECORD in
5138   [\\/]* | ?:[\\/]*)
5139   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5140   ;;
5141   *)
5142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145   IFS=$as_save_IFS
5146   test -z "$as_dir" && as_dir=.
5147   for ac_exec_ext in '' $ac_executable_extensions; do
5148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151     break 2
5152   fi
5153 done
5154 done
5155 IFS=$as_save_IFS
5156
5157   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5158   ;;
5159 esac
5160 fi
5161 CDRECORD=$ac_cv_path_CDRECORD
5162 if test -n "$CDRECORD"; then
5163   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5164 echo "${ECHO_T}$CDRECORD" >&6; }
5165 else
5166   { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5168 fi
5169
5170
5171 # Extract the first word of "pidof", so it can be a program name with args.
5172 set dummy pidof; ac_word=$2
5173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175 if test "${ac_cv_path_PIDOF+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   case $PIDOF in
5179   [\\/]* | ?:[\\/]*)
5180   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5181   ;;
5182   *)
5183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186   IFS=$as_save_IFS
5187   test -z "$as_dir" && as_dir=.
5188   for ac_exec_ext in '' $ac_executable_extensions; do
5189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192     break 2
5193   fi
5194 done
5195 done
5196 IFS=$as_save_IFS
5197
5198   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5199   ;;
5200 esac
5201 fi
5202 PIDOF=$ac_cv_path_PIDOF
5203 if test -n "$PIDOF"; then
5204   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5205 echo "${ECHO_T}$PIDOF" >&6; }
5206 else
5207   { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5209 fi
5210
5211
5212 for ac_prog in gawk mawk nawk awk
5213 do
5214   # Extract the first word of "$ac_prog", so it can be a program name with args.
5215 set dummy $ac_prog; ac_word=$2
5216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5218 if test "${ac_cv_prog_AWK+set}" = set; then
5219   echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221   if test -n "$AWK"; then
5222   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229   for ac_exec_ext in '' $ac_executable_extensions; do
5230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231     ac_cv_prog_AWK="$ac_prog"
5232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233     break 2
5234   fi
5235 done
5236 done
5237 IFS=$as_save_IFS
5238
5239 fi
5240 fi
5241 AWK=$ac_cv_prog_AWK
5242 if test -n "$AWK"; then
5243   { echo "$as_me:$LINENO: result: $AWK" >&5
5244 echo "${ECHO_T}$AWK" >&6; }
5245 else
5246   { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }
5248 fi
5249
5250
5251   test -n "$AWK" && break
5252 done
5253
5254 # Some AWK programs fail, so test it and warn the user
5255 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5256       { if ((prog == $2) || (("(" prog ")") == $2) ||
5257       (("" prog "") == $2) ||
5258       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5259 else
5260   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5261    The regex engine of $AWK is too broken to be used you
5262    might want to install GNU AWK.
5263    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5264 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5265    The regex engine of $AWK is too broken to be used you
5266    might want to install GNU AWK.
5267    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5268    { (exit 1); exit 1; }; }
5269 fi
5270 THE_AWK=$AWK
5271 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5272 set dummy $THE_AWK; 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_path_AWK+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   case $AWK in
5279   [\\/]* | ?:[\\/]*)
5280   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5281   ;;
5282   *)
5283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288   for ac_exec_ext in '' $ac_executable_extensions; do
5289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292     break 2
5293   fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5299   ;;
5300 esac
5301 fi
5302 AWK=$ac_cv_path_AWK
5303 if test -n "$AWK"; then
5304   { echo "$as_me:$LINENO: result: $AWK" >&5
5305 echo "${ECHO_T}$AWK" >&6; }
5306 else
5307   { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5309 fi
5310
5311
5312
5313
5314 test -n "$ARFLAG" || ARFLAGS="cr"
5315
5316
5317 MAKE_SHELL=/bin/sh
5318
5319
5320
5321
5322
5323
5324
5325 # Check whether --enable-libtool was given.
5326 if test "${enable_libtool+set}" = set; then
5327   enableval=$enable_libtool;
5328        if test x$enableval = xno; then
5329           use_libtool=no
5330        fi
5331
5332
5333 fi
5334
5335 case `pwd` in
5336   *\ * | *\     *)
5337     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5338 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5339 esac
5340
5341
5342
5343 macro_version='2.2.6'
5344 macro_revision='1.3012'
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358 ltmain="$ac_aux_dir/ltmain.sh"
5359
5360 # Make sure we can run config.sub.
5361 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5362   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5363 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5364    { (exit 1); exit 1; }; }
5365
5366 { echo "$as_me:$LINENO: checking build system type" >&5
5367 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5368 if test "${ac_cv_build+set}" = set; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371   ac_build_alias=$build_alias
5372 test "x$ac_build_alias" = x &&
5373   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5374 test "x$ac_build_alias" = x &&
5375   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5376 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5377    { (exit 1); exit 1; }; }
5378 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5379   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5380 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5381    { (exit 1); exit 1; }; }
5382
5383 fi
5384 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5385 echo "${ECHO_T}$ac_cv_build" >&6; }
5386 case $ac_cv_build in
5387 *-*-*) ;;
5388 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5389 echo "$as_me: error: invalid value of canonical build" >&2;}
5390    { (exit 1); exit 1; }; };;
5391 esac
5392 build=$ac_cv_build
5393 ac_save_IFS=$IFS; IFS='-'
5394 set x $ac_cv_build
5395 shift
5396 build_cpu=$1
5397 build_vendor=$2
5398 shift; shift
5399 # Remember, the first character of IFS is used to create $*,
5400 # except with old shells:
5401 build_os=$*
5402 IFS=$ac_save_IFS
5403 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5404
5405
5406 { echo "$as_me:$LINENO: checking host system type" >&5
5407 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5408 if test "${ac_cv_host+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411   if test "x$host_alias" = x; then
5412   ac_cv_host=$ac_cv_build
5413 else
5414   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5415     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5416 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5417    { (exit 1); exit 1; }; }
5418 fi
5419
5420 fi
5421 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5422 echo "${ECHO_T}$ac_cv_host" >&6; }
5423 case $ac_cv_host in
5424 *-*-*) ;;
5425 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5426 echo "$as_me: error: invalid value of canonical host" >&2;}
5427    { (exit 1); exit 1; }; };;
5428 esac
5429 host=$ac_cv_host
5430 ac_save_IFS=$IFS; IFS='-'
5431 set x $ac_cv_host
5432 shift
5433 host_cpu=$1
5434 host_vendor=$2
5435 shift; shift
5436 # Remember, the first character of IFS is used to create $*,
5437 # except with old shells:
5438 host_os=$*
5439 IFS=$ac_save_IFS
5440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5441
5442
5443 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5444 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5445 if test "${ac_cv_path_SED+set}" = set; then
5446   echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5449      for ac_i in 1 2 3 4 5 6 7; do
5450        ac_script="$ac_script$as_nl$ac_script"
5451      done
5452      echo "$ac_script" | sed 99q >conftest.sed
5453      $as_unset ac_script || ac_script=
5454      # Extract the first word of "sed gsed" to use in msg output
5455 if test -z "$SED"; then
5456 set dummy sed gsed; ac_prog_name=$2
5457 if test "${ac_cv_path_SED+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   ac_path_SED_found=false
5461 # Loop through the user's path and test for each of PROGNAME-LIST
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467   for ac_prog in sed gsed; do
5468   for ac_exec_ext in '' $ac_executable_extensions; do
5469     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5470     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5471     # Check for GNU ac_path_SED and select it if it is found.
5472   # Check for GNU $ac_path_SED
5473 case `"$ac_path_SED" --version 2>&1` in
5474 *GNU*)
5475   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5476 *)
5477   ac_count=0
5478   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5479   while :
5480   do
5481     cat "conftest.in" "conftest.in" >"conftest.tmp"
5482     mv "conftest.tmp" "conftest.in"
5483     cp "conftest.in" "conftest.nl"
5484     echo '' >> "conftest.nl"
5485     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5486     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5487     ac_count=`expr $ac_count + 1`
5488     if test $ac_count -gt ${ac_path_SED_max-0}; then
5489       # Best one so far, save it but keep looking for a better one
5490       ac_cv_path_SED="$ac_path_SED"
5491       ac_path_SED_max=$ac_count
5492     fi
5493     # 10*(2^10) chars as input seems more than enough
5494     test $ac_count -gt 10 && break
5495   done
5496   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5497 esac
5498
5499
5500     $ac_path_SED_found && break 3
5501   done
5502 done
5503
5504 done
5505 IFS=$as_save_IFS
5506
5507
5508 fi
5509
5510 SED="$ac_cv_path_SED"
5511 if test -z "$SED"; then
5512   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5513 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5514    { (exit 1); exit 1; }; }
5515 fi
5516
5517 else
5518   ac_cv_path_SED=$SED
5519 fi
5520
5521 fi
5522 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5523 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5524  SED="$ac_cv_path_SED"
5525   rm -f conftest.sed
5526
5527 test -z "$SED" && SED=sed
5528 Xsed="$SED -e 1s/^X//"
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540 { echo "$as_me:$LINENO: checking for fgrep" >&5
5541 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5542 if test "${ac_cv_path_FGREP+set}" = set; then
5543   echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5546    then ac_cv_path_FGREP="$GREP -F"
5547    else
5548      # Extract the first word of "fgrep" to use in msg output
5549 if test -z "$FGREP"; then
5550 set dummy fgrep; ac_prog_name=$2
5551 if test "${ac_cv_path_FGREP+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   ac_path_FGREP_found=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561   for ac_prog in fgrep; do
5562   for ac_exec_ext in '' $ac_executable_extensions; do
5563     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5564     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5565     # Check for GNU ac_path_FGREP and select it if it is found.
5566   # Check for GNU $ac_path_FGREP
5567 case `"$ac_path_FGREP" --version 2>&1` in
5568 *GNU*)
5569   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5570 *)
5571   ac_count=0
5572   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5573   while :
5574   do
5575     cat "conftest.in" "conftest.in" >"conftest.tmp"
5576     mv "conftest.tmp" "conftest.in"
5577     cp "conftest.in" "conftest.nl"
5578     echo 'FGREP' >> "conftest.nl"
5579     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581     ac_count=`expr $ac_count + 1`
5582     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5583       # Best one so far, save it but keep looking for a better one
5584       ac_cv_path_FGREP="$ac_path_FGREP"
5585       ac_path_FGREP_max=$ac_count
5586     fi
5587     # 10*(2^10) chars as input seems more than enough
5588     test $ac_count -gt 10 && break
5589   done
5590   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5591 esac
5592
5593
5594     $ac_path_FGREP_found && break 3
5595   done
5596 done
5597
5598 done
5599 IFS=$as_save_IFS
5600
5601
5602 fi
5603
5604 FGREP="$ac_cv_path_FGREP"
5605 if test -z "$FGREP"; then
5606   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5608    { (exit 1); exit 1; }; }
5609 fi
5610
5611 else
5612   ac_cv_path_FGREP=$FGREP
5613 fi
5614
5615
5616    fi
5617 fi
5618 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5619 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5620  FGREP="$ac_cv_path_FGREP"
5621
5622
5623 test -z "$GREP" && GREP=grep
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643 # Check whether --with-gnu-ld was given.
5644 if test "${with_gnu_ld+set}" = set; then
5645   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5646 else
5647   with_gnu_ld=no
5648 fi
5649
5650 ac_prog=ld
5651 if test "$GCC" = yes; then
5652   # Check if gcc -print-prog-name=ld gives a path.
5653   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5654 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5655   case $host in
5656   *-*-mingw*)
5657     # gcc leaves a trailing carriage return which upsets mingw
5658     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5659   *)
5660     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5661   esac
5662   case $ac_prog in
5663     # Accept absolute paths.
5664     [\\/]* | ?:[\\/]*)
5665       re_direlt='/[^/][^/]*/\.\./'
5666       # Canonicalize the pathname of ld
5667       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5668       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5669         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5670       done
5671       test -z "$LD" && LD="$ac_prog"
5672       ;;
5673   "")
5674     # If it fails, then pretend we aren't using GCC.
5675     ac_prog=ld
5676     ;;
5677   *)
5678     # If it is relative, then search for the first ld in PATH.
5679     with_gnu_ld=unknown
5680     ;;
5681   esac
5682 elif test "$with_gnu_ld" = yes; then
5683   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5684 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5685 else
5686   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5687 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5688 fi
5689 if test "${lt_cv_path_LD+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   if test -z "$LD"; then
5693   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5694   for ac_dir in $PATH; do
5695     IFS="$lt_save_ifs"
5696     test -z "$ac_dir" && ac_dir=.
5697     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5698       lt_cv_path_LD="$ac_dir/$ac_prog"
5699       # Check to see if the program is GNU ld.  I'd rather use --version,
5700       # but apparently some variants of GNU ld only accept -v.
5701       # Break only if it was the GNU/non-GNU ld that we prefer.
5702       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5703       *GNU* | *'with BFD'*)
5704         test "$with_gnu_ld" != no && break
5705         ;;
5706       *)
5707         test "$with_gnu_ld" != yes && break
5708         ;;
5709       esac
5710     fi
5711   done
5712   IFS="$lt_save_ifs"
5713 else
5714   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5715 fi
5716 fi
5717
5718 LD="$lt_cv_path_LD"
5719 if test -n "$LD"; then
5720   { echo "$as_me:$LINENO: result: $LD" >&5
5721 echo "${ECHO_T}$LD" >&6; }
5722 else
5723   { echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6; }
5725 fi
5726 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5727 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5728    { (exit 1); exit 1; }; }
5729 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5730 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5731 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5735 case `$LD -v 2>&1 </dev/null` in
5736 *GNU* | *'with BFD'*)
5737   lt_cv_prog_gnu_ld=yes
5738   ;;
5739 *)
5740   lt_cv_prog_gnu_ld=no
5741   ;;
5742 esac
5743 fi
5744 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5745 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5746 with_gnu_ld=$lt_cv_prog_gnu_ld
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5757 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5758 if test "${lt_cv_path_NM+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   if test -n "$NM"; then
5762   # Let the user override the test.
5763   lt_cv_path_NM="$NM"
5764 else
5765   lt_nm_to_check="${ac_tool_prefix}nm"
5766   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5767     lt_nm_to_check="$lt_nm_to_check nm"
5768   fi
5769   for lt_tmp_nm in $lt_nm_to_check; do
5770     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5771     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5772       IFS="$lt_save_ifs"
5773       test -z "$ac_dir" && ac_dir=.
5774       tmp_nm="$ac_dir/$lt_tmp_nm"
5775       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5776         # Check to see if the nm accepts a BSD-compat flag.
5777         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5778         #   nm: unknown option "B" ignored
5779         # Tru64's nm complains that /dev/null is an invalid object file
5780         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5781         */dev/null* | *'Invalid file or object type'*)
5782           lt_cv_path_NM="$tmp_nm -B"
5783           break
5784           ;;
5785         *)
5786           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5787           */dev/null*)
5788             lt_cv_path_NM="$tmp_nm -p"
5789             break
5790             ;;
5791           *)
5792             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5793             continue # so that we can try to find one that supports BSD flags
5794             ;;
5795           esac
5796           ;;
5797         esac
5798       fi
5799     done
5800     IFS="$lt_save_ifs"
5801   done
5802   : ${lt_cv_path_NM=no}
5803 fi
5804 fi
5805 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5806 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5807 if test "$lt_cv_path_NM" != "no"; then
5808   NM="$lt_cv_path_NM"
5809 else
5810   # Didn't find any BSD compatible name lister, look for dumpbin.
5811   if test -n "$ac_tool_prefix"; then
5812   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5813   do
5814     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5818 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5819   echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821   if test -n "$DUMPBIN"; then
5822   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827   IFS=$as_save_IFS
5828   test -z "$as_dir" && as_dir=.
5829   for ac_exec_ext in '' $ac_executable_extensions; do
5830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833     break 2
5834   fi
5835 done
5836 done
5837 IFS=$as_save_IFS
5838
5839 fi
5840 fi
5841 DUMPBIN=$ac_cv_prog_DUMPBIN
5842 if test -n "$DUMPBIN"; then
5843   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5844 echo "${ECHO_T}$DUMPBIN" >&6; }
5845 else
5846   { echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6; }
5848 fi
5849
5850
5851     test -n "$DUMPBIN" && break
5852   done
5853 fi
5854 if test -z "$DUMPBIN"; then
5855   ac_ct_DUMPBIN=$DUMPBIN
5856   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5857 do
5858   # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   if test -n "$ac_ct_DUMPBIN"; then
5866   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873   for ac_exec_ext in '' $ac_executable_extensions; do
5874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877     break 2
5878   fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5886 if test -n "$ac_ct_DUMPBIN"; then
5887   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5888 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5889 else
5890   { echo "$as_me:$LINENO: result: no" >&5
5891 echo "${ECHO_T}no" >&6; }
5892 fi
5893
5894
5895   test -n "$ac_ct_DUMPBIN" && break
5896 done
5897
5898   if test "x$ac_ct_DUMPBIN" = x; then
5899     DUMPBIN=":"
5900   else
5901     case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904 whose name does not start with the host triplet.  If you think this
5905 configuration is useful to you, please write to autoconf@gnu.org." >&5
5906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5907 whose name does not start with the host triplet.  If you think this
5908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911     DUMPBIN=$ac_ct_DUMPBIN
5912   fi
5913 fi
5914
5915
5916   if test "$DUMPBIN" != ":"; then
5917     NM="$DUMPBIN"
5918   fi
5919 fi
5920 test -z "$NM" && NM=nm
5921
5922
5923
5924
5925
5926
5927 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5928 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5929 if test "${lt_cv_nm_interface+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   lt_cv_nm_interface="BSD nm"
5933   echo "int some_variable = 0;" > conftest.$ac_ext
5934   (eval echo "\"\$as_me:5934: $ac_compile\"" >&5)
5935   (eval "$ac_compile" 2>conftest.err)
5936   cat conftest.err >&5
5937   (eval echo "\"\$as_me:5937: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5938   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5939   cat conftest.err >&5
5940   (eval echo "\"\$as_me:5940: output\"" >&5)
5941   cat conftest.out >&5
5942   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5943     lt_cv_nm_interface="MS dumpbin"
5944   fi
5945   rm -f conftest*
5946 fi
5947 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5948 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5949
5950 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5951 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5952 LN_S=$as_ln_s
5953 if test "$LN_S" = "ln -s"; then
5954   { echo "$as_me:$LINENO: result: yes" >&5
5955 echo "${ECHO_T}yes" >&6; }
5956 else
5957   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5958 echo "${ECHO_T}no, using $LN_S" >&6; }
5959 fi
5960
5961 # find the maximum length of command line arguments
5962 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5963 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5964 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5965   echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967     i=0
5968   teststring="ABCD"
5969
5970   case $build_os in
5971   msdosdjgpp*)
5972     # On DJGPP, this test can blow up pretty badly due to problems in libc
5973     # (any single argument exceeding 2000 bytes causes a buffer overrun
5974     # during glob expansion).  Even if it were fixed, the result of this
5975     # check would be larger than it should be.
5976     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5977     ;;
5978
5979   gnu*)
5980     # Under GNU Hurd, this test is not required because there is
5981     # no limit to the length of command line arguments.
5982     # Libtool will interpret -1 as no limit whatsoever
5983     lt_cv_sys_max_cmd_len=-1;
5984     ;;
5985
5986   cygwin* | mingw* | cegcc*)
5987     # On Win9x/ME, this test blows up -- it succeeds, but takes
5988     # about 5 minutes as the teststring grows exponentially.
5989     # Worse, since 9x/ME are not pre-emptively multitasking,
5990     # you end up with a "frozen" computer, even though with patience
5991     # the test eventually succeeds (with a max line length of 256k).
5992     # Instead, let's just punt: use the minimum linelength reported by
5993     # all of the supported platforms: 8192 (on NT/2K/XP).
5994     lt_cv_sys_max_cmd_len=8192;
5995     ;;
5996
5997   amigaos*)
5998     # On AmigaOS with pdksh, this test takes hours, literally.
5999     # So we just punt and use a minimum line length of 8192.
6000     lt_cv_sys_max_cmd_len=8192;
6001     ;;
6002
6003   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6004     # This has been around since 386BSD, at least.  Likely further.
6005     if test -x /sbin/sysctl; then
6006       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6007     elif test -x /usr/sbin/sysctl; then
6008       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6009     else
6010       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6011     fi
6012     # And add a safety zone
6013     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6014     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6015     ;;
6016
6017   interix*)
6018     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6019     lt_cv_sys_max_cmd_len=196608
6020     ;;
6021
6022   osf*)
6023     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6024     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6025     # nice to cause kernel panics so lets avoid the loop below.
6026     # First set a reasonable default.
6027     lt_cv_sys_max_cmd_len=16384
6028     #
6029     if test -x /sbin/sysconfig; then
6030       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6031         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6032       esac
6033     fi
6034     ;;
6035   sco3.2v5*)
6036     lt_cv_sys_max_cmd_len=102400
6037     ;;
6038   sysv5* | sco5v6* | sysv4.2uw2*)
6039     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6040     if test -n "$kargmax"; then
6041       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6042     else
6043       lt_cv_sys_max_cmd_len=32768
6044     fi
6045     ;;
6046   *)
6047     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6048     if test -n "$lt_cv_sys_max_cmd_len"; then
6049       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6050       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6051     else
6052       # Make teststring a little bigger before we do anything with it.
6053       # a 1K string should be a reasonable start.
6054       for i in 1 2 3 4 5 6 7 8 ; do
6055         teststring=$teststring$teststring
6056       done
6057       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6058       # If test is not a shell built-in, we'll probably end up computing a
6059       # maximum length that is only half of the actual maximum length, but
6060       # we can't tell.
6061       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6062                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6063               test $i != 17 # 1/2 MB should be enough
6064       do
6065         i=`expr $i + 1`
6066         teststring=$teststring$teststring
6067       done
6068       # Only check the string length outside the loop.
6069       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6070       teststring=
6071       # Add a significant safety factor because C++ compilers can tack on
6072       # massive amounts of additional arguments before passing them to the
6073       # linker.  It appears as though 1/2 is a usable value.
6074       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6075     fi
6076     ;;
6077   esac
6078
6079 fi
6080
6081 if test -n $lt_cv_sys_max_cmd_len ; then
6082   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6083 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6084 else
6085   { echo "$as_me:$LINENO: result: none" >&5
6086 echo "${ECHO_T}none" >&6; }
6087 fi
6088 max_cmd_len=$lt_cv_sys_max_cmd_len
6089
6090
6091
6092
6093
6094
6095 : ${CP="cp -f"}
6096 : ${MV="mv -f"}
6097 : ${RM="rm -f"}
6098
6099 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6100 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6101 # Try some XSI features
6102 xsi_shell=no
6103 ( _lt_dummy="a/b/c"
6104   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6105       = c,a/b,, \
6106     && eval 'test $(( 1 + 1 )) -eq 2 \
6107     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6108   && xsi_shell=yes
6109 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6110 echo "${ECHO_T}$xsi_shell" >&6; }
6111
6112
6113 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6114 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6115 lt_shell_append=no
6116 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6117     >/dev/null 2>&1 \
6118   && lt_shell_append=yes
6119 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6120 echo "${ECHO_T}$lt_shell_append" >&6; }
6121
6122
6123 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6124   lt_unset=unset
6125 else
6126   lt_unset=false
6127 fi
6128
6129
6130
6131
6132
6133 # test EBCDIC or ASCII
6134 case `echo X|tr X '\101'` in
6135  A) # ASCII based system
6136     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6137   lt_SP2NL='tr \040 \012'
6138   lt_NL2SP='tr \015\012 \040\040'
6139   ;;
6140  *) # EBCDIC based system
6141   lt_SP2NL='tr \100 \n'
6142   lt_NL2SP='tr \r\n \100\100'
6143   ;;
6144 esac
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6155 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6156 if test "${lt_cv_ld_reload_flag+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   lt_cv_ld_reload_flag='-r'
6160 fi
6161 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6162 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6163 reload_flag=$lt_cv_ld_reload_flag
6164 case $reload_flag in
6165 "" | " "*) ;;
6166 *) reload_flag=" $reload_flag" ;;
6167 esac
6168 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6169 case $host_os in
6170   darwin*)
6171     if test "$GCC" = yes; then
6172       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6173     else
6174       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6175     fi
6176     ;;
6177 esac
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187 if test -n "$ac_tool_prefix"; then
6188   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6189 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   if test -n "$OBJDUMP"; then
6196   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201   IFS=$as_save_IFS
6202   test -z "$as_dir" && as_dir=.
6203   for ac_exec_ext in '' $ac_executable_extensions; do
6204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207     break 2
6208   fi
6209 done
6210 done
6211 IFS=$as_save_IFS
6212
6213 fi
6214 fi
6215 OBJDUMP=$ac_cv_prog_OBJDUMP
6216 if test -n "$OBJDUMP"; then
6217   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6218 echo "${ECHO_T}$OBJDUMP" >&6; }
6219 else
6220   { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6222 fi
6223
6224
6225 fi
6226 if test -z "$ac_cv_prog_OBJDUMP"; then
6227   ac_ct_OBJDUMP=$OBJDUMP
6228   # Extract the first word of "objdump", so it can be a program name with args.
6229 set dummy objdump; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   if test -n "$ac_ct_OBJDUMP"; then
6236   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241   IFS=$as_save_IFS
6242   test -z "$as_dir" && as_dir=.
6243   for ac_exec_ext in '' $ac_executable_extensions; do
6244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247     break 2
6248   fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253 fi
6254 fi
6255 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6256 if test -n "$ac_ct_OBJDUMP"; then
6257   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6258 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6259 else
6260   { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6262 fi
6263
6264   if test "x$ac_ct_OBJDUMP" = x; then
6265     OBJDUMP="false"
6266   else
6267     case $cross_compiling:$ac_tool_warned in
6268 yes:)
6269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6270 whose name does not start with the host triplet.  If you think this
6271 configuration is useful to you, please write to autoconf@gnu.org." >&5
6272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6273 whose name does not start with the host triplet.  If you think this
6274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6275 ac_tool_warned=yes ;;
6276 esac
6277     OBJDUMP=$ac_ct_OBJDUMP
6278   fi
6279 else
6280   OBJDUMP="$ac_cv_prog_OBJDUMP"
6281 fi
6282
6283 test -z "$OBJDUMP" && OBJDUMP=objdump
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6294 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6295 if test "${lt_cv_deplibs_check_method+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   lt_cv_file_magic_cmd='$MAGIC_CMD'
6299 lt_cv_file_magic_test_file=
6300 lt_cv_deplibs_check_method='unknown'
6301 # Need to set the preceding variable on all platforms that support
6302 # interlibrary dependencies.
6303 # 'none' -- dependencies not supported.
6304 # `unknown' -- same as none, but documents that we really don't know.
6305 # 'pass_all' -- all dependencies passed with no checks.
6306 # 'test_compile' -- check by making test program.
6307 # 'file_magic [[regex]]' -- check by looking for files in library path
6308 # which responds to the $file_magic_cmd with a given extended regex.
6309 # If you have `file' or equivalent on your system and you're not sure
6310 # whether `pass_all' will *always* work, you probably want this one.
6311
6312 case $host_os in
6313 aix[4-9]*)
6314   lt_cv_deplibs_check_method=pass_all
6315   ;;
6316
6317 beos*)
6318   lt_cv_deplibs_check_method=pass_all
6319   ;;
6320
6321 bsdi[45]*)
6322   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6323   lt_cv_file_magic_cmd='/usr/bin/file -L'
6324   lt_cv_file_magic_test_file=/shlib/libc.so
6325   ;;
6326
6327 cygwin*)
6328   # func_win32_libid is a shell function defined in ltmain.sh
6329   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6330   lt_cv_file_magic_cmd='func_win32_libid'
6331   ;;
6332
6333 mingw* | pw32*)
6334   # Base MSYS/MinGW do not provide the 'file' command needed by
6335   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6336   # unless we find 'file', for example because we are cross-compiling.
6337   if ( file / ) >/dev/null 2>&1; then
6338     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6339     lt_cv_file_magic_cmd='func_win32_libid'
6340   else
6341     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6342     lt_cv_file_magic_cmd='$OBJDUMP -f'
6343   fi
6344   ;;
6345
6346 cegcc)
6347   # use the weaker test based on 'objdump'. See mingw*.
6348   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6349   lt_cv_file_magic_cmd='$OBJDUMP -f'
6350   ;;
6351
6352 darwin* | rhapsody*)
6353   lt_cv_deplibs_check_method=pass_all
6354   ;;
6355
6356 freebsd* | dragonfly*)
6357   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6358     case $host_cpu in
6359     i*86 )
6360       # Not sure whether the presence of OpenBSD here was a mistake.
6361       # Let's accept both of them until this is cleared up.
6362       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6363       lt_cv_file_magic_cmd=/usr/bin/file
6364       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6365       ;;
6366     esac
6367   else
6368     lt_cv_deplibs_check_method=pass_all
6369   fi
6370   ;;
6371
6372 gnu*)
6373   lt_cv_deplibs_check_method=pass_all
6374   ;;
6375
6376 hpux10.20* | hpux11*)
6377   lt_cv_file_magic_cmd=/usr/bin/file
6378   case $host_cpu in
6379   ia64*)
6380     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6381     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6382     ;;
6383   hppa*64*)
6384     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]'
6385     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6386     ;;
6387   *)
6388     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6389     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6390     ;;
6391   esac
6392   ;;
6393
6394 interix[3-9]*)
6395   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6396   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6397   ;;
6398
6399 irix5* | irix6* | nonstopux*)
6400   case $LD in
6401   *-32|*"-32 ") libmagic=32-bit;;
6402   *-n32|*"-n32 ") libmagic=N32;;
6403   *-64|*"-64 ") libmagic=64-bit;;
6404   *) libmagic=never-match;;
6405   esac
6406   lt_cv_deplibs_check_method=pass_all
6407   ;;
6408
6409 # This must be Linux ELF.
6410 linux* | k*bsd*-gnu)
6411   lt_cv_deplibs_check_method=pass_all
6412   ;;
6413
6414 netbsd*)
6415   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6416     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6417   else
6418     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6419   fi
6420   ;;
6421
6422 newos6*)
6423   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6424   lt_cv_file_magic_cmd=/usr/bin/file
6425   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6426   ;;
6427
6428 *nto* | *qnx*)
6429   lt_cv_deplibs_check_method=pass_all
6430   ;;
6431
6432 openbsd*)
6433   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6434     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6435   else
6436     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6437   fi
6438   ;;
6439
6440 osf3* | osf4* | osf5*)
6441   lt_cv_deplibs_check_method=pass_all
6442   ;;
6443
6444 rdos*)
6445   lt_cv_deplibs_check_method=pass_all
6446   ;;
6447
6448 solaris*)
6449   lt_cv_deplibs_check_method=pass_all
6450   ;;
6451
6452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6453   lt_cv_deplibs_check_method=pass_all
6454   ;;
6455
6456 sysv4 | sysv4.3*)
6457   case $host_vendor in
6458   motorola)
6459     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]'
6460     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6461     ;;
6462   ncr)
6463     lt_cv_deplibs_check_method=pass_all
6464     ;;
6465   sequent)
6466     lt_cv_file_magic_cmd='/bin/file'
6467     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6468     ;;
6469   sni)
6470     lt_cv_file_magic_cmd='/bin/file'
6471     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6472     lt_cv_file_magic_test_file=/lib/libc.so
6473     ;;
6474   siemens)
6475     lt_cv_deplibs_check_method=pass_all
6476     ;;
6477   pc)
6478     lt_cv_deplibs_check_method=pass_all
6479     ;;
6480   esac
6481   ;;
6482
6483 tpf*)
6484   lt_cv_deplibs_check_method=pass_all
6485   ;;
6486 esac
6487
6488 fi
6489 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6490 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6491 file_magic_cmd=$lt_cv_file_magic_cmd
6492 deplibs_check_method=$lt_cv_deplibs_check_method
6493 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506 if test -n "$ac_tool_prefix"; then
6507   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}ar; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_prog_AR+set}" = set; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514   if test -n "$AR"; then
6515   ac_cv_prog_AR="$AR" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520   IFS=$as_save_IFS
6521   test -z "$as_dir" && as_dir=.
6522   for ac_exec_ext in '' $ac_executable_extensions; do
6523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524     ac_cv_prog_AR="${ac_tool_prefix}ar"
6525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526     break 2
6527   fi
6528 done
6529 done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 AR=$ac_cv_prog_AR
6535 if test -n "$AR"; then
6536   { echo "$as_me:$LINENO: result: $AR" >&5
6537 echo "${ECHO_T}$AR" >&6; }
6538 else
6539   { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6541 fi
6542
6543
6544 fi
6545 if test -z "$ac_cv_prog_AR"; then
6546   ac_ct_AR=$AR
6547   # Extract the first word of "ar", so it can be a program name with args.
6548 set dummy ar; ac_word=$2
6549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6551 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6552   echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554   if test -n "$ac_ct_AR"; then
6555   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560   IFS=$as_save_IFS
6561   test -z "$as_dir" && as_dir=.
6562   for ac_exec_ext in '' $ac_executable_extensions; do
6563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564     ac_cv_prog_ac_ct_AR="ar"
6565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566     break 2
6567   fi
6568 done
6569 done
6570 IFS=$as_save_IFS
6571
6572 fi
6573 fi
6574 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6575 if test -n "$ac_ct_AR"; then
6576   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6577 echo "${ECHO_T}$ac_ct_AR" >&6; }
6578 else
6579   { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6581 fi
6582
6583   if test "x$ac_ct_AR" = x; then
6584     AR="false"
6585   else
6586     case $cross_compiling:$ac_tool_warned in
6587 yes:)
6588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6589 whose name does not start with the host triplet.  If you think this
6590 configuration is useful to you, please write to autoconf@gnu.org." >&5
6591 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6592 whose name does not start with the host triplet.  If you think this
6593 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6594 ac_tool_warned=yes ;;
6595 esac
6596     AR=$ac_ct_AR
6597   fi
6598 else
6599   AR="$ac_cv_prog_AR"
6600 fi
6601
6602 test -z "$AR" && AR=ar
6603 test -z "$AR_FLAGS" && AR_FLAGS=cru
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615 if test -n "$ac_tool_prefix"; then
6616   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}strip; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_prog_STRIP+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   if test -n "$STRIP"; then
6624   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629   IFS=$as_save_IFS
6630   test -z "$as_dir" && as_dir=.
6631   for ac_exec_ext in '' $ac_executable_extensions; do
6632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635     break 2
6636   fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641 fi
6642 fi
6643 STRIP=$ac_cv_prog_STRIP
6644 if test -n "$STRIP"; then
6645   { echo "$as_me:$LINENO: result: $STRIP" >&5
6646 echo "${ECHO_T}$STRIP" >&6; }
6647 else
6648   { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6650 fi
6651
6652
6653 fi
6654 if test -z "$ac_cv_prog_STRIP"; then
6655   ac_ct_STRIP=$STRIP
6656   # Extract the first word of "strip", so it can be a program name with args.
6657 set dummy strip; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6661   echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663   if test -n "$ac_ct_STRIP"; then
6664   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671   for ac_exec_ext in '' $ac_executable_extensions; do
6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673     ac_cv_prog_ac_ct_STRIP="strip"
6674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6684 if test -n "$ac_ct_STRIP"; then
6685   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6686 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6687 else
6688   { echo "$as_me:$LINENO: result: no" >&5
6689 echo "${ECHO_T}no" >&6; }
6690 fi
6691
6692   if test "x$ac_ct_STRIP" = x; then
6693     STRIP=":"
6694   else
6695     case $cross_compiling:$ac_tool_warned in
6696 yes:)
6697 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6698 whose name does not start with the host triplet.  If you think this
6699 configuration is useful to you, please write to autoconf@gnu.org." >&5
6700 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6701 whose name does not start with the host triplet.  If you think this
6702 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6703 ac_tool_warned=yes ;;
6704 esac
6705     STRIP=$ac_ct_STRIP
6706   fi
6707 else
6708   STRIP="$ac_cv_prog_STRIP"
6709 fi
6710
6711 test -z "$STRIP" && STRIP=:
6712
6713
6714
6715
6716
6717
6718 if test -n "$ac_tool_prefix"; then
6719   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_RANLIB+set}" = set; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726   if test -n "$RANLIB"; then
6727   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732   IFS=$as_save_IFS
6733   test -z "$as_dir" && as_dir=.
6734   for ac_exec_ext in '' $ac_executable_extensions; do
6735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738     break 2
6739   fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 RANLIB=$ac_cv_prog_RANLIB
6747 if test -n "$RANLIB"; then
6748   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749 echo "${ECHO_T}$RANLIB" >&6; }
6750 else
6751   { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6753 fi
6754
6755
6756 fi
6757 if test -z "$ac_cv_prog_RANLIB"; then
6758   ac_ct_RANLIB=$RANLIB
6759   # Extract the first word of "ranlib", so it can be a program name with args.
6760 set dummy ranlib; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   if test -n "$ac_ct_RANLIB"; then
6767   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   test -z "$as_dir" && as_dir=.
6774   for ac_exec_ext in '' $ac_executable_extensions; do
6775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776     ac_cv_prog_ac_ct_RANLIB="ranlib"
6777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778     break 2
6779   fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787 if test -n "$ac_ct_RANLIB"; then
6788   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6790 else
6791   { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6793 fi
6794
6795   if test "x$ac_ct_RANLIB" = x; then
6796     RANLIB=":"
6797   else
6798     case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet.  If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&5
6803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet.  If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808     RANLIB=$ac_ct_RANLIB
6809   fi
6810 else
6811   RANLIB="$ac_cv_prog_RANLIB"
6812 fi
6813
6814 test -z "$RANLIB" && RANLIB=:
6815
6816
6817
6818
6819
6820
6821 # Determine commands to create old-style static archives.
6822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6823 old_postinstall_cmds='chmod 644 $oldlib'
6824 old_postuninstall_cmds=
6825
6826 if test -n "$RANLIB"; then
6827   case $host_os in
6828   openbsd*)
6829     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6830     ;;
6831   *)
6832     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6833     ;;
6834   esac
6835   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6836 fi
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871 # If no C compiler was specified, use CC.
6872 LTCC=${LTCC-"$CC"}
6873
6874 # If no C compiler flags were specified, use CFLAGS.
6875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6876
6877 # Allow CC to be a program name with arguments.
6878 compiler=$CC
6879
6880
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6883 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6884 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6890
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6893
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6896
6897 # Define system-specific variables.
6898 case $host_os in
6899 aix*)
6900   symcode='[BCDT]'
6901   ;;
6902 cygwin* | mingw* | pw32* | cegcc*)
6903   symcode='[ABCDGISTW]'
6904   ;;
6905 hpux*)
6906   if test "$host_cpu" = ia64; then
6907     symcode='[ABCDEGRST]'
6908   fi
6909   ;;
6910 irix* | nonstopux*)
6911   symcode='[BCDEGRST]'
6912   ;;
6913 osf*)
6914   symcode='[BCDEGQRST]'
6915   ;;
6916 solaris*)
6917   symcode='[BDRT]'
6918   ;;
6919 sco3.2v5*)
6920   symcode='[DT]'
6921   ;;
6922 sysv4.2uw2*)
6923   symcode='[DT]'
6924   ;;
6925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6926   symcode='[ABDT]'
6927   ;;
6928 sysv4)
6929   symcode='[DFNSTU]'
6930   ;;
6931 esac
6932
6933 # If we're using GNU nm, then use its standard symbol codes.
6934 case `$NM -V 2>&1` in
6935 *GNU* | *'with BFD'*)
6936   symcode='[ABCDGIRSTW]' ;;
6937 esac
6938
6939 # Transform an extracted symbol line into a proper C declaration.
6940 # Some systems (esp. on ia64) link data and code symbols differently,
6941 # so use this general approach.
6942 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6943
6944 # Transform an extracted symbol line into symbol name and symbol address
6945 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6946 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'"
6947
6948 # Handle CRLF in mingw tool chain
6949 opt_cr=
6950 case $build_os in
6951 mingw*)
6952   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6953   ;;
6954 esac
6955
6956 # Try without a prefix underscore, then with it.
6957 for ac_symprfx in "" "_"; do
6958
6959   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6960   symxfrm="\\1 $ac_symprfx\\2 \\2"
6961
6962   # Write the raw and C identifiers.
6963   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6964     # Fake it for dumpbin and say T for any non-static function
6965     # and D for any global variable.
6966     # Also find C++ and __fastcall symbols from MSVC++,
6967     # which start with @ or ?.
6968     lt_cv_sys_global_symbol_pipe="$AWK '"\
6969 "     {last_section=section; section=\$ 3};"\
6970 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6971 "     \$ 0!~/External *\|/{next};"\
6972 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6973 "     {if(hide[section]) next};"\
6974 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6975 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6976 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6977 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6978 "     ' prfx=^$ac_symprfx"
6979   else
6980     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6981   fi
6982
6983   # Check to see that the pipe works correctly.
6984   pipe_works=no
6985
6986   rm -f conftest*
6987   cat > conftest.$ac_ext <<_LT_EOF
6988 #ifdef __cplusplus
6989 extern "C" {
6990 #endif
6991 char nm_test_var;
6992 void nm_test_func(void);
6993 void nm_test_func(void){}
6994 #ifdef __cplusplus
6995 }
6996 #endif
6997 int main(){nm_test_var='a';nm_test_func();return(0);}
6998 _LT_EOF
6999
7000   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001   (eval $ac_compile) 2>&5
7002   ac_status=$?
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); }; then
7005     # Now try to grab the symbols.
7006     nlist=conftest.nm
7007     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7008   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7009   ac_status=$?
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); } && test -s "$nlist"; then
7012       # Try sorting and uniquifying the output.
7013       if sort "$nlist" | uniq > "$nlist"T; then
7014         mv -f "$nlist"T "$nlist"
7015       else
7016         rm -f "$nlist"T
7017       fi
7018
7019       # Make sure that we snagged all the symbols we need.
7020       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7021         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7022           cat <<_LT_EOF > conftest.$ac_ext
7023 #ifdef __cplusplus
7024 extern "C" {
7025 #endif
7026
7027 _LT_EOF
7028           # Now generate the symbol file.
7029           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7030
7031           cat <<_LT_EOF >> conftest.$ac_ext
7032
7033 /* The mapping between symbol names and symbols.  */
7034 const struct {
7035   const char *name;
7036   void       *address;
7037 }
7038 lt__PROGRAM__LTX_preloaded_symbols[] =
7039 {
7040   { "@PROGRAM@", (void *) 0 },
7041 _LT_EOF
7042           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7043           cat <<\_LT_EOF >> conftest.$ac_ext
7044   {0, (void *) 0}
7045 };
7046
7047 /* This works around a problem in FreeBSD linker */
7048 #ifdef FREEBSD_WORKAROUND
7049 static const void *lt_preloaded_setup() {
7050   return lt__PROGRAM__LTX_preloaded_symbols;
7051 }
7052 #endif
7053
7054 #ifdef __cplusplus
7055 }
7056 #endif
7057 _LT_EOF
7058           # Now try linking the two files.
7059           mv conftest.$ac_objext conftstm.$ac_objext
7060           lt_save_LIBS="$LIBS"
7061           lt_save_CFLAGS="$CFLAGS"
7062           LIBS="conftstm.$ac_objext"
7063           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7064           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065   (eval $ac_link) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7069             pipe_works=yes
7070           fi
7071           LIBS="$lt_save_LIBS"
7072           CFLAGS="$lt_save_CFLAGS"
7073         else
7074           echo "cannot find nm_test_func in $nlist" >&5
7075         fi
7076       else
7077         echo "cannot find nm_test_var in $nlist" >&5
7078       fi
7079     else
7080       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7081     fi
7082   else
7083     echo "$progname: failed program was:" >&5
7084     cat conftest.$ac_ext >&5
7085   fi
7086   rm -rf conftest* conftst*
7087
7088   # Do not use the global_symbol_pipe unless it works.
7089   if test "$pipe_works" = yes; then
7090     break
7091   else
7092     lt_cv_sys_global_symbol_pipe=
7093   fi
7094 done
7095
7096 fi
7097
7098 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7099   lt_cv_sys_global_symbol_to_cdecl=
7100 fi
7101 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7102   { echo "$as_me:$LINENO: result: failed" >&5
7103 echo "${ECHO_T}failed" >&6; }
7104 else
7105   { echo "$as_me:$LINENO: result: ok" >&5
7106 echo "${ECHO_T}ok" >&6; }
7107 fi
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130 # Check whether --enable-libtool-lock was given.
7131 if test "${enable_libtool_lock+set}" = set; then
7132   enableval=$enable_libtool_lock;
7133 fi
7134
7135 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7136
7137 # Some flags need to be propagated to the compiler or linker for good
7138 # libtool support.
7139 case $host in
7140 ia64-*-hpux*)
7141   # Find out which ABI we are using.
7142   echo 'int i;' > conftest.$ac_ext
7143   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144   (eval $ac_compile) 2>&5
7145   ac_status=$?
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); }; then
7148     case `/usr/bin/file conftest.$ac_objext` in
7149       *ELF-32*)
7150         HPUX_IA64_MODE="32"
7151         ;;
7152       *ELF-64*)
7153         HPUX_IA64_MODE="64"
7154         ;;
7155     esac
7156   fi
7157   rm -rf conftest*
7158   ;;
7159 *-*-irix6*)
7160   # Find out which ABI we are using.
7161   echo '#line 7161 "configure"' > conftest.$ac_ext
7162   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163   (eval $ac_compile) 2>&5
7164   ac_status=$?
7165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166   (exit $ac_status); }; then
7167     if test "$lt_cv_prog_gnu_ld" = yes; then
7168       case `/usr/bin/file conftest.$ac_objext` in
7169         *32-bit*)
7170           LD="${LD-ld} -melf32bsmip"
7171           ;;
7172         *N32*)
7173           LD="${LD-ld} -melf32bmipn32"
7174           ;;
7175         *64-bit*)
7176           LD="${LD-ld} -melf64bmip"
7177         ;;
7178       esac
7179     else
7180       case `/usr/bin/file conftest.$ac_objext` in
7181         *32-bit*)
7182           LD="${LD-ld} -32"
7183           ;;
7184         *N32*)
7185           LD="${LD-ld} -n32"
7186           ;;
7187         *64-bit*)
7188           LD="${LD-ld} -64"
7189           ;;
7190       esac
7191     fi
7192   fi
7193   rm -rf conftest*
7194   ;;
7195
7196 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7197 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
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.o` in
7206       *32-bit*)
7207         case $host in
7208           x86_64-*kfreebsd*-gnu)
7209             LD="${LD-ld} -m elf_i386_fbsd"
7210             ;;
7211           x86_64-*linux*)
7212             LD="${LD-ld} -m elf_i386"
7213             ;;
7214           ppc64-*linux*|powerpc64-*linux*)
7215             LD="${LD-ld} -m elf32ppclinux"
7216             ;;
7217           s390x-*linux*)
7218             LD="${LD-ld} -m elf_s390"
7219             ;;
7220           sparc64-*linux*)
7221             LD="${LD-ld} -m elf32_sparc"
7222             ;;
7223         esac
7224         ;;
7225       *64-bit*)
7226         case $host in
7227           x86_64-*kfreebsd*-gnu)
7228             LD="${LD-ld} -m elf_x86_64_fbsd"
7229             ;;
7230           x86_64-*linux*)
7231             LD="${LD-ld} -m elf_x86_64"
7232             ;;
7233           ppc*-*linux*|powerpc*-*linux*)
7234             LD="${LD-ld} -m elf64ppc"
7235             ;;
7236           s390*-*linux*|s390*-*tpf*)
7237             LD="${LD-ld} -m elf64_s390"
7238             ;;
7239           sparc*-*linux*)
7240             LD="${LD-ld} -m elf64_sparc"
7241             ;;
7242         esac
7243         ;;
7244     esac
7245   fi
7246   rm -rf conftest*
7247   ;;
7248
7249 *-*-sco3.2v5*)
7250   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7251   SAVE_CFLAGS="$CFLAGS"
7252   CFLAGS="$CFLAGS -belf"
7253   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7254 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7255 if test "${lt_cv_cc_needs_belf+set}" = set; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   ac_ext=c
7259 ac_cpp='$CPP $CPPFLAGS'
7260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7263
7264      cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h.  */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h.  */
7270
7271 int
7272 main ()
7273 {
7274
7275   ;
7276   return 0;
7277 }
7278 _ACEOF
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (ac_try="$ac_link"
7281 case "(($ac_try" in
7282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7283   *) ac_try_echo=$ac_try;;
7284 esac
7285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7286   (eval "$ac_link") 2>conftest.er1
7287   ac_status=$?
7288   grep -v '^ *+' conftest.er1 >conftest.err
7289   rm -f conftest.er1
7290   cat conftest.err >&5
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); } && {
7293          test -z "$ac_c_werror_flag" ||
7294          test ! -s conftest.err
7295        } && test -s conftest$ac_exeext &&
7296        $as_test_x conftest$ac_exeext; then
7297   lt_cv_cc_needs_belf=yes
7298 else
7299   echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302         lt_cv_cc_needs_belf=no
7303 fi
7304
7305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7306       conftest$ac_exeext conftest.$ac_ext
7307      ac_ext=c
7308 ac_cpp='$CPP $CPPFLAGS'
7309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7312
7313 fi
7314 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7315 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7316   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7317     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7318     CFLAGS="$SAVE_CFLAGS"
7319   fi
7320   ;;
7321 sparc*-*solaris*)
7322   # Find out which ABI we are using.
7323   echo 'int i;' > conftest.$ac_ext
7324   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325   (eval $ac_compile) 2>&5
7326   ac_status=$?
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); }; then
7329     case `/usr/bin/file conftest.o` in
7330     *64-bit*)
7331       case $lt_cv_prog_gnu_ld in
7332       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7333       *)
7334         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7335           LD="${LD-ld} -64"
7336         fi
7337         ;;
7338       esac
7339       ;;
7340     esac
7341   fi
7342   rm -rf conftest*
7343   ;;
7344 esac
7345
7346 need_locks="$enable_libtool_lock"
7347
7348
7349   case $host_os in
7350     rhapsody* | darwin*)
7351     if test -n "$ac_tool_prefix"; then
7352   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   if test -n "$DSYMUTIL"; then
7360   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367   for ac_exec_ext in '' $ac_executable_extensions; do
7368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371     break 2
7372   fi
7373 done
7374 done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7380 if test -n "$DSYMUTIL"; then
7381   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7382 echo "${ECHO_T}$DSYMUTIL" >&6; }
7383 else
7384   { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7386 fi
7387
7388
7389 fi
7390 if test -z "$ac_cv_prog_DSYMUTIL"; then
7391   ac_ct_DSYMUTIL=$DSYMUTIL
7392   # Extract the first word of "dsymutil", so it can be a program name with args.
7393 set dummy dsymutil; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   if test -n "$ac_ct_DSYMUTIL"; then
7400   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407   for ac_exec_ext in '' $ac_executable_extensions; do
7408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7416
7417 fi
7418 fi
7419 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7420 if test -n "$ac_ct_DSYMUTIL"; then
7421   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7422 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7423 else
7424   { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7426 fi
7427
7428   if test "x$ac_ct_DSYMUTIL" = x; then
7429     DSYMUTIL=":"
7430   else
7431     case $cross_compiling:$ac_tool_warned in
7432 yes:)
7433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7434 whose name does not start with the host triplet.  If you think this
7435 configuration is useful to you, please write to autoconf@gnu.org." >&5
7436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7437 whose name does not start with the host triplet.  If you think this
7438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7439 ac_tool_warned=yes ;;
7440 esac
7441     DSYMUTIL=$ac_ct_DSYMUTIL
7442   fi
7443 else
7444   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7445 fi
7446
7447     if test -n "$ac_tool_prefix"; then
7448   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7449 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   if test -n "$NMEDIT"; then
7456   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463   for ac_exec_ext in '' $ac_executable_extensions; do
7464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470 done
7471 IFS=$as_save_IFS
7472
7473 fi
7474 fi
7475 NMEDIT=$ac_cv_prog_NMEDIT
7476 if test -n "$NMEDIT"; then
7477   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7478 echo "${ECHO_T}$NMEDIT" >&6; }
7479 else
7480   { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7482 fi
7483
7484
7485 fi
7486 if test -z "$ac_cv_prog_NMEDIT"; then
7487   ac_ct_NMEDIT=$NMEDIT
7488   # Extract the first word of "nmedit", so it can be a program name with args.
7489 set dummy nmedit; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   if test -n "$ac_ct_NMEDIT"; then
7496   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7497 else
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7500 do
7501   IFS=$as_save_IFS
7502   test -z "$as_dir" && as_dir=.
7503   for ac_exec_ext in '' $ac_executable_extensions; do
7504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507     break 2
7508   fi
7509 done
7510 done
7511 IFS=$as_save_IFS
7512
7513 fi
7514 fi
7515 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7516 if test -n "$ac_ct_NMEDIT"; then
7517   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7518 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7519 else
7520   { echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6; }
7522 fi
7523
7524   if test "x$ac_ct_NMEDIT" = x; then
7525     NMEDIT=":"
7526   else
7527     case $cross_compiling:$ac_tool_warned in
7528 yes:)
7529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7530 whose name does not start with the host triplet.  If you think this
7531 configuration is useful to you, please write to autoconf@gnu.org." >&5
7532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7533 whose name does not start with the host triplet.  If you think this
7534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7535 ac_tool_warned=yes ;;
7536 esac
7537     NMEDIT=$ac_ct_NMEDIT
7538   fi
7539 else
7540   NMEDIT="$ac_cv_prog_NMEDIT"
7541 fi
7542
7543     if test -n "$ac_tool_prefix"; then
7544   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7545 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_prog_LIPO+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   if test -n "$LIPO"; then
7552   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557   IFS=$as_save_IFS
7558   test -z "$as_dir" && as_dir=.
7559   for ac_exec_ext in '' $ac_executable_extensions; do
7560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563     break 2
7564   fi
7565 done
7566 done
7567 IFS=$as_save_IFS
7568
7569 fi
7570 fi
7571 LIPO=$ac_cv_prog_LIPO
7572 if test -n "$LIPO"; then
7573   { echo "$as_me:$LINENO: result: $LIPO" >&5
7574 echo "${ECHO_T}$LIPO" >&6; }
7575 else
7576   { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7578 fi
7579
7580
7581 fi
7582 if test -z "$ac_cv_prog_LIPO"; then
7583   ac_ct_LIPO=$LIPO
7584   # Extract the first word of "lipo", so it can be a program name with args.
7585 set dummy lipo; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7589   echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591   if test -n "$ac_ct_LIPO"; then
7592   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599   for ac_exec_ext in '' $ac_executable_extensions; do
7600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601     ac_cv_prog_ac_ct_LIPO="lipo"
7602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609 fi
7610 fi
7611 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7612 if test -n "$ac_ct_LIPO"; then
7613   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7614 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7615 else
7616   { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7618 fi
7619
7620   if test "x$ac_ct_LIPO" = x; then
7621     LIPO=":"
7622   else
7623     case $cross_compiling:$ac_tool_warned in
7624 yes:)
7625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7626 whose name does not start with the host triplet.  If you think this
7627 configuration is useful to you, please write to autoconf@gnu.org." >&5
7628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7629 whose name does not start with the host triplet.  If you think this
7630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7631 ac_tool_warned=yes ;;
7632 esac
7633     LIPO=$ac_ct_LIPO
7634   fi
7635 else
7636   LIPO="$ac_cv_prog_LIPO"
7637 fi
7638
7639     if test -n "$ac_tool_prefix"; then
7640   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}otool; ac_word=$2
7642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7644 if test "${ac_cv_prog_OTOOL+set}" = set; then
7645   echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647   if test -n "$OTOOL"; then
7648   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653   IFS=$as_save_IFS
7654   test -z "$as_dir" && as_dir=.
7655   for ac_exec_ext in '' $ac_executable_extensions; do
7656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659     break 2
7660   fi
7661 done
7662 done
7663 IFS=$as_save_IFS
7664
7665 fi
7666 fi
7667 OTOOL=$ac_cv_prog_OTOOL
7668 if test -n "$OTOOL"; then
7669   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7670 echo "${ECHO_T}$OTOOL" >&6; }
7671 else
7672   { echo "$as_me:$LINENO: result: no" >&5
7673 echo "${ECHO_T}no" >&6; }
7674 fi
7675
7676
7677 fi
7678 if test -z "$ac_cv_prog_OTOOL"; then
7679   ac_ct_OTOOL=$OTOOL
7680   # Extract the first word of "otool", so it can be a program name with args.
7681 set dummy otool; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   if test -n "$ac_ct_OTOOL"; then
7688   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695   for ac_exec_ext in '' $ac_executable_extensions; do
7696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697     ac_cv_prog_ac_ct_OTOOL="otool"
7698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702 done
7703 IFS=$as_save_IFS
7704
7705 fi
7706 fi
7707 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7708 if test -n "$ac_ct_OTOOL"; then
7709   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7710 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7711 else
7712   { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7714 fi
7715
7716   if test "x$ac_ct_OTOOL" = x; then
7717     OTOOL=":"
7718   else
7719     case $cross_compiling:$ac_tool_warned in
7720 yes:)
7721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7722 whose name does not start with the host triplet.  If you think this
7723 configuration is useful to you, please write to autoconf@gnu.org." >&5
7724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7725 whose name does not start with the host triplet.  If you think this
7726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7727 ac_tool_warned=yes ;;
7728 esac
7729     OTOOL=$ac_ct_OTOOL
7730   fi
7731 else
7732   OTOOL="$ac_cv_prog_OTOOL"
7733 fi
7734
7735     if test -n "$ac_tool_prefix"; then
7736   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7737 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7741   echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743   if test -n "$OTOOL64"; then
7744   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7748 do
7749   IFS=$as_save_IFS
7750   test -z "$as_dir" && as_dir=.
7751   for ac_exec_ext in '' $ac_executable_extensions; do
7752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755     break 2
7756   fi
7757 done
7758 done
7759 IFS=$as_save_IFS
7760
7761 fi
7762 fi
7763 OTOOL64=$ac_cv_prog_OTOOL64
7764 if test -n "$OTOOL64"; then
7765   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7766 echo "${ECHO_T}$OTOOL64" >&6; }
7767 else
7768   { echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6; }
7770 fi
7771
7772
7773 fi
7774 if test -z "$ac_cv_prog_OTOOL64"; then
7775   ac_ct_OTOOL64=$OTOOL64
7776   # Extract the first word of "otool64", so it can be a program name with args.
7777 set dummy otool64; ac_word=$2
7778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   if test -n "$ac_ct_OTOOL64"; then
7784   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7785 else
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH
7788 do
7789   IFS=$as_save_IFS
7790   test -z "$as_dir" && as_dir=.
7791   for ac_exec_ext in '' $ac_executable_extensions; do
7792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7793     ac_cv_prog_ac_ct_OTOOL64="otool64"
7794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7795     break 2
7796   fi
7797 done
7798 done
7799 IFS=$as_save_IFS
7800
7801 fi
7802 fi
7803 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7804 if test -n "$ac_ct_OTOOL64"; then
7805   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7806 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7807 else
7808   { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7810 fi
7811
7812   if test "x$ac_ct_OTOOL64" = x; then
7813     OTOOL64=":"
7814   else
7815     case $cross_compiling:$ac_tool_warned in
7816 yes:)
7817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7818 whose name does not start with the host triplet.  If you think this
7819 configuration is useful to you, please write to autoconf@gnu.org." >&5
7820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7821 whose name does not start with the host triplet.  If you think this
7822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7823 ac_tool_warned=yes ;;
7824 esac
7825     OTOOL64=$ac_ct_OTOOL64
7826   fi
7827 else
7828   OTOOL64="$ac_cv_prog_OTOOL64"
7829 fi
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7858 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7859 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   lt_cv_apple_cc_single_mod=no
7863       if test -z "${LT_MULTI_MODULE}"; then
7864         # By default we will add the -single_module flag. You can override
7865         # by either setting the environment variable LT_MULTI_MODULE
7866         # non-empty at configure time, or by adding -multi_module to the
7867         # link flags.
7868         rm -rf libconftest.dylib*
7869         echo "int foo(void){return 1;}" > conftest.c
7870         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7871 -dynamiclib -Wl,-single_module conftest.c" >&5
7872         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7873           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7874         _lt_result=$?
7875         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7876           lt_cv_apple_cc_single_mod=yes
7877         else
7878           cat conftest.err >&5
7879         fi
7880         rm -rf libconftest.dylib*
7881         rm -f conftest.*
7882       fi
7883 fi
7884 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7885 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7886     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7887 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7888 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7889   echo $ECHO_N "(cached) $ECHO_C" >&6
7890 else
7891   lt_cv_ld_exported_symbols_list=no
7892       save_LDFLAGS=$LDFLAGS
7893       echo "_main" > conftest.sym
7894       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7895       cat >conftest.$ac_ext <<_ACEOF
7896 /* confdefs.h.  */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h.  */
7901
7902 int
7903 main ()
7904 {
7905
7906   ;
7907   return 0;
7908 }
7909 _ACEOF
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (ac_try="$ac_link"
7912 case "(($ac_try" in
7913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914   *) ac_try_echo=$ac_try;;
7915 esac
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917   (eval "$ac_link") 2>conftest.er1
7918   ac_status=$?
7919   grep -v '^ *+' conftest.er1 >conftest.err
7920   rm -f conftest.er1
7921   cat conftest.err >&5
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); } && {
7924          test -z "$ac_c_werror_flag" ||
7925          test ! -s conftest.err
7926        } && test -s conftest$ac_exeext &&
7927        $as_test_x conftest$ac_exeext; then
7928   lt_cv_ld_exported_symbols_list=yes
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933         lt_cv_ld_exported_symbols_list=no
7934 fi
7935
7936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7937       conftest$ac_exeext conftest.$ac_ext
7938         LDFLAGS="$save_LDFLAGS"
7939
7940 fi
7941 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7942 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7943     case $host_os in
7944     rhapsody* | darwin1.[012])
7945       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7946     darwin1.*)
7947       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7948     darwin*) # darwin 5.x on
7949       # if running on 10.5 or later, the deployment target defaults
7950       # to the OS version, if on x86, and 10.4, the deployment
7951       # target defaults to 10.4. Don't you love it?
7952       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7953         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7954           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7955         10.[012]*)
7956           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7957         10.*)
7958           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7959       esac
7960     ;;
7961   esac
7962     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7963       _lt_dar_single_mod='$single_module'
7964     fi
7965     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7966       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7967     else
7968       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7969     fi
7970     if test "$DSYMUTIL" != ":"; then
7971       _lt_dsymutil='~$DSYMUTIL $lib || :'
7972     else
7973       _lt_dsymutil=
7974     fi
7975     ;;
7976   esac
7977
7978 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7979 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7980 if test "${ac_cv_header_stdc+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h.  */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h.  */
7989 #include <stdlib.h>
7990 #include <stdarg.h>
7991 #include <string.h>
7992 #include <float.h>
7993
7994 int
7995 main ()
7996 {
7997
7998   ;
7999   return 0;
8000 }
8001 _ACEOF
8002 rm -f conftest.$ac_objext
8003 if { (ac_try="$ac_compile"
8004 case "(($ac_try" in
8005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006   *) ac_try_echo=$ac_try;;
8007 esac
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009   (eval "$ac_compile") 2>conftest.er1
8010   ac_status=$?
8011   grep -v '^ *+' conftest.er1 >conftest.err
8012   rm -f conftest.er1
8013   cat conftest.err >&5
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); } && {
8016          test -z "$ac_c_werror_flag" ||
8017          test ! -s conftest.err
8018        } && test -s conftest.$ac_objext; then
8019   ac_cv_header_stdc=yes
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024         ac_cv_header_stdc=no
8025 fi
8026
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028
8029 if test $ac_cv_header_stdc = yes; then
8030   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8031   cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h.  */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h.  */
8037 #include <string.h>
8038
8039 _ACEOF
8040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8041   $EGREP "memchr" >/dev/null 2>&1; then
8042   :
8043 else
8044   ac_cv_header_stdc=no
8045 fi
8046 rm -f conftest*
8047
8048 fi
8049
8050 if test $ac_cv_header_stdc = yes; then
8051   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8052   cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h.  */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h.  */
8058 #include <stdlib.h>
8059
8060 _ACEOF
8061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8062   $EGREP "free" >/dev/null 2>&1; then
8063   :
8064 else
8065   ac_cv_header_stdc=no
8066 fi
8067 rm -f conftest*
8068
8069 fi
8070
8071 if test $ac_cv_header_stdc = yes; then
8072   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8073   if test "$cross_compiling" = yes; then
8074   :
8075 else
8076   cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h.  */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h.  */
8082 #include <ctype.h>
8083 #include <stdlib.h>
8084 #if ((' ' & 0x0FF) == 0x020)
8085 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8086 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8087 #else
8088 # define ISLOWER(c) \
8089                    (('a' <= (c) && (c) <= 'i') \
8090                      || ('j' <= (c) && (c) <= 'r') \
8091                      || ('s' <= (c) && (c) <= 'z'))
8092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8093 #endif
8094
8095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8096 int
8097 main ()
8098 {
8099   int i;
8100   for (i = 0; i < 256; i++)
8101     if (XOR (islower (i), ISLOWER (i))
8102         || toupper (i) != TOUPPER (i))
8103       return 2;
8104   return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest$ac_exeext
8108 if { (ac_try="$ac_link"
8109 case "(($ac_try" in
8110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111   *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114   (eval "$ac_link") 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8118   { (case "(($ac_try" in
8119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120   *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123   (eval "$ac_try") 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; }; then
8127   :
8128 else
8129   echo "$as_me: program exited with status $ac_status" >&5
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ( exit $ac_status )
8134 ac_cv_header_stdc=no
8135 fi
8136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8137 fi
8138
8139
8140 fi
8141 fi
8142 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8143 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8144 if test $ac_cv_header_stdc = yes; then
8145
8146 cat >>confdefs.h <<\_ACEOF
8147 #define STDC_HEADERS 1
8148 _ACEOF
8149
8150 fi
8151
8152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8163                   inttypes.h stdint.h unistd.h
8164 do
8165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8169   echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171   cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177 $ac_includes_default
8178
8179 #include <$ac_header>
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (ac_try="$ac_compile"
8183 case "(($ac_try" in
8184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185   *) ac_try_echo=$ac_try;;
8186 esac
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188   (eval "$ac_compile") 2>conftest.er1
8189   ac_status=$?
8190   grep -v '^ *+' conftest.er1 >conftest.err
8191   rm -f conftest.er1
8192   cat conftest.err >&5
8193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); } && {
8195          test -z "$ac_c_werror_flag" ||
8196          test ! -s conftest.err
8197        } && test -s conftest.$ac_objext; then
8198   eval "$as_ac_Header=yes"
8199 else
8200   echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203         eval "$as_ac_Header=no"
8204 fi
8205
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 fi
8208 ac_res=`eval echo '${'$as_ac_Header'}'`
8209                { echo "$as_me:$LINENO: result: $ac_res" >&5
8210 echo "${ECHO_T}$ac_res" >&6; }
8211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212   cat >>confdefs.h <<_ACEOF
8213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8214 _ACEOF
8215
8216 fi
8217
8218 done
8219
8220
8221
8222 for ac_header in dlfcn.h
8223 do
8224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h.  */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h.  */
8236 $ac_includes_default
8237
8238 #include <$ac_header>
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8242 case "(($ac_try" in
8243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244   *) ac_try_echo=$ac_try;;
8245 esac
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247   (eval "$ac_compile") 2>conftest.er1
8248   ac_status=$?
8249   grep -v '^ *+' conftest.er1 >conftest.err
8250   rm -f conftest.er1
8251   cat conftest.err >&5
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } && {
8254          test -z "$ac_c_werror_flag" ||
8255          test ! -s conftest.err
8256        } && test -s conftest.$ac_objext; then
8257   eval "$as_ac_Header=yes"
8258 else
8259   echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8261
8262         eval "$as_ac_Header=no"
8263 fi
8264
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266 fi
8267 ac_res=`eval echo '${'$as_ac_Header'}'`
8268                { echo "$as_me:$LINENO: result: $ac_res" >&5
8269 echo "${ECHO_T}$ac_res" >&6; }
8270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8271   cat >>confdefs.h <<_ACEOF
8272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8273 _ACEOF
8274
8275 fi
8276
8277 done
8278
8279
8280
8281 ac_ext=cpp
8282 ac_cpp='$CXXCPP $CPPFLAGS'
8283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8286 if test -z "$CXX"; then
8287   if test -n "$CCC"; then
8288     CXX=$CCC
8289   else
8290     if test -n "$ac_tool_prefix"; then
8291   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8292   do
8293     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8297 if test "${ac_cv_prog_CXX+set}" = set; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300   if test -n "$CXX"; then
8301   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306   IFS=$as_save_IFS
8307   test -z "$as_dir" && as_dir=.
8308   for ac_exec_ext in '' $ac_executable_extensions; do
8309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8310     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8312     break 2
8313   fi
8314 done
8315 done
8316 IFS=$as_save_IFS
8317
8318 fi
8319 fi
8320 CXX=$ac_cv_prog_CXX
8321 if test -n "$CXX"; then
8322   { echo "$as_me:$LINENO: result: $CXX" >&5
8323 echo "${ECHO_T}$CXX" >&6; }
8324 else
8325   { echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6; }
8327 fi
8328
8329
8330     test -n "$CXX" && break
8331   done
8332 fi
8333 if test -z "$CXX"; then
8334   ac_ct_CXX=$CXX
8335   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8336 do
8337   # Extract the first word of "$ac_prog", so it can be a program name with args.
8338 set dummy $ac_prog; ac_word=$2
8339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8342   echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344   if test -n "$ac_ct_CXX"; then
8345   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8349 do
8350   IFS=$as_save_IFS
8351   test -z "$as_dir" && as_dir=.
8352   for ac_exec_ext in '' $ac_executable_extensions; do
8353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354     ac_cv_prog_ac_ct_CXX="$ac_prog"
8355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356     break 2
8357   fi
8358 done
8359 done
8360 IFS=$as_save_IFS
8361
8362 fi
8363 fi
8364 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8365 if test -n "$ac_ct_CXX"; then
8366   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8367 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8368 else
8369   { echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6; }
8371 fi
8372
8373
8374   test -n "$ac_ct_CXX" && break
8375 done
8376
8377   if test "x$ac_ct_CXX" = x; then
8378     CXX="g++"
8379   else
8380     case $cross_compiling:$ac_tool_warned in
8381 yes:)
8382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8383 whose name does not start with the host triplet.  If you think this
8384 configuration is useful to you, please write to autoconf@gnu.org." >&5
8385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8386 whose name does not start with the host triplet.  If you think this
8387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8388 ac_tool_warned=yes ;;
8389 esac
8390     CXX=$ac_ct_CXX
8391   fi
8392 fi
8393
8394   fi
8395 fi
8396 # Provide some information about the compiler.
8397 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8398 ac_compiler=`set X $ac_compile; echo $2`
8399 { (ac_try="$ac_compiler --version >&5"
8400 case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405   (eval "$ac_compiler --version >&5") 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }
8409 { (ac_try="$ac_compiler -v >&5"
8410 case "(($ac_try" in
8411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412   *) ac_try_echo=$ac_try;;
8413 esac
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415   (eval "$ac_compiler -v >&5") 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }
8419 { (ac_try="$ac_compiler -V >&5"
8420 case "(($ac_try" in
8421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422   *) ac_try_echo=$ac_try;;
8423 esac
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425   (eval "$ac_compiler -V >&5") 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); }
8429
8430 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8431 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8432 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h.  */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h.  */
8441
8442 int
8443 main ()
8444 {
8445 #ifndef __GNUC__
8446        choke me
8447 #endif
8448
8449   ;
8450   return 0;
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8455 case "(($ac_try" in
8456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457   *) ac_try_echo=$ac_try;;
8458 esac
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460   (eval "$ac_compile") 2>conftest.er1
8461   ac_status=$?
8462   grep -v '^ *+' conftest.er1 >conftest.err
8463   rm -f conftest.er1
8464   cat conftest.err >&5
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); } && {
8467          test -z "$ac_cxx_werror_flag" ||
8468          test ! -s conftest.err
8469        } && test -s conftest.$ac_objext; then
8470   ac_compiler_gnu=yes
8471 else
8472   echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475         ac_compiler_gnu=no
8476 fi
8477
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8480
8481 fi
8482 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8483 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8484 GXX=`test $ac_compiler_gnu = yes && echo yes`
8485 ac_test_CXXFLAGS=${CXXFLAGS+set}
8486 ac_save_CXXFLAGS=$CXXFLAGS
8487 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8488 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8489 if test "${ac_cv_prog_cxx_g+set}" = set; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8493    ac_cxx_werror_flag=yes
8494    ac_cv_prog_cxx_g=no
8495    CXXFLAGS="-g"
8496    cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502
8503 int
8504 main ()
8505 {
8506
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8513 case "(($ac_try" in
8514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515   *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518   (eval "$ac_compile") 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } && {
8525          test -z "$ac_cxx_werror_flag" ||
8526          test ! -s conftest.err
8527        } && test -s conftest.$ac_objext; then
8528   ac_cv_prog_cxx_g=yes
8529 else
8530   echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533         CXXFLAGS=""
8534       cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h.  */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h.  */
8540
8541 int
8542 main ()
8543 {
8544
8545   ;
8546   return 0;
8547 }
8548 _ACEOF
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8551 case "(($ac_try" in
8552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553   *) ac_try_echo=$ac_try;;
8554 esac
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556   (eval "$ac_compile") 2>conftest.er1
8557   ac_status=$?
8558   grep -v '^ *+' conftest.er1 >conftest.err
8559   rm -f conftest.er1
8560   cat conftest.err >&5
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); } && {
8563          test -z "$ac_cxx_werror_flag" ||
8564          test ! -s conftest.err
8565        } && test -s conftest.$ac_objext; then
8566   :
8567 else
8568   echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8572          CXXFLAGS="-g"
8573          cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579
8580 int
8581 main ()
8582 {
8583
8584   ;
8585   return 0;
8586 }
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (ac_try="$ac_compile"
8590 case "(($ac_try" in
8591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592   *) ac_try_echo=$ac_try;;
8593 esac
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595   (eval "$ac_compile") 2>conftest.er1
8596   ac_status=$?
8597   grep -v '^ *+' conftest.er1 >conftest.err
8598   rm -f conftest.er1
8599   cat conftest.err >&5
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); } && {
8602          test -z "$ac_cxx_werror_flag" ||
8603          test ! -s conftest.err
8604        } && test -s conftest.$ac_objext; then
8605   ac_cv_prog_cxx_g=yes
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610
8611 fi
8612
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 fi
8618
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8621 fi
8622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8623 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8624 if test "$ac_test_CXXFLAGS" = set; then
8625   CXXFLAGS=$ac_save_CXXFLAGS
8626 elif test $ac_cv_prog_cxx_g = yes; then
8627   if test "$GXX" = yes; then
8628     CXXFLAGS="-g -O2"
8629   else
8630     CXXFLAGS="-g"
8631   fi
8632 else
8633   if test "$GXX" = yes; then
8634     CXXFLAGS="-O2"
8635   else
8636     CXXFLAGS=
8637   fi
8638 fi
8639 ac_ext=c
8640 ac_cpp='$CPP $CPPFLAGS'
8641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8644
8645 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8646     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8647     (test "X$CXX" != "Xg++"))) ; then
8648   ac_ext=cpp
8649 ac_cpp='$CXXCPP $CPPFLAGS'
8650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8653 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8654 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8655 if test -z "$CXXCPP"; then
8656   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659       # Double quotes because CXXCPP needs to be expanded
8660     for CXXCPP in "$CXX -E" "/lib/cpp"
8661     do
8662       ac_preproc_ok=false
8663 for ac_cxx_preproc_warn_flag in '' yes
8664 do
8665   # Use a header file that comes with gcc, so configuring glibc
8666   # with a fresh cross-compiler works.
8667   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8668   # <limits.h> exists even on freestanding compilers.
8669   # On the NeXT, cc -E runs the code through the compiler's parser,
8670   # not just through cpp. "Syntax error" is here to catch this case.
8671   cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h.  */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h.  */
8677 #ifdef __STDC__
8678 # include <limits.h>
8679 #else
8680 # include <assert.h>
8681 #endif
8682                      Syntax error
8683 _ACEOF
8684 if { (ac_try="$ac_cpp conftest.$ac_ext"
8685 case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8691   ac_status=$?
8692   grep -v '^ *+' conftest.er1 >conftest.err
8693   rm -f conftest.er1
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); } >/dev/null && {
8697          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8698          test ! -s conftest.err
8699        }; then
8700   :
8701 else
8702   echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705   # Broken: fails on valid input.
8706 continue
8707 fi
8708
8709 rm -f conftest.err conftest.$ac_ext
8710
8711   # OK, works on sane cases.  Now check whether nonexistent headers
8712   # can be detected and how.
8713   cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h.  */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h.  */
8719 #include <ac_nonexistent.h>
8720 _ACEOF
8721 if { (ac_try="$ac_cpp conftest.$ac_ext"
8722 case "(($ac_try" in
8723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724   *) ac_try_echo=$ac_try;;
8725 esac
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8728   ac_status=$?
8729   grep -v '^ *+' conftest.er1 >conftest.err
8730   rm -f conftest.er1
8731   cat conftest.err >&5
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); } >/dev/null && {
8734          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8735          test ! -s conftest.err
8736        }; then
8737   # Broken: success on invalid input.
8738 continue
8739 else
8740   echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8742
8743   # Passes both tests.
8744 ac_preproc_ok=:
8745 break
8746 fi
8747
8748 rm -f conftest.err conftest.$ac_ext
8749
8750 done
8751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8752 rm -f conftest.err conftest.$ac_ext
8753 if $ac_preproc_ok; then
8754   break
8755 fi
8756
8757     done
8758     ac_cv_prog_CXXCPP=$CXXCPP
8759
8760 fi
8761   CXXCPP=$ac_cv_prog_CXXCPP
8762 else
8763   ac_cv_prog_CXXCPP=$CXXCPP
8764 fi
8765 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8766 echo "${ECHO_T}$CXXCPP" >&6; }
8767 ac_preproc_ok=false
8768 for ac_cxx_preproc_warn_flag in '' yes
8769 do
8770   # Use a header file that comes with gcc, so configuring glibc
8771   # with a fresh cross-compiler works.
8772   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8773   # <limits.h> exists even on freestanding compilers.
8774   # On the NeXT, cc -E runs the code through the compiler's parser,
8775   # not just through cpp. "Syntax error" is here to catch this case.
8776   cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h.  */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h.  */
8782 #ifdef __STDC__
8783 # include <limits.h>
8784 #else
8785 # include <assert.h>
8786 #endif
8787                      Syntax error
8788 _ACEOF
8789 if { (ac_try="$ac_cpp conftest.$ac_ext"
8790 case "(($ac_try" in
8791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792   *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } >/dev/null && {
8802          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8803          test ! -s conftest.err
8804        }; then
8805   :
8806 else
8807   echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810   # Broken: fails on valid input.
8811 continue
8812 fi
8813
8814 rm -f conftest.err conftest.$ac_ext
8815
8816   # OK, works on sane cases.  Now check whether nonexistent headers
8817   # can be detected and how.
8818   cat >conftest.$ac_ext <<_ACEOF
8819 /* confdefs.h.  */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h.  */
8824 #include <ac_nonexistent.h>
8825 _ACEOF
8826 if { (ac_try="$ac_cpp conftest.$ac_ext"
8827 case "(($ac_try" in
8828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829   *) ac_try_echo=$ac_try;;
8830 esac
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } >/dev/null && {
8839          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8840          test ! -s conftest.err
8841        }; then
8842   # Broken: success on invalid input.
8843 continue
8844 else
8845   echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848   # Passes both tests.
8849 ac_preproc_ok=:
8850 break
8851 fi
8852
8853 rm -f conftest.err conftest.$ac_ext
8854
8855 done
8856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8857 rm -f conftest.err conftest.$ac_ext
8858 if $ac_preproc_ok; then
8859   :
8860 else
8861   _lt_caught_CXX_error=yes
8862 fi
8863
8864 ac_ext=c
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869
8870 else
8871   _lt_caught_CXX_error=yes
8872 fi
8873
8874
8875
8876
8877
8878 # Set options
8879 # Check whether --enable-shared was given.
8880 if test "${enable_shared+set}" = set; then
8881   enableval=$enable_shared; p=${PACKAGE-default}
8882     case $enableval in
8883     yes) enable_shared=yes ;;
8884     no) enable_shared=no ;;
8885     *)
8886       enable_shared=no
8887       # Look at the argument we got.  We use all the common list separators.
8888       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8889       for pkg in $enableval; do
8890         IFS="$lt_save_ifs"
8891         if test "X$pkg" = "X$p"; then
8892           enable_shared=yes
8893         fi
8894       done
8895       IFS="$lt_save_ifs"
8896       ;;
8897     esac
8898 else
8899   enable_shared=yes
8900 fi
8901
8902
8903
8904
8905
8906
8907
8908 # Check whether --enable-static was given.
8909 if test "${enable_static+set}" = set; then
8910   enableval=$enable_static; p=${PACKAGE-default}
8911     case $enableval in
8912     yes) enable_static=yes ;;
8913     no) enable_static=no ;;
8914     *)
8915      enable_static=no
8916       # Look at the argument we got.  We use all the common list separators.
8917       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8918       for pkg in $enableval; do
8919         IFS="$lt_save_ifs"
8920         if test "X$pkg" = "X$p"; then
8921           enable_static=yes
8922         fi
8923       done
8924       IFS="$lt_save_ifs"
8925       ;;
8926     esac
8927 else
8928   enable_static=no
8929 fi
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940         enable_dlopen=no
8941
8942
8943   enable_win32_dll=no
8944
8945
8946
8947
8948
8949 # Check whether --with-pic was given.
8950 if test "${with_pic+set}" = set; then
8951   withval=$with_pic; pic_mode="$withval"
8952 else
8953   pic_mode=default
8954 fi
8955
8956
8957 test -z "$pic_mode" && pic_mode=default
8958
8959
8960
8961
8962
8963
8964
8965   # Check whether --enable-fast-install was given.
8966 if test "${enable_fast_install+set}" = set; then
8967   enableval=$enable_fast_install; p=${PACKAGE-default}
8968     case $enableval in
8969     yes) enable_fast_install=yes ;;
8970     no) enable_fast_install=no ;;
8971     *)
8972       enable_fast_install=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_fast_install=yes
8979         fi
8980       done
8981       IFS="$lt_save_ifs"
8982       ;;
8983     esac
8984 else
8985   enable_fast_install=yes
8986 fi
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998 # This can be used to rebuild libtool when needed
8999 LIBTOOL_DEPS="$ltmain"
9000
9001 # Always use our own libtool.
9002 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028 test -z "$LN_S" && LN_S="ln -s"
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043 if test -n "${ZSH_VERSION+set}" ; then
9044    setopt NO_GLOB_SUBST
9045 fi
9046
9047 { echo "$as_me:$LINENO: checking for objdir" >&5
9048 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9049 if test "${lt_cv_objdir+set}" = set; then
9050   echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052   rm -f .libs 2>/dev/null
9053 mkdir .libs 2>/dev/null
9054 if test -d .libs; then
9055   lt_cv_objdir=.libs
9056 else
9057   # MS-DOS does not allow filenames that begin with a dot.
9058   lt_cv_objdir=_libs
9059 fi
9060 rmdir .libs 2>/dev/null
9061 fi
9062 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9063 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9064 objdir=$lt_cv_objdir
9065
9066
9067
9068
9069
9070 cat >>confdefs.h <<_ACEOF
9071 #define LT_OBJDIR "$lt_cv_objdir/"
9072 _ACEOF
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090 case $host_os in
9091 aix3*)
9092   # AIX sometimes has problems with the GCC collect2 program.  For some
9093   # reason, if we set the COLLECT_NAMES environment variable, the problems
9094   # vanish in a puff of smoke.
9095   if test "X${COLLECT_NAMES+set}" != Xset; then
9096     COLLECT_NAMES=
9097     export COLLECT_NAMES
9098   fi
9099   ;;
9100 esac
9101
9102 # Sed substitution that helps us do robust quoting.  It backslashifies
9103 # metacharacters that are still active within double-quoted strings.
9104 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9105
9106 # Same as above, but do not quote variable references.
9107 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9108
9109 # Sed substitution to delay expansion of an escaped shell variable in a
9110 # double_quote_subst'ed string.
9111 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9112
9113 # Sed substitution to delay expansion of an escaped single quote.
9114 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9115
9116 # Sed substitution to avoid accidental globbing in evaled expressions
9117 no_glob_subst='s/\*/\\\*/g'
9118
9119 # Global variables:
9120 ofile=libtool
9121 can_build_shared=yes
9122
9123 # All known linkers require a `.a' archive for static linking (except MSVC,
9124 # which needs '.lib').
9125 libext=a
9126
9127 with_gnu_ld="$lt_cv_prog_gnu_ld"
9128
9129 old_CC="$CC"
9130 old_CFLAGS="$CFLAGS"
9131
9132 # Set sane defaults for various variables
9133 test -z "$CC" && CC=cc
9134 test -z "$LTCC" && LTCC=$CC
9135 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9136 test -z "$LD" && LD=ld
9137 test -z "$ac_objext" && ac_objext=o
9138
9139 for cc_temp in $compiler""; do
9140   case $cc_temp in
9141     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9142     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9143     \-*) ;;
9144     *) break;;
9145   esac
9146 done
9147 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9148
9149
9150 # Only perform the check for file, if the check method requires it
9151 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9152 case $deplibs_check_method in
9153 file_magic*)
9154   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9155     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9156 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9157 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160   case $MAGIC_CMD in
9161 [\\/*] |  ?:[\\/]*)
9162   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9163   ;;
9164 *)
9165   lt_save_MAGIC_CMD="$MAGIC_CMD"
9166   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9167   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9168   for ac_dir in $ac_dummy; do
9169     IFS="$lt_save_ifs"
9170     test -z "$ac_dir" && ac_dir=.
9171     if test -f $ac_dir/${ac_tool_prefix}file; then
9172       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9173       if test -n "$file_magic_test_file"; then
9174         case $deplibs_check_method in
9175         "file_magic "*)
9176           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9177           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9178           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9179             $EGREP "$file_magic_regex" > /dev/null; then
9180             :
9181           else
9182             cat <<_LT_EOF 1>&2
9183
9184 *** Warning: the command libtool uses to detect shared libraries,
9185 *** $file_magic_cmd, produces output that libtool cannot recognize.
9186 *** The result is that libtool may fail to recognize shared libraries
9187 *** as such.  This will affect the creation of libtool libraries that
9188 *** depend on shared libraries, but programs linked with such libtool
9189 *** libraries will work regardless of this problem.  Nevertheless, you
9190 *** may want to report the problem to your system manager and/or to
9191 *** bug-libtool@gnu.org
9192
9193 _LT_EOF
9194           fi ;;
9195         esac
9196       fi
9197       break
9198     fi
9199   done
9200   IFS="$lt_save_ifs"
9201   MAGIC_CMD="$lt_save_MAGIC_CMD"
9202   ;;
9203 esac
9204 fi
9205
9206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9207 if test -n "$MAGIC_CMD"; then
9208   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9209 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9210 else
9211   { echo "$as_me:$LINENO: result: no" >&5
9212 echo "${ECHO_T}no" >&6; }
9213 fi
9214
9215
9216
9217
9218
9219 if test -z "$lt_cv_path_MAGIC_CMD"; then
9220   if test -n "$ac_tool_prefix"; then
9221     { echo "$as_me:$LINENO: checking for file" >&5
9222 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9224   echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226   case $MAGIC_CMD in
9227 [\\/*] |  ?:[\\/]*)
9228   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9229   ;;
9230 *)
9231   lt_save_MAGIC_CMD="$MAGIC_CMD"
9232   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9233   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9234   for ac_dir in $ac_dummy; do
9235     IFS="$lt_save_ifs"
9236     test -z "$ac_dir" && ac_dir=.
9237     if test -f $ac_dir/file; then
9238       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9239       if test -n "$file_magic_test_file"; then
9240         case $deplibs_check_method in
9241         "file_magic "*)
9242           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9243           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9244           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9245             $EGREP "$file_magic_regex" > /dev/null; then
9246             :
9247           else
9248             cat <<_LT_EOF 1>&2
9249
9250 *** Warning: the command libtool uses to detect shared libraries,
9251 *** $file_magic_cmd, produces output that libtool cannot recognize.
9252 *** The result is that libtool may fail to recognize shared libraries
9253 *** as such.  This will affect the creation of libtool libraries that
9254 *** depend on shared libraries, but programs linked with such libtool
9255 *** libraries will work regardless of this problem.  Nevertheless, you
9256 *** may want to report the problem to your system manager and/or to
9257 *** bug-libtool@gnu.org
9258
9259 _LT_EOF
9260           fi ;;
9261         esac
9262       fi
9263       break
9264     fi
9265   done
9266   IFS="$lt_save_ifs"
9267   MAGIC_CMD="$lt_save_MAGIC_CMD"
9268   ;;
9269 esac
9270 fi
9271
9272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9273 if test -n "$MAGIC_CMD"; then
9274   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9275 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9276 else
9277   { echo "$as_me:$LINENO: result: no" >&5
9278 echo "${ECHO_T}no" >&6; }
9279 fi
9280
9281
9282   else
9283     MAGIC_CMD=:
9284   fi
9285 fi
9286
9287   fi
9288   ;;
9289 esac
9290
9291 # Use C for the default configuration in the libtool script
9292
9293 lt_save_CC="$CC"
9294 ac_ext=c
9295 ac_cpp='$CPP $CPPFLAGS'
9296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9299
9300
9301 # Source file extension for C test sources.
9302 ac_ext=c
9303
9304 # Object file extension for compiled C test sources.
9305 objext=o
9306 objext=$objext
9307
9308 # Code to be used in simple compile tests
9309 lt_simple_compile_test_code="int some_variable = 0;"
9310
9311 # Code to be used in simple link tests
9312 lt_simple_link_test_code='int main(){return(0);}'
9313
9314
9315
9316
9317
9318
9319
9320 # If no C compiler was specified, use CC.
9321 LTCC=${LTCC-"$CC"}
9322
9323 # If no C compiler flags were specified, use CFLAGS.
9324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9325
9326 # Allow CC to be a program name with arguments.
9327 compiler=$CC
9328
9329 # Save the default compiler, since it gets overwritten when the other
9330 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9331 compiler_DEFAULT=$CC
9332
9333 # save warnings/boilerplate of simple test code
9334 ac_outfile=conftest.$ac_objext
9335 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9337 _lt_compiler_boilerplate=`cat conftest.err`
9338 $RM conftest*
9339
9340 ac_outfile=conftest.$ac_objext
9341 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9343 _lt_linker_boilerplate=`cat conftest.err`
9344 $RM -r conftest*
9345
9346
9347 ## CAVEAT EMPTOR:
9348 ## There is no encapsulation within the following macros, do not change
9349 ## the running order or otherwise move them around unless you know exactly
9350 ## what you are doing...
9351 if test -n "$compiler"; then
9352
9353 lt_prog_compiler_no_builtin_flag=
9354
9355 if test "$GCC" = yes; then
9356   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9357
9358   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9359 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9360 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9361   echo $ECHO_N "(cached) $ECHO_C" >&6
9362 else
9363   lt_cv_prog_compiler_rtti_exceptions=no
9364    ac_outfile=conftest.$ac_objext
9365    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9366    lt_compiler_flag="-fno-rtti -fno-exceptions"
9367    # Insert the option either (1) after the last *FLAGS variable, or
9368    # (2) before a word containing "conftest.", or (3) at the end.
9369    # Note that $ac_compile itself does not contain backslashes and begins
9370    # with a dollar sign (not a hyphen), so the echo should work correctly.
9371    # The option is referenced via a variable to avoid confusing sed.
9372    lt_compile=`echo "$ac_compile" | $SED \
9373    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9374    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9375    -e 's:$: $lt_compiler_flag:'`
9376    (eval echo "\"\$as_me:9376: $lt_compile\"" >&5)
9377    (eval "$lt_compile" 2>conftest.err)
9378    ac_status=$?
9379    cat conftest.err >&5
9380    echo "$as_me:9380: \$? = $ac_status" >&5
9381    if (exit $ac_status) && test -s "$ac_outfile"; then
9382      # The compiler can only warn and ignore the option if not recognized
9383      # So say no if there are warnings other than the usual output.
9384      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9385      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9386      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9387        lt_cv_prog_compiler_rtti_exceptions=yes
9388      fi
9389    fi
9390    $RM conftest*
9391
9392 fi
9393 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9394 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9395
9396 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9397     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9398 else
9399     :
9400 fi
9401
9402 fi
9403
9404
9405
9406
9407
9408
9409   lt_prog_compiler_wl=
9410 lt_prog_compiler_pic=
9411 lt_prog_compiler_static=
9412
9413 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9414 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9415
9416   if test "$GCC" = yes; then
9417     lt_prog_compiler_wl='-Wl,'
9418     lt_prog_compiler_static='-static'
9419
9420     case $host_os in
9421       aix*)
9422       # All AIX code is PIC.
9423       if test "$host_cpu" = ia64; then
9424         # AIX 5 now supports IA64 processor
9425         lt_prog_compiler_static='-Bstatic'
9426       fi
9427       ;;
9428
9429     amigaos*)
9430       case $host_cpu in
9431       powerpc)
9432             # see comment about AmigaOS4 .so support
9433             lt_prog_compiler_pic='-fPIC'
9434         ;;
9435       m68k)
9436             # FIXME: we need at least 68020 code to build shared libraries, but
9437             # adding the `-m68020' flag to GCC prevents building anything better,
9438             # like `-m68040'.
9439             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9440         ;;
9441       esac
9442       ;;
9443
9444     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9445       # PIC is the default for these OSes.
9446       ;;
9447
9448     mingw* | cygwin* | pw32* | os2* | cegcc*)
9449       # This hack is so that the source file can tell whether it is being
9450       # built for inclusion in a dll (and should export symbols for example).
9451       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9452       # (--disable-auto-import) libraries
9453       lt_prog_compiler_pic='-DDLL_EXPORT'
9454       ;;
9455
9456     darwin* | rhapsody*)
9457       # PIC is the default on this platform
9458       # Common symbols not allowed in MH_DYLIB files
9459       lt_prog_compiler_pic='-fno-common'
9460       ;;
9461
9462     hpux*)
9463       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9464       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9465       # sets the default TLS model and affects inlining.
9466       case $host_cpu in
9467       hppa*64*)
9468         # +Z the default
9469         ;;
9470       *)
9471         lt_prog_compiler_pic='-fPIC'
9472         ;;
9473       esac
9474       ;;
9475
9476     interix[3-9]*)
9477       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9478       # Instead, we relocate shared libraries at runtime.
9479       ;;
9480
9481     msdosdjgpp*)
9482       # Just because we use GCC doesn't mean we suddenly get shared libraries
9483       # on systems that don't support them.
9484       lt_prog_compiler_can_build_shared=no
9485       enable_shared=no
9486       ;;
9487
9488     *nto* | *qnx*)
9489       # QNX uses GNU C++, but need to define -shared option too, otherwise
9490       # it will coredump.
9491       lt_prog_compiler_pic='-fPIC -shared'
9492       ;;
9493
9494     sysv4*MP*)
9495       if test -d /usr/nec; then
9496         lt_prog_compiler_pic=-Kconform_pic
9497       fi
9498       ;;
9499
9500     *)
9501       lt_prog_compiler_pic='-fPIC'
9502       ;;
9503     esac
9504   else
9505     # PORTME Check for flag to pass linker flags through the system compiler.
9506     case $host_os in
9507     aix*)
9508       lt_prog_compiler_wl='-Wl,'
9509       if test "$host_cpu" = ia64; then
9510         # AIX 5 now supports IA64 processor
9511         lt_prog_compiler_static='-Bstatic'
9512       else
9513         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9514       fi
9515       ;;
9516
9517     mingw* | cygwin* | pw32* | os2* | cegcc*)
9518       # This hack is so that the source file can tell whether it is being
9519       # built for inclusion in a dll (and should export symbols for example).
9520       lt_prog_compiler_pic='-DDLL_EXPORT'
9521       ;;
9522
9523     hpux9* | hpux10* | hpux11*)
9524       lt_prog_compiler_wl='-Wl,'
9525       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9526       # not for PA HP-UX.
9527       case $host_cpu in
9528       hppa*64*|ia64*)
9529         # +Z the default
9530         ;;
9531       *)
9532         lt_prog_compiler_pic='+Z'
9533         ;;
9534       esac
9535       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9536       lt_prog_compiler_static='${wl}-a ${wl}archive'
9537       ;;
9538
9539     irix5* | irix6* | nonstopux*)
9540       lt_prog_compiler_wl='-Wl,'
9541       # PIC (with -KPIC) is the default.
9542       lt_prog_compiler_static='-non_shared'
9543       ;;
9544
9545     linux* | k*bsd*-gnu)
9546       case $cc_basename in
9547       # old Intel for x86_64 which still supported -KPIC.
9548       ecc*)
9549         lt_prog_compiler_wl='-Wl,'
9550         lt_prog_compiler_pic='-KPIC'
9551         lt_prog_compiler_static='-static'
9552         ;;
9553       # icc used to be incompatible with GCC.
9554       # ICC 10 doesn't accept -KPIC any more.
9555       icc* | ifort*)
9556         lt_prog_compiler_wl='-Wl,'
9557         lt_prog_compiler_pic='-fPIC'
9558         lt_prog_compiler_static='-static'
9559         ;;
9560       # Lahey Fortran 8.1.
9561       lf95*)
9562         lt_prog_compiler_wl='-Wl,'
9563         lt_prog_compiler_pic='--shared'
9564         lt_prog_compiler_static='--static'
9565         ;;
9566       pgcc* | pgf77* | pgf90* | pgf95*)
9567         # Portland Group compilers (*not* the Pentium gcc compiler,
9568         # which looks to be a dead project)
9569         lt_prog_compiler_wl='-Wl,'
9570         lt_prog_compiler_pic='-fpic'
9571         lt_prog_compiler_static='-Bstatic'
9572         ;;
9573       ccc*)
9574         lt_prog_compiler_wl='-Wl,'
9575         # All Alpha code is PIC.
9576         lt_prog_compiler_static='-non_shared'
9577         ;;
9578       xl*)
9579         # IBM XL C 8.0/Fortran 10.1 on PPC
9580         lt_prog_compiler_wl='-Wl,'
9581         lt_prog_compiler_pic='-qpic'
9582         lt_prog_compiler_static='-qstaticlink'
9583         ;;
9584       *)
9585         case `$CC -V 2>&1 | sed 5q` in
9586         *Sun\ C*)
9587           # Sun C 5.9
9588           lt_prog_compiler_pic='-KPIC'
9589           lt_prog_compiler_static='-Bstatic'
9590           lt_prog_compiler_wl='-Wl,'
9591           ;;
9592         *Sun\ F*)
9593           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9594           lt_prog_compiler_pic='-KPIC'
9595           lt_prog_compiler_static='-Bstatic'
9596           lt_prog_compiler_wl=''
9597           ;;
9598         esac
9599         ;;
9600       esac
9601       ;;
9602
9603     newsos6)
9604       lt_prog_compiler_pic='-KPIC'
9605       lt_prog_compiler_static='-Bstatic'
9606       ;;
9607
9608     *nto* | *qnx*)
9609       # QNX uses GNU C++, but need to define -shared option too, otherwise
9610       # it will coredump.
9611       lt_prog_compiler_pic='-fPIC -shared'
9612       ;;
9613
9614     osf3* | osf4* | osf5*)
9615       lt_prog_compiler_wl='-Wl,'
9616       # All OSF/1 code is PIC.
9617       lt_prog_compiler_static='-non_shared'
9618       ;;
9619
9620     rdos*)
9621       lt_prog_compiler_static='-non_shared'
9622       ;;
9623
9624     solaris*)
9625       lt_prog_compiler_pic='-KPIC'
9626       lt_prog_compiler_static='-Bstatic'
9627       case $cc_basename in
9628       f77* | f90* | f95*)
9629         lt_prog_compiler_wl='-Qoption ld ';;
9630       *)
9631         lt_prog_compiler_wl='-Wl,';;
9632       esac
9633       ;;
9634
9635     sunos4*)
9636       lt_prog_compiler_wl='-Qoption ld '
9637       lt_prog_compiler_pic='-PIC'
9638       lt_prog_compiler_static='-Bstatic'
9639       ;;
9640
9641     sysv4 | sysv4.2uw2* | sysv4.3*)
9642       lt_prog_compiler_wl='-Wl,'
9643       lt_prog_compiler_pic='-KPIC'
9644       lt_prog_compiler_static='-Bstatic'
9645       ;;
9646
9647     sysv4*MP*)
9648       if test -d /usr/nec ;then
9649         lt_prog_compiler_pic='-Kconform_pic'
9650         lt_prog_compiler_static='-Bstatic'
9651       fi
9652       ;;
9653
9654     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9655       lt_prog_compiler_wl='-Wl,'
9656       lt_prog_compiler_pic='-KPIC'
9657       lt_prog_compiler_static='-Bstatic'
9658       ;;
9659
9660     unicos*)
9661       lt_prog_compiler_wl='-Wl,'
9662       lt_prog_compiler_can_build_shared=no
9663       ;;
9664
9665     uts4*)
9666       lt_prog_compiler_pic='-pic'
9667       lt_prog_compiler_static='-Bstatic'
9668       ;;
9669
9670     *)
9671       lt_prog_compiler_can_build_shared=no
9672       ;;
9673     esac
9674   fi
9675
9676 case $host_os in
9677   # For platforms which do not support PIC, -DPIC is meaningless:
9678   *djgpp*)
9679     lt_prog_compiler_pic=
9680     ;;
9681   *)
9682     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9683     ;;
9684 esac
9685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9686 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9687
9688
9689
9690
9691
9692
9693 #
9694 # Check to make sure the PIC flag actually works.
9695 #
9696 if test -n "$lt_prog_compiler_pic"; then
9697   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9698 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9699 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9700   echo $ECHO_N "(cached) $ECHO_C" >&6
9701 else
9702   lt_cv_prog_compiler_pic_works=no
9703    ac_outfile=conftest.$ac_objext
9704    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9706    # Insert the option either (1) after the last *FLAGS variable, or
9707    # (2) before a word containing "conftest.", or (3) at the end.
9708    # Note that $ac_compile itself does not contain backslashes and begins
9709    # with a dollar sign (not a hyphen), so the echo should work correctly.
9710    # The option is referenced via a variable to avoid confusing sed.
9711    lt_compile=`echo "$ac_compile" | $SED \
9712    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9713    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9714    -e 's:$: $lt_compiler_flag:'`
9715    (eval echo "\"\$as_me:9715: $lt_compile\"" >&5)
9716    (eval "$lt_compile" 2>conftest.err)
9717    ac_status=$?
9718    cat conftest.err >&5
9719    echo "$as_me:9719: \$? = $ac_status" >&5
9720    if (exit $ac_status) && test -s "$ac_outfile"; then
9721      # The compiler can only warn and ignore the option if not recognized
9722      # So say no if there are warnings other than the usual output.
9723      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9724      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9725      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9726        lt_cv_prog_compiler_pic_works=yes
9727      fi
9728    fi
9729    $RM conftest*
9730
9731 fi
9732 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9733 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9734
9735 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9736     case $lt_prog_compiler_pic in
9737      "" | " "*) ;;
9738      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9739      esac
9740 else
9741     lt_prog_compiler_pic=
9742      lt_prog_compiler_can_build_shared=no
9743 fi
9744
9745 fi
9746
9747
9748
9749
9750
9751
9752 #
9753 # Check to make sure the static flag actually works.
9754 #
9755 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9756 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9757 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9758 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9759   echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761   lt_cv_prog_compiler_static_works=no
9762    save_LDFLAGS="$LDFLAGS"
9763    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9764    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9765    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9766      # The linker can only warn and ignore the option if not recognized
9767      # So say no if there are warnings
9768      if test -s conftest.err; then
9769        # Append any errors to the config.log.
9770        cat conftest.err 1>&5
9771        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9772        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9773        if diff conftest.exp conftest.er2 >/dev/null; then
9774          lt_cv_prog_compiler_static_works=yes
9775        fi
9776      else
9777        lt_cv_prog_compiler_static_works=yes
9778      fi
9779    fi
9780    $RM -r conftest*
9781    LDFLAGS="$save_LDFLAGS"
9782
9783 fi
9784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9785 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9786
9787 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9788     :
9789 else
9790     lt_prog_compiler_static=
9791 fi
9792
9793
9794
9795
9796
9797
9798
9799   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9800 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9801 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9802   echo $ECHO_N "(cached) $ECHO_C" >&6
9803 else
9804   lt_cv_prog_compiler_c_o=no
9805    $RM -r conftest 2>/dev/null
9806    mkdir conftest
9807    cd conftest
9808    mkdir out
9809    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9810
9811    lt_compiler_flag="-o out/conftest2.$ac_objext"
9812    # Insert the option either (1) after the last *FLAGS variable, or
9813    # (2) before a word containing "conftest.", or (3) at the end.
9814    # Note that $ac_compile itself does not contain backslashes and begins
9815    # with a dollar sign (not a hyphen), so the echo should work correctly.
9816    lt_compile=`echo "$ac_compile" | $SED \
9817    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9818    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9819    -e 's:$: $lt_compiler_flag:'`
9820    (eval echo "\"\$as_me:9820: $lt_compile\"" >&5)
9821    (eval "$lt_compile" 2>out/conftest.err)
9822    ac_status=$?
9823    cat out/conftest.err >&5
9824    echo "$as_me:9824: \$? = $ac_status" >&5
9825    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9826    then
9827      # The compiler can only warn and ignore the option if not recognized
9828      # So say no if there are warnings
9829      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9830      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9831      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9832        lt_cv_prog_compiler_c_o=yes
9833      fi
9834    fi
9835    chmod u+w . 2>&5
9836    $RM conftest*
9837    # SGI C++ compiler will create directory out/ii_files/ for
9838    # template instantiation
9839    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9840    $RM out/* && rmdir out
9841    cd ..
9842    $RM -r conftest
9843    $RM conftest*
9844
9845 fi
9846 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9847 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9848
9849
9850
9851
9852
9853
9854   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9855 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9856 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9857   echo $ECHO_N "(cached) $ECHO_C" >&6
9858 else
9859   lt_cv_prog_compiler_c_o=no
9860    $RM -r conftest 2>/dev/null
9861    mkdir conftest
9862    cd conftest
9863    mkdir out
9864    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9865
9866    lt_compiler_flag="-o out/conftest2.$ac_objext"
9867    # Insert the option either (1) after the last *FLAGS variable, or
9868    # (2) before a word containing "conftest.", or (3) at the end.
9869    # Note that $ac_compile itself does not contain backslashes and begins
9870    # with a dollar sign (not a hyphen), so the echo should work correctly.
9871    lt_compile=`echo "$ac_compile" | $SED \
9872    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9874    -e 's:$: $lt_compiler_flag:'`
9875    (eval echo "\"\$as_me:9875: $lt_compile\"" >&5)
9876    (eval "$lt_compile" 2>out/conftest.err)
9877    ac_status=$?
9878    cat out/conftest.err >&5
9879    echo "$as_me:9879: \$? = $ac_status" >&5
9880    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9881    then
9882      # The compiler can only warn and ignore the option if not recognized
9883      # So say no if there are warnings
9884      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9885      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9886      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9887        lt_cv_prog_compiler_c_o=yes
9888      fi
9889    fi
9890    chmod u+w . 2>&5
9891    $RM conftest*
9892    # SGI C++ compiler will create directory out/ii_files/ for
9893    # template instantiation
9894    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9895    $RM out/* && rmdir out
9896    cd ..
9897    $RM -r conftest
9898    $RM conftest*
9899
9900 fi
9901 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9902 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9903
9904
9905
9906
9907 hard_links="nottested"
9908 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9909   # do not overwrite the value of need_locks provided by the user
9910   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9911 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9912   hard_links=yes
9913   $RM conftest*
9914   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9915   touch conftest.a
9916   ln conftest.a conftest.b 2>&5 || hard_links=no
9917   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9918   { echo "$as_me:$LINENO: result: $hard_links" >&5
9919 echo "${ECHO_T}$hard_links" >&6; }
9920   if test "$hard_links" = no; then
9921     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9922 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9923     need_locks=warn
9924   fi
9925 else
9926   need_locks=no
9927 fi
9928
9929
9930
9931
9932
9933
9934   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9935 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9936
9937   runpath_var=
9938   allow_undefined_flag=
9939   always_export_symbols=no
9940   archive_cmds=
9941   archive_expsym_cmds=
9942   compiler_needs_object=no
9943   enable_shared_with_static_runtimes=no
9944   export_dynamic_flag_spec=
9945   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9946   hardcode_automatic=no
9947   hardcode_direct=no
9948   hardcode_direct_absolute=no
9949   hardcode_libdir_flag_spec=
9950   hardcode_libdir_flag_spec_ld=
9951   hardcode_libdir_separator=
9952   hardcode_minus_L=no
9953   hardcode_shlibpath_var=unsupported
9954   inherit_rpath=no
9955   link_all_deplibs=unknown
9956   module_cmds=
9957   module_expsym_cmds=
9958   old_archive_from_new_cmds=
9959   old_archive_from_expsyms_cmds=
9960   thread_safe_flag_spec=
9961   whole_archive_flag_spec=
9962   # include_expsyms should be a list of space-separated symbols to be *always*
9963   # included in the symbol list
9964   include_expsyms=
9965   # exclude_expsyms can be an extended regexp of symbols to exclude
9966   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9967   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9968   # as well as any symbol that contains `d'.
9969   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9970   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9971   # platforms (ab)use it in PIC code, but their linkers get confused if
9972   # the symbol is explicitly referenced.  Since portable code cannot
9973   # rely on this symbol name, it's probably fine to never include it in
9974   # preloaded symbol tables.
9975   # Exclude shared library initialization/finalization symbols.
9976   extract_expsyms_cmds=
9977
9978   case $host_os in
9979   cygwin* | mingw* | pw32* | cegcc*)
9980     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9981     # When not using gcc, we currently assume that we are using
9982     # Microsoft Visual C++.
9983     if test "$GCC" != yes; then
9984       with_gnu_ld=no
9985     fi
9986     ;;
9987   interix*)
9988     # we just hope/assume this is gcc and not c89 (= MSVC++)
9989     with_gnu_ld=yes
9990     ;;
9991   openbsd*)
9992     with_gnu_ld=no
9993     ;;
9994   esac
9995
9996   ld_shlibs=yes
9997   if test "$with_gnu_ld" = yes; then
9998     # If archive_cmds runs LD, not CC, wlarc should be empty
9999     wlarc='${wl}'
10000
10001     # Set some defaults for GNU ld with shared library support. These
10002     # are reset later if shared libraries are not supported. Putting them
10003     # here allows them to be overridden if necessary.
10004     runpath_var=LD_RUN_PATH
10005     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10006     export_dynamic_flag_spec='${wl}--export-dynamic'
10007     # ancient GNU ld didn't support --whole-archive et. al.
10008     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10009       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10010     else
10011       whole_archive_flag_spec=
10012     fi
10013     supports_anon_versioning=no
10014     case `$LD -v 2>&1` in
10015       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10016       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10017       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10018       *\ 2.11.*) ;; # other 2.11 versions
10019       *) supports_anon_versioning=yes ;;
10020     esac
10021
10022     # See if GNU ld supports shared libraries.
10023     case $host_os in
10024     aix[3-9]*)
10025       # On AIX/PPC, the GNU linker is very broken
10026       if test "$host_cpu" != ia64; then
10027         ld_shlibs=no
10028         cat <<_LT_EOF 1>&2
10029
10030 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10031 *** to be unable to reliably create shared libraries on AIX.
10032 *** Therefore, libtool is disabling shared libraries support.  If you
10033 *** really care for shared libraries, you may want to modify your PATH
10034 *** so that a non-GNU linker is found, and then restart.
10035
10036 _LT_EOF
10037       fi
10038       ;;
10039
10040     amigaos*)
10041       case $host_cpu in
10042       powerpc)
10043             # see comment about AmigaOS4 .so support
10044             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10045             archive_expsym_cmds=''
10046         ;;
10047       m68k)
10048             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)'
10049             hardcode_libdir_flag_spec='-L$libdir'
10050             hardcode_minus_L=yes
10051         ;;
10052       esac
10053       ;;
10054
10055     beos*)
10056       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057         allow_undefined_flag=unsupported
10058         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10059         # support --undefined.  This deserves some investigation.  FIXME
10060         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061       else
10062         ld_shlibs=no
10063       fi
10064       ;;
10065
10066     cygwin* | mingw* | pw32* | cegcc*)
10067       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10068       # as there is no search path for DLLs.
10069       hardcode_libdir_flag_spec='-L$libdir'
10070       allow_undefined_flag=unsupported
10071       always_export_symbols=no
10072       enable_shared_with_static_runtimes=yes
10073       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10074
10075       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10076         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10077         # If the export-symbols file already is a .def file (1st line
10078         # is EXPORTS), use it as is; otherwise, prepend...
10079         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10080           cp $export_symbols $output_objdir/$soname.def;
10081         else
10082           echo EXPORTS > $output_objdir/$soname.def;
10083           cat $export_symbols >> $output_objdir/$soname.def;
10084         fi~
10085         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10086       else
10087         ld_shlibs=no
10088       fi
10089       ;;
10090
10091     interix[3-9]*)
10092       hardcode_direct=no
10093       hardcode_shlibpath_var=no
10094       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10095       export_dynamic_flag_spec='${wl}-E'
10096       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10097       # Instead, shared libraries are loaded at an image base (0x10000000 by
10098       # default) and relocated if they conflict, which is a slow very memory
10099       # consuming and fragmenting process.  To avoid this, we pick a random,
10100       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10101       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10102       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10103       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'
10104       ;;
10105
10106     gnu* | linux* | tpf* | k*bsd*-gnu)
10107       tmp_diet=no
10108       if test "$host_os" = linux-dietlibc; then
10109         case $cc_basename in
10110           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10111         esac
10112       fi
10113       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10114          && test "$tmp_diet" = no
10115       then
10116         tmp_addflag=
10117         tmp_sharedflag='-shared'
10118         case $cc_basename,$host_cpu in
10119         pgcc*)                          # Portland Group C compiler
10120           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'
10121           tmp_addflag=' $pic_flag'
10122           ;;
10123         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10124           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'
10125           tmp_addflag=' $pic_flag -Mnomain' ;;
10126         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10127           tmp_addflag=' -i_dynamic' ;;
10128         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10129           tmp_addflag=' -i_dynamic -nofor_main' ;;
10130         ifc* | ifort*)                  # Intel Fortran compiler
10131           tmp_addflag=' -nofor_main' ;;
10132         lf95*)                          # Lahey Fortran 8.1
10133           whole_archive_flag_spec=
10134           tmp_sharedflag='--shared' ;;
10135         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10136           tmp_sharedflag='-qmkshrobj'
10137           tmp_addflag= ;;
10138         esac
10139         case `$CC -V 2>&1 | sed 5q` in
10140         *Sun\ C*)                       # Sun C 5.9
10141           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'
10142           compiler_needs_object=yes
10143           tmp_sharedflag='-G' ;;
10144         *Sun\ F*)                       # Sun Fortran 8.3
10145           tmp_sharedflag='-G' ;;
10146         esac
10147         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10148
10149         if test "x$supports_anon_versioning" = xyes; then
10150           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10151             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10152             echo "local: *; };" >> $output_objdir/$libname.ver~
10153             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10154         fi
10155
10156         case $cc_basename in
10157         xlf*)
10158           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10159           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10160           hardcode_libdir_flag_spec=
10161           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10162           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10163           if test "x$supports_anon_versioning" = xyes; then
10164             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10165               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10166               echo "local: *; };" >> $output_objdir/$libname.ver~
10167               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10168           fi
10169           ;;
10170         esac
10171       else
10172         ld_shlibs=no
10173       fi
10174       ;;
10175
10176     netbsd*)
10177       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10178         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10179         wlarc=
10180       else
10181         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10182         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10183       fi
10184       ;;
10185
10186     solaris*)
10187       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10188         ld_shlibs=no
10189         cat <<_LT_EOF 1>&2
10190
10191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10192 *** create shared libraries on Solaris systems.  Therefore, libtool
10193 *** is disabling shared libraries support.  We urge you to upgrade GNU
10194 *** binutils to release 2.9.1 or newer.  Another option is to modify
10195 *** your PATH or compiler configuration so that the native linker is
10196 *** used, and then restart.
10197
10198 _LT_EOF
10199       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10200         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10201         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10202       else
10203         ld_shlibs=no
10204       fi
10205       ;;
10206
10207     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10208       case `$LD -v 2>&1` in
10209         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10210         ld_shlibs=no
10211         cat <<_LT_EOF 1>&2
10212
10213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10214 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10215 *** is disabling shared libraries support.  We urge you to upgrade GNU
10216 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10217 *** your PATH or compiler configuration so that the native linker is
10218 *** used, and then restart.
10219
10220 _LT_EOF
10221         ;;
10222         *)
10223           # For security reasons, it is highly recommended that you always
10224           # use absolute paths for naming shared libraries, and exclude the
10225           # DT_RUNPATH tag from executables and libraries.  But doing so
10226           # requires that you compile everything twice, which is a pain.
10227           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10228             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10229             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10230             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10231           else
10232             ld_shlibs=no
10233           fi
10234         ;;
10235       esac
10236       ;;
10237
10238     sunos4*)
10239       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10240       wlarc=
10241       hardcode_direct=yes
10242       hardcode_shlibpath_var=no
10243       ;;
10244
10245     *)
10246       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10247         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10248         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10249       else
10250         ld_shlibs=no
10251       fi
10252       ;;
10253     esac
10254
10255     if test "$ld_shlibs" = no; then
10256       runpath_var=
10257       hardcode_libdir_flag_spec=
10258       export_dynamic_flag_spec=
10259       whole_archive_flag_spec=
10260     fi
10261   else
10262     # PORTME fill in a description of your system's linker (not GNU ld)
10263     case $host_os in
10264     aix3*)
10265       allow_undefined_flag=unsupported
10266       always_export_symbols=yes
10267       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'
10268       # Note: this linker hardcodes the directories in LIBPATH if there
10269       # are no directories specified by -L.
10270       hardcode_minus_L=yes
10271       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10272         # Neither direct hardcoding nor static linking is supported with a
10273         # broken collect2.
10274         hardcode_direct=unsupported
10275       fi
10276       ;;
10277
10278     aix[4-9]*)
10279       if test "$host_cpu" = ia64; then
10280         # On IA64, the linker does run time linking by default, so we don't
10281         # have to do anything special.
10282         aix_use_runtimelinking=no
10283         exp_sym_flag='-Bexport'
10284         no_entry_flag=""
10285       else
10286         # If we're using GNU nm, then we don't want the "-C" option.
10287         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10288         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10289           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'
10290         else
10291           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'
10292         fi
10293         aix_use_runtimelinking=no
10294
10295         # Test if we are trying to use run time linking or normal
10296         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10297         # need to do runtime linking.
10298         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10299           for ld_flag in $LDFLAGS; do
10300           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10301             aix_use_runtimelinking=yes
10302             break
10303           fi
10304           done
10305           ;;
10306         esac
10307
10308         exp_sym_flag='-bexport'
10309         no_entry_flag='-bnoentry'
10310       fi
10311
10312       # When large executables or shared objects are built, AIX ld can
10313       # have problems creating the table of contents.  If linking a library
10314       # or program results in "error TOC overflow" add -mminimal-toc to
10315       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10316       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10317
10318       archive_cmds=''
10319       hardcode_direct=yes
10320       hardcode_direct_absolute=yes
10321       hardcode_libdir_separator=':'
10322       link_all_deplibs=yes
10323       file_list_spec='${wl}-f,'
10324
10325       if test "$GCC" = yes; then
10326         case $host_os in aix4.[012]|aix4.[012].*)
10327         # We only want to do this on AIX 4.2 and lower, the check
10328         # below for broken collect2 doesn't work under 4.3+
10329           collect2name=`${CC} -print-prog-name=collect2`
10330           if test -f "$collect2name" &&
10331            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10332           then
10333           # We have reworked collect2
10334           :
10335           else
10336           # We have old collect2
10337           hardcode_direct=unsupported
10338           # It fails to find uninstalled libraries when the uninstalled
10339           # path is not listed in the libpath.  Setting hardcode_minus_L
10340           # to unsupported forces relinking
10341           hardcode_minus_L=yes
10342           hardcode_libdir_flag_spec='-L$libdir'
10343           hardcode_libdir_separator=
10344           fi
10345           ;;
10346         esac
10347         shared_flag='-shared'
10348         if test "$aix_use_runtimelinking" = yes; then
10349           shared_flag="$shared_flag "'${wl}-G'
10350         fi
10351       else
10352         # not using gcc
10353         if test "$host_cpu" = ia64; then
10354         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10355         # chokes on -Wl,-G. The following line is correct:
10356           shared_flag='-G'
10357         else
10358           if test "$aix_use_runtimelinking" = yes; then
10359             shared_flag='${wl}-G'
10360           else
10361             shared_flag='${wl}-bM:SRE'
10362           fi
10363         fi
10364       fi
10365
10366       export_dynamic_flag_spec='${wl}-bexpall'
10367       # It seems that -bexpall does not export symbols beginning with
10368       # underscore (_), so it is better to generate a list of symbols to export.
10369       always_export_symbols=yes
10370       if test "$aix_use_runtimelinking" = yes; then
10371         # Warning - without using the other runtime loading flags (-brtl),
10372         # -berok will link without error, but may produce a broken library.
10373         allow_undefined_flag='-berok'
10374         # Determine the default libpath from the value encoded in an
10375         # empty executable.
10376         cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h.  */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h.  */
10382
10383 int
10384 main ()
10385 {
10386
10387   ;
10388   return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395   *) ac_try_echo=$ac_try;;
10396 esac
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398   (eval "$ac_link") 2>conftest.er1
10399   ac_status=$?
10400   grep -v '^ *+' conftest.er1 >conftest.err
10401   rm -f conftest.er1
10402   cat conftest.err >&5
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); } && {
10405          test -z "$ac_c_werror_flag" ||
10406          test ! -s conftest.err
10407        } && test -s conftest$ac_exeext &&
10408        $as_test_x conftest$ac_exeext; then
10409
10410 lt_aix_libpath_sed='
10411     /Import File Strings/,/^$/ {
10412         /^0/ {
10413             s/^0  *\(.*\)$/\1/
10414             p
10415         }
10416     }'
10417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10418 # Check for a 64-bit object if we didn't find anything.
10419 if test -z "$aix_libpath"; then
10420   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10421 fi
10422 else
10423   echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10425
10426
10427 fi
10428
10429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10430       conftest$ac_exeext conftest.$ac_ext
10431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10432
10433         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10434         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"
10435       else
10436         if test "$host_cpu" = ia64; then
10437           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10438           allow_undefined_flag="-z nodefs"
10439           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"
10440         else
10441          # Determine the default libpath from the value encoded in an
10442          # empty executable.
10443          cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h.  */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h.  */
10449
10450 int
10451 main ()
10452 {
10453
10454   ;
10455   return 0;
10456 }
10457 _ACEOF
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465   (eval "$ac_link") 2>conftest.er1
10466   ac_status=$?
10467   grep -v '^ *+' conftest.er1 >conftest.err
10468   rm -f conftest.er1
10469   cat conftest.err >&5
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); } && {
10472          test -z "$ac_c_werror_flag" ||
10473          test ! -s conftest.err
10474        } && test -s conftest$ac_exeext &&
10475        $as_test_x conftest$ac_exeext; then
10476
10477 lt_aix_libpath_sed='
10478     /Import File Strings/,/^$/ {
10479         /^0/ {
10480             s/^0  *\(.*\)$/\1/
10481             p
10482         }
10483     }'
10484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10485 # Check for a 64-bit object if we didn't find anything.
10486 if test -z "$aix_libpath"; then
10487   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10488 fi
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493
10494 fi
10495
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497       conftest$ac_exeext conftest.$ac_ext
10498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10499
10500          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10501           # Warning - without using the other run time loading flags,
10502           # -berok will link without error, but may produce a broken library.
10503           no_undefined_flag=' ${wl}-bernotok'
10504           allow_undefined_flag=' ${wl}-berok'
10505           # Exported symbols can be pulled into shared objects from archives
10506           whole_archive_flag_spec='$convenience'
10507           archive_cmds_need_lc=yes
10508           # This is similar to how AIX traditionally builds its shared libraries.
10509           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'
10510         fi
10511       fi
10512       ;;
10513
10514     amigaos*)
10515       case $host_cpu in
10516       powerpc)
10517             # see comment about AmigaOS4 .so support
10518             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10519             archive_expsym_cmds=''
10520         ;;
10521       m68k)
10522             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)'
10523             hardcode_libdir_flag_spec='-L$libdir'
10524             hardcode_minus_L=yes
10525         ;;
10526       esac
10527       ;;
10528
10529     bsdi[45]*)
10530       export_dynamic_flag_spec=-rdynamic
10531       ;;
10532
10533     cygwin* | mingw* | pw32* | cegcc*)
10534       # When not using gcc, we currently assume that we are using
10535       # Microsoft Visual C++.
10536       # hardcode_libdir_flag_spec is actually meaningless, as there is
10537       # no search path for DLLs.
10538       hardcode_libdir_flag_spec=' '
10539       allow_undefined_flag=unsupported
10540       # Tell ltmain to make .lib files, not .a files.
10541       libext=lib
10542       # Tell ltmain to make .dll files, not .so files.
10543       shrext_cmds=".dll"
10544       # FIXME: Setting linknames here is a bad hack.
10545       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10546       # The linker will automatically build a .lib file if we build a DLL.
10547       old_archive_from_new_cmds='true'
10548       # FIXME: Should let the user specify the lib program.
10549       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10550       fix_srcfile_path='`cygpath -w "$srcfile"`'
10551       enable_shared_with_static_runtimes=yes
10552       ;;
10553
10554     darwin* | rhapsody*)
10555
10556
10557   archive_cmds_need_lc=no
10558   hardcode_direct=no
10559   hardcode_automatic=yes
10560   hardcode_shlibpath_var=unsupported
10561   whole_archive_flag_spec=''
10562   link_all_deplibs=yes
10563   allow_undefined_flag="$_lt_dar_allow_undefined"
10564   case $cc_basename in
10565      ifort*) _lt_dar_can_shared=yes ;;
10566      *) _lt_dar_can_shared=$GCC ;;
10567   esac
10568   if test "$_lt_dar_can_shared" = "yes"; then
10569     output_verbose_link_cmd=echo
10570     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10571     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10572     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}"
10573     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}"
10574
10575   else
10576   ld_shlibs=no
10577   fi
10578
10579       ;;
10580
10581     dgux*)
10582       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583       hardcode_libdir_flag_spec='-L$libdir'
10584       hardcode_shlibpath_var=no
10585       ;;
10586
10587     freebsd1*)
10588       ld_shlibs=no
10589       ;;
10590
10591     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10592     # support.  Future versions do this automatically, but an explicit c++rt0.o
10593     # does not break anything, and helps significantly (at the cost of a little
10594     # extra space).
10595     freebsd2.2*)
10596       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10597       hardcode_libdir_flag_spec='-R$libdir'
10598       hardcode_direct=yes
10599       hardcode_shlibpath_var=no
10600       ;;
10601
10602     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10603     freebsd2*)
10604       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10605       hardcode_direct=yes
10606       hardcode_minus_L=yes
10607       hardcode_shlibpath_var=no
10608       ;;
10609
10610     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10611     freebsd* | dragonfly*)
10612       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10613       hardcode_libdir_flag_spec='-R$libdir'
10614       hardcode_direct=yes
10615       hardcode_shlibpath_var=no
10616       ;;
10617
10618     hpux9*)
10619       if test "$GCC" = yes; then
10620         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'
10621       else
10622         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'
10623       fi
10624       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10625       hardcode_libdir_separator=:
10626       hardcode_direct=yes
10627
10628       # hardcode_minus_L: Not really in the search PATH,
10629       # but as the default location of the library.
10630       hardcode_minus_L=yes
10631       export_dynamic_flag_spec='${wl}-E'
10632       ;;
10633
10634     hpux10*)
10635       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10636         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10637       else
10638         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10639       fi
10640       if test "$with_gnu_ld" = no; then
10641         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10642         hardcode_libdir_flag_spec_ld='+b $libdir'
10643         hardcode_libdir_separator=:
10644         hardcode_direct=yes
10645         hardcode_direct_absolute=yes
10646         export_dynamic_flag_spec='${wl}-E'
10647         # hardcode_minus_L: Not really in the search PATH,
10648         # but as the default location of the library.
10649         hardcode_minus_L=yes
10650       fi
10651       ;;
10652
10653     hpux11*)
10654       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10655         case $host_cpu in
10656         hppa*64*)
10657           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10658           ;;
10659         ia64*)
10660           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10661           ;;
10662         *)
10663           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10664           ;;
10665         esac
10666       else
10667         case $host_cpu in
10668         hppa*64*)
10669           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10670           ;;
10671         ia64*)
10672           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10673           ;;
10674         *)
10675           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10676           ;;
10677         esac
10678       fi
10679       if test "$with_gnu_ld" = no; then
10680         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10681         hardcode_libdir_separator=:
10682
10683         case $host_cpu in
10684         hppa*64*|ia64*)
10685           hardcode_direct=no
10686           hardcode_shlibpath_var=no
10687           ;;
10688         *)
10689           hardcode_direct=yes
10690           hardcode_direct_absolute=yes
10691           export_dynamic_flag_spec='${wl}-E'
10692
10693           # hardcode_minus_L: Not really in the search PATH,
10694           # but as the default location of the library.
10695           hardcode_minus_L=yes
10696           ;;
10697         esac
10698       fi
10699       ;;
10700
10701     irix5* | irix6* | nonstopux*)
10702       if test "$GCC" = yes; then
10703         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'
10704         # Try to use the -exported_symbol ld option, if it does not
10705         # work, assume that -exports_file does not work either and
10706         # implicitly export all symbols.
10707         save_LDFLAGS="$LDFLAGS"
10708         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10709         cat >conftest.$ac_ext <<_ACEOF
10710 int foo(void) {}
10711 _ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716   *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719   (eval "$ac_link") 2>conftest.er1
10720   ac_status=$?
10721   grep -v '^ *+' conftest.er1 >conftest.err
10722   rm -f conftest.er1
10723   cat conftest.err >&5
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } && {
10726          test -z "$ac_c_werror_flag" ||
10727          test ! -s conftest.err
10728        } && test -s conftest$ac_exeext &&
10729        $as_test_x conftest$ac_exeext; then
10730   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'
10731
10732 else
10733   echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736
10737 fi
10738
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740       conftest$ac_exeext conftest.$ac_ext
10741         LDFLAGS="$save_LDFLAGS"
10742       else
10743         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'
10744         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'
10745       fi
10746       archive_cmds_need_lc='no'
10747       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10748       hardcode_libdir_separator=:
10749       inherit_rpath=yes
10750       link_all_deplibs=yes
10751       ;;
10752
10753     netbsd*)
10754       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10755         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10756       else
10757         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10758       fi
10759       hardcode_libdir_flag_spec='-R$libdir'
10760       hardcode_direct=yes
10761       hardcode_shlibpath_var=no
10762       ;;
10763
10764     newsos6)
10765       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766       hardcode_direct=yes
10767       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10768       hardcode_libdir_separator=:
10769       hardcode_shlibpath_var=no
10770       ;;
10771
10772     *nto* | *qnx*)
10773       ;;
10774
10775     openbsd*)
10776       if test -f /usr/libexec/ld.so; then
10777         hardcode_direct=yes
10778         hardcode_shlibpath_var=no
10779         hardcode_direct_absolute=yes
10780         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10781           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10782           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10783           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10784           export_dynamic_flag_spec='${wl}-E'
10785         else
10786           case $host_os in
10787            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10788              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10789              hardcode_libdir_flag_spec='-R$libdir'
10790              ;;
10791            *)
10792              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10793              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10794              ;;
10795           esac
10796         fi
10797       else
10798         ld_shlibs=no
10799       fi
10800       ;;
10801
10802     os2*)
10803       hardcode_libdir_flag_spec='-L$libdir'
10804       hardcode_minus_L=yes
10805       allow_undefined_flag=unsupported
10806       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'
10807       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10808       ;;
10809
10810     osf3*)
10811       if test "$GCC" = yes; then
10812         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10813         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'
10814       else
10815         allow_undefined_flag=' -expect_unresolved \*'
10816         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'
10817       fi
10818       archive_cmds_need_lc='no'
10819       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820       hardcode_libdir_separator=:
10821       ;;
10822
10823     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10824       if test "$GCC" = yes; then
10825         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10826         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'
10827         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10828       else
10829         allow_undefined_flag=' -expect_unresolved \*'
10830         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'
10831         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~
10832         $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'
10833
10834         # Both c and cxx compiler support -rpath directly
10835         hardcode_libdir_flag_spec='-rpath $libdir'
10836       fi
10837       archive_cmds_need_lc='no'
10838       hardcode_libdir_separator=:
10839       ;;
10840
10841     solaris*)
10842       no_undefined_flag=' -z defs'
10843       if test "$GCC" = yes; then
10844         wlarc='${wl}'
10845         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10846         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10847           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10848       else
10849         case `$CC -V 2>&1` in
10850         *"Compilers 5.0"*)
10851           wlarc=''
10852           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10854           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10855           ;;
10856         *)
10857           wlarc='${wl}'
10858           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10859           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10860           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10861           ;;
10862         esac
10863       fi
10864       hardcode_libdir_flag_spec='-R$libdir'
10865       hardcode_shlibpath_var=no
10866       case $host_os in
10867       solaris2.[0-5] | solaris2.[0-5].*) ;;
10868       *)
10869         # The compiler driver will combine and reorder linker options,
10870         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10871         # but is careful enough not to reorder.
10872         # Supported since Solaris 2.6 (maybe 2.5.1?)
10873         if test "$GCC" = yes; then
10874           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10875         else
10876           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10877         fi
10878         ;;
10879       esac
10880       link_all_deplibs=yes
10881       ;;
10882
10883     sunos4*)
10884       if test "x$host_vendor" = xsequent; then
10885         # Use $CC to link under sequent, because it throws in some extra .o
10886         # files that make .init and .fini sections work.
10887         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10888       else
10889         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10890       fi
10891       hardcode_libdir_flag_spec='-L$libdir'
10892       hardcode_direct=yes
10893       hardcode_minus_L=yes
10894       hardcode_shlibpath_var=no
10895       ;;
10896
10897     sysv4)
10898       case $host_vendor in
10899         sni)
10900           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10901           hardcode_direct=yes # is this really true???
10902         ;;
10903         siemens)
10904           ## LD is ld it makes a PLAMLIB
10905           ## CC just makes a GrossModule.
10906           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10907           reload_cmds='$CC -r -o $output$reload_objs'
10908           hardcode_direct=no
10909         ;;
10910         motorola)
10911           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10913         ;;
10914       esac
10915       runpath_var='LD_RUN_PATH'
10916       hardcode_shlibpath_var=no
10917       ;;
10918
10919     sysv4.3*)
10920       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10921       hardcode_shlibpath_var=no
10922       export_dynamic_flag_spec='-Bexport'
10923       ;;
10924
10925     sysv4*MP*)
10926       if test -d /usr/nec; then
10927         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928         hardcode_shlibpath_var=no
10929         runpath_var=LD_RUN_PATH
10930         hardcode_runpath_var=yes
10931         ld_shlibs=yes
10932       fi
10933       ;;
10934
10935     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10936       no_undefined_flag='${wl}-z,text'
10937       archive_cmds_need_lc=no
10938       hardcode_shlibpath_var=no
10939       runpath_var='LD_RUN_PATH'
10940
10941       if test "$GCC" = yes; then
10942         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10943         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10944       else
10945         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947       fi
10948       ;;
10949
10950     sysv5* | sco3.2v5* | sco5v6*)
10951       # Note: We can NOT use -z defs as we might desire, because we do not
10952       # link with -lc, and that would cause any symbols used from libc to
10953       # always be unresolved, which means just about no library would
10954       # ever link correctly.  If we're not using GNU ld we use -z text
10955       # though, which does catch some bad symbols but isn't as heavy-handed
10956       # as -z defs.
10957       no_undefined_flag='${wl}-z,text'
10958       allow_undefined_flag='${wl}-z,nodefs'
10959       archive_cmds_need_lc=no
10960       hardcode_shlibpath_var=no
10961       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10962       hardcode_libdir_separator=':'
10963       link_all_deplibs=yes
10964       export_dynamic_flag_spec='${wl}-Bexport'
10965       runpath_var='LD_RUN_PATH'
10966
10967       if test "$GCC" = yes; then
10968         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10969         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10970       else
10971         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10973       fi
10974       ;;
10975
10976     uts4*)
10977       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978       hardcode_libdir_flag_spec='-L$libdir'
10979       hardcode_shlibpath_var=no
10980       ;;
10981
10982     *)
10983       ld_shlibs=no
10984       ;;
10985     esac
10986
10987     if test x$host_vendor = xsni; then
10988       case $host in
10989       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10990         export_dynamic_flag_spec='${wl}-Blargedynsym'
10991         ;;
10992       esac
10993     fi
10994   fi
10995
10996 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10997 echo "${ECHO_T}$ld_shlibs" >&6; }
10998 test "$ld_shlibs" = no && can_build_shared=no
10999
11000 with_gnu_ld=$with_gnu_ld
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016 #
11017 # Do we need to explicitly link libc?
11018 #
11019 case "x$archive_cmds_need_lc" in
11020 x|xyes)
11021   # Assume -lc should be added
11022   archive_cmds_need_lc=yes
11023
11024   if test "$enable_shared" = yes && test "$GCC" = yes; then
11025     case $archive_cmds in
11026     *'~'*)
11027       # FIXME: we may have to deal with multi-command sequences.
11028       ;;
11029     '$CC '*)
11030       # Test whether the compiler implicitly links with -lc since on some
11031       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11032       # to ld, don't add -lc before -lgcc.
11033       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11034 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11035       $RM conftest*
11036       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11037
11038       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11039   (eval $ac_compile) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } 2>conftest.err; then
11043         soname=conftest
11044         lib=conftest
11045         libobjs=conftest.$ac_objext
11046         deplibs=
11047         wl=$lt_prog_compiler_wl
11048         pic_flag=$lt_prog_compiler_pic
11049         compiler_flags=-v
11050         linker_flags=-v
11051         verstring=
11052         output_objdir=.
11053         libname=conftest
11054         lt_save_allow_undefined_flag=$allow_undefined_flag
11055         allow_undefined_flag=
11056         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11057   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); }
11061         then
11062           archive_cmds_need_lc=no
11063         else
11064           archive_cmds_need_lc=yes
11065         fi
11066         allow_undefined_flag=$lt_save_allow_undefined_flag
11067       else
11068         cat conftest.err 1>&5
11069       fi
11070       $RM conftest*
11071       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11072 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11073       ;;
11074     esac
11075   fi
11076   ;;
11077 esac
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11236 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11237
11238 if test "$GCC" = yes; then
11239   case $host_os in
11240     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11241     *) lt_awk_arg="/^libraries:/" ;;
11242   esac
11243   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11244   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11245     # if the path contains ";" then we assume it to be the separator
11246     # otherwise default to the standard path separator (i.e. ":") - it is
11247     # assumed that no part of a normal pathname contains ";" but that should
11248     # okay in the real world where ";" in dirpaths is itself problematic.
11249     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11250   else
11251     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11252   fi
11253   # Ok, now we have the path, separated by spaces, we can step through it
11254   # and add multilib dir if necessary.
11255   lt_tmp_lt_search_path_spec=
11256   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11257   for lt_sys_path in $lt_search_path_spec; do
11258     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11259       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11260     else
11261       test -d "$lt_sys_path" && \
11262         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11263     fi
11264   done
11265   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11266 BEGIN {RS=" "; FS="/|\n";} {
11267   lt_foo="";
11268   lt_count=0;
11269   for (lt_i = NF; lt_i > 0; lt_i--) {
11270     if ($lt_i != "" && $lt_i != ".") {
11271       if ($lt_i == "..") {
11272         lt_count++;
11273       } else {
11274         if (lt_count == 0) {
11275           lt_foo="/" $lt_i lt_foo;
11276         } else {
11277           lt_count--;
11278         }
11279       }
11280     }
11281   }
11282   if (lt_foo != "") { lt_freq[lt_foo]++; }
11283   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11284 }'`
11285   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11286 else
11287   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11288 fi
11289 library_names_spec=
11290 libname_spec='lib$name'
11291 soname_spec=
11292 shrext_cmds=".so"
11293 postinstall_cmds=
11294 postuninstall_cmds=
11295 finish_cmds=
11296 finish_eval=
11297 shlibpath_var=
11298 shlibpath_overrides_runpath=unknown
11299 version_type=none
11300 dynamic_linker="$host_os ld.so"
11301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11302 need_lib_prefix=unknown
11303 hardcode_into_libs=no
11304
11305 # when you set need_version to no, make sure it does not cause -set_version
11306 # flags to be left without arguments
11307 need_version=unknown
11308
11309 case $host_os in
11310 aix3*)
11311   version_type=linux
11312   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11313   shlibpath_var=LIBPATH
11314
11315   # AIX 3 has no versioning support, so we append a major version to the name.
11316   soname_spec='${libname}${release}${shared_ext}$major'
11317   ;;
11318
11319 aix[4-9]*)
11320   version_type=linux
11321   need_lib_prefix=no
11322   need_version=no
11323   hardcode_into_libs=yes
11324   if test "$host_cpu" = ia64; then
11325     # AIX 5 supports IA64
11326     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11327     shlibpath_var=LD_LIBRARY_PATH
11328   else
11329     # With GCC up to 2.95.x, collect2 would create an import file
11330     # for dependence libraries.  The import file would start with
11331     # the line `#! .'.  This would cause the generated library to
11332     # depend on `.', always an invalid library.  This was fixed in
11333     # development snapshots of GCC prior to 3.0.
11334     case $host_os in
11335       aix4 | aix4.[01] | aix4.[01].*)
11336       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11337            echo ' yes '
11338            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11339         :
11340       else
11341         can_build_shared=no
11342       fi
11343       ;;
11344     esac
11345     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11346     # soname into executable. Probably we can add versioning support to
11347     # collect2, so additional links can be useful in future.
11348     if test "$aix_use_runtimelinking" = yes; then
11349       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11350       # instead of lib<name>.a to let people know that these are not
11351       # typical AIX shared libraries.
11352       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353     else
11354       # We preserve .a as extension for shared libraries through AIX4.2
11355       # and later when we are not doing run time linking.
11356       library_names_spec='${libname}${release}.a $libname.a'
11357       soname_spec='${libname}${release}${shared_ext}$major'
11358     fi
11359     shlibpath_var=LIBPATH
11360   fi
11361   ;;
11362
11363 amigaos*)
11364   case $host_cpu in
11365   powerpc)
11366     # Since July 2007 AmigaOS4 officially supports .so libraries.
11367     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369     ;;
11370   m68k)
11371     library_names_spec='$libname.ixlibrary $libname.a'
11372     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11373     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'
11374     ;;
11375   esac
11376   ;;
11377
11378 beos*)
11379   library_names_spec='${libname}${shared_ext}'
11380   dynamic_linker="$host_os ld.so"
11381   shlibpath_var=LIBRARY_PATH
11382   ;;
11383
11384 bsdi[45]*)
11385   version_type=linux
11386   need_version=no
11387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388   soname_spec='${libname}${release}${shared_ext}$major'
11389   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11390   shlibpath_var=LD_LIBRARY_PATH
11391   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11392   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11393   # the default ld.so.conf also contains /usr/contrib/lib and
11394   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11395   # libtool to hard-code these into programs
11396   ;;
11397
11398 cygwin* | mingw* | pw32* | cegcc*)
11399   version_type=windows
11400   shrext_cmds=".dll"
11401   need_version=no
11402   need_lib_prefix=no
11403
11404   case $GCC,$host_os in
11405   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11406     library_names_spec='$libname.dll.a'
11407     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11408     postinstall_cmds='base_file=`basename \${file}`~
11409       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11410       dldir=$destdir/`dirname \$dlpath`~
11411       test -d \$dldir || mkdir -p \$dldir~
11412       $install_prog $dir/$dlname \$dldir/$dlname~
11413       chmod a+x \$dldir/$dlname~
11414       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11415         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11416       fi'
11417     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11418       dlpath=$dir/\$dldll~
11419        $RM \$dlpath'
11420     shlibpath_overrides_runpath=yes
11421
11422     case $host_os in
11423     cygwin*)
11424       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11425       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11426       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11427       ;;
11428     mingw* | cegcc*)
11429       # MinGW DLLs use traditional 'lib' prefix
11430       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11431       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11432       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11433         # It is most probably a Windows format PATH printed by
11434         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11435         # path with ; separators, and with drive letters. We can handle the
11436         # drive letters (cygwin fileutils understands them), so leave them,
11437         # especially as we might pass files found there to a mingw objdump,
11438         # which wouldn't understand a cygwinified path. Ahh.
11439         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11440       else
11441         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11442       fi
11443       ;;
11444     pw32*)
11445       # pw32 DLLs use 'pw' prefix rather than 'lib'
11446       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11447       ;;
11448     esac
11449     ;;
11450
11451   *)
11452     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11453     ;;
11454   esac
11455   dynamic_linker='Win32 ld.exe'
11456   # FIXME: first we should search . and the directory the executable is in
11457   shlibpath_var=PATH
11458   ;;
11459
11460 darwin* | rhapsody*)
11461   dynamic_linker="$host_os dyld"
11462   version_type=darwin
11463   need_lib_prefix=no
11464   need_version=no
11465   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11466   soname_spec='${libname}${release}${major}$shared_ext'
11467   shlibpath_overrides_runpath=yes
11468   shlibpath_var=DYLD_LIBRARY_PATH
11469   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11470
11471   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11472   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11473   ;;
11474
11475 dgux*)
11476   version_type=linux
11477   need_lib_prefix=no
11478   need_version=no
11479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11480   soname_spec='${libname}${release}${shared_ext}$major'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   ;;
11483
11484 freebsd1*)
11485   dynamic_linker=no
11486   ;;
11487
11488 freebsd* | dragonfly*)
11489   # DragonFly does not have aout.  When/if they implement a new
11490   # versioning mechanism, adjust this.
11491   if test -x /usr/bin/objformat; then
11492     objformat=`/usr/bin/objformat`
11493   else
11494     case $host_os in
11495     freebsd[123]*) objformat=aout ;;
11496     *) objformat=elf ;;
11497     esac
11498   fi
11499   version_type=freebsd-$objformat
11500   case $version_type in
11501     freebsd-elf*)
11502       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11503       need_version=no
11504       need_lib_prefix=no
11505       ;;
11506     freebsd-*)
11507       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11508       need_version=yes
11509       ;;
11510   esac
11511   shlibpath_var=LD_LIBRARY_PATH
11512   case $host_os in
11513   freebsd2*)
11514     shlibpath_overrides_runpath=yes
11515     ;;
11516   freebsd3.[01]* | freebsdelf3.[01]*)
11517     shlibpath_overrides_runpath=yes
11518     hardcode_into_libs=yes
11519     ;;
11520   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11521   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11522     shlibpath_overrides_runpath=no
11523     hardcode_into_libs=yes
11524     ;;
11525   *) # from 4.6 on, and DragonFly
11526     shlibpath_overrides_runpath=yes
11527     hardcode_into_libs=yes
11528     ;;
11529   esac
11530   ;;
11531
11532 gnu*)
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   hardcode_into_libs=yes
11540   ;;
11541
11542 hpux9* | hpux10* | hpux11*)
11543   # Give a soname corresponding to the major version so that dld.sl refuses to
11544   # link against other versions.
11545   version_type=sunos
11546   need_lib_prefix=no
11547   need_version=no
11548   case $host_cpu in
11549   ia64*)
11550     shrext_cmds='.so'
11551     hardcode_into_libs=yes
11552     dynamic_linker="$host_os dld.so"
11553     shlibpath_var=LD_LIBRARY_PATH
11554     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556     soname_spec='${libname}${release}${shared_ext}$major'
11557     if test "X$HPUX_IA64_MODE" = X32; then
11558       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11559     else
11560       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11561     fi
11562     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11563     ;;
11564   hppa*64*)
11565     shrext_cmds='.sl'
11566     hardcode_into_libs=yes
11567     dynamic_linker="$host_os dld.sl"
11568     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11569     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11570     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571     soname_spec='${libname}${release}${shared_ext}$major'
11572     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11573     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11574     ;;
11575   *)
11576     shrext_cmds='.sl'
11577     dynamic_linker="$host_os dld.sl"
11578     shlibpath_var=SHLIB_PATH
11579     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581     soname_spec='${libname}${release}${shared_ext}$major'
11582     ;;
11583   esac
11584   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11585   postinstall_cmds='chmod 555 $lib'
11586   ;;
11587
11588 interix[3-9]*)
11589   version_type=linux
11590   need_lib_prefix=no
11591   need_version=no
11592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11593   soname_spec='${libname}${release}${shared_ext}$major'
11594   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11595   shlibpath_var=LD_LIBRARY_PATH
11596   shlibpath_overrides_runpath=no
11597   hardcode_into_libs=yes
11598   ;;
11599
11600 irix5* | irix6* | nonstopux*)
11601   case $host_os in
11602     nonstopux*) version_type=nonstopux ;;
11603     *)
11604         if test "$lt_cv_prog_gnu_ld" = yes; then
11605                 version_type=linux
11606         else
11607                 version_type=irix
11608         fi ;;
11609   esac
11610   need_lib_prefix=no
11611   need_version=no
11612   soname_spec='${libname}${release}${shared_ext}$major'
11613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11614   case $host_os in
11615   irix5* | nonstopux*)
11616     libsuff= shlibsuff=
11617     ;;
11618   *)
11619     case $LD in # libtool.m4 will add one of these switches to LD
11620     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11621       libsuff= shlibsuff= libmagic=32-bit;;
11622     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11623       libsuff=32 shlibsuff=N32 libmagic=N32;;
11624     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11625       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11626     *) libsuff= shlibsuff= libmagic=never-match;;
11627     esac
11628     ;;
11629   esac
11630   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11631   shlibpath_overrides_runpath=no
11632   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11633   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11634   hardcode_into_libs=yes
11635   ;;
11636
11637 # No shared lib support for Linux oldld, aout, or coff.
11638 linux*oldld* | linux*aout* | linux*coff*)
11639   dynamic_linker=no
11640   ;;
11641
11642 # This must be Linux ELF.
11643 linux* | k*bsd*-gnu)
11644   version_type=linux
11645   need_lib_prefix=no
11646   need_version=no
11647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648   soname_spec='${libname}${release}${shared_ext}$major'
11649   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11650   shlibpath_var=LD_LIBRARY_PATH
11651   shlibpath_overrides_runpath=no
11652   # Some binutils ld are patched to set DT_RUNPATH
11653   save_LDFLAGS=$LDFLAGS
11654   save_libdir=$libdir
11655   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11656        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11657   cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h.  */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h.  */
11663
11664 int
11665 main ()
11666 {
11667
11668   ;
11669   return 0;
11670 }
11671 _ACEOF
11672 rm -f conftest.$ac_objext conftest$ac_exeext
11673 if { (ac_try="$ac_link"
11674 case "(($ac_try" in
11675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676   *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679   (eval "$ac_link") 2>conftest.er1
11680   ac_status=$?
11681   grep -v '^ *+' conftest.er1 >conftest.err
11682   rm -f conftest.er1
11683   cat conftest.err >&5
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); } && {
11686          test -z "$ac_c_werror_flag" ||
11687          test ! -s conftest.err
11688        } && test -s conftest$ac_exeext &&
11689        $as_test_x conftest$ac_exeext; then
11690   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11691   shlibpath_overrides_runpath=yes
11692 fi
11693
11694 else
11695   echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698
11699 fi
11700
11701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11702       conftest$ac_exeext conftest.$ac_ext
11703   LDFLAGS=$save_LDFLAGS
11704   libdir=$save_libdir
11705
11706   # This implies no fast_install, which is unacceptable.
11707   # Some rework will be needed to allow for fast_install
11708   # before this can be enabled.
11709   hardcode_into_libs=yes
11710
11711   # Append ld.so.conf contents to the search path
11712   if test -f /etc/ld.so.conf; then
11713     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' ' '`
11714     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11715   fi
11716
11717   # We used to test for /lib/ld.so.1 and disable shared libraries on
11718   # powerpc, because MkLinux only supported shared libraries with the
11719   # GNU dynamic linker.  Since this was broken with cross compilers,
11720   # most powerpc-linux boxes support dynamic linking these days and
11721   # people can always --disable-shared, the test was removed, and we
11722   # assume the GNU/Linux dynamic linker is in use.
11723   dynamic_linker='GNU/Linux ld.so'
11724   ;;
11725
11726 netbsd*)
11727   version_type=sunos
11728   need_lib_prefix=no
11729   need_version=no
11730   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11732     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11733     dynamic_linker='NetBSD (a.out) ld.so'
11734   else
11735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11736     soname_spec='${libname}${release}${shared_ext}$major'
11737     dynamic_linker='NetBSD ld.elf_so'
11738   fi
11739   shlibpath_var=LD_LIBRARY_PATH
11740   shlibpath_overrides_runpath=yes
11741   hardcode_into_libs=yes
11742   ;;
11743
11744 newsos6)
11745   version_type=linux
11746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747   shlibpath_var=LD_LIBRARY_PATH
11748   shlibpath_overrides_runpath=yes
11749   ;;
11750
11751 *nto* | *qnx*)
11752   version_type=qnx
11753   need_lib_prefix=no
11754   need_version=no
11755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11756   soname_spec='${libname}${release}${shared_ext}$major'
11757   shlibpath_var=LD_LIBRARY_PATH
11758   shlibpath_overrides_runpath=no
11759   hardcode_into_libs=yes
11760   dynamic_linker='ldqnx.so'
11761   ;;
11762
11763 openbsd*)
11764   version_type=sunos
11765   sys_lib_dlsearch_path_spec="/usr/lib"
11766   need_lib_prefix=no
11767   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11768   case $host_os in
11769     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11770     *)                          need_version=no  ;;
11771   esac
11772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11773   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11774   shlibpath_var=LD_LIBRARY_PATH
11775   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11776     case $host_os in
11777       openbsd2.[89] | openbsd2.[89].*)
11778         shlibpath_overrides_runpath=no
11779         ;;
11780       *)
11781         shlibpath_overrides_runpath=yes
11782         ;;
11783       esac
11784   else
11785     shlibpath_overrides_runpath=yes
11786   fi
11787   ;;
11788
11789 os2*)
11790   libname_spec='$name'
11791   shrext_cmds=".dll"
11792   need_lib_prefix=no
11793   library_names_spec='$libname${shared_ext} $libname.a'
11794   dynamic_linker='OS/2 ld.exe'
11795   shlibpath_var=LIBPATH
11796   ;;
11797
11798 osf3* | osf4* | osf5*)
11799   version_type=osf
11800   need_lib_prefix=no
11801   need_version=no
11802   soname_spec='${libname}${release}${shared_ext}$major'
11803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804   shlibpath_var=LD_LIBRARY_PATH
11805   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11806   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11807   ;;
11808
11809 rdos*)
11810   dynamic_linker=no
11811   ;;
11812
11813 solaris*)
11814   version_type=linux
11815   need_lib_prefix=no
11816   need_version=no
11817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818   soname_spec='${libname}${release}${shared_ext}$major'
11819   shlibpath_var=LD_LIBRARY_PATH
11820   shlibpath_overrides_runpath=yes
11821   hardcode_into_libs=yes
11822   # ldd complains unless libraries are executable
11823   postinstall_cmds='chmod +x $lib'
11824   ;;
11825
11826 sunos4*)
11827   version_type=sunos
11828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11829   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11830   shlibpath_var=LD_LIBRARY_PATH
11831   shlibpath_overrides_runpath=yes
11832   if test "$with_gnu_ld" = yes; then
11833     need_lib_prefix=no
11834   fi
11835   need_version=yes
11836   ;;
11837
11838 sysv4 | sysv4.3*)
11839   version_type=linux
11840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841   soname_spec='${libname}${release}${shared_ext}$major'
11842   shlibpath_var=LD_LIBRARY_PATH
11843   case $host_vendor in
11844     sni)
11845       shlibpath_overrides_runpath=no
11846       need_lib_prefix=no
11847       runpath_var=LD_RUN_PATH
11848       ;;
11849     siemens)
11850       need_lib_prefix=no
11851       ;;
11852     motorola)
11853       need_lib_prefix=no
11854       need_version=no
11855       shlibpath_overrides_runpath=no
11856       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11857       ;;
11858   esac
11859   ;;
11860
11861 sysv4*MP*)
11862   if test -d /usr/nec ;then
11863     version_type=linux
11864     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11865     soname_spec='$libname${shared_ext}.$major'
11866     shlibpath_var=LD_LIBRARY_PATH
11867   fi
11868   ;;
11869
11870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11871   version_type=freebsd-elf
11872   need_lib_prefix=no
11873   need_version=no
11874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $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   if test "$with_gnu_ld" = yes; then
11880     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11881   else
11882     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11883     case $host_os in
11884       sco3.2v5*)
11885         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11886         ;;
11887     esac
11888   fi
11889   sys_lib_dlsearch_path_spec='/usr/lib'
11890   ;;
11891
11892 tpf*)
11893   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11894   version_type=linux
11895   need_lib_prefix=no
11896   need_version=no
11897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898   shlibpath_var=LD_LIBRARY_PATH
11899   shlibpath_overrides_runpath=no
11900   hardcode_into_libs=yes
11901   ;;
11902
11903 uts4*)
11904   version_type=linux
11905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11906   soname_spec='${libname}${release}${shared_ext}$major'
11907   shlibpath_var=LD_LIBRARY_PATH
11908   ;;
11909
11910 *)
11911   dynamic_linker=no
11912   ;;
11913 esac
11914 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11915 echo "${ECHO_T}$dynamic_linker" >&6; }
11916 test "$dynamic_linker" = no && can_build_shared=no
11917
11918 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11919 if test "$GCC" = yes; then
11920   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11921 fi
11922
11923 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11924   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11925 fi
11926 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11927   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11928 fi
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12018 hardcode_action=
12019 if test -n "$hardcode_libdir_flag_spec" ||
12020    test -n "$runpath_var" ||
12021    test "X$hardcode_automatic" = "Xyes" ; then
12022
12023   # We can hardcode non-existent directories.
12024   if test "$hardcode_direct" != no &&
12025      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12026      # have to relink, otherwise we might link with an installed library
12027      # when we should be linking with a yet-to-be-installed one
12028      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12029      test "$hardcode_minus_L" != no; then
12030     # Linking always hardcodes the temporary library directory.
12031     hardcode_action=relink
12032   else
12033     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12034     hardcode_action=immediate
12035   fi
12036 else
12037   # We cannot hardcode anything, or else we can only hardcode existing
12038   # directories.
12039   hardcode_action=unsupported
12040 fi
12041 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12042 echo "${ECHO_T}$hardcode_action" >&6; }
12043
12044 if test "$hardcode_action" = relink ||
12045    test "$inherit_rpath" = yes; then
12046   # Fast installation is not supported
12047   enable_fast_install=no
12048 elif test "$shlibpath_overrides_runpath" = yes ||
12049      test "$enable_shared" = no; then
12050   # Fast installation is not necessary
12051   enable_fast_install=needless
12052 fi
12053
12054
12055
12056
12057
12058
12059   if test "x$enable_dlopen" != xyes; then
12060   enable_dlopen=unknown
12061   enable_dlopen_self=unknown
12062   enable_dlopen_self_static=unknown
12063 else
12064   lt_cv_dlopen=no
12065   lt_cv_dlopen_libs=
12066
12067   case $host_os in
12068   beos*)
12069     lt_cv_dlopen="load_add_on"
12070     lt_cv_dlopen_libs=
12071     lt_cv_dlopen_self=yes
12072     ;;
12073
12074   mingw* | pw32* | cegcc*)
12075     lt_cv_dlopen="LoadLibrary"
12076     lt_cv_dlopen_libs=
12077     ;;
12078
12079   cygwin*)
12080     lt_cv_dlopen="dlopen"
12081     lt_cv_dlopen_libs=
12082     ;;
12083
12084   darwin*)
12085   # if libdl is installed we need to link against it
12086     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12087 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12088 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12089   echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091   ac_check_lib_save_LIBS=$LIBS
12092 LIBS="-ldl  $LIBS"
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h.  */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h.  */
12099
12100 /* Override any GCC internal prototype to avoid an error.
12101    Use char because int might match the return type of a GCC
12102    builtin and then its argument prototype would still apply.  */
12103 #ifdef __cplusplus
12104 extern "C"
12105 #endif
12106 char dlopen ();
12107 int
12108 main ()
12109 {
12110 return dlopen ();
12111   ;
12112   return 0;
12113 }
12114 _ACEOF
12115 rm -f conftest.$ac_objext conftest$ac_exeext
12116 if { (ac_try="$ac_link"
12117 case "(($ac_try" in
12118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119   *) ac_try_echo=$ac_try;;
12120 esac
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122   (eval "$ac_link") 2>conftest.er1
12123   ac_status=$?
12124   grep -v '^ *+' conftest.er1 >conftest.err
12125   rm -f conftest.er1
12126   cat conftest.err >&5
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); } && {
12129          test -z "$ac_c_werror_flag" ||
12130          test ! -s conftest.err
12131        } && test -s conftest$ac_exeext &&
12132        $as_test_x conftest$ac_exeext; then
12133   ac_cv_lib_dl_dlopen=yes
12134 else
12135   echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12137
12138         ac_cv_lib_dl_dlopen=no
12139 fi
12140
12141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12142       conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12144 fi
12145 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12146 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12147 if test $ac_cv_lib_dl_dlopen = yes; then
12148   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12149 else
12150
12151     lt_cv_dlopen="dyld"
12152     lt_cv_dlopen_libs=
12153     lt_cv_dlopen_self=yes
12154
12155 fi
12156
12157     ;;
12158
12159   *)
12160     { echo "$as_me:$LINENO: checking for shl_load" >&5
12161 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12162 if test "${ac_cv_func_shl_load+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12173 #define shl_load innocuous_shl_load
12174
12175 /* System header to define __stub macros and hopefully few prototypes,
12176     which can conflict with char shl_load (); below.
12177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12178     <limits.h> exists even on freestanding compilers.  */
12179
12180 #ifdef __STDC__
12181 # include <limits.h>
12182 #else
12183 # include <assert.h>
12184 #endif
12185
12186 #undef shl_load
12187
12188 /* Override any GCC internal prototype to avoid an error.
12189    Use char because int might match the return type of a GCC
12190    builtin and then its argument prototype would still apply.  */
12191 #ifdef __cplusplus
12192 extern "C"
12193 #endif
12194 char shl_load ();
12195 /* The GNU C library defines this for functions which it implements
12196     to always fail with ENOSYS.  Some functions are actually named
12197     something starting with __ and the normal name is an alias.  */
12198 #if defined __stub_shl_load || defined __stub___shl_load
12199 choke me
12200 #endif
12201
12202 int
12203 main ()
12204 {
12205 return shl_load ();
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214   *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217   (eval "$ac_link") 2>conftest.er1
12218   ac_status=$?
12219   grep -v '^ *+' conftest.er1 >conftest.err
12220   rm -f conftest.er1
12221   cat conftest.err >&5
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); } && {
12224          test -z "$ac_c_werror_flag" ||
12225          test ! -s conftest.err
12226        } && test -s conftest$ac_exeext &&
12227        $as_test_x conftest$ac_exeext; then
12228   ac_cv_func_shl_load=yes
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233         ac_cv_func_shl_load=no
12234 fi
12235
12236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12237       conftest$ac_exeext conftest.$ac_ext
12238 fi
12239 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12240 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12241 if test $ac_cv_func_shl_load = yes; then
12242   lt_cv_dlopen="shl_load"
12243 else
12244   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12245 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12246 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12247   echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249   ac_check_lib_save_LIBS=$LIBS
12250 LIBS="-ldld  $LIBS"
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h.  */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h.  */
12257
12258 /* Override any GCC internal prototype to avoid an error.
12259    Use char because int might match the return type of a GCC
12260    builtin and then its argument prototype would still apply.  */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 char shl_load ();
12265 int
12266 main ()
12267 {
12268 return shl_load ();
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277   *) ac_try_echo=$ac_try;;
12278 esac
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280   (eval "$ac_link") 2>conftest.er1
12281   ac_status=$?
12282   grep -v '^ *+' conftest.er1 >conftest.err
12283   rm -f conftest.er1
12284   cat conftest.err >&5
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); } && {
12287          test -z "$ac_c_werror_flag" ||
12288          test ! -s conftest.err
12289        } && test -s conftest$ac_exeext &&
12290        $as_test_x conftest$ac_exeext; then
12291   ac_cv_lib_dld_shl_load=yes
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296         ac_cv_lib_dld_shl_load=no
12297 fi
12298
12299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12300       conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12302 fi
12303 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12304 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12305 if test $ac_cv_lib_dld_shl_load = yes; then
12306   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12307 else
12308   { echo "$as_me:$LINENO: checking for dlopen" >&5
12309 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12310 if test "${ac_cv_func_dlopen+set}" = set; then
12311   echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313   cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h.  */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h.  */
12319 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12321 #define dlopen innocuous_dlopen
12322
12323 /* System header to define __stub macros and hopefully few prototypes,
12324     which can conflict with char dlopen (); below.
12325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12326     <limits.h> exists even on freestanding compilers.  */
12327
12328 #ifdef __STDC__
12329 # include <limits.h>
12330 #else
12331 # include <assert.h>
12332 #endif
12333
12334 #undef dlopen
12335
12336 /* Override any GCC internal prototype to avoid an error.
12337    Use char because int might match the return type of a GCC
12338    builtin and then its argument prototype would still apply.  */
12339 #ifdef __cplusplus
12340 extern "C"
12341 #endif
12342 char dlopen ();
12343 /* The GNU C library defines this for functions which it implements
12344     to always fail with ENOSYS.  Some functions are actually named
12345     something starting with __ and the normal name is an alias.  */
12346 #if defined __stub_dlopen || defined __stub___dlopen
12347 choke me
12348 #endif
12349
12350 int
12351 main ()
12352 {
12353 return dlopen ();
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (ac_try="$ac_link"
12360 case "(($ac_try" in
12361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362   *) ac_try_echo=$ac_try;;
12363 esac
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365   (eval "$ac_link") 2>conftest.er1
12366   ac_status=$?
12367   grep -v '^ *+' conftest.er1 >conftest.err
12368   rm -f conftest.er1
12369   cat conftest.err >&5
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); } && {
12372          test -z "$ac_c_werror_flag" ||
12373          test ! -s conftest.err
12374        } && test -s conftest$ac_exeext &&
12375        $as_test_x conftest$ac_exeext; then
12376   ac_cv_func_dlopen=yes
12377 else
12378   echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381         ac_cv_func_dlopen=no
12382 fi
12383
12384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12385       conftest$ac_exeext conftest.$ac_ext
12386 fi
12387 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12388 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12389 if test $ac_cv_func_dlopen = yes; then
12390   lt_cv_dlopen="dlopen"
12391 else
12392   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12393 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12394 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   ac_check_lib_save_LIBS=$LIBS
12398 LIBS="-ldl  $LIBS"
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405
12406 /* Override any GCC internal prototype to avoid an error.
12407    Use char because int might match the return type of a GCC
12408    builtin and then its argument prototype would still apply.  */
12409 #ifdef __cplusplus
12410 extern "C"
12411 #endif
12412 char dlopen ();
12413 int
12414 main ()
12415 {
12416 return dlopen ();
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_link") 2>conftest.er1
12429   ac_status=$?
12430   grep -v '^ *+' conftest.er1 >conftest.err
12431   rm -f conftest.er1
12432   cat conftest.err >&5
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } && {
12435          test -z "$ac_c_werror_flag" ||
12436          test ! -s conftest.err
12437        } && test -s conftest$ac_exeext &&
12438        $as_test_x conftest$ac_exeext; then
12439   ac_cv_lib_dl_dlopen=yes
12440 else
12441   echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444         ac_cv_lib_dl_dlopen=no
12445 fi
12446
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448       conftest$ac_exeext conftest.$ac_ext
12449 LIBS=$ac_check_lib_save_LIBS
12450 fi
12451 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12452 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12453 if test $ac_cv_lib_dl_dlopen = yes; then
12454   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12455 else
12456   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12457 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12458 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12459   echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461   ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-lsvld  $LIBS"
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h.  */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h.  */
12469
12470 /* Override any GCC internal prototype to avoid an error.
12471    Use char because int might match the return type of a GCC
12472    builtin and then its argument prototype would still apply.  */
12473 #ifdef __cplusplus
12474 extern "C"
12475 #endif
12476 char dlopen ();
12477 int
12478 main ()
12479 {
12480 return dlopen ();
12481   ;
12482   return 0;
12483 }
12484 _ACEOF
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (ac_try="$ac_link"
12487 case "(($ac_try" in
12488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489   *) ac_try_echo=$ac_try;;
12490 esac
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492   (eval "$ac_link") 2>conftest.er1
12493   ac_status=$?
12494   grep -v '^ *+' conftest.er1 >conftest.err
12495   rm -f conftest.er1
12496   cat conftest.err >&5
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); } && {
12499          test -z "$ac_c_werror_flag" ||
12500          test ! -s conftest.err
12501        } && test -s conftest$ac_exeext &&
12502        $as_test_x conftest$ac_exeext; then
12503   ac_cv_lib_svld_dlopen=yes
12504 else
12505   echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508         ac_cv_lib_svld_dlopen=no
12509 fi
12510
12511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512       conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12514 fi
12515 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12516 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12517 if test $ac_cv_lib_svld_dlopen = yes; then
12518   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12519 else
12520   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12521 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-ldld  $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533
12534 /* Override any GCC internal prototype to avoid an error.
12535    Use char because int might match the return type of a GCC
12536    builtin and then its argument prototype would still apply.  */
12537 #ifdef __cplusplus
12538 extern "C"
12539 #endif
12540 char dld_link ();
12541 int
12542 main ()
12543 {
12544 return dld_link ();
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_link") 2>conftest.er1
12557   ac_status=$?
12558   grep -v '^ *+' conftest.er1 >conftest.err
12559   rm -f conftest.er1
12560   cat conftest.err >&5
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } && {
12563          test -z "$ac_c_werror_flag" ||
12564          test ! -s conftest.err
12565        } && test -s conftest$ac_exeext &&
12566        $as_test_x conftest$ac_exeext; then
12567   ac_cv_lib_dld_dld_link=yes
12568 else
12569   echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572         ac_cv_lib_dld_dld_link=no
12573 fi
12574
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576       conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12578 fi
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12580 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12581 if test $ac_cv_lib_dld_dld_link = yes; then
12582   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12583 fi
12584
12585
12586 fi
12587
12588
12589 fi
12590
12591
12592 fi
12593
12594
12595 fi
12596
12597
12598 fi
12599
12600     ;;
12601   esac
12602
12603   if test "x$lt_cv_dlopen" != xno; then
12604     enable_dlopen=yes
12605   else
12606     enable_dlopen=no
12607   fi
12608
12609   case $lt_cv_dlopen in
12610   dlopen)
12611     save_CPPFLAGS="$CPPFLAGS"
12612     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12613
12614     save_LDFLAGS="$LDFLAGS"
12615     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12616
12617     save_LIBS="$LIBS"
12618     LIBS="$lt_cv_dlopen_libs $LIBS"
12619
12620     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12621 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12622 if test "${lt_cv_dlopen_self+set}" = set; then
12623   echo $ECHO_N "(cached) $ECHO_C" >&6
12624 else
12625           if test "$cross_compiling" = yes; then :
12626   lt_cv_dlopen_self=cross
12627 else
12628   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12629   lt_status=$lt_dlunknown
12630   cat > conftest.$ac_ext <<_LT_EOF
12631 #line 12631 "configure"
12632 #include "confdefs.h"
12633
12634 #if HAVE_DLFCN_H
12635 #include <dlfcn.h>
12636 #endif
12637
12638 #include <stdio.h>
12639
12640 #ifdef RTLD_GLOBAL
12641 #  define LT_DLGLOBAL           RTLD_GLOBAL
12642 #else
12643 #  ifdef DL_GLOBAL
12644 #    define LT_DLGLOBAL         DL_GLOBAL
12645 #  else
12646 #    define LT_DLGLOBAL         0
12647 #  endif
12648 #endif
12649
12650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12651    find out it does not work in some platform. */
12652 #ifndef LT_DLLAZY_OR_NOW
12653 #  ifdef RTLD_LAZY
12654 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12655 #  else
12656 #    ifdef DL_LAZY
12657 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12658 #    else
12659 #      ifdef RTLD_NOW
12660 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12661 #      else
12662 #        ifdef DL_NOW
12663 #          define LT_DLLAZY_OR_NOW      DL_NOW
12664 #        else
12665 #          define LT_DLLAZY_OR_NOW      0
12666 #        endif
12667 #      endif
12668 #    endif
12669 #  endif
12670 #endif
12671
12672 void fnord() { int i=42;}
12673 int main ()
12674 {
12675   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12676   int status = $lt_dlunknown;
12677
12678   if (self)
12679     {
12680       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12681       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12682       /* dlclose (self); */
12683     }
12684   else
12685     puts (dlerror ());
12686
12687   return status;
12688 }
12689 _LT_EOF
12690   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691   (eval $ac_link) 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12695     (./conftest; exit; ) >&5 2>/dev/null
12696     lt_status=$?
12697     case x$lt_status in
12698       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12699       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12700       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12701     esac
12702   else :
12703     # compilation failed
12704     lt_cv_dlopen_self=no
12705   fi
12706 fi
12707 rm -fr conftest*
12708
12709
12710 fi
12711 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12712 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12713
12714     if test "x$lt_cv_dlopen_self" = xyes; then
12715       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12716       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12717 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12718 if test "${lt_cv_dlopen_self_static+set}" = set; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721           if test "$cross_compiling" = yes; then :
12722   lt_cv_dlopen_self_static=cross
12723 else
12724   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12725   lt_status=$lt_dlunknown
12726   cat > conftest.$ac_ext <<_LT_EOF
12727 #line 12727 "configure"
12728 #include "confdefs.h"
12729
12730 #if HAVE_DLFCN_H
12731 #include <dlfcn.h>
12732 #endif
12733
12734 #include <stdio.h>
12735
12736 #ifdef RTLD_GLOBAL
12737 #  define LT_DLGLOBAL           RTLD_GLOBAL
12738 #else
12739 #  ifdef DL_GLOBAL
12740 #    define LT_DLGLOBAL         DL_GLOBAL
12741 #  else
12742 #    define LT_DLGLOBAL         0
12743 #  endif
12744 #endif
12745
12746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12747    find out it does not work in some platform. */
12748 #ifndef LT_DLLAZY_OR_NOW
12749 #  ifdef RTLD_LAZY
12750 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12751 #  else
12752 #    ifdef DL_LAZY
12753 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12754 #    else
12755 #      ifdef RTLD_NOW
12756 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12757 #      else
12758 #        ifdef DL_NOW
12759 #          define LT_DLLAZY_OR_NOW      DL_NOW
12760 #        else
12761 #          define LT_DLLAZY_OR_NOW      0
12762 #        endif
12763 #      endif
12764 #    endif
12765 #  endif
12766 #endif
12767
12768 void fnord() { int i=42;}
12769 int main ()
12770 {
12771   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12772   int status = $lt_dlunknown;
12773
12774   if (self)
12775     {
12776       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12777       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12778       /* dlclose (self); */
12779     }
12780   else
12781     puts (dlerror ());
12782
12783   return status;
12784 }
12785 _LT_EOF
12786   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787   (eval $ac_link) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12791     (./conftest; exit; ) >&5 2>/dev/null
12792     lt_status=$?
12793     case x$lt_status in
12794       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12795       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12796       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12797     esac
12798   else :
12799     # compilation failed
12800     lt_cv_dlopen_self_static=no
12801   fi
12802 fi
12803 rm -fr conftest*
12804
12805
12806 fi
12807 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12808 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12809     fi
12810
12811     CPPFLAGS="$save_CPPFLAGS"
12812     LDFLAGS="$save_LDFLAGS"
12813     LIBS="$save_LIBS"
12814     ;;
12815   esac
12816
12817   case $lt_cv_dlopen_self in
12818   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12819   *) enable_dlopen_self=unknown ;;
12820   esac
12821
12822   case $lt_cv_dlopen_self_static in
12823   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12824   *) enable_dlopen_self_static=unknown ;;
12825   esac
12826 fi
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844 striplib=
12845 old_striplib=
12846 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12847 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12848 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12849   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12850   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12851   { echo "$as_me:$LINENO: result: yes" >&5
12852 echo "${ECHO_T}yes" >&6; }
12853 else
12854 # FIXME - insert some real tests, host_os isn't really good enough
12855   case $host_os in
12856   darwin*)
12857     if test -n "$STRIP" ; then
12858       striplib="$STRIP -x"
12859       old_striplib="$STRIP -S"
12860       { echo "$as_me:$LINENO: result: yes" >&5
12861 echo "${ECHO_T}yes" >&6; }
12862     else
12863       { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12865     fi
12866     ;;
12867   *)
12868     { echo "$as_me:$LINENO: result: no" >&5
12869 echo "${ECHO_T}no" >&6; }
12870     ;;
12871   esac
12872 fi
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885   # Report which library types will actually be built
12886   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12887 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12888   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12889 echo "${ECHO_T}$can_build_shared" >&6; }
12890
12891   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12892 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12893   test "$can_build_shared" = "no" && enable_shared=no
12894
12895   # On AIX, shared libraries and static libraries use the same namespace, and
12896   # are all built from PIC.
12897   case $host_os in
12898   aix3*)
12899     test "$enable_shared" = yes && enable_static=no
12900     if test -n "$RANLIB"; then
12901       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12902       postinstall_cmds='$RANLIB $lib'
12903     fi
12904     ;;
12905
12906   aix[4-9]*)
12907     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12908       test "$enable_shared" = yes && enable_static=no
12909     fi
12910     ;;
12911   esac
12912   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12913 echo "${ECHO_T}$enable_shared" >&6; }
12914
12915   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12916 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12917   # Make sure either enable_shared or enable_static is yes.
12918   test "$enable_shared" = yes || enable_static=yes
12919   { echo "$as_me:$LINENO: result: $enable_static" >&5
12920 echo "${ECHO_T}$enable_static" >&6; }
12921
12922
12923
12924
12925 fi
12926 ac_ext=c
12927 ac_cpp='$CPP $CPPFLAGS'
12928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12931
12932 CC="$lt_save_CC"
12933
12934
12935 ac_ext=cpp
12936 ac_cpp='$CXXCPP $CPPFLAGS'
12937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12940
12941 archive_cmds_need_lc_CXX=no
12942 allow_undefined_flag_CXX=
12943 always_export_symbols_CXX=no
12944 archive_expsym_cmds_CXX=
12945 compiler_needs_object_CXX=no
12946 export_dynamic_flag_spec_CXX=
12947 hardcode_direct_CXX=no
12948 hardcode_direct_absolute_CXX=no
12949 hardcode_libdir_flag_spec_CXX=
12950 hardcode_libdir_flag_spec_ld_CXX=
12951 hardcode_libdir_separator_CXX=
12952 hardcode_minus_L_CXX=no
12953 hardcode_shlibpath_var_CXX=unsupported
12954 hardcode_automatic_CXX=no
12955 inherit_rpath_CXX=no
12956 module_cmds_CXX=
12957 module_expsym_cmds_CXX=
12958 link_all_deplibs_CXX=unknown
12959 old_archive_cmds_CXX=$old_archive_cmds
12960 no_undefined_flag_CXX=
12961 whole_archive_flag_spec_CXX=
12962 enable_shared_with_static_runtimes_CXX=no
12963
12964 # Source file extension for C++ test sources.
12965 ac_ext=cpp
12966
12967 # Object file extension for compiled C++ test sources.
12968 objext=o
12969 objext_CXX=$objext
12970
12971 # No sense in running all these tests if we already determined that
12972 # the CXX compiler isn't working.  Some variables (like enable_shared)
12973 # are currently assumed to apply to all compilers on this platform,
12974 # and will be corrupted by setting them based on a non-working compiler.
12975 if test "$_lt_caught_CXX_error" != yes; then
12976   # Code to be used in simple compile tests
12977   lt_simple_compile_test_code="int some_variable = 0;"
12978
12979   # Code to be used in simple link tests
12980   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12981
12982   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12983
12984
12985
12986
12987
12988
12989 # If no C compiler was specified, use CC.
12990 LTCC=${LTCC-"$CC"}
12991
12992 # If no C compiler flags were specified, use CFLAGS.
12993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12994
12995 # Allow CC to be a program name with arguments.
12996 compiler=$CC
12997
12998
12999   # save warnings/boilerplate of simple test code
13000   ac_outfile=conftest.$ac_objext
13001 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13002 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13003 _lt_compiler_boilerplate=`cat conftest.err`
13004 $RM conftest*
13005
13006   ac_outfile=conftest.$ac_objext
13007 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13008 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13009 _lt_linker_boilerplate=`cat conftest.err`
13010 $RM -r conftest*
13011
13012
13013   # Allow CC to be a program name with arguments.
13014   lt_save_CC=$CC
13015   lt_save_LD=$LD
13016   lt_save_GCC=$GCC
13017   GCC=$GXX
13018   lt_save_with_gnu_ld=$with_gnu_ld
13019   lt_save_path_LD=$lt_cv_path_LD
13020   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13021     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13022   else
13023     $as_unset lt_cv_prog_gnu_ld
13024   fi
13025   if test -n "${lt_cv_path_LDCXX+set}"; then
13026     lt_cv_path_LD=$lt_cv_path_LDCXX
13027   else
13028     $as_unset lt_cv_path_LD
13029   fi
13030   test -z "${LDCXX+set}" || LD=$LDCXX
13031   CC=${CXX-"c++"}
13032   compiler=$CC
13033   compiler_CXX=$CC
13034   for cc_temp in $compiler""; do
13035   case $cc_temp in
13036     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13037     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13038     \-*) ;;
13039     *) break;;
13040   esac
13041 done
13042 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13043
13044
13045   if test -n "$compiler"; then
13046     # We don't want -fno-exception when compiling C++ code, so set the
13047     # no_builtin_flag separately
13048     if test "$GXX" = yes; then
13049       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13050     else
13051       lt_prog_compiler_no_builtin_flag_CXX=
13052     fi
13053
13054     if test "$GXX" = yes; then
13055       # Set up default GNU C++ configuration
13056
13057
13058
13059 # Check whether --with-gnu-ld was given.
13060 if test "${with_gnu_ld+set}" = set; then
13061   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13062 else
13063   with_gnu_ld=no
13064 fi
13065
13066 ac_prog=ld
13067 if test "$GCC" = yes; then
13068   # Check if gcc -print-prog-name=ld gives a path.
13069   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13070 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13071   case $host in
13072   *-*-mingw*)
13073     # gcc leaves a trailing carriage return which upsets mingw
13074     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13075   *)
13076     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13077   esac
13078   case $ac_prog in
13079     # Accept absolute paths.
13080     [\\/]* | ?:[\\/]*)
13081       re_direlt='/[^/][^/]*/\.\./'
13082       # Canonicalize the pathname of ld
13083       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13084       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13085         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13086       done
13087       test -z "$LD" && LD="$ac_prog"
13088       ;;
13089   "")
13090     # If it fails, then pretend we aren't using GCC.
13091     ac_prog=ld
13092     ;;
13093   *)
13094     # If it is relative, then search for the first ld in PATH.
13095     with_gnu_ld=unknown
13096     ;;
13097   esac
13098 elif test "$with_gnu_ld" = yes; then
13099   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13100 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13101 else
13102   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13103 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13104 fi
13105 if test "${lt_cv_path_LD+set}" = set; then
13106   echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108   if test -z "$LD"; then
13109   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13110   for ac_dir in $PATH; do
13111     IFS="$lt_save_ifs"
13112     test -z "$ac_dir" && ac_dir=.
13113     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13114       lt_cv_path_LD="$ac_dir/$ac_prog"
13115       # Check to see if the program is GNU ld.  I'd rather use --version,
13116       # but apparently some variants of GNU ld only accept -v.
13117       # Break only if it was the GNU/non-GNU ld that we prefer.
13118       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13119       *GNU* | *'with BFD'*)
13120         test "$with_gnu_ld" != no && break
13121         ;;
13122       *)
13123         test "$with_gnu_ld" != yes && break
13124         ;;
13125       esac
13126     fi
13127   done
13128   IFS="$lt_save_ifs"
13129 else
13130   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13131 fi
13132 fi
13133
13134 LD="$lt_cv_path_LD"
13135 if test -n "$LD"; then
13136   { echo "$as_me:$LINENO: result: $LD" >&5
13137 echo "${ECHO_T}$LD" >&6; }
13138 else
13139   { echo "$as_me:$LINENO: result: no" >&5
13140 echo "${ECHO_T}no" >&6; }
13141 fi
13142 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13143 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13144    { (exit 1); exit 1; }; }
13145 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13146 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13147 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13148   echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13151 case `$LD -v 2>&1 </dev/null` in
13152 *GNU* | *'with BFD'*)
13153   lt_cv_prog_gnu_ld=yes
13154   ;;
13155 *)
13156   lt_cv_prog_gnu_ld=no
13157   ;;
13158 esac
13159 fi
13160 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13161 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13162 with_gnu_ld=$lt_cv_prog_gnu_ld
13163
13164
13165
13166
13167
13168
13169
13170       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13171       # archiving commands below assume that GNU ld is being used.
13172       if test "$with_gnu_ld" = yes; then
13173         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13174         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'
13175
13176         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13177         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13178
13179         # If archive_cmds runs LD, not CC, wlarc should be empty
13180         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13181         #     investigate it a little bit more. (MM)
13182         wlarc='${wl}'
13183
13184         # ancient GNU ld didn't support --whole-archive et. al.
13185         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13186           $GREP 'no-whole-archive' > /dev/null; then
13187           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13188         else
13189           whole_archive_flag_spec_CXX=
13190         fi
13191       else
13192         with_gnu_ld=no
13193         wlarc=
13194
13195         # A generic and very simple default shared library creation
13196         # command for GNU C++ for the case where it uses the native
13197         # linker, instead of GNU ld.  If possible, this setting should
13198         # overridden to take advantage of the native linker features on
13199         # the platform it is being used on.
13200         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13201       fi
13202
13203       # Commands to make compiler produce verbose output that lists
13204       # what "hidden" libraries, object files and flags are used when
13205       # linking a shared library.
13206       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13207
13208     else
13209       GXX=no
13210       with_gnu_ld=no
13211       wlarc=
13212     fi
13213
13214     # PORTME: fill in a description of your system's C++ link characteristics
13215     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13216 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13217     ld_shlibs_CXX=yes
13218     case $host_os in
13219       aix3*)
13220         # FIXME: insert proper C++ library support
13221         ld_shlibs_CXX=no
13222         ;;
13223       aix[4-9]*)
13224         if test "$host_cpu" = ia64; then
13225           # On IA64, the linker does run time linking by default, so we don't
13226           # have to do anything special.
13227           aix_use_runtimelinking=no
13228           exp_sym_flag='-Bexport'
13229           no_entry_flag=""
13230         else
13231           aix_use_runtimelinking=no
13232
13233           # Test if we are trying to use run time linking or normal
13234           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13235           # need to do runtime linking.
13236           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13237             for ld_flag in $LDFLAGS; do
13238               case $ld_flag in
13239               *-brtl*)
13240                 aix_use_runtimelinking=yes
13241                 break
13242                 ;;
13243               esac
13244             done
13245             ;;
13246           esac
13247
13248           exp_sym_flag='-bexport'
13249           no_entry_flag='-bnoentry'
13250         fi
13251
13252         # When large executables or shared objects are built, AIX ld can
13253         # have problems creating the table of contents.  If linking a library
13254         # or program results in "error TOC overflow" add -mminimal-toc to
13255         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13256         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13257
13258         archive_cmds_CXX=''
13259         hardcode_direct_CXX=yes
13260         hardcode_direct_absolute_CXX=yes
13261         hardcode_libdir_separator_CXX=':'
13262         link_all_deplibs_CXX=yes
13263         file_list_spec_CXX='${wl}-f,'
13264
13265         if test "$GXX" = yes; then
13266           case $host_os in aix4.[012]|aix4.[012].*)
13267           # We only want to do this on AIX 4.2 and lower, the check
13268           # below for broken collect2 doesn't work under 4.3+
13269           collect2name=`${CC} -print-prog-name=collect2`
13270           if test -f "$collect2name" &&
13271              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13272           then
13273             # We have reworked collect2
13274             :
13275           else
13276             # We have old collect2
13277             hardcode_direct_CXX=unsupported
13278             # It fails to find uninstalled libraries when the uninstalled
13279             # path is not listed in the libpath.  Setting hardcode_minus_L
13280             # to unsupported forces relinking
13281             hardcode_minus_L_CXX=yes
13282             hardcode_libdir_flag_spec_CXX='-L$libdir'
13283             hardcode_libdir_separator_CXX=
13284           fi
13285           esac
13286           shared_flag='-shared'
13287           if test "$aix_use_runtimelinking" = yes; then
13288             shared_flag="$shared_flag "'${wl}-G'
13289           fi
13290         else
13291           # not using gcc
13292           if test "$host_cpu" = ia64; then
13293           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13294           # chokes on -Wl,-G. The following line is correct:
13295           shared_flag='-G'
13296           else
13297             if test "$aix_use_runtimelinking" = yes; then
13298               shared_flag='${wl}-G'
13299             else
13300               shared_flag='${wl}-bM:SRE'
13301             fi
13302           fi
13303         fi
13304
13305         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13306         # It seems that -bexpall does not export symbols beginning with
13307         # underscore (_), so it is better to generate a list of symbols to
13308         # export.
13309         always_export_symbols_CXX=yes
13310         if test "$aix_use_runtimelinking" = yes; then
13311           # Warning - without using the other runtime loading flags (-brtl),
13312           # -berok will link without error, but may produce a broken library.
13313           allow_undefined_flag_CXX='-berok'
13314           # Determine the default libpath from the value encoded in an empty
13315           # executable.
13316           cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h.  */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h.  */
13322
13323 int
13324 main ()
13325 {
13326
13327   ;
13328   return 0;
13329 }
13330 _ACEOF
13331 rm -f conftest.$ac_objext conftest$ac_exeext
13332 if { (ac_try="$ac_link"
13333 case "(($ac_try" in
13334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335   *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338   (eval "$ac_link") 2>conftest.er1
13339   ac_status=$?
13340   grep -v '^ *+' conftest.er1 >conftest.err
13341   rm -f conftest.er1
13342   cat conftest.err >&5
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); } && {
13345          test -z "$ac_cxx_werror_flag" ||
13346          test ! -s conftest.err
13347        } && test -s conftest$ac_exeext &&
13348        $as_test_x conftest$ac_exeext; then
13349
13350 lt_aix_libpath_sed='
13351     /Import File Strings/,/^$/ {
13352         /^0/ {
13353             s/^0  *\(.*\)$/\1/
13354             p
13355         }
13356     }'
13357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13358 # Check for a 64-bit object if we didn't find anything.
13359 if test -z "$aix_libpath"; then
13360   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13361 fi
13362 else
13363   echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366
13367 fi
13368
13369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13370       conftest$ac_exeext conftest.$ac_ext
13371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13372
13373           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13374
13375           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"
13376         else
13377           if test "$host_cpu" = ia64; then
13378             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13379             allow_undefined_flag_CXX="-z nodefs"
13380             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"
13381           else
13382             # Determine the default libpath from the value encoded in an
13383             # empty executable.
13384             cat >conftest.$ac_ext <<_ACEOF
13385 /* confdefs.h.  */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h.  */
13390
13391 int
13392 main ()
13393 {
13394
13395   ;
13396   return 0;
13397 }
13398 _ACEOF
13399 rm -f conftest.$ac_objext conftest$ac_exeext
13400 if { (ac_try="$ac_link"
13401 case "(($ac_try" in
13402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403   *) ac_try_echo=$ac_try;;
13404 esac
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406   (eval "$ac_link") 2>conftest.er1
13407   ac_status=$?
13408   grep -v '^ *+' conftest.er1 >conftest.err
13409   rm -f conftest.er1
13410   cat conftest.err >&5
13411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412   (exit $ac_status); } && {
13413          test -z "$ac_cxx_werror_flag" ||
13414          test ! -s conftest.err
13415        } && test -s conftest$ac_exeext &&
13416        $as_test_x conftest$ac_exeext; then
13417
13418 lt_aix_libpath_sed='
13419     /Import File Strings/,/^$/ {
13420         /^0/ {
13421             s/^0  *\(.*\)$/\1/
13422             p
13423         }
13424     }'
13425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13426 # Check for a 64-bit object if we didn't find anything.
13427 if test -z "$aix_libpath"; then
13428   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13429 fi
13430 else
13431   echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13433
13434
13435 fi
13436
13437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13438       conftest$ac_exeext conftest.$ac_ext
13439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13440
13441             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13442             # Warning - without using the other run time loading flags,
13443             # -berok will link without error, but may produce a broken library.
13444             no_undefined_flag_CXX=' ${wl}-bernotok'
13445             allow_undefined_flag_CXX=' ${wl}-berok'
13446             # Exported symbols can be pulled into shared objects from archives
13447             whole_archive_flag_spec_CXX='$convenience'
13448             archive_cmds_need_lc_CXX=yes
13449             # This is similar to how AIX traditionally builds its shared
13450             # libraries.
13451             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'
13452           fi
13453         fi
13454         ;;
13455
13456       beos*)
13457         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13458           allow_undefined_flag_CXX=unsupported
13459           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13460           # support --undefined.  This deserves some investigation.  FIXME
13461           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13462         else
13463           ld_shlibs_CXX=no
13464         fi
13465         ;;
13466
13467       chorus*)
13468         case $cc_basename in
13469           *)
13470           # FIXME: insert proper C++ library support
13471           ld_shlibs_CXX=no
13472           ;;
13473         esac
13474         ;;
13475
13476       cygwin* | mingw* | pw32* | cegcc*)
13477         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13478         # as there is no search path for DLLs.
13479         hardcode_libdir_flag_spec_CXX='-L$libdir'
13480         allow_undefined_flag_CXX=unsupported
13481         always_export_symbols_CXX=no
13482         enable_shared_with_static_runtimes_CXX=yes
13483
13484         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13485           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'
13486           # If the export-symbols file already is a .def file (1st line
13487           # is EXPORTS), use it as is; otherwise, prepend...
13488           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13489             cp $export_symbols $output_objdir/$soname.def;
13490           else
13491             echo EXPORTS > $output_objdir/$soname.def;
13492             cat $export_symbols >> $output_objdir/$soname.def;
13493           fi~
13494           $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'
13495         else
13496           ld_shlibs_CXX=no
13497         fi
13498         ;;
13499       darwin* | rhapsody*)
13500
13501
13502   archive_cmds_need_lc_CXX=no
13503   hardcode_direct_CXX=no
13504   hardcode_automatic_CXX=yes
13505   hardcode_shlibpath_var_CXX=unsupported
13506   whole_archive_flag_spec_CXX=''
13507   link_all_deplibs_CXX=yes
13508   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13509   case $cc_basename in
13510      ifort*) _lt_dar_can_shared=yes ;;
13511      *) _lt_dar_can_shared=$GCC ;;
13512   esac
13513   if test "$_lt_dar_can_shared" = "yes"; then
13514     output_verbose_link_cmd=echo
13515     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}"
13516     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13517     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}"
13518     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}"
13519        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13520       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}"
13521       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}"
13522     fi
13523
13524   else
13525   ld_shlibs_CXX=no
13526   fi
13527
13528         ;;
13529
13530       dgux*)
13531         case $cc_basename in
13532           ec++*)
13533             # FIXME: insert proper C++ library support
13534             ld_shlibs_CXX=no
13535             ;;
13536           ghcx*)
13537             # Green Hills C++ Compiler
13538             # FIXME: insert proper C++ library support
13539             ld_shlibs_CXX=no
13540             ;;
13541           *)
13542             # FIXME: insert proper C++ library support
13543             ld_shlibs_CXX=no
13544             ;;
13545         esac
13546         ;;
13547
13548       freebsd[12]*)
13549         # C++ shared libraries reported to be fairly broken before
13550         # switch to ELF
13551         ld_shlibs_CXX=no
13552         ;;
13553
13554       freebsd-elf*)
13555         archive_cmds_need_lc_CXX=no
13556         ;;
13557
13558       freebsd* | dragonfly*)
13559         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13560         # conventions
13561         ld_shlibs_CXX=yes
13562         ;;
13563
13564       gnu*)
13565         ;;
13566
13567       hpux9*)
13568         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13569         hardcode_libdir_separator_CXX=:
13570         export_dynamic_flag_spec_CXX='${wl}-E'
13571         hardcode_direct_CXX=yes
13572         hardcode_minus_L_CXX=yes # Not in the search PATH,
13573                                              # but as the default
13574                                              # location of the library.
13575
13576         case $cc_basename in
13577           CC*)
13578             # FIXME: insert proper C++ library support
13579             ld_shlibs_CXX=no
13580             ;;
13581           aCC*)
13582             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'
13583             # Commands to make compiler produce verbose output that lists
13584             # what "hidden" libraries, object files and flags are used when
13585             # linking a shared library.
13586             #
13587             # There doesn't appear to be a way to prevent this compiler from
13588             # explicitly linking system object files so we need to strip them
13589             # from the output so that they don't get included in the library
13590             # dependencies.
13591             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'
13592             ;;
13593           *)
13594             if test "$GXX" = yes; then
13595               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'
13596             else
13597               # FIXME: insert proper C++ library support
13598               ld_shlibs_CXX=no
13599             fi
13600             ;;
13601         esac
13602         ;;
13603
13604       hpux10*|hpux11*)
13605         if test $with_gnu_ld = no; then
13606           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13607           hardcode_libdir_separator_CXX=:
13608
13609           case $host_cpu in
13610             hppa*64*|ia64*)
13611               ;;
13612             *)
13613               export_dynamic_flag_spec_CXX='${wl}-E'
13614               ;;
13615           esac
13616         fi
13617         case $host_cpu in
13618           hppa*64*|ia64*)
13619             hardcode_direct_CXX=no
13620             hardcode_shlibpath_var_CXX=no
13621             ;;
13622           *)
13623             hardcode_direct_CXX=yes
13624             hardcode_direct_absolute_CXX=yes
13625             hardcode_minus_L_CXX=yes # Not in the search PATH,
13626                                                  # but as the default
13627                                                  # location of the library.
13628             ;;
13629         esac
13630
13631         case $cc_basename in
13632           CC*)
13633             # FIXME: insert proper C++ library support
13634             ld_shlibs_CXX=no
13635             ;;
13636           aCC*)
13637             case $host_cpu in
13638               hppa*64*)
13639                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13640                 ;;
13641               ia64*)
13642                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13643                 ;;
13644               *)
13645                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13646                 ;;
13647             esac
13648             # Commands to make compiler produce verbose output that lists
13649             # what "hidden" libraries, object files and flags are used when
13650             # linking a shared library.
13651             #
13652             # There doesn't appear to be a way to prevent this compiler from
13653             # explicitly linking system object files so we need to strip them
13654             # from the output so that they don't get included in the library
13655             # dependencies.
13656             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'
13657             ;;
13658           *)
13659             if test "$GXX" = yes; then
13660               if test $with_gnu_ld = no; then
13661                 case $host_cpu in
13662                   hppa*64*)
13663                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13664                     ;;
13665                   ia64*)
13666                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13667                     ;;
13668                   *)
13669                     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'
13670                     ;;
13671                 esac
13672               fi
13673             else
13674               # FIXME: insert proper C++ library support
13675               ld_shlibs_CXX=no
13676             fi
13677             ;;
13678         esac
13679         ;;
13680
13681       interix[3-9]*)
13682         hardcode_direct_CXX=no
13683         hardcode_shlibpath_var_CXX=no
13684         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13685         export_dynamic_flag_spec_CXX='${wl}-E'
13686         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13687         # Instead, shared libraries are loaded at an image base (0x10000000 by
13688         # default) and relocated if they conflict, which is a slow very memory
13689         # consuming and fragmenting process.  To avoid this, we pick a random,
13690         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13691         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13692         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'
13693         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'
13694         ;;
13695       irix5* | irix6*)
13696         case $cc_basename in
13697           CC*)
13698             # SGI C++
13699             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'
13700
13701             # Archives containing C++ object files must be created using
13702             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13703             # necessary to make sure instantiated templates are included
13704             # in the archive.
13705             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13706             ;;
13707           *)
13708             if test "$GXX" = yes; then
13709               if test "$with_gnu_ld" = no; then
13710                 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'
13711               else
13712                 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'
13713               fi
13714             fi
13715             link_all_deplibs_CXX=yes
13716             ;;
13717         esac
13718         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13719         hardcode_libdir_separator_CXX=:
13720         inherit_rpath_CXX=yes
13721         ;;
13722
13723       linux* | k*bsd*-gnu)
13724         case $cc_basename in
13725           KCC*)
13726             # Kuck and Associates, Inc. (KAI) C++ Compiler
13727
13728             # KCC will only create a shared library if the output file
13729             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13730             # to its proper name (with version) after linking.
13731             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'
13732             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'
13733             # Commands to make compiler produce verbose output that lists
13734             # what "hidden" libraries, object files and flags are used when
13735             # linking a shared library.
13736             #
13737             # There doesn't appear to be a way to prevent this compiler from
13738             # explicitly linking system object files so we need to strip them
13739             # from the output so that they don't get included in the library
13740             # dependencies.
13741             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'
13742
13743             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13744             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13745
13746             # Archives containing C++ object files must be created using
13747             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13748             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13749             ;;
13750           icpc* | ecpc* )
13751             # Intel C++
13752             with_gnu_ld=yes
13753             # version 8.0 and above of icpc choke on multiply defined symbols
13754             # if we add $predep_objects and $postdep_objects, however 7.1 and
13755             # earlier do not add the objects themselves.
13756             case `$CC -V 2>&1` in
13757               *"Version 7."*)
13758                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13759                 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'
13760                 ;;
13761               *)  # Version 8.0 or newer
13762                 tmp_idyn=
13763                 case $host_cpu in
13764                   ia64*) tmp_idyn=' -i_dynamic';;
13765                 esac
13766                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13767                 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'
13768                 ;;
13769             esac
13770             archive_cmds_need_lc_CXX=no
13771             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13772             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13773             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13774             ;;
13775           pgCC* | pgcpp*)
13776             # Portland Group C++ compiler
13777             case `$CC -V` in
13778             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13779               prelink_cmds_CXX='tpldir=Template.dir~
13780                 rm -rf $tpldir~
13781                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13782                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13783               old_archive_cmds_CXX='tpldir=Template.dir~
13784                 rm -rf $tpldir~
13785                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13786                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13787                 $RANLIB $oldlib'
13788               archive_cmds_CXX='tpldir=Template.dir~
13789                 rm -rf $tpldir~
13790                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13791                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13792               archive_expsym_cmds_CXX='tpldir=Template.dir~
13793                 rm -rf $tpldir~
13794                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13795                 $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'
13796               ;;
13797             *) # Version 6 will use weak symbols
13798               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13799               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'
13800               ;;
13801             esac
13802
13803             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13804             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13805             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'
13806             ;;
13807           cxx*)
13808             # Compaq C++
13809             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13810             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'
13811
13812             runpath_var=LD_RUN_PATH
13813             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13814             hardcode_libdir_separator_CXX=:
13815
13816             # Commands to make compiler produce verbose output that lists
13817             # what "hidden" libraries, object files and flags are used when
13818             # linking a shared library.
13819             #
13820             # There doesn't appear to be a way to prevent this compiler from
13821             # explicitly linking system object files so we need to strip them
13822             # from the output so that they don't get included in the library
13823             # dependencies.
13824             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'
13825             ;;
13826           xl*)
13827             # IBM XL 8.0 on PPC, with GNU ld
13828             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13829             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13830             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831             if test "x$supports_anon_versioning" = xyes; then
13832               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13833                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13834                 echo "local: *; };" >> $output_objdir/$libname.ver~
13835                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13836             fi
13837             ;;
13838           *)
13839             case `$CC -V 2>&1 | sed 5q` in
13840             *Sun\ C*)
13841               # Sun C++ 5.9
13842               no_undefined_flag_CXX=' -zdefs'
13843               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13844               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'
13845               hardcode_libdir_flag_spec_CXX='-R$libdir'
13846               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'
13847               compiler_needs_object_CXX=yes
13848
13849               # Not sure whether something based on
13850               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13851               # would be better.
13852               output_verbose_link_cmd='echo'
13853
13854               # Archives containing C++ object files must be created using
13855               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13856               # necessary to make sure instantiated templates are included
13857               # in the archive.
13858               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13859               ;;
13860             esac
13861             ;;
13862         esac
13863         ;;
13864
13865       lynxos*)
13866         # FIXME: insert proper C++ library support
13867         ld_shlibs_CXX=no
13868         ;;
13869
13870       m88k*)
13871         # FIXME: insert proper C++ library support
13872         ld_shlibs_CXX=no
13873         ;;
13874
13875       mvs*)
13876         case $cc_basename in
13877           cxx*)
13878             # FIXME: insert proper C++ library support
13879             ld_shlibs_CXX=no
13880             ;;
13881           *)
13882             # FIXME: insert proper C++ library support
13883             ld_shlibs_CXX=no
13884             ;;
13885         esac
13886         ;;
13887
13888       netbsd*)
13889         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13890           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13891           wlarc=
13892           hardcode_libdir_flag_spec_CXX='-R$libdir'
13893           hardcode_direct_CXX=yes
13894           hardcode_shlibpath_var_CXX=no
13895         fi
13896         # Workaround some broken pre-1.5 toolchains
13897         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13898         ;;
13899
13900       *nto* | *qnx*)
13901         ld_shlibs_CXX=yes
13902         ;;
13903
13904       openbsd2*)
13905         # C++ shared libraries are fairly broken
13906         ld_shlibs_CXX=no
13907         ;;
13908
13909       openbsd*)
13910         if test -f /usr/libexec/ld.so; then
13911           hardcode_direct_CXX=yes
13912           hardcode_shlibpath_var_CXX=no
13913           hardcode_direct_absolute_CXX=yes
13914           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13915           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13916           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13917             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13918             export_dynamic_flag_spec_CXX='${wl}-E'
13919             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13920           fi
13921           output_verbose_link_cmd=echo
13922         else
13923           ld_shlibs_CXX=no
13924         fi
13925         ;;
13926
13927       osf3* | osf4* | osf5*)
13928         case $cc_basename in
13929           KCC*)
13930             # Kuck and Associates, Inc. (KAI) C++ Compiler
13931
13932             # KCC will only create a shared library if the output file
13933             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13934             # to its proper name (with version) after linking.
13935             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'
13936
13937             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13938             hardcode_libdir_separator_CXX=:
13939
13940             # Archives containing C++ object files must be created using
13941             # the KAI C++ compiler.
13942             case $host in
13943               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13944               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13945             esac
13946             ;;
13947           RCC*)
13948             # Rational C++ 2.4.1
13949             # FIXME: insert proper C++ library support
13950             ld_shlibs_CXX=no
13951             ;;
13952           cxx*)
13953             case $host in
13954               osf3*)
13955                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13956                 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'
13957                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13958                 ;;
13959               *)
13960                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13961                 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'
13962                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13963                   echo "-hidden">> $lib.exp~
13964                   $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~
13965                   $RM $lib.exp'
13966                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13967                 ;;
13968             esac
13969
13970             hardcode_libdir_separator_CXX=:
13971
13972             # Commands to make compiler produce verbose output that lists
13973             # what "hidden" libraries, object files and flags are used when
13974             # linking a shared library.
13975             #
13976             # There doesn't appear to be a way to prevent this compiler from
13977             # explicitly linking system object files so we need to strip them
13978             # from the output so that they don't get included in the library
13979             # dependencies.
13980             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'
13981             ;;
13982           *)
13983             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13984               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13985               case $host in
13986                 osf3*)
13987                   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'
13988                   ;;
13989                 *)
13990                   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'
13991                   ;;
13992               esac
13993
13994               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13995               hardcode_libdir_separator_CXX=:
13996
13997               # Commands to make compiler produce verbose output that lists
13998               # what "hidden" libraries, object files and flags are used when
13999               # linking a shared library.
14000               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14001
14002             else
14003               # FIXME: insert proper C++ library support
14004               ld_shlibs_CXX=no
14005             fi
14006             ;;
14007         esac
14008         ;;
14009
14010       psos*)
14011         # FIXME: insert proper C++ library support
14012         ld_shlibs_CXX=no
14013         ;;
14014
14015       sunos4*)
14016         case $cc_basename in
14017           CC*)
14018             # Sun C++ 4.x
14019             # FIXME: insert proper C++ library support
14020             ld_shlibs_CXX=no
14021             ;;
14022           lcc*)
14023             # Lucid
14024             # FIXME: insert proper C++ library support
14025             ld_shlibs_CXX=no
14026             ;;
14027           *)
14028             # FIXME: insert proper C++ library support
14029             ld_shlibs_CXX=no
14030             ;;
14031         esac
14032         ;;
14033
14034       solaris*)
14035         case $cc_basename in
14036           CC*)
14037             # Sun C++ 4.2, 5.x and Centerline C++
14038             archive_cmds_need_lc_CXX=yes
14039             no_undefined_flag_CXX=' -zdefs'
14040             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14041             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14042               $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'
14043
14044             hardcode_libdir_flag_spec_CXX='-R$libdir'
14045             hardcode_shlibpath_var_CXX=no
14046             case $host_os in
14047               solaris2.[0-5] | solaris2.[0-5].*) ;;
14048               *)
14049                 # The compiler driver will combine and reorder linker options,
14050                 # but understands `-z linker_flag'.
14051                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14052                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14053                 ;;
14054             esac
14055             link_all_deplibs_CXX=yes
14056
14057             output_verbose_link_cmd='echo'
14058
14059             # Archives containing C++ object files must be created using
14060             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14061             # necessary to make sure instantiated templates are included
14062             # in the archive.
14063             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14064             ;;
14065           gcx*)
14066             # Green Hills C++ Compiler
14067             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14068
14069             # The C++ compiler must be used to create the archive.
14070             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14071             ;;
14072           *)
14073             # GNU C++ compiler with Solaris linker
14074             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14075               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14076               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14077                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14078                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14079                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14080
14081                 # Commands to make compiler produce verbose output that lists
14082                 # what "hidden" libraries, object files and flags are used when
14083                 # linking a shared library.
14084                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14085               else
14086                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14087                 # platform.
14088                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14089                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14090                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14091
14092                 # Commands to make compiler produce verbose output that lists
14093                 # what "hidden" libraries, object files and flags are used when
14094                 # linking a shared library.
14095                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14096               fi
14097
14098               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14099               case $host_os in
14100                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14101                 *)
14102                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14103                   ;;
14104               esac
14105             fi
14106             ;;
14107         esac
14108         ;;
14109
14110     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14111       no_undefined_flag_CXX='${wl}-z,text'
14112       archive_cmds_need_lc_CXX=no
14113       hardcode_shlibpath_var_CXX=no
14114       runpath_var='LD_RUN_PATH'
14115
14116       case $cc_basename in
14117         CC*)
14118           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14119           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14120           ;;
14121         *)
14122           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14123           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14124           ;;
14125       esac
14126       ;;
14127
14128       sysv5* | sco3.2v5* | sco5v6*)
14129         # Note: We can NOT use -z defs as we might desire, because we do not
14130         # link with -lc, and that would cause any symbols used from libc to
14131         # always be unresolved, which means just about no library would
14132         # ever link correctly.  If we're not using GNU ld we use -z text
14133         # though, which does catch some bad symbols but isn't as heavy-handed
14134         # as -z defs.
14135         no_undefined_flag_CXX='${wl}-z,text'
14136         allow_undefined_flag_CXX='${wl}-z,nodefs'
14137         archive_cmds_need_lc_CXX=no
14138         hardcode_shlibpath_var_CXX=no
14139         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14140         hardcode_libdir_separator_CXX=':'
14141         link_all_deplibs_CXX=yes
14142         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14143         runpath_var='LD_RUN_PATH'
14144
14145         case $cc_basename in
14146           CC*)
14147             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14148             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14149             ;;
14150           *)
14151             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14152             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14153             ;;
14154         esac
14155       ;;
14156
14157       tandem*)
14158         case $cc_basename in
14159           NCC*)
14160             # NonStop-UX NCC 3.20
14161             # FIXME: insert proper C++ library support
14162             ld_shlibs_CXX=no
14163             ;;
14164           *)
14165             # FIXME: insert proper C++ library support
14166             ld_shlibs_CXX=no
14167             ;;
14168         esac
14169         ;;
14170
14171       vxworks*)
14172         # FIXME: insert proper C++ library support
14173         ld_shlibs_CXX=no
14174         ;;
14175
14176       *)
14177         # FIXME: insert proper C++ library support
14178         ld_shlibs_CXX=no
14179         ;;
14180     esac
14181
14182     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14183 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14184     test "$ld_shlibs_CXX" = no && can_build_shared=no
14185
14186     GCC_CXX="$GXX"
14187     LD_CXX="$LD"
14188
14189     ## CAVEAT EMPTOR:
14190     ## There is no encapsulation within the following macros, do not change
14191     ## the running order or otherwise move them around unless you know exactly
14192     ## what you are doing...
14193     # Dependencies to place before and after the object being linked:
14194 predep_objects_CXX=
14195 postdep_objects_CXX=
14196 predeps_CXX=
14197 postdeps_CXX=
14198 compiler_lib_search_path_CXX=
14199
14200 cat > conftest.$ac_ext <<_LT_EOF
14201 class Foo
14202 {
14203 public:
14204   Foo (void) { a = 0; }
14205 private:
14206   int a;
14207 };
14208 _LT_EOF
14209
14210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211   (eval $ac_compile) 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; then
14215   # Parse the compiler output and extract the necessary
14216   # objects, libraries and library flags.
14217
14218   # Sentinel used to keep track of whether or not we are before
14219   # the conftest object file.
14220   pre_test_object_deps_done=no
14221
14222   for p in `eval "$output_verbose_link_cmd"`; do
14223     case $p in
14224
14225     -L* | -R* | -l*)
14226        # Some compilers place space between "-{L,R}" and the path.
14227        # Remove the space.
14228        if test $p = "-L" ||
14229           test $p = "-R"; then
14230          prev=$p
14231          continue
14232        else
14233          prev=
14234        fi
14235
14236        if test "$pre_test_object_deps_done" = no; then
14237          case $p in
14238          -L* | -R*)
14239            # Internal compiler library paths should come after those
14240            # provided the user.  The postdeps already come after the
14241            # user supplied libs so there is no need to process them.
14242            if test -z "$compiler_lib_search_path_CXX"; then
14243              compiler_lib_search_path_CXX="${prev}${p}"
14244            else
14245              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14246            fi
14247            ;;
14248          # The "-l" case would never come before the object being
14249          # linked, so don't bother handling this case.
14250          esac
14251        else
14252          if test -z "$postdeps_CXX"; then
14253            postdeps_CXX="${prev}${p}"
14254          else
14255            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14256          fi
14257        fi
14258        ;;
14259
14260     *.$objext)
14261        # This assumes that the test object file only shows up
14262        # once in the compiler output.
14263        if test "$p" = "conftest.$objext"; then
14264          pre_test_object_deps_done=yes
14265          continue
14266        fi
14267
14268        if test "$pre_test_object_deps_done" = no; then
14269          if test -z "$predep_objects_CXX"; then
14270            predep_objects_CXX="$p"
14271          else
14272            predep_objects_CXX="$predep_objects_CXX $p"
14273          fi
14274        else
14275          if test -z "$postdep_objects_CXX"; then
14276            postdep_objects_CXX="$p"
14277          else
14278            postdep_objects_CXX="$postdep_objects_CXX $p"
14279          fi
14280        fi
14281        ;;
14282
14283     *) ;; # Ignore the rest.
14284
14285     esac
14286   done
14287
14288   # Clean up.
14289   rm -f a.out a.exe
14290 else
14291   echo "libtool.m4: error: problem compiling CXX test program"
14292 fi
14293
14294 $RM -f confest.$objext
14295
14296 # PORTME: override above test on systems where it is broken
14297 case $host_os in
14298 interix[3-9]*)
14299   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14300   # hack all around it, let's just trust "g++" to DTRT.
14301   predep_objects_CXX=
14302   postdep_objects_CXX=
14303   postdeps_CXX=
14304   ;;
14305
14306 linux*)
14307   case `$CC -V 2>&1 | sed 5q` in
14308   *Sun\ C*)
14309     # Sun C++ 5.9
14310
14311     # The more standards-conforming stlport4 library is
14312     # incompatible with the Cstd library. Avoid specifying
14313     # it if it's in CXXFLAGS. Ignore libCrun as
14314     # -library=stlport4 depends on it.
14315     case " $CXX $CXXFLAGS " in
14316     *" -library=stlport4 "*)
14317       solaris_use_stlport4=yes
14318       ;;
14319     esac
14320
14321     if test "$solaris_use_stlport4" != yes; then
14322       postdeps_CXX='-library=Cstd -library=Crun'
14323     fi
14324     ;;
14325   esac
14326   ;;
14327
14328 solaris*)
14329   case $cc_basename in
14330   CC*)
14331     # The more standards-conforming stlport4 library is
14332     # incompatible with the Cstd library. Avoid specifying
14333     # it if it's in CXXFLAGS. Ignore libCrun as
14334     # -library=stlport4 depends on it.
14335     case " $CXX $CXXFLAGS " in
14336     *" -library=stlport4 "*)
14337       solaris_use_stlport4=yes
14338       ;;
14339     esac
14340
14341     # Adding this requires a known-good setup of shared libraries for
14342     # Sun compiler versions before 5.6, else PIC objects from an old
14343     # archive will be linked into the output, leading to subtle bugs.
14344     if test "$solaris_use_stlport4" != yes; then
14345       postdeps_CXX='-library=Cstd -library=Crun'
14346     fi
14347     ;;
14348   esac
14349   ;;
14350 esac
14351
14352
14353 case " $postdeps_CXX " in
14354 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14355 esac
14356  compiler_lib_search_dirs_CXX=
14357 if test -n "${compiler_lib_search_path_CXX}"; then
14358  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14359 fi
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391     lt_prog_compiler_wl_CXX=
14392 lt_prog_compiler_pic_CXX=
14393 lt_prog_compiler_static_CXX=
14394
14395 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14396 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14397
14398   # C++ specific cases for pic, static, wl, etc.
14399   if test "$GXX" = yes; then
14400     lt_prog_compiler_wl_CXX='-Wl,'
14401     lt_prog_compiler_static_CXX='-static'
14402
14403     case $host_os in
14404     aix*)
14405       # All AIX code is PIC.
14406       if test "$host_cpu" = ia64; then
14407         # AIX 5 now supports IA64 processor
14408         lt_prog_compiler_static_CXX='-Bstatic'
14409       fi
14410       ;;
14411
14412     amigaos*)
14413       case $host_cpu in
14414       powerpc)
14415             # see comment about AmigaOS4 .so support
14416             lt_prog_compiler_pic_CXX='-fPIC'
14417         ;;
14418       m68k)
14419             # FIXME: we need at least 68020 code to build shared libraries, but
14420             # adding the `-m68020' flag to GCC prevents building anything better,
14421             # like `-m68040'.
14422             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14423         ;;
14424       esac
14425       ;;
14426
14427     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14428       # PIC is the default for these OSes.
14429       ;;
14430     mingw* | cygwin* | os2* | pw32* | cegcc*)
14431       # This hack is so that the source file can tell whether it is being
14432       # built for inclusion in a dll (and should export symbols for example).
14433       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14434       # (--disable-auto-import) libraries
14435       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14436       ;;
14437     darwin* | rhapsody*)
14438       # PIC is the default on this platform
14439       # Common symbols not allowed in MH_DYLIB files
14440       lt_prog_compiler_pic_CXX='-fno-common'
14441       ;;
14442     *djgpp*)
14443       # DJGPP does not support shared libraries at all
14444       lt_prog_compiler_pic_CXX=
14445       ;;
14446     interix[3-9]*)
14447       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14448       # Instead, we relocate shared libraries at runtime.
14449       ;;
14450     sysv4*MP*)
14451       if test -d /usr/nec; then
14452         lt_prog_compiler_pic_CXX=-Kconform_pic
14453       fi
14454       ;;
14455     hpux*)
14456       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14457       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14458       # sets the default TLS model and affects inlining.
14459       case $host_cpu in
14460       hppa*64*)
14461         ;;
14462       *)
14463         lt_prog_compiler_pic_CXX='-fPIC'
14464         ;;
14465       esac
14466       ;;
14467     *qnx* | *nto*)
14468       # QNX uses GNU C++, but need to define -shared option too, otherwise
14469       # it will coredump.
14470       lt_prog_compiler_pic_CXX='-fPIC -shared'
14471       ;;
14472     *)
14473       lt_prog_compiler_pic_CXX='-fPIC'
14474       ;;
14475     esac
14476   else
14477     case $host_os in
14478       aix[4-9]*)
14479         # All AIX code is PIC.
14480         if test "$host_cpu" = ia64; then
14481           # AIX 5 now supports IA64 processor
14482           lt_prog_compiler_static_CXX='-Bstatic'
14483         else
14484           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14485         fi
14486         ;;
14487       chorus*)
14488         case $cc_basename in
14489         cxch68*)
14490           # Green Hills C++ Compiler
14491           # _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"
14492           ;;
14493         esac
14494         ;;
14495       dgux*)
14496         case $cc_basename in
14497           ec++*)
14498             lt_prog_compiler_pic_CXX='-KPIC'
14499             ;;
14500           ghcx*)
14501             # Green Hills C++ Compiler
14502             lt_prog_compiler_pic_CXX='-pic'
14503             ;;
14504           *)
14505             ;;
14506         esac
14507         ;;
14508       freebsd* | dragonfly*)
14509         # FreeBSD uses GNU C++
14510         ;;
14511       hpux9* | hpux10* | hpux11*)
14512         case $cc_basename in
14513           CC*)
14514             lt_prog_compiler_wl_CXX='-Wl,'
14515             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14516             if test "$host_cpu" != ia64; then
14517               lt_prog_compiler_pic_CXX='+Z'
14518             fi
14519             ;;
14520           aCC*)
14521             lt_prog_compiler_wl_CXX='-Wl,'
14522             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14523             case $host_cpu in
14524             hppa*64*|ia64*)
14525               # +Z the default
14526               ;;
14527             *)
14528               lt_prog_compiler_pic_CXX='+Z'
14529               ;;
14530             esac
14531             ;;
14532           *)
14533             ;;
14534         esac
14535         ;;
14536       interix*)
14537         # This is c89, which is MS Visual C++ (no shared libs)
14538         # Anyone wants to do a port?
14539         ;;
14540       irix5* | irix6* | nonstopux*)
14541         case $cc_basename in
14542           CC*)
14543             lt_prog_compiler_wl_CXX='-Wl,'
14544             lt_prog_compiler_static_CXX='-non_shared'
14545             # CC pic flag -KPIC is the default.
14546             ;;
14547           *)
14548             ;;
14549         esac
14550         ;;
14551       linux* | k*bsd*-gnu)
14552         case $cc_basename in
14553           KCC*)
14554             # KAI C++ Compiler
14555             lt_prog_compiler_wl_CXX='--backend -Wl,'
14556             lt_prog_compiler_pic_CXX='-fPIC'
14557             ;;
14558           ecpc* )
14559             # old Intel C++ for x86_64 which still supported -KPIC.
14560             lt_prog_compiler_wl_CXX='-Wl,'
14561             lt_prog_compiler_pic_CXX='-KPIC'
14562             lt_prog_compiler_static_CXX='-static'
14563             ;;
14564           icpc* )
14565             # Intel C++, used to be incompatible with GCC.
14566             # ICC 10 doesn't accept -KPIC any more.
14567             lt_prog_compiler_wl_CXX='-Wl,'
14568             lt_prog_compiler_pic_CXX='-fPIC'
14569             lt_prog_compiler_static_CXX='-static'
14570             ;;
14571           pgCC* | pgcpp*)
14572             # Portland Group C++ compiler
14573             lt_prog_compiler_wl_CXX='-Wl,'
14574             lt_prog_compiler_pic_CXX='-fpic'
14575             lt_prog_compiler_static_CXX='-Bstatic'
14576             ;;
14577           cxx*)
14578             # Compaq C++
14579             # Make sure the PIC flag is empty.  It appears that all Alpha
14580             # Linux and Compaq Tru64 Unix objects are PIC.
14581             lt_prog_compiler_pic_CXX=
14582             lt_prog_compiler_static_CXX='-non_shared'
14583             ;;
14584           xlc* | xlC*)
14585             # IBM XL 8.0 on PPC
14586             lt_prog_compiler_wl_CXX='-Wl,'
14587             lt_prog_compiler_pic_CXX='-qpic'
14588             lt_prog_compiler_static_CXX='-qstaticlink'
14589             ;;
14590           *)
14591             case `$CC -V 2>&1 | sed 5q` in
14592             *Sun\ C*)
14593               # Sun C++ 5.9
14594               lt_prog_compiler_pic_CXX='-KPIC'
14595               lt_prog_compiler_static_CXX='-Bstatic'
14596               lt_prog_compiler_wl_CXX='-Qoption ld '
14597               ;;
14598             esac
14599             ;;
14600         esac
14601         ;;
14602       lynxos*)
14603         ;;
14604       m88k*)
14605         ;;
14606       mvs*)
14607         case $cc_basename in
14608           cxx*)
14609             lt_prog_compiler_pic_CXX='-W c,exportall'
14610             ;;
14611           *)
14612             ;;
14613         esac
14614         ;;
14615       netbsd*)
14616         ;;
14617       *qnx* | *nto*)
14618         # QNX uses GNU C++, but need to define -shared option too, otherwise
14619         # it will coredump.
14620         lt_prog_compiler_pic_CXX='-fPIC -shared'
14621         ;;
14622       osf3* | osf4* | osf5*)
14623         case $cc_basename in
14624           KCC*)
14625             lt_prog_compiler_wl_CXX='--backend -Wl,'
14626             ;;
14627           RCC*)
14628             # Rational C++ 2.4.1
14629             lt_prog_compiler_pic_CXX='-pic'
14630             ;;
14631           cxx*)
14632             # Digital/Compaq C++
14633             lt_prog_compiler_wl_CXX='-Wl,'
14634             # Make sure the PIC flag is empty.  It appears that all Alpha
14635             # Linux and Compaq Tru64 Unix objects are PIC.
14636             lt_prog_compiler_pic_CXX=
14637             lt_prog_compiler_static_CXX='-non_shared'
14638             ;;
14639           *)
14640             ;;
14641         esac
14642         ;;
14643       psos*)
14644         ;;
14645       solaris*)
14646         case $cc_basename in
14647           CC*)
14648             # Sun C++ 4.2, 5.x and Centerline C++
14649             lt_prog_compiler_pic_CXX='-KPIC'
14650             lt_prog_compiler_static_CXX='-Bstatic'
14651             lt_prog_compiler_wl_CXX='-Qoption ld '
14652             ;;
14653           gcx*)
14654             # Green Hills C++ Compiler
14655             lt_prog_compiler_pic_CXX='-PIC'
14656             ;;
14657           *)
14658             ;;
14659         esac
14660         ;;
14661       sunos4*)
14662         case $cc_basename in
14663           CC*)
14664             # Sun C++ 4.x
14665             lt_prog_compiler_pic_CXX='-pic'
14666             lt_prog_compiler_static_CXX='-Bstatic'
14667             ;;
14668           lcc*)
14669             # Lucid
14670             lt_prog_compiler_pic_CXX='-pic'
14671             ;;
14672           *)
14673             ;;
14674         esac
14675         ;;
14676       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14677         case $cc_basename in
14678           CC*)
14679             lt_prog_compiler_wl_CXX='-Wl,'
14680             lt_prog_compiler_pic_CXX='-KPIC'
14681             lt_prog_compiler_static_CXX='-Bstatic'
14682             ;;
14683         esac
14684         ;;
14685       tandem*)
14686         case $cc_basename in
14687           NCC*)
14688             # NonStop-UX NCC 3.20
14689             lt_prog_compiler_pic_CXX='-KPIC'
14690             ;;
14691           *)
14692             ;;
14693         esac
14694         ;;
14695       vxworks*)
14696         ;;
14697       *)
14698         lt_prog_compiler_can_build_shared_CXX=no
14699         ;;
14700     esac
14701   fi
14702
14703 case $host_os in
14704   # For platforms which do not support PIC, -DPIC is meaningless:
14705   *djgpp*)
14706     lt_prog_compiler_pic_CXX=
14707     ;;
14708   *)
14709     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14710     ;;
14711 esac
14712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14713 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14714
14715
14716
14717 #
14718 # Check to make sure the PIC flag actually works.
14719 #
14720 if test -n "$lt_prog_compiler_pic_CXX"; then
14721   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14723 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14724   echo $ECHO_N "(cached) $ECHO_C" >&6
14725 else
14726   lt_cv_prog_compiler_pic_works_CXX=no
14727    ac_outfile=conftest.$ac_objext
14728    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14729    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14730    # Insert the option either (1) after the last *FLAGS variable, or
14731    # (2) before a word containing "conftest.", or (3) at the end.
14732    # Note that $ac_compile itself does not contain backslashes and begins
14733    # with a dollar sign (not a hyphen), so the echo should work correctly.
14734    # The option is referenced via a variable to avoid confusing sed.
14735    lt_compile=`echo "$ac_compile" | $SED \
14736    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14737    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14738    -e 's:$: $lt_compiler_flag:'`
14739    (eval echo "\"\$as_me:14739: $lt_compile\"" >&5)
14740    (eval "$lt_compile" 2>conftest.err)
14741    ac_status=$?
14742    cat conftest.err >&5
14743    echo "$as_me:14743: \$? = $ac_status" >&5
14744    if (exit $ac_status) && test -s "$ac_outfile"; then
14745      # The compiler can only warn and ignore the option if not recognized
14746      # So say no if there are warnings other than the usual output.
14747      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14748      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14749      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14750        lt_cv_prog_compiler_pic_works_CXX=yes
14751      fi
14752    fi
14753    $RM conftest*
14754
14755 fi
14756 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14757 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14758
14759 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14760     case $lt_prog_compiler_pic_CXX in
14761      "" | " "*) ;;
14762      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14763      esac
14764 else
14765     lt_prog_compiler_pic_CXX=
14766      lt_prog_compiler_can_build_shared_CXX=no
14767 fi
14768
14769 fi
14770
14771
14772
14773 #
14774 # Check to make sure the static flag actually works.
14775 #
14776 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14777 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14778 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14779 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14780   echo $ECHO_N "(cached) $ECHO_C" >&6
14781 else
14782   lt_cv_prog_compiler_static_works_CXX=no
14783    save_LDFLAGS="$LDFLAGS"
14784    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14785    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14786    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14787      # The linker can only warn and ignore the option if not recognized
14788      # So say no if there are warnings
14789      if test -s conftest.err; then
14790        # Append any errors to the config.log.
14791        cat conftest.err 1>&5
14792        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14793        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14794        if diff conftest.exp conftest.er2 >/dev/null; then
14795          lt_cv_prog_compiler_static_works_CXX=yes
14796        fi
14797      else
14798        lt_cv_prog_compiler_static_works_CXX=yes
14799      fi
14800    fi
14801    $RM -r conftest*
14802    LDFLAGS="$save_LDFLAGS"
14803
14804 fi
14805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14806 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14807
14808 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14809     :
14810 else
14811     lt_prog_compiler_static_CXX=
14812 fi
14813
14814
14815
14816
14817     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14819 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14820   echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822   lt_cv_prog_compiler_c_o_CXX=no
14823    $RM -r conftest 2>/dev/null
14824    mkdir conftest
14825    cd conftest
14826    mkdir out
14827    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14828
14829    lt_compiler_flag="-o out/conftest2.$ac_objext"
14830    # Insert the option either (1) after the last *FLAGS variable, or
14831    # (2) before a word containing "conftest.", or (3) at the end.
14832    # Note that $ac_compile itself does not contain backslashes and begins
14833    # with a dollar sign (not a hyphen), so the echo should work correctly.
14834    lt_compile=`echo "$ac_compile" | $SED \
14835    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14836    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14837    -e 's:$: $lt_compiler_flag:'`
14838    (eval echo "\"\$as_me:14838: $lt_compile\"" >&5)
14839    (eval "$lt_compile" 2>out/conftest.err)
14840    ac_status=$?
14841    cat out/conftest.err >&5
14842    echo "$as_me:14842: \$? = $ac_status" >&5
14843    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14844    then
14845      # The compiler can only warn and ignore the option if not recognized
14846      # So say no if there are warnings
14847      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14848      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14849      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14850        lt_cv_prog_compiler_c_o_CXX=yes
14851      fi
14852    fi
14853    chmod u+w . 2>&5
14854    $RM conftest*
14855    # SGI C++ compiler will create directory out/ii_files/ for
14856    # template instantiation
14857    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14858    $RM out/* && rmdir out
14859    cd ..
14860    $RM -r conftest
14861    $RM conftest*
14862
14863 fi
14864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14866
14867
14868
14869     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14871 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14872   echo $ECHO_N "(cached) $ECHO_C" >&6
14873 else
14874   lt_cv_prog_compiler_c_o_CXX=no
14875    $RM -r conftest 2>/dev/null
14876    mkdir conftest
14877    cd conftest
14878    mkdir out
14879    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14880
14881    lt_compiler_flag="-o out/conftest2.$ac_objext"
14882    # Insert the option either (1) after the last *FLAGS variable, or
14883    # (2) before a word containing "conftest.", or (3) at the end.
14884    # Note that $ac_compile itself does not contain backslashes and begins
14885    # with a dollar sign (not a hyphen), so the echo should work correctly.
14886    lt_compile=`echo "$ac_compile" | $SED \
14887    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14889    -e 's:$: $lt_compiler_flag:'`
14890    (eval echo "\"\$as_me:14890: $lt_compile\"" >&5)
14891    (eval "$lt_compile" 2>out/conftest.err)
14892    ac_status=$?
14893    cat out/conftest.err >&5
14894    echo "$as_me:14894: \$? = $ac_status" >&5
14895    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14896    then
14897      # The compiler can only warn and ignore the option if not recognized
14898      # So say no if there are warnings
14899      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14900      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14901      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14902        lt_cv_prog_compiler_c_o_CXX=yes
14903      fi
14904    fi
14905    chmod u+w . 2>&5
14906    $RM conftest*
14907    # SGI C++ compiler will create directory out/ii_files/ for
14908    # template instantiation
14909    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14910    $RM out/* && rmdir out
14911    cd ..
14912    $RM -r conftest
14913    $RM conftest*
14914
14915 fi
14916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14918
14919
14920
14921
14922 hard_links="nottested"
14923 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14924   # do not overwrite the value of need_locks provided by the user
14925   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14926 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14927   hard_links=yes
14928   $RM conftest*
14929   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14930   touch conftest.a
14931   ln conftest.a conftest.b 2>&5 || hard_links=no
14932   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14933   { echo "$as_me:$LINENO: result: $hard_links" >&5
14934 echo "${ECHO_T}$hard_links" >&6; }
14935   if test "$hard_links" = no; then
14936     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14937 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14938     need_locks=warn
14939   fi
14940 else
14941   need_locks=no
14942 fi
14943
14944
14945
14946     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14948
14949   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14950   case $host_os in
14951   aix[4-9]*)
14952     # If we're using GNU nm, then we don't want the "-C" option.
14953     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14954     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14955       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'
14956     else
14957       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'
14958     fi
14959     ;;
14960   pw32*)
14961     export_symbols_cmds_CXX="$ltdll_cmds"
14962   ;;
14963   cygwin* | mingw* | cegcc*)
14964     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'
14965   ;;
14966   *)
14967     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14968   ;;
14969   esac
14970   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14971
14972 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14973 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14974 test "$ld_shlibs_CXX" = no && can_build_shared=no
14975
14976 with_gnu_ld_CXX=$with_gnu_ld
14977
14978
14979
14980
14981
14982
14983 #
14984 # Do we need to explicitly link libc?
14985 #
14986 case "x$archive_cmds_need_lc_CXX" in
14987 x|xyes)
14988   # Assume -lc should be added
14989   archive_cmds_need_lc_CXX=yes
14990
14991   if test "$enable_shared" = yes && test "$GCC" = yes; then
14992     case $archive_cmds_CXX in
14993     *'~'*)
14994       # FIXME: we may have to deal with multi-command sequences.
14995       ;;
14996     '$CC '*)
14997       # Test whether the compiler implicitly links with -lc since on some
14998       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14999       # to ld, don't add -lc before -lgcc.
15000       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15002       $RM conftest*
15003       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15004
15005       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006   (eval $ac_compile) 2>&5
15007   ac_status=$?
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); } 2>conftest.err; then
15010         soname=conftest
15011         lib=conftest
15012         libobjs=conftest.$ac_objext
15013         deplibs=
15014         wl=$lt_prog_compiler_wl_CXX
15015         pic_flag=$lt_prog_compiler_pic_CXX
15016         compiler_flags=-v
15017         linker_flags=-v
15018         verstring=
15019         output_objdir=.
15020         libname=conftest
15021         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15022         allow_undefined_flag_CXX=
15023         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15024   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15025   ac_status=$?
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); }
15028         then
15029           archive_cmds_need_lc_CXX=no
15030         else
15031           archive_cmds_need_lc_CXX=yes
15032         fi
15033         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15034       else
15035         cat conftest.err 1>&5
15036       fi
15037       $RM conftest*
15038       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15039 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15040       ;;
15041     esac
15042   fi
15043   ;;
15044 esac
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15110 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15111
15112 library_names_spec=
15113 libname_spec='lib$name'
15114 soname_spec=
15115 shrext_cmds=".so"
15116 postinstall_cmds=
15117 postuninstall_cmds=
15118 finish_cmds=
15119 finish_eval=
15120 shlibpath_var=
15121 shlibpath_overrides_runpath=unknown
15122 version_type=none
15123 dynamic_linker="$host_os ld.so"
15124 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15125 need_lib_prefix=unknown
15126 hardcode_into_libs=no
15127
15128 # when you set need_version to no, make sure it does not cause -set_version
15129 # flags to be left without arguments
15130 need_version=unknown
15131
15132 case $host_os in
15133 aix3*)
15134   version_type=linux
15135   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15136   shlibpath_var=LIBPATH
15137
15138   # AIX 3 has no versioning support, so we append a major version to the name.
15139   soname_spec='${libname}${release}${shared_ext}$major'
15140   ;;
15141
15142 aix[4-9]*)
15143   version_type=linux
15144   need_lib_prefix=no
15145   need_version=no
15146   hardcode_into_libs=yes
15147   if test "$host_cpu" = ia64; then
15148     # AIX 5 supports IA64
15149     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15150     shlibpath_var=LD_LIBRARY_PATH
15151   else
15152     # With GCC up to 2.95.x, collect2 would create an import file
15153     # for dependence libraries.  The import file would start with
15154     # the line `#! .'.  This would cause the generated library to
15155     # depend on `.', always an invalid library.  This was fixed in
15156     # development snapshots of GCC prior to 3.0.
15157     case $host_os in
15158       aix4 | aix4.[01] | aix4.[01].*)
15159       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15160            echo ' yes '
15161            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15162         :
15163       else
15164         can_build_shared=no
15165       fi
15166       ;;
15167     esac
15168     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15169     # soname into executable. Probably we can add versioning support to
15170     # collect2, so additional links can be useful in future.
15171     if test "$aix_use_runtimelinking" = yes; then
15172       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15173       # instead of lib<name>.a to let people know that these are not
15174       # typical AIX shared libraries.
15175       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15176     else
15177       # We preserve .a as extension for shared libraries through AIX4.2
15178       # and later when we are not doing run time linking.
15179       library_names_spec='${libname}${release}.a $libname.a'
15180       soname_spec='${libname}${release}${shared_ext}$major'
15181     fi
15182     shlibpath_var=LIBPATH
15183   fi
15184   ;;
15185
15186 amigaos*)
15187   case $host_cpu in
15188   powerpc)
15189     # Since July 2007 AmigaOS4 officially supports .so libraries.
15190     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192     ;;
15193   m68k)
15194     library_names_spec='$libname.ixlibrary $libname.a'
15195     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15196     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'
15197     ;;
15198   esac
15199   ;;
15200
15201 beos*)
15202   library_names_spec='${libname}${shared_ext}'
15203   dynamic_linker="$host_os ld.so"
15204   shlibpath_var=LIBRARY_PATH
15205   ;;
15206
15207 bsdi[45]*)
15208   version_type=linux
15209   need_version=no
15210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211   soname_spec='${libname}${release}${shared_ext}$major'
15212   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15213   shlibpath_var=LD_LIBRARY_PATH
15214   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15215   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15216   # the default ld.so.conf also contains /usr/contrib/lib and
15217   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15218   # libtool to hard-code these into programs
15219   ;;
15220
15221 cygwin* | mingw* | pw32* | cegcc*)
15222   version_type=windows
15223   shrext_cmds=".dll"
15224   need_version=no
15225   need_lib_prefix=no
15226
15227   case $GCC,$host_os in
15228   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15229     library_names_spec='$libname.dll.a'
15230     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15231     postinstall_cmds='base_file=`basename \${file}`~
15232       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15233       dldir=$destdir/`dirname \$dlpath`~
15234       test -d \$dldir || mkdir -p \$dldir~
15235       $install_prog $dir/$dlname \$dldir/$dlname~
15236       chmod a+x \$dldir/$dlname~
15237       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15238         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15239       fi'
15240     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15241       dlpath=$dir/\$dldll~
15242        $RM \$dlpath'
15243     shlibpath_overrides_runpath=yes
15244
15245     case $host_os in
15246     cygwin*)
15247       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15248       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15249       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15250       ;;
15251     mingw* | cegcc*)
15252       # MinGW DLLs use traditional 'lib' prefix
15253       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15254       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15255       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15256         # It is most probably a Windows format PATH printed by
15257         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15258         # path with ; separators, and with drive letters. We can handle the
15259         # drive letters (cygwin fileutils understands them), so leave them,
15260         # especially as we might pass files found there to a mingw objdump,
15261         # which wouldn't understand a cygwinified path. Ahh.
15262         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15263       else
15264         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15265       fi
15266       ;;
15267     pw32*)
15268       # pw32 DLLs use 'pw' prefix rather than 'lib'
15269       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15270       ;;
15271     esac
15272     ;;
15273
15274   *)
15275     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15276     ;;
15277   esac
15278   dynamic_linker='Win32 ld.exe'
15279   # FIXME: first we should search . and the directory the executable is in
15280   shlibpath_var=PATH
15281   ;;
15282
15283 darwin* | rhapsody*)
15284   dynamic_linker="$host_os dyld"
15285   version_type=darwin
15286   need_lib_prefix=no
15287   need_version=no
15288   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15289   soname_spec='${libname}${release}${major}$shared_ext'
15290   shlibpath_overrides_runpath=yes
15291   shlibpath_var=DYLD_LIBRARY_PATH
15292   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15293
15294   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15295   ;;
15296
15297 dgux*)
15298   version_type=linux
15299   need_lib_prefix=no
15300   need_version=no
15301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15302   soname_spec='${libname}${release}${shared_ext}$major'
15303   shlibpath_var=LD_LIBRARY_PATH
15304   ;;
15305
15306 freebsd1*)
15307   dynamic_linker=no
15308   ;;
15309
15310 freebsd* | dragonfly*)
15311   # DragonFly does not have aout.  When/if they implement a new
15312   # versioning mechanism, adjust this.
15313   if test -x /usr/bin/objformat; then
15314     objformat=`/usr/bin/objformat`
15315   else
15316     case $host_os in
15317     freebsd[123]*) objformat=aout ;;
15318     *) objformat=elf ;;
15319     esac
15320   fi
15321   version_type=freebsd-$objformat
15322   case $version_type in
15323     freebsd-elf*)
15324       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15325       need_version=no
15326       need_lib_prefix=no
15327       ;;
15328     freebsd-*)
15329       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15330       need_version=yes
15331       ;;
15332   esac
15333   shlibpath_var=LD_LIBRARY_PATH
15334   case $host_os in
15335   freebsd2*)
15336     shlibpath_overrides_runpath=yes
15337     ;;
15338   freebsd3.[01]* | freebsdelf3.[01]*)
15339     shlibpath_overrides_runpath=yes
15340     hardcode_into_libs=yes
15341     ;;
15342   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15343   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15344     shlibpath_overrides_runpath=no
15345     hardcode_into_libs=yes
15346     ;;
15347   *) # from 4.6 on, and DragonFly
15348     shlibpath_overrides_runpath=yes
15349     hardcode_into_libs=yes
15350     ;;
15351   esac
15352   ;;
15353
15354 gnu*)
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   hardcode_into_libs=yes
15362   ;;
15363
15364 hpux9* | hpux10* | hpux11*)
15365   # Give a soname corresponding to the major version so that dld.sl refuses to
15366   # link against other versions.
15367   version_type=sunos
15368   need_lib_prefix=no
15369   need_version=no
15370   case $host_cpu in
15371   ia64*)
15372     shrext_cmds='.so'
15373     hardcode_into_libs=yes
15374     dynamic_linker="$host_os dld.so"
15375     shlibpath_var=LD_LIBRARY_PATH
15376     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378     soname_spec='${libname}${release}${shared_ext}$major'
15379     if test "X$HPUX_IA64_MODE" = X32; then
15380       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15381     else
15382       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15383     fi
15384     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15385     ;;
15386   hppa*64*)
15387     shrext_cmds='.sl'
15388     hardcode_into_libs=yes
15389     dynamic_linker="$host_os dld.sl"
15390     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15391     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393     soname_spec='${libname}${release}${shared_ext}$major'
15394     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15395     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15396     ;;
15397   *)
15398     shrext_cmds='.sl'
15399     dynamic_linker="$host_os dld.sl"
15400     shlibpath_var=SHLIB_PATH
15401     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403     soname_spec='${libname}${release}${shared_ext}$major'
15404     ;;
15405   esac
15406   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15407   postinstall_cmds='chmod 555 $lib'
15408   ;;
15409
15410 interix[3-9]*)
15411   version_type=linux
15412   need_lib_prefix=no
15413   need_version=no
15414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15415   soname_spec='${libname}${release}${shared_ext}$major'
15416   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15417   shlibpath_var=LD_LIBRARY_PATH
15418   shlibpath_overrides_runpath=no
15419   hardcode_into_libs=yes
15420   ;;
15421
15422 irix5* | irix6* | nonstopux*)
15423   case $host_os in
15424     nonstopux*) version_type=nonstopux ;;
15425     *)
15426         if test "$lt_cv_prog_gnu_ld" = yes; then
15427                 version_type=linux
15428         else
15429                 version_type=irix
15430         fi ;;
15431   esac
15432   need_lib_prefix=no
15433   need_version=no
15434   soname_spec='${libname}${release}${shared_ext}$major'
15435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15436   case $host_os in
15437   irix5* | nonstopux*)
15438     libsuff= shlibsuff=
15439     ;;
15440   *)
15441     case $LD in # libtool.m4 will add one of these switches to LD
15442     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15443       libsuff= shlibsuff= libmagic=32-bit;;
15444     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15445       libsuff=32 shlibsuff=N32 libmagic=N32;;
15446     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15447       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15448     *) libsuff= shlibsuff= libmagic=never-match;;
15449     esac
15450     ;;
15451   esac
15452   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15453   shlibpath_overrides_runpath=no
15454   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15455   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15456   hardcode_into_libs=yes
15457   ;;
15458
15459 # No shared lib support for Linux oldld, aout, or coff.
15460 linux*oldld* | linux*aout* | linux*coff*)
15461   dynamic_linker=no
15462   ;;
15463
15464 # This must be Linux ELF.
15465 linux* | k*bsd*-gnu)
15466   version_type=linux
15467   need_lib_prefix=no
15468   need_version=no
15469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470   soname_spec='${libname}${release}${shared_ext}$major'
15471   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15472   shlibpath_var=LD_LIBRARY_PATH
15473   shlibpath_overrides_runpath=no
15474   # Some binutils ld are patched to set DT_RUNPATH
15475   save_LDFLAGS=$LDFLAGS
15476   save_libdir=$libdir
15477   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15478        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15479   cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h.  */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h.  */
15485
15486 int
15487 main ()
15488 {
15489
15490   ;
15491   return 0;
15492 }
15493 _ACEOF
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (ac_try="$ac_link"
15496 case "(($ac_try" in
15497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498   *) ac_try_echo=$ac_try;;
15499 esac
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501   (eval "$ac_link") 2>conftest.er1
15502   ac_status=$?
15503   grep -v '^ *+' conftest.er1 >conftest.err
15504   rm -f conftest.er1
15505   cat conftest.err >&5
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); } && {
15508          test -z "$ac_cxx_werror_flag" ||
15509          test ! -s conftest.err
15510        } && test -s conftest$ac_exeext &&
15511        $as_test_x conftest$ac_exeext; then
15512   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15513   shlibpath_overrides_runpath=yes
15514 fi
15515
15516 else
15517   echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15519
15520
15521 fi
15522
15523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15524       conftest$ac_exeext conftest.$ac_ext
15525   LDFLAGS=$save_LDFLAGS
15526   libdir=$save_libdir
15527
15528   # This implies no fast_install, which is unacceptable.
15529   # Some rework will be needed to allow for fast_install
15530   # before this can be enabled.
15531   hardcode_into_libs=yes
15532
15533   # Append ld.so.conf contents to the search path
15534   if test -f /etc/ld.so.conf; then
15535     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' ' '`
15536     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15537   fi
15538
15539   # We used to test for /lib/ld.so.1 and disable shared libraries on
15540   # powerpc, because MkLinux only supported shared libraries with the
15541   # GNU dynamic linker.  Since this was broken with cross compilers,
15542   # most powerpc-linux boxes support dynamic linking these days and
15543   # people can always --disable-shared, the test was removed, and we
15544   # assume the GNU/Linux dynamic linker is in use.
15545   dynamic_linker='GNU/Linux ld.so'
15546   ;;
15547
15548 netbsd*)
15549   version_type=sunos
15550   need_lib_prefix=no
15551   need_version=no
15552   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15554     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15555     dynamic_linker='NetBSD (a.out) ld.so'
15556   else
15557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15558     soname_spec='${libname}${release}${shared_ext}$major'
15559     dynamic_linker='NetBSD ld.elf_so'
15560   fi
15561   shlibpath_var=LD_LIBRARY_PATH
15562   shlibpath_overrides_runpath=yes
15563   hardcode_into_libs=yes
15564   ;;
15565
15566 newsos6)
15567   version_type=linux
15568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569   shlibpath_var=LD_LIBRARY_PATH
15570   shlibpath_overrides_runpath=yes
15571   ;;
15572
15573 *nto* | *qnx*)
15574   version_type=qnx
15575   need_lib_prefix=no
15576   need_version=no
15577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578   soname_spec='${libname}${release}${shared_ext}$major'
15579   shlibpath_var=LD_LIBRARY_PATH
15580   shlibpath_overrides_runpath=no
15581   hardcode_into_libs=yes
15582   dynamic_linker='ldqnx.so'
15583   ;;
15584
15585 openbsd*)
15586   version_type=sunos
15587   sys_lib_dlsearch_path_spec="/usr/lib"
15588   need_lib_prefix=no
15589   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15590   case $host_os in
15591     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15592     *)                          need_version=no  ;;
15593   esac
15594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15595   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15596   shlibpath_var=LD_LIBRARY_PATH
15597   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15598     case $host_os in
15599       openbsd2.[89] | openbsd2.[89].*)
15600         shlibpath_overrides_runpath=no
15601         ;;
15602       *)
15603         shlibpath_overrides_runpath=yes
15604         ;;
15605       esac
15606   else
15607     shlibpath_overrides_runpath=yes
15608   fi
15609   ;;
15610
15611 os2*)
15612   libname_spec='$name'
15613   shrext_cmds=".dll"
15614   need_lib_prefix=no
15615   library_names_spec='$libname${shared_ext} $libname.a'
15616   dynamic_linker='OS/2 ld.exe'
15617   shlibpath_var=LIBPATH
15618   ;;
15619
15620 osf3* | osf4* | osf5*)
15621   version_type=osf
15622   need_lib_prefix=no
15623   need_version=no
15624   soname_spec='${libname}${release}${shared_ext}$major'
15625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626   shlibpath_var=LD_LIBRARY_PATH
15627   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15628   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15629   ;;
15630
15631 rdos*)
15632   dynamic_linker=no
15633   ;;
15634
15635 solaris*)
15636   version_type=linux
15637   need_lib_prefix=no
15638   need_version=no
15639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640   soname_spec='${libname}${release}${shared_ext}$major'
15641   shlibpath_var=LD_LIBRARY_PATH
15642   shlibpath_overrides_runpath=yes
15643   hardcode_into_libs=yes
15644   # ldd complains unless libraries are executable
15645   postinstall_cmds='chmod +x $lib'
15646   ;;
15647
15648 sunos4*)
15649   version_type=sunos
15650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15651   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15652   shlibpath_var=LD_LIBRARY_PATH
15653   shlibpath_overrides_runpath=yes
15654   if test "$with_gnu_ld" = yes; then
15655     need_lib_prefix=no
15656   fi
15657   need_version=yes
15658   ;;
15659
15660 sysv4 | sysv4.3*)
15661   version_type=linux
15662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663   soname_spec='${libname}${release}${shared_ext}$major'
15664   shlibpath_var=LD_LIBRARY_PATH
15665   case $host_vendor in
15666     sni)
15667       shlibpath_overrides_runpath=no
15668       need_lib_prefix=no
15669       runpath_var=LD_RUN_PATH
15670       ;;
15671     siemens)
15672       need_lib_prefix=no
15673       ;;
15674     motorola)
15675       need_lib_prefix=no
15676       need_version=no
15677       shlibpath_overrides_runpath=no
15678       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15679       ;;
15680   esac
15681   ;;
15682
15683 sysv4*MP*)
15684   if test -d /usr/nec ;then
15685     version_type=linux
15686     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15687     soname_spec='$libname${shared_ext}.$major'
15688     shlibpath_var=LD_LIBRARY_PATH
15689   fi
15690   ;;
15691
15692 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15693   version_type=freebsd-elf
15694   need_lib_prefix=no
15695   need_version=no
15696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $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   if test "$with_gnu_ld" = yes; then
15702     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15703   else
15704     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15705     case $host_os in
15706       sco3.2v5*)
15707         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15708         ;;
15709     esac
15710   fi
15711   sys_lib_dlsearch_path_spec='/usr/lib'
15712   ;;
15713
15714 tpf*)
15715   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15716   version_type=linux
15717   need_lib_prefix=no
15718   need_version=no
15719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720   shlibpath_var=LD_LIBRARY_PATH
15721   shlibpath_overrides_runpath=no
15722   hardcode_into_libs=yes
15723   ;;
15724
15725 uts4*)
15726   version_type=linux
15727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728   soname_spec='${libname}${release}${shared_ext}$major'
15729   shlibpath_var=LD_LIBRARY_PATH
15730   ;;
15731
15732 *)
15733   dynamic_linker=no
15734   ;;
15735 esac
15736 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15737 echo "${ECHO_T}$dynamic_linker" >&6; }
15738 test "$dynamic_linker" = no && can_build_shared=no
15739
15740 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15741 if test "$GCC" = yes; then
15742   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15743 fi
15744
15745 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15746   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15747 fi
15748 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15749   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15750 fi
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15788 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15789 hardcode_action_CXX=
15790 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15791    test -n "$runpath_var_CXX" ||
15792    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15793
15794   # We can hardcode non-existent directories.
15795   if test "$hardcode_direct_CXX" != no &&
15796      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15797      # have to relink, otherwise we might link with an installed library
15798      # when we should be linking with a yet-to-be-installed one
15799      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15800      test "$hardcode_minus_L_CXX" != no; then
15801     # Linking always hardcodes the temporary library directory.
15802     hardcode_action_CXX=relink
15803   else
15804     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15805     hardcode_action_CXX=immediate
15806   fi
15807 else
15808   # We cannot hardcode anything, or else we can only hardcode existing
15809   # directories.
15810   hardcode_action_CXX=unsupported
15811 fi
15812 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15813 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15814
15815 if test "$hardcode_action_CXX" = relink ||
15816    test "$inherit_rpath_CXX" = yes; then
15817   # Fast installation is not supported
15818   enable_fast_install=no
15819 elif test "$shlibpath_overrides_runpath" = yes ||
15820      test "$enable_shared" = no; then
15821   # Fast installation is not necessary
15822   enable_fast_install=needless
15823 fi
15824
15825
15826
15827
15828
15829
15830
15831   fi # test -n "$compiler"
15832
15833   CC=$lt_save_CC
15834   LDCXX=$LD
15835   LD=$lt_save_LD
15836   GCC=$lt_save_GCC
15837   with_gnu_ld=$lt_save_with_gnu_ld
15838   lt_cv_path_LDCXX=$lt_cv_path_LD
15839   lt_cv_path_LD=$lt_save_path_LD
15840   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15841   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15842 fi # test "$_lt_caught_CXX_error" != yes
15843
15844 ac_ext=c
15845 ac_cpp='$CPP $CPPFLAGS'
15846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862         ac_config_commands="$ac_config_commands libtool"
15863
15864
15865
15866
15867 # Only expand once:
15868
15869
15870
15871
15872 if test x$use_libtool != xno; then
15873    DEFAULT_OBJECT_TYPE=".lo"
15874    DEFAULT_ARCHIVE_TYPE=".la"
15875    DEFAULT_SHARED_OBJECT_TYPE=".la"
15876    LIBTOOL="\$(LIBTOOL)"
15877    LIBTOOL_INSTALL_TARGET="libtool-install"
15878    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15879    LIBTOOL_CLEAN_TARGET="libtool-clean"
15880    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15881 else
15882    DEFAULT_OBJECT_TYPE=".o"
15883    DEFAULT_ARCHIVE_TYPE=".a"
15884    DEFAULT_SHARED_OBJECT_TYPE=".so"
15885    LIBTOOL="# \$(LIBTOOL)"
15886    LIBTOOL_INSTALL_TARGET=""
15887    LIBTOOL_UNINSTALL_TARGET=""
15888    LIBTOOL_CLEAN_TARGET=""
15889    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15890 fi
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901 # Check whether --enable-includes was given.
15902 if test "${enable_includes+set}" = set; then
15903   enableval=$enable_includes;
15904        if test x$enableval = xno; then
15905           install_includes=no
15906        fi
15907
15908
15909 fi
15910
15911
15912
15913 if test x$use_libtool != xno -a x$install_includes != no; then
15914    INCLUDE_INSTALL_TARGET="install-includes"
15915    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15916 else
15917    INCLUDE_INSTALL_TARGET=""
15918    INCLUDE_UNINSTALL_TARGET=""
15919 fi
15920 # Turn off install of includes
15921 INCLUDE_INSTALL_TARGET=""
15922 INCLUDE_UNINSTALL_TARGET=""
15923
15924
15925
15926
15927 { echo "$as_me:$LINENO: checking host system type" >&5
15928 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15929 if test "${ac_cv_host+set}" = set; then
15930   echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932   if test "x$host_alias" = x; then
15933   ac_cv_host=$ac_cv_build
15934 else
15935   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15936     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15937 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15938    { (exit 1); exit 1; }; }
15939 fi
15940
15941 fi
15942 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15943 echo "${ECHO_T}$ac_cv_host" >&6; }
15944 case $ac_cv_host in
15945 *-*-*) ;;
15946 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15947 echo "$as_me: error: invalid value of canonical host" >&2;}
15948    { (exit 1); exit 1; }; };;
15949 esac
15950 host=$ac_cv_host
15951 ac_save_IFS=$IFS; IFS='-'
15952 set x $ac_cv_host
15953 shift
15954 host_cpu=$1
15955 host_vendor=$2
15956 shift; shift
15957 # Remember, the first character of IFS is used to create $*,
15958 # except with old shells:
15959 host_os=$*
15960 IFS=$ac_save_IFS
15961 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15962
15963
15964 case $host_os in
15965   *cygwin* ) CYGWIN=yes;;
15966          * ) CYGWIN=no;;
15967 esac
15968
15969 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15970 then
15971
15972
15973 if $TRUEPRG; then
15974   HAVE_SUN_OS_TRUE=
15975   HAVE_SUN_OS_FALSE='#'
15976 else
15977   HAVE_SUN_OS_TRUE='#'
15978   HAVE_SUN_OS_FALSE=
15979 fi
15980         cat >>confdefs.h <<\_ACEOF
15981 #define HAVE_SUN_OS 1
15982 _ACEOF
15983
15984 else
15985
15986
15987 if $FALSEPRG; then
15988   HAVE_SUN_OS_TRUE=
15989   HAVE_SUN_OS_FALSE='#'
15990 else
15991   HAVE_SUN_OS_TRUE='#'
15992   HAVE_SUN_OS_FALSE=
15993 fi
15994 fi
15995
15996 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15997 then
15998
15999
16000 if $TRUEPRG; then
16001   HAVE_OSF1_OS_TRUE=
16002   HAVE_OSF1_OS_FALSE='#'
16003 else
16004   HAVE_OSF1_OS_TRUE='#'
16005   HAVE_OSF1_OS_FALSE=
16006 fi
16007         cat >>confdefs.h <<\_ACEOF
16008 #define HAVE_OSF1_OS 1
16009 _ACEOF
16010
16011 else
16012
16013
16014 if $FALSEPRG; then
16015   HAVE_OSF1_OS_TRUE=
16016   HAVE_OSF1_OS_FALSE='#'
16017 else
16018   HAVE_OSF1_OS_TRUE='#'
16019   HAVE_OSF1_OS_FALSE=
16020 fi
16021 fi
16022
16023 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16024 then
16025
16026
16027 if $TRUEPRG; then
16028   HAVE_AIX_OS_TRUE=
16029   HAVE_AIX_OS_FALSE='#'
16030 else
16031   HAVE_AIX_OS_TRUE='#'
16032   HAVE_AIX_OS_FALSE=
16033 fi
16034         cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_AIX_OS 1
16036 _ACEOF
16037
16038 else
16039
16040
16041 if $FALSEPRG; then
16042   HAVE_AIX_OS_TRUE=
16043   HAVE_AIX_OS_FALSE='#'
16044 else
16045   HAVE_AIX_OS_TRUE='#'
16046   HAVE_AIX_OS_FALSE=
16047 fi
16048 fi
16049
16050 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16051 then
16052
16053
16054 if $TRUEPRG; then
16055   HAVE_HPUX_OS_TRUE=
16056   HAVE_HPUX_OS_FALSE='#'
16057 else
16058   HAVE_HPUX_OS_TRUE='#'
16059   HAVE_HPUX_OS_FALSE=
16060 fi
16061         cat >>confdefs.h <<\_ACEOF
16062 #define HAVE_HPUX_OS 1
16063 _ACEOF
16064
16065 else
16066
16067
16068 if $FALSEPRG; then
16069   HAVE_HPUX_OS_TRUE=
16070   HAVE_HPUX_OS_FALSE='#'
16071 else
16072   HAVE_HPUX_OS_TRUE='#'
16073   HAVE_HPUX_OS_FALSE=
16074 fi
16075 fi
16076
16077 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16078 then
16079
16080
16081 if $TRUEPRG; then
16082   HAVE_LINUX_OS_TRUE=
16083   HAVE_LINUX_OS_FALSE='#'
16084 else
16085   HAVE_LINUX_OS_TRUE='#'
16086   HAVE_LINUX_OS_FALSE=
16087 fi
16088         cat >>confdefs.h <<\_ACEOF
16089 #define HAVE_LINUX_OS 1
16090 _ACEOF
16091
16092 else
16093
16094
16095 if $FALSEPRG; then
16096   HAVE_LINUX_OS_TRUE=
16097   HAVE_LINUX_OS_FALSE='#'
16098 else
16099   HAVE_LINUX_OS_TRUE='#'
16100   HAVE_LINUX_OS_FALSE=
16101 fi
16102 fi
16103
16104 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16105 then
16106
16107
16108 if $TRUEPRG; then
16109   HAVE_FREEBSD_OS_TRUE=
16110   HAVE_FREEBSD_OS_FALSE='#'
16111 else
16112   HAVE_FREEBSD_OS_TRUE='#'
16113   HAVE_FREEBSD_OS_FALSE=
16114 fi
16115         cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_FREEBSD_OS 1
16117 _ACEOF
16118
16119 else
16120
16121
16122 if $FALSEPRG; then
16123   HAVE_FREEBSD_OS_TRUE=
16124   HAVE_FREEBSD_OS_FALSE='#'
16125 else
16126   HAVE_FREEBSD_OS_TRUE='#'
16127   HAVE_FREEBSD_OS_FALSE=
16128 fi
16129 fi
16130
16131 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16132 then
16133
16134
16135 if $TRUEPRG; then
16136   HAVE_NETBSD_OS_TRUE=
16137   HAVE_NETBSD_OS_FALSE='#'
16138 else
16139   HAVE_NETBSD_OS_TRUE='#'
16140   HAVE_NETBSD_OS_FALSE=
16141 fi
16142         cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_NETBSD_OS 1
16144 _ACEOF
16145
16146 else
16147
16148
16149 if $FALSEPRG; then
16150   HAVE_NETBSD_OS_TRUE=
16151   HAVE_NETBSD_OS_FALSE='#'
16152 else
16153   HAVE_NETBSD_OS_TRUE='#'
16154   HAVE_NETBSD_OS_FALSE=
16155 fi
16156 fi
16157
16158 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16159 then
16160
16161
16162 if $TRUEPRG; then
16163   HAVE_OPENBSD_OS_TRUE=
16164   HAVE_OPENBSD_OS_FALSE='#'
16165 else
16166   HAVE_OPENBSD_OS_TRUE='#'
16167   HAVE_OPENBSD_OS_FALSE=
16168 fi
16169         cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_OPENBSD_OS 1
16171 _ACEOF
16172
16173 else
16174
16175
16176 if $FALSEPRG; then
16177   HAVE_OPENBSD_OS_TRUE=
16178   HAVE_OPENBSD_OS_FALSE='#'
16179 else
16180   HAVE_OPENBSD_OS_TRUE='#'
16181   HAVE_OPENBSD_OS_FALSE=
16182 fi
16183 fi
16184
16185 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16186 then
16187
16188
16189 if $TRUEPRG; then
16190   HAVE_BSDI_OS_TRUE=
16191   HAVE_BSDI_OS_FALSE='#'
16192 else
16193   HAVE_BSDI_OS_TRUE='#'
16194   HAVE_BSDI_OS_FALSE=
16195 fi
16196         cat >>confdefs.h <<\_ACEOF
16197 #define HAVE_BSDI_OS 1
16198 _ACEOF
16199
16200 else
16201
16202
16203 if $FALSEPRG; then
16204   HAVE_BSDI_OS_TRUE=
16205   HAVE_BSDI_OS_FALSE='#'
16206 else
16207   HAVE_BSDI_OS_TRUE='#'
16208   HAVE_BSDI_OS_FALSE=
16209 fi
16210 fi
16211
16212 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16213 then
16214
16215
16216 if $TRUEPRG; then
16217   HAVE_SGI_OS_TRUE=
16218   HAVE_SGI_OS_FALSE='#'
16219 else
16220   HAVE_SGI_OS_TRUE='#'
16221   HAVE_SGI_OS_FALSE=
16222 fi
16223         cat >>confdefs.h <<\_ACEOF
16224 #define HAVE_SGI_OS 1
16225 _ACEOF
16226
16227 else
16228
16229
16230 if $FALSEPRG; then
16231   HAVE_SGI_OS_TRUE=
16232   HAVE_SGI_OS_FALSE='#'
16233 else
16234   HAVE_SGI_OS_TRUE='#'
16235   HAVE_SGI_OS_FALSE=
16236 fi
16237 fi
16238
16239 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16240 then
16241
16242
16243 if $TRUEPRG; then
16244   HAVE_IRIX_OS_TRUE=
16245   HAVE_IRIX_OS_FALSE='#'
16246 else
16247   HAVE_IRIX_OS_TRUE='#'
16248   HAVE_IRIX_OS_FALSE=
16249 fi
16250         cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_IRIX_OS 1
16252 _ACEOF
16253
16254 else
16255
16256
16257 if $FALSEPRG; then
16258   HAVE_IRIX_OS_TRUE=
16259   HAVE_IRIX_OS_FALSE='#'
16260 else
16261   HAVE_IRIX_OS_TRUE='#'
16262   HAVE_IRIX_OS_FALSE=
16263 fi
16264 fi
16265
16266 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16267 then
16268
16269
16270 if $TRUEPRG; then
16271   HAVE_DARWIN_OS_TRUE=
16272   HAVE_DARWIN_OS_FALSE='#'
16273 else
16274   HAVE_DARWIN_OS_TRUE='#'
16275   HAVE_DARWIN_OS_FALSE=
16276 fi
16277     cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_DARWIN_OS 1
16279 _ACEOF
16280
16281 else
16282
16283
16284 if $FALSEPRG; then
16285   HAVE_DARWIN_OS_TRUE=
16286   HAVE_DARWIN_OS_FALSE='#'
16287 else
16288   HAVE_DARWIN_OS_TRUE='#'
16289   HAVE_DARWIN_OS_FALSE=
16290 fi
16291 fi
16292
16293
16294 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16295 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16296 if test "x$DISTNAME" != "x"
16297 then
16298         echo "distname set to $DISTNAME"
16299 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16300 then
16301         DISTNAME=alpha
16302 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16303 then
16304         DISTNAME=aix
16305 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16306 then
16307         DISTNAME=hpux
16308 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16309 then
16310         DISTNAME=solaris
16311 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16312 then
16313         DISTNAME=freebsd
16314 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16315 then
16316         DISTNAME=netbsd
16317 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16318 then
16319         DISTNAME=openbsd
16320 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16321 then
16322         DISTNAME=irix
16323 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16324 then
16325         DISTNAME=bsdi
16326 elif test -f /etc/SuSE-release
16327 then
16328         DISTNAME=suse
16329 elif test -d /etc/SuSEconfig
16330 then
16331         DISTNAME=suse5
16332 elif test -f /etc/mandrake-release
16333 then
16334         DISTNAME=mandrake
16335 elif test -f /etc/whitebox-release
16336 then
16337        DISTNAME=redhat
16338 elif test -f /etc/redhat-release
16339 then
16340         DISTNAME=redhat
16341 elif test -f /etc/gentoo-release
16342 then
16343         DISTNAME=gentoo
16344 elif test -f /etc/debian_version
16345 then
16346         DISTNAME=debian
16347 elif test -f /etc/slackware-version
16348 then
16349         DISTNAME=slackware
16350 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16351 then
16352     DISTNAME=darwin
16353 elif test -f /etc/engarde-version
16354 then
16355         DISTNAME=engarde
16356 elif test "$CYGWIN" = yes
16357 then
16358         DISTNAME=cygwin
16359         cat >>confdefs.h <<\_ACEOF
16360 #define HAVE_CYGWIN 1
16361 _ACEOF
16362
16363 else
16364         DISTNAME=unknown
16365 fi
16366 { echo "$as_me:$LINENO: result: done" >&5
16367 echo "${ECHO_T}done" >&6; }
16368
16369
16370 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16371 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16372 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16373 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16374   echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376   cat >conftest.make <<\_ACEOF
16377 SHELL = /bin/sh
16378 all:
16379         @echo '@@@%%%=$(MAKE)=@@@%%%'
16380 _ACEOF
16381 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16382 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16383   *@@@%%%=?*=@@@%%%*)
16384     eval ac_cv_prog_make_${ac_make}_set=yes;;
16385   *)
16386     eval ac_cv_prog_make_${ac_make}_set=no;;
16387 esac
16388 rm -f conftest.make
16389 fi
16390 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16391   { echo "$as_me:$LINENO: result: yes" >&5
16392 echo "${ECHO_T}yes" >&6; }
16393   SET_MAKE=
16394 else
16395   { echo "$as_me:$LINENO: result: no" >&5
16396 echo "${ECHO_T}no" >&6; }
16397   SET_MAKE="MAKE=${MAKE-make}"
16398 fi
16399
16400
16401
16402         MKINSTALLDIRS=
16403   if test -n "$ac_aux_dir"; then
16404     case "$ac_aux_dir" in
16405       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16406       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16407     esac
16408   fi
16409   if test -z "$MKINSTALLDIRS"; then
16410     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16411   fi
16412
16413
16414
16415   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16416 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16417     # Check whether --enable-nls was given.
16418 if test "${enable_nls+set}" = set; then
16419   enableval=$enable_nls; USE_NLS=$enableval
16420 else
16421   USE_NLS=yes
16422 fi
16423
16424   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16425 echo "${ECHO_T}$USE_NLS" >&6; }
16426
16427
16428
16429
16430
16431
16432 # Prepare PATH_SEPARATOR.
16433 # The user is always right.
16434 if test "${PATH_SEPARATOR+set}" != set; then
16435   echo "#! /bin/sh" >conf$$.sh
16436   echo  "exit 0"   >>conf$$.sh
16437   chmod +x conf$$.sh
16438   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16439     PATH_SEPARATOR=';'
16440   else
16441     PATH_SEPARATOR=:
16442   fi
16443   rm -f conf$$.sh
16444 fi
16445
16446 # Find out how to test for executable files. Don't use a zero-byte file,
16447 # as systems may use methods other than mode bits to determine executability.
16448 cat >conf$$.file <<_ASEOF
16449 #! /bin/sh
16450 exit 0
16451 _ASEOF
16452 chmod +x conf$$.file
16453 if test -x conf$$.file >/dev/null 2>&1; then
16454   ac_executable_p="test -x"
16455 else
16456   ac_executable_p="test -f"
16457 fi
16458 rm -f conf$$.file
16459
16460 # Extract the first word of "msgfmt", so it can be a program name with args.
16461 set dummy msgfmt; ac_word=$2
16462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16464 if test "${ac_cv_path_MSGFMT+set}" = set; then
16465   echo $ECHO_N "(cached) $ECHO_C" >&6
16466 else
16467   case "$MSGFMT" in
16468   [\\/]* | ?:[\\/]*)
16469     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16470     ;;
16471   *)
16472     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16473     for ac_dir in $PATH; do
16474       IFS="$ac_save_IFS"
16475       test -z "$ac_dir" && ac_dir=.
16476       for ac_exec_ext in '' $ac_executable_extensions; do
16477         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16478           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16479           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16480      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16481             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16482             break 2
16483           fi
16484         fi
16485       done
16486     done
16487     IFS="$ac_save_IFS"
16488   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16489     ;;
16490 esac
16491 fi
16492 MSGFMT="$ac_cv_path_MSGFMT"
16493 if test "$MSGFMT" != ":"; then
16494   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16495 echo "${ECHO_T}$MSGFMT" >&6; }
16496 else
16497   { echo "$as_me:$LINENO: result: no" >&5
16498 echo "${ECHO_T}no" >&6; }
16499 fi
16500
16501   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16502 set dummy gmsgfmt; ac_word=$2
16503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16505 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16506   echo $ECHO_N "(cached) $ECHO_C" >&6
16507 else
16508   case $GMSGFMT in
16509   [\\/]* | ?:[\\/]*)
16510   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16511   ;;
16512   *)
16513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514 for as_dir in $PATH
16515 do
16516   IFS=$as_save_IFS
16517   test -z "$as_dir" && as_dir=.
16518   for ac_exec_ext in '' $ac_executable_extensions; do
16519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16520     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16522     break 2
16523   fi
16524 done
16525 done
16526 IFS=$as_save_IFS
16527
16528   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16529   ;;
16530 esac
16531 fi
16532 GMSGFMT=$ac_cv_path_GMSGFMT
16533 if test -n "$GMSGFMT"; then
16534   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16535 echo "${ECHO_T}$GMSGFMT" >&6; }
16536 else
16537   { echo "$as_me:$LINENO: result: no" >&5
16538 echo "${ECHO_T}no" >&6; }
16539 fi
16540
16541
16542
16543
16544 # Prepare PATH_SEPARATOR.
16545 # The user is always right.
16546 if test "${PATH_SEPARATOR+set}" != set; then
16547   echo "#! /bin/sh" >conf$$.sh
16548   echo  "exit 0"   >>conf$$.sh
16549   chmod +x conf$$.sh
16550   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16551     PATH_SEPARATOR=';'
16552   else
16553     PATH_SEPARATOR=:
16554   fi
16555   rm -f conf$$.sh
16556 fi
16557
16558 # Find out how to test for executable files. Don't use a zero-byte file,
16559 # as systems may use methods other than mode bits to determine executability.
16560 cat >conf$$.file <<_ASEOF
16561 #! /bin/sh
16562 exit 0
16563 _ASEOF
16564 chmod +x conf$$.file
16565 if test -x conf$$.file >/dev/null 2>&1; then
16566   ac_executable_p="test -x"
16567 else
16568   ac_executable_p="test -f"
16569 fi
16570 rm -f conf$$.file
16571
16572 # Extract the first word of "xgettext", so it can be a program name with args.
16573 set dummy xgettext; ac_word=$2
16574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16576 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16577   echo $ECHO_N "(cached) $ECHO_C" >&6
16578 else
16579   case "$XGETTEXT" in
16580   [\\/]* | ?:[\\/]*)
16581     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16582     ;;
16583   *)
16584     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16585     for ac_dir in $PATH; do
16586       IFS="$ac_save_IFS"
16587       test -z "$ac_dir" && ac_dir=.
16588       for ac_exec_ext in '' $ac_executable_extensions; do
16589         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16590           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16591           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16592      (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
16593             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16594             break 2
16595           fi
16596         fi
16597       done
16598     done
16599     IFS="$ac_save_IFS"
16600   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16601     ;;
16602 esac
16603 fi
16604 XGETTEXT="$ac_cv_path_XGETTEXT"
16605 if test "$XGETTEXT" != ":"; then
16606   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16607 echo "${ECHO_T}$XGETTEXT" >&6; }
16608 else
16609   { echo "$as_me:$LINENO: result: no" >&5
16610 echo "${ECHO_T}no" >&6; }
16611 fi
16612
16613     rm -f messages.po
16614
16615
16616 # Prepare PATH_SEPARATOR.
16617 # The user is always right.
16618 if test "${PATH_SEPARATOR+set}" != set; then
16619   echo "#! /bin/sh" >conf$$.sh
16620   echo  "exit 0"   >>conf$$.sh
16621   chmod +x conf$$.sh
16622   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16623     PATH_SEPARATOR=';'
16624   else
16625     PATH_SEPARATOR=:
16626   fi
16627   rm -f conf$$.sh
16628 fi
16629
16630 # Find out how to test for executable files. Don't use a zero-byte file,
16631 # as systems may use methods other than mode bits to determine executability.
16632 cat >conf$$.file <<_ASEOF
16633 #! /bin/sh
16634 exit 0
16635 _ASEOF
16636 chmod +x conf$$.file
16637 if test -x conf$$.file >/dev/null 2>&1; then
16638   ac_executable_p="test -x"
16639 else
16640   ac_executable_p="test -f"
16641 fi
16642 rm -f conf$$.file
16643
16644 # Extract the first word of "msgmerge", so it can be a program name with args.
16645 set dummy msgmerge; ac_word=$2
16646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16648 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651   case "$MSGMERGE" in
16652   [\\/]* | ?:[\\/]*)
16653     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16654     ;;
16655   *)
16656     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16657     for ac_dir in $PATH; do
16658       IFS="$ac_save_IFS"
16659       test -z "$ac_dir" && ac_dir=.
16660       for ac_exec_ext in '' $ac_executable_extensions; do
16661         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16662           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16663           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16664             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16665             break 2
16666           fi
16667         fi
16668       done
16669     done
16670     IFS="$ac_save_IFS"
16671   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16672     ;;
16673 esac
16674 fi
16675 MSGMERGE="$ac_cv_path_MSGMERGE"
16676 if test "$MSGMERGE" != ":"; then
16677   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16678 echo "${ECHO_T}$MSGMERGE" >&6; }
16679 else
16680   { echo "$as_me:$LINENO: result: no" >&5
16681 echo "${ECHO_T}no" >&6; }
16682 fi
16683
16684
16685       if test "$GMSGFMT" != ":"; then
16686             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16687        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16688       : ;
16689     else
16690       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16691       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16692 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16693       GMSGFMT=":"
16694     fi
16695   fi
16696
16697       if test "$XGETTEXT" != ":"; then
16698             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16699        (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
16700       : ;
16701     else
16702       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16703 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16704       XGETTEXT=":"
16705     fi
16706         rm -f messages.po
16707   fi
16708
16709   ac_config_commands="$ac_config_commands default-1"
16710
16711
16712
16713       if test "X$prefix" = "XNONE"; then
16714     acl_final_prefix="$ac_default_prefix"
16715   else
16716     acl_final_prefix="$prefix"
16717   fi
16718   if test "X$exec_prefix" = "XNONE"; then
16719     acl_final_exec_prefix='${prefix}'
16720   else
16721     acl_final_exec_prefix="$exec_prefix"
16722   fi
16723   acl_save_prefix="$prefix"
16724   prefix="$acl_final_prefix"
16725   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16726   prefix="$acl_save_prefix"
16727
16728
16729 # Check whether --with-gnu-ld was given.
16730 if test "${with_gnu_ld+set}" = set; then
16731   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16732 else
16733   with_gnu_ld=no
16734 fi
16735
16736 # Prepare PATH_SEPARATOR.
16737 # The user is always right.
16738 if test "${PATH_SEPARATOR+set}" != set; then
16739   echo "#! /bin/sh" >conf$$.sh
16740   echo  "exit 0"   >>conf$$.sh
16741   chmod +x conf$$.sh
16742   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16743     PATH_SEPARATOR=';'
16744   else
16745     PATH_SEPARATOR=:
16746   fi
16747   rm -f conf$$.sh
16748 fi
16749 ac_prog=ld
16750 if test "$GCC" = yes; then
16751   # Check if gcc -print-prog-name=ld gives a path.
16752   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16753 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16754   case $host in
16755   *-*-mingw*)
16756     # gcc leaves a trailing carriage return which upsets mingw
16757     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16758   *)
16759     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16760   esac
16761   case $ac_prog in
16762     # Accept absolute paths.
16763     [\\/]* | [A-Za-z]:[\\/]*)
16764       re_direlt='/[^/][^/]*/\.\./'
16765       # Canonicalize the path of ld
16766       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16767       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16768         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16769       done
16770       test -z "$LD" && LD="$ac_prog"
16771       ;;
16772   "")
16773     # If it fails, then pretend we aren't using GCC.
16774     ac_prog=ld
16775     ;;
16776   *)
16777     # If it is relative, then search for the first ld in PATH.
16778     with_gnu_ld=unknown
16779     ;;
16780   esac
16781 elif test "$with_gnu_ld" = yes; then
16782   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16783 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16784 else
16785   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16786 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16787 fi
16788 if test "${acl_cv_path_LD+set}" = set; then
16789   echo $ECHO_N "(cached) $ECHO_C" >&6
16790 else
16791   if test -z "$LD"; then
16792   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16793   for ac_dir in $PATH; do
16794     test -z "$ac_dir" && ac_dir=.
16795     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16796       acl_cv_path_LD="$ac_dir/$ac_prog"
16797       # Check to see if the program is GNU ld.  I'd rather use --version,
16798       # but apparently some GNU ld's only accept -v.
16799       # Break only if it was the GNU/non-GNU ld that we prefer.
16800       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16801       *GNU* | *'with BFD'*)
16802         test "$with_gnu_ld" != no && break ;;
16803       *)
16804         test "$with_gnu_ld" != yes && break ;;
16805       esac
16806     fi
16807   done
16808   IFS="$ac_save_ifs"
16809 else
16810   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16811 fi
16812 fi
16813
16814 LD="$acl_cv_path_LD"
16815 if test -n "$LD"; then
16816   { echo "$as_me:$LINENO: result: $LD" >&5
16817 echo "${ECHO_T}$LD" >&6; }
16818 else
16819   { echo "$as_me:$LINENO: result: no" >&5
16820 echo "${ECHO_T}no" >&6; }
16821 fi
16822 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16823 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16824    { (exit 1); exit 1; }; }
16825 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16826 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16827 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16828   echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16831 case `$LD -v 2>&1 </dev/null` in
16832 *GNU* | *'with BFD'*)
16833   acl_cv_prog_gnu_ld=yes ;;
16834 *)
16835   acl_cv_prog_gnu_ld=no ;;
16836 esac
16837 fi
16838 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16839 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16840 with_gnu_ld=$acl_cv_prog_gnu_ld
16841
16842
16843
16844
16845                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16846 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16847 if test "${acl_cv_rpath+set}" = set; then
16848   echo $ECHO_N "(cached) $ECHO_C" >&6
16849 else
16850
16851     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16852     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16853     . ./conftest.sh
16854     rm -f ./conftest.sh
16855     acl_cv_rpath=done
16856
16857 fi
16858 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16859 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16860   wl="$acl_cv_wl"
16861   libext="$acl_cv_libext"
16862   shlibext="$acl_cv_shlibext"
16863   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16864   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16865   hardcode_direct="$acl_cv_hardcode_direct"
16866   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16867     # Check whether --enable-rpath was given.
16868 if test "${enable_rpath+set}" = set; then
16869   enableval=$enable_rpath; :
16870 else
16871   enable_rpath=yes
16872 fi
16873
16874
16875
16876
16877
16878
16879
16880
16881     use_additional=yes
16882
16883   acl_save_prefix="$prefix"
16884   prefix="$acl_final_prefix"
16885   acl_save_exec_prefix="$exec_prefix"
16886   exec_prefix="$acl_final_exec_prefix"
16887
16888     eval additional_includedir=\"$includedir\"
16889     eval additional_libdir=\"$libdir\"
16890
16891   exec_prefix="$acl_save_exec_prefix"
16892   prefix="$acl_save_prefix"
16893
16894
16895 # Check whether --with-libiconv-prefix was given.
16896 if test "${with_libiconv_prefix+set}" = set; then
16897   withval=$with_libiconv_prefix;
16898     if test "X$withval" = "Xno"; then
16899       use_additional=no
16900     else
16901       if test "X$withval" = "X"; then
16902
16903   acl_save_prefix="$prefix"
16904   prefix="$acl_final_prefix"
16905   acl_save_exec_prefix="$exec_prefix"
16906   exec_prefix="$acl_final_exec_prefix"
16907
16908           eval additional_includedir=\"$includedir\"
16909           eval additional_libdir=\"$libdir\"
16910
16911   exec_prefix="$acl_save_exec_prefix"
16912   prefix="$acl_save_prefix"
16913
16914       else
16915         additional_includedir="$withval/include"
16916         additional_libdir="$withval/lib"
16917       fi
16918     fi
16919
16920 fi
16921
16922       LIBICONV=
16923   LTLIBICONV=
16924   INCICONV=
16925   rpathdirs=
16926   ltrpathdirs=
16927   names_already_handled=
16928   names_next_round='iconv '
16929   while test -n "$names_next_round"; do
16930     names_this_round="$names_next_round"
16931     names_next_round=
16932     for name in $names_this_round; do
16933       already_handled=
16934       for n in $names_already_handled; do
16935         if test "$n" = "$name"; then
16936           already_handled=yes
16937           break
16938         fi
16939       done
16940       if test -z "$already_handled"; then
16941         names_already_handled="$names_already_handled $name"
16942                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16943         eval value=\"\$HAVE_LIB$uppername\"
16944         if test -n "$value"; then
16945           if test "$value" = yes; then
16946             eval value=\"\$LIB$uppername\"
16947             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16948             eval value=\"\$LTLIB$uppername\"
16949             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16950           else
16951                                     :
16952           fi
16953         else
16954                               found_dir=
16955           found_la=
16956           found_so=
16957           found_a=
16958           if test $use_additional = yes; then
16959             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16960               found_dir="$additional_libdir"
16961               found_so="$additional_libdir/lib$name.$shlibext"
16962               if test -f "$additional_libdir/lib$name.la"; then
16963                 found_la="$additional_libdir/lib$name.la"
16964               fi
16965             else
16966               if test -f "$additional_libdir/lib$name.$libext"; then
16967                 found_dir="$additional_libdir"
16968                 found_a="$additional_libdir/lib$name.$libext"
16969                 if test -f "$additional_libdir/lib$name.la"; then
16970                   found_la="$additional_libdir/lib$name.la"
16971                 fi
16972               fi
16973             fi
16974           fi
16975           if test "X$found_dir" = "X"; then
16976             for x in $LDFLAGS $LTLIBICONV; do
16977
16978   acl_save_prefix="$prefix"
16979   prefix="$acl_final_prefix"
16980   acl_save_exec_prefix="$exec_prefix"
16981   exec_prefix="$acl_final_exec_prefix"
16982   eval x=\"$x\"
16983   exec_prefix="$acl_save_exec_prefix"
16984   prefix="$acl_save_prefix"
16985
16986               case "$x" in
16987                 -L*)
16988                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16989                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16990                     found_dir="$dir"
16991                     found_so="$dir/lib$name.$shlibext"
16992                     if test -f "$dir/lib$name.la"; then
16993                       found_la="$dir/lib$name.la"
16994                     fi
16995                   else
16996                     if test -f "$dir/lib$name.$libext"; then
16997                       found_dir="$dir"
16998                       found_a="$dir/lib$name.$libext"
16999                       if test -f "$dir/lib$name.la"; then
17000                         found_la="$dir/lib$name.la"
17001                       fi
17002                     fi
17003                   fi
17004                   ;;
17005               esac
17006               if test "X$found_dir" != "X"; then
17007                 break
17008               fi
17009             done
17010           fi
17011           if test "X$found_dir" != "X"; then
17012                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17013             if test "X$found_so" != "X"; then
17014                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17015                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17016               else
17017                                                                                 haveit=
17018                 for x in $ltrpathdirs; do
17019                   if test "X$x" = "X$found_dir"; then
17020                     haveit=yes
17021                     break
17022                   fi
17023                 done
17024                 if test -z "$haveit"; then
17025                   ltrpathdirs="$ltrpathdirs $found_dir"
17026                 fi
17027                                 if test "$hardcode_direct" = yes; then
17028                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17029                 else
17030                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17031                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17032                                                             haveit=
17033                     for x in $rpathdirs; do
17034                       if test "X$x" = "X$found_dir"; then
17035                         haveit=yes
17036                         break
17037                       fi
17038                     done
17039                     if test -z "$haveit"; then
17040                       rpathdirs="$rpathdirs $found_dir"
17041                     fi
17042                   else
17043                                                                                 haveit=
17044                     for x in $LDFLAGS $LIBICONV; do
17045
17046   acl_save_prefix="$prefix"
17047   prefix="$acl_final_prefix"
17048   acl_save_exec_prefix="$exec_prefix"
17049   exec_prefix="$acl_final_exec_prefix"
17050   eval x=\"$x\"
17051   exec_prefix="$acl_save_exec_prefix"
17052   prefix="$acl_save_prefix"
17053
17054                       if test "X$x" = "X-L$found_dir"; then
17055                         haveit=yes
17056                         break
17057                       fi
17058                     done
17059                     if test -z "$haveit"; then
17060                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17061                     fi
17062                     if test "$hardcode_minus_L" != no; then
17063                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17064                     else
17065                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17066                     fi
17067                   fi
17068                 fi
17069               fi
17070             else
17071               if test "X$found_a" != "X"; then
17072                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17073               else
17074                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17075               fi
17076             fi
17077                         additional_includedir=
17078             case "$found_dir" in
17079               */lib | */lib/)
17080                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17081                 additional_includedir="$basedir/include"
17082                 ;;
17083             esac
17084             if test "X$additional_includedir" != "X"; then
17085                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17086                 haveit=
17087                 if test "X$additional_includedir" = "X/usr/local/include"; then
17088                   if test -n "$GCC"; then
17089                     case $host_os in
17090                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17091                     esac
17092                   fi
17093                 fi
17094                 if test -z "$haveit"; then
17095                   for x in $CPPFLAGS $INCICONV; do
17096
17097   acl_save_prefix="$prefix"
17098   prefix="$acl_final_prefix"
17099   acl_save_exec_prefix="$exec_prefix"
17100   exec_prefix="$acl_final_exec_prefix"
17101   eval x=\"$x\"
17102   exec_prefix="$acl_save_exec_prefix"
17103   prefix="$acl_save_prefix"
17104
17105                     if test "X$x" = "X-I$additional_includedir"; then
17106                       haveit=yes
17107                       break
17108                     fi
17109                   done
17110                   if test -z "$haveit"; then
17111                     if test -d "$additional_includedir"; then
17112                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17113                     fi
17114                   fi
17115                 fi
17116               fi
17117             fi
17118                         if test -n "$found_la"; then
17119                                                         save_libdir="$libdir"
17120               case "$found_la" in
17121                 */* | *\\*) . "$found_la" ;;
17122                 *) . "./$found_la" ;;
17123               esac
17124               libdir="$save_libdir"
17125                             for dep in $dependency_libs; do
17126                 case "$dep" in
17127                   -L*)
17128                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17129                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17130                       haveit=
17131                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17132                         if test -n "$GCC"; then
17133                           case $host_os in
17134                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17135                           esac
17136                         fi
17137                       fi
17138                       if test -z "$haveit"; then
17139                         haveit=
17140                         for x in $LDFLAGS $LIBICONV; do
17141
17142   acl_save_prefix="$prefix"
17143   prefix="$acl_final_prefix"
17144   acl_save_exec_prefix="$exec_prefix"
17145   exec_prefix="$acl_final_exec_prefix"
17146   eval x=\"$x\"
17147   exec_prefix="$acl_save_exec_prefix"
17148   prefix="$acl_save_prefix"
17149
17150                           if test "X$x" = "X-L$additional_libdir"; then
17151                             haveit=yes
17152                             break
17153                           fi
17154                         done
17155                         if test -z "$haveit"; then
17156                           if test -d "$additional_libdir"; then
17157                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17158                           fi
17159                         fi
17160                         haveit=
17161                         for x in $LDFLAGS $LTLIBICONV; do
17162
17163   acl_save_prefix="$prefix"
17164   prefix="$acl_final_prefix"
17165   acl_save_exec_prefix="$exec_prefix"
17166   exec_prefix="$acl_final_exec_prefix"
17167   eval x=\"$x\"
17168   exec_prefix="$acl_save_exec_prefix"
17169   prefix="$acl_save_prefix"
17170
17171                           if test "X$x" = "X-L$additional_libdir"; then
17172                             haveit=yes
17173                             break
17174                           fi
17175                         done
17176                         if test -z "$haveit"; then
17177                           if test -d "$additional_libdir"; then
17178                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17179                           fi
17180                         fi
17181                       fi
17182                     fi
17183                     ;;
17184                   -R*)
17185                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17186                     if test "$enable_rpath" != no; then
17187                                                                   haveit=
17188                       for x in $rpathdirs; do
17189                         if test "X$x" = "X$dir"; then
17190                           haveit=yes
17191                           break
17192                         fi
17193                       done
17194                       if test -z "$haveit"; then
17195                         rpathdirs="$rpathdirs $dir"
17196                       fi
17197                                                                   haveit=
17198                       for x in $ltrpathdirs; do
17199                         if test "X$x" = "X$dir"; then
17200                           haveit=yes
17201                           break
17202                         fi
17203                       done
17204                       if test -z "$haveit"; then
17205                         ltrpathdirs="$ltrpathdirs $dir"
17206                       fi
17207                     fi
17208                     ;;
17209                   -l*)
17210                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17211                     ;;
17212                   *.la)
17213                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17214                     ;;
17215                   *)
17216                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17217                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17218                     ;;
17219                 esac
17220               done
17221             fi
17222           else
17223                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17224             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17225           fi
17226         fi
17227       fi
17228     done
17229   done
17230   if test "X$rpathdirs" != "X"; then
17231     if test -n "$hardcode_libdir_separator"; then
17232                         alldirs=
17233       for found_dir in $rpathdirs; do
17234         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17235       done
17236             acl_save_libdir="$libdir"
17237       libdir="$alldirs"
17238       eval flag=\"$hardcode_libdir_flag_spec\"
17239       libdir="$acl_save_libdir"
17240       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17241     else
17242             for found_dir in $rpathdirs; do
17243         acl_save_libdir="$libdir"
17244         libdir="$found_dir"
17245         eval flag=\"$hardcode_libdir_flag_spec\"
17246         libdir="$acl_save_libdir"
17247         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17248       done
17249     fi
17250   fi
17251   if test "X$ltrpathdirs" != "X"; then
17252             for found_dir in $ltrpathdirs; do
17253       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17254     done
17255   fi
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17275 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17276 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17277   echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279   gt_save_CPPFLAGS="$CPPFLAGS"
17280      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17281      gt_save_LIBS="$LIBS"
17282      LIBS="$LIBS -framework CoreFoundation"
17283      cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h.  */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h.  */
17289 #include <CFPreferences.h>
17290 int
17291 main ()
17292 {
17293 CFPreferencesCopyAppValue(NULL, NULL)
17294   ;
17295   return 0;
17296 }
17297 _ACEOF
17298 rm -f conftest.$ac_objext conftest$ac_exeext
17299 if { (ac_try="$ac_link"
17300 case "(($ac_try" in
17301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302   *) ac_try_echo=$ac_try;;
17303 esac
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305   (eval "$ac_link") 2>conftest.er1
17306   ac_status=$?
17307   grep -v '^ *+' conftest.er1 >conftest.err
17308   rm -f conftest.er1
17309   cat conftest.err >&5
17310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311   (exit $ac_status); } && {
17312          test -z "$ac_c_werror_flag" ||
17313          test ! -s conftest.err
17314        } && test -s conftest$ac_exeext &&
17315        $as_test_x conftest$ac_exeext; then
17316   gt_cv_func_CFPreferencesCopyAppValue=yes
17317 else
17318   echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17320
17321         gt_cv_func_CFPreferencesCopyAppValue=no
17322 fi
17323
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325       conftest$ac_exeext conftest.$ac_ext
17326      CPPFLAGS="$gt_save_CPPFLAGS"
17327      LIBS="$gt_save_LIBS"
17328 fi
17329 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17330 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17331   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17332
17333 cat >>confdefs.h <<\_ACEOF
17334 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17335 _ACEOF
17336
17337   fi
17338     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17339 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17340 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343   gt_save_CPPFLAGS="$CPPFLAGS"
17344      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17345      gt_save_LIBS="$LIBS"
17346      LIBS="$LIBS -framework CoreFoundation"
17347      cat >conftest.$ac_ext <<_ACEOF
17348 /* confdefs.h.  */
17349 _ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h.  */
17353 #include <CFLocale.h>
17354 int
17355 main ()
17356 {
17357 CFLocaleCopyCurrent();
17358   ;
17359   return 0;
17360 }
17361 _ACEOF
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (ac_try="$ac_link"
17364 case "(($ac_try" in
17365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366   *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369   (eval "$ac_link") 2>conftest.er1
17370   ac_status=$?
17371   grep -v '^ *+' conftest.er1 >conftest.err
17372   rm -f conftest.er1
17373   cat conftest.err >&5
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); } && {
17376          test -z "$ac_c_werror_flag" ||
17377          test ! -s conftest.err
17378        } && test -s conftest$ac_exeext &&
17379        $as_test_x conftest$ac_exeext; then
17380   gt_cv_func_CFLocaleCopyCurrent=yes
17381 else
17382   echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17384
17385         gt_cv_func_CFLocaleCopyCurrent=no
17386 fi
17387
17388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17389       conftest$ac_exeext conftest.$ac_ext
17390      CPPFLAGS="$gt_save_CPPFLAGS"
17391      LIBS="$gt_save_LIBS"
17392 fi
17393 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17394 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17395   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17396
17397 cat >>confdefs.h <<\_ACEOF
17398 #define HAVE_CFLOCALECOPYCURRENT 1
17399 _ACEOF
17400
17401   fi
17402   INTL_MACOSX_LIBS=
17403   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17404     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17405   fi
17406
17407
17408
17409
17410   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17411 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17412     # Check whether --enable-nls was given.
17413 if test "${enable_nls+set}" = set; then
17414   enableval=$enable_nls; USE_NLS=$enableval
17415 else
17416   USE_NLS=yes
17417 fi
17418
17419   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17420 echo "${ECHO_T}$USE_NLS" >&6; }
17421
17422
17423
17424
17425   LIBINTL=
17426   LTLIBINTL=
17427   POSUB=
17428
17429     if test "$USE_NLS" = "yes"; then
17430     gt_use_preinstalled_gnugettext=no
17431
17432
17433
17434
17435
17436
17437         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17438 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17439 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17440   echo $ECHO_N "(cached) $ECHO_C" >&6
17441 else
17442   cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h.  */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h.  */
17448 #include <libintl.h>
17449 extern int _nl_msg_cat_cntr;
17450 extern int *_nl_domain_bindings;
17451 int
17452 main ()
17453 {
17454 bindtextdomain ("", "");
17455 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17456   ;
17457   return 0;
17458 }
17459 _ACEOF
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (ac_try="$ac_link"
17462 case "(($ac_try" in
17463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464   *) ac_try_echo=$ac_try;;
17465 esac
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467   (eval "$ac_link") 2>conftest.er1
17468   ac_status=$?
17469   grep -v '^ *+' conftest.er1 >conftest.err
17470   rm -f conftest.er1
17471   cat conftest.err >&5
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); } && {
17474          test -z "$ac_c_werror_flag" ||
17475          test ! -s conftest.err
17476        } && test -s conftest$ac_exeext &&
17477        $as_test_x conftest$ac_exeext; then
17478   gt_cv_func_gnugettext1_libc=yes
17479 else
17480   echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17482
17483         gt_cv_func_gnugettext1_libc=no
17484 fi
17485
17486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17487       conftest$ac_exeext conftest.$ac_ext
17488 fi
17489 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17490 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17491
17492         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17493
17494
17495
17496
17497
17498           am_save_CPPFLAGS="$CPPFLAGS"
17499
17500   for element in $INCICONV; do
17501     haveit=
17502     for x in $CPPFLAGS; do
17503
17504   acl_save_prefix="$prefix"
17505   prefix="$acl_final_prefix"
17506   acl_save_exec_prefix="$exec_prefix"
17507   exec_prefix="$acl_final_exec_prefix"
17508   eval x=\"$x\"
17509   exec_prefix="$acl_save_exec_prefix"
17510   prefix="$acl_save_prefix"
17511
17512       if test "X$x" = "X$element"; then
17513         haveit=yes
17514         break
17515       fi
17516     done
17517     if test -z "$haveit"; then
17518       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17519     fi
17520   done
17521
17522
17523   { echo "$as_me:$LINENO: checking for iconv" >&5
17524 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17525 if test "${am_cv_func_iconv+set}" = set; then
17526   echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528
17529     am_cv_func_iconv="no, consider installing GNU libiconv"
17530     am_cv_lib_iconv=no
17531     cat >conftest.$ac_ext <<_ACEOF
17532 /* confdefs.h.  */
17533 _ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h.  */
17537 #include <stdlib.h>
17538 #include <iconv.h>
17539 int
17540 main ()
17541 {
17542 iconv_t cd = iconv_open("","");
17543        iconv(cd,NULL,NULL,NULL,NULL);
17544        iconv_close(cd);
17545   ;
17546   return 0;
17547 }
17548 _ACEOF
17549 rm -f conftest.$ac_objext conftest$ac_exeext
17550 if { (ac_try="$ac_link"
17551 case "(($ac_try" in
17552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553   *) ac_try_echo=$ac_try;;
17554 esac
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556   (eval "$ac_link") 2>conftest.er1
17557   ac_status=$?
17558   grep -v '^ *+' conftest.er1 >conftest.err
17559   rm -f conftest.er1
17560   cat conftest.err >&5
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); } && {
17563          test -z "$ac_c_werror_flag" ||
17564          test ! -s conftest.err
17565        } && test -s conftest$ac_exeext &&
17566        $as_test_x conftest$ac_exeext; then
17567   am_cv_func_iconv=yes
17568 else
17569   echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17571
17572
17573 fi
17574
17575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17576       conftest$ac_exeext conftest.$ac_ext
17577     if test "$am_cv_func_iconv" != yes; then
17578       am_save_LIBS="$LIBS"
17579       LIBS="$LIBS $LIBICONV"
17580       cat >conftest.$ac_ext <<_ACEOF
17581 /* confdefs.h.  */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h.  */
17586 #include <stdlib.h>
17587 #include <iconv.h>
17588 int
17589 main ()
17590 {
17591 iconv_t cd = iconv_open("","");
17592          iconv(cd,NULL,NULL,NULL,NULL);
17593          iconv_close(cd);
17594   ;
17595   return 0;
17596 }
17597 _ACEOF
17598 rm -f conftest.$ac_objext conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602   *) ac_try_echo=$ac_try;;
17603 esac
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605   (eval "$ac_link") 2>conftest.er1
17606   ac_status=$?
17607   grep -v '^ *+' conftest.er1 >conftest.err
17608   rm -f conftest.er1
17609   cat conftest.err >&5
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); } && {
17612          test -z "$ac_c_werror_flag" ||
17613          test ! -s conftest.err
17614        } && test -s conftest$ac_exeext &&
17615        $as_test_x conftest$ac_exeext; then
17616   am_cv_lib_iconv=yes
17617         am_cv_func_iconv=yes
17618 else
17619   echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17621
17622
17623 fi
17624
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626       conftest$ac_exeext conftest.$ac_ext
17627       LIBS="$am_save_LIBS"
17628     fi
17629
17630 fi
17631 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17632 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17633   if test "$am_cv_func_iconv" = yes; then
17634
17635 cat >>confdefs.h <<\_ACEOF
17636 #define HAVE_ICONV 1
17637 _ACEOF
17638
17639   fi
17640   if test "$am_cv_lib_iconv" = yes; then
17641     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17642 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17643     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17644 echo "${ECHO_T}$LIBICONV" >&6; }
17645   else
17646             CPPFLAGS="$am_save_CPPFLAGS"
17647     LIBICONV=
17648     LTLIBICONV=
17649   fi
17650
17651
17652
17653
17654
17655
17656     use_additional=yes
17657
17658   acl_save_prefix="$prefix"
17659   prefix="$acl_final_prefix"
17660   acl_save_exec_prefix="$exec_prefix"
17661   exec_prefix="$acl_final_exec_prefix"
17662
17663     eval additional_includedir=\"$includedir\"
17664     eval additional_libdir=\"$libdir\"
17665
17666   exec_prefix="$acl_save_exec_prefix"
17667   prefix="$acl_save_prefix"
17668
17669
17670 # Check whether --with-libintl-prefix was given.
17671 if test "${with_libintl_prefix+set}" = set; then
17672   withval=$with_libintl_prefix;
17673     if test "X$withval" = "Xno"; then
17674       use_additional=no
17675     else
17676       if test "X$withval" = "X"; then
17677
17678   acl_save_prefix="$prefix"
17679   prefix="$acl_final_prefix"
17680   acl_save_exec_prefix="$exec_prefix"
17681   exec_prefix="$acl_final_exec_prefix"
17682
17683           eval additional_includedir=\"$includedir\"
17684           eval additional_libdir=\"$libdir\"
17685
17686   exec_prefix="$acl_save_exec_prefix"
17687   prefix="$acl_save_prefix"
17688
17689       else
17690         additional_includedir="$withval/include"
17691         additional_libdir="$withval/lib"
17692       fi
17693     fi
17694
17695 fi
17696
17697       LIBINTL=
17698   LTLIBINTL=
17699   INCINTL=
17700   rpathdirs=
17701   ltrpathdirs=
17702   names_already_handled=
17703   names_next_round='intl '
17704   while test -n "$names_next_round"; do
17705     names_this_round="$names_next_round"
17706     names_next_round=
17707     for name in $names_this_round; do
17708       already_handled=
17709       for n in $names_already_handled; do
17710         if test "$n" = "$name"; then
17711           already_handled=yes
17712           break
17713         fi
17714       done
17715       if test -z "$already_handled"; then
17716         names_already_handled="$names_already_handled $name"
17717                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17718         eval value=\"\$HAVE_LIB$uppername\"
17719         if test -n "$value"; then
17720           if test "$value" = yes; then
17721             eval value=\"\$LIB$uppername\"
17722             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17723             eval value=\"\$LTLIB$uppername\"
17724             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17725           else
17726                                     :
17727           fi
17728         else
17729                               found_dir=
17730           found_la=
17731           found_so=
17732           found_a=
17733           if test $use_additional = yes; then
17734             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17735               found_dir="$additional_libdir"
17736               found_so="$additional_libdir/lib$name.$shlibext"
17737               if test -f "$additional_libdir/lib$name.la"; then
17738                 found_la="$additional_libdir/lib$name.la"
17739               fi
17740             else
17741               if test -f "$additional_libdir/lib$name.$libext"; then
17742                 found_dir="$additional_libdir"
17743                 found_a="$additional_libdir/lib$name.$libext"
17744                 if test -f "$additional_libdir/lib$name.la"; then
17745                   found_la="$additional_libdir/lib$name.la"
17746                 fi
17747               fi
17748             fi
17749           fi
17750           if test "X$found_dir" = "X"; then
17751             for x in $LDFLAGS $LTLIBINTL; do
17752
17753   acl_save_prefix="$prefix"
17754   prefix="$acl_final_prefix"
17755   acl_save_exec_prefix="$exec_prefix"
17756   exec_prefix="$acl_final_exec_prefix"
17757   eval x=\"$x\"
17758   exec_prefix="$acl_save_exec_prefix"
17759   prefix="$acl_save_prefix"
17760
17761               case "$x" in
17762                 -L*)
17763                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17764                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17765                     found_dir="$dir"
17766                     found_so="$dir/lib$name.$shlibext"
17767                     if test -f "$dir/lib$name.la"; then
17768                       found_la="$dir/lib$name.la"
17769                     fi
17770                   else
17771                     if test -f "$dir/lib$name.$libext"; then
17772                       found_dir="$dir"
17773                       found_a="$dir/lib$name.$libext"
17774                       if test -f "$dir/lib$name.la"; then
17775                         found_la="$dir/lib$name.la"
17776                       fi
17777                     fi
17778                   fi
17779                   ;;
17780               esac
17781               if test "X$found_dir" != "X"; then
17782                 break
17783               fi
17784             done
17785           fi
17786           if test "X$found_dir" != "X"; then
17787                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17788             if test "X$found_so" != "X"; then
17789                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17790                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17791               else
17792                                                                                 haveit=
17793                 for x in $ltrpathdirs; do
17794                   if test "X$x" = "X$found_dir"; then
17795                     haveit=yes
17796                     break
17797                   fi
17798                 done
17799                 if test -z "$haveit"; then
17800                   ltrpathdirs="$ltrpathdirs $found_dir"
17801                 fi
17802                                 if test "$hardcode_direct" = yes; then
17803                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17804                 else
17805                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17806                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17807                                                             haveit=
17808                     for x in $rpathdirs; do
17809                       if test "X$x" = "X$found_dir"; then
17810                         haveit=yes
17811                         break
17812                       fi
17813                     done
17814                     if test -z "$haveit"; then
17815                       rpathdirs="$rpathdirs $found_dir"
17816                     fi
17817                   else
17818                                                                                 haveit=
17819                     for x in $LDFLAGS $LIBINTL; do
17820
17821   acl_save_prefix="$prefix"
17822   prefix="$acl_final_prefix"
17823   acl_save_exec_prefix="$exec_prefix"
17824   exec_prefix="$acl_final_exec_prefix"
17825   eval x=\"$x\"
17826   exec_prefix="$acl_save_exec_prefix"
17827   prefix="$acl_save_prefix"
17828
17829                       if test "X$x" = "X-L$found_dir"; then
17830                         haveit=yes
17831                         break
17832                       fi
17833                     done
17834                     if test -z "$haveit"; then
17835                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17836                     fi
17837                     if test "$hardcode_minus_L" != no; then
17838                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17839                     else
17840                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17841                     fi
17842                   fi
17843                 fi
17844               fi
17845             else
17846               if test "X$found_a" != "X"; then
17847                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17848               else
17849                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17850               fi
17851             fi
17852                         additional_includedir=
17853             case "$found_dir" in
17854               */lib | */lib/)
17855                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17856                 additional_includedir="$basedir/include"
17857                 ;;
17858             esac
17859             if test "X$additional_includedir" != "X"; then
17860                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17861                 haveit=
17862                 if test "X$additional_includedir" = "X/usr/local/include"; then
17863                   if test -n "$GCC"; then
17864                     case $host_os in
17865                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17866                     esac
17867                   fi
17868                 fi
17869                 if test -z "$haveit"; then
17870                   for x in $CPPFLAGS $INCINTL; do
17871
17872   acl_save_prefix="$prefix"
17873   prefix="$acl_final_prefix"
17874   acl_save_exec_prefix="$exec_prefix"
17875   exec_prefix="$acl_final_exec_prefix"
17876   eval x=\"$x\"
17877   exec_prefix="$acl_save_exec_prefix"
17878   prefix="$acl_save_prefix"
17879
17880                     if test "X$x" = "X-I$additional_includedir"; then
17881                       haveit=yes
17882                       break
17883                     fi
17884                   done
17885                   if test -z "$haveit"; then
17886                     if test -d "$additional_includedir"; then
17887                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17888                     fi
17889                   fi
17890                 fi
17891               fi
17892             fi
17893                         if test -n "$found_la"; then
17894                                                         save_libdir="$libdir"
17895               case "$found_la" in
17896                 */* | *\\*) . "$found_la" ;;
17897                 *) . "./$found_la" ;;
17898               esac
17899               libdir="$save_libdir"
17900                             for dep in $dependency_libs; do
17901                 case "$dep" in
17902                   -L*)
17903                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17904                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17905                       haveit=
17906                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17907                         if test -n "$GCC"; then
17908                           case $host_os in
17909                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17910                           esac
17911                         fi
17912                       fi
17913                       if test -z "$haveit"; then
17914                         haveit=
17915                         for x in $LDFLAGS $LIBINTL; do
17916
17917   acl_save_prefix="$prefix"
17918   prefix="$acl_final_prefix"
17919   acl_save_exec_prefix="$exec_prefix"
17920   exec_prefix="$acl_final_exec_prefix"
17921   eval x=\"$x\"
17922   exec_prefix="$acl_save_exec_prefix"
17923   prefix="$acl_save_prefix"
17924
17925                           if test "X$x" = "X-L$additional_libdir"; then
17926                             haveit=yes
17927                             break
17928                           fi
17929                         done
17930                         if test -z "$haveit"; then
17931                           if test -d "$additional_libdir"; then
17932                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17933                           fi
17934                         fi
17935                         haveit=
17936                         for x in $LDFLAGS $LTLIBINTL; do
17937
17938   acl_save_prefix="$prefix"
17939   prefix="$acl_final_prefix"
17940   acl_save_exec_prefix="$exec_prefix"
17941   exec_prefix="$acl_final_exec_prefix"
17942   eval x=\"$x\"
17943   exec_prefix="$acl_save_exec_prefix"
17944   prefix="$acl_save_prefix"
17945
17946                           if test "X$x" = "X-L$additional_libdir"; then
17947                             haveit=yes
17948                             break
17949                           fi
17950                         done
17951                         if test -z "$haveit"; then
17952                           if test -d "$additional_libdir"; then
17953                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17954                           fi
17955                         fi
17956                       fi
17957                     fi
17958                     ;;
17959                   -R*)
17960                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17961                     if test "$enable_rpath" != no; then
17962                                                                   haveit=
17963                       for x in $rpathdirs; do
17964                         if test "X$x" = "X$dir"; then
17965                           haveit=yes
17966                           break
17967                         fi
17968                       done
17969                       if test -z "$haveit"; then
17970                         rpathdirs="$rpathdirs $dir"
17971                       fi
17972                                                                   haveit=
17973                       for x in $ltrpathdirs; do
17974                         if test "X$x" = "X$dir"; then
17975                           haveit=yes
17976                           break
17977                         fi
17978                       done
17979                       if test -z "$haveit"; then
17980                         ltrpathdirs="$ltrpathdirs $dir"
17981                       fi
17982                     fi
17983                     ;;
17984                   -l*)
17985                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17986                     ;;
17987                   *.la)
17988                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17989                     ;;
17990                   *)
17991                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17992                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17993                     ;;
17994                 esac
17995               done
17996             fi
17997           else
17998                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17999             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18000           fi
18001         fi
18002       fi
18003     done
18004   done
18005   if test "X$rpathdirs" != "X"; then
18006     if test -n "$hardcode_libdir_separator"; then
18007                         alldirs=
18008       for found_dir in $rpathdirs; do
18009         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18010       done
18011             acl_save_libdir="$libdir"
18012       libdir="$alldirs"
18013       eval flag=\"$hardcode_libdir_flag_spec\"
18014       libdir="$acl_save_libdir"
18015       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18016     else
18017             for found_dir in $rpathdirs; do
18018         acl_save_libdir="$libdir"
18019         libdir="$found_dir"
18020         eval flag=\"$hardcode_libdir_flag_spec\"
18021         libdir="$acl_save_libdir"
18022         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18023       done
18024     fi
18025   fi
18026   if test "X$ltrpathdirs" != "X"; then
18027             for found_dir in $ltrpathdirs; do
18028       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18029     done
18030   fi
18031
18032           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18033 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18034 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18035   echo $ECHO_N "(cached) $ECHO_C" >&6
18036 else
18037   gt_save_CPPFLAGS="$CPPFLAGS"
18038             CPPFLAGS="$CPPFLAGS $INCINTL"
18039             gt_save_LIBS="$LIBS"
18040             LIBS="$LIBS $LIBINTL"
18041                         cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h.  */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h.  */
18047 #include <libintl.h>
18048 extern int _nl_msg_cat_cntr;
18049 extern
18050 #ifdef __cplusplus
18051 "C"
18052 #endif
18053 const char *_nl_expand_alias (const char *);
18054 int
18055 main ()
18056 {
18057 bindtextdomain ("", "");
18058 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18059   ;
18060   return 0;
18061 }
18062 _ACEOF
18063 rm -f conftest.$ac_objext conftest$ac_exeext
18064 if { (ac_try="$ac_link"
18065 case "(($ac_try" in
18066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067   *) ac_try_echo=$ac_try;;
18068 esac
18069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070   (eval "$ac_link") 2>conftest.er1
18071   ac_status=$?
18072   grep -v '^ *+' conftest.er1 >conftest.err
18073   rm -f conftest.er1
18074   cat conftest.err >&5
18075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076   (exit $ac_status); } && {
18077          test -z "$ac_c_werror_flag" ||
18078          test ! -s conftest.err
18079        } && test -s conftest$ac_exeext &&
18080        $as_test_x conftest$ac_exeext; then
18081   gt_cv_func_gnugettext1_libintl=yes
18082 else
18083   echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18085
18086         gt_cv_func_gnugettext1_libintl=no
18087 fi
18088
18089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18090       conftest$ac_exeext conftest.$ac_ext
18091                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18092               LIBS="$LIBS $LIBICONV"
18093               cat >conftest.$ac_ext <<_ACEOF
18094 /* confdefs.h.  */
18095 _ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h.  */
18099 #include <libintl.h>
18100 extern int _nl_msg_cat_cntr;
18101 extern
18102 #ifdef __cplusplus
18103 "C"
18104 #endif
18105 const char *_nl_expand_alias (const char *);
18106 int
18107 main ()
18108 {
18109 bindtextdomain ("", "");
18110 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18111   ;
18112   return 0;
18113 }
18114 _ACEOF
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (ac_try="$ac_link"
18117 case "(($ac_try" in
18118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119   *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122   (eval "$ac_link") 2>conftest.er1
18123   ac_status=$?
18124   grep -v '^ *+' conftest.er1 >conftest.err
18125   rm -f conftest.er1
18126   cat conftest.err >&5
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); } && {
18129          test -z "$ac_c_werror_flag" ||
18130          test ! -s conftest.err
18131        } && test -s conftest$ac_exeext &&
18132        $as_test_x conftest$ac_exeext; then
18133   LIBINTL="$LIBINTL $LIBICONV"
18134                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18135                 gt_cv_func_gnugettext1_libintl=yes
18136
18137 else
18138   echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18140
18141
18142 fi
18143
18144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18145       conftest$ac_exeext conftest.$ac_ext
18146             fi
18147             CPPFLAGS="$gt_save_CPPFLAGS"
18148             LIBS="$gt_save_LIBS"
18149 fi
18150 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18151 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18152         fi
18153
18154                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18155            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18156                 && test "$PACKAGE" != gettext-runtime \
18157                 && test "$PACKAGE" != gettext-tools; }; then
18158           gt_use_preinstalled_gnugettext=yes
18159         else
18160                     LIBINTL=
18161           LTLIBINTL=
18162           INCINTL=
18163         fi
18164
18165
18166
18167     if test -n "$INTL_MACOSX_LIBS"; then
18168       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18169          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18170                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18171         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18172       fi
18173     fi
18174
18175     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18176        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18177
18178 cat >>confdefs.h <<\_ACEOF
18179 #define ENABLE_NLS 1
18180 _ACEOF
18181
18182     else
18183       USE_NLS=no
18184     fi
18185   fi
18186
18187   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18188 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18189   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18190 echo "${ECHO_T}$USE_NLS" >&6; }
18191   if test "$USE_NLS" = "yes"; then
18192     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18193 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18194     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18195       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18196         gt_source="external libintl"
18197       else
18198         gt_source="libc"
18199       fi
18200     else
18201       gt_source="included intl directory"
18202     fi
18203     { echo "$as_me:$LINENO: result: $gt_source" >&5
18204 echo "${ECHO_T}$gt_source" >&6; }
18205   fi
18206
18207   if test "$USE_NLS" = "yes"; then
18208
18209     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18210       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18211         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18212 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18213         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18214 echo "${ECHO_T}$LIBINTL" >&6; }
18215
18216   for element in $INCINTL; do
18217     haveit=
18218     for x in $CPPFLAGS; do
18219
18220   acl_save_prefix="$prefix"
18221   prefix="$acl_final_prefix"
18222   acl_save_exec_prefix="$exec_prefix"
18223   exec_prefix="$acl_final_exec_prefix"
18224   eval x=\"$x\"
18225   exec_prefix="$acl_save_exec_prefix"
18226   prefix="$acl_save_prefix"
18227
18228       if test "X$x" = "X$element"; then
18229         haveit=yes
18230         break
18231       fi
18232     done
18233     if test -z "$haveit"; then
18234       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18235     fi
18236   done
18237
18238       fi
18239
18240
18241 cat >>confdefs.h <<\_ACEOF
18242 #define HAVE_GETTEXT 1
18243 _ACEOF
18244
18245
18246 cat >>confdefs.h <<\_ACEOF
18247 #define HAVE_DCGETTEXT 1
18248 _ACEOF
18249
18250     fi
18251
18252         POSUB=po
18253   fi
18254
18255
18256
18257     INTLLIBS="$LIBINTL"
18258
18259
18260
18261
18262
18263
18264 if test x${prefix} = xNONE ; then
18265    if test `eval echo ${datarootdir}` = NONE/share ; then
18266       datarootdir=/usr/share
18267    fi
18268 fi
18269
18270 if test x${prefix} = xNONE ; then
18271    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18272       sysconfdir=/etc/bacula
18273    fi
18274
18275    if test `eval echo ${libdir}` = NONE/lib ; then
18276       sysconfdir=/usr/lib
18277    fi
18278
18279    if test `eval echo ${includedir}` = NONE/include ; then
18280       sysconfdir=/usr/include
18281    fi
18282
18283    prefix=
18284 fi
18285 sysconfdir=`eval echo ${sysconfdir}`
18286 datarootdir=`eval echo ${datarootdir}`
18287 localedir=`eval echo ${datarootdir}/locale`
18288 cat >>confdefs.h <<_ACEOF
18289 #define SYSCONFDIR "$sysconfdir"
18290 _ACEOF
18291
18292 cat >>confdefs.h <<_ACEOF
18293 #define LOCALEDIR "$localedir"
18294 _ACEOF
18295
18296
18297 if test x${exec_prefix} = xNONE ; then
18298    exec_prefix=${prefix}
18299 fi
18300
18301 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18302    sbindir=${exec_prefix}/sbin
18303 fi
18304 sbindir=`eval echo ${sbindir}`
18305
18306 if test x$mandir = x'${prefix}/man' ; then
18307    mandir=/usr/share/man
18308 fi
18309
18310 for ac_prog in msgfmt
18311 do
18312   # Extract the first word of "$ac_prog", so it can be a program name with args.
18313 set dummy $ac_prog; ac_word=$2
18314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18316 if test "${ac_cv_path_MSGFMT+set}" = set; then
18317   echo $ECHO_N "(cached) $ECHO_C" >&6
18318 else
18319   case $MSGFMT in
18320   [\\/]* | ?:[\\/]*)
18321   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18322   ;;
18323   *)
18324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18325 for as_dir in $PATH
18326 do
18327   IFS=$as_save_IFS
18328   test -z "$as_dir" && as_dir=.
18329   for ac_exec_ext in '' $ac_executable_extensions; do
18330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18331     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18333     break 2
18334   fi
18335 done
18336 done
18337 IFS=$as_save_IFS
18338
18339   ;;
18340 esac
18341 fi
18342 MSGFMT=$ac_cv_path_MSGFMT
18343 if test -n "$MSGFMT"; then
18344   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18345 echo "${ECHO_T}$MSGFMT" >&6; }
18346 else
18347   { echo "$as_me:$LINENO: result: no" >&5
18348 echo "${ECHO_T}no" >&6; }
18349 fi
18350
18351
18352   test -n "$MSGFMT" && break
18353 done
18354 test -n "$MSGFMT" || MSGFMT="no"
18355
18356 if test "$MSGFMT" = "no"
18357 then
18358    echo 'msgfmt program not found, disabling NLS !'
18359    USE_NLS=no
18360    USE_INCLUDED_LIBINTL=no
18361 #else
18362
18363     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18364 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18365 if test "${ac_cv_gnu_library_2+set}" = set; then
18366   echo $ECHO_N "(cached) $ECHO_C" >&6
18367 else
18368   cat >conftest.$ac_ext <<_ACEOF
18369 /* confdefs.h.  */
18370 _ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h.  */
18374
18375 #include <features.h>
18376 #ifdef __GNU_LIBRARY__
18377  #if (__GLIBC__ >= 2)
18378   Lucky GNU user
18379  #endif
18380 #endif
18381
18382 _ACEOF
18383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18384   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18385   ac_cv_gnu_library_2=yes
18386 else
18387   ac_cv_gnu_library_2=no
18388 fi
18389 rm -f conftest*
18390
18391
18392
18393 fi
18394 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18395 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18396
18397     GLIBC2="$ac_cv_gnu_library_2"
18398
18399
18400 if test -n "$ac_tool_prefix"; then
18401   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18402 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18405 if test "${ac_cv_prog_RANLIB+set}" = set; then
18406   echo $ECHO_N "(cached) $ECHO_C" >&6
18407 else
18408   if test -n "$RANLIB"; then
18409   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18410 else
18411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18412 for as_dir in $PATH
18413 do
18414   IFS=$as_save_IFS
18415   test -z "$as_dir" && as_dir=.
18416   for ac_exec_ext in '' $ac_executable_extensions; do
18417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18418     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18420     break 2
18421   fi
18422 done
18423 done
18424 IFS=$as_save_IFS
18425
18426 fi
18427 fi
18428 RANLIB=$ac_cv_prog_RANLIB
18429 if test -n "$RANLIB"; then
18430   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18431 echo "${ECHO_T}$RANLIB" >&6; }
18432 else
18433   { echo "$as_me:$LINENO: result: no" >&5
18434 echo "${ECHO_T}no" >&6; }
18435 fi
18436
18437
18438 fi
18439 if test -z "$ac_cv_prog_RANLIB"; then
18440   ac_ct_RANLIB=$RANLIB
18441   # Extract the first word of "ranlib", so it can be a program name with args.
18442 set dummy ranlib; ac_word=$2
18443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18445 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18446   echo $ECHO_N "(cached) $ECHO_C" >&6
18447 else
18448   if test -n "$ac_ct_RANLIB"; then
18449   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18450 else
18451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18452 for as_dir in $PATH
18453 do
18454   IFS=$as_save_IFS
18455   test -z "$as_dir" && as_dir=.
18456   for ac_exec_ext in '' $ac_executable_extensions; do
18457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18458     ac_cv_prog_ac_ct_RANLIB="ranlib"
18459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18460     break 2
18461   fi
18462 done
18463 done
18464 IFS=$as_save_IFS
18465
18466 fi
18467 fi
18468 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18469 if test -n "$ac_ct_RANLIB"; then
18470   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18471 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18472 else
18473   { echo "$as_me:$LINENO: result: no" >&5
18474 echo "${ECHO_T}no" >&6; }
18475 fi
18476
18477   if test "x$ac_ct_RANLIB" = x; then
18478     RANLIB=":"
18479   else
18480     case $cross_compiling:$ac_tool_warned in
18481 yes:)
18482 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18483 whose name does not start with the host triplet.  If you think this
18484 configuration is useful to you, please write to autoconf@gnu.org." >&5
18485 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18486 whose name does not start with the host triplet.  If you think this
18487 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18488 ac_tool_warned=yes ;;
18489 esac
18490     RANLIB=$ac_ct_RANLIB
18491   fi
18492 else
18493   RANLIB="$ac_cv_prog_RANLIB"
18494 fi
18495
18496
18497         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18498 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18499 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18500   echo $ECHO_N "(cached) $ECHO_C" >&6
18501 else
18502   ac_check_lib_save_LIBS=$LIBS
18503 LIBS="-lcposix  $LIBS"
18504 cat >conftest.$ac_ext <<_ACEOF
18505 /* confdefs.h.  */
18506 _ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h.  */
18510
18511 /* Override any GCC internal prototype to avoid an error.
18512    Use char because int might match the return type of a GCC
18513    builtin and then its argument prototype would still apply.  */
18514 #ifdef __cplusplus
18515 extern "C"
18516 #endif
18517 char strerror ();
18518 int
18519 main ()
18520 {
18521 return strerror ();
18522   ;
18523   return 0;
18524 }
18525 _ACEOF
18526 rm -f conftest.$ac_objext conftest$ac_exeext
18527 if { (ac_try="$ac_link"
18528 case "(($ac_try" in
18529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530   *) ac_try_echo=$ac_try;;
18531 esac
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533   (eval "$ac_link") 2>conftest.er1
18534   ac_status=$?
18535   grep -v '^ *+' conftest.er1 >conftest.err
18536   rm -f conftest.er1
18537   cat conftest.err >&5
18538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539   (exit $ac_status); } && {
18540          test -z "$ac_c_werror_flag" ||
18541          test ! -s conftest.err
18542        } && test -s conftest$ac_exeext &&
18543        $as_test_x conftest$ac_exeext; then
18544   ac_cv_lib_cposix_strerror=yes
18545 else
18546   echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18548
18549         ac_cv_lib_cposix_strerror=no
18550 fi
18551
18552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18553       conftest$ac_exeext conftest.$ac_ext
18554 LIBS=$ac_check_lib_save_LIBS
18555 fi
18556 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18557 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18558 if test $ac_cv_lib_cposix_strerror = yes; then
18559   LIBS="$LIBS -lcposix"
18560 fi
18561
18562
18563
18564 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18565 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18566 if test "${ac_cv_c_const+set}" = set; then
18567   echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569   cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h.  */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h.  */
18575
18576 int
18577 main ()
18578 {
18579 /* FIXME: Include the comments suggested by Paul. */
18580 #ifndef __cplusplus
18581   /* Ultrix mips cc rejects this.  */
18582   typedef int charset[2];
18583   const charset cs;
18584   /* SunOS 4.1.1 cc rejects this.  */
18585   char const *const *pcpcc;
18586   char **ppc;
18587   /* NEC SVR4.0.2 mips cc rejects this.  */
18588   struct point {int x, y;};
18589   static struct point const zero = {0,0};
18590   /* AIX XL C 1.02.0.0 rejects this.
18591      It does not let you subtract one const X* pointer from another in
18592      an arm of an if-expression whose if-part is not a constant
18593      expression */
18594   const char *g = "string";
18595   pcpcc = &g + (g ? g-g : 0);
18596   /* HPUX 7.0 cc rejects these. */
18597   ++pcpcc;
18598   ppc = (char**) pcpcc;
18599   pcpcc = (char const *const *) ppc;
18600   { /* SCO 3.2v4 cc rejects this.  */
18601     char *t;
18602     char const *s = 0 ? (char *) 0 : (char const *) 0;
18603
18604     *t++ = 0;
18605     if (s) return 0;
18606   }
18607   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18608     int x[] = {25, 17};
18609     const int *foo = &x[0];
18610     ++foo;
18611   }
18612   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18613     typedef const int *iptr;
18614     iptr p = 0;
18615     ++p;
18616   }
18617   { /* AIX XL C 1.02.0.0 rejects this saying
18618        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18619     struct s { int j; const int *ap[3]; };
18620     struct s *b; b->j = 5;
18621   }
18622   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18623     const int foo = 10;
18624     if (!foo) return 0;
18625   }
18626   return !cs[0] && !zero.x;
18627 #endif
18628
18629   ;
18630   return 0;
18631 }
18632 _ACEOF
18633 rm -f conftest.$ac_objext
18634 if { (ac_try="$ac_compile"
18635 case "(($ac_try" in
18636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637   *) ac_try_echo=$ac_try;;
18638 esac
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640   (eval "$ac_compile") 2>conftest.er1
18641   ac_status=$?
18642   grep -v '^ *+' conftest.er1 >conftest.err
18643   rm -f conftest.er1
18644   cat conftest.err >&5
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); } && {
18647          test -z "$ac_c_werror_flag" ||
18648          test ! -s conftest.err
18649        } && test -s conftest.$ac_objext; then
18650   ac_cv_c_const=yes
18651 else
18652   echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18654
18655         ac_cv_c_const=no
18656 fi
18657
18658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18659 fi
18660 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18661 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18662 if test $ac_cv_c_const = no; then
18663
18664 cat >>confdefs.h <<\_ACEOF
18665 #define const
18666 _ACEOF
18667
18668 fi
18669
18670
18671   { echo "$as_me:$LINENO: checking for signed" >&5
18672 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18673 if test "${bh_cv_c_signed+set}" = set; then
18674   echo $ECHO_N "(cached) $ECHO_C" >&6
18675 else
18676   cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h.  */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h.  */
18682
18683 int
18684 main ()
18685 {
18686 signed char x;
18687   ;
18688   return 0;
18689 }
18690 _ACEOF
18691 rm -f conftest.$ac_objext
18692 if { (ac_try="$ac_compile"
18693 case "(($ac_try" in
18694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695   *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698   (eval "$ac_compile") 2>conftest.er1
18699   ac_status=$?
18700   grep -v '^ *+' conftest.er1 >conftest.err
18701   rm -f conftest.er1
18702   cat conftest.err >&5
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); } && {
18705          test -z "$ac_c_werror_flag" ||
18706          test ! -s conftest.err
18707        } && test -s conftest.$ac_objext; then
18708   bh_cv_c_signed=yes
18709 else
18710   echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18712
18713         bh_cv_c_signed=no
18714 fi
18715
18716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18717 fi
18718 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18719 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18720   if test $bh_cv_c_signed = no; then
18721
18722 cat >>confdefs.h <<\_ACEOF
18723 #define signed
18724 _ACEOF
18725
18726   fi
18727
18728 { echo "$as_me:$LINENO: checking for inline" >&5
18729 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18730 if test "${ac_cv_c_inline+set}" = set; then
18731   echo $ECHO_N "(cached) $ECHO_C" >&6
18732 else
18733   ac_cv_c_inline=no
18734 for ac_kw in inline __inline__ __inline; do
18735   cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h.  */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h.  */
18741 #ifndef __cplusplus
18742 typedef int foo_t;
18743 static $ac_kw foo_t static_foo () {return 0; }
18744 $ac_kw foo_t foo () {return 0; }
18745 #endif
18746
18747 _ACEOF
18748 rm -f conftest.$ac_objext
18749 if { (ac_try="$ac_compile"
18750 case "(($ac_try" in
18751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752   *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755   (eval "$ac_compile") 2>conftest.er1
18756   ac_status=$?
18757   grep -v '^ *+' conftest.er1 >conftest.err
18758   rm -f conftest.er1
18759   cat conftest.err >&5
18760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761   (exit $ac_status); } && {
18762          test -z "$ac_c_werror_flag" ||
18763          test ! -s conftest.err
18764        } && test -s conftest.$ac_objext; then
18765   ac_cv_c_inline=$ac_kw
18766 else
18767   echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18769
18770
18771 fi
18772
18773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774   test "$ac_cv_c_inline" != no && break
18775 done
18776
18777 fi
18778 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18779 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18780
18781
18782 case $ac_cv_c_inline in
18783   inline | yes) ;;
18784   *)
18785     case $ac_cv_c_inline in
18786       no) ac_val=;;
18787       *) ac_val=$ac_cv_c_inline;;
18788     esac
18789     cat >>confdefs.h <<_ACEOF
18790 #ifndef __cplusplus
18791 #define inline $ac_val
18792 #endif
18793 _ACEOF
18794     ;;
18795 esac
18796
18797 { echo "$as_me:$LINENO: checking for off_t" >&5
18798 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18799 if test "${ac_cv_type_off_t+set}" = set; then
18800   echo $ECHO_N "(cached) $ECHO_C" >&6
18801 else
18802   cat >conftest.$ac_ext <<_ACEOF
18803 /* confdefs.h.  */
18804 _ACEOF
18805 cat confdefs.h >>conftest.$ac_ext
18806 cat >>conftest.$ac_ext <<_ACEOF
18807 /* end confdefs.h.  */
18808 $ac_includes_default
18809 typedef off_t ac__type_new_;
18810 int
18811 main ()
18812 {
18813 if ((ac__type_new_ *) 0)
18814   return 0;
18815 if (sizeof (ac__type_new_))
18816   return 0;
18817   ;
18818   return 0;
18819 }
18820 _ACEOF
18821 rm -f conftest.$ac_objext
18822 if { (ac_try="$ac_compile"
18823 case "(($ac_try" in
18824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825   *) ac_try_echo=$ac_try;;
18826 esac
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828   (eval "$ac_compile") 2>conftest.er1
18829   ac_status=$?
18830   grep -v '^ *+' conftest.er1 >conftest.err
18831   rm -f conftest.er1
18832   cat conftest.err >&5
18833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834   (exit $ac_status); } && {
18835          test -z "$ac_c_werror_flag" ||
18836          test ! -s conftest.err
18837        } && test -s conftest.$ac_objext; then
18838   ac_cv_type_off_t=yes
18839 else
18840   echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18842
18843         ac_cv_type_off_t=no
18844 fi
18845
18846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18847 fi
18848 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18849 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18850 if test $ac_cv_type_off_t = yes; then
18851   :
18852 else
18853
18854 cat >>confdefs.h <<_ACEOF
18855 #define off_t long int
18856 _ACEOF
18857
18858 fi
18859
18860 { echo "$as_me:$LINENO: checking for size_t" >&5
18861 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18862 if test "${ac_cv_type_size_t+set}" = set; then
18863   echo $ECHO_N "(cached) $ECHO_C" >&6
18864 else
18865   cat >conftest.$ac_ext <<_ACEOF
18866 /* confdefs.h.  */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h.  */
18871 $ac_includes_default
18872 typedef size_t ac__type_new_;
18873 int
18874 main ()
18875 {
18876 if ((ac__type_new_ *) 0)
18877   return 0;
18878 if (sizeof (ac__type_new_))
18879   return 0;
18880   ;
18881   return 0;
18882 }
18883 _ACEOF
18884 rm -f conftest.$ac_objext
18885 if { (ac_try="$ac_compile"
18886 case "(($ac_try" in
18887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888   *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891   (eval "$ac_compile") 2>conftest.er1
18892   ac_status=$?
18893   grep -v '^ *+' conftest.er1 >conftest.err
18894   rm -f conftest.er1
18895   cat conftest.err >&5
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); } && {
18898          test -z "$ac_c_werror_flag" ||
18899          test ! -s conftest.err
18900        } && test -s conftest.$ac_objext; then
18901   ac_cv_type_size_t=yes
18902 else
18903   echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18905
18906         ac_cv_type_size_t=no
18907 fi
18908
18909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18910 fi
18911 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18912 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18913 if test $ac_cv_type_size_t = yes; then
18914   :
18915 else
18916
18917 cat >>confdefs.h <<_ACEOF
18918 #define size_t unsigned int
18919 _ACEOF
18920
18921 fi
18922
18923
18924   { echo "$as_me:$LINENO: checking for long long" >&5
18925 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18926 if test "${ac_cv_type_long_long+set}" = set; then
18927   echo $ECHO_N "(cached) $ECHO_C" >&6
18928 else
18929   cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h.  */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h.  */
18935 long long ll = 1LL; int i = 63;
18936 int
18937 main ()
18938 {
18939 long long llmax = (long long) -1;
18940      return ll << i | ll >> i | llmax / ll | llmax % ll;
18941   ;
18942   return 0;
18943 }
18944 _ACEOF
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949   *) ac_try_echo=$ac_try;;
18950 esac
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952   (eval "$ac_link") 2>conftest.er1
18953   ac_status=$?
18954   grep -v '^ *+' conftest.er1 >conftest.err
18955   rm -f conftest.er1
18956   cat conftest.err >&5
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); } && {
18959          test -z "$ac_c_werror_flag" ||
18960          test ! -s conftest.err
18961        } && test -s conftest$ac_exeext &&
18962        $as_test_x conftest$ac_exeext; then
18963   ac_cv_type_long_long=yes
18964 else
18965   echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18967
18968         ac_cv_type_long_long=no
18969 fi
18970
18971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972       conftest$ac_exeext conftest.$ac_ext
18973 fi
18974 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18975 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18976   if test $ac_cv_type_long_long = yes; then
18977
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE_LONG_LONG 1
18980 _ACEOF
18981
18982   fi
18983
18984
18985   { echo "$as_me:$LINENO: checking for long double" >&5
18986 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18987 if test "${gt_cv_c_long_double+set}" = set; then
18988   echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990   if test "$GCC" = yes; then
18991        gt_cv_c_long_double=yes
18992      else
18993        cat >conftest.$ac_ext <<_ACEOF
18994 /* confdefs.h.  */
18995 _ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h.  */
18999
19000          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19001          long double foo = 0.0;
19002          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19003          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19004
19005 int
19006 main ()
19007 {
19008
19009   ;
19010   return 0;
19011 }
19012 _ACEOF
19013 rm -f conftest.$ac_objext
19014 if { (ac_try="$ac_compile"
19015 case "(($ac_try" in
19016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017   *) ac_try_echo=$ac_try;;
19018 esac
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020   (eval "$ac_compile") 2>conftest.er1
19021   ac_status=$?
19022   grep -v '^ *+' conftest.er1 >conftest.err
19023   rm -f conftest.er1
19024   cat conftest.err >&5
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); } && {
19027          test -z "$ac_c_werror_flag" ||
19028          test ! -s conftest.err
19029        } && test -s conftest.$ac_objext; then
19030   gt_cv_c_long_double=yes
19031 else
19032   echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19034
19035         gt_cv_c_long_double=no
19036 fi
19037
19038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19039      fi
19040 fi
19041 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19042 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19043   if test $gt_cv_c_long_double = yes; then
19044
19045 cat >>confdefs.h <<\_ACEOF
19046 #define HAVE_LONG_DOUBLE 1
19047 _ACEOF
19048
19049   fi
19050
19051
19052   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19053 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19054 if test "${gt_cv_c_wchar_t+set}" = set; then
19055   echo $ECHO_N "(cached) $ECHO_C" >&6
19056 else
19057   cat >conftest.$ac_ext <<_ACEOF
19058 /* confdefs.h.  */
19059 _ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h.  */
19063 #include <stddef.h>
19064        wchar_t foo = (wchar_t)'\0';
19065 int
19066 main ()
19067 {
19068
19069   ;
19070   return 0;
19071 }
19072 _ACEOF
19073 rm -f conftest.$ac_objext
19074 if { (ac_try="$ac_compile"
19075 case "(($ac_try" in
19076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077   *) ac_try_echo=$ac_try;;
19078 esac
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080   (eval "$ac_compile") 2>conftest.er1
19081   ac_status=$?
19082   grep -v '^ *+' conftest.er1 >conftest.err
19083   rm -f conftest.er1
19084   cat conftest.err >&5
19085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086   (exit $ac_status); } && {
19087          test -z "$ac_c_werror_flag" ||
19088          test ! -s conftest.err
19089        } && test -s conftest.$ac_objext; then
19090   gt_cv_c_wchar_t=yes
19091 else
19092   echo "$as_me: failed program was:" >&5
19093 sed 's/^/| /' conftest.$ac_ext >&5
19094
19095         gt_cv_c_wchar_t=no
19096 fi
19097
19098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19099 fi
19100 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19101 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19102   if test $gt_cv_c_wchar_t = yes; then
19103
19104 cat >>confdefs.h <<\_ACEOF
19105 #define HAVE_WCHAR_T 1
19106 _ACEOF
19107
19108   fi
19109
19110
19111   { echo "$as_me:$LINENO: checking for wint_t" >&5
19112 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19113 if test "${gt_cv_c_wint_t+set}" = set; then
19114   echo $ECHO_N "(cached) $ECHO_C" >&6
19115 else
19116   cat >conftest.$ac_ext <<_ACEOF
19117 /* confdefs.h.  */
19118 _ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h.  */
19122 #include <wchar.h>
19123        wint_t foo = (wchar_t)'\0';
19124 int
19125 main ()
19126 {
19127
19128   ;
19129   return 0;
19130 }
19131 _ACEOF
19132 rm -f conftest.$ac_objext
19133 if { (ac_try="$ac_compile"
19134 case "(($ac_try" in
19135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136   *) ac_try_echo=$ac_try;;
19137 esac
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139   (eval "$ac_compile") 2>conftest.er1
19140   ac_status=$?
19141   grep -v '^ *+' conftest.er1 >conftest.err
19142   rm -f conftest.er1
19143   cat conftest.err >&5
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); } && {
19146          test -z "$ac_c_werror_flag" ||
19147          test ! -s conftest.err
19148        } && test -s conftest.$ac_objext; then
19149   gt_cv_c_wint_t=yes
19150 else
19151   echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19153
19154         gt_cv_c_wint_t=no
19155 fi
19156
19157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19158 fi
19159 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19160 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19161   if test $gt_cv_c_wint_t = yes; then
19162
19163 cat >>confdefs.h <<\_ACEOF
19164 #define HAVE_WINT_T 1
19165 _ACEOF
19166
19167   fi
19168
19169
19170   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19171 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19172 if test "${gl_cv_header_inttypes_h+set}" = set; then
19173   echo $ECHO_N "(cached) $ECHO_C" >&6
19174 else
19175   cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h.  */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h.  */
19181 #include <sys/types.h>
19182 #include <inttypes.h>
19183 int
19184 main ()
19185 {
19186 uintmax_t i = (uintmax_t) -1;
19187   ;
19188   return 0;
19189 }
19190 _ACEOF
19191 rm -f conftest.$ac_objext
19192 if { (ac_try="$ac_compile"
19193 case "(($ac_try" in
19194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195   *) ac_try_echo=$ac_try;;
19196 esac
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198   (eval "$ac_compile") 2>conftest.er1
19199   ac_status=$?
19200   grep -v '^ *+' conftest.er1 >conftest.err
19201   rm -f conftest.er1
19202   cat conftest.err >&5
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); } && {
19205          test -z "$ac_c_werror_flag" ||
19206          test ! -s conftest.err
19207        } && test -s conftest.$ac_objext; then
19208   gl_cv_header_inttypes_h=yes
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213         gl_cv_header_inttypes_h=no
19214 fi
19215
19216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19217 fi
19218 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19219 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19220   if test $gl_cv_header_inttypes_h = yes; then
19221
19222 cat >>confdefs.h <<_ACEOF
19223 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19224 _ACEOF
19225
19226   fi
19227
19228
19229   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19230 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19231 if test "${gl_cv_header_stdint_h+set}" = set; then
19232   echo $ECHO_N "(cached) $ECHO_C" >&6
19233 else
19234   cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h.  */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h.  */
19240 #include <sys/types.h>
19241 #include <stdint.h>
19242 int
19243 main ()
19244 {
19245 uintmax_t i = (uintmax_t) -1;
19246   ;
19247   return 0;
19248 }
19249 _ACEOF
19250 rm -f conftest.$ac_objext
19251 if { (ac_try="$ac_compile"
19252 case "(($ac_try" in
19253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254   *) ac_try_echo=$ac_try;;
19255 esac
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257   (eval "$ac_compile") 2>conftest.er1
19258   ac_status=$?
19259   grep -v '^ *+' conftest.er1 >conftest.err
19260   rm -f conftest.er1
19261   cat conftest.err >&5
19262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263   (exit $ac_status); } && {
19264          test -z "$ac_c_werror_flag" ||
19265          test ! -s conftest.err
19266        } && test -s conftest.$ac_objext; then
19267   gl_cv_header_stdint_h=yes
19268 else
19269   echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19271
19272         gl_cv_header_stdint_h=no
19273 fi
19274
19275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19276 fi
19277 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19278 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19279   if test $gl_cv_header_stdint_h = yes; then
19280
19281 cat >>confdefs.h <<_ACEOF
19282 #define HAVE_STDINT_H_WITH_UINTMAX 1
19283 _ACEOF
19284
19285   fi
19286
19287
19288
19289
19290   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19291 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19292 if test "${gt_cv_c_intmax_t+set}" = set; then
19293   echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295   cat >conftest.$ac_ext <<_ACEOF
19296 /* confdefs.h.  */
19297 _ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h.  */
19301
19302 #include <stddef.h>
19303 #include <stdlib.h>
19304 #if HAVE_STDINT_H_WITH_UINTMAX
19305 #include <stdint.h>
19306 #endif
19307 #if HAVE_INTTYPES_H_WITH_UINTMAX
19308 #include <inttypes.h>
19309 #endif
19310
19311 int
19312 main ()
19313 {
19314 intmax_t x = -1;
19315   ;
19316   return 0;
19317 }
19318 _ACEOF
19319 rm -f conftest.$ac_objext
19320 if { (ac_try="$ac_compile"
19321 case "(($ac_try" in
19322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323   *) ac_try_echo=$ac_try;;
19324 esac
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326   (eval "$ac_compile") 2>conftest.er1
19327   ac_status=$?
19328   grep -v '^ *+' conftest.er1 >conftest.err
19329   rm -f conftest.er1
19330   cat conftest.err >&5
19331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); } && {
19333          test -z "$ac_c_werror_flag" ||
19334          test ! -s conftest.err
19335        } && test -s conftest.$ac_objext; then
19336   gt_cv_c_intmax_t=yes
19337 else
19338   echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19340
19341         gt_cv_c_intmax_t=no
19342 fi
19343
19344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19345 fi
19346 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19347 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19348   if test $gt_cv_c_intmax_t = yes; then
19349
19350 cat >>confdefs.h <<\_ACEOF
19351 #define HAVE_INTMAX_T 1
19352 _ACEOF
19353
19354   fi
19355
19356
19357
19358   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19359 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19360 if test "${gt_cv_func_printf_posix+set}" = set; then
19361   echo $ECHO_N "(cached) $ECHO_C" >&6
19362 else
19363
19364       if test "$cross_compiling" = yes; then
19365
19366         cat >conftest.$ac_ext <<_ACEOF
19367 /* confdefs.h.  */
19368 _ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h.  */
19372
19373 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19374   notposix
19375 #endif
19376
19377 _ACEOF
19378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19379   $EGREP "notposix" >/dev/null 2>&1; then
19380   gt_cv_func_printf_posix="guessing no"
19381 else
19382   gt_cv_func_printf_posix="guessing yes"
19383 fi
19384 rm -f conftest*
19385
19386
19387 else
19388   cat >conftest.$ac_ext <<_ACEOF
19389 /* confdefs.h.  */
19390 _ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h.  */
19394
19395 #include <stdio.h>
19396 #include <string.h>
19397 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19398    dollar expansion (possibly an autoconf bug).  */
19399 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19400 static char buf[100];
19401 int main ()
19402 {
19403   sprintf (buf, format, 33, 55);
19404   return (strcmp (buf, "55 33") != 0);
19405 }
19406 _ACEOF
19407 rm -f conftest$ac_exeext
19408 if { (ac_try="$ac_link"
19409 case "(($ac_try" in
19410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411   *) ac_try_echo=$ac_try;;
19412 esac
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414   (eval "$ac_link") 2>&5
19415   ac_status=$?
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19418   { (case "(($ac_try" in
19419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420   *) ac_try_echo=$ac_try;;
19421 esac
19422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423   (eval "$ac_try") 2>&5
19424   ac_status=$?
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); }; }; then
19427   gt_cv_func_printf_posix=yes
19428 else
19429   echo "$as_me: program exited with status $ac_status" >&5
19430 echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19432
19433 ( exit $ac_status )
19434 gt_cv_func_printf_posix=no
19435 fi
19436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19437 fi
19438
19439
19440
19441 fi
19442 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19443 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19444   case $gt_cv_func_printf_posix in
19445     *yes)
19446
19447 cat >>confdefs.h <<\_ACEOF
19448 #define HAVE_POSIX_PRINTF 1
19449 _ACEOF
19450
19451       ;;
19452   esac
19453
19454 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19455 # for constant arguments.  Useless!
19456 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19457 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19458 if test "${ac_cv_working_alloca_h+set}" = set; then
19459   echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461   cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h.  */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h.  */
19467 #include <alloca.h>
19468 int
19469 main ()
19470 {
19471 char *p = (char *) alloca (2 * sizeof (int));
19472                           if (p) return 0;
19473   ;
19474   return 0;
19475 }
19476 _ACEOF
19477 rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (ac_try="$ac_link"
19479 case "(($ac_try" in
19480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481   *) ac_try_echo=$ac_try;;
19482 esac
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484   (eval "$ac_link") 2>conftest.er1
19485   ac_status=$?
19486   grep -v '^ *+' conftest.er1 >conftest.err
19487   rm -f conftest.er1
19488   cat conftest.err >&5
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); } && {
19491          test -z "$ac_c_werror_flag" ||
19492          test ! -s conftest.err
19493        } && test -s conftest$ac_exeext &&
19494        $as_test_x conftest$ac_exeext; then
19495   ac_cv_working_alloca_h=yes
19496 else
19497   echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19499
19500         ac_cv_working_alloca_h=no
19501 fi
19502
19503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19504       conftest$ac_exeext conftest.$ac_ext
19505 fi
19506 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19507 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19508 if test $ac_cv_working_alloca_h = yes; then
19509
19510 cat >>confdefs.h <<\_ACEOF
19511 #define HAVE_ALLOCA_H 1
19512 _ACEOF
19513
19514 fi
19515
19516 { echo "$as_me:$LINENO: checking for alloca" >&5
19517 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19518 if test "${ac_cv_func_alloca_works+set}" = set; then
19519   echo $ECHO_N "(cached) $ECHO_C" >&6
19520 else
19521   cat >conftest.$ac_ext <<_ACEOF
19522 /* confdefs.h.  */
19523 _ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h.  */
19527 #ifdef __GNUC__
19528 # define alloca __builtin_alloca
19529 #else
19530 # ifdef _MSC_VER
19531 #  include <malloc.h>
19532 #  define alloca _alloca
19533 # else
19534 #  ifdef HAVE_ALLOCA_H
19535 #   include <alloca.h>
19536 #  else
19537 #   ifdef _AIX
19538  #pragma alloca
19539 #   else
19540 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19541 char *alloca ();
19542 #    endif
19543 #   endif
19544 #  endif
19545 # endif
19546 #endif
19547
19548 int
19549 main ()
19550 {
19551 char *p = (char *) alloca (1);
19552                                     if (p) return 0;
19553   ;
19554   return 0;
19555 }
19556 _ACEOF
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (ac_try="$ac_link"
19559 case "(($ac_try" in
19560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561   *) ac_try_echo=$ac_try;;
19562 esac
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564   (eval "$ac_link") 2>conftest.er1
19565   ac_status=$?
19566   grep -v '^ *+' conftest.er1 >conftest.err
19567   rm -f conftest.er1
19568   cat conftest.err >&5
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); } && {
19571          test -z "$ac_c_werror_flag" ||
19572          test ! -s conftest.err
19573        } && test -s conftest$ac_exeext &&
19574        $as_test_x conftest$ac_exeext; then
19575   ac_cv_func_alloca_works=yes
19576 else
19577   echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19579
19580         ac_cv_func_alloca_works=no
19581 fi
19582
19583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19584       conftest$ac_exeext conftest.$ac_ext
19585 fi
19586 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19587 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19588
19589 if test $ac_cv_func_alloca_works = yes; then
19590
19591 cat >>confdefs.h <<\_ACEOF
19592 #define HAVE_ALLOCA 1
19593 _ACEOF
19594
19595 else
19596   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19597 # that cause trouble.  Some versions do not even contain alloca or
19598 # contain a buggy version.  If you still want to use their alloca,
19599 # use ar to extract alloca.o from them instead of compiling alloca.c.
19600
19601 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19602
19603 cat >>confdefs.h <<\_ACEOF
19604 #define C_ALLOCA 1
19605 _ACEOF
19606
19607
19608 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19609 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19610 if test "${ac_cv_os_cray+set}" = set; then
19611   echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613   cat >conftest.$ac_ext <<_ACEOF
19614 /* confdefs.h.  */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h.  */
19619 #if defined CRAY && ! defined CRAY2
19620 webecray
19621 #else
19622 wenotbecray
19623 #endif
19624
19625 _ACEOF
19626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19627   $EGREP "webecray" >/dev/null 2>&1; then
19628   ac_cv_os_cray=yes
19629 else
19630   ac_cv_os_cray=no
19631 fi
19632 rm -f conftest*
19633
19634 fi
19635 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19636 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19637 if test $ac_cv_os_cray = yes; then
19638   for ac_func in _getb67 GETB67 getb67; do
19639     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19643   echo $ECHO_N "(cached) $ECHO_C" >&6
19644 else
19645   cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h.  */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h.  */
19651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19653 #define $ac_func innocuous_$ac_func
19654
19655 /* System header to define __stub macros and hopefully few prototypes,
19656     which can conflict with char $ac_func (); below.
19657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19658     <limits.h> exists even on freestanding compilers.  */
19659
19660 #ifdef __STDC__
19661 # include <limits.h>
19662 #else
19663 # include <assert.h>
19664 #endif
19665
19666 #undef $ac_func
19667
19668 /* Override any GCC internal prototype to avoid an error.
19669    Use char because int might match the return type of a GCC
19670    builtin and then its argument prototype would still apply.  */
19671 #ifdef __cplusplus
19672 extern "C"
19673 #endif
19674 char $ac_func ();
19675 /* The GNU C library defines this for functions which it implements
19676     to always fail with ENOSYS.  Some functions are actually named
19677     something starting with __ and the normal name is an alias.  */
19678 #if defined __stub_$ac_func || defined __stub___$ac_func
19679 choke me
19680 #endif
19681
19682 int
19683 main ()
19684 {
19685 return $ac_func ();
19686   ;
19687   return 0;
19688 }
19689 _ACEOF
19690 rm -f conftest.$ac_objext conftest$ac_exeext
19691 if { (ac_try="$ac_link"
19692 case "(($ac_try" in
19693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694   *) ac_try_echo=$ac_try;;
19695 esac
19696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697   (eval "$ac_link") 2>conftest.er1
19698   ac_status=$?
19699   grep -v '^ *+' conftest.er1 >conftest.err
19700   rm -f conftest.er1
19701   cat conftest.err >&5
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); } && {
19704          test -z "$ac_c_werror_flag" ||
19705          test ! -s conftest.err
19706        } && test -s conftest$ac_exeext &&
19707        $as_test_x conftest$ac_exeext; then
19708   eval "$as_ac_var=yes"
19709 else
19710   echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19712
19713         eval "$as_ac_var=no"
19714 fi
19715
19716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19717       conftest$ac_exeext conftest.$ac_ext
19718 fi
19719 ac_res=`eval echo '${'$as_ac_var'}'`
19720                { echo "$as_me:$LINENO: result: $ac_res" >&5
19721 echo "${ECHO_T}$ac_res" >&6; }
19722 if test `eval echo '${'$as_ac_var'}'` = yes; then
19723
19724 cat >>confdefs.h <<_ACEOF
19725 #define CRAY_STACKSEG_END $ac_func
19726 _ACEOF
19727
19728     break
19729 fi
19730
19731   done
19732 fi
19733
19734 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19735 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19736 if test "${ac_cv_c_stack_direction+set}" = set; then
19737   echo $ECHO_N "(cached) $ECHO_C" >&6
19738 else
19739   if test "$cross_compiling" = yes; then
19740   ac_cv_c_stack_direction=0
19741 else
19742   cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h.  */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h.  */
19748 $ac_includes_default
19749 int
19750 find_stack_direction ()
19751 {
19752   static char *addr = 0;
19753   auto char dummy;
19754   if (addr == 0)
19755     {
19756       addr = &dummy;
19757       return find_stack_direction ();
19758     }
19759   else
19760     return (&dummy > addr) ? 1 : -1;
19761 }
19762
19763 int
19764 main ()
19765 {
19766   return find_stack_direction () < 0;
19767 }
19768 _ACEOF
19769 rm -f conftest$ac_exeext
19770 if { (ac_try="$ac_link"
19771 case "(($ac_try" in
19772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773   *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776   (eval "$ac_link") 2>&5
19777   ac_status=$?
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19780   { (case "(($ac_try" in
19781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782   *) ac_try_echo=$ac_try;;
19783 esac
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785   (eval "$ac_try") 2>&5
19786   ac_status=$?
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); }; }; then
19789   ac_cv_c_stack_direction=1
19790 else
19791   echo "$as_me: program exited with status $ac_status" >&5
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19794
19795 ( exit $ac_status )
19796 ac_cv_c_stack_direction=-1
19797 fi
19798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19799 fi
19800
19801
19802 fi
19803 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19804 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19805
19806 cat >>confdefs.h <<_ACEOF
19807 #define STACK_DIRECTION $ac_cv_c_stack_direction
19808 _ACEOF
19809
19810
19811 fi
19812
19813
19814
19815 for ac_header in stdlib.h unistd.h
19816 do
19817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19819   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 fi
19824 ac_res=`eval echo '${'$as_ac_Header'}'`
19825                { echo "$as_me:$LINENO: result: $ac_res" >&5
19826 echo "${ECHO_T}$ac_res" >&6; }
19827 else
19828   # Is the header compilable?
19829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19831 cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h.  */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h.  */
19837 $ac_includes_default
19838 #include <$ac_header>
19839 _ACEOF
19840 rm -f conftest.$ac_objext
19841 if { (ac_try="$ac_compile"
19842 case "(($ac_try" in
19843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844   *) ac_try_echo=$ac_try;;
19845 esac
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847   (eval "$ac_compile") 2>conftest.er1
19848   ac_status=$?
19849   grep -v '^ *+' conftest.er1 >conftest.err
19850   rm -f conftest.er1
19851   cat conftest.err >&5
19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853   (exit $ac_status); } && {
19854          test -z "$ac_c_werror_flag" ||
19855          test ! -s conftest.err
19856        } && test -s conftest.$ac_objext; then
19857   ac_header_compiler=yes
19858 else
19859   echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862         ac_header_compiler=no
19863 fi
19864
19865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19867 echo "${ECHO_T}$ac_header_compiler" >&6; }
19868
19869 # Is the header present?
19870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19872 cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h.  */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h.  */
19878 #include <$ac_header>
19879 _ACEOF
19880 if { (ac_try="$ac_cpp conftest.$ac_ext"
19881 case "(($ac_try" in
19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883   *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19887   ac_status=$?
19888   grep -v '^ *+' conftest.er1 >conftest.err
19889   rm -f conftest.er1
19890   cat conftest.err >&5
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); } >/dev/null && {
19893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19894          test ! -s conftest.err
19895        }; then
19896   ac_header_preproc=yes
19897 else
19898   echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19900
19901   ac_header_preproc=no
19902 fi
19903
19904 rm -f conftest.err conftest.$ac_ext
19905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19906 echo "${ECHO_T}$ac_header_preproc" >&6; }
19907
19908 # So?  What about this header?
19909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19910   yes:no: )
19911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19915     ac_header_preproc=yes
19916     ;;
19917   no:yes:* )
19918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19920     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19921 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19922     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19924     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19925 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19928     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19930
19931     ;;
19932 esac
19933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19936   echo $ECHO_N "(cached) $ECHO_C" >&6
19937 else
19938   eval "$as_ac_Header=\$ac_header_preproc"
19939 fi
19940 ac_res=`eval echo '${'$as_ac_Header'}'`
19941                { echo "$as_me:$LINENO: result: $ac_res" >&5
19942 echo "${ECHO_T}$ac_res" >&6; }
19943
19944 fi
19945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19946   cat >>confdefs.h <<_ACEOF
19947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19948 _ACEOF
19949
19950 fi
19951
19952 done
19953
19954
19955 for ac_func in getpagesize
19956 do
19957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19961   echo $ECHO_N "(cached) $ECHO_C" >&6
19962 else
19963   cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h.  */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h.  */
19969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19971 #define $ac_func innocuous_$ac_func
19972
19973 /* System header to define __stub macros and hopefully few prototypes,
19974     which can conflict with char $ac_func (); below.
19975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19976     <limits.h> exists even on freestanding compilers.  */
19977
19978 #ifdef __STDC__
19979 # include <limits.h>
19980 #else
19981 # include <assert.h>
19982 #endif
19983
19984 #undef $ac_func
19985
19986 /* Override any GCC internal prototype to avoid an error.
19987    Use char because int might match the return type of a GCC
19988    builtin and then its argument prototype would still apply.  */
19989 #ifdef __cplusplus
19990 extern "C"
19991 #endif
19992 char $ac_func ();
19993 /* The GNU C library defines this for functions which it implements
19994     to always fail with ENOSYS.  Some functions are actually named
19995     something starting with __ and the normal name is an alias.  */
19996 #if defined __stub_$ac_func || defined __stub___$ac_func
19997 choke me
19998 #endif
19999
20000 int
20001 main ()
20002 {
20003 return $ac_func ();
20004   ;
20005   return 0;
20006 }
20007 _ACEOF
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (ac_try="$ac_link"
20010 case "(($ac_try" in
20011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012   *) ac_try_echo=$ac_try;;
20013 esac
20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015   (eval "$ac_link") 2>conftest.er1
20016   ac_status=$?
20017   grep -v '^ *+' conftest.er1 >conftest.err
20018   rm -f conftest.er1
20019   cat conftest.err >&5
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); } && {
20022          test -z "$ac_c_werror_flag" ||
20023          test ! -s conftest.err
20024        } && test -s conftest$ac_exeext &&
20025        $as_test_x conftest$ac_exeext; then
20026   eval "$as_ac_var=yes"
20027 else
20028   echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20030
20031         eval "$as_ac_var=no"
20032 fi
20033
20034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20035       conftest$ac_exeext conftest.$ac_ext
20036 fi
20037 ac_res=`eval echo '${'$as_ac_var'}'`
20038                { echo "$as_me:$LINENO: result: $ac_res" >&5
20039 echo "${ECHO_T}$ac_res" >&6; }
20040 if test `eval echo '${'$as_ac_var'}'` = yes; then
20041   cat >>confdefs.h <<_ACEOF
20042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20043 _ACEOF
20044
20045 fi
20046 done
20047
20048 { echo "$as_me:$LINENO: checking for working mmap" >&5
20049 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20050 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20051   echo $ECHO_N "(cached) $ECHO_C" >&6
20052 else
20053   if test "$cross_compiling" = yes; then
20054   ac_cv_func_mmap_fixed_mapped=no
20055 else
20056   cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h.  */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h.  */
20062 $ac_includes_default
20063 /* malloc might have been renamed as rpl_malloc. */
20064 #undef malloc
20065
20066 /* Thanks to Mike Haertel and Jim Avera for this test.
20067    Here is a matrix of mmap possibilities:
20068         mmap private not fixed
20069         mmap private fixed at somewhere currently unmapped
20070         mmap private fixed at somewhere already mapped
20071         mmap shared not fixed
20072         mmap shared fixed at somewhere currently unmapped
20073         mmap shared fixed at somewhere already mapped
20074    For private mappings, we should verify that changes cannot be read()
20075    back from the file, nor mmap's back from the file at a different
20076    address.  (There have been systems where private was not correctly
20077    implemented like the infamous i386 svr4.0, and systems where the
20078    VM page cache was not coherent with the file system buffer cache
20079    like early versions of FreeBSD and possibly contemporary NetBSD.)
20080    For shared mappings, we should conversely verify that changes get
20081    propagated back to all the places they're supposed to be.
20082
20083    Grep wants private fixed already mapped.
20084    The main things grep needs to know about mmap are:
20085    * does it exist and is it safe to write into the mmap'd area
20086    * how to use it (BSD variants)  */
20087
20088 #include <fcntl.h>
20089 #include <sys/mman.h>
20090
20091 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20092 char *malloc ();
20093 #endif
20094
20095 /* This mess was copied from the GNU getpagesize.h.  */
20096 #ifndef HAVE_GETPAGESIZE
20097 /* Assume that all systems that can run configure have sys/param.h.  */
20098 # ifndef HAVE_SYS_PARAM_H
20099 #  define HAVE_SYS_PARAM_H 1
20100 # endif
20101
20102 # ifdef _SC_PAGESIZE
20103 #  define getpagesize() sysconf(_SC_PAGESIZE)
20104 # else /* no _SC_PAGESIZE */
20105 #  ifdef HAVE_SYS_PARAM_H
20106 #   include <sys/param.h>
20107 #   ifdef EXEC_PAGESIZE
20108 #    define getpagesize() EXEC_PAGESIZE
20109 #   else /* no EXEC_PAGESIZE */
20110 #    ifdef NBPG
20111 #     define getpagesize() NBPG * CLSIZE
20112 #     ifndef CLSIZE
20113 #      define CLSIZE 1
20114 #     endif /* no CLSIZE */
20115 #    else /* no NBPG */
20116 #     ifdef NBPC
20117 #      define getpagesize() NBPC
20118 #     else /* no NBPC */
20119 #      ifdef PAGESIZE
20120 #       define getpagesize() PAGESIZE
20121 #      endif /* PAGESIZE */
20122 #     endif /* no NBPC */
20123 #    endif /* no NBPG */
20124 #   endif /* no EXEC_PAGESIZE */
20125 #  else /* no HAVE_SYS_PARAM_H */
20126 #   define getpagesize() 8192   /* punt totally */
20127 #  endif /* no HAVE_SYS_PARAM_H */
20128 # endif /* no _SC_PAGESIZE */
20129
20130 #endif /* no HAVE_GETPAGESIZE */
20131
20132 int
20133 main ()
20134 {
20135   char *data, *data2, *data3;
20136   int i, pagesize;
20137   int fd;
20138
20139   pagesize = getpagesize ();
20140
20141   /* First, make a file with some known garbage in it. */
20142   data = (char *) malloc (pagesize);
20143   if (!data)
20144     return 1;
20145   for (i = 0; i < pagesize; ++i)
20146     *(data + i) = rand ();
20147   umask (0);
20148   fd = creat ("conftest.mmap", 0600);
20149   if (fd < 0)
20150     return 1;
20151   if (write (fd, data, pagesize) != pagesize)
20152     return 1;
20153   close (fd);
20154
20155   /* Next, try to mmap the file at a fixed address which already has
20156      something else allocated at it.  If we can, also make sure that
20157      we see the same garbage.  */
20158   fd = open ("conftest.mmap", O_RDWR);
20159   if (fd < 0)
20160     return 1;
20161   data2 = (char *) malloc (2 * pagesize);
20162   if (!data2)
20163     return 1;
20164   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20165   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20166                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20167     return 1;
20168   for (i = 0; i < pagesize; ++i)
20169     if (*(data + i) != *(data2 + i))
20170       return 1;
20171
20172   /* Finally, make sure that changes to the mapped area do not
20173      percolate back to the file as seen by read().  (This is a bug on
20174      some variants of i386 svr4.0.)  */
20175   for (i = 0; i < pagesize; ++i)
20176     *(data2 + i) = *(data2 + i) + 1;
20177   data3 = (char *) malloc (pagesize);
20178   if (!data3)
20179     return 1;
20180   if (read (fd, data3, pagesize) != pagesize)
20181     return 1;
20182   for (i = 0; i < pagesize; ++i)
20183     if (*(data + i) != *(data3 + i))
20184       return 1;
20185   close (fd);
20186   return 0;
20187 }
20188 _ACEOF
20189 rm -f conftest$ac_exeext
20190 if { (ac_try="$ac_link"
20191 case "(($ac_try" in
20192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193   *) ac_try_echo=$ac_try;;
20194 esac
20195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196   (eval "$ac_link") 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20200   { (case "(($ac_try" in
20201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202   *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205   (eval "$ac_try") 2>&5
20206   ac_status=$?
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); }; }; then
20209   ac_cv_func_mmap_fixed_mapped=yes
20210 else
20211   echo "$as_me: program exited with status $ac_status" >&5
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 ( exit $ac_status )
20216 ac_cv_func_mmap_fixed_mapped=no
20217 fi
20218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20219 fi
20220
20221
20222 fi
20223 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20224 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20225 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20226
20227 cat >>confdefs.h <<\_ACEOF
20228 #define HAVE_MMAP 1
20229 _ACEOF
20230
20231 fi
20232 rm -f conftest.mmap
20233
20234
20235     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20236 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20237 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20238   echo $ECHO_N "(cached) $ECHO_C" >&6
20239 else
20240   cat >conftest.$ac_ext <<_ACEOF
20241 /* confdefs.h.  */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h.  */
20246
20247 #include <features.h>
20248 #ifdef __GNU_LIBRARY__
20249  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20250   Lucky GNU user
20251  #endif
20252 #endif
20253
20254 _ACEOF
20255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20256   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20257   ac_cv_gnu_library_2_1=yes
20258 else
20259   ac_cv_gnu_library_2_1=no
20260 fi
20261 rm -f conftest*
20262
20263
20264
20265 fi
20266 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20267 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20268
20269     GLIBC21="$ac_cv_gnu_library_2_1"
20270
20271
20272
20273
20274   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20275 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20276 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20277   echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279
20280       if test "$cross_compiling" = yes; then
20281
20282           # Guess based on the CPU.
20283           case "$host_cpu" in
20284             alpha* | i3456786 | m68k | s390*)
20285               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20286             *)
20287               gt_cv_int_divbyzero_sigfpe="guessing no";;
20288           esac
20289
20290 else
20291   cat >conftest.$ac_ext <<_ACEOF
20292 /* confdefs.h.  */
20293 _ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h.  */
20297
20298 #include <stdlib.h>
20299 #include <signal.h>
20300
20301 static void
20302 #ifdef __cplusplus
20303 sigfpe_handler (int sig)
20304 #else
20305 sigfpe_handler (sig) int sig;
20306 #endif
20307 {
20308   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20309   exit (sig != SIGFPE);
20310 }
20311
20312 int x = 1;
20313 int y = 0;
20314 int z;
20315 int nan;
20316
20317 int main ()
20318 {
20319   signal (SIGFPE, sigfpe_handler);
20320 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20321 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20322   signal (SIGTRAP, sigfpe_handler);
20323 #endif
20324 /* Linux/SPARC yields signal SIGILL.  */
20325 #if defined (__sparc__) && defined (__linux__)
20326   signal (SIGILL, sigfpe_handler);
20327 #endif
20328
20329   z = x / y;
20330   nan = y / y;
20331   exit (1);
20332 }
20333
20334 _ACEOF
20335 rm -f conftest$ac_exeext
20336 if { (ac_try="$ac_link"
20337 case "(($ac_try" in
20338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339   *) ac_try_echo=$ac_try;;
20340 esac
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342   (eval "$ac_link") 2>&5
20343   ac_status=$?
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20346   { (case "(($ac_try" in
20347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348   *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351   (eval "$ac_try") 2>&5
20352   ac_status=$?
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); }; }; then
20355   gt_cv_int_divbyzero_sigfpe=yes
20356 else
20357   echo "$as_me: program exited with status $ac_status" >&5
20358 echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20360
20361 ( exit $ac_status )
20362 gt_cv_int_divbyzero_sigfpe=no
20363 fi
20364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20365 fi
20366
20367
20368
20369 fi
20370 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20371 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20372   case "$gt_cv_int_divbyzero_sigfpe" in
20373     *yes) value=1;;
20374     *) value=0;;
20375   esac
20376
20377 cat >>confdefs.h <<_ACEOF
20378 #define INTDIV0_RAISES_SIGFPE $value
20379 _ACEOF
20380
20381
20382
20383   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20384 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20385 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388   cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394 unsigned long long ull = 1ULL; int i = 63;
20395 int
20396 main ()
20397 {
20398 unsigned long long ullmax = (unsigned long long) -1;
20399      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20400   ;
20401   return 0;
20402 }
20403 _ACEOF
20404 rm -f conftest.$ac_objext conftest$ac_exeext
20405 if { (ac_try="$ac_link"
20406 case "(($ac_try" in
20407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408   *) ac_try_echo=$ac_try;;
20409 esac
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411   (eval "$ac_link") 2>conftest.er1
20412   ac_status=$?
20413   grep -v '^ *+' conftest.er1 >conftest.err
20414   rm -f conftest.er1
20415   cat conftest.err >&5
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); } && {
20418          test -z "$ac_c_werror_flag" ||
20419          test ! -s conftest.err
20420        } && test -s conftest$ac_exeext &&
20421        $as_test_x conftest$ac_exeext; then
20422   ac_cv_type_unsigned_long_long=yes
20423 else
20424   echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427         ac_cv_type_unsigned_long_long=no
20428 fi
20429
20430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20431       conftest$ac_exeext conftest.$ac_ext
20432 fi
20433 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20434 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20435   if test $ac_cv_type_unsigned_long_long = yes; then
20436
20437 cat >>confdefs.h <<\_ACEOF
20438 #define HAVE_UNSIGNED_LONG_LONG 1
20439 _ACEOF
20440
20441   fi
20442
20443
20444
20445
20446   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20447
20448     test $ac_cv_type_unsigned_long_long = yes \
20449       && ac_type='unsigned long long' \
20450       || ac_type='unsigned long'
20451
20452 cat >>confdefs.h <<_ACEOF
20453 #define uintmax_t $ac_type
20454 _ACEOF
20455
20456   else
20457
20458 cat >>confdefs.h <<\_ACEOF
20459 #define HAVE_UINTMAX_T 1
20460 _ACEOF
20461
20462   fi
20463
20464
20465   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20466 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20467 if test "${gt_cv_header_inttypes_h+set}" = set; then
20468   echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470
20471     cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h.  */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h.  */
20477 #include <sys/types.h>
20478 #include <inttypes.h>
20479 int
20480 main ()
20481 {
20482
20483   ;
20484   return 0;
20485 }
20486 _ACEOF
20487 rm -f conftest.$ac_objext
20488 if { (ac_try="$ac_compile"
20489 case "(($ac_try" in
20490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491   *) ac_try_echo=$ac_try;;
20492 esac
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494   (eval "$ac_compile") 2>conftest.er1
20495   ac_status=$?
20496   grep -v '^ *+' conftest.er1 >conftest.err
20497   rm -f conftest.er1
20498   cat conftest.err >&5
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); } && {
20501          test -z "$ac_c_werror_flag" ||
20502          test ! -s conftest.err
20503        } && test -s conftest.$ac_objext; then
20504   gt_cv_header_inttypes_h=yes
20505 else
20506   echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20508
20509         gt_cv_header_inttypes_h=no
20510 fi
20511
20512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513
20514 fi
20515 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20516 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20517   if test $gt_cv_header_inttypes_h = yes; then
20518
20519 cat >>confdefs.h <<_ACEOF
20520 #define HAVE_INTTYPES_H 1
20521 _ACEOF
20522
20523   fi
20524
20525
20526
20527   if test $gt_cv_header_inttypes_h = yes; then
20528     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20529 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20530 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20531   echo $ECHO_N "(cached) $ECHO_C" >&6
20532 else
20533
20534         cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h.  */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h.  */
20540 #include <inttypes.h>
20541 #ifdef PRId32
20542 char *p = PRId32;
20543 #endif
20544
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_inttypes_pri_broken=no
20571 else
20572   echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20574
20575         gt_cv_inttypes_pri_broken=yes
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_inttypes_pri_broken" >&5
20582 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20583   fi
20584   if test "$gt_cv_inttypes_pri_broken" = yes; then
20585
20586 cat >>confdefs.h <<_ACEOF
20587 #define PRI_MACROS_BROKEN 1
20588 _ACEOF
20589
20590   fi
20591
20592
20593
20594 for ac_header in stdint.h
20595 do
20596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20598   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20601   echo $ECHO_N "(cached) $ECHO_C" >&6
20602 fi
20603 ac_res=`eval echo '${'$as_ac_Header'}'`
20604                { echo "$as_me:$LINENO: result: $ac_res" >&5
20605 echo "${ECHO_T}$ac_res" >&6; }
20606 else
20607   # Is the header compilable?
20608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20610 cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616 $ac_includes_default
20617 #include <$ac_header>
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   ac_header_compiler=yes
20637 else
20638   echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20640
20641         ac_header_compiler=no
20642 fi
20643
20644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20646 echo "${ECHO_T}$ac_header_compiler" >&6; }
20647
20648 # Is the header present?
20649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20651 cat >conftest.$ac_ext <<_ACEOF
20652 /* confdefs.h.  */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h.  */
20657 #include <$ac_header>
20658 _ACEOF
20659 if { (ac_try="$ac_cpp conftest.$ac_ext"
20660 case "(($ac_try" in
20661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662   *) ac_try_echo=$ac_try;;
20663 esac
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20666   ac_status=$?
20667   grep -v '^ *+' conftest.er1 >conftest.err
20668   rm -f conftest.er1
20669   cat conftest.err >&5
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); } >/dev/null && {
20672          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20673          test ! -s conftest.err
20674        }; then
20675   ac_header_preproc=yes
20676 else
20677   echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680   ac_header_preproc=no
20681 fi
20682
20683 rm -f conftest.err conftest.$ac_ext
20684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20685 echo "${ECHO_T}$ac_header_preproc" >&6; }
20686
20687 # So?  What about this header?
20688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20689   yes:no: )
20690     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20694     ac_header_preproc=yes
20695     ;;
20696   no:yes:* )
20697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20699     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20700 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20701     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20703     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20704 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20707     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20709
20710     ;;
20711 esac
20712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20715   echo $ECHO_N "(cached) $ECHO_C" >&6
20716 else
20717   eval "$as_ac_Header=\$ac_header_preproc"
20718 fi
20719 ac_res=`eval echo '${'$as_ac_Header'}'`
20720                { echo "$as_me:$LINENO: result: $ac_res" >&5
20721 echo "${ECHO_T}$ac_res" >&6; }
20722
20723 fi
20724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20725   cat >>confdefs.h <<_ACEOF
20726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20727 _ACEOF
20728
20729 fi
20730
20731 done
20732
20733     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20734 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20735   result=
20736   cat >conftest.$ac_ext <<_ACEOF
20737 /* confdefs.h.  */
20738 _ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h.  */
20742
20743 #include <limits.h>
20744 #if HAVE_STDINT_H
20745 #include <stdint.h>
20746 #endif
20747 #ifdef SIZE_MAX
20748 Found it
20749 #endif
20750
20751 _ACEOF
20752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20753   $EGREP "Found it" >/dev/null 2>&1; then
20754   result=yes
20755 fi
20756 rm -f conftest*
20757
20758   if test -z "$result"; then
20759                     if test "$cross_compiling" = yes; then
20760   # Depending upon the size, compute the lo and hi bounds.
20761 cat >conftest.$ac_ext <<_ACEOF
20762 /* confdefs.h.  */
20763 _ACEOF
20764 cat confdefs.h >>conftest.$ac_ext
20765 cat >>conftest.$ac_ext <<_ACEOF
20766 /* end confdefs.h.  */
20767 #include <stddef.h>
20768 int
20769 main ()
20770 {
20771 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20772 test_array [0] = 0
20773
20774   ;
20775   return 0;
20776 }
20777 _ACEOF
20778 rm -f conftest.$ac_objext
20779 if { (ac_try="$ac_compile"
20780 case "(($ac_try" in
20781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782   *) ac_try_echo=$ac_try;;
20783 esac
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785   (eval "$ac_compile") 2>conftest.er1
20786   ac_status=$?
20787   grep -v '^ *+' conftest.er1 >conftest.err
20788   rm -f conftest.er1
20789   cat conftest.err >&5
20790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); } && {
20792          test -z "$ac_c_werror_flag" ||
20793          test ! -s conftest.err
20794        } && test -s conftest.$ac_objext; then
20795   ac_lo=0 ac_mid=0
20796   while :; do
20797     cat >conftest.$ac_ext <<_ACEOF
20798 /* confdefs.h.  */
20799 _ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h.  */
20803 #include <stddef.h>
20804 int
20805 main ()
20806 {
20807 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20808 test_array [0] = 0
20809
20810   ;
20811   return 0;
20812 }
20813 _ACEOF
20814 rm -f conftest.$ac_objext
20815 if { (ac_try="$ac_compile"
20816 case "(($ac_try" in
20817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818   *) ac_try_echo=$ac_try;;
20819 esac
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821   (eval "$ac_compile") 2>conftest.er1
20822   ac_status=$?
20823   grep -v '^ *+' conftest.er1 >conftest.err
20824   rm -f conftest.er1
20825   cat conftest.err >&5
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); } && {
20828          test -z "$ac_c_werror_flag" ||
20829          test ! -s conftest.err
20830        } && test -s conftest.$ac_objext; then
20831   ac_hi=$ac_mid; break
20832 else
20833   echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20835
20836         ac_lo=`expr $ac_mid + 1`
20837                         if test $ac_lo -le $ac_mid; then
20838                           ac_lo= ac_hi=
20839                           break
20840                         fi
20841                         ac_mid=`expr 2 '*' $ac_mid + 1`
20842 fi
20843
20844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20845   done
20846 else
20847   echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20849
20850         cat >conftest.$ac_ext <<_ACEOF
20851 /* confdefs.h.  */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h.  */
20856 #include <stddef.h>
20857 int
20858 main ()
20859 {
20860 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20861 test_array [0] = 0
20862
20863   ;
20864   return 0;
20865 }
20866 _ACEOF
20867 rm -f conftest.$ac_objext
20868 if { (ac_try="$ac_compile"
20869 case "(($ac_try" in
20870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871   *) ac_try_echo=$ac_try;;
20872 esac
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874   (eval "$ac_compile") 2>conftest.er1
20875   ac_status=$?
20876   grep -v '^ *+' conftest.er1 >conftest.err
20877   rm -f conftest.er1
20878   cat conftest.err >&5
20879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880   (exit $ac_status); } && {
20881          test -z "$ac_c_werror_flag" ||
20882          test ! -s conftest.err
20883        } && test -s conftest.$ac_objext; then
20884   ac_hi=-1 ac_mid=-1
20885   while :; do
20886     cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h.  */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h.  */
20892 #include <stddef.h>
20893 int
20894 main ()
20895 {
20896 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20897 test_array [0] = 0
20898
20899   ;
20900   return 0;
20901 }
20902 _ACEOF
20903 rm -f conftest.$ac_objext
20904 if { (ac_try="$ac_compile"
20905 case "(($ac_try" in
20906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907   *) ac_try_echo=$ac_try;;
20908 esac
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910   (eval "$ac_compile") 2>conftest.er1
20911   ac_status=$?
20912   grep -v '^ *+' conftest.er1 >conftest.err
20913   rm -f conftest.er1
20914   cat conftest.err >&5
20915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916   (exit $ac_status); } && {
20917          test -z "$ac_c_werror_flag" ||
20918          test ! -s conftest.err
20919        } && test -s conftest.$ac_objext; then
20920   ac_lo=$ac_mid; break
20921 else
20922   echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20924
20925         ac_hi=`expr '(' $ac_mid ')' - 1`
20926                         if test $ac_mid -le $ac_hi; then
20927                           ac_lo= ac_hi=
20928                           break
20929                         fi
20930                         ac_mid=`expr 2 '*' $ac_mid`
20931 fi
20932
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20934   done
20935 else
20936   echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20938
20939         ac_lo= ac_hi=
20940 fi
20941
20942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20943 fi
20944
20945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946 # Binary search between lo and hi bounds.
20947 while test "x$ac_lo" != "x$ac_hi"; do
20948   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20949   cat >conftest.$ac_ext <<_ACEOF
20950 /* confdefs.h.  */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h.  */
20955 #include <stddef.h>
20956 int
20957 main ()
20958 {
20959 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20960 test_array [0] = 0
20961
20962   ;
20963   return 0;
20964 }
20965 _ACEOF
20966 rm -f conftest.$ac_objext
20967 if { (ac_try="$ac_compile"
20968 case "(($ac_try" in
20969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970   *) ac_try_echo=$ac_try;;
20971 esac
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973   (eval "$ac_compile") 2>conftest.er1
20974   ac_status=$?
20975   grep -v '^ *+' conftest.er1 >conftest.err
20976   rm -f conftest.er1
20977   cat conftest.err >&5
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); } && {
20980          test -z "$ac_c_werror_flag" ||
20981          test ! -s conftest.err
20982        } && test -s conftest.$ac_objext; then
20983   ac_hi=$ac_mid
20984 else
20985   echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20987
20988         ac_lo=`expr '(' $ac_mid ')' + 1`
20989 fi
20990
20991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20992 done
20993 case $ac_lo in
20994 ?*) res_hi=$ac_lo;;
20995 '') result=? ;;
20996 esac
20997 else
20998   cat >conftest.$ac_ext <<_ACEOF
20999 /* confdefs.h.  */
21000 _ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h.  */
21004 #include <stddef.h>
21005 static long int longval () { return ~(size_t)0 / 10; }
21006 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21007 #include <stdio.h>
21008 #include <stdlib.h>
21009 int
21010 main ()
21011 {
21012
21013   FILE *f = fopen ("conftest.val", "w");
21014   if (! f)
21015     return 1;
21016   if ((~(size_t)0 / 10) < 0)
21017     {
21018       long int i = longval ();
21019       if (i != (~(size_t)0 / 10))
21020         return 1;
21021       fprintf (f, "%ld\n", i);
21022     }
21023   else
21024     {
21025       unsigned long int i = ulongval ();
21026       if (i != (~(size_t)0 / 10))
21027         return 1;
21028       fprintf (f, "%lu\n", i);
21029     }
21030   return ferror (f) || fclose (f) != 0;
21031
21032   ;
21033   return 0;
21034 }
21035 _ACEOF
21036 rm -f conftest$ac_exeext
21037 if { (ac_try="$ac_link"
21038 case "(($ac_try" in
21039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040   *) ac_try_echo=$ac_try;;
21041 esac
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043   (eval "$ac_link") 2>&5
21044   ac_status=$?
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21047   { (case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_try") 2>&5
21053   ac_status=$?
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); }; }; then
21056   res_hi=`cat conftest.val`
21057 else
21058   echo "$as_me: program exited with status $ac_status" >&5
21059 echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21061
21062 ( exit $ac_status )
21063 result=?
21064 fi
21065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21066 fi
21067 rm -f conftest.val
21068
21069     if test "$cross_compiling" = yes; then
21070   # Depending upon the size, compute the lo and hi bounds.
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077 #include <stddef.h>
21078 int
21079 main ()
21080 {
21081 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21082 test_array [0] = 0
21083
21084   ;
21085   return 0;
21086 }
21087 _ACEOF
21088 rm -f conftest.$ac_objext
21089 if { (ac_try="$ac_compile"
21090 case "(($ac_try" in
21091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092   *) ac_try_echo=$ac_try;;
21093 esac
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095   (eval "$ac_compile") 2>conftest.er1
21096   ac_status=$?
21097   grep -v '^ *+' conftest.er1 >conftest.err
21098   rm -f conftest.er1
21099   cat conftest.err >&5
21100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); } && {
21102          test -z "$ac_c_werror_flag" ||
21103          test ! -s conftest.err
21104        } && test -s conftest.$ac_objext; then
21105   ac_lo=0 ac_mid=0
21106   while :; do
21107     cat >conftest.$ac_ext <<_ACEOF
21108 /* confdefs.h.  */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h.  */
21113 #include <stddef.h>
21114 int
21115 main ()
21116 {
21117 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21118 test_array [0] = 0
21119
21120   ;
21121   return 0;
21122 }
21123 _ACEOF
21124 rm -f conftest.$ac_objext
21125 if { (ac_try="$ac_compile"
21126 case "(($ac_try" in
21127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128   *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131   (eval "$ac_compile") 2>conftest.er1
21132   ac_status=$?
21133   grep -v '^ *+' conftest.er1 >conftest.err
21134   rm -f conftest.er1
21135   cat conftest.err >&5
21136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137   (exit $ac_status); } && {
21138          test -z "$ac_c_werror_flag" ||
21139          test ! -s conftest.err
21140        } && test -s conftest.$ac_objext; then
21141   ac_hi=$ac_mid; break
21142 else
21143   echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21145
21146         ac_lo=`expr $ac_mid + 1`
21147                         if test $ac_lo -le $ac_mid; then
21148                           ac_lo= ac_hi=
21149                           break
21150                         fi
21151                         ac_mid=`expr 2 '*' $ac_mid + 1`
21152 fi
21153
21154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21155   done
21156 else
21157   echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21159
21160         cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h.  */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h.  */
21166 #include <stddef.h>
21167 int
21168 main ()
21169 {
21170 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21171 test_array [0] = 0
21172
21173   ;
21174   return 0;
21175 }
21176 _ACEOF
21177 rm -f conftest.$ac_objext
21178 if { (ac_try="$ac_compile"
21179 case "(($ac_try" in
21180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181   *) ac_try_echo=$ac_try;;
21182 esac
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184   (eval "$ac_compile") 2>conftest.er1
21185   ac_status=$?
21186   grep -v '^ *+' conftest.er1 >conftest.err
21187   rm -f conftest.er1
21188   cat conftest.err >&5
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); } && {
21191          test -z "$ac_c_werror_flag" ||
21192          test ! -s conftest.err
21193        } && test -s conftest.$ac_objext; then
21194   ac_hi=-1 ac_mid=-1
21195   while :; do
21196     cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h.  */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h.  */
21202 #include <stddef.h>
21203 int
21204 main ()
21205 {
21206 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21207 test_array [0] = 0
21208
21209   ;
21210   return 0;
21211 }
21212 _ACEOF
21213 rm -f conftest.$ac_objext
21214 if { (ac_try="$ac_compile"
21215 case "(($ac_try" in
21216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217   *) ac_try_echo=$ac_try;;
21218 esac
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220   (eval "$ac_compile") 2>conftest.er1
21221   ac_status=$?
21222   grep -v '^ *+' conftest.er1 >conftest.err
21223   rm -f conftest.er1
21224   cat conftest.err >&5
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); } && {
21227          test -z "$ac_c_werror_flag" ||
21228          test ! -s conftest.err
21229        } && test -s conftest.$ac_objext; then
21230   ac_lo=$ac_mid; break
21231 else
21232   echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21234
21235         ac_hi=`expr '(' $ac_mid ')' - 1`
21236                         if test $ac_mid -le $ac_hi; then
21237                           ac_lo= ac_hi=
21238                           break
21239                         fi
21240                         ac_mid=`expr 2 '*' $ac_mid`
21241 fi
21242
21243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21244   done
21245 else
21246   echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21248
21249         ac_lo= ac_hi=
21250 fi
21251
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 fi
21254
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21256 # Binary search between lo and hi bounds.
21257 while test "x$ac_lo" != "x$ac_hi"; do
21258   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21259   cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h.  */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h.  */
21265 #include <stddef.h>
21266 int
21267 main ()
21268 {
21269 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21270 test_array [0] = 0
21271
21272   ;
21273   return 0;
21274 }
21275 _ACEOF
21276 rm -f conftest.$ac_objext
21277 if { (ac_try="$ac_compile"
21278 case "(($ac_try" in
21279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280   *) ac_try_echo=$ac_try;;
21281 esac
21282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283   (eval "$ac_compile") 2>conftest.er1
21284   ac_status=$?
21285   grep -v '^ *+' conftest.er1 >conftest.err
21286   rm -f conftest.er1
21287   cat conftest.err >&5
21288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289   (exit $ac_status); } && {
21290          test -z "$ac_c_werror_flag" ||
21291          test ! -s conftest.err
21292        } && test -s conftest.$ac_objext; then
21293   ac_hi=$ac_mid
21294 else
21295   echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21297
21298         ac_lo=`expr '(' $ac_mid ')' + 1`
21299 fi
21300
21301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21302 done
21303 case $ac_lo in
21304 ?*) res_lo=$ac_lo;;
21305 '') result=? ;;
21306 esac
21307 else
21308   cat >conftest.$ac_ext <<_ACEOF
21309 /* confdefs.h.  */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h.  */
21314 #include <stddef.h>
21315 static long int longval () { return ~(size_t)0 % 10; }
21316 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21317 #include <stdio.h>
21318 #include <stdlib.h>
21319 int
21320 main ()
21321 {
21322
21323   FILE *f = fopen ("conftest.val", "w");
21324   if (! f)
21325     return 1;
21326   if ((~(size_t)0 % 10) < 0)
21327     {
21328       long int i = longval ();
21329       if (i != (~(size_t)0 % 10))
21330         return 1;
21331       fprintf (f, "%ld\n", i);
21332     }
21333   else
21334     {
21335       unsigned long int i = ulongval ();
21336       if (i != (~(size_t)0 % 10))
21337         return 1;
21338       fprintf (f, "%lu\n", i);
21339     }
21340   return ferror (f) || fclose (f) != 0;
21341
21342   ;
21343   return 0;
21344 }
21345 _ACEOF
21346 rm -f conftest$ac_exeext
21347 if { (ac_try="$ac_link"
21348 case "(($ac_try" in
21349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350   *) ac_try_echo=$ac_try;;
21351 esac
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353   (eval "$ac_link") 2>&5
21354   ac_status=$?
21355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21357   { (case "(($ac_try" in
21358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359   *) ac_try_echo=$ac_try;;
21360 esac
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362   (eval "$ac_try") 2>&5
21363   ac_status=$?
21364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365   (exit $ac_status); }; }; then
21366   res_lo=`cat conftest.val`
21367 else
21368   echo "$as_me: program exited with status $ac_status" >&5
21369 echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21371
21372 ( exit $ac_status )
21373 result=?
21374 fi
21375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21376 fi
21377 rm -f conftest.val
21378
21379     if test "$cross_compiling" = yes; then
21380   # Depending upon the size, compute the lo and hi bounds.
21381 cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h.  */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h.  */
21387 #include <stddef.h>
21388 int
21389 main ()
21390 {
21391 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21392 test_array [0] = 0
21393
21394   ;
21395   return 0;
21396 }
21397 _ACEOF
21398 rm -f conftest.$ac_objext
21399 if { (ac_try="$ac_compile"
21400 case "(($ac_try" in
21401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402   *) ac_try_echo=$ac_try;;
21403 esac
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405   (eval "$ac_compile") 2>conftest.er1
21406   ac_status=$?
21407   grep -v '^ *+' conftest.er1 >conftest.err
21408   rm -f conftest.er1
21409   cat conftest.err >&5
21410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); } && {
21412          test -z "$ac_c_werror_flag" ||
21413          test ! -s conftest.err
21414        } && test -s conftest.$ac_objext; then
21415   ac_lo=0 ac_mid=0
21416   while :; do
21417     cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h.  */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h.  */
21423 #include <stddef.h>
21424 int
21425 main ()
21426 {
21427 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21428 test_array [0] = 0
21429
21430   ;
21431   return 0;
21432 }
21433 _ACEOF
21434 rm -f conftest.$ac_objext
21435 if { (ac_try="$ac_compile"
21436 case "(($ac_try" in
21437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438   *) ac_try_echo=$ac_try;;
21439 esac
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441   (eval "$ac_compile") 2>conftest.er1
21442   ac_status=$?
21443   grep -v '^ *+' conftest.er1 >conftest.err
21444   rm -f conftest.er1
21445   cat conftest.err >&5
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); } && {
21448          test -z "$ac_c_werror_flag" ||
21449          test ! -s conftest.err
21450        } && test -s conftest.$ac_objext; then
21451   ac_hi=$ac_mid; break
21452 else
21453   echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21455
21456         ac_lo=`expr $ac_mid + 1`
21457                         if test $ac_lo -le $ac_mid; then
21458                           ac_lo= ac_hi=
21459                           break
21460                         fi
21461                         ac_mid=`expr 2 '*' $ac_mid + 1`
21462 fi
21463
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465   done
21466 else
21467   echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21469
21470         cat >conftest.$ac_ext <<_ACEOF
21471 /* confdefs.h.  */
21472 _ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h.  */
21476 #include <stddef.h>
21477 int
21478 main ()
21479 {
21480 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21481 test_array [0] = 0
21482
21483   ;
21484   return 0;
21485 }
21486 _ACEOF
21487 rm -f conftest.$ac_objext
21488 if { (ac_try="$ac_compile"
21489 case "(($ac_try" in
21490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491   *) ac_try_echo=$ac_try;;
21492 esac
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494   (eval "$ac_compile") 2>conftest.er1
21495   ac_status=$?
21496   grep -v '^ *+' conftest.er1 >conftest.err
21497   rm -f conftest.er1
21498   cat conftest.err >&5
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); } && {
21501          test -z "$ac_c_werror_flag" ||
21502          test ! -s conftest.err
21503        } && test -s conftest.$ac_objext; then
21504   ac_hi=-1 ac_mid=-1
21505   while :; do
21506     cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512 #include <stddef.h>
21513 int
21514 main ()
21515 {
21516 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21517 test_array [0] = 0
21518
21519   ;
21520   return 0;
21521 }
21522 _ACEOF
21523 rm -f conftest.$ac_objext
21524 if { (ac_try="$ac_compile"
21525 case "(($ac_try" in
21526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527   *) ac_try_echo=$ac_try;;
21528 esac
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530   (eval "$ac_compile") 2>conftest.er1
21531   ac_status=$?
21532   grep -v '^ *+' conftest.er1 >conftest.err
21533   rm -f conftest.er1
21534   cat conftest.err >&5
21535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536   (exit $ac_status); } && {
21537          test -z "$ac_c_werror_flag" ||
21538          test ! -s conftest.err
21539        } && test -s conftest.$ac_objext; then
21540   ac_lo=$ac_mid; break
21541 else
21542   echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21544
21545         ac_hi=`expr '(' $ac_mid ')' - 1`
21546                         if test $ac_mid -le $ac_hi; then
21547                           ac_lo= ac_hi=
21548                           break
21549                         fi
21550                         ac_mid=`expr 2 '*' $ac_mid`
21551 fi
21552
21553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21554   done
21555 else
21556   echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21558
21559         ac_lo= ac_hi=
21560 fi
21561
21562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21563 fi
21564
21565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566 # Binary search between lo and hi bounds.
21567 while test "x$ac_lo" != "x$ac_hi"; do
21568   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21569   cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h.  */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h.  */
21575 #include <stddef.h>
21576 int
21577 main ()
21578 {
21579 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21580 test_array [0] = 0
21581
21582   ;
21583   return 0;
21584 }
21585 _ACEOF
21586 rm -f conftest.$ac_objext
21587 if { (ac_try="$ac_compile"
21588 case "(($ac_try" in
21589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590   *) ac_try_echo=$ac_try;;
21591 esac
21592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593   (eval "$ac_compile") 2>conftest.er1
21594   ac_status=$?
21595   grep -v '^ *+' conftest.er1 >conftest.err
21596   rm -f conftest.er1
21597   cat conftest.err >&5
21598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599   (exit $ac_status); } && {
21600          test -z "$ac_c_werror_flag" ||
21601          test ! -s conftest.err
21602        } && test -s conftest.$ac_objext; then
21603   ac_hi=$ac_mid
21604 else
21605   echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21607
21608         ac_lo=`expr '(' $ac_mid ')' + 1`
21609 fi
21610
21611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21612 done
21613 case $ac_lo in
21614 ?*) fits_in_uint=$ac_lo;;
21615 '') result=? ;;
21616 esac
21617 else
21618   cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624 #include <stddef.h>
21625 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21626 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21627 #include <stdio.h>
21628 #include <stdlib.h>
21629 int
21630 main ()
21631 {
21632
21633   FILE *f = fopen ("conftest.val", "w");
21634   if (! f)
21635     return 1;
21636   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21637     {
21638       long int i = longval ();
21639       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21640         return 1;
21641       fprintf (f, "%ld\n", i);
21642     }
21643   else
21644     {
21645       unsigned long int i = ulongval ();
21646       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21647         return 1;
21648       fprintf (f, "%lu\n", i);
21649     }
21650   return ferror (f) || fclose (f) != 0;
21651
21652   ;
21653   return 0;
21654 }
21655 _ACEOF
21656 rm -f conftest$ac_exeext
21657 if { (ac_try="$ac_link"
21658 case "(($ac_try" in
21659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660   *) ac_try_echo=$ac_try;;
21661 esac
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663   (eval "$ac_link") 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21667   { (case "(($ac_try" in
21668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669   *) ac_try_echo=$ac_try;;
21670 esac
21671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672   (eval "$ac_try") 2>&5
21673   ac_status=$?
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); }; }; then
21676   fits_in_uint=`cat conftest.val`
21677 else
21678   echo "$as_me: program exited with status $ac_status" >&5
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21681
21682 ( exit $ac_status )
21683 result=?
21684 fi
21685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21686 fi
21687 rm -f conftest.val
21688
21689     if test "$fits_in_uint" = 1; then
21690                   cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h.  */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h.  */
21696 #include <stddef.h>
21697         extern size_t foo;
21698         extern unsigned long foo;
21699
21700 int
21701 main ()
21702 {
21703
21704   ;
21705   return 0;
21706 }
21707 _ACEOF
21708 rm -f conftest.$ac_objext
21709 if { (ac_try="$ac_compile"
21710 case "(($ac_try" in
21711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712   *) ac_try_echo=$ac_try;;
21713 esac
21714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715   (eval "$ac_compile") 2>conftest.er1
21716   ac_status=$?
21717   grep -v '^ *+' conftest.er1 >conftest.err
21718   rm -f conftest.er1
21719   cat conftest.err >&5
21720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721   (exit $ac_status); } && {
21722          test -z "$ac_c_werror_flag" ||
21723          test ! -s conftest.err
21724        } && test -s conftest.$ac_objext; then
21725   fits_in_uint=0
21726 else
21727   echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21729
21730
21731 fi
21732
21733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21734     fi
21735     if test -z "$result"; then
21736       if test "$fits_in_uint" = 1; then
21737         result="$res_hi$res_lo"U
21738       else
21739         result="$res_hi$res_lo"UL
21740       fi
21741     else
21742             result='~(size_t)0'
21743     fi
21744   fi
21745   { echo "$as_me:$LINENO: result: $result" >&5
21746 echo "${ECHO_T}$result" >&6; }
21747   if test "$result" != yes; then
21748
21749 cat >>confdefs.h <<_ACEOF
21750 #define SIZE_MAX $result
21751 _ACEOF
21752
21753   fi
21754
21755
21756
21757
21758
21759 for ac_header in stdint.h
21760 do
21761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21763   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21766   echo $ECHO_N "(cached) $ECHO_C" >&6
21767 fi
21768 ac_res=`eval echo '${'$as_ac_Header'}'`
21769                { echo "$as_me:$LINENO: result: $ac_res" >&5
21770 echo "${ECHO_T}$ac_res" >&6; }
21771 else
21772   # Is the header compilable?
21773 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21775 cat >conftest.$ac_ext <<_ACEOF
21776 /* confdefs.h.  */
21777 _ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h.  */
21781 $ac_includes_default
21782 #include <$ac_header>
21783 _ACEOF
21784 rm -f conftest.$ac_objext
21785 if { (ac_try="$ac_compile"
21786 case "(($ac_try" in
21787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788   *) ac_try_echo=$ac_try;;
21789 esac
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791   (eval "$ac_compile") 2>conftest.er1
21792   ac_status=$?
21793   grep -v '^ *+' conftest.er1 >conftest.err
21794   rm -f conftest.er1
21795   cat conftest.err >&5
21796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797   (exit $ac_status); } && {
21798          test -z "$ac_c_werror_flag" ||
21799          test ! -s conftest.err
21800        } && test -s conftest.$ac_objext; then
21801   ac_header_compiler=yes
21802 else
21803   echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21805
21806         ac_header_compiler=no
21807 fi
21808
21809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21811 echo "${ECHO_T}$ac_header_compiler" >&6; }
21812
21813 # Is the header present?
21814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21816 cat >conftest.$ac_ext <<_ACEOF
21817 /* confdefs.h.  */
21818 _ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h.  */
21822 #include <$ac_header>
21823 _ACEOF
21824 if { (ac_try="$ac_cpp conftest.$ac_ext"
21825 case "(($ac_try" in
21826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827   *) ac_try_echo=$ac_try;;
21828 esac
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21831   ac_status=$?
21832   grep -v '^ *+' conftest.er1 >conftest.err
21833   rm -f conftest.er1
21834   cat conftest.err >&5
21835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836   (exit $ac_status); } >/dev/null && {
21837          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21838          test ! -s conftest.err
21839        }; then
21840   ac_header_preproc=yes
21841 else
21842   echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21844
21845   ac_header_preproc=no
21846 fi
21847
21848 rm -f conftest.err conftest.$ac_ext
21849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21850 echo "${ECHO_T}$ac_header_preproc" >&6; }
21851
21852 # So?  What about this header?
21853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21854   yes:no: )
21855     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21859     ac_header_preproc=yes
21860     ;;
21861   no:yes:* )
21862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21864     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21865 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21866     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21868     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21869 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21872     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21874
21875     ;;
21876 esac
21877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21880   echo $ECHO_N "(cached) $ECHO_C" >&6
21881 else
21882   eval "$as_ac_Header=\$ac_header_preproc"
21883 fi
21884 ac_res=`eval echo '${'$as_ac_Header'}'`
21885                { echo "$as_me:$LINENO: result: $ac_res" >&5
21886 echo "${ECHO_T}$ac_res" >&6; }
21887
21888 fi
21889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21890   cat >>confdefs.h <<_ACEOF
21891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21892 _ACEOF
21893
21894 fi
21895
21896 done
21897
21898
21899
21900
21901
21902
21903
21904
21905   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21906 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21907 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21908   echo $ECHO_N "(cached) $ECHO_C" >&6
21909 else
21910   cat >conftest.$ac_ext <<_ACEOF
21911 /* confdefs.h.  */
21912 _ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h.  */
21916 $ac_includes_default
21917 typedef ptrdiff_t ac__type_new_;
21918 int
21919 main ()
21920 {
21921 if ((ac__type_new_ *) 0)
21922   return 0;
21923 if (sizeof (ac__type_new_))
21924   return 0;
21925   ;
21926   return 0;
21927 }
21928 _ACEOF
21929 rm -f conftest.$ac_objext
21930 if { (ac_try="$ac_compile"
21931 case "(($ac_try" in
21932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933   *) ac_try_echo=$ac_try;;
21934 esac
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936   (eval "$ac_compile") 2>conftest.er1
21937   ac_status=$?
21938   grep -v '^ *+' conftest.er1 >conftest.err
21939   rm -f conftest.er1
21940   cat conftest.err >&5
21941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942   (exit $ac_status); } && {
21943          test -z "$ac_c_werror_flag" ||
21944          test ! -s conftest.err
21945        } && test -s conftest.$ac_objext; then
21946   ac_cv_type_ptrdiff_t=yes
21947 else
21948   echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21950
21951         ac_cv_type_ptrdiff_t=no
21952 fi
21953
21954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21955 fi
21956 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21957 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21958 if test $ac_cv_type_ptrdiff_t = yes; then
21959   :
21960 else
21961
21962 cat >>confdefs.h <<\_ACEOF
21963 #define ptrdiff_t long
21964 _ACEOF
21965
21966
21967 fi
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21980 stdlib.h string.h unistd.h sys/param.h
21981 do
21982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21984   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21987   echo $ECHO_N "(cached) $ECHO_C" >&6
21988 fi
21989 ac_res=`eval echo '${'$as_ac_Header'}'`
21990                { echo "$as_me:$LINENO: result: $ac_res" >&5
21991 echo "${ECHO_T}$ac_res" >&6; }
21992 else
21993   # Is the header compilable?
21994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21996 cat >conftest.$ac_ext <<_ACEOF
21997 /* confdefs.h.  */
21998 _ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h.  */
22002 $ac_includes_default
22003 #include <$ac_header>
22004 _ACEOF
22005 rm -f conftest.$ac_objext
22006 if { (ac_try="$ac_compile"
22007 case "(($ac_try" in
22008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009   *) ac_try_echo=$ac_try;;
22010 esac
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012   (eval "$ac_compile") 2>conftest.er1
22013   ac_status=$?
22014   grep -v '^ *+' conftest.er1 >conftest.err
22015   rm -f conftest.er1
22016   cat conftest.err >&5
22017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018   (exit $ac_status); } && {
22019          test -z "$ac_c_werror_flag" ||
22020          test ! -s conftest.err
22021        } && test -s conftest.$ac_objext; then
22022   ac_header_compiler=yes
22023 else
22024   echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22026
22027         ac_header_compiler=no
22028 fi
22029
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22032 echo "${ECHO_T}$ac_header_compiler" >&6; }
22033
22034 # Is the header present?
22035 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22037 cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h.  */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h.  */
22043 #include <$ac_header>
22044 _ACEOF
22045 if { (ac_try="$ac_cpp conftest.$ac_ext"
22046 case "(($ac_try" in
22047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048   *) ac_try_echo=$ac_try;;
22049 esac
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22052   ac_status=$?
22053   grep -v '^ *+' conftest.er1 >conftest.err
22054   rm -f conftest.er1
22055   cat conftest.err >&5
22056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057   (exit $ac_status); } >/dev/null && {
22058          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22059          test ! -s conftest.err
22060        }; then
22061   ac_header_preproc=yes
22062 else
22063   echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22065
22066   ac_header_preproc=no
22067 fi
22068
22069 rm -f conftest.err conftest.$ac_ext
22070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22071 echo "${ECHO_T}$ac_header_preproc" >&6; }
22072
22073 # So?  What about this header?
22074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22075   yes:no: )
22076     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22080     ac_header_preproc=yes
22081     ;;
22082   no:yes:* )
22083     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22085     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22086 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22087     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22089     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22090 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22093     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22095
22096     ;;
22097 esac
22098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22101   echo $ECHO_N "(cached) $ECHO_C" >&6
22102 else
22103   eval "$as_ac_Header=\$ac_header_preproc"
22104 fi
22105 ac_res=`eval echo '${'$as_ac_Header'}'`
22106                { echo "$as_me:$LINENO: result: $ac_res" >&5
22107 echo "${ECHO_T}$ac_res" >&6; }
22108
22109 fi
22110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22111   cat >>confdefs.h <<_ACEOF
22112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22113 _ACEOF
22114
22115 fi
22116
22117 done
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22143 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22144 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22145 __fsetlocking
22146 do
22147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22151   echo $ECHO_N "(cached) $ECHO_C" >&6
22152 else
22153   cat >conftest.$ac_ext <<_ACEOF
22154 /* confdefs.h.  */
22155 _ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h.  */
22159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22161 #define $ac_func innocuous_$ac_func
22162
22163 /* System header to define __stub macros and hopefully few prototypes,
22164     which can conflict with char $ac_func (); below.
22165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22166     <limits.h> exists even on freestanding compilers.  */
22167
22168 #ifdef __STDC__
22169 # include <limits.h>
22170 #else
22171 # include <assert.h>
22172 #endif
22173
22174 #undef $ac_func
22175
22176 /* Override any GCC internal prototype to avoid an error.
22177    Use char because int might match the return type of a GCC
22178    builtin and then its argument prototype would still apply.  */
22179 #ifdef __cplusplus
22180 extern "C"
22181 #endif
22182 char $ac_func ();
22183 /* The GNU C library defines this for functions which it implements
22184     to always fail with ENOSYS.  Some functions are actually named
22185     something starting with __ and the normal name is an alias.  */
22186 #if defined __stub_$ac_func || defined __stub___$ac_func
22187 choke me
22188 #endif
22189
22190 int
22191 main ()
22192 {
22193 return $ac_func ();
22194   ;
22195   return 0;
22196 }
22197 _ACEOF
22198 rm -f conftest.$ac_objext conftest$ac_exeext
22199 if { (ac_try="$ac_link"
22200 case "(($ac_try" in
22201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202   *) ac_try_echo=$ac_try;;
22203 esac
22204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22205   (eval "$ac_link") 2>conftest.er1
22206   ac_status=$?
22207   grep -v '^ *+' conftest.er1 >conftest.err
22208   rm -f conftest.er1
22209   cat conftest.err >&5
22210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211   (exit $ac_status); } && {
22212          test -z "$ac_c_werror_flag" ||
22213          test ! -s conftest.err
22214        } && test -s conftest$ac_exeext &&
22215        $as_test_x conftest$ac_exeext; then
22216   eval "$as_ac_var=yes"
22217 else
22218   echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22220
22221         eval "$as_ac_var=no"
22222 fi
22223
22224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22225       conftest$ac_exeext conftest.$ac_ext
22226 fi
22227 ac_res=`eval echo '${'$as_ac_var'}'`
22228                { echo "$as_me:$LINENO: result: $ac_res" >&5
22229 echo "${ECHO_T}$ac_res" >&6; }
22230 if test `eval echo '${'$as_ac_var'}'` = yes; then
22231   cat >>confdefs.h <<_ACEOF
22232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22233 _ACEOF
22234
22235 fi
22236 done
22237
22238
22239
22240   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22241 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22242 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22243   echo $ECHO_N "(cached) $ECHO_C" >&6
22244 else
22245   cat >conftest.$ac_ext <<_ACEOF
22246 /* confdefs.h.  */
22247 _ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h.  */
22251 #include <stdio.h>
22252 int
22253 main ()
22254 {
22255
22256 #ifndef _snprintf
22257   char *p = (char *) _snprintf;
22258 #endif
22259
22260   ;
22261   return 0;
22262 }
22263 _ACEOF
22264 rm -f conftest.$ac_objext
22265 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
22281   ac_cv_have_decl__snprintf=yes
22282 else
22283   echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22285
22286         ac_cv_have_decl__snprintf=no
22287 fi
22288
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22290 fi
22291 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22292 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22293   if test $ac_cv_have_decl__snprintf = yes; then
22294     gt_value=1
22295   else
22296     gt_value=0
22297   fi
22298
22299 cat >>confdefs.h <<_ACEOF
22300 #define HAVE_DECL__SNPRINTF $gt_value
22301 _ACEOF
22302
22303
22304
22305   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22306 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22307 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22308   echo $ECHO_N "(cached) $ECHO_C" >&6
22309 else
22310   cat >conftest.$ac_ext <<_ACEOF
22311 /* confdefs.h.  */
22312 _ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h.  */
22316 #include <stdio.h>
22317 int
22318 main ()
22319 {
22320
22321 #ifndef _snwprintf
22322   char *p = (char *) _snwprintf;
22323 #endif
22324
22325   ;
22326   return 0;
22327 }
22328 _ACEOF
22329 rm -f conftest.$ac_objext
22330 if { (ac_try="$ac_compile"
22331 case "(($ac_try" in
22332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333   *) ac_try_echo=$ac_try;;
22334 esac
22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336   (eval "$ac_compile") 2>conftest.er1
22337   ac_status=$?
22338   grep -v '^ *+' conftest.er1 >conftest.err
22339   rm -f conftest.er1
22340   cat conftest.err >&5
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); } && {
22343          test -z "$ac_c_werror_flag" ||
22344          test ! -s conftest.err
22345        } && test -s conftest.$ac_objext; then
22346   ac_cv_have_decl__snwprintf=yes
22347 else
22348   echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22350
22351         ac_cv_have_decl__snwprintf=no
22352 fi
22353
22354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22355 fi
22356 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22357 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22358   if test $ac_cv_have_decl__snwprintf = yes; then
22359     gt_value=1
22360   else
22361     gt_value=0
22362   fi
22363
22364 cat >>confdefs.h <<_ACEOF
22365 #define HAVE_DECL__SNWPRINTF $gt_value
22366 _ACEOF
22367
22368
22369
22370
22371   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22372 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22373 if test "${ac_cv_have_decl_feof_unlocked+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 feof_unlocked
22388   char *p = (char *) feof_unlocked;
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_feof_unlocked=yes
22413 else
22414   echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22416
22417         ac_cv_have_decl_feof_unlocked=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_feof_unlocked" >&5
22423 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22424   if test $ac_cv_have_decl_feof_unlocked = yes; then
22425     gt_value=1
22426   else
22427     gt_value=0
22428   fi
22429
22430 cat >>confdefs.h <<_ACEOF
22431 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22432 _ACEOF
22433
22434
22435
22436   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22437 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22438 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22439   echo $ECHO_N "(cached) $ECHO_C" >&6
22440 else
22441   cat >conftest.$ac_ext <<_ACEOF
22442 /* confdefs.h.  */
22443 _ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h.  */
22447 #include <stdio.h>
22448 int
22449 main ()
22450 {
22451
22452 #ifndef fgets_unlocked
22453   char *p = (char *) fgets_unlocked;
22454 #endif
22455
22456   ;
22457   return 0;
22458 }
22459 _ACEOF
22460 rm -f conftest.$ac_objext
22461 if { (ac_try="$ac_compile"
22462 case "(($ac_try" in
22463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464   *) ac_try_echo=$ac_try;;
22465 esac
22466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22467   (eval "$ac_compile") 2>conftest.er1
22468   ac_status=$?
22469   grep -v '^ *+' conftest.er1 >conftest.err
22470   rm -f conftest.er1
22471   cat conftest.err >&5
22472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473   (exit $ac_status); } && {
22474          test -z "$ac_c_werror_flag" ||
22475          test ! -s conftest.err
22476        } && test -s conftest.$ac_objext; then
22477   ac_cv_have_decl_fgets_unlocked=yes
22478 else
22479   echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.$ac_ext >&5
22481
22482         ac_cv_have_decl_fgets_unlocked=no
22483 fi
22484
22485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22486 fi
22487 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22488 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22489   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22490     gt_value=1
22491   else
22492     gt_value=0
22493   fi
22494
22495 cat >>confdefs.h <<_ACEOF
22496 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22497 _ACEOF
22498
22499
22500
22501   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22502 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22503 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22504   echo $ECHO_N "(cached) $ECHO_C" >&6
22505 else
22506   cat >conftest.$ac_ext <<_ACEOF
22507 /* confdefs.h.  */
22508 _ACEOF
22509 cat confdefs.h >>conftest.$ac_ext
22510 cat >>conftest.$ac_ext <<_ACEOF
22511 /* end confdefs.h.  */
22512 #include <stdio.h>
22513 int
22514 main ()
22515 {
22516
22517 #ifndef getc_unlocked
22518   char *p = (char *) getc_unlocked;
22519 #endif
22520
22521   ;
22522   return 0;
22523 }
22524 _ACEOF
22525 rm -f conftest.$ac_objext
22526 if { (ac_try="$ac_compile"
22527 case "(($ac_try" in
22528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529   *) ac_try_echo=$ac_try;;
22530 esac
22531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532   (eval "$ac_compile") 2>conftest.er1
22533   ac_status=$?
22534   grep -v '^ *+' conftest.er1 >conftest.err
22535   rm -f conftest.er1
22536   cat conftest.err >&5
22537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538   (exit $ac_status); } && {
22539          test -z "$ac_c_werror_flag" ||
22540          test ! -s conftest.err
22541        } && test -s conftest.$ac_objext; then
22542   ac_cv_have_decl_getc_unlocked=yes
22543 else
22544   echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22546
22547         ac_cv_have_decl_getc_unlocked=no
22548 fi
22549
22550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551 fi
22552 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22553 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22554   if test $ac_cv_have_decl_getc_unlocked = yes; then
22555     gt_value=1
22556   else
22557     gt_value=0
22558   fi
22559
22560 cat >>confdefs.h <<_ACEOF
22561 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22562 _ACEOF
22563
22564
22565
22566   case $gt_cv_func_printf_posix in
22567     *yes) HAVE_POSIX_PRINTF=1 ;;
22568     *) HAVE_POSIX_PRINTF=0 ;;
22569   esac
22570
22571   if test "$ac_cv_func_asprintf" = yes; then
22572     HAVE_ASPRINTF=1
22573   else
22574     HAVE_ASPRINTF=0
22575   fi
22576
22577   if test "$ac_cv_func_snprintf" = yes; then
22578     HAVE_SNPRINTF=1
22579   else
22580     HAVE_SNPRINTF=0
22581   fi
22582
22583   if test "$ac_cv_func_wprintf" = yes; then
22584     HAVE_WPRINTF=1
22585   else
22586     HAVE_WPRINTF=0
22587   fi
22588
22589
22590
22591
22592
22593
22594
22595           am_save_CPPFLAGS="$CPPFLAGS"
22596
22597   for element in $INCICONV; do
22598     haveit=
22599     for x in $CPPFLAGS; do
22600
22601   acl_save_prefix="$prefix"
22602   prefix="$acl_final_prefix"
22603   acl_save_exec_prefix="$exec_prefix"
22604   exec_prefix="$acl_final_exec_prefix"
22605   eval x=\"$x\"
22606   exec_prefix="$acl_save_exec_prefix"
22607   prefix="$acl_save_prefix"
22608
22609       if test "X$x" = "X$element"; then
22610         haveit=yes
22611         break
22612       fi
22613     done
22614     if test -z "$haveit"; then
22615       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22616     fi
22617   done
22618
22619
22620   { echo "$as_me:$LINENO: checking for iconv" >&5
22621 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22622 if test "${am_cv_func_iconv+set}" = set; then
22623   echo $ECHO_N "(cached) $ECHO_C" >&6
22624 else
22625
22626     am_cv_func_iconv="no, consider installing GNU libiconv"
22627     am_cv_lib_iconv=no
22628     cat >conftest.$ac_ext <<_ACEOF
22629 /* confdefs.h.  */
22630 _ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h.  */
22634 #include <stdlib.h>
22635 #include <iconv.h>
22636 int
22637 main ()
22638 {
22639 iconv_t cd = iconv_open("","");
22640        iconv(cd,NULL,NULL,NULL,NULL);
22641        iconv_close(cd);
22642   ;
22643   return 0;
22644 }
22645 _ACEOF
22646 rm -f conftest.$ac_objext conftest$ac_exeext
22647 if { (ac_try="$ac_link"
22648 case "(($ac_try" in
22649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650   *) ac_try_echo=$ac_try;;
22651 esac
22652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653   (eval "$ac_link") 2>conftest.er1
22654   ac_status=$?
22655   grep -v '^ *+' conftest.er1 >conftest.err
22656   rm -f conftest.er1
22657   cat conftest.err >&5
22658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659   (exit $ac_status); } && {
22660          test -z "$ac_c_werror_flag" ||
22661          test ! -s conftest.err
22662        } && test -s conftest$ac_exeext &&
22663        $as_test_x conftest$ac_exeext; then
22664   am_cv_func_iconv=yes
22665 else
22666   echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22668
22669
22670 fi
22671
22672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22673       conftest$ac_exeext conftest.$ac_ext
22674     if test "$am_cv_func_iconv" != yes; then
22675       am_save_LIBS="$LIBS"
22676       LIBS="$LIBS $LIBICONV"
22677       cat >conftest.$ac_ext <<_ACEOF
22678 /* confdefs.h.  */
22679 _ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h.  */
22683 #include <stdlib.h>
22684 #include <iconv.h>
22685 int
22686 main ()
22687 {
22688 iconv_t cd = iconv_open("","");
22689          iconv(cd,NULL,NULL,NULL,NULL);
22690          iconv_close(cd);
22691   ;
22692   return 0;
22693 }
22694 _ACEOF
22695 rm -f conftest.$ac_objext conftest$ac_exeext
22696 if { (ac_try="$ac_link"
22697 case "(($ac_try" in
22698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699   *) ac_try_echo=$ac_try;;
22700 esac
22701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22702   (eval "$ac_link") 2>conftest.er1
22703   ac_status=$?
22704   grep -v '^ *+' conftest.er1 >conftest.err
22705   rm -f conftest.er1
22706   cat conftest.err >&5
22707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708   (exit $ac_status); } && {
22709          test -z "$ac_c_werror_flag" ||
22710          test ! -s conftest.err
22711        } && test -s conftest$ac_exeext &&
22712        $as_test_x conftest$ac_exeext; then
22713   am_cv_lib_iconv=yes
22714         am_cv_func_iconv=yes
22715 else
22716   echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22718
22719
22720 fi
22721
22722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22723       conftest$ac_exeext conftest.$ac_ext
22724       LIBS="$am_save_LIBS"
22725     fi
22726
22727 fi
22728 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22729 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22730   if test "$am_cv_func_iconv" = yes; then
22731
22732 cat >>confdefs.h <<\_ACEOF
22733 #define HAVE_ICONV 1
22734 _ACEOF
22735
22736   fi
22737   if test "$am_cv_lib_iconv" = yes; then
22738     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22739 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22740     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22741 echo "${ECHO_T}$LIBICONV" >&6; }
22742   else
22743             CPPFLAGS="$am_save_CPPFLAGS"
22744     LIBICONV=
22745     LTLIBICONV=
22746   fi
22747
22748
22749
22750   if test "$am_cv_func_iconv" = yes; then
22751     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22752 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22753     if test "${am_cv_proto_iconv+set}" = set; then
22754   echo $ECHO_N "(cached) $ECHO_C" >&6
22755 else
22756
22757       cat >conftest.$ac_ext <<_ACEOF
22758 /* confdefs.h.  */
22759 _ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h.  */
22763
22764 #include <stdlib.h>
22765 #include <iconv.h>
22766 extern
22767 #ifdef __cplusplus
22768 "C"
22769 #endif
22770 #if defined(__STDC__) || defined(__cplusplus)
22771 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22772 #else
22773 size_t iconv();
22774 #endif
22775
22776 int
22777 main ()
22778 {
22779
22780   ;
22781   return 0;
22782 }
22783 _ACEOF
22784 rm -f conftest.$ac_objext
22785 if { (ac_try="$ac_compile"
22786 case "(($ac_try" in
22787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788   *) ac_try_echo=$ac_try;;
22789 esac
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791   (eval "$ac_compile") 2>conftest.er1
22792   ac_status=$?
22793   grep -v '^ *+' conftest.er1 >conftest.err
22794   rm -f conftest.er1
22795   cat conftest.err >&5
22796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797   (exit $ac_status); } && {
22798          test -z "$ac_c_werror_flag" ||
22799          test ! -s conftest.err
22800        } && test -s conftest.$ac_objext; then
22801   am_cv_proto_iconv_arg1=""
22802 else
22803   echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22805
22806         am_cv_proto_iconv_arg1="const"
22807 fi
22808
22809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810       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);"
22811 fi
22812
22813     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22814     { echo "$as_me:$LINENO: result: ${ac_t:-
22815          }$am_cv_proto_iconv" >&5
22816 echo "${ECHO_T}${ac_t:-
22817          }$am_cv_proto_iconv" >&6; }
22818
22819 cat >>confdefs.h <<_ACEOF
22820 #define ICONV_CONST $am_cv_proto_iconv_arg1
22821 _ACEOF
22822
22823   fi
22824
22825
22826   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22827 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22828 if test "${am_cv_langinfo_codeset+set}" = set; then
22829   echo $ECHO_N "(cached) $ECHO_C" >&6
22830 else
22831   cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h.  */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h.  */
22837 #include <langinfo.h>
22838 int
22839 main ()
22840 {
22841 char* cs = nl_langinfo(CODESET);
22842   ;
22843   return 0;
22844 }
22845 _ACEOF
22846 rm -f conftest.$ac_objext conftest$ac_exeext
22847 if { (ac_try="$ac_link"
22848 case "(($ac_try" in
22849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850   *) ac_try_echo=$ac_try;;
22851 esac
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853   (eval "$ac_link") 2>conftest.er1
22854   ac_status=$?
22855   grep -v '^ *+' conftest.er1 >conftest.err
22856   rm -f conftest.er1
22857   cat conftest.err >&5
22858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); } && {
22860          test -z "$ac_c_werror_flag" ||
22861          test ! -s conftest.err
22862        } && test -s conftest$ac_exeext &&
22863        $as_test_x conftest$ac_exeext; then
22864   am_cv_langinfo_codeset=yes
22865 else
22866   echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22868
22869         am_cv_langinfo_codeset=no
22870 fi
22871
22872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22873       conftest$ac_exeext conftest.$ac_ext
22874
22875 fi
22876 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22877 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22878   if test $am_cv_langinfo_codeset = yes; then
22879
22880 cat >>confdefs.h <<\_ACEOF
22881 #define HAVE_LANGINFO_CODESET 1
22882 _ACEOF
22883
22884   fi
22885
22886   if test $ac_cv_header_locale_h = yes; then
22887
22888   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22889 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22890 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22891   echo $ECHO_N "(cached) $ECHO_C" >&6
22892 else
22893   cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h.  */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h.  */
22899 #include <locale.h>
22900 int
22901 main ()
22902 {
22903 return LC_MESSAGES
22904   ;
22905   return 0;
22906 }
22907 _ACEOF
22908 rm -f conftest.$ac_objext conftest$ac_exeext
22909 if { (ac_try="$ac_link"
22910 case "(($ac_try" in
22911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22912   *) ac_try_echo=$ac_try;;
22913 esac
22914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22915   (eval "$ac_link") 2>conftest.er1
22916   ac_status=$?
22917   grep -v '^ *+' conftest.er1 >conftest.err
22918   rm -f conftest.er1
22919   cat conftest.err >&5
22920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921   (exit $ac_status); } && {
22922          test -z "$ac_c_werror_flag" ||
22923          test ! -s conftest.err
22924        } && test -s conftest$ac_exeext &&
22925        $as_test_x conftest$ac_exeext; then
22926   gt_cv_val_LC_MESSAGES=yes
22927 else
22928   echo "$as_me: failed program was:" >&5
22929 sed 's/^/| /' conftest.$ac_ext >&5
22930
22931         gt_cv_val_LC_MESSAGES=no
22932 fi
22933
22934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22935       conftest$ac_exeext conftest.$ac_ext
22936 fi
22937 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22938 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22939   if test $gt_cv_val_LC_MESSAGES = yes; then
22940
22941 cat >>confdefs.h <<\_ACEOF
22942 #define HAVE_LC_MESSAGES 1
22943 _ACEOF
22944
22945   fi
22946
22947   fi
22948
22949   if test -n "$INTL_MACOSX_LIBS"; then
22950     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22951   fi
22952
22953                       for ac_prog in bison
22954 do
22955   # Extract the first word of "$ac_prog", so it can be a program name with args.
22956 set dummy $ac_prog; ac_word=$2
22957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22959 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22960   echo $ECHO_N "(cached) $ECHO_C" >&6
22961 else
22962   if test -n "$INTLBISON"; then
22963   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22964 else
22965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22966 for as_dir in $PATH
22967 do
22968   IFS=$as_save_IFS
22969   test -z "$as_dir" && as_dir=.
22970   for ac_exec_ext in '' $ac_executable_extensions; do
22971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22972     ac_cv_prog_INTLBISON="$ac_prog"
22973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22974     break 2
22975   fi
22976 done
22977 done
22978 IFS=$as_save_IFS
22979
22980 fi
22981 fi
22982 INTLBISON=$ac_cv_prog_INTLBISON
22983 if test -n "$INTLBISON"; then
22984   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22985 echo "${ECHO_T}$INTLBISON" >&6; }
22986 else
22987   { echo "$as_me:$LINENO: result: no" >&5
22988 echo "${ECHO_T}no" >&6; }
22989 fi
22990
22991
22992   test -n "$INTLBISON" && break
22993 done
22994
22995   if test -z "$INTLBISON"; then
22996     ac_verc_fail=yes
22997   else
22998         { echo "$as_me:$LINENO: checking version of bison" >&5
22999 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23000     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23001     case $ac_prog_version in
23002       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23003       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23004          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23005       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23006     esac
23007     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23008 echo "${ECHO_T}$ac_prog_version" >&6; }
23009   fi
23010   if test $ac_verc_fail = yes; then
23011     INTLBISON=:
23012   fi
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23030 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23031 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23032   echo $ECHO_N "(cached) $ECHO_C" >&6
23033 else
23034   gt_save_CPPFLAGS="$CPPFLAGS"
23035      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23036      gt_save_LIBS="$LIBS"
23037      LIBS="$LIBS -framework CoreFoundation"
23038      cat >conftest.$ac_ext <<_ACEOF
23039 /* confdefs.h.  */
23040 _ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h.  */
23044 #include <CFPreferences.h>
23045 int
23046 main ()
23047 {
23048 CFPreferencesCopyAppValue(NULL, NULL)
23049   ;
23050   return 0;
23051 }
23052 _ACEOF
23053 rm -f conftest.$ac_objext conftest$ac_exeext
23054 if { (ac_try="$ac_link"
23055 case "(($ac_try" in
23056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23057   *) ac_try_echo=$ac_try;;
23058 esac
23059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23060   (eval "$ac_link") 2>conftest.er1
23061   ac_status=$?
23062   grep -v '^ *+' conftest.er1 >conftest.err
23063   rm -f conftest.er1
23064   cat conftest.err >&5
23065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); } && {
23067          test -z "$ac_c_werror_flag" ||
23068          test ! -s conftest.err
23069        } && test -s conftest$ac_exeext &&
23070        $as_test_x conftest$ac_exeext; then
23071   gt_cv_func_CFPreferencesCopyAppValue=yes
23072 else
23073   echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23075
23076         gt_cv_func_CFPreferencesCopyAppValue=no
23077 fi
23078
23079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23080       conftest$ac_exeext conftest.$ac_ext
23081      CPPFLAGS="$gt_save_CPPFLAGS"
23082      LIBS="$gt_save_LIBS"
23083 fi
23084 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23085 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23086   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23087
23088 cat >>confdefs.h <<\_ACEOF
23089 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23090 _ACEOF
23091
23092   fi
23093     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23094 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23095 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23096   echo $ECHO_N "(cached) $ECHO_C" >&6
23097 else
23098   gt_save_CPPFLAGS="$CPPFLAGS"
23099      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23100      gt_save_LIBS="$LIBS"
23101      LIBS="$LIBS -framework CoreFoundation"
23102      cat >conftest.$ac_ext <<_ACEOF
23103 /* confdefs.h.  */
23104 _ACEOF
23105 cat confdefs.h >>conftest.$ac_ext
23106 cat >>conftest.$ac_ext <<_ACEOF
23107 /* end confdefs.h.  */
23108 #include <CFLocale.h>
23109 int
23110 main ()
23111 {
23112 CFLocaleCopyCurrent();
23113   ;
23114   return 0;
23115 }
23116 _ACEOF
23117 rm -f conftest.$ac_objext conftest$ac_exeext
23118 if { (ac_try="$ac_link"
23119 case "(($ac_try" in
23120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121   *) ac_try_echo=$ac_try;;
23122 esac
23123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23124   (eval "$ac_link") 2>conftest.er1
23125   ac_status=$?
23126   grep -v '^ *+' conftest.er1 >conftest.err
23127   rm -f conftest.er1
23128   cat conftest.err >&5
23129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130   (exit $ac_status); } && {
23131          test -z "$ac_c_werror_flag" ||
23132          test ! -s conftest.err
23133        } && test -s conftest$ac_exeext &&
23134        $as_test_x conftest$ac_exeext; then
23135   gt_cv_func_CFLocaleCopyCurrent=yes
23136 else
23137   echo "$as_me: failed program was:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23139
23140         gt_cv_func_CFLocaleCopyCurrent=no
23141 fi
23142
23143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23144       conftest$ac_exeext conftest.$ac_ext
23145      CPPFLAGS="$gt_save_CPPFLAGS"
23146      LIBS="$gt_save_LIBS"
23147 fi
23148 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23149 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23150   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23151
23152 cat >>confdefs.h <<\_ACEOF
23153 #define HAVE_CFLOCALECOPYCURRENT 1
23154 _ACEOF
23155
23156   fi
23157   INTL_MACOSX_LIBS=
23158   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23159     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23160   fi
23161
23162
23163
23164
23165   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23166 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23167     # Check whether --enable-nls was given.
23168 if test "${enable_nls+set}" = set; then
23169   enableval=$enable_nls; USE_NLS=$enableval
23170 else
23171   USE_NLS=yes
23172 fi
23173
23174   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23175 echo "${ECHO_T}$USE_NLS" >&6; }
23176
23177
23178
23179
23180     BUILD_INCLUDED_LIBINTL=no
23181     USE_INCLUDED_LIBINTL=no
23182
23183   LIBINTL=
23184   LTLIBINTL=
23185   POSUB=
23186
23187     if test "$USE_NLS" = "yes"; then
23188     gt_use_preinstalled_gnugettext=no
23189
23190       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23191 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23192
23193 # Check whether --with-included-gettext was given.
23194 if test "${with_included_gettext+set}" = set; then
23195   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23196 else
23197   nls_cv_force_use_gnu_gettext=no
23198 fi
23199
23200       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23201 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23202
23203       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23204       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23205
23206
23207
23208
23209
23210
23211         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23212 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23213 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23214   echo $ECHO_N "(cached) $ECHO_C" >&6
23215 else
23216   cat >conftest.$ac_ext <<_ACEOF
23217 /* confdefs.h.  */
23218 _ACEOF
23219 cat confdefs.h >>conftest.$ac_ext
23220 cat >>conftest.$ac_ext <<_ACEOF
23221 /* end confdefs.h.  */
23222 #include <libintl.h>
23223 extern int _nl_msg_cat_cntr;
23224 extern int *_nl_domain_bindings;
23225 int
23226 main ()
23227 {
23228 bindtextdomain ("", "");
23229 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23230   ;
23231   return 0;
23232 }
23233 _ACEOF
23234 rm -f conftest.$ac_objext conftest$ac_exeext
23235 if { (ac_try="$ac_link"
23236 case "(($ac_try" in
23237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238   *) ac_try_echo=$ac_try;;
23239 esac
23240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23241   (eval "$ac_link") 2>conftest.er1
23242   ac_status=$?
23243   grep -v '^ *+' conftest.er1 >conftest.err
23244   rm -f conftest.er1
23245   cat conftest.err >&5
23246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247   (exit $ac_status); } && {
23248          test -z "$ac_c_werror_flag" ||
23249          test ! -s conftest.err
23250        } && test -s conftest$ac_exeext &&
23251        $as_test_x conftest$ac_exeext; then
23252   gt_cv_func_gnugettext1_libc=yes
23253 else
23254   echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23256
23257         gt_cv_func_gnugettext1_libc=no
23258 fi
23259
23260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23261       conftest$ac_exeext conftest.$ac_ext
23262 fi
23263 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23264 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23265
23266         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23267
23268
23269
23270     use_additional=yes
23271
23272   acl_save_prefix="$prefix"
23273   prefix="$acl_final_prefix"
23274   acl_save_exec_prefix="$exec_prefix"
23275   exec_prefix="$acl_final_exec_prefix"
23276
23277     eval additional_includedir=\"$includedir\"
23278     eval additional_libdir=\"$libdir\"
23279
23280   exec_prefix="$acl_save_exec_prefix"
23281   prefix="$acl_save_prefix"
23282
23283
23284 # Check whether --with-libintl-prefix was given.
23285 if test "${with_libintl_prefix+set}" = set; then
23286   withval=$with_libintl_prefix;
23287     if test "X$withval" = "Xno"; then
23288       use_additional=no
23289     else
23290       if test "X$withval" = "X"; then
23291
23292   acl_save_prefix="$prefix"
23293   prefix="$acl_final_prefix"
23294   acl_save_exec_prefix="$exec_prefix"
23295   exec_prefix="$acl_final_exec_prefix"
23296
23297           eval additional_includedir=\"$includedir\"
23298           eval additional_libdir=\"$libdir\"
23299
23300   exec_prefix="$acl_save_exec_prefix"
23301   prefix="$acl_save_prefix"
23302
23303       else
23304         additional_includedir="$withval/include"
23305         additional_libdir="$withval/lib"
23306       fi
23307     fi
23308
23309 fi
23310
23311       LIBINTL=
23312   LTLIBINTL=
23313   INCINTL=
23314   rpathdirs=
23315   ltrpathdirs=
23316   names_already_handled=
23317   names_next_round='intl '
23318   while test -n "$names_next_round"; do
23319     names_this_round="$names_next_round"
23320     names_next_round=
23321     for name in $names_this_round; do
23322       already_handled=
23323       for n in $names_already_handled; do
23324         if test "$n" = "$name"; then
23325           already_handled=yes
23326           break
23327         fi
23328       done
23329       if test -z "$already_handled"; then
23330         names_already_handled="$names_already_handled $name"
23331                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23332         eval value=\"\$HAVE_LIB$uppername\"
23333         if test -n "$value"; then
23334           if test "$value" = yes; then
23335             eval value=\"\$LIB$uppername\"
23336             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23337             eval value=\"\$LTLIB$uppername\"
23338             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23339           else
23340                                     :
23341           fi
23342         else
23343                               found_dir=
23344           found_la=
23345           found_so=
23346           found_a=
23347           if test $use_additional = yes; then
23348             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23349               found_dir="$additional_libdir"
23350               found_so="$additional_libdir/lib$name.$shlibext"
23351               if test -f "$additional_libdir/lib$name.la"; then
23352                 found_la="$additional_libdir/lib$name.la"
23353               fi
23354             else
23355               if test -f "$additional_libdir/lib$name.$libext"; then
23356                 found_dir="$additional_libdir"
23357                 found_a="$additional_libdir/lib$name.$libext"
23358                 if test -f "$additional_libdir/lib$name.la"; then
23359                   found_la="$additional_libdir/lib$name.la"
23360                 fi
23361               fi
23362             fi
23363           fi
23364           if test "X$found_dir" = "X"; then
23365             for x in $LDFLAGS $LTLIBINTL; do
23366
23367   acl_save_prefix="$prefix"
23368   prefix="$acl_final_prefix"
23369   acl_save_exec_prefix="$exec_prefix"
23370   exec_prefix="$acl_final_exec_prefix"
23371   eval x=\"$x\"
23372   exec_prefix="$acl_save_exec_prefix"
23373   prefix="$acl_save_prefix"
23374
23375               case "$x" in
23376                 -L*)
23377                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23378                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23379                     found_dir="$dir"
23380                     found_so="$dir/lib$name.$shlibext"
23381                     if test -f "$dir/lib$name.la"; then
23382                       found_la="$dir/lib$name.la"
23383                     fi
23384                   else
23385                     if test -f "$dir/lib$name.$libext"; then
23386                       found_dir="$dir"
23387                       found_a="$dir/lib$name.$libext"
23388                       if test -f "$dir/lib$name.la"; then
23389                         found_la="$dir/lib$name.la"
23390                       fi
23391                     fi
23392                   fi
23393                   ;;
23394               esac
23395               if test "X$found_dir" != "X"; then
23396                 break
23397               fi
23398             done
23399           fi
23400           if test "X$found_dir" != "X"; then
23401                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23402             if test "X$found_so" != "X"; then
23403                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23404                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23405               else
23406                                                                                 haveit=
23407                 for x in $ltrpathdirs; do
23408                   if test "X$x" = "X$found_dir"; then
23409                     haveit=yes
23410                     break
23411                   fi
23412                 done
23413                 if test -z "$haveit"; then
23414                   ltrpathdirs="$ltrpathdirs $found_dir"
23415                 fi
23416                                 if test "$hardcode_direct" = yes; then
23417                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23418                 else
23419                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23420                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23421                                                             haveit=
23422                     for x in $rpathdirs; do
23423                       if test "X$x" = "X$found_dir"; then
23424                         haveit=yes
23425                         break
23426                       fi
23427                     done
23428                     if test -z "$haveit"; then
23429                       rpathdirs="$rpathdirs $found_dir"
23430                     fi
23431                   else
23432                                                                                 haveit=
23433                     for x in $LDFLAGS $LIBINTL; do
23434
23435   acl_save_prefix="$prefix"
23436   prefix="$acl_final_prefix"
23437   acl_save_exec_prefix="$exec_prefix"
23438   exec_prefix="$acl_final_exec_prefix"
23439   eval x=\"$x\"
23440   exec_prefix="$acl_save_exec_prefix"
23441   prefix="$acl_save_prefix"
23442
23443                       if test "X$x" = "X-L$found_dir"; then
23444                         haveit=yes
23445                         break
23446                       fi
23447                     done
23448                     if test -z "$haveit"; then
23449                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23450                     fi
23451                     if test "$hardcode_minus_L" != no; then
23452                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23453                     else
23454                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23455                     fi
23456                   fi
23457                 fi
23458               fi
23459             else
23460               if test "X$found_a" != "X"; then
23461                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23462               else
23463                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23464               fi
23465             fi
23466                         additional_includedir=
23467             case "$found_dir" in
23468               */lib | */lib/)
23469                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23470                 additional_includedir="$basedir/include"
23471                 ;;
23472             esac
23473             if test "X$additional_includedir" != "X"; then
23474                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23475                 haveit=
23476                 if test "X$additional_includedir" = "X/usr/local/include"; then
23477                   if test -n "$GCC"; then
23478                     case $host_os in
23479                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23480                     esac
23481                   fi
23482                 fi
23483                 if test -z "$haveit"; then
23484                   for x in $CPPFLAGS $INCINTL; do
23485
23486   acl_save_prefix="$prefix"
23487   prefix="$acl_final_prefix"
23488   acl_save_exec_prefix="$exec_prefix"
23489   exec_prefix="$acl_final_exec_prefix"
23490   eval x=\"$x\"
23491   exec_prefix="$acl_save_exec_prefix"
23492   prefix="$acl_save_prefix"
23493
23494                     if test "X$x" = "X-I$additional_includedir"; then
23495                       haveit=yes
23496                       break
23497                     fi
23498                   done
23499                   if test -z "$haveit"; then
23500                     if test -d "$additional_includedir"; then
23501                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23502                     fi
23503                   fi
23504                 fi
23505               fi
23506             fi
23507                         if test -n "$found_la"; then
23508                                                         save_libdir="$libdir"
23509               case "$found_la" in
23510                 */* | *\\*) . "$found_la" ;;
23511                 *) . "./$found_la" ;;
23512               esac
23513               libdir="$save_libdir"
23514                             for dep in $dependency_libs; do
23515                 case "$dep" in
23516                   -L*)
23517                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23518                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23519                       haveit=
23520                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23521                         if test -n "$GCC"; then
23522                           case $host_os in
23523                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23524                           esac
23525                         fi
23526                       fi
23527                       if test -z "$haveit"; then
23528                         haveit=
23529                         for x in $LDFLAGS $LIBINTL; do
23530
23531   acl_save_prefix="$prefix"
23532   prefix="$acl_final_prefix"
23533   acl_save_exec_prefix="$exec_prefix"
23534   exec_prefix="$acl_final_exec_prefix"
23535   eval x=\"$x\"
23536   exec_prefix="$acl_save_exec_prefix"
23537   prefix="$acl_save_prefix"
23538
23539                           if test "X$x" = "X-L$additional_libdir"; then
23540                             haveit=yes
23541                             break
23542                           fi
23543                         done
23544                         if test -z "$haveit"; then
23545                           if test -d "$additional_libdir"; then
23546                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23547                           fi
23548                         fi
23549                         haveit=
23550                         for x in $LDFLAGS $LTLIBINTL; 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-L$additional_libdir"; then
23561                             haveit=yes
23562                             break
23563                           fi
23564                         done
23565                         if test -z "$haveit"; then
23566                           if test -d "$additional_libdir"; then
23567                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23568                           fi
23569                         fi
23570                       fi
23571                     fi
23572                     ;;
23573                   -R*)
23574                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23575                     if test "$enable_rpath" != no; then
23576                                                                   haveit=
23577                       for x in $rpathdirs; do
23578                         if test "X$x" = "X$dir"; then
23579                           haveit=yes
23580                           break
23581                         fi
23582                       done
23583                       if test -z "$haveit"; then
23584                         rpathdirs="$rpathdirs $dir"
23585                       fi
23586                                                                   haveit=
23587                       for x in $ltrpathdirs; do
23588                         if test "X$x" = "X$dir"; then
23589                           haveit=yes
23590                           break
23591                         fi
23592                       done
23593                       if test -z "$haveit"; then
23594                         ltrpathdirs="$ltrpathdirs $dir"
23595                       fi
23596                     fi
23597                     ;;
23598                   -l*)
23599                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23600                     ;;
23601                   *.la)
23602                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23603                     ;;
23604                   *)
23605                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23606                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23607                     ;;
23608                 esac
23609               done
23610             fi
23611           else
23612                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23613             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23614           fi
23615         fi
23616       fi
23617     done
23618   done
23619   if test "X$rpathdirs" != "X"; then
23620     if test -n "$hardcode_libdir_separator"; then
23621                         alldirs=
23622       for found_dir in $rpathdirs; do
23623         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23624       done
23625             acl_save_libdir="$libdir"
23626       libdir="$alldirs"
23627       eval flag=\"$hardcode_libdir_flag_spec\"
23628       libdir="$acl_save_libdir"
23629       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23630     else
23631             for found_dir in $rpathdirs; do
23632         acl_save_libdir="$libdir"
23633         libdir="$found_dir"
23634         eval flag=\"$hardcode_libdir_flag_spec\"
23635         libdir="$acl_save_libdir"
23636         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23637       done
23638     fi
23639   fi
23640   if test "X$ltrpathdirs" != "X"; then
23641             for found_dir in $ltrpathdirs; do
23642       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23643     done
23644   fi
23645
23646           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23647 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23648 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23649   echo $ECHO_N "(cached) $ECHO_C" >&6
23650 else
23651   gt_save_CPPFLAGS="$CPPFLAGS"
23652             CPPFLAGS="$CPPFLAGS $INCINTL"
23653             gt_save_LIBS="$LIBS"
23654             LIBS="$LIBS $LIBINTL"
23655                         cat >conftest.$ac_ext <<_ACEOF
23656 /* confdefs.h.  */
23657 _ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h.  */
23661 #include <libintl.h>
23662 extern int _nl_msg_cat_cntr;
23663 extern
23664 #ifdef __cplusplus
23665 "C"
23666 #endif
23667 const char *_nl_expand_alias (const char *);
23668 int
23669 main ()
23670 {
23671 bindtextdomain ("", "");
23672 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23673   ;
23674   return 0;
23675 }
23676 _ACEOF
23677 rm -f conftest.$ac_objext conftest$ac_exeext
23678 if { (ac_try="$ac_link"
23679 case "(($ac_try" in
23680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681   *) ac_try_echo=$ac_try;;
23682 esac
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684   (eval "$ac_link") 2>conftest.er1
23685   ac_status=$?
23686   grep -v '^ *+' conftest.er1 >conftest.err
23687   rm -f conftest.er1
23688   cat conftest.err >&5
23689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690   (exit $ac_status); } && {
23691          test -z "$ac_c_werror_flag" ||
23692          test ! -s conftest.err
23693        } && test -s conftest$ac_exeext &&
23694        $as_test_x conftest$ac_exeext; then
23695   gt_cv_func_gnugettext1_libintl=yes
23696 else
23697   echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23699
23700         gt_cv_func_gnugettext1_libintl=no
23701 fi
23702
23703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23704       conftest$ac_exeext conftest.$ac_ext
23705                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23706               LIBS="$LIBS $LIBICONV"
23707               cat >conftest.$ac_ext <<_ACEOF
23708 /* confdefs.h.  */
23709 _ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h.  */
23713 #include <libintl.h>
23714 extern int _nl_msg_cat_cntr;
23715 extern
23716 #ifdef __cplusplus
23717 "C"
23718 #endif
23719 const char *_nl_expand_alias (const char *);
23720 int
23721 main ()
23722 {
23723 bindtextdomain ("", "");
23724 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23725   ;
23726   return 0;
23727 }
23728 _ACEOF
23729 rm -f conftest.$ac_objext conftest$ac_exeext
23730 if { (ac_try="$ac_link"
23731 case "(($ac_try" in
23732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733   *) ac_try_echo=$ac_try;;
23734 esac
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736   (eval "$ac_link") 2>conftest.er1
23737   ac_status=$?
23738   grep -v '^ *+' conftest.er1 >conftest.err
23739   rm -f conftest.er1
23740   cat conftest.err >&5
23741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742   (exit $ac_status); } && {
23743          test -z "$ac_c_werror_flag" ||
23744          test ! -s conftest.err
23745        } && test -s conftest$ac_exeext &&
23746        $as_test_x conftest$ac_exeext; then
23747   LIBINTL="$LIBINTL $LIBICONV"
23748                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23749                 gt_cv_func_gnugettext1_libintl=yes
23750
23751 else
23752   echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23754
23755
23756 fi
23757
23758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23759       conftest$ac_exeext conftest.$ac_ext
23760             fi
23761             CPPFLAGS="$gt_save_CPPFLAGS"
23762             LIBS="$gt_save_LIBS"
23763 fi
23764 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23765 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23766         fi
23767
23768                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23769            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23770                 && test "$PACKAGE" != gettext-runtime \
23771                 && test "$PACKAGE" != gettext-tools; }; then
23772           gt_use_preinstalled_gnugettext=yes
23773         else
23774                     LIBINTL=
23775           LTLIBINTL=
23776           INCINTL=
23777         fi
23778
23779
23780         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23781                               nls_cv_use_gnu_gettext=yes
23782         fi
23783       fi
23784
23785       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23786                 BUILD_INCLUDED_LIBINTL=yes
23787         USE_INCLUDED_LIBINTL=yes
23788         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23789         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23790         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23791       fi
23792
23793       CATOBJEXT=
23794       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23795          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23796                 CATOBJEXT=.gmo
23797       fi
23798
23799
23800     if test -n "$INTL_MACOSX_LIBS"; then
23801       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23802          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23803                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23804         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23805       fi
23806     fi
23807
23808     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23809        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23810
23811 cat >>confdefs.h <<\_ACEOF
23812 #define ENABLE_NLS 1
23813 _ACEOF
23814
23815     else
23816       USE_NLS=no
23817     fi
23818   fi
23819
23820   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23821 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23822   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23823 echo "${ECHO_T}$USE_NLS" >&6; }
23824   if test "$USE_NLS" = "yes"; then
23825     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23826 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23827     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23828       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23829         gt_source="external libintl"
23830       else
23831         gt_source="libc"
23832       fi
23833     else
23834       gt_source="included intl directory"
23835     fi
23836     { echo "$as_me:$LINENO: result: $gt_source" >&5
23837 echo "${ECHO_T}$gt_source" >&6; }
23838   fi
23839
23840   if test "$USE_NLS" = "yes"; then
23841
23842     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23843       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23844         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23845 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23846         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23847 echo "${ECHO_T}$LIBINTL" >&6; }
23848
23849   for element in $INCINTL; do
23850     haveit=
23851     for x in $CPPFLAGS; do
23852
23853   acl_save_prefix="$prefix"
23854   prefix="$acl_final_prefix"
23855   acl_save_exec_prefix="$exec_prefix"
23856   exec_prefix="$acl_final_exec_prefix"
23857   eval x=\"$x\"
23858   exec_prefix="$acl_save_exec_prefix"
23859   prefix="$acl_save_prefix"
23860
23861       if test "X$x" = "X$element"; then
23862         haveit=yes
23863         break
23864       fi
23865     done
23866     if test -z "$haveit"; then
23867       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23868     fi
23869   done
23870
23871       fi
23872
23873
23874 cat >>confdefs.h <<\_ACEOF
23875 #define HAVE_GETTEXT 1
23876 _ACEOF
23877
23878
23879 cat >>confdefs.h <<\_ACEOF
23880 #define HAVE_DCGETTEXT 1
23881 _ACEOF
23882
23883     fi
23884
23885         POSUB=po
23886   fi
23887
23888
23889             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23890       BUILD_INCLUDED_LIBINTL=yes
23891     fi
23892
23893
23894
23895
23896
23897         nls_cv_header_intl=
23898     nls_cv_header_libgt=
23899
23900         DATADIRNAME=share
23901
23902
23903         INSTOBJEXT=.mo
23904
23905
23906         GENCAT=gencat
23907
23908
23909         INTLOBJS=
23910     if test "$USE_INCLUDED_LIBINTL" = yes; then
23911       INTLOBJS="\$(GETTOBJS)"
23912     fi
23913
23914
23915         INTL_LIBTOOL_SUFFIX_PREFIX=
23916
23917
23918
23919     INTLLIBS="$LIBINTL"
23920
23921
23922
23923
23924
23925
23926 fi
23927
23928 support_mysql=no
23929 support_sqlite=no
23930 support_sqlite3=no
23931 support_postgresql=no
23932 support_dbi=no
23933 support_smartalloc=yes
23934 support_readline=yes
23935 support_conio=yes
23936 support_gnome=no
23937 support_bat=no
23938 support_wx_console=no
23939 support_tls=no
23940 support_crypto=no
23941 gnome_version=
23942 wx_version=
23943 support_static_tools=no
23944 support_static_fd=no
23945 support_static_sd=no
23946 support_static_dir=no
23947 support_static_cons=no
23948 support_python=no
23949 build_client_only=no
23950 build_dird=yes
23951 build_stored=yes
23952 cats=
23953 db_type=Internal
23954 DB_TYPE=bdb
23955
23956
23957 # Check whether --enable-gnome was given.
23958 if test "${enable_gnome+set}" = set; then
23959   enableval=$enable_gnome;
23960        if test x$enableval = xyes; then
23961           support_gnome=yes
23962        fi
23963
23964
23965 fi
23966
23967
23968 GNOME_DIR=
23969 if test x$support_gnome = xyes; then
23970    abc=`$PKGCONFIG --exists libgnomeui-2.0`
23971    pkg=$?
23972    if test $pkg = 0; then
23973       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23974       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23975       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23976       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23977
23978
23979
23980
23981       GNOME_DIR=src/gnome2-console
23982       gnome_version="Version 2.x"
23983    else
23984       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23985 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23986    { (exit 1); exit 1; }; }
23987    fi
23988 fi
23989
23990
23991 # Check whether --enable-bat was given.
23992 if test "${enable_bat+set}" = set; then
23993   enableval=$enable_bat;
23994        if test x$enableval = xyes; then
23995
23996 cat >>confdefs.h <<\_ACEOF
23997 #define HAVE_BAT 1
23998 _ACEOF
23999
24000           support_bat=yes
24001        fi
24002
24003
24004 fi
24005
24006
24007 BAT_DIR=
24008 if test x$support_bat = xyes; then
24009    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24010    pkg=$?
24011    if test $pkg = 0; then
24012       BAT_DIR=src/qt-console
24013    else
24014       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24015 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24016    { (exit 1); exit 1; }; }
24017    fi
24018 fi
24019
24020 got_qwt=no
24021 QWT_INC=
24022 QWT_LDFLAGS=
24023 QWT_LIB=
24024 QWT=
24025 no_qwt=no
24026 if test x$support_bat = xyes; then
24027    { echo "$as_me:$LINENO: checking for qwt support" >&5
24028 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24029
24030 # Check whether --with-qwt was given.
24031 if test "${with_qwt+set}" = set; then
24032   withval=$with_qwt;
24033           case "$with_qwt" in
24034           no)
24035              no_qwt=yes
24036              ;;
24037           yes|*)
24038              if test -f ${with_qwt}/include/qwt.h; then
24039                 QWT_INC="${with_qwt}/include"
24040                 QWT_LDFLAGS="-L${with_qwt}/lib"
24041                 QWT_LIB="-lqwt"
24042                 QWT="qwt"
24043              fi
24044              ;;
24045           esac
24046
24047
24048 fi
24049
24050
24051             if test $no_qwt = no; then
24052       if test x$QWT_INC = x; then
24053          for root in /usr /usr/local; do
24054             for ver in qwt qwt5 qwt-qt4; do
24055                if test -f ${root}/include/${ver}/qwt.h; then
24056                   QWT_INC="${root}/include/${ver}"
24057                   if test -d ${root}/lib64/; then
24058                      QWT_LDFLAGS="-L${root}/lib64"
24059                   elif test -d ${root}/lib/64/; then
24060                      QWT_LDFLAGS="-L${root}/64"
24061                   else
24062                      QWT_LDFLAGS="-L${root}/lib"
24063                   fi
24064                   QWT_LIB="-lqwt"
24065                   QWT="qwt"
24066                   got_qwt=yes
24067                   break;
24068                fi
24069             done
24070          done
24071       fi
24072    fi
24073    if test x$QWT_INC = x; then
24074       { echo "$as_me:$LINENO: result: no" >&5
24075 echo "${ECHO_T}no" >&6; }
24076    else
24077
24078 cat >>confdefs.h <<\_ACEOF
24079 #define HAVE_QWT 1
24080 _ACEOF
24081
24082       { echo "$as_me:$LINENO: result: yes" >&5
24083 echo "${ECHO_T}yes" >&6; }
24084    fi
24085 fi
24086
24087
24088
24089
24090
24091
24092
24093 # Check whether --enable-bwx-console was given.
24094 if test "${enable_bwx_console+set}" = set; then
24095   enableval=$enable_bwx_console;
24096        if test x$enableval = xyes; then
24097           support_wx_console=yes
24098        fi
24099
24100
24101 fi
24102
24103
24104 WX_DIR=
24105 if test x$support_wx_console = xyes; then
24106    abc=`$WXCONFIG $WXFLAGS --cppflags`
24107    pkg=$?
24108    if test $pkg = 0; then
24109       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24110       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24111       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24112
24113
24114
24115       WX_DIR=src/wx-console
24116    else
24117       echo " "
24118       echo "wx-config program not found. bwx-console disabled."
24119       echo " "
24120       support_wx_console=no
24121    fi
24122 fi
24123
24124
24125 # Check whether --enable-tray-monitor was given.
24126 if test "${enable_tray_monitor+set}" = set; then
24127   enableval=$enable_tray_monitor;
24128        if test x$enableval = xyes; then
24129           support_tray_monitor=yes
24130        fi
24131
24132
24133 fi
24134
24135
24136 TRAY_MONITOR_DIR=
24137 if test x$support_tray_monitor = xyes; then
24138    abc=`$PKGCONFIG --exists gtk+-2.0`
24139    pkg=$?
24140    if test $pkg = 0; then
24141       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24142       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24143
24144
24145       TRAY_MONITOR_DIR=src/tray-monitor
24146       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24147       pkg=$?
24148       if test $pkg = 0; then
24149
24150 cat >>confdefs.h <<\_ACEOF
24151 #define HAVE_GTK_2_4 1
24152 _ACEOF
24153
24154       fi
24155    fi
24156 fi
24157
24158
24159 # Check whether --enable-smartalloc was given.
24160 if test "${enable_smartalloc+set}" = set; then
24161   enableval=$enable_smartalloc;
24162        if test x$enableval = xno; then
24163           support_smartalloc=no
24164        fi
24165
24166
24167 fi
24168
24169
24170 if test x$support_smartalloc = xyes; then
24171
24172 cat >>confdefs.h <<\_ACEOF
24173 #define SMARTALLOC 1
24174 _ACEOF
24175
24176 fi
24177
24178 # Check whether --enable-static-tools was given.
24179 if test "${enable_static_tools+set}" = set; then
24180   enableval=$enable_static_tools;
24181        if test x$enableval = xyes; then
24182           support_static_tools=yes
24183        fi
24184
24185
24186 fi
24187
24188
24189 TTOOL_LDFLAGS=
24190 if test x$support_static_tools = xyes; then
24191    TTOOL_LDFLAGS="-static"
24192 fi
24193
24194
24195 # Check whether --enable-static-fd was given.
24196 if test "${enable_static_fd+set}" = set; then
24197   enableval=$enable_static_fd;
24198        if test x$enableval = xyes; then
24199           support_static_fd=yes
24200        fi
24201
24202
24203 fi
24204
24205
24206 STATIC_FD=
24207 if test x$support_static_fd = xyes; then
24208    STATIC_FD="static-bacula-fd"
24209 fi
24210
24211
24212 # Check whether --enable-static-sd was given.
24213 if test "${enable_static_sd+set}" = set; then
24214   enableval=$enable_static_sd;
24215        if test x$enableval = xyes; then
24216           support_static_sd=yes
24217        fi
24218
24219
24220 fi
24221
24222
24223 STATIC_SD=
24224 if test x$support_static_sd = xyes; then
24225    STATIC_SD="static-bacula-sd"
24226 fi
24227
24228
24229 # Check whether --enable-static-dir was given.
24230 if test "${enable_static_dir+set}" = set; then
24231   enableval=$enable_static_dir;
24232        if test x$enableval = xyes; then
24233           support_static_dir=yes
24234        fi
24235
24236
24237 fi
24238
24239
24240 STATIC_DIR=
24241 if test x$support_static_dir = xyes; then
24242    STATIC_DIR="static-bacula-dir"
24243 fi
24244
24245
24246 # Check whether --enable-static-cons was given.
24247 if test "${enable_static_cons+set}" = set; then
24248   enableval=$enable_static_cons;
24249        if test x$enableval = xyes; then
24250           support_static_cons=yes
24251        fi
24252
24253
24254 fi
24255
24256
24257 STATIC_CONS=
24258 STATIC_GNOME_CONS=
24259 STATIC_WX_CONS=
24260 if test x$support_static_cons = xyes; then
24261    STATIC_CONS="static-bconsole"
24262    STATIC_GNOME_CONS="static-bgnome-console"
24263    STATIC_WX_CONS="static-bwx-console"
24264 fi
24265
24266
24267
24268
24269 # Check whether --enable-client-only was given.
24270 if test "${enable_client_only+set}" = set; then
24271   enableval=$enable_client_only;
24272        if test x$enableval = xyes; then
24273           build_client_only=yes
24274           db_type=None
24275           DB_TYPE=none
24276        fi
24277
24278
24279 fi
24280
24281 if test x$build_client_only = xno; then
24282    ALL_DIRS="subdirs"
24283 else
24284    ALL_DIRS=""
24285 fi
24286
24287
24288 # Check whether --enable-build-dird was given.
24289 if test "${enable_build_dird+set}" = set; then
24290   enableval=$enable_build_dird;
24291        if test x$enableval = xno; then
24292           build_dird=no
24293        fi
24294
24295
24296 fi
24297
24298 if test x$build_dird = xyes; then
24299    DIRD_DIR="src/dird"
24300    DIR_TOOLS="DIRTOOLS"
24301 else
24302    DIRD_DIR=""
24303    DIR_TOOLS="NODIRTOOLS"
24304 fi
24305
24306
24307
24308 # Check whether --enable-build-stored was given.
24309 if test "${enable_build_stored+set}" = set; then
24310   enableval=$enable_build_stored;
24311       if test x$enableval = xno; then
24312          build_stored=no
24313       fi
24314
24315
24316 fi
24317
24318 if test x$build_stored = xyes; then
24319    STORED_DIR="src/stored"
24320 else
24321    STORED_DIR=""
24322 fi
24323
24324
24325 # Check whether --enable-conio was given.
24326 if test "${enable_conio+set}" = set; then
24327   enableval=$enable_conio;
24328        if test x$enableval = xno; then
24329           support_conio=no
24330        fi
24331
24332
24333 fi
24334
24335
24336
24337 support_ipv6=yes
24338 # Check whether --enable-ipv6 was given.
24339 if test "${enable_ipv6+set}" = set; then
24340   enableval=$enable_ipv6;
24341        if test x$enableval = xno; then
24342           support_ipv6=no
24343        fi
24344
24345
24346 fi
24347
24348
24349 if test x$support_ipv6 = xyes; then
24350     cat >conftest.$ac_ext <<_ACEOF
24351 /* confdefs.h.  */
24352 _ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h.  */
24356  #include <sys/types.h>
24357 #include <sys/socket.h>
24358 #include <netinet/in.h>
24359 int
24360 main ()
24361 {
24362 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24363   ;
24364   return 0;
24365 }
24366 _ACEOF
24367 rm -f conftest.$ac_objext conftest$ac_exeext
24368 if { (ac_try="$ac_link"
24369 case "(($ac_try" in
24370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371   *) ac_try_echo=$ac_try;;
24372 esac
24373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24374   (eval "$ac_link") 2>conftest.er1
24375   ac_status=$?
24376   grep -v '^ *+' conftest.er1 >conftest.err
24377   rm -f conftest.er1
24378   cat conftest.err >&5
24379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380   (exit $ac_status); } && {
24381          test -z "$ac_c_werror_flag" ||
24382          test ! -s conftest.err
24383        } && test -s conftest$ac_exeext &&
24384        $as_test_x conftest$ac_exeext; then
24385   support_ipv6=yes
24386 else
24387   echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24389
24390         support_ipv6=no
24391 fi
24392
24393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24394       conftest$ac_exeext conftest.$ac_ext
24395 fi
24396
24397 if test x$support_ipv6 = xyes; then
24398
24399 cat >>confdefs.h <<\_ACEOF
24400 #define HAVE_IPV6 1
24401 _ACEOF
24402
24403 fi
24404
24405 got_conio="no"
24406 if test x$support_conio = xyes; then
24407    if test "${ac_cv_header_termcap_h+set}" = set; then
24408   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24409 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24410 if test "${ac_cv_header_termcap_h+set}" = set; then
24411   echo $ECHO_N "(cached) $ECHO_C" >&6
24412 fi
24413 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24414 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24415 else
24416   # Is the header compilable?
24417 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24418 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24419 cat >conftest.$ac_ext <<_ACEOF
24420 /* confdefs.h.  */
24421 _ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h.  */
24425 $ac_includes_default
24426 #include <termcap.h>
24427 _ACEOF
24428 rm -f conftest.$ac_objext
24429 if { (ac_try="$ac_compile"
24430 case "(($ac_try" in
24431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24432   *) ac_try_echo=$ac_try;;
24433 esac
24434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24435   (eval "$ac_compile") 2>conftest.er1
24436   ac_status=$?
24437   grep -v '^ *+' conftest.er1 >conftest.err
24438   rm -f conftest.er1
24439   cat conftest.err >&5
24440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441   (exit $ac_status); } && {
24442          test -z "$ac_c_werror_flag" ||
24443          test ! -s conftest.err
24444        } && test -s conftest.$ac_objext; then
24445   ac_header_compiler=yes
24446 else
24447   echo "$as_me: failed program was:" >&5
24448 sed 's/^/| /' conftest.$ac_ext >&5
24449
24450         ac_header_compiler=no
24451 fi
24452
24453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24455 echo "${ECHO_T}$ac_header_compiler" >&6; }
24456
24457 # Is the header present?
24458 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24459 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24460 cat >conftest.$ac_ext <<_ACEOF
24461 /* confdefs.h.  */
24462 _ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h.  */
24466 #include <termcap.h>
24467 _ACEOF
24468 if { (ac_try="$ac_cpp conftest.$ac_ext"
24469 case "(($ac_try" in
24470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471   *) ac_try_echo=$ac_try;;
24472 esac
24473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24475   ac_status=$?
24476   grep -v '^ *+' conftest.er1 >conftest.err
24477   rm -f conftest.er1
24478   cat conftest.err >&5
24479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480   (exit $ac_status); } >/dev/null && {
24481          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24482          test ! -s conftest.err
24483        }; then
24484   ac_header_preproc=yes
24485 else
24486   echo "$as_me: failed program was:" >&5
24487 sed 's/^/| /' conftest.$ac_ext >&5
24488
24489   ac_header_preproc=no
24490 fi
24491
24492 rm -f conftest.err conftest.$ac_ext
24493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24494 echo "${ECHO_T}$ac_header_preproc" >&6; }
24495
24496 # So?  What about this header?
24497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24498   yes:no: )
24499     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24500 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24501     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24502 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24503     ac_header_preproc=yes
24504     ;;
24505   no:yes:* )
24506     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24507 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24508     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24509 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24510     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24511 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24512     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24513 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24514     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24515 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24516     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24517 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24518
24519     ;;
24520 esac
24521 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24522 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24523 if test "${ac_cv_header_termcap_h+set}" = set; then
24524   echo $ECHO_N "(cached) $ECHO_C" >&6
24525 else
24526   ac_cv_header_termcap_h=$ac_header_preproc
24527 fi
24528 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24529 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24530
24531 fi
24532 if test $ac_cv_header_termcap_h = yes; then
24533    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24534 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24535 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24536   echo $ECHO_N "(cached) $ECHO_C" >&6
24537 else
24538   ac_check_lib_save_LIBS=$LIBS
24539 LIBS="-ltermcap  $LIBS"
24540 cat >conftest.$ac_ext <<_ACEOF
24541 /* confdefs.h.  */
24542 _ACEOF
24543 cat confdefs.h >>conftest.$ac_ext
24544 cat >>conftest.$ac_ext <<_ACEOF
24545 /* end confdefs.h.  */
24546
24547 /* Override any GCC internal prototype to avoid an error.
24548    Use char because int might match the return type of a GCC
24549    builtin and then its argument prototype would still apply.  */
24550 #ifdef __cplusplus
24551 extern "C"
24552 #endif
24553 char tgetent ();
24554 int
24555 main ()
24556 {
24557 return tgetent ();
24558   ;
24559   return 0;
24560 }
24561 _ACEOF
24562 rm -f conftest.$ac_objext conftest$ac_exeext
24563 if { (ac_try="$ac_link"
24564 case "(($ac_try" in
24565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566   *) ac_try_echo=$ac_try;;
24567 esac
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569   (eval "$ac_link") 2>conftest.er1
24570   ac_status=$?
24571   grep -v '^ *+' conftest.er1 >conftest.err
24572   rm -f conftest.er1
24573   cat conftest.err >&5
24574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575   (exit $ac_status); } && {
24576          test -z "$ac_c_werror_flag" ||
24577          test ! -s conftest.err
24578        } && test -s conftest$ac_exeext &&
24579        $as_test_x conftest$ac_exeext; then
24580   ac_cv_lib_termcap_tgetent=yes
24581 else
24582   echo "$as_me: failed program was:" >&5
24583 sed 's/^/| /' conftest.$ac_ext >&5
24584
24585         ac_cv_lib_termcap_tgetent=no
24586 fi
24587
24588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24589       conftest$ac_exeext conftest.$ac_ext
24590 LIBS=$ac_check_lib_save_LIBS
24591 fi
24592 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24593 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24594 if test $ac_cv_lib_termcap_tgetent = yes; then
24595    CONS_LIBS="-ltermcap"
24596     CONS_OBJ="conio.o"
24597     CONS_SRC="conio.c"
24598     got_conio="yes"
24599     support_readline=no
24600
24601 cat >>confdefs.h <<\_ACEOF
24602 #define HAVE_CONIO 1
24603 _ACEOF
24604
24605
24606 else
24607    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24608 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24609 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24610   echo $ECHO_N "(cached) $ECHO_C" >&6
24611 else
24612   ac_check_lib_save_LIBS=$LIBS
24613 LIBS="-lncurses  $LIBS"
24614 cat >conftest.$ac_ext <<_ACEOF
24615 /* confdefs.h.  */
24616 _ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h.  */
24620
24621 /* Override any GCC internal prototype to avoid an error.
24622    Use char because int might match the return type of a GCC
24623    builtin and then its argument prototype would still apply.  */
24624 #ifdef __cplusplus
24625 extern "C"
24626 #endif
24627 char tgetent ();
24628 int
24629 main ()
24630 {
24631 return tgetent ();
24632   ;
24633   return 0;
24634 }
24635 _ACEOF
24636 rm -f conftest.$ac_objext conftest$ac_exeext
24637 if { (ac_try="$ac_link"
24638 case "(($ac_try" in
24639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24640   *) ac_try_echo=$ac_try;;
24641 esac
24642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24643   (eval "$ac_link") 2>conftest.er1
24644   ac_status=$?
24645   grep -v '^ *+' conftest.er1 >conftest.err
24646   rm -f conftest.er1
24647   cat conftest.err >&5
24648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649   (exit $ac_status); } && {
24650          test -z "$ac_c_werror_flag" ||
24651          test ! -s conftest.err
24652        } && test -s conftest$ac_exeext &&
24653        $as_test_x conftest$ac_exeext; then
24654   ac_cv_lib_ncurses_tgetent=yes
24655 else
24656   echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24658
24659         ac_cv_lib_ncurses_tgetent=no
24660 fi
24661
24662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24663       conftest$ac_exeext conftest.$ac_ext
24664 LIBS=$ac_check_lib_save_LIBS
24665 fi
24666 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24667 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24668 if test $ac_cv_lib_ncurses_tgetent = yes; then
24669    CONS_LIBS="-lncurses"
24670       CONS_OBJ="conio.o"
24671       CONS_SRC="conio.c"
24672       got_conio="yes"
24673       support_readline=no
24674
24675 cat >>confdefs.h <<\_ACEOF
24676 #define HAVE_CONIO 1
24677 _ACEOF
24678
24679
24680 fi
24681
24682
24683 fi
24684
24685
24686 else
24687
24688
24689 for ac_header in curses.h
24690 do
24691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24693   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24696   echo $ECHO_N "(cached) $ECHO_C" >&6
24697 fi
24698 ac_res=`eval echo '${'$as_ac_Header'}'`
24699                { echo "$as_me:$LINENO: result: $ac_res" >&5
24700 echo "${ECHO_T}$ac_res" >&6; }
24701 else
24702   # Is the header compilable?
24703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24705 cat >conftest.$ac_ext <<_ACEOF
24706 /* confdefs.h.  */
24707 _ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h.  */
24711 $ac_includes_default
24712 #include <$ac_header>
24713 _ACEOF
24714 rm -f conftest.$ac_objext
24715 if { (ac_try="$ac_compile"
24716 case "(($ac_try" in
24717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24718   *) ac_try_echo=$ac_try;;
24719 esac
24720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24721   (eval "$ac_compile") 2>conftest.er1
24722   ac_status=$?
24723   grep -v '^ *+' conftest.er1 >conftest.err
24724   rm -f conftest.er1
24725   cat conftest.err >&5
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); } && {
24728          test -z "$ac_c_werror_flag" ||
24729          test ! -s conftest.err
24730        } && test -s conftest.$ac_objext; then
24731   ac_header_compiler=yes
24732 else
24733   echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24735
24736         ac_header_compiler=no
24737 fi
24738
24739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24741 echo "${ECHO_T}$ac_header_compiler" >&6; }
24742
24743 # Is the header present?
24744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24746 cat >conftest.$ac_ext <<_ACEOF
24747 /* confdefs.h.  */
24748 _ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h.  */
24752 #include <$ac_header>
24753 _ACEOF
24754 if { (ac_try="$ac_cpp conftest.$ac_ext"
24755 case "(($ac_try" in
24756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757   *) ac_try_echo=$ac_try;;
24758 esac
24759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24760   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24761   ac_status=$?
24762   grep -v '^ *+' conftest.er1 >conftest.err
24763   rm -f conftest.er1
24764   cat conftest.err >&5
24765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766   (exit $ac_status); } >/dev/null && {
24767          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24768          test ! -s conftest.err
24769        }; then
24770   ac_header_preproc=yes
24771 else
24772   echo "$as_me: failed program was:" >&5
24773 sed 's/^/| /' conftest.$ac_ext >&5
24774
24775   ac_header_preproc=no
24776 fi
24777
24778 rm -f conftest.err conftest.$ac_ext
24779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24780 echo "${ECHO_T}$ac_header_preproc" >&6; }
24781
24782 # So?  What about this header?
24783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24784   yes:no: )
24785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24789     ac_header_preproc=yes
24790     ;;
24791   no:yes:* )
24792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24794     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24795 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24796     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24798     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24799 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24802     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24804
24805     ;;
24806 esac
24807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24810   echo $ECHO_N "(cached) $ECHO_C" >&6
24811 else
24812   eval "$as_ac_Header=\$ac_header_preproc"
24813 fi
24814 ac_res=`eval echo '${'$as_ac_Header'}'`
24815                { echo "$as_me:$LINENO: result: $ac_res" >&5
24816 echo "${ECHO_T}$ac_res" >&6; }
24817
24818 fi
24819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24820   cat >>confdefs.h <<_ACEOF
24821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24822 _ACEOF
24823
24824 fi
24825
24826 done
24827
24828     { echo "$as_me:$LINENO: checking for term.h" >&5
24829 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24830 if test "${ac_cv_header_term_h+set}" = set; then
24831   echo $ECHO_N "(cached) $ECHO_C" >&6
24832 else
24833   cat >conftest.$ac_ext <<_ACEOF
24834 /* confdefs.h.  */
24835 _ACEOF
24836 cat confdefs.h >>conftest.$ac_ext
24837 cat >>conftest.$ac_ext <<_ACEOF
24838 /* end confdefs.h.  */
24839 #if HAVE_CURSES_H
24840 #include <curses.h>
24841 #endif
24842
24843
24844 #include <term.h>
24845 _ACEOF
24846 rm -f conftest.$ac_objext
24847 if { (ac_try="$ac_compile"
24848 case "(($ac_try" in
24849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850   *) ac_try_echo=$ac_try;;
24851 esac
24852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24853   (eval "$ac_compile") 2>conftest.er1
24854   ac_status=$?
24855   grep -v '^ *+' conftest.er1 >conftest.err
24856   rm -f conftest.er1
24857   cat conftest.err >&5
24858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859   (exit $ac_status); } && {
24860          test -z "$ac_c_werror_flag" ||
24861          test ! -s conftest.err
24862        } && test -s conftest.$ac_objext; then
24863   ac_cv_header_term_h=yes
24864 else
24865   echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24867
24868         ac_cv_header_term_h=no
24869 fi
24870
24871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24872 fi
24873 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24874 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24875 if test $ac_cv_header_term_h = yes; then
24876    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24877 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24878 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24879   echo $ECHO_N "(cached) $ECHO_C" >&6
24880 else
24881   ac_check_lib_save_LIBS=$LIBS
24882 LIBS="-lcurses  $LIBS"
24883 cat >conftest.$ac_ext <<_ACEOF
24884 /* confdefs.h.  */
24885 _ACEOF
24886 cat confdefs.h >>conftest.$ac_ext
24887 cat >>conftest.$ac_ext <<_ACEOF
24888 /* end confdefs.h.  */
24889
24890 /* Override any GCC internal prototype to avoid an error.
24891    Use char because int might match the return type of a GCC
24892    builtin and then its argument prototype would still apply.  */
24893 #ifdef __cplusplus
24894 extern "C"
24895 #endif
24896 char tgetent ();
24897 int
24898 main ()
24899 {
24900 return tgetent ();
24901   ;
24902   return 0;
24903 }
24904 _ACEOF
24905 rm -f conftest.$ac_objext conftest$ac_exeext
24906 if { (ac_try="$ac_link"
24907 case "(($ac_try" in
24908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909   *) ac_try_echo=$ac_try;;
24910 esac
24911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24912   (eval "$ac_link") 2>conftest.er1
24913   ac_status=$?
24914   grep -v '^ *+' conftest.er1 >conftest.err
24915   rm -f conftest.er1
24916   cat conftest.err >&5
24917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918   (exit $ac_status); } && {
24919          test -z "$ac_c_werror_flag" ||
24920          test ! -s conftest.err
24921        } && test -s conftest$ac_exeext &&
24922        $as_test_x conftest$ac_exeext; then
24923   ac_cv_lib_curses_tgetent=yes
24924 else
24925   echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24927
24928         ac_cv_lib_curses_tgetent=no
24929 fi
24930
24931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24932       conftest$ac_exeext conftest.$ac_ext
24933 LIBS=$ac_check_lib_save_LIBS
24934 fi
24935 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24936 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24937 if test $ac_cv_lib_curses_tgetent = yes; then
24938    CONS_LIBS="-lcurses"
24939          CONS_OBJ="conio.o"
24940          CONS_SRC="conio.c"
24941          got_conio="yes"
24942          support_readline=no
24943
24944 cat >>confdefs.h <<\_ACEOF
24945 #define HAVE_CONIO 1
24946 _ACEOF
24947
24948
24949 fi
24950
24951
24952 else
24953    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24954 fi
24955
24956
24957
24958 fi
24959
24960
24961 fi
24962
24963
24964 # Check whether --enable-readline was given.
24965 if test "${enable_readline+set}" = set; then
24966   enableval=$enable_readline;
24967        if test x$enableval = xno; then
24968           support_readline=no
24969        fi
24970
24971
24972 fi
24973
24974
24975 got_readline="no"
24976 READLINE_SRC=
24977 if test x$support_readline = xyes; then
24978
24979 # Check whether --with-readline was given.
24980 if test "${with_readline+set}" = set; then
24981   withval=$with_readline;
24982           case "$with_readline" in
24983           no)
24984              :
24985              ;;
24986           yes|*)
24987              if test -f ${with_readline}/readline.h; then
24988                 CONS_INC="-I${with_readline}"
24989                 CONS_LDFLAGS="-L$with_readline"
24990              elif test -f ${with_readline}/include/readline/readline.h; then
24991                 CONS_INC="-I${with_readline}/include/readline"
24992                 CONS_LDFLAGS="-L${with_readline}/lib"
24993                 with_readline="${with_readline}/include/readline"
24994              else
24995                 with_readline="/usr/include/readline"
24996              fi
24997
24998              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
24999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25000   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25001 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25003   echo $ECHO_N "(cached) $ECHO_C" >&6
25004 fi
25005 ac_res=`eval echo '${'$as_ac_Header'}'`
25006                { echo "$as_me:$LINENO: result: $ac_res" >&5
25007 echo "${ECHO_T}$ac_res" >&6; }
25008 else
25009   # Is the header compilable?
25010 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25011 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25012 cat >conftest.$ac_ext <<_ACEOF
25013 /* confdefs.h.  */
25014 _ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h.  */
25018 $ac_includes_default
25019 #include <${with_readline}/readline.h>
25020 _ACEOF
25021 rm -f conftest.$ac_objext
25022 if { (ac_try="$ac_compile"
25023 case "(($ac_try" in
25024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25025   *) ac_try_echo=$ac_try;;
25026 esac
25027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25028   (eval "$ac_compile") 2>conftest.er1
25029   ac_status=$?
25030   grep -v '^ *+' conftest.er1 >conftest.err
25031   rm -f conftest.er1
25032   cat conftest.err >&5
25033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034   (exit $ac_status); } && {
25035          test -z "$ac_c_werror_flag" ||
25036          test ! -s conftest.err
25037        } && test -s conftest.$ac_objext; then
25038   ac_header_compiler=yes
25039 else
25040   echo "$as_me: failed program was:" >&5
25041 sed 's/^/| /' conftest.$ac_ext >&5
25042
25043         ac_header_compiler=no
25044 fi
25045
25046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25048 echo "${ECHO_T}$ac_header_compiler" >&6; }
25049
25050 # Is the header present?
25051 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25052 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25053 cat >conftest.$ac_ext <<_ACEOF
25054 /* confdefs.h.  */
25055 _ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h.  */
25059 #include <${with_readline}/readline.h>
25060 _ACEOF
25061 if { (ac_try="$ac_cpp conftest.$ac_ext"
25062 case "(($ac_try" in
25063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25064   *) ac_try_echo=$ac_try;;
25065 esac
25066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25068   ac_status=$?
25069   grep -v '^ *+' conftest.er1 >conftest.err
25070   rm -f conftest.er1
25071   cat conftest.err >&5
25072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073   (exit $ac_status); } >/dev/null && {
25074          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25075          test ! -s conftest.err
25076        }; then
25077   ac_header_preproc=yes
25078 else
25079   echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25081
25082   ac_header_preproc=no
25083 fi
25084
25085 rm -f conftest.err conftest.$ac_ext
25086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25087 echo "${ECHO_T}$ac_header_preproc" >&6; }
25088
25089 # So?  What about this header?
25090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25091   yes:no: )
25092     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25093 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25094     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25095 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25096     ac_header_preproc=yes
25097     ;;
25098   no:yes:* )
25099     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25100 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25101     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25102 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25103     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25104 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25105     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25106 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25107     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25108 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25109     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25110 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25111
25112     ;;
25113 esac
25114 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25115 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25117   echo $ECHO_N "(cached) $ECHO_C" >&6
25118 else
25119   eval "$as_ac_Header=\$ac_header_preproc"
25120 fi
25121 ac_res=`eval echo '${'$as_ac_Header'}'`
25122                { echo "$as_me:$LINENO: result: $ac_res" >&5
25123 echo "${ECHO_T}$ac_res" >&6; }
25124
25125 fi
25126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25127
25128
25129 cat >>confdefs.h <<\_ACEOF
25130 #define HAVE_READLINE 1
25131 _ACEOF
25132
25133                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25134                     got_readline="yes"
25135
25136 else
25137
25138                     echo " "
25139                     echo "readline.h not found. readline turned off ..."
25140                     echo " "
25141
25142
25143 fi
25144
25145
25146              ;;
25147           esac
25148
25149 else
25150
25151                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25152   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25153 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25154 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25155   echo $ECHO_N "(cached) $ECHO_C" >&6
25156 fi
25157 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25158 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25159 else
25160   # Is the header compilable?
25161 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25162 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25163 cat >conftest.$ac_ext <<_ACEOF
25164 /* confdefs.h.  */
25165 _ACEOF
25166 cat confdefs.h >>conftest.$ac_ext
25167 cat >>conftest.$ac_ext <<_ACEOF
25168 /* end confdefs.h.  */
25169 $ac_includes_default
25170 #include </usr/include/readline/readline.h>
25171 _ACEOF
25172 rm -f conftest.$ac_objext
25173 if { (ac_try="$ac_compile"
25174 case "(($ac_try" in
25175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25176   *) ac_try_echo=$ac_try;;
25177 esac
25178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25179   (eval "$ac_compile") 2>conftest.er1
25180   ac_status=$?
25181   grep -v '^ *+' conftest.er1 >conftest.err
25182   rm -f conftest.er1
25183   cat conftest.err >&5
25184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); } && {
25186          test -z "$ac_c_werror_flag" ||
25187          test ! -s conftest.err
25188        } && test -s conftest.$ac_objext; then
25189   ac_header_compiler=yes
25190 else
25191   echo "$as_me: failed program was:" >&5
25192 sed 's/^/| /' conftest.$ac_ext >&5
25193
25194         ac_header_compiler=no
25195 fi
25196
25197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25199 echo "${ECHO_T}$ac_header_compiler" >&6; }
25200
25201 # Is the header present?
25202 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25203 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25204 cat >conftest.$ac_ext <<_ACEOF
25205 /* confdefs.h.  */
25206 _ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h.  */
25210 #include </usr/include/readline/readline.h>
25211 _ACEOF
25212 if { (ac_try="$ac_cpp conftest.$ac_ext"
25213 case "(($ac_try" in
25214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25215   *) ac_try_echo=$ac_try;;
25216 esac
25217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25219   ac_status=$?
25220   grep -v '^ *+' conftest.er1 >conftest.err
25221   rm -f conftest.er1
25222   cat conftest.err >&5
25223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224   (exit $ac_status); } >/dev/null && {
25225          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25226          test ! -s conftest.err
25227        }; then
25228   ac_header_preproc=yes
25229 else
25230   echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25232
25233   ac_header_preproc=no
25234 fi
25235
25236 rm -f conftest.err conftest.$ac_ext
25237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25238 echo "${ECHO_T}$ac_header_preproc" >&6; }
25239
25240 # So?  What about this header?
25241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25242   yes:no: )
25243     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25244 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25245     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25246 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25247     ac_header_preproc=yes
25248     ;;
25249   no:yes:* )
25250     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25251 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25252     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25253 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25254     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25255 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25256     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25257 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25258     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25259 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25260     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25261 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25262
25263     ;;
25264 esac
25265 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25266 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25267 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25268   echo $ECHO_N "(cached) $ECHO_C" >&6
25269 else
25270   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25271 fi
25272 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25273 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25274
25275 fi
25276 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25277
25278
25279 cat >>confdefs.h <<\_ACEOF
25280 #define HAVE_READLINE 1
25281 _ACEOF
25282
25283                 got_readline="yes"
25284                 CONS_INC="-I/usr/include/readline"
25285                 CONS_LIBS="-lreadline -ltermcap"
25286
25287 else
25288
25289                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25291   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25292 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25294   echo $ECHO_N "(cached) $ECHO_C" >&6
25295 fi
25296 ac_res=`eval echo '${'$as_ac_Header'}'`
25297                { echo "$as_me:$LINENO: result: $ac_res" >&5
25298 echo "${ECHO_T}$ac_res" >&6; }
25299 else
25300   # Is the header compilable?
25301 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25302 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25303 cat >conftest.$ac_ext <<_ACEOF
25304 /* confdefs.h.  */
25305 _ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h.  */
25309 $ac_includes_default
25310 #include <${TOP_DIR}/depkgs/readline/readline.h>
25311 _ACEOF
25312 rm -f conftest.$ac_objext
25313 if { (ac_try="$ac_compile"
25314 case "(($ac_try" in
25315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316   *) ac_try_echo=$ac_try;;
25317 esac
25318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25319   (eval "$ac_compile") 2>conftest.er1
25320   ac_status=$?
25321   grep -v '^ *+' conftest.er1 >conftest.err
25322   rm -f conftest.er1
25323   cat conftest.err >&5
25324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325   (exit $ac_status); } && {
25326          test -z "$ac_c_werror_flag" ||
25327          test ! -s conftest.err
25328        } && test -s conftest.$ac_objext; then
25329   ac_header_compiler=yes
25330 else
25331   echo "$as_me: failed program was:" >&5
25332 sed 's/^/| /' conftest.$ac_ext >&5
25333
25334         ac_header_compiler=no
25335 fi
25336
25337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25339 echo "${ECHO_T}$ac_header_compiler" >&6; }
25340
25341 # Is the header present?
25342 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25343 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25344 cat >conftest.$ac_ext <<_ACEOF
25345 /* confdefs.h.  */
25346 _ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h.  */
25350 #include <${TOP_DIR}/depkgs/readline/readline.h>
25351 _ACEOF
25352 if { (ac_try="$ac_cpp conftest.$ac_ext"
25353 case "(($ac_try" in
25354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25355   *) ac_try_echo=$ac_try;;
25356 esac
25357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25359   ac_status=$?
25360   grep -v '^ *+' conftest.er1 >conftest.err
25361   rm -f conftest.er1
25362   cat conftest.err >&5
25363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364   (exit $ac_status); } >/dev/null && {
25365          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25366          test ! -s conftest.err
25367        }; then
25368   ac_header_preproc=yes
25369 else
25370   echo "$as_me: failed program was:" >&5
25371 sed 's/^/| /' conftest.$ac_ext >&5
25372
25373   ac_header_preproc=no
25374 fi
25375
25376 rm -f conftest.err conftest.$ac_ext
25377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25378 echo "${ECHO_T}$ac_header_preproc" >&6; }
25379
25380 # So?  What about this header?
25381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25382   yes:no: )
25383     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25384 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25385     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25386 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25387     ac_header_preproc=yes
25388     ;;
25389   no:yes:* )
25390     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25391 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25392     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25393 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25394     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25395 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25396     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25397 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25398     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25399 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25400     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25401 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25402
25403     ;;
25404 esac
25405 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25406 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25408   echo $ECHO_N "(cached) $ECHO_C" >&6
25409 else
25410   eval "$as_ac_Header=\$ac_header_preproc"
25411 fi
25412 ac_res=`eval echo '${'$as_ac_Header'}'`
25413                { echo "$as_me:$LINENO: result: $ac_res" >&5
25414 echo "${ECHO_T}$ac_res" >&6; }
25415
25416 fi
25417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25418
25419
25420 cat >>confdefs.h <<\_ACEOF
25421 #define HAVE_READLINE 1
25422 _ACEOF
25423
25424                         got_readline="yes"
25425                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25426                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25427                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25428                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25429
25430 else
25431
25432                         echo " "
25433                         echo "readline.h not found. readline turned off ..."
25434                         echo " "
25435
25436
25437 fi
25438
25439
25440
25441
25442 fi
25443
25444
25445
25446
25447 fi
25448
25449 fi
25450
25451
25452
25453
25454
25455
25456
25457
25458 MAKE_SHELL=/bin/sh
25459
25460 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25461 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25462 if test "${ac_cv_header_stat_broken+set}" = set; then
25463   echo $ECHO_N "(cached) $ECHO_C" >&6
25464 else
25465   cat >conftest.$ac_ext <<_ACEOF
25466 /* confdefs.h.  */
25467 _ACEOF
25468 cat confdefs.h >>conftest.$ac_ext
25469 cat >>conftest.$ac_ext <<_ACEOF
25470 /* end confdefs.h.  */
25471 #include <sys/types.h>
25472 #include <sys/stat.h>
25473
25474 #if defined S_ISBLK && defined S_IFDIR
25475 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25476 #endif
25477
25478 #if defined S_ISBLK && defined S_IFCHR
25479 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25480 #endif
25481
25482 #if defined S_ISLNK && defined S_IFREG
25483 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25484 #endif
25485
25486 #if defined S_ISSOCK && defined S_IFREG
25487 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25488 #endif
25489
25490 _ACEOF
25491 rm -f conftest.$ac_objext
25492 if { (ac_try="$ac_compile"
25493 case "(($ac_try" in
25494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495   *) ac_try_echo=$ac_try;;
25496 esac
25497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25498   (eval "$ac_compile") 2>conftest.er1
25499   ac_status=$?
25500   grep -v '^ *+' conftest.er1 >conftest.err
25501   rm -f conftest.er1
25502   cat conftest.err >&5
25503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504   (exit $ac_status); } && {
25505          test -z "$ac_c_werror_flag" ||
25506          test ! -s conftest.err
25507        } && test -s conftest.$ac_objext; then
25508   ac_cv_header_stat_broken=no
25509 else
25510   echo "$as_me: failed program was:" >&5
25511 sed 's/^/| /' conftest.$ac_ext >&5
25512
25513         ac_cv_header_stat_broken=yes
25514 fi
25515
25516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25517 fi
25518 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25519 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25520 if test $ac_cv_header_stat_broken = yes; then
25521
25522 cat >>confdefs.h <<\_ACEOF
25523 #define STAT_MACROS_BROKEN 1
25524 _ACEOF
25525
25526 fi
25527
25528
25529
25530
25531
25532
25533 ac_header_dirent=no
25534 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25535   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25536 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25537 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25539   echo $ECHO_N "(cached) $ECHO_C" >&6
25540 else
25541   cat >conftest.$ac_ext <<_ACEOF
25542 /* confdefs.h.  */
25543 _ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h.  */
25547 #include <sys/types.h>
25548 #include <$ac_hdr>
25549
25550 int
25551 main ()
25552 {
25553 if ((DIR *) 0)
25554 return 0;
25555   ;
25556   return 0;
25557 }
25558 _ACEOF
25559 rm -f conftest.$ac_objext
25560 if { (ac_try="$ac_compile"
25561 case "(($ac_try" in
25562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25563   *) ac_try_echo=$ac_try;;
25564 esac
25565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25566   (eval "$ac_compile") 2>conftest.er1
25567   ac_status=$?
25568   grep -v '^ *+' conftest.er1 >conftest.err
25569   rm -f conftest.er1
25570   cat conftest.err >&5
25571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572   (exit $ac_status); } && {
25573          test -z "$ac_c_werror_flag" ||
25574          test ! -s conftest.err
25575        } && test -s conftest.$ac_objext; then
25576   eval "$as_ac_Header=yes"
25577 else
25578   echo "$as_me: failed program was:" >&5
25579 sed 's/^/| /' conftest.$ac_ext >&5
25580
25581         eval "$as_ac_Header=no"
25582 fi
25583
25584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25585 fi
25586 ac_res=`eval echo '${'$as_ac_Header'}'`
25587                { echo "$as_me:$LINENO: result: $ac_res" >&5
25588 echo "${ECHO_T}$ac_res" >&6; }
25589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25590   cat >>confdefs.h <<_ACEOF
25591 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25592 _ACEOF
25593
25594 ac_header_dirent=$ac_hdr; break
25595 fi
25596
25597 done
25598 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25599 if test $ac_header_dirent = dirent.h; then
25600   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25601 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25602 if test "${ac_cv_search_opendir+set}" = set; then
25603   echo $ECHO_N "(cached) $ECHO_C" >&6
25604 else
25605   ac_func_search_save_LIBS=$LIBS
25606 cat >conftest.$ac_ext <<_ACEOF
25607 /* confdefs.h.  */
25608 _ACEOF
25609 cat confdefs.h >>conftest.$ac_ext
25610 cat >>conftest.$ac_ext <<_ACEOF
25611 /* end confdefs.h.  */
25612
25613 /* Override any GCC internal prototype to avoid an error.
25614    Use char because int might match the return type of a GCC
25615    builtin and then its argument prototype would still apply.  */
25616 #ifdef __cplusplus
25617 extern "C"
25618 #endif
25619 char opendir ();
25620 int
25621 main ()
25622 {
25623 return opendir ();
25624   ;
25625   return 0;
25626 }
25627 _ACEOF
25628 for ac_lib in '' dir; do
25629   if test -z "$ac_lib"; then
25630     ac_res="none required"
25631   else
25632     ac_res=-l$ac_lib
25633     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25634   fi
25635   rm -f conftest.$ac_objext conftest$ac_exeext
25636 if { (ac_try="$ac_link"
25637 case "(($ac_try" in
25638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25639   *) ac_try_echo=$ac_try;;
25640 esac
25641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25642   (eval "$ac_link") 2>conftest.er1
25643   ac_status=$?
25644   grep -v '^ *+' conftest.er1 >conftest.err
25645   rm -f conftest.er1
25646   cat conftest.err >&5
25647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648   (exit $ac_status); } && {
25649          test -z "$ac_c_werror_flag" ||
25650          test ! -s conftest.err
25651        } && test -s conftest$ac_exeext &&
25652        $as_test_x conftest$ac_exeext; then
25653   ac_cv_search_opendir=$ac_res
25654 else
25655   echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.$ac_ext >&5
25657
25658
25659 fi
25660
25661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25662       conftest$ac_exeext
25663   if test "${ac_cv_search_opendir+set}" = set; then
25664   break
25665 fi
25666 done
25667 if test "${ac_cv_search_opendir+set}" = set; then
25668   :
25669 else
25670   ac_cv_search_opendir=no
25671 fi
25672 rm conftest.$ac_ext
25673 LIBS=$ac_func_search_save_LIBS
25674 fi
25675 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25676 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25677 ac_res=$ac_cv_search_opendir
25678 if test "$ac_res" != no; then
25679   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25680
25681 fi
25682
25683 else
25684   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25685 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25686 if test "${ac_cv_search_opendir+set}" = set; then
25687   echo $ECHO_N "(cached) $ECHO_C" >&6
25688 else
25689   ac_func_search_save_LIBS=$LIBS
25690 cat >conftest.$ac_ext <<_ACEOF
25691 /* confdefs.h.  */
25692 _ACEOF
25693 cat confdefs.h >>conftest.$ac_ext
25694 cat >>conftest.$ac_ext <<_ACEOF
25695 /* end confdefs.h.  */
25696
25697 /* Override any GCC internal prototype to avoid an error.
25698    Use char because int might match the return type of a GCC
25699    builtin and then its argument prototype would still apply.  */
25700 #ifdef __cplusplus
25701 extern "C"
25702 #endif
25703 char opendir ();
25704 int
25705 main ()
25706 {
25707 return opendir ();
25708   ;
25709   return 0;
25710 }
25711 _ACEOF
25712 for ac_lib in '' x; do
25713   if test -z "$ac_lib"; then
25714     ac_res="none required"
25715   else
25716     ac_res=-l$ac_lib
25717     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25718   fi
25719   rm -f conftest.$ac_objext conftest$ac_exeext
25720 if { (ac_try="$ac_link"
25721 case "(($ac_try" in
25722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25723   *) ac_try_echo=$ac_try;;
25724 esac
25725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25726   (eval "$ac_link") 2>conftest.er1
25727   ac_status=$?
25728   grep -v '^ *+' conftest.er1 >conftest.err
25729   rm -f conftest.er1
25730   cat conftest.err >&5
25731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732   (exit $ac_status); } && {
25733          test -z "$ac_c_werror_flag" ||
25734          test ! -s conftest.err
25735        } && test -s conftest$ac_exeext &&
25736        $as_test_x conftest$ac_exeext; then
25737   ac_cv_search_opendir=$ac_res
25738 else
25739   echo "$as_me: failed program was:" >&5
25740 sed 's/^/| /' conftest.$ac_ext >&5
25741
25742
25743 fi
25744
25745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25746       conftest$ac_exeext
25747   if test "${ac_cv_search_opendir+set}" = set; then
25748   break
25749 fi
25750 done
25751 if test "${ac_cv_search_opendir+set}" = set; then
25752   :
25753 else
25754   ac_cv_search_opendir=no
25755 fi
25756 rm conftest.$ac_ext
25757 LIBS=$ac_func_search_save_LIBS
25758 fi
25759 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25760 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25761 ac_res=$ac_cv_search_opendir
25762 if test "$ac_res" != no; then
25763   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25764
25765 fi
25766
25767 fi
25768
25769
25770
25771
25772
25773
25774
25775
25776 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25777 do
25778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25782   echo $ECHO_N "(cached) $ECHO_C" >&6
25783 else
25784   cat >conftest.$ac_ext <<_ACEOF
25785 /* confdefs.h.  */
25786 _ACEOF
25787 cat confdefs.h >>conftest.$ac_ext
25788 cat >>conftest.$ac_ext <<_ACEOF
25789 /* end confdefs.h.  */
25790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25792 #define $ac_func innocuous_$ac_func
25793
25794 /* System header to define __stub macros and hopefully few prototypes,
25795     which can conflict with char $ac_func (); below.
25796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25797     <limits.h> exists even on freestanding compilers.  */
25798
25799 #ifdef __STDC__
25800 # include <limits.h>
25801 #else
25802 # include <assert.h>
25803 #endif
25804
25805 #undef $ac_func
25806
25807 /* Override any GCC internal prototype to avoid an error.
25808    Use char because int might match the return type of a GCC
25809    builtin and then its argument prototype would still apply.  */
25810 #ifdef __cplusplus
25811 extern "C"
25812 #endif
25813 char $ac_func ();
25814 /* The GNU C library defines this for functions which it implements
25815     to always fail with ENOSYS.  Some functions are actually named
25816     something starting with __ and the normal name is an alias.  */
25817 #if defined __stub_$ac_func || defined __stub___$ac_func
25818 choke me
25819 #endif
25820
25821 int
25822 main ()
25823 {
25824 return $ac_func ();
25825   ;
25826   return 0;
25827 }
25828 _ACEOF
25829 rm -f conftest.$ac_objext conftest$ac_exeext
25830 if { (ac_try="$ac_link"
25831 case "(($ac_try" in
25832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25833   *) ac_try_echo=$ac_try;;
25834 esac
25835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25836   (eval "$ac_link") 2>conftest.er1
25837   ac_status=$?
25838   grep -v '^ *+' conftest.er1 >conftest.err
25839   rm -f conftest.er1
25840   cat conftest.err >&5
25841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); } && {
25843          test -z "$ac_c_werror_flag" ||
25844          test ! -s conftest.err
25845        } && test -s conftest$ac_exeext &&
25846        $as_test_x conftest$ac_exeext; then
25847   eval "$as_ac_var=yes"
25848 else
25849   echo "$as_me: failed program was:" >&5
25850 sed 's/^/| /' conftest.$ac_ext >&5
25851
25852         eval "$as_ac_var=no"
25853 fi
25854
25855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25856       conftest$ac_exeext conftest.$ac_ext
25857 fi
25858 ac_res=`eval echo '${'$as_ac_var'}'`
25859                { echo "$as_me:$LINENO: result: $ac_res" >&5
25860 echo "${ECHO_T}$ac_res" >&6; }
25861 if test `eval echo '${'$as_ac_var'}'` = yes; then
25862   cat >>confdefs.h <<_ACEOF
25863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25864 _ACEOF
25865
25866 fi
25867 done
25868
25869
25870
25871 for ac_func in nanosleep nl_langinfo
25872 do
25873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25877   echo $ECHO_N "(cached) $ECHO_C" >&6
25878 else
25879   cat >conftest.$ac_ext <<_ACEOF
25880 /* confdefs.h.  */
25881 _ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h.  */
25885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25887 #define $ac_func innocuous_$ac_func
25888
25889 /* System header to define __stub macros and hopefully few prototypes,
25890     which can conflict with char $ac_func (); below.
25891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25892     <limits.h> exists even on freestanding compilers.  */
25893
25894 #ifdef __STDC__
25895 # include <limits.h>
25896 #else
25897 # include <assert.h>
25898 #endif
25899
25900 #undef $ac_func
25901
25902 /* Override any GCC internal prototype to avoid an error.
25903    Use char because int might match the return type of a GCC
25904    builtin and then its argument prototype would still apply.  */
25905 #ifdef __cplusplus
25906 extern "C"
25907 #endif
25908 char $ac_func ();
25909 /* The GNU C library defines this for functions which it implements
25910     to always fail with ENOSYS.  Some functions are actually named
25911     something starting with __ and the normal name is an alias.  */
25912 #if defined __stub_$ac_func || defined __stub___$ac_func
25913 choke me
25914 #endif
25915
25916 int
25917 main ()
25918 {
25919 return $ac_func ();
25920   ;
25921   return 0;
25922 }
25923 _ACEOF
25924 rm -f conftest.$ac_objext conftest$ac_exeext
25925 if { (ac_try="$ac_link"
25926 case "(($ac_try" in
25927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25928   *) ac_try_echo=$ac_try;;
25929 esac
25930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25931   (eval "$ac_link") 2>conftest.er1
25932   ac_status=$?
25933   grep -v '^ *+' conftest.er1 >conftest.err
25934   rm -f conftest.er1
25935   cat conftest.err >&5
25936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937   (exit $ac_status); } && {
25938          test -z "$ac_c_werror_flag" ||
25939          test ! -s conftest.err
25940        } && test -s conftest$ac_exeext &&
25941        $as_test_x conftest$ac_exeext; then
25942   eval "$as_ac_var=yes"
25943 else
25944   echo "$as_me: failed program was:" >&5
25945 sed 's/^/| /' conftest.$ac_ext >&5
25946
25947         eval "$as_ac_var=no"
25948 fi
25949
25950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25951       conftest$ac_exeext conftest.$ac_ext
25952 fi
25953 ac_res=`eval echo '${'$as_ac_var'}'`
25954                { echo "$as_me:$LINENO: result: $ac_res" >&5
25955 echo "${ECHO_T}$ac_res" >&6; }
25956 if test `eval echo '${'$as_ac_var'}'` = yes; then
25957   cat >>confdefs.h <<_ACEOF
25958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25959 _ACEOF
25960
25961 fi
25962 done
25963
25964
25965 for ac_header in varargs.h
25966 do
25967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25969   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25972   echo $ECHO_N "(cached) $ECHO_C" >&6
25973 fi
25974 ac_res=`eval echo '${'$as_ac_Header'}'`
25975                { echo "$as_me:$LINENO: result: $ac_res" >&5
25976 echo "${ECHO_T}$ac_res" >&6; }
25977 else
25978   # Is the header compilable?
25979 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25981 cat >conftest.$ac_ext <<_ACEOF
25982 /* confdefs.h.  */
25983 _ACEOF
25984 cat confdefs.h >>conftest.$ac_ext
25985 cat >>conftest.$ac_ext <<_ACEOF
25986 /* end confdefs.h.  */
25987 $ac_includes_default
25988 #include <$ac_header>
25989 _ACEOF
25990 rm -f conftest.$ac_objext
25991 if { (ac_try="$ac_compile"
25992 case "(($ac_try" in
25993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25994   *) ac_try_echo=$ac_try;;
25995 esac
25996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25997   (eval "$ac_compile") 2>conftest.er1
25998   ac_status=$?
25999   grep -v '^ *+' conftest.er1 >conftest.err
26000   rm -f conftest.er1
26001   cat conftest.err >&5
26002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003   (exit $ac_status); } && {
26004          test -z "$ac_c_werror_flag" ||
26005          test ! -s conftest.err
26006        } && test -s conftest.$ac_objext; then
26007   ac_header_compiler=yes
26008 else
26009   echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26011
26012         ac_header_compiler=no
26013 fi
26014
26015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26017 echo "${ECHO_T}$ac_header_compiler" >&6; }
26018
26019 # Is the header present?
26020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26022 cat >conftest.$ac_ext <<_ACEOF
26023 /* confdefs.h.  */
26024 _ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h.  */
26028 #include <$ac_header>
26029 _ACEOF
26030 if { (ac_try="$ac_cpp conftest.$ac_ext"
26031 case "(($ac_try" in
26032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26033   *) ac_try_echo=$ac_try;;
26034 esac
26035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26037   ac_status=$?
26038   grep -v '^ *+' conftest.er1 >conftest.err
26039   rm -f conftest.er1
26040   cat conftest.err >&5
26041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042   (exit $ac_status); } >/dev/null && {
26043          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26044          test ! -s conftest.err
26045        }; then
26046   ac_header_preproc=yes
26047 else
26048   echo "$as_me: failed program was:" >&5
26049 sed 's/^/| /' conftest.$ac_ext >&5
26050
26051   ac_header_preproc=no
26052 fi
26053
26054 rm -f conftest.err conftest.$ac_ext
26055 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26056 echo "${ECHO_T}$ac_header_preproc" >&6; }
26057
26058 # So?  What about this header?
26059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26060   yes:no: )
26061     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26065     ac_header_preproc=yes
26066     ;;
26067   no:yes:* )
26068     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26070     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26071 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26072     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26074     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26075 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26078     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26080
26081     ;;
26082 esac
26083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26086   echo $ECHO_N "(cached) $ECHO_C" >&6
26087 else
26088   eval "$as_ac_Header=\$ac_header_preproc"
26089 fi
26090 ac_res=`eval echo '${'$as_ac_Header'}'`
26091                { echo "$as_me:$LINENO: result: $ac_res" >&5
26092 echo "${ECHO_T}$ac_res" >&6; }
26093
26094 fi
26095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26096   cat >>confdefs.h <<_ACEOF
26097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26098 _ACEOF
26099
26100 fi
26101
26102 done
26103
26104
26105
26106 { echo "$as_me:$LINENO: checking for Python support" >&5
26107 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26108
26109 # Check whether --with-python was given.
26110 if test "${with_python+set}" = set; then
26111   withval=$with_python;
26112        PYTHON_INCDIR=
26113        PYTHON_LIBS=
26114        if test "$withval" != "no"; then
26115           if test "$withval" = "yes"; then
26116              for python_root in /usr /usr/local /usr/sfw; do
26117                 for ver in python2.2 python2.3 python2.4 python2.5; do
26118                    if test -f $python_root/include/${ver}/Python.h; then
26119                       PYTHON_INCDIR=-I$python_root/include/${ver}
26120                       if test -d $python_root/lib64/${ver}/config; then
26121                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26122                       else
26123                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26124                       fi
26125                       break
26126                    fi
26127                 done
26128              done
26129
26130              if test x$PYTHON_INCDIR = x; then
26131                 if test -f $prefix/include/Python.h; then
26132                    PYTHON_INCDIR=-I$prefix/include
26133                    if test -d $prefix/lib64/config; then
26134                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26135                    else
26136                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26137                    fi
26138                 else
26139                    { echo "$as_me:$LINENO: result: no" >&5
26140 echo "${ECHO_T}no" >&6; }
26141                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26142 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26143    { (exit 1); exit 1; }; }
26144                 fi
26145              fi
26146           else
26147              if test -f $withval/Python.h; then
26148                 PYTHON_INCDIR=-I$withval
26149                 PYTHON_LIBS="-L$withval/config -lpython"
26150              elif test -f $withval/include/Python.h; then
26151                 PYTHON_INCDIR=-I$withval/include
26152                 if test -d $withval/lib64/config; then
26153                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26154                 else
26155                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26156                 fi
26157              elif test -f $withval/include/python/Python.h; then
26158                 PYTHON_INCDIR=-I$withval/include/python
26159                 if test -d $withval/lib64/python/config; then
26160                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26161                 else
26162                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26163                 fi
26164              else
26165                 { echo "$as_me:$LINENO: result: no" >&5
26166 echo "${ECHO_T}no" >&6; }
26167                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26168 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26169    { (exit 1); exit 1; }; }
26170              fi
26171           fi
26172
26173           cat >>confdefs.h <<\_ACEOF
26174 #define HAVE_PYTHON 1
26175 _ACEOF
26176
26177           { echo "$as_me:$LINENO: result: yes" >&5
26178 echo "${ECHO_T}yes" >&6; }
26179           support_python=yes
26180           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26181 echo "$as_me: checking for more Python libs" >&6;}
26182           saved_LIBS="$LIBS"; LIBS=
26183           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26184 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26185 if test "${ac_cv_search_shm_open+set}" = set; then
26186   echo $ECHO_N "(cached) $ECHO_C" >&6
26187 else
26188   ac_func_search_save_LIBS=$LIBS
26189 cat >conftest.$ac_ext <<_ACEOF
26190 /* confdefs.h.  */
26191 _ACEOF
26192 cat confdefs.h >>conftest.$ac_ext
26193 cat >>conftest.$ac_ext <<_ACEOF
26194 /* end confdefs.h.  */
26195
26196 /* Override any GCC internal prototype to avoid an error.
26197    Use char because int might match the return type of a GCC
26198    builtin and then its argument prototype would still apply.  */
26199 #ifdef __cplusplus
26200 extern "C"
26201 #endif
26202 char shm_open ();
26203 int
26204 main ()
26205 {
26206 return shm_open ();
26207   ;
26208   return 0;
26209 }
26210 _ACEOF
26211 for ac_lib in '' rt; do
26212   if test -z "$ac_lib"; then
26213     ac_res="none required"
26214   else
26215     ac_res=-l$ac_lib
26216     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26217   fi
26218   rm -f conftest.$ac_objext conftest$ac_exeext
26219 if { (ac_try="$ac_link"
26220 case "(($ac_try" in
26221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26222   *) ac_try_echo=$ac_try;;
26223 esac
26224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26225   (eval "$ac_link") 2>conftest.er1
26226   ac_status=$?
26227   grep -v '^ *+' conftest.er1 >conftest.err
26228   rm -f conftest.er1
26229   cat conftest.err >&5
26230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231   (exit $ac_status); } && {
26232          test -z "$ac_c_werror_flag" ||
26233          test ! -s conftest.err
26234        } && test -s conftest$ac_exeext &&
26235        $as_test_x conftest$ac_exeext; then
26236   ac_cv_search_shm_open=$ac_res
26237 else
26238   echo "$as_me: failed program was:" >&5
26239 sed 's/^/| /' conftest.$ac_ext >&5
26240
26241
26242 fi
26243
26244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26245       conftest$ac_exeext
26246   if test "${ac_cv_search_shm_open+set}" = set; then
26247   break
26248 fi
26249 done
26250 if test "${ac_cv_search_shm_open+set}" = set; then
26251   :
26252 else
26253   ac_cv_search_shm_open=no
26254 fi
26255 rm conftest.$ac_ext
26256 LIBS=$ac_func_search_save_LIBS
26257 fi
26258 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26259 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26260 ac_res=$ac_cv_search_shm_open
26261 if test "$ac_res" != no; then
26262   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26263
26264 fi
26265
26266
26267 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26268 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26269 if test "${ac_cv_lib_util_openpty+set}" = set; then
26270   echo $ECHO_N "(cached) $ECHO_C" >&6
26271 else
26272   ac_check_lib_save_LIBS=$LIBS
26273 LIBS="-lutil  $LIBS"
26274 cat >conftest.$ac_ext <<_ACEOF
26275 /* confdefs.h.  */
26276 _ACEOF
26277 cat confdefs.h >>conftest.$ac_ext
26278 cat >>conftest.$ac_ext <<_ACEOF
26279 /* end confdefs.h.  */
26280
26281 /* Override any GCC internal prototype to avoid an error.
26282    Use char because int might match the return type of a GCC
26283    builtin and then its argument prototype would still apply.  */
26284 #ifdef __cplusplus
26285 extern "C"
26286 #endif
26287 char openpty ();
26288 int
26289 main ()
26290 {
26291 return openpty ();
26292   ;
26293   return 0;
26294 }
26295 _ACEOF
26296 rm -f conftest.$ac_objext conftest$ac_exeext
26297 if { (ac_try="$ac_link"
26298 case "(($ac_try" in
26299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26300   *) ac_try_echo=$ac_try;;
26301 esac
26302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26303   (eval "$ac_link") 2>conftest.er1
26304   ac_status=$?
26305   grep -v '^ *+' conftest.er1 >conftest.err
26306   rm -f conftest.er1
26307   cat conftest.err >&5
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); } && {
26310          test -z "$ac_c_werror_flag" ||
26311          test ! -s conftest.err
26312        } && test -s conftest$ac_exeext &&
26313        $as_test_x conftest$ac_exeext; then
26314   ac_cv_lib_util_openpty=yes
26315 else
26316   echo "$as_me: failed program was:" >&5
26317 sed 's/^/| /' conftest.$ac_ext >&5
26318
26319         ac_cv_lib_util_openpty=no
26320 fi
26321
26322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26323       conftest$ac_exeext conftest.$ac_ext
26324 LIBS=$ac_check_lib_save_LIBS
26325 fi
26326 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26327 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26328 if test $ac_cv_lib_util_openpty = yes; then
26329   cat >>confdefs.h <<_ACEOF
26330 #define HAVE_LIBUTIL 1
26331 _ACEOF
26332
26333   LIBS="-lutil $LIBS"
26334
26335 fi
26336
26337           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26338           LIBS="$saved_LIBS"
26339        else
26340           { echo "$as_me:$LINENO: result: no" >&5
26341 echo "${ECHO_T}no" >&6; }
26342        fi
26343
26344 else
26345
26346        { echo "$as_me:$LINENO: result: no" >&5
26347 echo "${ECHO_T}no" >&6; }
26348
26349
26350 fi
26351
26352
26353
26354
26355 { echo "$as_me:$LINENO: checking for socket" >&5
26356 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26357 if test "${ac_cv_func_socket+set}" = set; then
26358   echo $ECHO_N "(cached) $ECHO_C" >&6
26359 else
26360   cat >conftest.$ac_ext <<_ACEOF
26361 /* confdefs.h.  */
26362 _ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h.  */
26366 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26368 #define socket innocuous_socket
26369
26370 /* System header to define __stub macros and hopefully few prototypes,
26371     which can conflict with char socket (); below.
26372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26373     <limits.h> exists even on freestanding compilers.  */
26374
26375 #ifdef __STDC__
26376 # include <limits.h>
26377 #else
26378 # include <assert.h>
26379 #endif
26380
26381 #undef socket
26382
26383 /* Override any GCC internal prototype to avoid an error.
26384    Use char because int might match the return type of a GCC
26385    builtin and then its argument prototype would still apply.  */
26386 #ifdef __cplusplus
26387 extern "C"
26388 #endif
26389 char socket ();
26390 /* The GNU C library defines this for functions which it implements
26391     to always fail with ENOSYS.  Some functions are actually named
26392     something starting with __ and the normal name is an alias.  */
26393 #if defined __stub_socket || defined __stub___socket
26394 choke me
26395 #endif
26396
26397 int
26398 main ()
26399 {
26400 return socket ();
26401   ;
26402   return 0;
26403 }
26404 _ACEOF
26405 rm -f conftest.$ac_objext conftest$ac_exeext
26406 if { (ac_try="$ac_link"
26407 case "(($ac_try" in
26408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26409   *) ac_try_echo=$ac_try;;
26410 esac
26411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26412   (eval "$ac_link") 2>conftest.er1
26413   ac_status=$?
26414   grep -v '^ *+' conftest.er1 >conftest.err
26415   rm -f conftest.er1
26416   cat conftest.err >&5
26417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418   (exit $ac_status); } && {
26419          test -z "$ac_c_werror_flag" ||
26420          test ! -s conftest.err
26421        } && test -s conftest$ac_exeext &&
26422        $as_test_x conftest$ac_exeext; then
26423   ac_cv_func_socket=yes
26424 else
26425   echo "$as_me: failed program was:" >&5
26426 sed 's/^/| /' conftest.$ac_ext >&5
26427
26428         ac_cv_func_socket=no
26429 fi
26430
26431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26432       conftest$ac_exeext conftest.$ac_ext
26433 fi
26434 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26435 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26436 if test $ac_cv_func_socket = yes; then
26437   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26438 echo "${ECHO_T}using libc's socket" >&6; }
26439 else
26440
26441 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26442 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26443 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26444   echo $ECHO_N "(cached) $ECHO_C" >&6
26445 else
26446   ac_check_lib_save_LIBS=$LIBS
26447 LIBS="-lxnet  $LIBS"
26448 cat >conftest.$ac_ext <<_ACEOF
26449 /* confdefs.h.  */
26450 _ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h.  */
26454
26455 /* Override any GCC internal prototype to avoid an error.
26456    Use char because int might match the return type of a GCC
26457    builtin and then its argument prototype would still apply.  */
26458 #ifdef __cplusplus
26459 extern "C"
26460 #endif
26461 char socket ();
26462 int
26463 main ()
26464 {
26465 return socket ();
26466   ;
26467   return 0;
26468 }
26469 _ACEOF
26470 rm -f conftest.$ac_objext conftest$ac_exeext
26471 if { (ac_try="$ac_link"
26472 case "(($ac_try" in
26473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474   *) ac_try_echo=$ac_try;;
26475 esac
26476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26477   (eval "$ac_link") 2>conftest.er1
26478   ac_status=$?
26479   grep -v '^ *+' conftest.er1 >conftest.err
26480   rm -f conftest.er1
26481   cat conftest.err >&5
26482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483   (exit $ac_status); } && {
26484          test -z "$ac_c_werror_flag" ||
26485          test ! -s conftest.err
26486        } && test -s conftest$ac_exeext &&
26487        $as_test_x conftest$ac_exeext; then
26488   ac_cv_lib_xnet_socket=yes
26489 else
26490   echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26492
26493         ac_cv_lib_xnet_socket=no
26494 fi
26495
26496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26497       conftest$ac_exeext conftest.$ac_ext
26498 LIBS=$ac_check_lib_save_LIBS
26499 fi
26500 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26501 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26502 if test $ac_cv_lib_xnet_socket = yes; then
26503   cat >>confdefs.h <<_ACEOF
26504 #define HAVE_LIBXNET 1
26505 _ACEOF
26506
26507   LIBS="-lxnet $LIBS"
26508
26509 fi
26510
26511
26512 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26513 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26514 if test "${ac_cv_lib_socket_socket+set}" = set; then
26515   echo $ECHO_N "(cached) $ECHO_C" >&6
26516 else
26517   ac_check_lib_save_LIBS=$LIBS
26518 LIBS="-lsocket  $LIBS"
26519 cat >conftest.$ac_ext <<_ACEOF
26520 /* confdefs.h.  */
26521 _ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h.  */
26525
26526 /* Override any GCC internal prototype to avoid an error.
26527    Use char because int might match the return type of a GCC
26528    builtin and then its argument prototype would still apply.  */
26529 #ifdef __cplusplus
26530 extern "C"
26531 #endif
26532 char socket ();
26533 int
26534 main ()
26535 {
26536 return socket ();
26537   ;
26538   return 0;
26539 }
26540 _ACEOF
26541 rm -f conftest.$ac_objext conftest$ac_exeext
26542 if { (ac_try="$ac_link"
26543 case "(($ac_try" in
26544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26545   *) ac_try_echo=$ac_try;;
26546 esac
26547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26548   (eval "$ac_link") 2>conftest.er1
26549   ac_status=$?
26550   grep -v '^ *+' conftest.er1 >conftest.err
26551   rm -f conftest.er1
26552   cat conftest.err >&5
26553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554   (exit $ac_status); } && {
26555          test -z "$ac_c_werror_flag" ||
26556          test ! -s conftest.err
26557        } && test -s conftest$ac_exeext &&
26558        $as_test_x conftest$ac_exeext; then
26559   ac_cv_lib_socket_socket=yes
26560 else
26561   echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26563
26564         ac_cv_lib_socket_socket=no
26565 fi
26566
26567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26568       conftest$ac_exeext conftest.$ac_ext
26569 LIBS=$ac_check_lib_save_LIBS
26570 fi
26571 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26572 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26573 if test $ac_cv_lib_socket_socket = yes; then
26574   cat >>confdefs.h <<_ACEOF
26575 #define HAVE_LIBSOCKET 1
26576 _ACEOF
26577
26578   LIBS="-lsocket $LIBS"
26579
26580 fi
26581
26582
26583 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26584 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26585 if test "${ac_cv_lib_inet_socket+set}" = set; then
26586   echo $ECHO_N "(cached) $ECHO_C" >&6
26587 else
26588   ac_check_lib_save_LIBS=$LIBS
26589 LIBS="-linet  $LIBS"
26590 cat >conftest.$ac_ext <<_ACEOF
26591 /* confdefs.h.  */
26592 _ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h.  */
26596
26597 /* Override any GCC internal prototype to avoid an error.
26598    Use char because int might match the return type of a GCC
26599    builtin and then its argument prototype would still apply.  */
26600 #ifdef __cplusplus
26601 extern "C"
26602 #endif
26603 char socket ();
26604 int
26605 main ()
26606 {
26607 return socket ();
26608   ;
26609   return 0;
26610 }
26611 _ACEOF
26612 rm -f conftest.$ac_objext conftest$ac_exeext
26613 if { (ac_try="$ac_link"
26614 case "(($ac_try" in
26615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26616   *) ac_try_echo=$ac_try;;
26617 esac
26618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26619   (eval "$ac_link") 2>conftest.er1
26620   ac_status=$?
26621   grep -v '^ *+' conftest.er1 >conftest.err
26622   rm -f conftest.er1
26623   cat conftest.err >&5
26624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625   (exit $ac_status); } && {
26626          test -z "$ac_c_werror_flag" ||
26627          test ! -s conftest.err
26628        } && test -s conftest$ac_exeext &&
26629        $as_test_x conftest$ac_exeext; then
26630   ac_cv_lib_inet_socket=yes
26631 else
26632   echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26634
26635         ac_cv_lib_inet_socket=no
26636 fi
26637
26638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26639       conftest$ac_exeext conftest.$ac_ext
26640 LIBS=$ac_check_lib_save_LIBS
26641 fi
26642 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26643 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26644 if test $ac_cv_lib_inet_socket = yes; then
26645   cat >>confdefs.h <<_ACEOF
26646 #define HAVE_LIBINET 1
26647 _ACEOF
26648
26649   LIBS="-linet $LIBS"
26650
26651 fi
26652
26653 fi
26654
26655
26656 TCPW_MSG="no"
26657 WRAPLIBS=""
26658
26659 # Check whether --with-tcp-wrappers was given.
26660 if test "${with_tcp_wrappers+set}" = set; then
26661   withval=$with_tcp_wrappers;
26662        if test "x$withval" != "xno" ; then
26663           saved_LIBS="$LIBS"
26664           LIBS="$saved_LIBS -lwrap"
26665           { echo "$as_me:$LINENO: checking for libwrap" >&5
26666 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26667           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26668 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26669 if test "${ac_cv_search_nanosleep+set}" = set; then
26670   echo $ECHO_N "(cached) $ECHO_C" >&6
26671 else
26672   ac_func_search_save_LIBS=$LIBS
26673 cat >conftest.$ac_ext <<_ACEOF
26674 /* confdefs.h.  */
26675 _ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h.  */
26679
26680 /* Override any GCC internal prototype to avoid an error.
26681    Use char because int might match the return type of a GCC
26682    builtin and then its argument prototype would still apply.  */
26683 #ifdef __cplusplus
26684 extern "C"
26685 #endif
26686 char nanosleep ();
26687 int
26688 main ()
26689 {
26690 return nanosleep ();
26691   ;
26692   return 0;
26693 }
26694 _ACEOF
26695 for ac_lib in '' rt; do
26696   if test -z "$ac_lib"; then
26697     ac_res="none required"
26698   else
26699     ac_res=-l$ac_lib
26700     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26701   fi
26702   rm -f conftest.$ac_objext conftest$ac_exeext
26703 if { (ac_try="$ac_link"
26704 case "(($ac_try" in
26705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706   *) ac_try_echo=$ac_try;;
26707 esac
26708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26709   (eval "$ac_link") 2>conftest.er1
26710   ac_status=$?
26711   grep -v '^ *+' conftest.er1 >conftest.err
26712   rm -f conftest.er1
26713   cat conftest.err >&5
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } && {
26716          test -z "$ac_c_werror_flag" ||
26717          test ! -s conftest.err
26718        } && test -s conftest$ac_exeext &&
26719        $as_test_x conftest$ac_exeext; then
26720   ac_cv_search_nanosleep=$ac_res
26721 else
26722   echo "$as_me: failed program was:" >&5
26723 sed 's/^/| /' conftest.$ac_ext >&5
26724
26725
26726 fi
26727
26728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26729       conftest$ac_exeext
26730   if test "${ac_cv_search_nanosleep+set}" = set; then
26731   break
26732 fi
26733 done
26734 if test "${ac_cv_search_nanosleep+set}" = set; then
26735   :
26736 else
26737   ac_cv_search_nanosleep=no
26738 fi
26739 rm conftest.$ac_ext
26740 LIBS=$ac_func_search_save_LIBS
26741 fi
26742 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26743 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26744 ac_res=$ac_cv_search_nanosleep
26745 if test "$ac_res" != no; then
26746   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26747
26748 fi
26749
26750           cat >conftest.$ac_ext <<_ACEOF
26751 /* confdefs.h.  */
26752 _ACEOF
26753 cat confdefs.h >>conftest.$ac_ext
26754 cat >>conftest.$ac_ext <<_ACEOF
26755 /* end confdefs.h.  */
26756
26757                #include <sys/types.h>
26758                #include <tcpd.h>
26759                int deny_severity = 0;
26760                int allow_severity = 0;
26761                struct request_info *req;
26762
26763 int
26764 main ()
26765 {
26766
26767                 hosts_access(req);
26768
26769   ;
26770   return 0;
26771 }
26772 _ACEOF
26773 rm -f conftest.$ac_objext conftest$ac_exeext
26774 if { (ac_try="$ac_link"
26775 case "(($ac_try" in
26776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26777   *) ac_try_echo=$ac_try;;
26778 esac
26779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26780   (eval "$ac_link") 2>conftest.er1
26781   ac_status=$?
26782   grep -v '^ *+' conftest.er1 >conftest.err
26783   rm -f conftest.er1
26784   cat conftest.err >&5
26785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786   (exit $ac_status); } && {
26787          test -z "$ac_c_werror_flag" ||
26788          test ! -s conftest.err
26789        } && test -s conftest$ac_exeext &&
26790        $as_test_x conftest$ac_exeext; then
26791
26792                  { echo "$as_me:$LINENO: result: yes" >&5
26793 echo "${ECHO_T}yes" >&6; }
26794
26795 cat >>confdefs.h <<\_ACEOF
26796 #define HAVE_LIBWRAP 1
26797 _ACEOF
26798
26799                  TCPW_MSG="yes"
26800                  LIBS="$saved_LIBS"
26801                  WRAPLIBS="-lwrap"
26802
26803 else
26804   echo "$as_me: failed program was:" >&5
26805 sed 's/^/| /' conftest.$ac_ext >&5
26806
26807
26808                  LIBS="$saved_LIBS -lwrap -lnsl"
26809                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26810                  cat >conftest.$ac_ext <<_ACEOF
26811 /* confdefs.h.  */
26812 _ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h.  */
26816
26817                        #include <sys/types.h>
26818                        #include <tcpd.h>
26819                        int deny_severity = 0;
26820                        int allow_severity = 0;
26821                        struct request_info *req;
26822
26823 int
26824 main ()
26825 {
26826
26827                        hosts_access(req);
26828
26829   ;
26830   return 0;
26831 }
26832 _ACEOF
26833 rm -f conftest.$ac_objext conftest$ac_exeext
26834 if { (ac_try="$ac_link"
26835 case "(($ac_try" in
26836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837   *) ac_try_echo=$ac_try;;
26838 esac
26839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26840   (eval "$ac_link") 2>conftest.er1
26841   ac_status=$?
26842   grep -v '^ *+' conftest.er1 >conftest.err
26843   rm -f conftest.er1
26844   cat conftest.err >&5
26845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846   (exit $ac_status); } && {
26847          test -z "$ac_c_werror_flag" ||
26848          test ! -s conftest.err
26849        } && test -s conftest$ac_exeext &&
26850        $as_test_x conftest$ac_exeext; then
26851
26852                       { echo "$as_me:$LINENO: result: yes" >&5
26853 echo "${ECHO_T}yes" >&6; }
26854
26855 cat >>confdefs.h <<\_ACEOF
26856 #define HAVE_LIBWRAP 1
26857 _ACEOF
26858
26859                       TCPW_MSG="yes"
26860                       LIBS="$saved_LIBS"
26861                       WRAPLIBS="-lwrap"
26862
26863 else
26864   echo "$as_me: failed program was:" >&5
26865 sed 's/^/| /' conftest.$ac_ext >&5
26866
26867
26868                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26869 echo "$as_me: error: *** libwrap missing" >&2;}
26870    { (exit 1); exit 1; }; }
26871
26872
26873 fi
26874
26875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26876       conftest$ac_exeext conftest.$ac_ext
26877
26878
26879 fi
26880
26881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26882       conftest$ac_exeext conftest.$ac_ext
26883        fi
26884
26885
26886 fi
26887
26888
26889 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26890 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26891
26892 # Check whether --with-openssl was given.
26893 if test "${with_openssl+set}" = set; then
26894   withval=$with_openssl;
26895         with_openssl_directory=${withval}
26896
26897
26898 fi
26899
26900
26901 if test "x$with_openssl_directory" != "xno"; then
26902    OPENSSL_LIBS="-lssl -lcrypto"
26903    OPENSSL_INC=""
26904
26905    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26906       #
26907       # Make sure the $with_openssl_directory also makes sense
26908       #
26909       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26910          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26911          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26912       fi
26913    fi
26914
26915    saved_LIBS="${LIBS}"
26916    saved_CFLAGS="${CFLAGS}"
26917    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26918    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26919
26920    cat >conftest.$ac_ext <<_ACEOF
26921 /* confdefs.h.  */
26922 _ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h.  */
26926
26927           #include <openssl/ssl.h>
26928
26929 int
26930 main ()
26931 {
26932
26933            CRYPTO_set_id_callback(NULL);
26934
26935   ;
26936   return 0;
26937 }
26938 _ACEOF
26939 rm -f conftest.$ac_objext conftest$ac_exeext
26940 if { (ac_try="$ac_link"
26941 case "(($ac_try" in
26942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943   *) ac_try_echo=$ac_try;;
26944 esac
26945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946   (eval "$ac_link") 2>conftest.er1
26947   ac_status=$?
26948   grep -v '^ *+' conftest.er1 >conftest.err
26949   rm -f conftest.er1
26950   cat conftest.err >&5
26951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952   (exit $ac_status); } && {
26953          test -z "$ac_c_werror_flag" ||
26954          test ! -s conftest.err
26955        } && test -s conftest$ac_exeext &&
26956        $as_test_x conftest$ac_exeext; then
26957
26958           support_tls="yes"
26959           support_crypto="yes"
26960
26961 else
26962   echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26964
26965
26966           support_tls="no"
26967
26968
26969 fi
26970
26971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26972       conftest$ac_exeext conftest.$ac_ext
26973
26974    cat >conftest.$ac_ext <<_ACEOF
26975 /* confdefs.h.  */
26976 _ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h.  */
26980
26981           #include <openssl/evp.h>
26982
26983 int
26984 main ()
26985 {
26986
26987           EVP_sha512();
26988
26989   ;
26990   return 0;
26991 }
26992 _ACEOF
26993 rm -f conftest.$ac_objext conftest$ac_exeext
26994 if { (ac_try="$ac_link"
26995 case "(($ac_try" in
26996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26997   *) ac_try_echo=$ac_try;;
26998 esac
26999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27000   (eval "$ac_link") 2>conftest.er1
27001   ac_status=$?
27002   grep -v '^ *+' conftest.er1 >conftest.err
27003   rm -f conftest.er1
27004   cat conftest.err >&5
27005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006   (exit $ac_status); } && {
27007          test -z "$ac_c_werror_flag" ||
27008          test ! -s conftest.err
27009        } && test -s conftest$ac_exeext &&
27010        $as_test_x conftest$ac_exeext; then
27011
27012           ac_cv_openssl_sha2="yes"
27013
27014 else
27015   echo "$as_me: failed program was:" >&5
27016 sed 's/^/| /' conftest.$ac_ext >&5
27017
27018
27019           ac_cv_openssl_sha2="no"
27020
27021
27022 fi
27023
27024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27025       conftest$ac_exeext conftest.$ac_ext
27026
27027                cat >conftest.$ac_ext <<_ACEOF
27028 /* confdefs.h.  */
27029 _ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h.  */
27033
27034           #include <openssl/evp.h>
27035
27036 int
27037 main ()
27038 {
27039
27040           EVP_aes_192_cbc();
27041
27042   ;
27043   return 0;
27044 }
27045 _ACEOF
27046 rm -f conftest.$ac_objext conftest$ac_exeext
27047 if { (ac_try="$ac_link"
27048 case "(($ac_try" in
27049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050   *) ac_try_echo=$ac_try;;
27051 esac
27052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053   (eval "$ac_link") 2>conftest.er1
27054   ac_status=$?
27055   grep -v '^ *+' conftest.er1 >conftest.err
27056   rm -f conftest.er1
27057   cat conftest.err >&5
27058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059   (exit $ac_status); } && {
27060          test -z "$ac_c_werror_flag" ||
27061          test ! -s conftest.err
27062        } && test -s conftest$ac_exeext &&
27063        $as_test_x conftest$ac_exeext; then
27064
27065           ac_cv_openssl_export="no"
27066
27067 else
27068   echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.$ac_ext >&5
27070
27071
27072           ac_cv_openssl_export="yes"
27073
27074
27075 fi
27076
27077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27078       conftest$ac_exeext conftest.$ac_ext
27079
27080    LIBS="${saved_LIBS}"
27081    CFLAGS="${saved_CFLAGS}"
27082
27083    if test "$support_tls" = "yes"; then
27084
27085 cat >>confdefs.h <<\_ACEOF
27086 #define HAVE_OPENSSL 1
27087 _ACEOF
27088
27089
27090 cat >>confdefs.h <<\_ACEOF
27091 #define HAVE_TLS 1
27092 _ACEOF
27093
27094
27095 cat >>confdefs.h <<\_ACEOF
27096 #define HAVE_CRYPTO 1
27097 _ACEOF
27098
27099    fi
27100
27101    if test "$ac_cv_openssl_sha2" = "yes"; then
27102
27103 cat >>confdefs.h <<\_ACEOF
27104 #define HAVE_SHA2 1
27105 _ACEOF
27106
27107    fi
27108
27109    if test "$ac_cv_openssl_export" = "yes"; then
27110
27111 cat >>confdefs.h <<\_ACEOF
27112 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27113 _ACEOF
27114
27115    fi
27116 else
27117    support_tls="no"
27118    support_crypto="no"
27119    OPENSSL_LIBS=""
27120    OPENSSL_INC=""
27121 fi
27122
27123 { echo "$as_me:$LINENO: result: $support_tls" >&5
27124 echo "${ECHO_T}$support_tls" >&6; }
27125
27126
27127
27128 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27129 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27130 if test "${ac_cv_search_dlopen+set}" = set; then
27131   echo $ECHO_N "(cached) $ECHO_C" >&6
27132 else
27133   ac_func_search_save_LIBS=$LIBS
27134 cat >conftest.$ac_ext <<_ACEOF
27135 /* confdefs.h.  */
27136 _ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h.  */
27140
27141 /* Override any GCC internal prototype to avoid an error.
27142    Use char because int might match the return type of a GCC
27143    builtin and then its argument prototype would still apply.  */
27144 #ifdef __cplusplus
27145 extern "C"
27146 #endif
27147 char dlopen ();
27148 int
27149 main ()
27150 {
27151 return dlopen ();
27152   ;
27153   return 0;
27154 }
27155 _ACEOF
27156 for ac_lib in '' dl; do
27157   if test -z "$ac_lib"; then
27158     ac_res="none required"
27159   else
27160     ac_res=-l$ac_lib
27161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27162   fi
27163   rm -f conftest.$ac_objext conftest$ac_exeext
27164 if { (ac_try="$ac_link"
27165 case "(($ac_try" in
27166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27167   *) ac_try_echo=$ac_try;;
27168 esac
27169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27170   (eval "$ac_link") 2>conftest.er1
27171   ac_status=$?
27172   grep -v '^ *+' conftest.er1 >conftest.err
27173   rm -f conftest.er1
27174   cat conftest.err >&5
27175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176   (exit $ac_status); } && {
27177          test -z "$ac_c_werror_flag" ||
27178          test ! -s conftest.err
27179        } && test -s conftest$ac_exeext &&
27180        $as_test_x conftest$ac_exeext; then
27181   ac_cv_search_dlopen=$ac_res
27182 else
27183   echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.$ac_ext >&5
27185
27186
27187 fi
27188
27189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27190       conftest$ac_exeext
27191   if test "${ac_cv_search_dlopen+set}" = set; then
27192   break
27193 fi
27194 done
27195 if test "${ac_cv_search_dlopen+set}" = set; then
27196   :
27197 else
27198   ac_cv_search_dlopen=no
27199 fi
27200 rm conftest.$ac_ext
27201 LIBS=$ac_func_search_save_LIBS
27202 fi
27203 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27204 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27205 ac_res=$ac_cv_search_dlopen
27206 if test "$ac_res" != no; then
27207   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27208
27209 fi
27210
27211
27212 working_dir=`eval echo ${prefix}/var/bacula/working`
27213
27214 # Check whether --with-working-dir was given.
27215 if test "${with_working_dir+set}" = set; then
27216   withval=$with_working_dir;
27217        if test "x$withval" != "xno" ; then
27218          working_dir=$withval
27219        fi
27220
27221
27222 fi
27223
27224
27225
27226
27227 archive_dir=/tmp
27228
27229 # Check whether --with-archivedir was given.
27230 if test "${with_archivedir+set}" = set; then
27231   withval=$with_archivedir;
27232        if test "x$withval" != "xno" ; then
27233           archivedir=$withval
27234        fi
27235
27236
27237 fi
27238
27239
27240
27241
27242 scriptdir=`eval echo ${sysconfdir}`
27243
27244 # Check whether --with-scriptdir was given.
27245 if test "${with_scriptdir+set}" = set; then
27246   withval=$with_scriptdir;
27247        if test "x$withval" != "xno" ; then
27248           scriptdir=$withval
27249        fi
27250
27251
27252 fi
27253
27254
27255
27256
27257 # ------------------------------------------
27258 # Where to place plugindir (script files)
27259 # ------------------------------------------
27260 plugindir=`eval echo ${sysconfdir}`
27261
27262 # Check whether --with-plugindir was given.
27263 if test "${with_plugindir+set}" = set; then
27264   withval=$with_plugindir;
27265        if test "x$withval" != "xno" ; then
27266           plugindir=$withval
27267        fi
27268
27269
27270 fi
27271
27272
27273
27274
27275 dump_email=root@localhost
27276
27277 # Check whether --with-dump-email was given.
27278 if test "${with_dump_email+set}" = set; then
27279   withval=$with_dump_email;
27280        if test "x$withval" != "xno" ; then
27281           dump_email=$withval
27282        fi
27283
27284
27285 fi
27286
27287
27288
27289
27290 job_email=root@localhost
27291
27292 # Check whether --with-job-email was given.
27293 if test "${with_job_email+set}" = set; then
27294   withval=$with_job_email;
27295        if test "x$withval" != "xno" ; then
27296           job_email=$withval
27297        fi
27298
27299
27300 fi
27301
27302
27303
27304
27305 smtp_host=localhost
27306
27307 # Check whether --with-smtp_host was given.
27308 if test "${with_smtp_host+set}" = set; then
27309   withval=$with_smtp_host;
27310        if test "x$withval" != "xno" ; then
27311           smtp_host=$withval
27312        fi
27313
27314
27315 fi
27316
27317
27318
27319
27320 piddir=/var/run
27321
27322 # Check whether --with-pid-dir was given.
27323 if test "${with_pid_dir+set}" = set; then
27324   withval=$with_pid_dir;
27325        if test "x$withval" != "xno" ; then
27326           piddir=$withval
27327        fi
27328
27329
27330 fi
27331
27332
27333 cat >>confdefs.h <<_ACEOF
27334 #define _PATH_BACULA_PIDDIR "$piddir"
27335 _ACEOF
27336
27337
27338
27339 subsysdir=/var/run/subsys
27340 if test -d /var/run/subsys; then
27341    subsysdir=/var/run/subsys
27342 elif test -d /var/lock/subsys; then
27343    subsysdir=/var/lock/subsys
27344 else
27345    subsysdir=/var/run/subsys
27346 fi
27347
27348 # Check whether --with-subsys-dir was given.
27349 if test "${with_subsys_dir+set}" = set; then
27350   withval=$with_subsys_dir;
27351        if test "x$withval" != "xno" ; then
27352           subsysdir=$withval
27353        fi
27354
27355
27356 fi
27357
27358
27359
27360
27361 baseport=9101
27362
27363 # Check whether --with-baseport was given.
27364 if test "${with_baseport+set}" = set; then
27365   withval=$with_baseport;
27366        if test "x$withval" != "xno" ; then
27367           baseport=$withval
27368        fi
27369
27370
27371 fi
27372
27373
27374
27375 dir_port=`expr $baseport`
27376 fd_port=`expr $baseport + 1`
27377 sd_port=`expr $fd_port + 1`
27378
27379
27380
27381
27382
27383 dir_password=
27384
27385 # Check whether --with-dir-password was given.
27386 if test "${with_dir_password+set}" = set; then
27387   withval=$with_dir_password;
27388        if test "x$withval" != "xno" ; then
27389           dir_password=$withval
27390        fi
27391
27392
27393 fi
27394
27395
27396 if test "x$dir_password" = "x" ; then
27397    if test "x$OPENSSL" = "xnone" ; then
27398       key=`autoconf/randpass 33`
27399    else
27400       key=`openssl rand -base64 33`
27401    fi
27402    dir_password=$key
27403 fi
27404
27405 fd_password=
27406
27407 # Check whether --with-fd-password was given.
27408 if test "${with_fd_password+set}" = set; then
27409   withval=$with_fd_password;
27410        if test "x$withval" != "xno" ; then
27411           fd_password=$withval
27412        fi
27413
27414
27415 fi
27416
27417
27418 if test "x$fd_password" = "x" ; then
27419    if test "x$OPENSSL" = "xnone" ; then
27420       key=`autoconf/randpass 37`
27421    else
27422       key=`openssl rand -base64 33`
27423    fi
27424    fd_password=$key
27425 fi
27426
27427 sd_password=
27428
27429 # Check whether --with-sd-password was given.
27430 if test "${with_sd_password+set}" = set; then
27431   withval=$with_sd_password;
27432        if test "x$withval" != "xno" ; then
27433           sd_password=$withval
27434        fi
27435
27436
27437 fi
27438
27439
27440 if test "x$sd_password" = "x" ; then
27441    if test "x$OPENSSL" = "xnone" ; then
27442       key=`autoconf/randpass 41`
27443    else
27444       key=`openssl rand -base64 33`
27445    fi
27446    sd_password=$key
27447 fi
27448
27449 mon_dir_password=
27450
27451 # Check whether --with-mon-dir-password was given.
27452 if test "${with_mon_dir_password+set}" = set; then
27453   withval=$with_mon_dir_password;
27454        if test "x$withval" != "xno" ; then
27455           mon_dir_password=$withval
27456        fi
27457
27458
27459 fi
27460
27461
27462 if test "x$mon_dir_password" = "x" ; then
27463    if test "x$OPENSSL" = "xnone" ; then
27464       key=`autoconf/randpass 33`
27465    else
27466       key=`openssl rand -base64 33`
27467    fi
27468    mon_dir_password=$key
27469 fi
27470
27471 mon_fd_password=
27472
27473 # Check whether --with-mon-fd-password was given.
27474 if test "${with_mon_fd_password+set}" = set; then
27475   withval=$with_mon_fd_password;
27476        if test "x$withval" != "xno" ; then
27477           mon_fd_password=$withval
27478        fi
27479
27480
27481 fi
27482
27483
27484 if test "x$mon_fd_password" = "x" ; then
27485    if test "x$OPENSSL" = "xnone" ; then
27486       key=`autoconf/randpass 37`
27487    else
27488       key=`openssl rand -base64 33`
27489    fi
27490    mon_fd_password=$key
27491 fi
27492
27493 mon_sd_password=
27494
27495 # Check whether --with-mon-sd-password was given.
27496 if test "${with_mon_sd_password+set}" = set; then
27497   withval=$with_mon_sd_password;
27498        if test "x$withval" != "xno" ; then
27499           mon_sd_password=$withval
27500        fi
27501
27502
27503 fi
27504
27505
27506 if test "x$mon_sd_password" = "x" ; then
27507    if test "x$OPENSSL" = "xnone" ; then
27508       key=`autoconf/randpass 41`
27509    else
27510       key=`openssl rand -base64 33`
27511    fi
27512    mon_sd_password=$key
27513 fi
27514
27515
27516
27517
27518
27519
27520
27521
27522 db_name=bacula
27523
27524 # Check whether --with-db_name was given.
27525 if test "${with_db_name+set}" = set; then
27526   withval=$with_db_name;
27527        if test "x$withval" != "x" ; then
27528           db_name=$withval
27529        fi
27530
27531
27532 fi
27533
27534
27535
27536 db_user=bacula
27537
27538 # Check whether --with-db_user was given.
27539 if test "${with_db_user+set}" = set; then
27540   withval=$with_db_user;
27541        if test "x$withval" != "x" ; then
27542           db_user=$withval
27543        fi
27544
27545
27546 fi
27547
27548
27549
27550 db_password=
27551
27552 # Check whether --with-db_password was given.
27553 if test "${with_db_password+set}" = set; then
27554   withval=$with_db_password;
27555        if test "x$withval" != "x" ; then
27556           db_password=$withval
27557        fi
27558
27559
27560 fi
27561
27562
27563
27564 db_port=" "
27565
27566 # Check whether --with-db_port was given.
27567 if test "${with_db_port+set}" = set; then
27568   withval=$with_db_port;
27569        if test "x$withval" != "x" ; then
27570           db_port=$withval
27571        fi
27572
27573
27574 fi
27575
27576
27577
27578 #
27579 # Handle users and groups for each daemon
27580 #
27581 dir_user=
27582
27583 # Check whether --with-dir_user was given.
27584 if test "${with_dir_user+set}" = set; then
27585   withval=$with_dir_user;
27586        if test "x$withval" != "x" ; then
27587            dir_user=$withval
27588        fi
27589
27590
27591 fi
27592
27593
27594 dir_group=
27595
27596 # Check whether --with-dir_group was given.
27597 if test "${with_dir_group+set}" = set; then
27598   withval=$with_dir_group;
27599        if test "x$withval" != "x" ; then
27600           dir_group=$withval
27601        fi
27602
27603
27604 fi
27605
27606
27607 sd_user=
27608
27609 # Check whether --with-sd_user was given.
27610 if test "${with_sd_user+set}" = set; then
27611   withval=$with_sd_user;
27612        if test "x$withval" != "x" ; then
27613           sd_user=$withval
27614        fi
27615
27616
27617 fi
27618
27619
27620 sd_group=
27621
27622 # Check whether --with-sd_group was given.
27623 if test "${with_sd_group+set}" = set; then
27624   withval=$with_sd_group;
27625        if test "x$withval" != "x" ; then
27626           sd_group=$withval
27627        fi
27628
27629
27630 fi
27631
27632
27633 fd_user=
27634
27635 # Check whether --with-fd_user was given.
27636 if test "${with_fd_user+set}" = set; then
27637   withval=$with_fd_user;
27638        if test "x$withval" != "x" ; then
27639           fd_user=$withval
27640        fi
27641
27642
27643 fi
27644
27645
27646 fd_group=
27647
27648 # Check whether --with-fd_group was given.
27649 if test "${with_fd_group+set}" = set; then
27650   withval=$with_fd_group;
27651        if test "x$withval" != "x" ; then
27652           fd_group=$withval
27653        fi
27654
27655
27656 fi
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666 SBINPERM=0754
27667
27668 # Check whether --with-sbin-perm was given.
27669 if test "${with_sbin_perm+set}" = set; then
27670   withval=$with_sbin_perm;
27671        if test "x$withval" != "x" ; then
27672           SBINPERM=$withval
27673        fi
27674
27675
27676 fi
27677
27678
27679
27680
27681 SQL_LIB=
27682
27683 db_found=no
27684 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27685 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27686
27687 # Check whether --with-postgresql was given.
27688 if test "${with_postgresql+set}" = set; then
27689   withval=$with_postgresql;
27690   if test "$withval" != "no"; then
27691       if test "$db_found" = "yes"; then
27692           { echo "$as_me:$LINENO: result: error" >&5
27693 echo "${ECHO_T}error" >&6; }
27694           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27695 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27696    { (exit 1); exit 1; }; };
27697       fi
27698       if test "$withval" = "yes"; then
27699           PG_CONFIG=`which pg_config`
27700           if test -n "$PG_CONFIG";then
27701               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27702               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27703               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27704           elif test -f /usr/local/include/libpq-fe.h; then
27705               POSTGRESQL_INCDIR=/usr/local/include
27706               if test -d /usr/local/lib64; then
27707                  POSTGRESQL_LIBDIR=/usr/local/lib64
27708               else
27709                  POSTGRESQL_LIBDIR=/usr/local/lib
27710               fi
27711               POSTGRESQL_BINDIR=/usr/local/bin
27712           elif test -f /usr/include/libpq-fe.h; then
27713               POSTGRESQL_INCDIR=/usr/include
27714               if test -d /usr/lib64; then
27715                  POSTGRESQL_LIBDIR=/usr/lib64
27716               else
27717                  POSTGRESQL_LIBDIR=/usr/lib
27718               fi
27719               POSTGRESQL_BINDIR=/usr/bin
27720           elif test -f /usr/include/pgsql/libpq-fe.h; then
27721               POSTGRESQL_INCDIR=/usr/include/pgsql
27722               if test -d /usr/lib64/pgsql; then
27723                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27724               else
27725                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27726               fi
27727               POSTGRESQL_BINDIR=/usr/bin
27728           elif test -f /usr/include/postgresql/libpq-fe.h; then
27729               POSTGRESQL_INCDIR=/usr/include/postgresql
27730               if test -d /usr/lib64/postgresql; then
27731                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27732               else
27733                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27734               fi
27735               POSTGRESQL_BINDIR=/usr/bin
27736           else
27737               { echo "$as_me:$LINENO: result: no" >&5
27738 echo "${ECHO_T}no" >&6; }
27739               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27740 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27741    { (exit 1); exit 1; }; }
27742           fi
27743       elif test -f $withval/include/libpq-fe.h; then
27744           POSTGRESQL_INCDIR=$withval/include
27745           POSTGRESQL_LIBDIR=$withval/lib
27746           POSTGRESQL_BINDIR=$withval/bin
27747       elif test -f $withval/include/postgresql/libpq-fe.h; then
27748           POSTGRESQL_INCDIR=$withval/include/postgresql
27749      if test -d $withval/lib64; then
27750          POSTGRESQL_LIBDIR=$withval/lib64
27751      else
27752          POSTGRESQL_LIBDIR=$withval/lib
27753      fi
27754           POSTGRESQL_BINDIR=$withval/bin
27755       else
27756           { echo "$as_me:$LINENO: result: no" >&5
27757 echo "${ECHO_T}no" >&6; }
27758           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27759 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27760    { (exit 1); exit 1; }; }
27761       fi
27762       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27763       { echo "$as_me:$LINENO: checking for crypt" >&5
27764 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27765 if test "${ac_cv_func_crypt+set}" = set; then
27766   echo $ECHO_N "(cached) $ECHO_C" >&6
27767 else
27768   cat >conftest.$ac_ext <<_ACEOF
27769 /* confdefs.h.  */
27770 _ACEOF
27771 cat confdefs.h >>conftest.$ac_ext
27772 cat >>conftest.$ac_ext <<_ACEOF
27773 /* end confdefs.h.  */
27774 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27776 #define crypt innocuous_crypt
27777
27778 /* System header to define __stub macros and hopefully few prototypes,
27779     which can conflict with char crypt (); below.
27780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27781     <limits.h> exists even on freestanding compilers.  */
27782
27783 #ifdef __STDC__
27784 # include <limits.h>
27785 #else
27786 # include <assert.h>
27787 #endif
27788
27789 #undef crypt
27790
27791 /* Override any GCC internal prototype to avoid an error.
27792    Use char because int might match the return type of a GCC
27793    builtin and then its argument prototype would still apply.  */
27794 #ifdef __cplusplus
27795 extern "C"
27796 #endif
27797 char crypt ();
27798 /* The GNU C library defines this for functions which it implements
27799     to always fail with ENOSYS.  Some functions are actually named
27800     something starting with __ and the normal name is an alias.  */
27801 #if defined __stub_crypt || defined __stub___crypt
27802 choke me
27803 #endif
27804
27805 int
27806 main ()
27807 {
27808 return crypt ();
27809   ;
27810   return 0;
27811 }
27812 _ACEOF
27813 rm -f conftest.$ac_objext conftest$ac_exeext
27814 if { (ac_try="$ac_link"
27815 case "(($ac_try" in
27816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27817   *) ac_try_echo=$ac_try;;
27818 esac
27819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27820   (eval "$ac_link") 2>conftest.er1
27821   ac_status=$?
27822   grep -v '^ *+' conftest.er1 >conftest.err
27823   rm -f conftest.er1
27824   cat conftest.err >&5
27825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826   (exit $ac_status); } && {
27827          test -z "$ac_c_werror_flag" ||
27828          test ! -s conftest.err
27829        } && test -s conftest$ac_exeext &&
27830        $as_test_x conftest$ac_exeext; then
27831   ac_cv_func_crypt=yes
27832 else
27833   echo "$as_me: failed program was:" >&5
27834 sed 's/^/| /' conftest.$ac_ext >&5
27835
27836         ac_cv_func_crypt=no
27837 fi
27838
27839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27840       conftest$ac_exeext conftest.$ac_ext
27841 fi
27842 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27843 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27844 if test $ac_cv_func_crypt = yes; then
27845   :
27846 else
27847   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27848 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27849 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27850   echo $ECHO_N "(cached) $ECHO_C" >&6
27851 else
27852   ac_check_lib_save_LIBS=$LIBS
27853 LIBS="-lcrypt  $LIBS"
27854 cat >conftest.$ac_ext <<_ACEOF
27855 /* confdefs.h.  */
27856 _ACEOF
27857 cat confdefs.h >>conftest.$ac_ext
27858 cat >>conftest.$ac_ext <<_ACEOF
27859 /* end confdefs.h.  */
27860
27861 /* Override any GCC internal prototype to avoid an error.
27862    Use char because int might match the return type of a GCC
27863    builtin and then its argument prototype would still apply.  */
27864 #ifdef __cplusplus
27865 extern "C"
27866 #endif
27867 char crypt ();
27868 int
27869 main ()
27870 {
27871 return crypt ();
27872   ;
27873   return 0;
27874 }
27875 _ACEOF
27876 rm -f conftest.$ac_objext conftest$ac_exeext
27877 if { (ac_try="$ac_link"
27878 case "(($ac_try" in
27879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27880   *) ac_try_echo=$ac_try;;
27881 esac
27882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27883   (eval "$ac_link") 2>conftest.er1
27884   ac_status=$?
27885   grep -v '^ *+' conftest.er1 >conftest.err
27886   rm -f conftest.er1
27887   cat conftest.err >&5
27888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889   (exit $ac_status); } && {
27890          test -z "$ac_c_werror_flag" ||
27891          test ! -s conftest.err
27892        } && test -s conftest$ac_exeext &&
27893        $as_test_x conftest$ac_exeext; then
27894   ac_cv_lib_crypt_crypt=yes
27895 else
27896   echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.$ac_ext >&5
27898
27899         ac_cv_lib_crypt_crypt=no
27900 fi
27901
27902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27903       conftest$ac_exeext conftest.$ac_ext
27904 LIBS=$ac_check_lib_save_LIBS
27905 fi
27906 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27907 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27908 if test $ac_cv_lib_crypt_crypt = yes; then
27909   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27910 fi
27911
27912 fi
27913
27914       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27915       SQL_LFLAGS=$POSTGRESQL_LFLAGS
27916       SQL_BINDIR=$POSTGRESQL_BINDIR
27917       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27918
27919       cat >>confdefs.h <<\_ACEOF
27920 #define HAVE_POSTGRESQL 1
27921 _ACEOF
27922
27923       { echo "$as_me:$LINENO: result: yes" >&5
27924 echo "${ECHO_T}yes" >&6; }
27925       db_found=yes
27926       support_postgresql=yes
27927       db_type=PostgreSQL
27928       DB_TYPE=postgresql
27929   else
27930       { echo "$as_me:$LINENO: result: no" >&5
27931 echo "${ECHO_T}no" >&6; }
27932   fi
27933
27934 else
27935
27936   { echo "$as_me:$LINENO: result: no" >&5
27937 echo "${ECHO_T}no" >&6; }
27938
27939 fi
27940
27941
27942
27943
27944
27945
27946
27947
27948 db_found=no
27949 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27950 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27951
27952 # Check whether --with-mysql was given.
27953 if test "${with_mysql+set}" = set; then
27954   withval=$with_mysql;
27955   if test "$withval" != "no"; then
27956         if test "$withval" = "yes"; then
27957            if test -f /usr/local/mysql/include/mysql/mysql.h; then
27958                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
27959                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27960                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27961                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27962                    else
27963                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27964                    fi
27965                    MYSQL_BINDIR=/usr/local/mysql/bin
27966            elif test -f /usr/include/mysql/mysql.h; then
27967                    MYSQL_INCDIR=/usr/include/mysql
27968                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27969                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27970                            MYSQL_LIBDIR=/usr/lib64/mysql
27971                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27972                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27973                            MYSQL_LIBDIR=/usr/lib/mysql
27974                    else
27975                            MYSQL_LIBDIR=/usr/lib
27976                    fi
27977                    MYSQL_BINDIR=/usr/bin
27978            elif test -f /usr/include/mysql.h; then
27979                    MYSQL_INCDIR=/usr/include
27980                    if test -f /usr/lib64/libmysqlclient_r.a \
27981                         -o -f /usr/lib64/libmysqlclient_r.so; then
27982                            MYSQL_LIBDIR=/usr/lib64
27983                    else
27984                            MYSQL_LIBDIR=/usr/lib
27985                    fi
27986                    MYSQL_BINDIR=/usr/bin
27987            elif test -f /usr/local/include/mysql/mysql.h; then
27988                    MYSQL_INCDIR=/usr/local/include/mysql
27989                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27990                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27991                            MYSQL_LIBDIR=/usr/local/lib64/mysql
27992                    else
27993                            MYSQL_LIBDIR=/usr/local/lib/mysql
27994                    fi
27995                    MYSQL_BINDIR=/usr/local/bin
27996            elif test -f /usr/local/include/mysql.h; then
27997                    MYSQL_INCDIR=/usr/local/include
27998                    if test -f /usr/local/lib64/libmysqlclient_r.a \
27999                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28000                            MYSQL_LIBDIR=/usr/local/lib64
28001                    else
28002                            MYSQL_LIBDIR=/usr/local/lib
28003                    fi
28004                    MYSQL_BINDIR=/usr/local/bin
28005            else
28006               { echo "$as_me:$LINENO: result: no" >&5
28007 echo "${ECHO_T}no" >&6; }
28008               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28009 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28010    { (exit 1); exit 1; }; }
28011            fi
28012         else
28013            if test -f $withval/include/mysql/mysql.h; then
28014               MYSQL_INCDIR=$withval/include/mysql
28015               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28016                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28017                  MYSQL_LIBDIR=$withval/lib64/mysql
28018               else
28019                  MYSQL_LIBDIR=$withval/lib/mysql
28020                  # Solaris ...
28021                  if test -f $withval/lib/libmysqlclient_r.so; then
28022                     MYSQL_LIBDIR=$withval/lib
28023                  fi
28024               fi
28025               MYSQL_BINDIR=$withval/bin
28026            elif test -f $withval/include/mysql.h; then
28027               MYSQL_INCDIR=$withval/include
28028               if test -f $withval/lib64/libmysqlclient_r.a \
28029                    -o -f $withval/lib64/libmysqlclient_r.so; then
28030                  MYSQL_LIBDIR=$withval/lib64
28031               else
28032                  MYSQL_LIBDIR=$withval/lib
28033               fi
28034               MYSQL_BINDIR=$withval/bin
28035            else
28036               { echo "$as_me:$LINENO: result: no" >&5
28037 echo "${ECHO_T}no" >&6; }
28038               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28039 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28040    { (exit 1); exit 1; }; }
28041            fi
28042         fi
28043     SQL_INCLUDE=-I$MYSQL_INCDIR
28044     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28045          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28046        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28047        cat >>confdefs.h <<\_ACEOF
28048 #define HAVE_THREAD_SAFE_MYSQL 1
28049 _ACEOF
28050
28051     fi
28052     SQL_BINDIR=$MYSQL_BINDIR
28053     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28054
28055     cat >>confdefs.h <<\_ACEOF
28056 #define HAVE_MYSQL 1
28057 _ACEOF
28058
28059     { echo "$as_me:$LINENO: result: yes" >&5
28060 echo "${ECHO_T}yes" >&6; }
28061     db_found=yes
28062     support_mysql=yes
28063     db_type=MySQL
28064     DB_TYPE=mysql
28065
28066   else
28067         { echo "$as_me:$LINENO: result: no" >&5
28068 echo "${ECHO_T}no" >&6; }
28069   fi
28070
28071
28072 fi
28073
28074
28075
28076 # Check whether --with-embedded-mysql was given.
28077 if test "${with_embedded_mysql+set}" = set; then
28078   withval=$with_embedded_mysql;
28079   if test "$withval" != "no"; then
28080         if test "$withval" = "yes"; then
28081                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28082                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28083                         if test -d /usr/local/mysql/lib64/mysql; then
28084                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28085                         else
28086                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28087                         fi
28088                         MYSQL_BINDIR=/usr/local/mysql/bin
28089                 elif test -f /usr/include/mysql/mysql.h; then
28090                         MYSQL_INCDIR=/usr/include/mysql
28091                         if test -d /usr/lib64/mysql; then
28092                                 MYSQL_LIBDIR=/usr/lib64/mysql
28093                         else
28094                                 MYSQL_LIBDIR=/usr/lib/mysql
28095                         fi
28096                         MYSQL_BINDIR=/usr/bin
28097                 elif test -f /usr/include/mysql.h; then
28098                         MYSQL_INCDIR=/usr/include
28099                         if test -d /usr/lib64; then
28100                                 MYSQL_LIBDIR=/usr/lib64
28101                         else
28102                                 MYSQL_LIBDIR=/usr/lib
28103                         fi
28104                         MYSQL_BINDIR=/usr/bin
28105                 elif test -f /usr/local/include/mysql/mysql.h; then
28106                         MYSQL_INCDIR=/usr/local/include/mysql
28107                         if test -d /usr/local/lib64/mysql; then
28108                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28109                         else
28110                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28111                         fi
28112                         MYSQL_BINDIR=/usr/local/bin
28113                 elif test -f /usr/local/include/mysql.h; then
28114                         MYSQL_INCDIR=/usr/local/include
28115                         if test -d /usr/local/lib64; then
28116                                 MYSQL_LIBDIR=/usr/local/lib64
28117                         else
28118                                 MYSQL_LIBDIR=/usr/local/lib
28119                         fi
28120                         MYSQL_BINDIR=/usr/local/bin
28121                 else
28122                    { echo "$as_me:$LINENO: result: no" >&5
28123 echo "${ECHO_T}no" >&6; }
28124                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28125 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28126    { (exit 1); exit 1; }; }
28127                 fi
28128         else
28129                 if test -f $withval/include/mysql/mysql.h; then
28130                         MYSQL_INCDIR=$withval/include/mysql
28131                         if test -d $withval/lib64/mysql; then
28132                                 MYSQL_LIBDIR=$withval/lib64/mysql
28133                         else
28134                                 MYSQL_LIBDIR=$withval/lib/mysql
28135                         fi
28136                         MYSQL_BINDIR=$withval/bin
28137                 elif test -f $withval/include/mysql.h; then
28138                         MYSQL_INCDIR=$withval/include
28139                         if test -d $withval/lib64; then
28140                                 MYSQL_LIBDIR=$withval/lib64
28141                         else
28142                                 MYSQL_LIBDIR=$withval/lib
28143                         fi
28144                         MYSQL_BINDIR=$withval/bin
28145                 else
28146                    { echo "$as_me:$LINENO: result: no" >&5
28147 echo "${ECHO_T}no" >&6; }
28148                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28149 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28150    { (exit 1); exit 1; }; }
28151                 fi
28152         fi
28153     SQL_INCLUDE=-I$MYSQL_INCDIR
28154     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28155     SQL_BINDIR=$MYSQL_BINDIR
28156     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28157
28158     cat >>confdefs.h <<\_ACEOF
28159 #define HAVE_MYSQL 1
28160 _ACEOF
28161
28162     cat >>confdefs.h <<\_ACEOF
28163 #define HAVE_EMBEDDED_MYSQL 1
28164 _ACEOF
28165
28166     { echo "$as_me:$LINENO: result: yes" >&5
28167 echo "${ECHO_T}yes" >&6; }
28168     db_found=yes
28169     support_mysql=yes
28170     db_type=MySQL
28171     DB_TYPE=mysql
28172
28173   else
28174         { echo "$as_me:$LINENO: result: no" >&5
28175 echo "${ECHO_T}no" >&6; }
28176   fi
28177
28178
28179 fi
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190 db_found=no
28191 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28192 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28193
28194 # Check whether --with-sqlite3 was given.
28195 if test "${with_sqlite3+set}" = set; then
28196   withval=$with_sqlite3;
28197   if test "$withval" != "no"; then
28198      if test "$withval" = "yes"; then
28199         if test -f /usr/local/include/sqlite3.h; then
28200            SQLITE_INCDIR=/usr/local/include
28201            if test -d /usr/local/lib64; then
28202               SQLITE_LIBDIR=/usr/local/lib64
28203            else
28204               SQLITE_LIBDIR=/usr/local/lib
28205            fi
28206            SQLITE_BINDIR=/usr/local/bin
28207         elif test -f /usr/include/sqlite3.h; then
28208            SQLITE_INCDIR=/usr/include
28209            if test -d /usr/lib64; then
28210               SQLITE_LIBDIR=/usr/lib64
28211            else
28212               SQLITE_LIBDIR=/usr/lib
28213            fi
28214            SQLITE_BINDIR=/usr/bin
28215         elif test -f $prefix/include/sqlite3.h; then
28216            SQLITE_INCDIR=$prefix/include
28217            if test -d $prefix/lib64; then
28218               SQLITE_LIBDIR=$prefix/lib64
28219            else
28220               SQLITE_LIBDIR=$prefix/lib
28221            fi
28222            SQLITE_BINDIR=$prefix/bin
28223         else
28224            { echo "$as_me:$LINENO: result: no" >&5
28225 echo "${ECHO_T}no" >&6; }
28226            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28227 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28228    { (exit 1); exit 1; }; }
28229         fi
28230      else
28231         if test -f $withval/sqlite3.h; then
28232            SQLITE_INCDIR=$withval
28233            SQLITE_LIBDIR=$withval
28234            SQLITE_BINDIR=$withval
28235         elif test -f $withval/include/sqlite3.h; then
28236            SQLITE_INCDIR=$withval/include
28237            if test -d $withval/lib64; then
28238               SQLITE_LIBDIR=$withval/lib64
28239            else
28240               SQLITE_LIBDIR=$withval/lib
28241            fi
28242            SQLITE_BINDIR=$withval/bin
28243         else
28244            { echo "$as_me:$LINENO: result: no" >&5
28245 echo "${ECHO_T}no" >&6; }
28246            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28247 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28248    { (exit 1); exit 1; }; }
28249         fi
28250      fi
28251      SQL_INCLUDE=-I$SQLITE_INCDIR
28252      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28253      SQL_BINDIR=$SQLITE_BINDIR
28254      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28255
28256      cat >>confdefs.h <<\_ACEOF
28257 #define HAVE_SQLITE3 1
28258 _ACEOF
28259
28260      { echo "$as_me:$LINENO: result: yes" >&5
28261 echo "${ECHO_T}yes" >&6; }
28262      db_found=yes
28263      support_sqlite3=yes
28264      db_type=SQLite3
28265      DB_TYPE=sqlite3
28266
28267   else
28268      { echo "$as_me:$LINENO: result: no" >&5
28269 echo "${ECHO_T}no" >&6; }
28270   fi
28271
28272 else
28273
28274   { echo "$as_me:$LINENO: result: no" >&5
28275 echo "${ECHO_T}no" >&6; }
28276
28277 fi
28278
28279
28280
28281
28282
28283
28284
28285
28286 db_found=no
28287 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28288 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28289
28290 # Check whether --with-sqlite was given.
28291 if test "${with_sqlite+set}" = set; then
28292   withval=$with_sqlite;
28293   if test "$withval" != "no"; then
28294      if test "$withval" = "yes"; then
28295         if test -f /usr/local/include/sqlite.h; then
28296            SQLITE_INCDIR=/usr/local/include
28297            if test -d /usr/local/lib64; then
28298               SQLITE_LIBDIR=/usr/local/lib64
28299            else
28300               SQLITE_LIBDIR=/usr/local/lib
28301            fi
28302            SQLITE_BINDIR=/usr/local/bin
28303         elif test -f /usr/include/sqlite.h; then
28304            SQLITE_INCDIR=/usr/include
28305            if test -d /usr/lib64; then
28306               SQLITE_LIBDIR=/usr/lib64
28307            else
28308               SQLITE_LIBDIR=/usr/lib
28309            fi
28310            SQLITE_BINDIR=/usr/bin
28311         elif test -f $prefix/include/sqlite.h; then
28312            SQLITE_INCDIR=$prefix/include
28313            if test -d $prefix/lib64; then
28314               SQLITE_LIBDIR=$prefix/lib64
28315            else
28316               SQLITE_LIBDIR=$prefix/lib
28317            fi
28318            SQLITE_BINDIR=$prefix/bin
28319         else
28320            { echo "$as_me:$LINENO: result: no" >&5
28321 echo "${ECHO_T}no" >&6; }
28322            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28323 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28324    { (exit 1); exit 1; }; }
28325         fi
28326      else
28327         if test -f $withval/sqlite.h; then
28328            SQLITE_INCDIR=$withval
28329            SQLITE_LIBDIR=$withval
28330            SQLITE_BINDIR=$withval
28331         elif test -f $withval/include/sqlite.h; then
28332            SQLITE_INCDIR=$withval/include
28333            if test -d $withval/lib64; then
28334               SQLITE_LIBDIR=$withval/lib64
28335            else
28336               SQLITE_LIBDIR=$withval/lib
28337            fi
28338            SQLITE_BINDIR=$withval/bin
28339         else
28340            { echo "$as_me:$LINENO: result: no" >&5
28341 echo "${ECHO_T}no" >&6; }
28342            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28343 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28344    { (exit 1); exit 1; }; }
28345         fi
28346      fi
28347      SQL_INCLUDE=-I$SQLITE_INCDIR
28348      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28349      SQL_BINDIR=$SQLITE_BINDIR
28350      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28351
28352      cat >>confdefs.h <<\_ACEOF
28353 #define HAVE_SQLITE 1
28354 _ACEOF
28355
28356      { echo "$as_me:$LINENO: result: yes" >&5
28357 echo "${ECHO_T}yes" >&6; }
28358      db_found=yes
28359      support_sqlite=yes
28360      db_type=SQLite
28361      DB_TYPE=sqlite
28362
28363   else
28364      { echo "$as_me:$LINENO: result: no" >&5
28365 echo "${ECHO_T}no" >&6; }
28366   fi
28367
28368 else
28369
28370   { echo "$as_me:$LINENO: result: no" >&5
28371 echo "${ECHO_T}no" >&6; }
28372
28373 fi
28374
28375
28376
28377
28378
28379
28380
28381
28382 db_found=no
28383 { echo "$as_me:$LINENO: checking for DBI support" >&5
28384 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28385
28386 # Check whether --with-dbi was given.
28387 if test "${with_dbi+set}" = set; then
28388   withval=$with_dbi;
28389   if test "$withval" != "no"; then
28390      if test "$withval" = "yes"; then
28391         if test -f /usr/local/include/dbi/dbi.h; then
28392            DBI_INCDIR=/usr/local/dbi/include
28393            if test -d /usr/local/lib64; then
28394               DBI_LIBDIR=/usr/local/lib64
28395            else
28396               DBI_LIBDIR=/usr/local/lib
28397            fi
28398            DBI_BINDIR=/usr/local/bin
28399         elif test -f /usr/include/dbi/dbi.h; then
28400            DBI_INCDIR=/usr/include
28401            if test -d /usr/lib64; then
28402               DBI_LIBDIR=/usr/lib64
28403            else
28404               DBI_LIBDIR=/usr/lib
28405            fi
28406            DBI_BINDIR=/usr/bin
28407         elif test -f $prefix/include/dbi/dbi.h; then
28408            DBI_INCDIR=$prefix/include
28409            if test -d $prefix/lib64; then
28410               DBI_LIBDIR=$prefix/lib64
28411            else
28412               DBI_LIBDIR=$prefix/lib
28413            fi
28414            DBI_BINDIR=$prefix/bin
28415         else
28416            { echo "$as_me:$LINENO: result: no" >&5
28417 echo "${ECHO_T}no" >&6; }
28418            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28419 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28420    { (exit 1); exit 1; }; }
28421         fi
28422         if test -d /usr/local/lib/dbd; then
28423            DRIVERDIR=/usr/local/lib/dbd
28424            if test -d /usr/local/lib64/dbd; then
28425               DRIVERDIR=/usr/local/lib64/dbd
28426            else
28427               DRIVERDIR=/usr/local/lib/dbd
28428            fi
28429         elif test -d /usr/lib/dbd; then
28430            DRIVERDIR=/usr/lib/dbd
28431            if test -d /usr/lib64/dbd; then
28432               DRIVERDIR=/usr/lib64/dbd
28433            else
28434               DRIVERDIR=/usr/lib/dbd
28435            fi
28436         elif test -d $prefix/lib/dbd; then
28437            if test -d $prefix/lib64/dbd; then
28438               DRIVERDIR=$prefix/lib64/dbd
28439            else
28440               DRIVERDIR=$prefix/lib/dbd
28441            fi
28442         else
28443            { echo "$as_me:$LINENO: result: no" >&5
28444 echo "${ECHO_T}no" >&6; }
28445            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28446 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28447    { (exit 1); exit 1; }; }
28448         fi
28449      else
28450         if test -f $withval/dbi.h; then
28451            DBI_INCDIR=$withval
28452            DBI_LIBDIR=$withval
28453            DBI_BINDIR=$withval
28454         elif test -f $withval/include/dbi/dbi.h; then
28455            DBI_INCDIR=$withval/include
28456            if test -d $withval/lib64; then
28457               DBI_LIBDIR=$withval/lib64
28458            else
28459               DBI_LIBDIR=$withval/lib
28460            fi
28461            DBI_BINDIR=$withval/bin
28462         else
28463            { echo "$as_me:$LINENO: result: no" >&5
28464 echo "${ECHO_T}no" >&6; }
28465            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28466 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28467    { (exit 1); exit 1; }; }
28468         fi
28469         if test -d $withval/dbd; then
28470            DRIVERDIR=$withval/dbd
28471         elif test -d $withval/lib/; then
28472            if test -d $withval/lib64/dbd; then
28473               DRIVERDIR=$withval/lib64/dbd
28474            else
28475               DRIVERDIR=$withval/lib/dbd
28476            fi
28477         else
28478            { echo "$as_me:$LINENO: result: no" >&5
28479 echo "${ECHO_T}no" >&6; }
28480            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28481 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28482    { (exit 1); exit 1; }; }
28483         fi
28484      fi
28485      SQL_INCLUDE=-I$DBI_INCDIR
28486      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28487      SQL_BINDIR=$DBI_BINDIR
28488      SQL_LIB=$DBI_LIBDIR/libdbi.a
28489      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28490
28491
28492 cat >>confdefs.h <<\_ACEOF
28493 #define HAVE_DBI 1
28494 _ACEOF
28495
28496      { echo "$as_me:$LINENO: result: yes" >&5
28497 echo "${ECHO_T}yes" >&6; }
28498      db_found=yes
28499      support_dbi=yes
28500      db_type=DBI
28501      DB_TYPE=dbi
28502      uncomment_dbi=" "
28503
28504   else
28505      { echo "$as_me:$LINENO: result: no" >&5
28506 echo "${ECHO_T}no" >&6; }
28507   fi
28508
28509 else
28510
28511   { echo "$as_me:$LINENO: result: no" >&5
28512 echo "${ECHO_T}no" >&6; }
28513
28514 fi
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525 db_found=no
28526 db_prog=no
28527 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28528 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28529
28530 # Check whether --with-dbi-driver was given.
28531 if test "${with_dbi_driver+set}" = set; then
28532   withval=$with_dbi_driver;
28533   if test "$withval" != "no"; then
28534      case $withval in
28535         "mysql")
28536            db_prog="mysql"
28537            if test -f /usr/local/mysql/bin/mysql; then
28538               SQL_BINDIR=/usr/local/mysql/bin
28539               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28540                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28541                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28542               else
28543                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28544               fi
28545            elif test -f /usr/bin/mysql; then
28546               SQL_BINDIR=/usr/bin
28547               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28548                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28549                   SQL_LIBDIR=/usr/lib64/mysql
28550               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28551                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28552                   SQL_LIBDIR=/usr/lib/mysql
28553               else
28554                   SQL_LIBDIR=/usr/lib
28555               fi
28556            elif test -f /usr/local/bin/mysql; then
28557               SQL_BINDIR=/usr/local/bin
28558               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28559                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28560                   SQL_LIBDIR=/usr/local/lib64/mysql
28561               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28562                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28563                   SQL_LIBDIR=/usr/local/lib/mysql
28564               else
28565                   SQL_LIBDIR=/usr/local/lib
28566               fi
28567            elif test -f $withval/bin/mysql; then
28568               SQL_BINDIR=$withval/bin
28569               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28570                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28571                   SQL_LIBDIR=$withval/lib64/mysql
28572               elif test -f $withval/lib64/libmysqlclient_r.a \
28573                   -o -f $withval/lib64/libmysqlclient_r.so; then
28574                   SQL_LIBDIR=$withval/lib64
28575               elif test -f $withval/lib/libmysqlclient_r.a \
28576                   -o -f $withval/lib/libmysqlclient_r.so; then
28577                   SQL_LIBDIR=$withval/lib/
28578               else
28579                   SQL_LIBDIR=$withval/lib/mysql
28580               fi
28581            else
28582               { echo "$as_me:$LINENO: result: no" >&5
28583 echo "${ECHO_T}no" >&6; }
28584               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28585 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28586    { (exit 1); exit 1; }; }
28587            fi
28588            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28589         ;;
28590         "postgresql")
28591            db_prog="postgresql"
28592            PG_CONFIG=`which pg_config`
28593            if test -n "$PG_CONFIG"; then
28594               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28595               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28596            elif test -f /usr/local/bin/psql; then
28597               SQL_BINDIR=/usr/local/bin
28598               if test -d /usr/local/lib64; then
28599                  SQL_LIBDIR=/usr/local/lib64
28600               else
28601                  SQL_LIBDIR=/usr/local/lib
28602               fi
28603            elif test -f /usr/bin/psql; then
28604               SQL_BINDIR=/usr/local/bin
28605               if test -d /usr/lib64/postgresql; then
28606                  SQL_LIBDIR=/usr/lib64/postgresql
28607               elif test -d /usr/lib/postgresql; then
28608                  SQL_LIBDIR=/usr/lib/postgresql
28609               elif test -d /usr/lib64; then
28610                  SQL_LIBDIR=/usr/lib64
28611               else
28612                  SQL_LIBDIR=/usr/lib
28613               fi
28614            elif test -f $withval/bin/psql; then
28615               SQL_BINDIR=$withval/bin
28616               if test -d $withval/lib64; then
28617                  SQL_LIBDIR=$withval/lib64
28618               else
28619                  SQL_LIBDIR=$withval/lib
28620               fi
28621            else
28622               { echo "$as_me:$LINENO: result: no" >&5
28623 echo "${ECHO_T}no" >&6; }
28624               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28625 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28626    { (exit 1); exit 1; }; }
28627            fi
28628            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28629         ;;
28630         "sqlite")
28631            db_prog="sqlite"
28632            if test -f /usr/local/bin/sqlite; then
28633               SQL_BINDIR=/usr/local/bin
28634               if test -d /usr/local/lib64; then
28635                  SQL_LIBDIR=/usr/local/lib64
28636               else
28637                  SQL_LIBDIR=/usr/local/lib
28638               fi
28639            elif test -f /usr/bin/sqlite; then
28640               SQL_BINDIR=/usr/bin
28641               if test -d /usr/lib64; then
28642                  SQL_LIBDIR=/usr/lib64
28643               else
28644                  SQL_LIBDIR=/usr/lib
28645               fi
28646            elif test -f $withval/bin/sqlite; then
28647               SQL_BINDIR=$withval/bin
28648               if test -d $withval/lib64; then
28649                  SQL_LIBDIR=$withval/lib64
28650               else
28651                  SQL_LIBDIR=$withval/lib
28652               fi
28653            else
28654               { echo "$as_me:$LINENO: result: no" >&5
28655 echo "${ECHO_T}no" >&6; }
28656               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28657 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28658    { (exit 1); exit 1; }; }
28659            fi
28660            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28661         ;;
28662         "sqlite3")
28663            db_prog="sqlite3"
28664            if test -f /usr/local/bin/sqlite3; then
28665               SQL_BINDIR=/usr/local/bin
28666               if test -d /usr/local/lib64; then
28667                  SQL_LIBDIR=/usr/local/lib64
28668               else
28669                  SQL_LIBDIR=/usr/local/lib
28670               fi
28671            elif test -f /usr/bin/sqlite3; then
28672               SQL_BINDIR=/usr/bin
28673               if test -d /usr/lib64; then
28674                  SQL_LIBDIR=/usr/lib64
28675               else
28676                  SQL_LIBDIR=/usr/lib
28677               fi
28678            elif test -f $withval/bin/sqlite3; then
28679               SQL_BINDIR=$withval/bin
28680               if test -d $withval/lib64; then
28681                  SQL_LIBDIR=$withval/lib64
28682               else
28683                  SQL_LIBDIR=$withval/lib
28684               fi
28685            else
28686               { echo "$as_me:$LINENO: result: no" >&5
28687 echo "${ECHO_T}no" >&6; }
28688               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28689 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28690    { (exit 1); exit 1; }; }
28691            fi
28692            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28693         ;;
28694         *)
28695            { echo "$as_me:$LINENO: result: no" >&5
28696 echo "${ECHO_T}no" >&6; }
28697            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28698 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28699    { (exit 1); exit 1; }; }
28700         ;;
28701      esac
28702
28703      { echo "$as_me:$LINENO: result: yes" >&5
28704 echo "${ECHO_T}yes" >&6; }
28705      DB_PROG=$db_prog
28706   else
28707      { echo "$as_me:$LINENO: result: no" >&5
28708 echo "${ECHO_T}no" >&6; }
28709   fi
28710
28711 else
28712
28713   { echo "$as_me:$LINENO: result: no" >&5
28714 echo "${ECHO_T}no" >&6; }
28715
28716 fi
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727 support_batch_insert=no
28728 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28729 pkg=$?
28730 if test $pkg = 0; then
28731    support_batch_insert=yes
28732    # Check whether --enable-batch-insert was given.
28733 if test "${enable_batch_insert+set}" = set; then
28734   enableval=$enable_batch_insert;
28735           if test x$enableval = xno; then
28736              support_batch_insert=no
28737           else
28738              support_batch_insert=yes
28739           fi
28740
28741
28742 fi
28743
28744 fi
28745
28746 if test x$DB_TYPE = xpostgresql; then
28747    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28748    pkg=$?
28749    if test $pkg != 0; then
28750       support_batch_insert=no
28751    fi
28752 fi
28753
28754 if test x$DB_TYPE = xdbi; then
28755    DB_TYPE=$DB_PROG
28756    db_type=$DB_PROG
28757    pkg=1
28758       if test $DB_PROG = postgresql; then
28759       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28760       pkg=$?
28761    fi
28762
28763    if test $DB_PROG = mysql; then
28764       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28765       pkg=$?
28766    fi
28767
28768    if test $DB_PROG = sqlite3; then
28769       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28770       pkg=$?
28771    fi
28772
28773    if test $pkg = 0; then
28774       # Check whether --enable-batch-insert was given.
28775 if test "${enable_batch_insert+set}" = set; then
28776   enableval=$enable_batch_insert;
28777              if test x$enableval = xno; then
28778                 support_batch_insert=no
28779              else
28780                 support_batch_insert=yes
28781              fi
28782
28783
28784 fi
28785
28786    fi
28787 else
28788       uncomment_dbi="#"
28789 fi
28790
28791
28792
28793 if test $support_batch_insert = yes ; then
28794
28795 cat >>confdefs.h <<\_ACEOF
28796 #define HAVE_BATCH_FILE_INSERT 1
28797 _ACEOF
28798
28799 fi
28800
28801 cat >>confdefs.h <<\_ACEOF
28802 #define PROTOTYPES 1
28803 _ACEOF
28804
28805
28806 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28807    if test -z "$CCOPTS"; then
28808       CCOPTS='-g -O2 -Wall'
28809    fi
28810    CFLAGS="$CCOPTS"
28811 fi
28812
28813
28814
28815 largefile_support="no"
28816
28817    # Check whether --enable-largefile was given.
28818 if test "${enable_largefile+set}" = set; then
28819   enableval=$enable_largefile;
28820 fi
28821
28822    if test "$enable_largefile" != no; then
28823      if test -n "$ac_tool_prefix"; then
28824   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28825 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28828 if test "${ac_cv_prog_GETCONF+set}" = set; then
28829   echo $ECHO_N "(cached) $ECHO_C" >&6
28830 else
28831   if test -n "$GETCONF"; then
28832   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28833 else
28834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28835 for as_dir in $PATH
28836 do
28837   IFS=$as_save_IFS
28838   test -z "$as_dir" && as_dir=.
28839   for ac_exec_ext in '' $ac_executable_extensions; do
28840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28841     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28843     break 2
28844   fi
28845 done
28846 done
28847 IFS=$as_save_IFS
28848
28849 fi
28850 fi
28851 GETCONF=$ac_cv_prog_GETCONF
28852 if test -n "$GETCONF"; then
28853   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28854 echo "${ECHO_T}$GETCONF" >&6; }
28855 else
28856   { echo "$as_me:$LINENO: result: no" >&5
28857 echo "${ECHO_T}no" >&6; }
28858 fi
28859
28860
28861 fi
28862 if test -z "$ac_cv_prog_GETCONF"; then
28863   ac_ct_GETCONF=$GETCONF
28864   # Extract the first word of "getconf", so it can be a program name with args.
28865 set dummy getconf; ac_word=$2
28866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28868 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28869   echo $ECHO_N "(cached) $ECHO_C" >&6
28870 else
28871   if test -n "$ac_ct_GETCONF"; then
28872   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28873 else
28874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28875 for as_dir in $PATH
28876 do
28877   IFS=$as_save_IFS
28878   test -z "$as_dir" && as_dir=.
28879   for ac_exec_ext in '' $ac_executable_extensions; do
28880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28881     ac_cv_prog_ac_ct_GETCONF="getconf"
28882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28883     break 2
28884   fi
28885 done
28886 done
28887 IFS=$as_save_IFS
28888
28889 fi
28890 fi
28891 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28892 if test -n "$ac_ct_GETCONF"; then
28893   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28894 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28895 else
28896   { echo "$as_me:$LINENO: result: no" >&5
28897 echo "${ECHO_T}no" >&6; }
28898 fi
28899
28900   if test "x$ac_ct_GETCONF" = x; then
28901     GETCONF=""
28902   else
28903     case $cross_compiling:$ac_tool_warned in
28904 yes:)
28905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28906 whose name does not start with the host triplet.  If you think this
28907 configuration is useful to you, please write to autoconf@gnu.org." >&5
28908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28909 whose name does not start with the host triplet.  If you think this
28910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28911 ac_tool_warned=yes ;;
28912 esac
28913     GETCONF=$ac_ct_GETCONF
28914   fi
28915 else
28916   GETCONF="$ac_cv_prog_GETCONF"
28917 fi
28918
28919      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28920 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28921 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28922   echo $ECHO_N "(cached) $ECHO_C" >&6
28923 else
28924   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28925         ac_cv_sys_largefile_CFLAGS=no
28926         case "$host_os" in
28927            # IRIX 6.2 and later require cc -n32.
28928            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28929              if test "$GCC" != yes; then
28930                ac_cv_sys_largefile_CFLAGS=-n32
28931              fi
28932              ac_save_CC="$CC"
28933              CC="$CC $ac_cv_sys_largefile_CFLAGS"
28934              cat >conftest.$ac_ext <<_ACEOF
28935 /* confdefs.h.  */
28936 _ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h.  */
28940
28941 int
28942 main ()
28943 {
28944
28945   ;
28946   return 0;
28947 }
28948 _ACEOF
28949 rm -f conftest.$ac_objext conftest$ac_exeext
28950 if { (ac_try="$ac_link"
28951 case "(($ac_try" in
28952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953   *) ac_try_echo=$ac_try;;
28954 esac
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956   (eval "$ac_link") 2>conftest.er1
28957   ac_status=$?
28958   grep -v '^ *+' conftest.er1 >conftest.err
28959   rm -f conftest.er1
28960   cat conftest.err >&5
28961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962   (exit $ac_status); } && {
28963          test -z "$ac_c_werror_flag" ||
28964          test ! -s conftest.err
28965        } && test -s conftest$ac_exeext &&
28966        $as_test_x conftest$ac_exeext; then
28967   :
28968 else
28969   echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.$ac_ext >&5
28971
28972         ac_cv_sys_largefile_CFLAGS=no
28973 fi
28974
28975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28976       conftest$ac_exeext conftest.$ac_ext
28977              CC="$ac_save_CC"
28978            esac
28979       }
28980 fi
28981 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28982 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28983      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28984 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28985 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28986   echo $ECHO_N "(cached) $ECHO_C" >&6
28987 else
28988   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28989         ac_cv_sys_largefile_LDFLAGS=no
28990
28991       }
28992 fi
28993 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28994 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28995      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28996 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
28997 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
28998   echo $ECHO_N "(cached) $ECHO_C" >&6
28999 else
29000   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29001         ac_cv_sys_largefile_LIBS=no
29002
29003       }
29004 fi
29005 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29006 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29007
29008      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29009        case "$ac_flag" in
29010        no) ;;
29011        -D_FILE_OFFSET_BITS=*) ;;
29012        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29013        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29014        -D?* | -I?*)
29015          case "$ac_flag" in
29016    no) ;;
29017    ?*)
29018      case "$CPPFLAGS" in
29019      '') CPPFLAGS="$ac_flag" ;;
29020      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29021      esac ;;
29022    esac ;;
29023        *)
29024          case "$ac_flag" in
29025    no) ;;
29026    ?*)
29027      case "$CFLAGS" in
29028      '') CFLAGS="$ac_flag" ;;
29029      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29030      esac ;;
29031    esac ;;
29032        esac
29033      done
29034      case "$ac_cv_sys_largefile_LDFLAGS" in
29035    no) ;;
29036    ?*)
29037      case "$LDFLAGS" in
29038      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29039      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29040      esac ;;
29041    esac
29042      case "$ac_cv_sys_largefile_LIBS" in
29043    no) ;;
29044    ?*)
29045      case "$LIBS" in
29046      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29047      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29048      esac ;;
29049    esac
29050      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29051 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29052 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29053   echo $ECHO_N "(cached) $ECHO_C" >&6
29054 else
29055   ac_cv_sys_file_offset_bits=no
29056       ac_cv_sys_file_offset_bits=64
29057       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29058         case "$ac_flag" in
29059         -D_FILE_OFFSET_BITS)
29060           ac_cv_sys_file_offset_bits=1 ;;
29061         -D_FILE_OFFSET_BITS=*)
29062           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29063         esac
29064       done
29065
29066 fi
29067 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29068 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29069    if test "$ac_cv_sys_file_offset_bits" != no; then
29070
29071 cat >>confdefs.h <<_ACEOF
29072 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29073 _ACEOF
29074
29075    fi
29076      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29077 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29078 if test "${ac_cv_sys_largefile_source+set}" = set; then
29079   echo $ECHO_N "(cached) $ECHO_C" >&6
29080 else
29081   ac_cv_sys_largefile_source=no
29082       ac_cv_sys_largefile_source=1
29083       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29084         case "$ac_flag" in
29085         -D_LARGEFILE_SOURCE)
29086           ac_cv_sys_largefile_source=1 ;;
29087         -D_LARGEFILE_SOURCE=*)
29088           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29089         esac
29090       done
29091
29092 fi
29093 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29094 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29095    if test "$ac_cv_sys_largefile_source" != no; then
29096
29097 cat >>confdefs.h <<_ACEOF
29098 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29099 _ACEOF
29100
29101    fi
29102      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29103 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29104 if test "${ac_cv_sys_large_files+set}" = set; then
29105   echo $ECHO_N "(cached) $ECHO_C" >&6
29106 else
29107   ac_cv_sys_large_files=no
29108       ac_cv_sys_large_files=1
29109       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29110         case "$ac_flag" in
29111         -D_LARGE_FILES)
29112           ac_cv_sys_large_files=1 ;;
29113         -D_LARGE_FILES=*)
29114           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29115         esac
29116       done
29117
29118 fi
29119 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29120 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29121    if test "$ac_cv_sys_large_files" != no; then
29122
29123 cat >>confdefs.h <<_ACEOF
29124 #define _LARGE_FILES $ac_cv_sys_large_files
29125 _ACEOF
29126
29127    fi
29128    fi
29129
29130
29131 { echo "$as_me:$LINENO: checking for X" >&5
29132 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29133
29134
29135 # Check whether --with-x was given.
29136 if test "${with_x+set}" = set; then
29137   withval=$with_x;
29138 fi
29139
29140 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29141 if test "x$with_x" = xno; then
29142   # The user explicitly disabled X.
29143   have_x=disabled
29144 else
29145   case $x_includes,$x_libraries in #(
29146     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29147 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29148    { (exit 1); exit 1; }; };; #(
29149     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29150   echo $ECHO_N "(cached) $ECHO_C" >&6
29151 else
29152   # One or both of the vars are not set, and there is no cached value.
29153 ac_x_includes=no ac_x_libraries=no
29154 rm -f -r conftest.dir
29155 if mkdir conftest.dir; then
29156   cd conftest.dir
29157   cat >Imakefile <<'_ACEOF'
29158 incroot:
29159         @echo incroot='${INCROOT}'
29160 usrlibdir:
29161         @echo usrlibdir='${USRLIBDIR}'
29162 libdir:
29163         @echo libdir='${LIBDIR}'
29164 _ACEOF
29165   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29166     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29167     for ac_var in incroot usrlibdir libdir; do
29168       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29169     done
29170     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29171     for ac_extension in a so sl; do
29172       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29173          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29174         ac_im_usrlibdir=$ac_im_libdir; break
29175       fi
29176     done
29177     # Screen out bogus values from the imake configuration.  They are
29178     # bogus both because they are the default anyway, and because
29179     # using them would break gcc on systems where it needs fixed includes.
29180     case $ac_im_incroot in
29181         /usr/include) ac_x_includes= ;;
29182         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29183     esac
29184     case $ac_im_usrlibdir in
29185         /usr/lib | /lib) ;;
29186         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29187     esac
29188   fi
29189   cd ..
29190   rm -f -r conftest.dir
29191 fi
29192
29193 # Standard set of common directories for X headers.
29194 # Check X11 before X11Rn because it is often a symlink to the current release.
29195 ac_x_header_dirs='
29196 /usr/X11/include
29197 /usr/X11R6/include
29198 /usr/X11R5/include
29199 /usr/X11R4/include
29200
29201 /usr/include/X11
29202 /usr/include/X11R6
29203 /usr/include/X11R5
29204 /usr/include/X11R4
29205
29206 /usr/local/X11/include
29207 /usr/local/X11R6/include
29208 /usr/local/X11R5/include
29209 /usr/local/X11R4/include
29210
29211 /usr/local/include/X11
29212 /usr/local/include/X11R6
29213 /usr/local/include/X11R5
29214 /usr/local/include/X11R4
29215
29216 /usr/X386/include
29217 /usr/x386/include
29218 /usr/XFree86/include/X11
29219
29220 /usr/include
29221 /usr/local/include
29222 /usr/unsupported/include
29223 /usr/athena/include
29224 /usr/local/x11r5/include
29225 /usr/lpp/Xamples/include
29226
29227 /usr/openwin/include
29228 /usr/openwin/share/include'
29229
29230 if test "$ac_x_includes" = no; then
29231   # Guess where to find include files, by looking for Xlib.h.
29232   # First, try using that file with no special directory specified.
29233   cat >conftest.$ac_ext <<_ACEOF
29234 /* confdefs.h.  */
29235 _ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h.  */
29239 #include <X11/Xlib.h>
29240 _ACEOF
29241 if { (ac_try="$ac_cpp conftest.$ac_ext"
29242 case "(($ac_try" in
29243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244   *) ac_try_echo=$ac_try;;
29245 esac
29246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29248   ac_status=$?
29249   grep -v '^ *+' conftest.er1 >conftest.err
29250   rm -f conftest.er1
29251   cat conftest.err >&5
29252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253   (exit $ac_status); } >/dev/null && {
29254          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29255          test ! -s conftest.err
29256        }; then
29257   # We can compile using X headers with no special include directory.
29258 ac_x_includes=
29259 else
29260   echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.$ac_ext >&5
29262
29263   for ac_dir in $ac_x_header_dirs; do
29264   if test -r "$ac_dir/X11/Xlib.h"; then
29265     ac_x_includes=$ac_dir
29266     break
29267   fi
29268 done
29269 fi
29270
29271 rm -f conftest.err conftest.$ac_ext
29272 fi # $ac_x_includes = no
29273
29274 if test "$ac_x_libraries" = no; then
29275   # Check for the libraries.
29276   # See if we find them without any special options.
29277   # Don't add to $LIBS permanently.
29278   ac_save_LIBS=$LIBS
29279   LIBS="-lX11 $LIBS"
29280   cat >conftest.$ac_ext <<_ACEOF
29281 /* confdefs.h.  */
29282 _ACEOF
29283 cat confdefs.h >>conftest.$ac_ext
29284 cat >>conftest.$ac_ext <<_ACEOF
29285 /* end confdefs.h.  */
29286 #include <X11/Xlib.h>
29287 int
29288 main ()
29289 {
29290 XrmInitialize ()
29291   ;
29292   return 0;
29293 }
29294 _ACEOF
29295 rm -f conftest.$ac_objext conftest$ac_exeext
29296 if { (ac_try="$ac_link"
29297 case "(($ac_try" in
29298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299   *) ac_try_echo=$ac_try;;
29300 esac
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302   (eval "$ac_link") 2>conftest.er1
29303   ac_status=$?
29304   grep -v '^ *+' conftest.er1 >conftest.err
29305   rm -f conftest.er1
29306   cat conftest.err >&5
29307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308   (exit $ac_status); } && {
29309          test -z "$ac_c_werror_flag" ||
29310          test ! -s conftest.err
29311        } && test -s conftest$ac_exeext &&
29312        $as_test_x conftest$ac_exeext; then
29313   LIBS=$ac_save_LIBS
29314 # We can link X programs with no special library path.
29315 ac_x_libraries=
29316 else
29317   echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29319
29320         LIBS=$ac_save_LIBS
29321 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29322 do
29323   # Don't even attempt the hair of trying to link an X program!
29324   for ac_extension in a so sl; do
29325     if test -r "$ac_dir/libX11.$ac_extension"; then
29326       ac_x_libraries=$ac_dir
29327       break 2
29328     fi
29329   done
29330 done
29331 fi
29332
29333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29334       conftest$ac_exeext conftest.$ac_ext
29335 fi # $ac_x_libraries = no
29336
29337 case $ac_x_includes,$ac_x_libraries in #(
29338   no,* | *,no | *\'*)
29339     # Didn't find X, or a directory has "'" in its name.
29340     ac_cv_have_x="have_x=no";; #(
29341   *)
29342     # Record where we found X for the cache.
29343     ac_cv_have_x="have_x=yes\
29344         ac_x_includes='$ac_x_includes'\
29345         ac_x_libraries='$ac_x_libraries'"
29346 esac
29347 fi
29348 ;; #(
29349     *) have_x=yes;;
29350   esac
29351   eval "$ac_cv_have_x"
29352 fi # $with_x != no
29353
29354 if test "$have_x" != yes; then
29355   { echo "$as_me:$LINENO: result: $have_x" >&5
29356 echo "${ECHO_T}$have_x" >&6; }
29357   no_x=yes
29358 else
29359   # If each of the values was on the command line, it overrides each guess.
29360   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29361   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29362   # Update the cache value to reflect the command line values.
29363   ac_cv_have_x="have_x=yes\
29364         ac_x_includes='$x_includes'\
29365         ac_x_libraries='$x_libraries'"
29366   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29367 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29368 fi
29369
29370 if test "$no_x" = yes; then
29371   # Not all programs may use this symbol, but it does not hurt to define it.
29372
29373 cat >>confdefs.h <<\_ACEOF
29374 #define X_DISPLAY_MISSING 1
29375 _ACEOF
29376
29377   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29378 else
29379   if test -n "$x_includes"; then
29380     X_CFLAGS="$X_CFLAGS -I$x_includes"
29381   fi
29382
29383   # It would also be nice to do this for all -L options, not just this one.
29384   if test -n "$x_libraries"; then
29385     X_LIBS="$X_LIBS -L$x_libraries"
29386     # For Solaris; some versions of Sun CC require a space after -R and
29387     # others require no space.  Words are not sufficient . . . .
29388     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29389 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29390     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29391     ac_xsave_c_werror_flag=$ac_c_werror_flag
29392     ac_c_werror_flag=yes
29393     cat >conftest.$ac_ext <<_ACEOF
29394 /* confdefs.h.  */
29395 _ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h.  */
29399
29400 int
29401 main ()
29402 {
29403
29404   ;
29405   return 0;
29406 }
29407 _ACEOF
29408 rm -f conftest.$ac_objext conftest$ac_exeext
29409 if { (ac_try="$ac_link"
29410 case "(($ac_try" in
29411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29412   *) ac_try_echo=$ac_try;;
29413 esac
29414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29415   (eval "$ac_link") 2>conftest.er1
29416   ac_status=$?
29417   grep -v '^ *+' conftest.er1 >conftest.err
29418   rm -f conftest.er1
29419   cat conftest.err >&5
29420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421   (exit $ac_status); } && {
29422          test -z "$ac_c_werror_flag" ||
29423          test ! -s conftest.err
29424        } && test -s conftest$ac_exeext &&
29425        $as_test_x conftest$ac_exeext; then
29426   { echo "$as_me:$LINENO: result: no" >&5
29427 echo "${ECHO_T}no" >&6; }
29428        X_LIBS="$X_LIBS -R$x_libraries"
29429 else
29430   echo "$as_me: failed program was:" >&5
29431 sed 's/^/| /' conftest.$ac_ext >&5
29432
29433         LIBS="$ac_xsave_LIBS -R $x_libraries"
29434        cat >conftest.$ac_ext <<_ACEOF
29435 /* confdefs.h.  */
29436 _ACEOF
29437 cat confdefs.h >>conftest.$ac_ext
29438 cat >>conftest.$ac_ext <<_ACEOF
29439 /* end confdefs.h.  */
29440
29441 int
29442 main ()
29443 {
29444
29445   ;
29446   return 0;
29447 }
29448 _ACEOF
29449 rm -f conftest.$ac_objext conftest$ac_exeext
29450 if { (ac_try="$ac_link"
29451 case "(($ac_try" in
29452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453   *) ac_try_echo=$ac_try;;
29454 esac
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456   (eval "$ac_link") 2>conftest.er1
29457   ac_status=$?
29458   grep -v '^ *+' conftest.er1 >conftest.err
29459   rm -f conftest.er1
29460   cat conftest.err >&5
29461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462   (exit $ac_status); } && {
29463          test -z "$ac_c_werror_flag" ||
29464          test ! -s conftest.err
29465        } && test -s conftest$ac_exeext &&
29466        $as_test_x conftest$ac_exeext; then
29467   { echo "$as_me:$LINENO: result: yes" >&5
29468 echo "${ECHO_T}yes" >&6; }
29469           X_LIBS="$X_LIBS -R $x_libraries"
29470 else
29471   echo "$as_me: failed program was:" >&5
29472 sed 's/^/| /' conftest.$ac_ext >&5
29473
29474         { echo "$as_me:$LINENO: result: neither works" >&5
29475 echo "${ECHO_T}neither works" >&6; }
29476 fi
29477
29478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29479       conftest$ac_exeext conftest.$ac_ext
29480 fi
29481
29482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29483       conftest$ac_exeext conftest.$ac_ext
29484     ac_c_werror_flag=$ac_xsave_c_werror_flag
29485     LIBS=$ac_xsave_LIBS
29486   fi
29487
29488   # Check for system-dependent libraries X programs must link with.
29489   # Do this before checking for the system-independent R6 libraries
29490   # (-lICE), since we may need -lsocket or whatever for X linking.
29491
29492   if test "$ISC" = yes; then
29493     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29494   else
29495     # Martyn Johnson says this is needed for Ultrix, if the X
29496     # libraries were built with DECnet support.  And Karl Berry says
29497     # the Alpha needs dnet_stub (dnet does not exist).
29498     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29499     cat >conftest.$ac_ext <<_ACEOF
29500 /* confdefs.h.  */
29501 _ACEOF
29502 cat confdefs.h >>conftest.$ac_ext
29503 cat >>conftest.$ac_ext <<_ACEOF
29504 /* end confdefs.h.  */
29505
29506 /* Override any GCC internal prototype to avoid an error.
29507    Use char because int might match the return type of a GCC
29508    builtin and then its argument prototype would still apply.  */
29509 #ifdef __cplusplus
29510 extern "C"
29511 #endif
29512 char XOpenDisplay ();
29513 int
29514 main ()
29515 {
29516 return XOpenDisplay ();
29517   ;
29518   return 0;
29519 }
29520 _ACEOF
29521 rm -f conftest.$ac_objext conftest$ac_exeext
29522 if { (ac_try="$ac_link"
29523 case "(($ac_try" in
29524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29525   *) ac_try_echo=$ac_try;;
29526 esac
29527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29528   (eval "$ac_link") 2>conftest.er1
29529   ac_status=$?
29530   grep -v '^ *+' conftest.er1 >conftest.err
29531   rm -f conftest.er1
29532   cat conftest.err >&5
29533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534   (exit $ac_status); } && {
29535          test -z "$ac_c_werror_flag" ||
29536          test ! -s conftest.err
29537        } && test -s conftest$ac_exeext &&
29538        $as_test_x conftest$ac_exeext; then
29539   :
29540 else
29541   echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29543
29544         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29545 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29546 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29547   echo $ECHO_N "(cached) $ECHO_C" >&6
29548 else
29549   ac_check_lib_save_LIBS=$LIBS
29550 LIBS="-ldnet  $LIBS"
29551 cat >conftest.$ac_ext <<_ACEOF
29552 /* confdefs.h.  */
29553 _ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h.  */
29557
29558 /* Override any GCC internal prototype to avoid an error.
29559    Use char because int might match the return type of a GCC
29560    builtin and then its argument prototype would still apply.  */
29561 #ifdef __cplusplus
29562 extern "C"
29563 #endif
29564 char dnet_ntoa ();
29565 int
29566 main ()
29567 {
29568 return dnet_ntoa ();
29569   ;
29570   return 0;
29571 }
29572 _ACEOF
29573 rm -f conftest.$ac_objext conftest$ac_exeext
29574 if { (ac_try="$ac_link"
29575 case "(($ac_try" in
29576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577   *) ac_try_echo=$ac_try;;
29578 esac
29579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580   (eval "$ac_link") 2>conftest.er1
29581   ac_status=$?
29582   grep -v '^ *+' conftest.er1 >conftest.err
29583   rm -f conftest.er1
29584   cat conftest.err >&5
29585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586   (exit $ac_status); } && {
29587          test -z "$ac_c_werror_flag" ||
29588          test ! -s conftest.err
29589        } && test -s conftest$ac_exeext &&
29590        $as_test_x conftest$ac_exeext; then
29591   ac_cv_lib_dnet_dnet_ntoa=yes
29592 else
29593   echo "$as_me: failed program was:" >&5
29594 sed 's/^/| /' conftest.$ac_ext >&5
29595
29596         ac_cv_lib_dnet_dnet_ntoa=no
29597 fi
29598
29599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29600       conftest$ac_exeext conftest.$ac_ext
29601 LIBS=$ac_check_lib_save_LIBS
29602 fi
29603 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29604 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29605 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29606   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29607 fi
29608
29609     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29610       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29611 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29612 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29613   echo $ECHO_N "(cached) $ECHO_C" >&6
29614 else
29615   ac_check_lib_save_LIBS=$LIBS
29616 LIBS="-ldnet_stub  $LIBS"
29617 cat >conftest.$ac_ext <<_ACEOF
29618 /* confdefs.h.  */
29619 _ACEOF
29620 cat confdefs.h >>conftest.$ac_ext
29621 cat >>conftest.$ac_ext <<_ACEOF
29622 /* end confdefs.h.  */
29623
29624 /* Override any GCC internal prototype to avoid an error.
29625    Use char because int might match the return type of a GCC
29626    builtin and then its argument prototype would still apply.  */
29627 #ifdef __cplusplus
29628 extern "C"
29629 #endif
29630 char dnet_ntoa ();
29631 int
29632 main ()
29633 {
29634 return dnet_ntoa ();
29635   ;
29636   return 0;
29637 }
29638 _ACEOF
29639 rm -f conftest.$ac_objext conftest$ac_exeext
29640 if { (ac_try="$ac_link"
29641 case "(($ac_try" in
29642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29643   *) ac_try_echo=$ac_try;;
29644 esac
29645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29646   (eval "$ac_link") 2>conftest.er1
29647   ac_status=$?
29648   grep -v '^ *+' conftest.er1 >conftest.err
29649   rm -f conftest.er1
29650   cat conftest.err >&5
29651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652   (exit $ac_status); } && {
29653          test -z "$ac_c_werror_flag" ||
29654          test ! -s conftest.err
29655        } && test -s conftest$ac_exeext &&
29656        $as_test_x conftest$ac_exeext; then
29657   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29658 else
29659   echo "$as_me: failed program was:" >&5
29660 sed 's/^/| /' conftest.$ac_ext >&5
29661
29662         ac_cv_lib_dnet_stub_dnet_ntoa=no
29663 fi
29664
29665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29666       conftest$ac_exeext conftest.$ac_ext
29667 LIBS=$ac_check_lib_save_LIBS
29668 fi
29669 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29670 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29671 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29672   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29673 fi
29674
29675     fi
29676 fi
29677
29678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29679       conftest$ac_exeext conftest.$ac_ext
29680     LIBS="$ac_xsave_LIBS"
29681
29682     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29683     # to get the SysV transport functions.
29684     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29685     # needs -lnsl.
29686     # The nsl library prevents programs from opening the X display
29687     # on Irix 5.2, according to T.E. Dickey.
29688     # The functions gethostbyname, getservbyname, and inet_addr are
29689     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29690     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29691 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29692 if test "${ac_cv_func_gethostbyname+set}" = set; then
29693   echo $ECHO_N "(cached) $ECHO_C" >&6
29694 else
29695   cat >conftest.$ac_ext <<_ACEOF
29696 /* confdefs.h.  */
29697 _ACEOF
29698 cat confdefs.h >>conftest.$ac_ext
29699 cat >>conftest.$ac_ext <<_ACEOF
29700 /* end confdefs.h.  */
29701 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29703 #define gethostbyname innocuous_gethostbyname
29704
29705 /* System header to define __stub macros and hopefully few prototypes,
29706     which can conflict with char gethostbyname (); below.
29707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29708     <limits.h> exists even on freestanding compilers.  */
29709
29710 #ifdef __STDC__
29711 # include <limits.h>
29712 #else
29713 # include <assert.h>
29714 #endif
29715
29716 #undef gethostbyname
29717
29718 /* Override any GCC internal prototype to avoid an error.
29719    Use char because int might match the return type of a GCC
29720    builtin and then its argument prototype would still apply.  */
29721 #ifdef __cplusplus
29722 extern "C"
29723 #endif
29724 char gethostbyname ();
29725 /* The GNU C library defines this for functions which it implements
29726     to always fail with ENOSYS.  Some functions are actually named
29727     something starting with __ and the normal name is an alias.  */
29728 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29729 choke me
29730 #endif
29731
29732 int
29733 main ()
29734 {
29735 return gethostbyname ();
29736   ;
29737   return 0;
29738 }
29739 _ACEOF
29740 rm -f conftest.$ac_objext conftest$ac_exeext
29741 if { (ac_try="$ac_link"
29742 case "(($ac_try" in
29743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744   *) ac_try_echo=$ac_try;;
29745 esac
29746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29747   (eval "$ac_link") 2>conftest.er1
29748   ac_status=$?
29749   grep -v '^ *+' conftest.er1 >conftest.err
29750   rm -f conftest.er1
29751   cat conftest.err >&5
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); } && {
29754          test -z "$ac_c_werror_flag" ||
29755          test ! -s conftest.err
29756        } && test -s conftest$ac_exeext &&
29757        $as_test_x conftest$ac_exeext; then
29758   ac_cv_func_gethostbyname=yes
29759 else
29760   echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29762
29763         ac_cv_func_gethostbyname=no
29764 fi
29765
29766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29767       conftest$ac_exeext conftest.$ac_ext
29768 fi
29769 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29770 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29771
29772     if test $ac_cv_func_gethostbyname = no; then
29773       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29774 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29775 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29776   echo $ECHO_N "(cached) $ECHO_C" >&6
29777 else
29778   ac_check_lib_save_LIBS=$LIBS
29779 LIBS="-lnsl  $LIBS"
29780 cat >conftest.$ac_ext <<_ACEOF
29781 /* confdefs.h.  */
29782 _ACEOF
29783 cat confdefs.h >>conftest.$ac_ext
29784 cat >>conftest.$ac_ext <<_ACEOF
29785 /* end confdefs.h.  */
29786
29787 /* Override any GCC internal prototype to avoid an error.
29788    Use char because int might match the return type of a GCC
29789    builtin and then its argument prototype would still apply.  */
29790 #ifdef __cplusplus
29791 extern "C"
29792 #endif
29793 char gethostbyname ();
29794 int
29795 main ()
29796 {
29797 return gethostbyname ();
29798   ;
29799   return 0;
29800 }
29801 _ACEOF
29802 rm -f conftest.$ac_objext conftest$ac_exeext
29803 if { (ac_try="$ac_link"
29804 case "(($ac_try" in
29805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806   *) ac_try_echo=$ac_try;;
29807 esac
29808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29809   (eval "$ac_link") 2>conftest.er1
29810   ac_status=$?
29811   grep -v '^ *+' conftest.er1 >conftest.err
29812   rm -f conftest.er1
29813   cat conftest.err >&5
29814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815   (exit $ac_status); } && {
29816          test -z "$ac_c_werror_flag" ||
29817          test ! -s conftest.err
29818        } && test -s conftest$ac_exeext &&
29819        $as_test_x conftest$ac_exeext; then
29820   ac_cv_lib_nsl_gethostbyname=yes
29821 else
29822   echo "$as_me: failed program was:" >&5
29823 sed 's/^/| /' conftest.$ac_ext >&5
29824
29825         ac_cv_lib_nsl_gethostbyname=no
29826 fi
29827
29828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29829       conftest$ac_exeext conftest.$ac_ext
29830 LIBS=$ac_check_lib_save_LIBS
29831 fi
29832 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29833 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29834 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29835   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29836 fi
29837
29838       if test $ac_cv_lib_nsl_gethostbyname = no; then
29839         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29840 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29841 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29842   echo $ECHO_N "(cached) $ECHO_C" >&6
29843 else
29844   ac_check_lib_save_LIBS=$LIBS
29845 LIBS="-lbsd  $LIBS"
29846 cat >conftest.$ac_ext <<_ACEOF
29847 /* confdefs.h.  */
29848 _ACEOF
29849 cat confdefs.h >>conftest.$ac_ext
29850 cat >>conftest.$ac_ext <<_ACEOF
29851 /* end confdefs.h.  */
29852
29853 /* Override any GCC internal prototype to avoid an error.
29854    Use char because int might match the return type of a GCC
29855    builtin and then its argument prototype would still apply.  */
29856 #ifdef __cplusplus
29857 extern "C"
29858 #endif
29859 char gethostbyname ();
29860 int
29861 main ()
29862 {
29863 return gethostbyname ();
29864   ;
29865   return 0;
29866 }
29867 _ACEOF
29868 rm -f conftest.$ac_objext conftest$ac_exeext
29869 if { (ac_try="$ac_link"
29870 case "(($ac_try" in
29871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29872   *) ac_try_echo=$ac_try;;
29873 esac
29874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875   (eval "$ac_link") 2>conftest.er1
29876   ac_status=$?
29877   grep -v '^ *+' conftest.er1 >conftest.err
29878   rm -f conftest.er1
29879   cat conftest.err >&5
29880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881   (exit $ac_status); } && {
29882          test -z "$ac_c_werror_flag" ||
29883          test ! -s conftest.err
29884        } && test -s conftest$ac_exeext &&
29885        $as_test_x conftest$ac_exeext; then
29886   ac_cv_lib_bsd_gethostbyname=yes
29887 else
29888   echo "$as_me: failed program was:" >&5
29889 sed 's/^/| /' conftest.$ac_ext >&5
29890
29891         ac_cv_lib_bsd_gethostbyname=no
29892 fi
29893
29894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29895       conftest$ac_exeext conftest.$ac_ext
29896 LIBS=$ac_check_lib_save_LIBS
29897 fi
29898 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29899 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29900 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29901   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29902 fi
29903
29904       fi
29905     fi
29906
29907     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29908     # socket/setsockopt and other routines are undefined under SCO ODT
29909     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29910     # on later versions), says Simon Leinen: it contains gethostby*
29911     # variants that don't use the name server (or something).  -lsocket
29912     # must be given before -lnsl if both are needed.  We assume that
29913     # if connect needs -lnsl, so does gethostbyname.
29914     { echo "$as_me:$LINENO: checking for connect" >&5
29915 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29916 if test "${ac_cv_func_connect+set}" = set; then
29917   echo $ECHO_N "(cached) $ECHO_C" >&6
29918 else
29919   cat >conftest.$ac_ext <<_ACEOF
29920 /* confdefs.h.  */
29921 _ACEOF
29922 cat confdefs.h >>conftest.$ac_ext
29923 cat >>conftest.$ac_ext <<_ACEOF
29924 /* end confdefs.h.  */
29925 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29927 #define connect innocuous_connect
29928
29929 /* System header to define __stub macros and hopefully few prototypes,
29930     which can conflict with char connect (); below.
29931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29932     <limits.h> exists even on freestanding compilers.  */
29933
29934 #ifdef __STDC__
29935 # include <limits.h>
29936 #else
29937 # include <assert.h>
29938 #endif
29939
29940 #undef connect
29941
29942 /* Override any GCC internal prototype to avoid an error.
29943    Use char because int might match the return type of a GCC
29944    builtin and then its argument prototype would still apply.  */
29945 #ifdef __cplusplus
29946 extern "C"
29947 #endif
29948 char connect ();
29949 /* The GNU C library defines this for functions which it implements
29950     to always fail with ENOSYS.  Some functions are actually named
29951     something starting with __ and the normal name is an alias.  */
29952 #if defined __stub_connect || defined __stub___connect
29953 choke me
29954 #endif
29955
29956 int
29957 main ()
29958 {
29959 return connect ();
29960   ;
29961   return 0;
29962 }
29963 _ACEOF
29964 rm -f conftest.$ac_objext conftest$ac_exeext
29965 if { (ac_try="$ac_link"
29966 case "(($ac_try" in
29967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968   *) ac_try_echo=$ac_try;;
29969 esac
29970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971   (eval "$ac_link") 2>conftest.er1
29972   ac_status=$?
29973   grep -v '^ *+' conftest.er1 >conftest.err
29974   rm -f conftest.er1
29975   cat conftest.err >&5
29976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977   (exit $ac_status); } && {
29978          test -z "$ac_c_werror_flag" ||
29979          test ! -s conftest.err
29980        } && test -s conftest$ac_exeext &&
29981        $as_test_x conftest$ac_exeext; then
29982   ac_cv_func_connect=yes
29983 else
29984   echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.$ac_ext >&5
29986
29987         ac_cv_func_connect=no
29988 fi
29989
29990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29991       conftest$ac_exeext conftest.$ac_ext
29992 fi
29993 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29994 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29995
29996     if test $ac_cv_func_connect = no; then
29997       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29998 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
29999 if test "${ac_cv_lib_socket_connect+set}" = set; then
30000   echo $ECHO_N "(cached) $ECHO_C" >&6
30001 else
30002   ac_check_lib_save_LIBS=$LIBS
30003 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30004 cat >conftest.$ac_ext <<_ACEOF
30005 /* confdefs.h.  */
30006 _ACEOF
30007 cat confdefs.h >>conftest.$ac_ext
30008 cat >>conftest.$ac_ext <<_ACEOF
30009 /* end confdefs.h.  */
30010
30011 /* Override any GCC internal prototype to avoid an error.
30012    Use char because int might match the return type of a GCC
30013    builtin and then its argument prototype would still apply.  */
30014 #ifdef __cplusplus
30015 extern "C"
30016 #endif
30017 char connect ();
30018 int
30019 main ()
30020 {
30021 return connect ();
30022   ;
30023   return 0;
30024 }
30025 _ACEOF
30026 rm -f conftest.$ac_objext conftest$ac_exeext
30027 if { (ac_try="$ac_link"
30028 case "(($ac_try" in
30029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030   *) ac_try_echo=$ac_try;;
30031 esac
30032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033   (eval "$ac_link") 2>conftest.er1
30034   ac_status=$?
30035   grep -v '^ *+' conftest.er1 >conftest.err
30036   rm -f conftest.er1
30037   cat conftest.err >&5
30038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039   (exit $ac_status); } && {
30040          test -z "$ac_c_werror_flag" ||
30041          test ! -s conftest.err
30042        } && test -s conftest$ac_exeext &&
30043        $as_test_x conftest$ac_exeext; then
30044   ac_cv_lib_socket_connect=yes
30045 else
30046   echo "$as_me: failed program was:" >&5
30047 sed 's/^/| /' conftest.$ac_ext >&5
30048
30049         ac_cv_lib_socket_connect=no
30050 fi
30051
30052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30053       conftest$ac_exeext conftest.$ac_ext
30054 LIBS=$ac_check_lib_save_LIBS
30055 fi
30056 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30057 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30058 if test $ac_cv_lib_socket_connect = yes; then
30059   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30060 fi
30061
30062     fi
30063
30064     # Guillermo Gomez says -lposix is necessary on A/UX.
30065     { echo "$as_me:$LINENO: checking for remove" >&5
30066 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30067 if test "${ac_cv_func_remove+set}" = set; then
30068   echo $ECHO_N "(cached) $ECHO_C" >&6
30069 else
30070   cat >conftest.$ac_ext <<_ACEOF
30071 /* confdefs.h.  */
30072 _ACEOF
30073 cat confdefs.h >>conftest.$ac_ext
30074 cat >>conftest.$ac_ext <<_ACEOF
30075 /* end confdefs.h.  */
30076 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30078 #define remove innocuous_remove
30079
30080 /* System header to define __stub macros and hopefully few prototypes,
30081     which can conflict with char remove (); below.
30082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30083     <limits.h> exists even on freestanding compilers.  */
30084
30085 #ifdef __STDC__
30086 # include <limits.h>
30087 #else
30088 # include <assert.h>
30089 #endif
30090
30091 #undef remove
30092
30093 /* Override any GCC internal prototype to avoid an error.
30094    Use char because int might match the return type of a GCC
30095    builtin and then its argument prototype would still apply.  */
30096 #ifdef __cplusplus
30097 extern "C"
30098 #endif
30099 char remove ();
30100 /* The GNU C library defines this for functions which it implements
30101     to always fail with ENOSYS.  Some functions are actually named
30102     something starting with __ and the normal name is an alias.  */
30103 #if defined __stub_remove || defined __stub___remove
30104 choke me
30105 #endif
30106
30107 int
30108 main ()
30109 {
30110 return remove ();
30111   ;
30112   return 0;
30113 }
30114 _ACEOF
30115 rm -f conftest.$ac_objext conftest$ac_exeext
30116 if { (ac_try="$ac_link"
30117 case "(($ac_try" in
30118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30119   *) ac_try_echo=$ac_try;;
30120 esac
30121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30122   (eval "$ac_link") 2>conftest.er1
30123   ac_status=$?
30124   grep -v '^ *+' conftest.er1 >conftest.err
30125   rm -f conftest.er1
30126   cat conftest.err >&5
30127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128   (exit $ac_status); } && {
30129          test -z "$ac_c_werror_flag" ||
30130          test ! -s conftest.err
30131        } && test -s conftest$ac_exeext &&
30132        $as_test_x conftest$ac_exeext; then
30133   ac_cv_func_remove=yes
30134 else
30135   echo "$as_me: failed program was:" >&5
30136 sed 's/^/| /' conftest.$ac_ext >&5
30137
30138         ac_cv_func_remove=no
30139 fi
30140
30141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30142       conftest$ac_exeext conftest.$ac_ext
30143 fi
30144 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30145 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30146
30147     if test $ac_cv_func_remove = no; then
30148       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30149 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30150 if test "${ac_cv_lib_posix_remove+set}" = set; then
30151   echo $ECHO_N "(cached) $ECHO_C" >&6
30152 else
30153   ac_check_lib_save_LIBS=$LIBS
30154 LIBS="-lposix  $LIBS"
30155 cat >conftest.$ac_ext <<_ACEOF
30156 /* confdefs.h.  */
30157 _ACEOF
30158 cat confdefs.h >>conftest.$ac_ext
30159 cat >>conftest.$ac_ext <<_ACEOF
30160 /* end confdefs.h.  */
30161
30162 /* Override any GCC internal prototype to avoid an error.
30163    Use char because int might match the return type of a GCC
30164    builtin and then its argument prototype would still apply.  */
30165 #ifdef __cplusplus
30166 extern "C"
30167 #endif
30168 char remove ();
30169 int
30170 main ()
30171 {
30172 return remove ();
30173   ;
30174   return 0;
30175 }
30176 _ACEOF
30177 rm -f conftest.$ac_objext conftest$ac_exeext
30178 if { (ac_try="$ac_link"
30179 case "(($ac_try" in
30180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30181   *) ac_try_echo=$ac_try;;
30182 esac
30183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30184   (eval "$ac_link") 2>conftest.er1
30185   ac_status=$?
30186   grep -v '^ *+' conftest.er1 >conftest.err
30187   rm -f conftest.er1
30188   cat conftest.err >&5
30189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190   (exit $ac_status); } && {
30191          test -z "$ac_c_werror_flag" ||
30192          test ! -s conftest.err
30193        } && test -s conftest$ac_exeext &&
30194        $as_test_x conftest$ac_exeext; then
30195   ac_cv_lib_posix_remove=yes
30196 else
30197   echo "$as_me: failed program was:" >&5
30198 sed 's/^/| /' conftest.$ac_ext >&5
30199
30200         ac_cv_lib_posix_remove=no
30201 fi
30202
30203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30204       conftest$ac_exeext conftest.$ac_ext
30205 LIBS=$ac_check_lib_save_LIBS
30206 fi
30207 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30208 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30209 if test $ac_cv_lib_posix_remove = yes; then
30210   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30211 fi
30212
30213     fi
30214
30215     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30216     { echo "$as_me:$LINENO: checking for shmat" >&5
30217 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30218 if test "${ac_cv_func_shmat+set}" = set; then
30219   echo $ECHO_N "(cached) $ECHO_C" >&6
30220 else
30221   cat >conftest.$ac_ext <<_ACEOF
30222 /* confdefs.h.  */
30223 _ACEOF
30224 cat confdefs.h >>conftest.$ac_ext
30225 cat >>conftest.$ac_ext <<_ACEOF
30226 /* end confdefs.h.  */
30227 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30229 #define shmat innocuous_shmat
30230
30231 /* System header to define __stub macros and hopefully few prototypes,
30232     which can conflict with char shmat (); below.
30233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30234     <limits.h> exists even on freestanding compilers.  */
30235
30236 #ifdef __STDC__
30237 # include <limits.h>
30238 #else
30239 # include <assert.h>
30240 #endif
30241
30242 #undef shmat
30243
30244 /* Override any GCC internal prototype to avoid an error.
30245    Use char because int might match the return type of a GCC
30246    builtin and then its argument prototype would still apply.  */
30247 #ifdef __cplusplus
30248 extern "C"
30249 #endif
30250 char shmat ();
30251 /* The GNU C library defines this for functions which it implements
30252     to always fail with ENOSYS.  Some functions are actually named
30253     something starting with __ and the normal name is an alias.  */
30254 #if defined __stub_shmat || defined __stub___shmat
30255 choke me
30256 #endif
30257
30258 int
30259 main ()
30260 {
30261 return shmat ();
30262   ;
30263   return 0;
30264 }
30265 _ACEOF
30266 rm -f conftest.$ac_objext conftest$ac_exeext
30267 if { (ac_try="$ac_link"
30268 case "(($ac_try" in
30269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30270   *) ac_try_echo=$ac_try;;
30271 esac
30272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30273   (eval "$ac_link") 2>conftest.er1
30274   ac_status=$?
30275   grep -v '^ *+' conftest.er1 >conftest.err
30276   rm -f conftest.er1
30277   cat conftest.err >&5
30278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279   (exit $ac_status); } && {
30280          test -z "$ac_c_werror_flag" ||
30281          test ! -s conftest.err
30282        } && test -s conftest$ac_exeext &&
30283        $as_test_x conftest$ac_exeext; then
30284   ac_cv_func_shmat=yes
30285 else
30286   echo "$as_me: failed program was:" >&5
30287 sed 's/^/| /' conftest.$ac_ext >&5
30288
30289         ac_cv_func_shmat=no
30290 fi
30291
30292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30293       conftest$ac_exeext conftest.$ac_ext
30294 fi
30295 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30296 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30297
30298     if test $ac_cv_func_shmat = no; then
30299       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30300 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30301 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30302   echo $ECHO_N "(cached) $ECHO_C" >&6
30303 else
30304   ac_check_lib_save_LIBS=$LIBS
30305 LIBS="-lipc  $LIBS"
30306 cat >conftest.$ac_ext <<_ACEOF
30307 /* confdefs.h.  */
30308 _ACEOF
30309 cat confdefs.h >>conftest.$ac_ext
30310 cat >>conftest.$ac_ext <<_ACEOF
30311 /* end confdefs.h.  */
30312
30313 /* Override any GCC internal prototype to avoid an error.
30314    Use char because int might match the return type of a GCC
30315    builtin and then its argument prototype would still apply.  */
30316 #ifdef __cplusplus
30317 extern "C"
30318 #endif
30319 char shmat ();
30320 int
30321 main ()
30322 {
30323 return shmat ();
30324   ;
30325   return 0;
30326 }
30327 _ACEOF
30328 rm -f conftest.$ac_objext conftest$ac_exeext
30329 if { (ac_try="$ac_link"
30330 case "(($ac_try" in
30331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30332   *) ac_try_echo=$ac_try;;
30333 esac
30334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30335   (eval "$ac_link") 2>conftest.er1
30336   ac_status=$?
30337   grep -v '^ *+' conftest.er1 >conftest.err
30338   rm -f conftest.er1
30339   cat conftest.err >&5
30340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341   (exit $ac_status); } && {
30342          test -z "$ac_c_werror_flag" ||
30343          test ! -s conftest.err
30344        } && test -s conftest$ac_exeext &&
30345        $as_test_x conftest$ac_exeext; then
30346   ac_cv_lib_ipc_shmat=yes
30347 else
30348   echo "$as_me: failed program was:" >&5
30349 sed 's/^/| /' conftest.$ac_ext >&5
30350
30351         ac_cv_lib_ipc_shmat=no
30352 fi
30353
30354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30355       conftest$ac_exeext conftest.$ac_ext
30356 LIBS=$ac_check_lib_save_LIBS
30357 fi
30358 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30359 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30360 if test $ac_cv_lib_ipc_shmat = yes; then
30361   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30362 fi
30363
30364     fi
30365   fi
30366
30367   # Check for libraries that X11R6 Xt/Xaw programs need.
30368   ac_save_LDFLAGS=$LDFLAGS
30369   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30370   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30371   # check for ICE first), but we must link in the order -lSM -lICE or
30372   # we get undefined symbols.  So assume we have SM if we have ICE.
30373   # These have to be linked with before -lX11, unlike the other
30374   # libraries we check for below, so use a different variable.
30375   # John Interrante, Karl Berry
30376   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30377 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30378 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30379   echo $ECHO_N "(cached) $ECHO_C" >&6
30380 else
30381   ac_check_lib_save_LIBS=$LIBS
30382 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30383 cat >conftest.$ac_ext <<_ACEOF
30384 /* confdefs.h.  */
30385 _ACEOF
30386 cat confdefs.h >>conftest.$ac_ext
30387 cat >>conftest.$ac_ext <<_ACEOF
30388 /* end confdefs.h.  */
30389
30390 /* Override any GCC internal prototype to avoid an error.
30391    Use char because int might match the return type of a GCC
30392    builtin and then its argument prototype would still apply.  */
30393 #ifdef __cplusplus
30394 extern "C"
30395 #endif
30396 char IceConnectionNumber ();
30397 int
30398 main ()
30399 {
30400 return IceConnectionNumber ();
30401   ;
30402   return 0;
30403 }
30404 _ACEOF
30405 rm -f conftest.$ac_objext conftest$ac_exeext
30406 if { (ac_try="$ac_link"
30407 case "(($ac_try" in
30408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409   *) ac_try_echo=$ac_try;;
30410 esac
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412   (eval "$ac_link") 2>conftest.er1
30413   ac_status=$?
30414   grep -v '^ *+' conftest.er1 >conftest.err
30415   rm -f conftest.er1
30416   cat conftest.err >&5
30417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418   (exit $ac_status); } && {
30419          test -z "$ac_c_werror_flag" ||
30420          test ! -s conftest.err
30421        } && test -s conftest$ac_exeext &&
30422        $as_test_x conftest$ac_exeext; then
30423   ac_cv_lib_ICE_IceConnectionNumber=yes
30424 else
30425   echo "$as_me: failed program was:" >&5
30426 sed 's/^/| /' conftest.$ac_ext >&5
30427
30428         ac_cv_lib_ICE_IceConnectionNumber=no
30429 fi
30430
30431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30432       conftest$ac_exeext conftest.$ac_ext
30433 LIBS=$ac_check_lib_save_LIBS
30434 fi
30435 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30436 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30437 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30438   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30439 fi
30440
30441   LDFLAGS=$ac_save_LDFLAGS
30442
30443 fi
30444
30445
30446
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476 for ac_header in \
30477    assert.h \
30478    fcntl.h \
30479    grp.h \
30480    pwd.h \
30481    libc.h \
30482    limits.h \
30483    stdarg.h \
30484    stdlib.h \
30485    stdint.h \
30486    string.h \
30487    strings.h \
30488    termios.h \
30489    termcap.h \
30490    term.h \
30491    unistd.h \
30492    sys/bitypes.h \
30493    sys/byteorder.h \
30494    sys/ioctl.h \
30495    sys/select.h \
30496    sys/socket.h \
30497    sys/sockio.h \
30498    sys/stat.h \
30499    sys/time.h \
30500    sys/types.h \
30501    arpa/nameser.h \
30502    resolv.h \
30503    mtio.h \
30504    sys/mtio.h \
30505    sys/tape.h \
30506    regex.h \
30507
30508 do
30509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30511   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30514   echo $ECHO_N "(cached) $ECHO_C" >&6
30515 fi
30516 ac_res=`eval echo '${'$as_ac_Header'}'`
30517                { echo "$as_me:$LINENO: result: $ac_res" >&5
30518 echo "${ECHO_T}$ac_res" >&6; }
30519 else
30520   # Is the header compilable?
30521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30523 cat >conftest.$ac_ext <<_ACEOF
30524 /* confdefs.h.  */
30525 _ACEOF
30526 cat confdefs.h >>conftest.$ac_ext
30527 cat >>conftest.$ac_ext <<_ACEOF
30528 /* end confdefs.h.  */
30529 $ac_includes_default
30530 #include <$ac_header>
30531 _ACEOF
30532 rm -f conftest.$ac_objext
30533 if { (ac_try="$ac_compile"
30534 case "(($ac_try" in
30535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536   *) ac_try_echo=$ac_try;;
30537 esac
30538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539   (eval "$ac_compile") 2>conftest.er1
30540   ac_status=$?
30541   grep -v '^ *+' conftest.er1 >conftest.err
30542   rm -f conftest.er1
30543   cat conftest.err >&5
30544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545   (exit $ac_status); } && {
30546          test -z "$ac_c_werror_flag" ||
30547          test ! -s conftest.err
30548        } && test -s conftest.$ac_objext; then
30549   ac_header_compiler=yes
30550 else
30551   echo "$as_me: failed program was:" >&5
30552 sed 's/^/| /' conftest.$ac_ext >&5
30553
30554         ac_header_compiler=no
30555 fi
30556
30557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30559 echo "${ECHO_T}$ac_header_compiler" >&6; }
30560
30561 # Is the header present?
30562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30564 cat >conftest.$ac_ext <<_ACEOF
30565 /* confdefs.h.  */
30566 _ACEOF
30567 cat confdefs.h >>conftest.$ac_ext
30568 cat >>conftest.$ac_ext <<_ACEOF
30569 /* end confdefs.h.  */
30570 #include <$ac_header>
30571 _ACEOF
30572 if { (ac_try="$ac_cpp conftest.$ac_ext"
30573 case "(($ac_try" in
30574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30575   *) ac_try_echo=$ac_try;;
30576 esac
30577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30579   ac_status=$?
30580   grep -v '^ *+' conftest.er1 >conftest.err
30581   rm -f conftest.er1
30582   cat conftest.err >&5
30583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584   (exit $ac_status); } >/dev/null && {
30585          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30586          test ! -s conftest.err
30587        }; then
30588   ac_header_preproc=yes
30589 else
30590   echo "$as_me: failed program was:" >&5
30591 sed 's/^/| /' conftest.$ac_ext >&5
30592
30593   ac_header_preproc=no
30594 fi
30595
30596 rm -f conftest.err conftest.$ac_ext
30597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30598 echo "${ECHO_T}$ac_header_preproc" >&6; }
30599
30600 # So?  What about this header?
30601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30602   yes:no: )
30603     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30607     ac_header_preproc=yes
30608     ;;
30609   no:yes:* )
30610     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30612     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30613 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30614     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30616     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30617 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30620     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30622
30623     ;;
30624 esac
30625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30628   echo $ECHO_N "(cached) $ECHO_C" >&6
30629 else
30630   eval "$as_ac_Header=\$ac_header_preproc"
30631 fi
30632 ac_res=`eval echo '${'$as_ac_Header'}'`
30633                { echo "$as_me:$LINENO: result: $ac_res" >&5
30634 echo "${ECHO_T}$ac_res" >&6; }
30635
30636 fi
30637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30638   cat >>confdefs.h <<_ACEOF
30639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30640 _ACEOF
30641
30642 fi
30643
30644 done
30645
30646 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30647 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30648 if test "${ac_cv_header_stdc+set}" = set; then
30649   echo $ECHO_N "(cached) $ECHO_C" >&6
30650 else
30651   cat >conftest.$ac_ext <<_ACEOF
30652 /* confdefs.h.  */
30653 _ACEOF
30654 cat confdefs.h >>conftest.$ac_ext
30655 cat >>conftest.$ac_ext <<_ACEOF
30656 /* end confdefs.h.  */
30657 #include <stdlib.h>
30658 #include <stdarg.h>
30659 #include <string.h>
30660 #include <float.h>
30661
30662 int
30663 main ()
30664 {
30665
30666   ;
30667   return 0;
30668 }
30669 _ACEOF
30670 rm -f conftest.$ac_objext
30671 if { (ac_try="$ac_compile"
30672 case "(($ac_try" in
30673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30674   *) ac_try_echo=$ac_try;;
30675 esac
30676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30677   (eval "$ac_compile") 2>conftest.er1
30678   ac_status=$?
30679   grep -v '^ *+' conftest.er1 >conftest.err
30680   rm -f conftest.er1
30681   cat conftest.err >&5
30682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30683   (exit $ac_status); } && {
30684          test -z "$ac_c_werror_flag" ||
30685          test ! -s conftest.err
30686        } && test -s conftest.$ac_objext; then
30687   ac_cv_header_stdc=yes
30688 else
30689   echo "$as_me: failed program was:" >&5
30690 sed 's/^/| /' conftest.$ac_ext >&5
30691
30692         ac_cv_header_stdc=no
30693 fi
30694
30695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30696
30697 if test $ac_cv_header_stdc = yes; then
30698   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30699   cat >conftest.$ac_ext <<_ACEOF
30700 /* confdefs.h.  */
30701 _ACEOF
30702 cat confdefs.h >>conftest.$ac_ext
30703 cat >>conftest.$ac_ext <<_ACEOF
30704 /* end confdefs.h.  */
30705 #include <string.h>
30706
30707 _ACEOF
30708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30709   $EGREP "memchr" >/dev/null 2>&1; then
30710   :
30711 else
30712   ac_cv_header_stdc=no
30713 fi
30714 rm -f conftest*
30715
30716 fi
30717
30718 if test $ac_cv_header_stdc = yes; then
30719   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30720   cat >conftest.$ac_ext <<_ACEOF
30721 /* confdefs.h.  */
30722 _ACEOF
30723 cat confdefs.h >>conftest.$ac_ext
30724 cat >>conftest.$ac_ext <<_ACEOF
30725 /* end confdefs.h.  */
30726 #include <stdlib.h>
30727
30728 _ACEOF
30729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30730   $EGREP "free" >/dev/null 2>&1; then
30731   :
30732 else
30733   ac_cv_header_stdc=no
30734 fi
30735 rm -f conftest*
30736
30737 fi
30738
30739 if test $ac_cv_header_stdc = yes; then
30740   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30741   if test "$cross_compiling" = yes; then
30742   :
30743 else
30744   cat >conftest.$ac_ext <<_ACEOF
30745 /* confdefs.h.  */
30746 _ACEOF
30747 cat confdefs.h >>conftest.$ac_ext
30748 cat >>conftest.$ac_ext <<_ACEOF
30749 /* end confdefs.h.  */
30750 #include <ctype.h>
30751 #include <stdlib.h>
30752 #if ((' ' & 0x0FF) == 0x020)
30753 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30754 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30755 #else
30756 # define ISLOWER(c) \
30757                    (('a' <= (c) && (c) <= 'i') \
30758                      || ('j' <= (c) && (c) <= 'r') \
30759                      || ('s' <= (c) && (c) <= 'z'))
30760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30761 #endif
30762
30763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30764 int
30765 main ()
30766 {
30767   int i;
30768   for (i = 0; i < 256; i++)
30769     if (XOR (islower (i), ISLOWER (i))
30770         || toupper (i) != TOUPPER (i))
30771       return 2;
30772   return 0;
30773 }
30774 _ACEOF
30775 rm -f conftest$ac_exeext
30776 if { (ac_try="$ac_link"
30777 case "(($ac_try" in
30778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30779   *) ac_try_echo=$ac_try;;
30780 esac
30781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30782   (eval "$ac_link") 2>&5
30783   ac_status=$?
30784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30786   { (case "(($ac_try" in
30787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30788   *) ac_try_echo=$ac_try;;
30789 esac
30790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30791   (eval "$ac_try") 2>&5
30792   ac_status=$?
30793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794   (exit $ac_status); }; }; then
30795   :
30796 else
30797   echo "$as_me: program exited with status $ac_status" >&5
30798 echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30800
30801 ( exit $ac_status )
30802 ac_cv_header_stdc=no
30803 fi
30804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30805 fi
30806
30807
30808 fi
30809 fi
30810 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30811 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30812 if test $ac_cv_header_stdc = yes; then
30813
30814 cat >>confdefs.h <<\_ACEOF
30815 #define STDC_HEADERS 1
30816 _ACEOF
30817
30818 fi
30819
30820 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30821 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30822 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30823   echo $ECHO_N "(cached) $ECHO_C" >&6
30824 else
30825   cat >conftest.$ac_ext <<_ACEOF
30826 /* confdefs.h.  */
30827 _ACEOF
30828 cat confdefs.h >>conftest.$ac_ext
30829 cat >>conftest.$ac_ext <<_ACEOF
30830 /* end confdefs.h.  */
30831 #include <sys/types.h>
30832 int
30833 main ()
30834 {
30835 return makedev(0, 0);
30836   ;
30837   return 0;
30838 }
30839 _ACEOF
30840 rm -f conftest.$ac_objext conftest$ac_exeext
30841 if { (ac_try="$ac_link"
30842 case "(($ac_try" in
30843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30844   *) ac_try_echo=$ac_try;;
30845 esac
30846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30847   (eval "$ac_link") 2>conftest.er1
30848   ac_status=$?
30849   grep -v '^ *+' conftest.er1 >conftest.err
30850   rm -f conftest.er1
30851   cat conftest.err >&5
30852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853   (exit $ac_status); } && {
30854          test -z "$ac_c_werror_flag" ||
30855          test ! -s conftest.err
30856        } && test -s conftest$ac_exeext &&
30857        $as_test_x conftest$ac_exeext; then
30858   ac_cv_header_sys_types_h_makedev=yes
30859 else
30860   echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30862
30863         ac_cv_header_sys_types_h_makedev=no
30864 fi
30865
30866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30867       conftest$ac_exeext conftest.$ac_ext
30868
30869 fi
30870 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30871 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30872
30873 if test $ac_cv_header_sys_types_h_makedev = no; then
30874 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30875   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30876 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30877 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30878   echo $ECHO_N "(cached) $ECHO_C" >&6
30879 fi
30880 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30881 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30882 else
30883   # Is the header compilable?
30884 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30885 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30886 cat >conftest.$ac_ext <<_ACEOF
30887 /* confdefs.h.  */
30888 _ACEOF
30889 cat confdefs.h >>conftest.$ac_ext
30890 cat >>conftest.$ac_ext <<_ACEOF
30891 /* end confdefs.h.  */
30892 $ac_includes_default
30893 #include <sys/mkdev.h>
30894 _ACEOF
30895 rm -f conftest.$ac_objext
30896 if { (ac_try="$ac_compile"
30897 case "(($ac_try" in
30898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30899   *) ac_try_echo=$ac_try;;
30900 esac
30901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30902   (eval "$ac_compile") 2>conftest.er1
30903   ac_status=$?
30904   grep -v '^ *+' conftest.er1 >conftest.err
30905   rm -f conftest.er1
30906   cat conftest.err >&5
30907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908   (exit $ac_status); } && {
30909          test -z "$ac_c_werror_flag" ||
30910          test ! -s conftest.err
30911        } && test -s conftest.$ac_objext; then
30912   ac_header_compiler=yes
30913 else
30914   echo "$as_me: failed program was:" >&5
30915 sed 's/^/| /' conftest.$ac_ext >&5
30916
30917         ac_header_compiler=no
30918 fi
30919
30920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30922 echo "${ECHO_T}$ac_header_compiler" >&6; }
30923
30924 # Is the header present?
30925 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30926 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30927 cat >conftest.$ac_ext <<_ACEOF
30928 /* confdefs.h.  */
30929 _ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h.  */
30933 #include <sys/mkdev.h>
30934 _ACEOF
30935 if { (ac_try="$ac_cpp conftest.$ac_ext"
30936 case "(($ac_try" in
30937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938   *) ac_try_echo=$ac_try;;
30939 esac
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30942   ac_status=$?
30943   grep -v '^ *+' conftest.er1 >conftest.err
30944   rm -f conftest.er1
30945   cat conftest.err >&5
30946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947   (exit $ac_status); } >/dev/null && {
30948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30949          test ! -s conftest.err
30950        }; then
30951   ac_header_preproc=yes
30952 else
30953   echo "$as_me: failed program was:" >&5
30954 sed 's/^/| /' conftest.$ac_ext >&5
30955
30956   ac_header_preproc=no
30957 fi
30958
30959 rm -f conftest.err conftest.$ac_ext
30960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30961 echo "${ECHO_T}$ac_header_preproc" >&6; }
30962
30963 # So?  What about this header?
30964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30965   yes:no: )
30966     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30967 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30968     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30969 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30970     ac_header_preproc=yes
30971     ;;
30972   no:yes:* )
30973     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30974 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30975     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
30976 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
30977     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30978 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30979     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
30980 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30981     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30982 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30983     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30984 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30985
30986     ;;
30987 esac
30988 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30989 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30990 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30991   echo $ECHO_N "(cached) $ECHO_C" >&6
30992 else
30993   ac_cv_header_sys_mkdev_h=$ac_header_preproc
30994 fi
30995 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30996 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30997
30998 fi
30999 if test $ac_cv_header_sys_mkdev_h = yes; then
31000
31001 cat >>confdefs.h <<\_ACEOF
31002 #define MAJOR_IN_MKDEV 1
31003 _ACEOF
31004
31005 fi
31006
31007
31008
31009   if test $ac_cv_header_sys_mkdev_h = no; then
31010     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31011   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31012 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31013 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31014   echo $ECHO_N "(cached) $ECHO_C" >&6
31015 fi
31016 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31017 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31018 else
31019   # Is the header compilable?
31020 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31021 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31022 cat >conftest.$ac_ext <<_ACEOF
31023 /* confdefs.h.  */
31024 _ACEOF
31025 cat confdefs.h >>conftest.$ac_ext
31026 cat >>conftest.$ac_ext <<_ACEOF
31027 /* end confdefs.h.  */
31028 $ac_includes_default
31029 #include <sys/sysmacros.h>
31030 _ACEOF
31031 rm -f conftest.$ac_objext
31032 if { (ac_try="$ac_compile"
31033 case "(($ac_try" in
31034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31035   *) ac_try_echo=$ac_try;;
31036 esac
31037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038   (eval "$ac_compile") 2>conftest.er1
31039   ac_status=$?
31040   grep -v '^ *+' conftest.er1 >conftest.err
31041   rm -f conftest.er1
31042   cat conftest.err >&5
31043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044   (exit $ac_status); } && {
31045          test -z "$ac_c_werror_flag" ||
31046          test ! -s conftest.err
31047        } && test -s conftest.$ac_objext; then
31048   ac_header_compiler=yes
31049 else
31050   echo "$as_me: failed program was:" >&5
31051 sed 's/^/| /' conftest.$ac_ext >&5
31052
31053         ac_header_compiler=no
31054 fi
31055
31056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31058 echo "${ECHO_T}$ac_header_compiler" >&6; }
31059
31060 # Is the header present?
31061 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31062 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31063 cat >conftest.$ac_ext <<_ACEOF
31064 /* confdefs.h.  */
31065 _ACEOF
31066 cat confdefs.h >>conftest.$ac_ext
31067 cat >>conftest.$ac_ext <<_ACEOF
31068 /* end confdefs.h.  */
31069 #include <sys/sysmacros.h>
31070 _ACEOF
31071 if { (ac_try="$ac_cpp conftest.$ac_ext"
31072 case "(($ac_try" in
31073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31074   *) ac_try_echo=$ac_try;;
31075 esac
31076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31077   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31078   ac_status=$?
31079   grep -v '^ *+' conftest.er1 >conftest.err
31080   rm -f conftest.er1
31081   cat conftest.err >&5
31082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083   (exit $ac_status); } >/dev/null && {
31084          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31085          test ! -s conftest.err
31086        }; then
31087   ac_header_preproc=yes
31088 else
31089   echo "$as_me: failed program was:" >&5
31090 sed 's/^/| /' conftest.$ac_ext >&5
31091
31092   ac_header_preproc=no
31093 fi
31094
31095 rm -f conftest.err conftest.$ac_ext
31096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31097 echo "${ECHO_T}$ac_header_preproc" >&6; }
31098
31099 # So?  What about this header?
31100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31101   yes:no: )
31102     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31103 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31104     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31105 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31106     ac_header_preproc=yes
31107     ;;
31108   no:yes:* )
31109     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31110 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31111     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31112 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31113     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31114 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31115     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31116 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31117     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31118 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31119     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31120 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31121
31122     ;;
31123 esac
31124 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31125 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31126 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31127   echo $ECHO_N "(cached) $ECHO_C" >&6
31128 else
31129   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31130 fi
31131 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31132 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31133
31134 fi
31135 if test $ac_cv_header_sys_sysmacros_h = yes; then
31136
31137 cat >>confdefs.h <<\_ACEOF
31138 #define MAJOR_IN_SYSMACROS 1
31139 _ACEOF
31140
31141 fi
31142
31143
31144   fi
31145 fi
31146
31147
31148
31149
31150
31151
31152 ac_header_dirent=no
31153 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31154   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31155 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31156 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31158   echo $ECHO_N "(cached) $ECHO_C" >&6
31159 else
31160   cat >conftest.$ac_ext <<_ACEOF
31161 /* confdefs.h.  */
31162 _ACEOF
31163 cat confdefs.h >>conftest.$ac_ext
31164 cat >>conftest.$ac_ext <<_ACEOF
31165 /* end confdefs.h.  */
31166 #include <sys/types.h>
31167 #include <$ac_hdr>
31168
31169 int
31170 main ()
31171 {
31172 if ((DIR *) 0)
31173 return 0;
31174   ;
31175   return 0;
31176 }
31177 _ACEOF
31178 rm -f conftest.$ac_objext
31179 if { (ac_try="$ac_compile"
31180 case "(($ac_try" in
31181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31182   *) ac_try_echo=$ac_try;;
31183 esac
31184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31185   (eval "$ac_compile") 2>conftest.er1
31186   ac_status=$?
31187   grep -v '^ *+' conftest.er1 >conftest.err
31188   rm -f conftest.er1
31189   cat conftest.err >&5
31190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191   (exit $ac_status); } && {
31192          test -z "$ac_c_werror_flag" ||
31193          test ! -s conftest.err
31194        } && test -s conftest.$ac_objext; then
31195   eval "$as_ac_Header=yes"
31196 else
31197   echo "$as_me: failed program was:" >&5
31198 sed 's/^/| /' conftest.$ac_ext >&5
31199
31200         eval "$as_ac_Header=no"
31201 fi
31202
31203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31204 fi
31205 ac_res=`eval echo '${'$as_ac_Header'}'`
31206                { echo "$as_me:$LINENO: result: $ac_res" >&5
31207 echo "${ECHO_T}$ac_res" >&6; }
31208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31209   cat >>confdefs.h <<_ACEOF
31210 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31211 _ACEOF
31212
31213 ac_header_dirent=$ac_hdr; break
31214 fi
31215
31216 done
31217 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31218 if test $ac_header_dirent = dirent.h; then
31219   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31220 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31221 if test "${ac_cv_search_opendir+set}" = set; then
31222   echo $ECHO_N "(cached) $ECHO_C" >&6
31223 else
31224   ac_func_search_save_LIBS=$LIBS
31225 cat >conftest.$ac_ext <<_ACEOF
31226 /* confdefs.h.  */
31227 _ACEOF
31228 cat confdefs.h >>conftest.$ac_ext
31229 cat >>conftest.$ac_ext <<_ACEOF
31230 /* end confdefs.h.  */
31231
31232 /* Override any GCC internal prototype to avoid an error.
31233    Use char because int might match the return type of a GCC
31234    builtin and then its argument prototype would still apply.  */
31235 #ifdef __cplusplus
31236 extern "C"
31237 #endif
31238 char opendir ();
31239 int
31240 main ()
31241 {
31242 return opendir ();
31243   ;
31244   return 0;
31245 }
31246 _ACEOF
31247 for ac_lib in '' dir; do
31248   if test -z "$ac_lib"; then
31249     ac_res="none required"
31250   else
31251     ac_res=-l$ac_lib
31252     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31253   fi
31254   rm -f conftest.$ac_objext conftest$ac_exeext
31255 if { (ac_try="$ac_link"
31256 case "(($ac_try" in
31257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258   *) ac_try_echo=$ac_try;;
31259 esac
31260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261   (eval "$ac_link") 2>conftest.er1
31262   ac_status=$?
31263   grep -v '^ *+' conftest.er1 >conftest.err
31264   rm -f conftest.er1
31265   cat conftest.err >&5
31266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267   (exit $ac_status); } && {
31268          test -z "$ac_c_werror_flag" ||
31269          test ! -s conftest.err
31270        } && test -s conftest$ac_exeext &&
31271        $as_test_x conftest$ac_exeext; then
31272   ac_cv_search_opendir=$ac_res
31273 else
31274   echo "$as_me: failed program was:" >&5
31275 sed 's/^/| /' conftest.$ac_ext >&5
31276
31277
31278 fi
31279
31280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31281       conftest$ac_exeext
31282   if test "${ac_cv_search_opendir+set}" = set; then
31283   break
31284 fi
31285 done
31286 if test "${ac_cv_search_opendir+set}" = set; then
31287   :
31288 else
31289   ac_cv_search_opendir=no
31290 fi
31291 rm conftest.$ac_ext
31292 LIBS=$ac_func_search_save_LIBS
31293 fi
31294 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31295 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31296 ac_res=$ac_cv_search_opendir
31297 if test "$ac_res" != no; then
31298   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31299
31300 fi
31301
31302 else
31303   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31304 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31305 if test "${ac_cv_search_opendir+set}" = set; then
31306   echo $ECHO_N "(cached) $ECHO_C" >&6
31307 else
31308   ac_func_search_save_LIBS=$LIBS
31309 cat >conftest.$ac_ext <<_ACEOF
31310 /* confdefs.h.  */
31311 _ACEOF
31312 cat confdefs.h >>conftest.$ac_ext
31313 cat >>conftest.$ac_ext <<_ACEOF
31314 /* end confdefs.h.  */
31315
31316 /* Override any GCC internal prototype to avoid an error.
31317    Use char because int might match the return type of a GCC
31318    builtin and then its argument prototype would still apply.  */
31319 #ifdef __cplusplus
31320 extern "C"
31321 #endif
31322 char opendir ();
31323 int
31324 main ()
31325 {
31326 return opendir ();
31327   ;
31328   return 0;
31329 }
31330 _ACEOF
31331 for ac_lib in '' x; do
31332   if test -z "$ac_lib"; then
31333     ac_res="none required"
31334   else
31335     ac_res=-l$ac_lib
31336     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31337   fi
31338   rm -f conftest.$ac_objext conftest$ac_exeext
31339 if { (ac_try="$ac_link"
31340 case "(($ac_try" in
31341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342   *) ac_try_echo=$ac_try;;
31343 esac
31344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345   (eval "$ac_link") 2>conftest.er1
31346   ac_status=$?
31347   grep -v '^ *+' conftest.er1 >conftest.err
31348   rm -f conftest.er1
31349   cat conftest.err >&5
31350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351   (exit $ac_status); } && {
31352          test -z "$ac_c_werror_flag" ||
31353          test ! -s conftest.err
31354        } && test -s conftest$ac_exeext &&
31355        $as_test_x conftest$ac_exeext; then
31356   ac_cv_search_opendir=$ac_res
31357 else
31358   echo "$as_me: failed program was:" >&5
31359 sed 's/^/| /' conftest.$ac_ext >&5
31360
31361
31362 fi
31363
31364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31365       conftest$ac_exeext
31366   if test "${ac_cv_search_opendir+set}" = set; then
31367   break
31368 fi
31369 done
31370 if test "${ac_cv_search_opendir+set}" = set; then
31371   :
31372 else
31373   ac_cv_search_opendir=no
31374 fi
31375 rm conftest.$ac_ext
31376 LIBS=$ac_func_search_save_LIBS
31377 fi
31378 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31379 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31380 ac_res=$ac_cv_search_opendir
31381 if test "$ac_res" != no; then
31382   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31383
31384 fi
31385
31386 fi
31387
31388 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31389 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31390 if test "${ac_cv_header_stat_broken+set}" = set; then
31391   echo $ECHO_N "(cached) $ECHO_C" >&6
31392 else
31393   cat >conftest.$ac_ext <<_ACEOF
31394 /* confdefs.h.  */
31395 _ACEOF
31396 cat confdefs.h >>conftest.$ac_ext
31397 cat >>conftest.$ac_ext <<_ACEOF
31398 /* end confdefs.h.  */
31399 #include <sys/types.h>
31400 #include <sys/stat.h>
31401
31402 #if defined S_ISBLK && defined S_IFDIR
31403 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31404 #endif
31405
31406 #if defined S_ISBLK && defined S_IFCHR
31407 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31408 #endif
31409
31410 #if defined S_ISLNK && defined S_IFREG
31411 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31412 #endif
31413
31414 #if defined S_ISSOCK && defined S_IFREG
31415 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31416 #endif
31417
31418 _ACEOF
31419 rm -f conftest.$ac_objext
31420 if { (ac_try="$ac_compile"
31421 case "(($ac_try" in
31422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31423   *) ac_try_echo=$ac_try;;
31424 esac
31425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31426   (eval "$ac_compile") 2>conftest.er1
31427   ac_status=$?
31428   grep -v '^ *+' conftest.er1 >conftest.err
31429   rm -f conftest.er1
31430   cat conftest.err >&5
31431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31432   (exit $ac_status); } && {
31433          test -z "$ac_c_werror_flag" ||
31434          test ! -s conftest.err
31435        } && test -s conftest.$ac_objext; then
31436   ac_cv_header_stat_broken=no
31437 else
31438   echo "$as_me: failed program was:" >&5
31439 sed 's/^/| /' conftest.$ac_ext >&5
31440
31441         ac_cv_header_stat_broken=yes
31442 fi
31443
31444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31445 fi
31446 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31447 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31448 if test $ac_cv_header_stat_broken = yes; then
31449
31450 cat >>confdefs.h <<\_ACEOF
31451 #define STAT_MACROS_BROKEN 1
31452 _ACEOF
31453
31454 fi
31455
31456 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31457 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31458 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31459   echo $ECHO_N "(cached) $ECHO_C" >&6
31460 else
31461   cat >conftest.$ac_ext <<_ACEOF
31462 /* confdefs.h.  */
31463 _ACEOF
31464 cat confdefs.h >>conftest.$ac_ext
31465 cat >>conftest.$ac_ext <<_ACEOF
31466 /* end confdefs.h.  */
31467 #include <sys/types.h>
31468 #include <sys/wait.h>
31469 #ifndef WEXITSTATUS
31470 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31471 #endif
31472 #ifndef WIFEXITED
31473 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31474 #endif
31475
31476 int
31477 main ()
31478 {
31479   int s;
31480   wait (&s);
31481   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31482   ;
31483   return 0;
31484 }
31485 _ACEOF
31486 rm -f conftest.$ac_objext
31487 if { (ac_try="$ac_compile"
31488 case "(($ac_try" in
31489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490   *) ac_try_echo=$ac_try;;
31491 esac
31492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31493   (eval "$ac_compile") 2>conftest.er1
31494   ac_status=$?
31495   grep -v '^ *+' conftest.er1 >conftest.err
31496   rm -f conftest.er1
31497   cat conftest.err >&5
31498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499   (exit $ac_status); } && {
31500          test -z "$ac_c_werror_flag" ||
31501          test ! -s conftest.err
31502        } && test -s conftest.$ac_objext; then
31503   ac_cv_header_sys_wait_h=yes
31504 else
31505   echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31507
31508         ac_cv_header_sys_wait_h=no
31509 fi
31510
31511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31512 fi
31513 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31514 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31515 if test $ac_cv_header_sys_wait_h = yes; then
31516
31517 cat >>confdefs.h <<\_ACEOF
31518 #define HAVE_SYS_WAIT_H 1
31519 _ACEOF
31520
31521 fi
31522
31523 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31524 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31525 if test "${ac_cv_header_time+set}" = set; then
31526   echo $ECHO_N "(cached) $ECHO_C" >&6
31527 else
31528   cat >conftest.$ac_ext <<_ACEOF
31529 /* confdefs.h.  */
31530 _ACEOF
31531 cat confdefs.h >>conftest.$ac_ext
31532 cat >>conftest.$ac_ext <<_ACEOF
31533 /* end confdefs.h.  */
31534 #include <sys/types.h>
31535 #include <sys/time.h>
31536 #include <time.h>
31537
31538 int
31539 main ()
31540 {
31541 if ((struct tm *) 0)
31542 return 0;
31543   ;
31544   return 0;
31545 }
31546 _ACEOF
31547 rm -f conftest.$ac_objext
31548 if { (ac_try="$ac_compile"
31549 case "(($ac_try" in
31550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551   *) ac_try_echo=$ac_try;;
31552 esac
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554   (eval "$ac_compile") 2>conftest.er1
31555   ac_status=$?
31556   grep -v '^ *+' conftest.er1 >conftest.err
31557   rm -f conftest.er1
31558   cat conftest.err >&5
31559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560   (exit $ac_status); } && {
31561          test -z "$ac_c_werror_flag" ||
31562          test ! -s conftest.err
31563        } && test -s conftest.$ac_objext; then
31564   ac_cv_header_time=yes
31565 else
31566   echo "$as_me: failed program was:" >&5
31567 sed 's/^/| /' conftest.$ac_ext >&5
31568
31569         ac_cv_header_time=no
31570 fi
31571
31572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31573 fi
31574 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31575 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31576 if test $ac_cv_header_time = yes; then
31577
31578 cat >>confdefs.h <<\_ACEOF
31579 #define TIME_WITH_SYS_TIME 1
31580 _ACEOF
31581
31582 fi
31583
31584 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31585 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31586 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31587   echo $ECHO_N "(cached) $ECHO_C" >&6
31588 else
31589   cat >conftest.$ac_ext <<_ACEOF
31590 /* confdefs.h.  */
31591 _ACEOF
31592 cat confdefs.h >>conftest.$ac_ext
31593 cat >>conftest.$ac_ext <<_ACEOF
31594 /* end confdefs.h.  */
31595 $ac_includes_default
31596 int
31597 main ()
31598 {
31599 static struct stat ac_aggr;
31600 if (ac_aggr.st_blksize)
31601 return 0;
31602   ;
31603   return 0;
31604 }
31605 _ACEOF
31606 rm -f conftest.$ac_objext
31607 if { (ac_try="$ac_compile"
31608 case "(($ac_try" in
31609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610   *) ac_try_echo=$ac_try;;
31611 esac
31612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613   (eval "$ac_compile") 2>conftest.er1
31614   ac_status=$?
31615   grep -v '^ *+' conftest.er1 >conftest.err
31616   rm -f conftest.er1
31617   cat conftest.err >&5
31618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619   (exit $ac_status); } && {
31620          test -z "$ac_c_werror_flag" ||
31621          test ! -s conftest.err
31622        } && test -s conftest.$ac_objext; then
31623   ac_cv_member_struct_stat_st_blksize=yes
31624 else
31625   echo "$as_me: failed program was:" >&5
31626 sed 's/^/| /' conftest.$ac_ext >&5
31627
31628         cat >conftest.$ac_ext <<_ACEOF
31629 /* confdefs.h.  */
31630 _ACEOF
31631 cat confdefs.h >>conftest.$ac_ext
31632 cat >>conftest.$ac_ext <<_ACEOF
31633 /* end confdefs.h.  */
31634 $ac_includes_default
31635 int
31636 main ()
31637 {
31638 static struct stat ac_aggr;
31639 if (sizeof ac_aggr.st_blksize)
31640 return 0;
31641   ;
31642   return 0;
31643 }
31644 _ACEOF
31645 rm -f conftest.$ac_objext
31646 if { (ac_try="$ac_compile"
31647 case "(($ac_try" in
31648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31649   *) ac_try_echo=$ac_try;;
31650 esac
31651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31652   (eval "$ac_compile") 2>conftest.er1
31653   ac_status=$?
31654   grep -v '^ *+' conftest.er1 >conftest.err
31655   rm -f conftest.er1
31656   cat conftest.err >&5
31657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658   (exit $ac_status); } && {
31659          test -z "$ac_c_werror_flag" ||
31660          test ! -s conftest.err
31661        } && test -s conftest.$ac_objext; then
31662   ac_cv_member_struct_stat_st_blksize=yes
31663 else
31664   echo "$as_me: failed program was:" >&5
31665 sed 's/^/| /' conftest.$ac_ext >&5
31666
31667         ac_cv_member_struct_stat_st_blksize=no
31668 fi
31669
31670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31671 fi
31672
31673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31674 fi
31675 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31676 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31677 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31678
31679 cat >>confdefs.h <<_ACEOF
31680 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31681 _ACEOF
31682
31683
31684 cat >>confdefs.h <<\_ACEOF
31685 #define HAVE_ST_BLKSIZE 1
31686 _ACEOF
31687
31688 fi
31689
31690
31691 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31692 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31693 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31694   echo $ECHO_N "(cached) $ECHO_C" >&6
31695 else
31696   cat >conftest.$ac_ext <<_ACEOF
31697 /* confdefs.h.  */
31698 _ACEOF
31699 cat confdefs.h >>conftest.$ac_ext
31700 cat >>conftest.$ac_ext <<_ACEOF
31701 /* end confdefs.h.  */
31702 $ac_includes_default
31703 int
31704 main ()
31705 {
31706 static struct stat ac_aggr;
31707 if (ac_aggr.st_blocks)
31708 return 0;
31709   ;
31710   return 0;
31711 }
31712 _ACEOF
31713 rm -f conftest.$ac_objext
31714 if { (ac_try="$ac_compile"
31715 case "(($ac_try" in
31716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31717   *) ac_try_echo=$ac_try;;
31718 esac
31719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31720   (eval "$ac_compile") 2>conftest.er1
31721   ac_status=$?
31722   grep -v '^ *+' conftest.er1 >conftest.err
31723   rm -f conftest.er1
31724   cat conftest.err >&5
31725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726   (exit $ac_status); } && {
31727          test -z "$ac_c_werror_flag" ||
31728          test ! -s conftest.err
31729        } && test -s conftest.$ac_objext; then
31730   ac_cv_member_struct_stat_st_blocks=yes
31731 else
31732   echo "$as_me: failed program was:" >&5
31733 sed 's/^/| /' conftest.$ac_ext >&5
31734
31735         cat >conftest.$ac_ext <<_ACEOF
31736 /* confdefs.h.  */
31737 _ACEOF
31738 cat confdefs.h >>conftest.$ac_ext
31739 cat >>conftest.$ac_ext <<_ACEOF
31740 /* end confdefs.h.  */
31741 $ac_includes_default
31742 int
31743 main ()
31744 {
31745 static struct stat ac_aggr;
31746 if (sizeof ac_aggr.st_blocks)
31747 return 0;
31748   ;
31749   return 0;
31750 }
31751 _ACEOF
31752 rm -f conftest.$ac_objext
31753 if { (ac_try="$ac_compile"
31754 case "(($ac_try" in
31755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31756   *) ac_try_echo=$ac_try;;
31757 esac
31758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31759   (eval "$ac_compile") 2>conftest.er1
31760   ac_status=$?
31761   grep -v '^ *+' conftest.er1 >conftest.err
31762   rm -f conftest.er1
31763   cat conftest.err >&5
31764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765   (exit $ac_status); } && {
31766          test -z "$ac_c_werror_flag" ||
31767          test ! -s conftest.err
31768        } && test -s conftest.$ac_objext; then
31769   ac_cv_member_struct_stat_st_blocks=yes
31770 else
31771   echo "$as_me: failed program was:" >&5
31772 sed 's/^/| /' conftest.$ac_ext >&5
31773
31774         ac_cv_member_struct_stat_st_blocks=no
31775 fi
31776
31777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31778 fi
31779
31780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31781 fi
31782 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31783 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31784 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31785
31786 cat >>confdefs.h <<_ACEOF
31787 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31788 _ACEOF
31789
31790
31791 cat >>confdefs.h <<\_ACEOF
31792 #define HAVE_ST_BLOCKS 1
31793 _ACEOF
31794
31795 else
31796   case " $LIBOBJS " in
31797   *" fileblocks.$ac_objext "* ) ;;
31798   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31799  ;;
31800 esac
31801
31802 fi
31803
31804
31805 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31806 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31807 if test "${ac_cv_struct_tm+set}" = set; then
31808   echo $ECHO_N "(cached) $ECHO_C" >&6
31809 else
31810   cat >conftest.$ac_ext <<_ACEOF
31811 /* confdefs.h.  */
31812 _ACEOF
31813 cat confdefs.h >>conftest.$ac_ext
31814 cat >>conftest.$ac_ext <<_ACEOF
31815 /* end confdefs.h.  */
31816 #include <sys/types.h>
31817 #include <time.h>
31818
31819 int
31820 main ()
31821 {
31822 struct tm tm;
31823                                      int *p = &tm.tm_sec;
31824                                      return !p;
31825   ;
31826   return 0;
31827 }
31828 _ACEOF
31829 rm -f conftest.$ac_objext
31830 if { (ac_try="$ac_compile"
31831 case "(($ac_try" in
31832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31833   *) ac_try_echo=$ac_try;;
31834 esac
31835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31836   (eval "$ac_compile") 2>conftest.er1
31837   ac_status=$?
31838   grep -v '^ *+' conftest.er1 >conftest.err
31839   rm -f conftest.er1
31840   cat conftest.err >&5
31841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842   (exit $ac_status); } && {
31843          test -z "$ac_c_werror_flag" ||
31844          test ! -s conftest.err
31845        } && test -s conftest.$ac_objext; then
31846   ac_cv_struct_tm=time.h
31847 else
31848   echo "$as_me: failed program was:" >&5
31849 sed 's/^/| /' conftest.$ac_ext >&5
31850
31851         ac_cv_struct_tm=sys/time.h
31852 fi
31853
31854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31855 fi
31856 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31857 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31858 if test $ac_cv_struct_tm = sys/time.h; then
31859
31860 cat >>confdefs.h <<\_ACEOF
31861 #define TM_IN_SYS_TIME 1
31862 _ACEOF
31863
31864 fi
31865
31866 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31867 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31868 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31869   echo $ECHO_N "(cached) $ECHO_C" >&6
31870 else
31871   cat >conftest.$ac_ext <<_ACEOF
31872 /* confdefs.h.  */
31873 _ACEOF
31874 cat confdefs.h >>conftest.$ac_ext
31875 cat >>conftest.$ac_ext <<_ACEOF
31876 /* end confdefs.h.  */
31877 #include <sys/types.h>
31878 #include <$ac_cv_struct_tm>
31879
31880
31881 int
31882 main ()
31883 {
31884 static struct tm ac_aggr;
31885 if (ac_aggr.tm_zone)
31886 return 0;
31887   ;
31888   return 0;
31889 }
31890 _ACEOF
31891 rm -f conftest.$ac_objext
31892 if { (ac_try="$ac_compile"
31893 case "(($ac_try" in
31894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31895   *) ac_try_echo=$ac_try;;
31896 esac
31897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31898   (eval "$ac_compile") 2>conftest.er1
31899   ac_status=$?
31900   grep -v '^ *+' conftest.er1 >conftest.err
31901   rm -f conftest.er1
31902   cat conftest.err >&5
31903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904   (exit $ac_status); } && {
31905          test -z "$ac_c_werror_flag" ||
31906          test ! -s conftest.err
31907        } && test -s conftest.$ac_objext; then
31908   ac_cv_member_struct_tm_tm_zone=yes
31909 else
31910   echo "$as_me: failed program was:" >&5
31911 sed 's/^/| /' conftest.$ac_ext >&5
31912
31913         cat >conftest.$ac_ext <<_ACEOF
31914 /* confdefs.h.  */
31915 _ACEOF
31916 cat confdefs.h >>conftest.$ac_ext
31917 cat >>conftest.$ac_ext <<_ACEOF
31918 /* end confdefs.h.  */
31919 #include <sys/types.h>
31920 #include <$ac_cv_struct_tm>
31921
31922
31923 int
31924 main ()
31925 {
31926 static struct tm ac_aggr;
31927 if (sizeof ac_aggr.tm_zone)
31928 return 0;
31929   ;
31930   return 0;
31931 }
31932 _ACEOF
31933 rm -f conftest.$ac_objext
31934 if { (ac_try="$ac_compile"
31935 case "(($ac_try" in
31936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937   *) ac_try_echo=$ac_try;;
31938 esac
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940   (eval "$ac_compile") 2>conftest.er1
31941   ac_status=$?
31942   grep -v '^ *+' conftest.er1 >conftest.err
31943   rm -f conftest.er1
31944   cat conftest.err >&5
31945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946   (exit $ac_status); } && {
31947          test -z "$ac_c_werror_flag" ||
31948          test ! -s conftest.err
31949        } && test -s conftest.$ac_objext; then
31950   ac_cv_member_struct_tm_tm_zone=yes
31951 else
31952   echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31954
31955         ac_cv_member_struct_tm_tm_zone=no
31956 fi
31957
31958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31959 fi
31960
31961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31962 fi
31963 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31964 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31965 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31966
31967 cat >>confdefs.h <<_ACEOF
31968 #define HAVE_STRUCT_TM_TM_ZONE 1
31969 _ACEOF
31970
31971
31972 fi
31973
31974 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31975
31976 cat >>confdefs.h <<\_ACEOF
31977 #define HAVE_TM_ZONE 1
31978 _ACEOF
31979
31980 else
31981   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31982 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31983 if test "${ac_cv_have_decl_tzname+set}" = set; then
31984   echo $ECHO_N "(cached) $ECHO_C" >&6
31985 else
31986   cat >conftest.$ac_ext <<_ACEOF
31987 /* confdefs.h.  */
31988 _ACEOF
31989 cat confdefs.h >>conftest.$ac_ext
31990 cat >>conftest.$ac_ext <<_ACEOF
31991 /* end confdefs.h.  */
31992 #include <time.h>
31993
31994 int
31995 main ()
31996 {
31997 #ifndef tzname
31998   (void) tzname;
31999 #endif
32000
32001   ;
32002   return 0;
32003 }
32004 _ACEOF
32005 rm -f conftest.$ac_objext
32006 if { (ac_try="$ac_compile"
32007 case "(($ac_try" in
32008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009   *) ac_try_echo=$ac_try;;
32010 esac
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012   (eval "$ac_compile") 2>conftest.er1
32013   ac_status=$?
32014   grep -v '^ *+' conftest.er1 >conftest.err
32015   rm -f conftest.er1
32016   cat conftest.err >&5
32017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018   (exit $ac_status); } && {
32019          test -z "$ac_c_werror_flag" ||
32020          test ! -s conftest.err
32021        } && test -s conftest.$ac_objext; then
32022   ac_cv_have_decl_tzname=yes
32023 else
32024   echo "$as_me: failed program was:" >&5
32025 sed 's/^/| /' conftest.$ac_ext >&5
32026
32027         ac_cv_have_decl_tzname=no
32028 fi
32029
32030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32031 fi
32032 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32033 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32034 if test $ac_cv_have_decl_tzname = yes; then
32035
32036 cat >>confdefs.h <<_ACEOF
32037 #define HAVE_DECL_TZNAME 1
32038 _ACEOF
32039
32040
32041 else
32042   cat >>confdefs.h <<_ACEOF
32043 #define HAVE_DECL_TZNAME 0
32044 _ACEOF
32045
32046
32047 fi
32048
32049
32050   { echo "$as_me:$LINENO: checking for tzname" >&5
32051 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32052 if test "${ac_cv_var_tzname+set}" = set; then
32053   echo $ECHO_N "(cached) $ECHO_C" >&6
32054 else
32055   cat >conftest.$ac_ext <<_ACEOF
32056 /* confdefs.h.  */
32057 _ACEOF
32058 cat confdefs.h >>conftest.$ac_ext
32059 cat >>conftest.$ac_ext <<_ACEOF
32060 /* end confdefs.h.  */
32061 #include <time.h>
32062 #if !HAVE_DECL_TZNAME
32063 extern char *tzname[];
32064 #endif
32065
32066 int
32067 main ()
32068 {
32069 return tzname[0][0];
32070   ;
32071   return 0;
32072 }
32073 _ACEOF
32074 rm -f conftest.$ac_objext conftest$ac_exeext
32075 if { (ac_try="$ac_link"
32076 case "(($ac_try" in
32077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32078   *) ac_try_echo=$ac_try;;
32079 esac
32080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081   (eval "$ac_link") 2>conftest.er1
32082   ac_status=$?
32083   grep -v '^ *+' conftest.er1 >conftest.err
32084   rm -f conftest.er1
32085   cat conftest.err >&5
32086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087   (exit $ac_status); } && {
32088          test -z "$ac_c_werror_flag" ||
32089          test ! -s conftest.err
32090        } && test -s conftest$ac_exeext &&
32091        $as_test_x conftest$ac_exeext; then
32092   ac_cv_var_tzname=yes
32093 else
32094   echo "$as_me: failed program was:" >&5
32095 sed 's/^/| /' conftest.$ac_ext >&5
32096
32097         ac_cv_var_tzname=no
32098 fi
32099
32100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32101       conftest$ac_exeext conftest.$ac_ext
32102 fi
32103 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32104 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32105   if test $ac_cv_var_tzname = yes; then
32106
32107 cat >>confdefs.h <<\_ACEOF
32108 #define HAVE_TZNAME 1
32109 _ACEOF
32110
32111   fi
32112 fi
32113
32114
32115 { echo "$as_me:$LINENO: checking for utime.h" >&5
32116 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32117 if test "${ba_cv_header_utime_h+set}" = set; then
32118   echo $ECHO_N "(cached) $ECHO_C" >&6
32119 else
32120
32121        cat >conftest.$ac_ext <<_ACEOF
32122 /* confdefs.h.  */
32123 _ACEOF
32124 cat confdefs.h >>conftest.$ac_ext
32125 cat >>conftest.$ac_ext <<_ACEOF
32126 /* end confdefs.h.  */
32127
32128               #include <sys/types.h>
32129               #include <utime.h>
32130
32131 int
32132 main ()
32133 {
32134
32135               struct utimbuf foo
32136
32137   ;
32138   return 0;
32139 }
32140 _ACEOF
32141 rm -f conftest.$ac_objext
32142 if { (ac_try="$ac_compile"
32143 case "(($ac_try" in
32144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32145   *) ac_try_echo=$ac_try;;
32146 esac
32147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32148   (eval "$ac_compile") 2>conftest.er1
32149   ac_status=$?
32150   grep -v '^ *+' conftest.er1 >conftest.err
32151   rm -f conftest.er1
32152   cat conftest.err >&5
32153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154   (exit $ac_status); } && {
32155          test -z "$ac_c_werror_flag" ||
32156          test ! -s conftest.err
32157        } && test -s conftest.$ac_objext; then
32158
32159               ba_cv_header_utime_h=yes
32160
32161 else
32162   echo "$as_me: failed program was:" >&5
32163 sed 's/^/| /' conftest.$ac_ext >&5
32164
32165
32166               ba_cv_header_utime_h=no
32167
32168
32169 fi
32170
32171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32172
32173
32174 fi
32175 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32176 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32177 test $ba_cv_header_utime_h = yes &&
32178 cat >>confdefs.h <<\_ACEOF
32179 #define HAVE_UTIME_H 1
32180 _ACEOF
32181
32182
32183 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32184 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32185 if test "${ba_cv_header_socklen_t+set}" = set; then
32186   echo $ECHO_N "(cached) $ECHO_C" >&6
32187 else
32188
32189        cat >conftest.$ac_ext <<_ACEOF
32190 /* confdefs.h.  */
32191 _ACEOF
32192 cat confdefs.h >>conftest.$ac_ext
32193 cat >>conftest.$ac_ext <<_ACEOF
32194 /* end confdefs.h.  */
32195
32196               #include <sys/types.h>
32197               #include <sys/socket.h>
32198
32199 int
32200 main ()
32201 {
32202
32203               socklen_t x
32204
32205   ;
32206   return 0;
32207 }
32208 _ACEOF
32209 rm -f conftest.$ac_objext
32210 if { (ac_try="$ac_compile"
32211 case "(($ac_try" in
32212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32213   *) ac_try_echo=$ac_try;;
32214 esac
32215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32216   (eval "$ac_compile") 2>conftest.er1
32217   ac_status=$?
32218   grep -v '^ *+' conftest.er1 >conftest.err
32219   rm -f conftest.er1
32220   cat conftest.err >&5
32221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222   (exit $ac_status); } && {
32223          test -z "$ac_c_werror_flag" ||
32224          test ! -s conftest.err
32225        } && test -s conftest.$ac_objext; then
32226
32227              ba_cv_header_socklen_t=yes
32228
32229 else
32230   echo "$as_me: failed program was:" >&5
32231 sed 's/^/| /' conftest.$ac_ext >&5
32232
32233
32234              ba_cv_header_socklen_t=no
32235
32236
32237 fi
32238
32239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32240
32241
32242 fi
32243 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32244 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32245 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32246 #define HAVE_SOCKLEN_T 1
32247 _ACEOF
32248
32249
32250 { echo "$as_me:$LINENO: checking for bigendian" >&5
32251 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32252 if test "${ba_cv_bigendian+set}" = set; then
32253   echo $ECHO_N "(cached) $ECHO_C" >&6
32254 else
32255
32256        if test "$cross_compiling" = yes; then
32257
32258              ba_cv_bigendian=no
32259
32260
32261 else
32262   cat >conftest.$ac_ext <<_ACEOF
32263 /* confdefs.h.  */
32264 _ACEOF
32265 cat confdefs.h >>conftest.$ac_ext
32266 cat >>conftest.$ac_ext <<_ACEOF
32267 /* end confdefs.h.  */
32268
32269               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32270
32271 _ACEOF
32272 rm -f conftest$ac_exeext
32273 if { (ac_try="$ac_link"
32274 case "(($ac_try" in
32275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32276   *) ac_try_echo=$ac_try;;
32277 esac
32278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32279   (eval "$ac_link") 2>&5
32280   ac_status=$?
32281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32283   { (case "(($ac_try" in
32284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285   *) ac_try_echo=$ac_try;;
32286 esac
32287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288   (eval "$ac_try") 2>&5
32289   ac_status=$?
32290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291   (exit $ac_status); }; }; then
32292
32293              ba_cv_bigendian=yes
32294
32295 else
32296   echo "$as_me: program exited with status $ac_status" >&5
32297 echo "$as_me: failed program was:" >&5
32298 sed 's/^/| /' conftest.$ac_ext >&5
32299
32300 ( exit $ac_status )
32301
32302              ba_cv_bigendian=no
32303
32304 fi
32305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32306 fi
32307
32308
32309
32310
32311 fi
32312 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32313 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32314 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32315 #define HAVE_BIGENDIAN 1
32316 _ACEOF
32317
32318
32319 ac_ext=cpp
32320 ac_cpp='$CXXCPP $CPPFLAGS'
32321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32324
32325 { echo "$as_me:$LINENO: checking for typeof" >&5
32326 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32327 if test "${ba_cv_have_typeof+set}" = set; then
32328   echo $ECHO_N "(cached) $ECHO_C" >&6
32329 else
32330
32331        if test "$cross_compiling" = yes; then
32332
32333               ba_cv_have_typeof=no
32334
32335
32336 else
32337   cat >conftest.$ac_ext <<_ACEOF
32338 /* confdefs.h.  */
32339 _ACEOF
32340 cat confdefs.h >>conftest.$ac_ext
32341 cat >>conftest.$ac_ext <<_ACEOF
32342 /* end confdefs.h.  */
32343
32344               main(){char *a = 0; a = (typeof a)a;}
32345
32346 _ACEOF
32347 rm -f conftest$ac_exeext
32348 if { (ac_try="$ac_link"
32349 case "(($ac_try" in
32350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32351   *) ac_try_echo=$ac_try;;
32352 esac
32353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32354   (eval "$ac_link") 2>&5
32355   ac_status=$?
32356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32358   { (case "(($ac_try" in
32359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360   *) ac_try_echo=$ac_try;;
32361 esac
32362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363   (eval "$ac_try") 2>&5
32364   ac_status=$?
32365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366   (exit $ac_status); }; }; then
32367
32368               ba_cv_have_typeof=yes
32369
32370 else
32371   echo "$as_me: program exited with status $ac_status" >&5
32372 echo "$as_me: failed program was:" >&5
32373 sed 's/^/| /' conftest.$ac_ext >&5
32374
32375 ( exit $ac_status )
32376
32377               ba_cv_have_typeof=no
32378
32379 fi
32380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32381 fi
32382
32383
32384
32385
32386 fi
32387 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32388 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32389 test $ba_cv_have_typeof = yes &&
32390 cat >>confdefs.h <<\_ACEOF
32391 #define HAVE_TYPEOF 1
32392 _ACEOF
32393
32394 ac_ext=c
32395 ac_cpp='$CPP $CPPFLAGS'
32396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32399
32400
32401 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32402 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32403 if test "${ac_cv_c_const+set}" = set; then
32404   echo $ECHO_N "(cached) $ECHO_C" >&6
32405 else
32406   cat >conftest.$ac_ext <<_ACEOF
32407 /* confdefs.h.  */
32408 _ACEOF
32409 cat confdefs.h >>conftest.$ac_ext
32410 cat >>conftest.$ac_ext <<_ACEOF
32411 /* end confdefs.h.  */
32412
32413 int
32414 main ()
32415 {
32416 /* FIXME: Include the comments suggested by Paul. */
32417 #ifndef __cplusplus
32418   /* Ultrix mips cc rejects this.  */
32419   typedef int charset[2];
32420   const charset cs;
32421   /* SunOS 4.1.1 cc rejects this.  */
32422   char const *const *pcpcc;
32423   char **ppc;
32424   /* NEC SVR4.0.2 mips cc rejects this.  */
32425   struct point {int x, y;};
32426   static struct point const zero = {0,0};
32427   /* AIX XL C 1.02.0.0 rejects this.
32428      It does not let you subtract one const X* pointer from another in
32429      an arm of an if-expression whose if-part is not a constant
32430      expression */
32431   const char *g = "string";
32432   pcpcc = &g + (g ? g-g : 0);
32433   /* HPUX 7.0 cc rejects these. */
32434   ++pcpcc;
32435   ppc = (char**) pcpcc;
32436   pcpcc = (char const *const *) ppc;
32437   { /* SCO 3.2v4 cc rejects this.  */
32438     char *t;
32439     char const *s = 0 ? (char *) 0 : (char const *) 0;
32440
32441     *t++ = 0;
32442     if (s) return 0;
32443   }
32444   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32445     int x[] = {25, 17};
32446     const int *foo = &x[0];
32447     ++foo;
32448   }
32449   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32450     typedef const int *iptr;
32451     iptr p = 0;
32452     ++p;
32453   }
32454   { /* AIX XL C 1.02.0.0 rejects this saying
32455        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32456     struct s { int j; const int *ap[3]; };
32457     struct s *b; b->j = 5;
32458   }
32459   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32460     const int foo = 10;
32461     if (!foo) return 0;
32462   }
32463   return !cs[0] && !zero.x;
32464 #endif
32465
32466   ;
32467   return 0;
32468 }
32469 _ACEOF
32470 rm -f conftest.$ac_objext
32471 if { (ac_try="$ac_compile"
32472 case "(($ac_try" in
32473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32474   *) ac_try_echo=$ac_try;;
32475 esac
32476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32477   (eval "$ac_compile") 2>conftest.er1
32478   ac_status=$?
32479   grep -v '^ *+' conftest.er1 >conftest.err
32480   rm -f conftest.er1
32481   cat conftest.err >&5
32482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483   (exit $ac_status); } && {
32484          test -z "$ac_c_werror_flag" ||
32485          test ! -s conftest.err
32486        } && test -s conftest.$ac_objext; then
32487   ac_cv_c_const=yes
32488 else
32489   echo "$as_me: failed program was:" >&5
32490 sed 's/^/| /' conftest.$ac_ext >&5
32491
32492         ac_cv_c_const=no
32493 fi
32494
32495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32496 fi
32497 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32498 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32499 if test $ac_cv_c_const = no; then
32500
32501 cat >>confdefs.h <<\_ACEOF
32502 #define const
32503 _ACEOF
32504
32505 fi
32506
32507
32508 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32509 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32510 fstype=no
32511 # The order of these tests is important.
32512 cat >conftest.$ac_ext <<_ACEOF
32513 /* confdefs.h.  */
32514 _ACEOF
32515 cat confdefs.h >>conftest.$ac_ext
32516 cat >>conftest.$ac_ext <<_ACEOF
32517 /* end confdefs.h.  */
32518
32519        #include <sys/statvfs.h>
32520        #include <sys/fstyp.h>
32521
32522 _ACEOF
32523 if { (ac_try="$ac_cpp conftest.$ac_ext"
32524 case "(($ac_try" in
32525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32526   *) ac_try_echo=$ac_try;;
32527 esac
32528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32529   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32530   ac_status=$?
32531   grep -v '^ *+' conftest.er1 >conftest.err
32532   rm -f conftest.er1
32533   cat conftest.err >&5
32534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535   (exit $ac_status); } >/dev/null && {
32536          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32537          test ! -s conftest.err
32538        }; then
32539   cat >>confdefs.h <<\_ACEOF
32540 #define FSTYPE_STATVFS 1
32541 _ACEOF
32542  fstype=SVR4
32543
32544 else
32545   echo "$as_me: failed program was:" >&5
32546 sed 's/^/| /' conftest.$ac_ext >&5
32547
32548
32549 fi
32550
32551 rm -f conftest.err conftest.$ac_ext
32552 if test $fstype = no; then
32553    cat >conftest.$ac_ext <<_ACEOF
32554 /* confdefs.h.  */
32555 _ACEOF
32556 cat confdefs.h >>conftest.$ac_ext
32557 cat >>conftest.$ac_ext <<_ACEOF
32558 /* end confdefs.h.  */
32559
32560           #include <sys/statfs.h>
32561           #include <sys/fstyp.h>
32562
32563 _ACEOF
32564 if { (ac_try="$ac_cpp conftest.$ac_ext"
32565 case "(($ac_try" in
32566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32567   *) ac_try_echo=$ac_try;;
32568 esac
32569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32571   ac_status=$?
32572   grep -v '^ *+' conftest.er1 >conftest.err
32573   rm -f conftest.er1
32574   cat conftest.err >&5
32575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32576   (exit $ac_status); } >/dev/null && {
32577          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32578          test ! -s conftest.err
32579        }; then
32580   cat >>confdefs.h <<\_ACEOF
32581 #define FSTYPE_USG_STATFS 1
32582 _ACEOF
32583  fstype=SVR3
32584
32585 else
32586   echo "$as_me: failed program was:" >&5
32587 sed 's/^/| /' conftest.$ac_ext >&5
32588
32589
32590 fi
32591
32592 rm -f conftest.err conftest.$ac_ext
32593 fi
32594 if test $fstype = no; then
32595    cat >conftest.$ac_ext <<_ACEOF
32596 /* confdefs.h.  */
32597 _ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h.  */
32601
32602           #include <sys/statfs.h>
32603           #include <sys/vmount.h>
32604
32605 _ACEOF
32606 if { (ac_try="$ac_cpp conftest.$ac_ext"
32607 case "(($ac_try" in
32608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609   *) ac_try_echo=$ac_try;;
32610 esac
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32613   ac_status=$?
32614   grep -v '^ *+' conftest.er1 >conftest.err
32615   rm -f conftest.er1
32616   cat conftest.err >&5
32617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618   (exit $ac_status); } >/dev/null && {
32619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32620          test ! -s conftest.err
32621        }; then
32622   cat >>confdefs.h <<\_ACEOF
32623 #define FSTYPE_AIX_STATFS 1
32624 _ACEOF
32625  fstype=AIX
32626
32627 else
32628   echo "$as_me: failed program was:" >&5
32629 sed 's/^/| /' conftest.$ac_ext >&5
32630
32631
32632 fi
32633
32634 rm -f conftest.err conftest.$ac_ext
32635 fi
32636 if test $fstype = no; then
32637    cat >conftest.$ac_ext <<_ACEOF
32638 /* confdefs.h.  */
32639 _ACEOF
32640 cat confdefs.h >>conftest.$ac_ext
32641 cat >>conftest.$ac_ext <<_ACEOF
32642 /* end confdefs.h.  */
32643
32644           #include <mntent.h>
32645
32646 _ACEOF
32647 if { (ac_try="$ac_cpp conftest.$ac_ext"
32648 case "(($ac_try" in
32649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650   *) ac_try_echo=$ac_try;;
32651 esac
32652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32654   ac_status=$?
32655   grep -v '^ *+' conftest.er1 >conftest.err
32656   rm -f conftest.er1
32657   cat conftest.err >&5
32658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659   (exit $ac_status); } >/dev/null && {
32660          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32661          test ! -s conftest.err
32662        }; then
32663   cat >>confdefs.h <<\_ACEOF
32664 #define FSTYPE_MNTENT 1
32665 _ACEOF
32666  fstype=4.3BSD
32667
32668 else
32669   echo "$as_me: failed program was:" >&5
32670 sed 's/^/| /' conftest.$ac_ext >&5
32671
32672
32673 fi
32674
32675 rm -f conftest.err conftest.$ac_ext
32676 fi
32677 if test $fstype = no; then
32678    cat >conftest.$ac_ext <<_ACEOF
32679 /* confdefs.h.  */
32680 _ACEOF
32681 cat confdefs.h >>conftest.$ac_ext
32682 cat >>conftest.$ac_ext <<_ACEOF
32683 /* end confdefs.h.  */
32684 #include <sys/mount.h>
32685
32686 _ACEOF
32687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32688   $EGREP "f_type;" >/dev/null 2>&1; then
32689   cat >>confdefs.h <<\_ACEOF
32690 #define FSTYPE_STATFS 1
32691 _ACEOF
32692  fstype=4.4BSD/OSF1
32693 fi
32694 rm -f conftest*
32695
32696 fi
32697 if test $fstype = no; then
32698    cat >conftest.$ac_ext <<_ACEOF
32699 /* confdefs.h.  */
32700 _ACEOF
32701 cat confdefs.h >>conftest.$ac_ext
32702 cat >>conftest.$ac_ext <<_ACEOF
32703 /* end confdefs.h.  */
32704
32705           #include <sys/mount.h>
32706           #include <sys/fs_types.h>
32707
32708 _ACEOF
32709 if { (ac_try="$ac_cpp conftest.$ac_ext"
32710 case "(($ac_try" in
32711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32712   *) ac_try_echo=$ac_try;;
32713 esac
32714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32716   ac_status=$?
32717   grep -v '^ *+' conftest.er1 >conftest.err
32718   rm -f conftest.er1
32719   cat conftest.err >&5
32720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721   (exit $ac_status); } >/dev/null && {
32722          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32723          test ! -s conftest.err
32724        }; then
32725   cat >>confdefs.h <<\_ACEOF
32726 #define FSTYPE_GETMNT 1
32727 _ACEOF
32728  fstype=Ultrix
32729
32730 else
32731   echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.$ac_ext >&5
32733
32734
32735 fi
32736
32737 rm -f conftest.err conftest.$ac_ext
32738 fi
32739 { echo "$as_me:$LINENO: result: $fstype" >&5
32740 echo "${ECHO_T}$fstype" >&6; }
32741
32742 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32743   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32744 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32745 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32746   echo $ECHO_N "(cached) $ECHO_C" >&6
32747 fi
32748 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32749 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32750 else
32751   # Is the header compilable?
32752 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32753 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32754 cat >conftest.$ac_ext <<_ACEOF
32755 /* confdefs.h.  */
32756 _ACEOF
32757 cat confdefs.h >>conftest.$ac_ext
32758 cat >>conftest.$ac_ext <<_ACEOF
32759 /* end confdefs.h.  */
32760 $ac_includes_default
32761 #include <sys/statvfs.h>
32762 _ACEOF
32763 rm -f conftest.$ac_objext
32764 if { (ac_try="$ac_compile"
32765 case "(($ac_try" in
32766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32767   *) ac_try_echo=$ac_try;;
32768 esac
32769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32770   (eval "$ac_compile") 2>conftest.er1
32771   ac_status=$?
32772   grep -v '^ *+' conftest.er1 >conftest.err
32773   rm -f conftest.er1
32774   cat conftest.err >&5
32775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776   (exit $ac_status); } && {
32777          test -z "$ac_c_werror_flag" ||
32778          test ! -s conftest.err
32779        } && test -s conftest.$ac_objext; then
32780   ac_header_compiler=yes
32781 else
32782   echo "$as_me: failed program was:" >&5
32783 sed 's/^/| /' conftest.$ac_ext >&5
32784
32785         ac_header_compiler=no
32786 fi
32787
32788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32790 echo "${ECHO_T}$ac_header_compiler" >&6; }
32791
32792 # Is the header present?
32793 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32794 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32795 cat >conftest.$ac_ext <<_ACEOF
32796 /* confdefs.h.  */
32797 _ACEOF
32798 cat confdefs.h >>conftest.$ac_ext
32799 cat >>conftest.$ac_ext <<_ACEOF
32800 /* end confdefs.h.  */
32801 #include <sys/statvfs.h>
32802 _ACEOF
32803 if { (ac_try="$ac_cpp conftest.$ac_ext"
32804 case "(($ac_try" in
32805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32806   *) ac_try_echo=$ac_try;;
32807 esac
32808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32810   ac_status=$?
32811   grep -v '^ *+' conftest.er1 >conftest.err
32812   rm -f conftest.er1
32813   cat conftest.err >&5
32814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815   (exit $ac_status); } >/dev/null && {
32816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32817          test ! -s conftest.err
32818        }; then
32819   ac_header_preproc=yes
32820 else
32821   echo "$as_me: failed program was:" >&5
32822 sed 's/^/| /' conftest.$ac_ext >&5
32823
32824   ac_header_preproc=no
32825 fi
32826
32827 rm -f conftest.err conftest.$ac_ext
32828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32829 echo "${ECHO_T}$ac_header_preproc" >&6; }
32830
32831 # So?  What about this header?
32832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32833   yes:no: )
32834     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32835 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32836     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32837 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32838     ac_header_preproc=yes
32839     ;;
32840   no:yes:* )
32841     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32842 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32843     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32844 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32845     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32846 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32847     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32848 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32849     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32850 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32851     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32852 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32853
32854     ;;
32855 esac
32856 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32857 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32858 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32859   echo $ECHO_N "(cached) $ECHO_C" >&6
32860 else
32861   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32862 fi
32863 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32864 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32865
32866 fi
32867 if test $ac_cv_header_sys_statvfs_h = yes; then
32868
32869 cat >>confdefs.h <<\_ACEOF
32870 #define HAVE_SYS_STATVFS_H 1
32871 _ACEOF
32872
32873 fi
32874
32875
32876
32877 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32878 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32879 if test "${ac_cv_type_signal+set}" = set; then
32880   echo $ECHO_N "(cached) $ECHO_C" >&6
32881 else
32882   cat >conftest.$ac_ext <<_ACEOF
32883 /* confdefs.h.  */
32884 _ACEOF
32885 cat confdefs.h >>conftest.$ac_ext
32886 cat >>conftest.$ac_ext <<_ACEOF
32887 /* end confdefs.h.  */
32888 #include <sys/types.h>
32889 #include <signal.h>
32890
32891 int
32892 main ()
32893 {
32894 return *(signal (0, 0)) (0) == 1;
32895   ;
32896   return 0;
32897 }
32898 _ACEOF
32899 rm -f conftest.$ac_objext
32900 if { (ac_try="$ac_compile"
32901 case "(($ac_try" in
32902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32903   *) ac_try_echo=$ac_try;;
32904 esac
32905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32906   (eval "$ac_compile") 2>conftest.er1
32907   ac_status=$?
32908   grep -v '^ *+' conftest.er1 >conftest.err
32909   rm -f conftest.er1
32910   cat conftest.err >&5
32911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912   (exit $ac_status); } && {
32913          test -z "$ac_c_werror_flag" ||
32914          test ! -s conftest.err
32915        } && test -s conftest.$ac_objext; then
32916   ac_cv_type_signal=int
32917 else
32918   echo "$as_me: failed program was:" >&5
32919 sed 's/^/| /' conftest.$ac_ext >&5
32920
32921         ac_cv_type_signal=void
32922 fi
32923
32924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32925 fi
32926 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32927 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32928
32929 cat >>confdefs.h <<_ACEOF
32930 #define RETSIGTYPE $ac_cv_type_signal
32931 _ACEOF
32932
32933
32934
32935   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32936 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32937   if test "${bash_cv_signal_vintage+set}" = set; then
32938   echo $ECHO_N "(cached) $ECHO_C" >&6
32939 else
32940
32941     cat >conftest.$ac_ext <<_ACEOF
32942 /* confdefs.h.  */
32943 _ACEOF
32944 cat confdefs.h >>conftest.$ac_ext
32945 cat >>conftest.$ac_ext <<_ACEOF
32946 /* end confdefs.h.  */
32947 #include <signal.h>
32948 int
32949 main ()
32950 {
32951
32952       sigset_t ss;
32953       struct sigaction sa;
32954       sigemptyset(&ss); sigsuspend(&ss);
32955       sigaction(SIGINT, &sa, (struct sigaction *) 0);
32956       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32957
32958   ;
32959   return 0;
32960 }
32961 _ACEOF
32962 rm -f conftest.$ac_objext conftest$ac_exeext
32963 if { (ac_try="$ac_link"
32964 case "(($ac_try" in
32965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32966   *) ac_try_echo=$ac_try;;
32967 esac
32968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32969   (eval "$ac_link") 2>conftest.er1
32970   ac_status=$?
32971   grep -v '^ *+' conftest.er1 >conftest.err
32972   rm -f conftest.er1
32973   cat conftest.err >&5
32974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975   (exit $ac_status); } && {
32976          test -z "$ac_c_werror_flag" ||
32977          test ! -s conftest.err
32978        } && test -s conftest$ac_exeext &&
32979        $as_test_x conftest$ac_exeext; then
32980   bash_cv_signal_vintage="posix"
32981 else
32982   echo "$as_me: failed program was:" >&5
32983 sed 's/^/| /' conftest.$ac_ext >&5
32984
32985
32986       cat >conftest.$ac_ext <<_ACEOF
32987 /* confdefs.h.  */
32988 _ACEOF
32989 cat confdefs.h >>conftest.$ac_ext
32990 cat >>conftest.$ac_ext <<_ACEOF
32991 /* end confdefs.h.  */
32992 #include <signal.h>
32993 int
32994 main ()
32995 {
32996
32997           int mask = sigmask(SIGINT);
32998           sigsetmask(mask); sigblock(mask); sigpause(mask);
32999
33000   ;
33001   return 0;
33002 }
33003 _ACEOF
33004 rm -f conftest.$ac_objext conftest$ac_exeext
33005 if { (ac_try="$ac_link"
33006 case "(($ac_try" in
33007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33008   *) ac_try_echo=$ac_try;;
33009 esac
33010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33011   (eval "$ac_link") 2>conftest.er1
33012   ac_status=$?
33013   grep -v '^ *+' conftest.er1 >conftest.err
33014   rm -f conftest.er1
33015   cat conftest.err >&5
33016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017   (exit $ac_status); } && {
33018          test -z "$ac_c_werror_flag" ||
33019          test ! -s conftest.err
33020        } && test -s conftest$ac_exeext &&
33021        $as_test_x conftest$ac_exeext; then
33022   bash_cv_signal_vintage="4.2bsd"
33023 else
33024   echo "$as_me: failed program was:" >&5
33025 sed 's/^/| /' conftest.$ac_ext >&5
33026
33027
33028         cat >conftest.$ac_ext <<_ACEOF
33029 /* confdefs.h.  */
33030 _ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h.  */
33034
33035           #include <signal.h>
33036           RETSIGTYPE foo() { }
33037 int
33038 main ()
33039 {
33040
33041                   int mask = sigmask(SIGINT);
33042                   sigset(SIGINT, foo); sigrelse(SIGINT);
33043                   sighold(SIGINT); sigpause(SIGINT);
33044
33045   ;
33046   return 0;
33047 }
33048 _ACEOF
33049 rm -f conftest.$ac_objext conftest$ac_exeext
33050 if { (ac_try="$ac_link"
33051 case "(($ac_try" in
33052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33053   *) ac_try_echo=$ac_try;;
33054 esac
33055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33056   (eval "$ac_link") 2>conftest.er1
33057   ac_status=$?
33058   grep -v '^ *+' conftest.er1 >conftest.err
33059   rm -f conftest.er1
33060   cat conftest.err >&5
33061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062   (exit $ac_status); } && {
33063          test -z "$ac_c_werror_flag" ||
33064          test ! -s conftest.err
33065        } && test -s conftest$ac_exeext &&
33066        $as_test_x conftest$ac_exeext; then
33067   bash_cv_signal_vintage="svr3"
33068 else
33069   echo "$as_me: failed program was:" >&5
33070 sed 's/^/| /' conftest.$ac_ext >&5
33071
33072         bash_cv_signal_vintage="v7"
33073
33074 fi
33075
33076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33077       conftest$ac_exeext conftest.$ac_ext
33078
33079 fi
33080
33081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33082       conftest$ac_exeext conftest.$ac_ext
33083
33084 fi
33085
33086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33087       conftest$ac_exeext conftest.$ac_ext
33088
33089 fi
33090
33091   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33092 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33093   if test "$bash_cv_signal_vintage" = "posix"; then
33094     cat >>confdefs.h <<\_ACEOF
33095 #define HAVE_POSIX_SIGNALS 1
33096 _ACEOF
33097
33098   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33099     cat >>confdefs.h <<\_ACEOF
33100 #define HAVE_BSD_SIGNALS 1
33101 _ACEOF
33102
33103   elif test "$bash_cv_signal_vintage" = "svr3"; then
33104     cat >>confdefs.h <<\_ACEOF
33105 #define HAVE_USG_SIGHOLD 1
33106 _ACEOF
33107
33108   fi
33109
33110 { echo "$as_me:$LINENO: checking for mode_t" >&5
33111 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33112 if test "${ac_cv_type_mode_t+set}" = set; then
33113   echo $ECHO_N "(cached) $ECHO_C" >&6
33114 else
33115   cat >conftest.$ac_ext <<_ACEOF
33116 /* confdefs.h.  */
33117 _ACEOF
33118 cat confdefs.h >>conftest.$ac_ext
33119 cat >>conftest.$ac_ext <<_ACEOF
33120 /* end confdefs.h.  */
33121 $ac_includes_default
33122 typedef mode_t ac__type_new_;
33123 int
33124 main ()
33125 {
33126 if ((ac__type_new_ *) 0)
33127   return 0;
33128 if (sizeof (ac__type_new_))
33129   return 0;
33130   ;
33131   return 0;
33132 }
33133 _ACEOF
33134 rm -f conftest.$ac_objext
33135 if { (ac_try="$ac_compile"
33136 case "(($ac_try" in
33137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33138   *) ac_try_echo=$ac_try;;
33139 esac
33140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33141   (eval "$ac_compile") 2>conftest.er1
33142   ac_status=$?
33143   grep -v '^ *+' conftest.er1 >conftest.err
33144   rm -f conftest.er1
33145   cat conftest.err >&5
33146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147   (exit $ac_status); } && {
33148          test -z "$ac_c_werror_flag" ||
33149          test ! -s conftest.err
33150        } && test -s conftest.$ac_objext; then
33151   ac_cv_type_mode_t=yes
33152 else
33153   echo "$as_me: failed program was:" >&5
33154 sed 's/^/| /' conftest.$ac_ext >&5
33155
33156         ac_cv_type_mode_t=no
33157 fi
33158
33159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33160 fi
33161 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33162 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33163 if test $ac_cv_type_mode_t = yes; then
33164   :
33165 else
33166
33167 cat >>confdefs.h <<_ACEOF
33168 #define mode_t int
33169 _ACEOF
33170
33171 fi
33172
33173 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33174 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33175 if test "${ac_cv_type_uid_t+set}" = set; then
33176   echo $ECHO_N "(cached) $ECHO_C" >&6
33177 else
33178   cat >conftest.$ac_ext <<_ACEOF
33179 /* confdefs.h.  */
33180 _ACEOF
33181 cat confdefs.h >>conftest.$ac_ext
33182 cat >>conftest.$ac_ext <<_ACEOF
33183 /* end confdefs.h.  */
33184 #include <sys/types.h>
33185
33186 _ACEOF
33187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33188   $EGREP "uid_t" >/dev/null 2>&1; then
33189   ac_cv_type_uid_t=yes
33190 else
33191   ac_cv_type_uid_t=no
33192 fi
33193 rm -f conftest*
33194
33195 fi
33196 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33197 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33198 if test $ac_cv_type_uid_t = no; then
33199
33200 cat >>confdefs.h <<\_ACEOF
33201 #define uid_t int
33202 _ACEOF
33203
33204
33205 cat >>confdefs.h <<\_ACEOF
33206 #define gid_t int
33207 _ACEOF
33208
33209 fi
33210
33211 { echo "$as_me:$LINENO: checking for size_t" >&5
33212 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33213 if test "${ac_cv_type_size_t+set}" = set; then
33214   echo $ECHO_N "(cached) $ECHO_C" >&6
33215 else
33216   cat >conftest.$ac_ext <<_ACEOF
33217 /* confdefs.h.  */
33218 _ACEOF
33219 cat confdefs.h >>conftest.$ac_ext
33220 cat >>conftest.$ac_ext <<_ACEOF
33221 /* end confdefs.h.  */
33222 $ac_includes_default
33223 typedef size_t ac__type_new_;
33224 int
33225 main ()
33226 {
33227 if ((ac__type_new_ *) 0)
33228   return 0;
33229 if (sizeof (ac__type_new_))
33230   return 0;
33231   ;
33232   return 0;
33233 }
33234 _ACEOF
33235 rm -f conftest.$ac_objext
33236 if { (ac_try="$ac_compile"
33237 case "(($ac_try" in
33238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33239   *) ac_try_echo=$ac_try;;
33240 esac
33241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33242   (eval "$ac_compile") 2>conftest.er1
33243   ac_status=$?
33244   grep -v '^ *+' conftest.er1 >conftest.err
33245   rm -f conftest.er1
33246   cat conftest.err >&5
33247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248   (exit $ac_status); } && {
33249          test -z "$ac_c_werror_flag" ||
33250          test ! -s conftest.err
33251        } && test -s conftest.$ac_objext; then
33252   ac_cv_type_size_t=yes
33253 else
33254   echo "$as_me: failed program was:" >&5
33255 sed 's/^/| /' conftest.$ac_ext >&5
33256
33257         ac_cv_type_size_t=no
33258 fi
33259
33260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33261 fi
33262 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33263 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33264 if test $ac_cv_type_size_t = yes; then
33265   :
33266 else
33267
33268 cat >>confdefs.h <<_ACEOF
33269 #define size_t unsigned int
33270 _ACEOF
33271
33272 fi
33273
33274 { echo "$as_me:$LINENO: checking for pid_t" >&5
33275 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33276 if test "${ac_cv_type_pid_t+set}" = set; then
33277   echo $ECHO_N "(cached) $ECHO_C" >&6
33278 else
33279   cat >conftest.$ac_ext <<_ACEOF
33280 /* confdefs.h.  */
33281 _ACEOF
33282 cat confdefs.h >>conftest.$ac_ext
33283 cat >>conftest.$ac_ext <<_ACEOF
33284 /* end confdefs.h.  */
33285 $ac_includes_default
33286 typedef pid_t ac__type_new_;
33287 int
33288 main ()
33289 {
33290 if ((ac__type_new_ *) 0)
33291   return 0;
33292 if (sizeof (ac__type_new_))
33293   return 0;
33294   ;
33295   return 0;
33296 }
33297 _ACEOF
33298 rm -f conftest.$ac_objext
33299 if { (ac_try="$ac_compile"
33300 case "(($ac_try" in
33301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33302   *) ac_try_echo=$ac_try;;
33303 esac
33304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33305   (eval "$ac_compile") 2>conftest.er1
33306   ac_status=$?
33307   grep -v '^ *+' conftest.er1 >conftest.err
33308   rm -f conftest.er1
33309   cat conftest.err >&5
33310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311   (exit $ac_status); } && {
33312          test -z "$ac_c_werror_flag" ||
33313          test ! -s conftest.err
33314        } && test -s conftest.$ac_objext; then
33315   ac_cv_type_pid_t=yes
33316 else
33317   echo "$as_me: failed program was:" >&5
33318 sed 's/^/| /' conftest.$ac_ext >&5
33319
33320         ac_cv_type_pid_t=no
33321 fi
33322
33323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33324 fi
33325 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33326 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33327 if test $ac_cv_type_pid_t = yes; then
33328   :
33329 else
33330
33331 cat >>confdefs.h <<_ACEOF
33332 #define pid_t int
33333 _ACEOF
33334
33335 fi
33336
33337 { echo "$as_me:$LINENO: checking for off_t" >&5
33338 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33339 if test "${ac_cv_type_off_t+set}" = set; then
33340   echo $ECHO_N "(cached) $ECHO_C" >&6
33341 else
33342   cat >conftest.$ac_ext <<_ACEOF
33343 /* confdefs.h.  */
33344 _ACEOF
33345 cat confdefs.h >>conftest.$ac_ext
33346 cat >>conftest.$ac_ext <<_ACEOF
33347 /* end confdefs.h.  */
33348 $ac_includes_default
33349 typedef off_t ac__type_new_;
33350 int
33351 main ()
33352 {
33353 if ((ac__type_new_ *) 0)
33354   return 0;
33355 if (sizeof (ac__type_new_))
33356   return 0;
33357   ;
33358   return 0;
33359 }
33360 _ACEOF
33361 rm -f conftest.$ac_objext
33362 if { (ac_try="$ac_compile"
33363 case "(($ac_try" in
33364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33365   *) ac_try_echo=$ac_try;;
33366 esac
33367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33368   (eval "$ac_compile") 2>conftest.er1
33369   ac_status=$?
33370   grep -v '^ *+' conftest.er1 >conftest.err
33371   rm -f conftest.er1
33372   cat conftest.err >&5
33373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374   (exit $ac_status); } && {
33375          test -z "$ac_c_werror_flag" ||
33376          test ! -s conftest.err
33377        } && test -s conftest.$ac_objext; then
33378   ac_cv_type_off_t=yes
33379 else
33380   echo "$as_me: failed program was:" >&5
33381 sed 's/^/| /' conftest.$ac_ext >&5
33382
33383         ac_cv_type_off_t=no
33384 fi
33385
33386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33387 fi
33388 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33389 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33390 if test $ac_cv_type_off_t = yes; then
33391   :
33392 else
33393
33394 cat >>confdefs.h <<_ACEOF
33395 #define off_t long int
33396 _ACEOF
33397
33398 fi
33399
33400 { echo "$as_me:$LINENO: checking for ino_t" >&5
33401 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33402 if test "${ac_cv_type_ino_t+set}" = set; then
33403   echo $ECHO_N "(cached) $ECHO_C" >&6
33404 else
33405   cat >conftest.$ac_ext <<_ACEOF
33406 /* confdefs.h.  */
33407 _ACEOF
33408 cat confdefs.h >>conftest.$ac_ext
33409 cat >>conftest.$ac_ext <<_ACEOF
33410 /* end confdefs.h.  */
33411 $ac_includes_default
33412 typedef ino_t ac__type_new_;
33413 int
33414 main ()
33415 {
33416 if ((ac__type_new_ *) 0)
33417   return 0;
33418 if (sizeof (ac__type_new_))
33419   return 0;
33420   ;
33421   return 0;
33422 }
33423 _ACEOF
33424 rm -f conftest.$ac_objext
33425 if { (ac_try="$ac_compile"
33426 case "(($ac_try" in
33427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33428   *) ac_try_echo=$ac_try;;
33429 esac
33430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33431   (eval "$ac_compile") 2>conftest.er1
33432   ac_status=$?
33433   grep -v '^ *+' conftest.er1 >conftest.err
33434   rm -f conftest.er1
33435   cat conftest.err >&5
33436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437   (exit $ac_status); } && {
33438          test -z "$ac_c_werror_flag" ||
33439          test ! -s conftest.err
33440        } && test -s conftest.$ac_objext; then
33441   ac_cv_type_ino_t=yes
33442 else
33443   echo "$as_me: failed program was:" >&5
33444 sed 's/^/| /' conftest.$ac_ext >&5
33445
33446         ac_cv_type_ino_t=no
33447 fi
33448
33449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33450 fi
33451 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33452 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33453 if test $ac_cv_type_ino_t = yes; then
33454   :
33455 else
33456
33457 cat >>confdefs.h <<_ACEOF
33458 #define ino_t unsigned long
33459 _ACEOF
33460
33461 fi
33462
33463 { echo "$as_me:$LINENO: checking for dev_t" >&5
33464 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33465 if test "${ac_cv_type_dev_t+set}" = set; then
33466   echo $ECHO_N "(cached) $ECHO_C" >&6
33467 else
33468   cat >conftest.$ac_ext <<_ACEOF
33469 /* confdefs.h.  */
33470 _ACEOF
33471 cat confdefs.h >>conftest.$ac_ext
33472 cat >>conftest.$ac_ext <<_ACEOF
33473 /* end confdefs.h.  */
33474 $ac_includes_default
33475 typedef dev_t ac__type_new_;
33476 int
33477 main ()
33478 {
33479 if ((ac__type_new_ *) 0)
33480   return 0;
33481 if (sizeof (ac__type_new_))
33482   return 0;
33483   ;
33484   return 0;
33485 }
33486 _ACEOF
33487 rm -f conftest.$ac_objext
33488 if { (ac_try="$ac_compile"
33489 case "(($ac_try" in
33490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33491   *) ac_try_echo=$ac_try;;
33492 esac
33493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33494   (eval "$ac_compile") 2>conftest.er1
33495   ac_status=$?
33496   grep -v '^ *+' conftest.er1 >conftest.err
33497   rm -f conftest.er1
33498   cat conftest.err >&5
33499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500   (exit $ac_status); } && {
33501          test -z "$ac_c_werror_flag" ||
33502          test ! -s conftest.err
33503        } && test -s conftest.$ac_objext; then
33504   ac_cv_type_dev_t=yes
33505 else
33506   echo "$as_me: failed program was:" >&5
33507 sed 's/^/| /' conftest.$ac_ext >&5
33508
33509         ac_cv_type_dev_t=no
33510 fi
33511
33512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33513 fi
33514 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33515 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33516 if test $ac_cv_type_dev_t = yes; then
33517   :
33518 else
33519
33520 cat >>confdefs.h <<_ACEOF
33521 #define dev_t unsigned long
33522 _ACEOF
33523
33524 fi
33525
33526 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33527 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33528 if test "${ac_cv_type_daddr_t+set}" = set; then
33529   echo $ECHO_N "(cached) $ECHO_C" >&6
33530 else
33531   cat >conftest.$ac_ext <<_ACEOF
33532 /* confdefs.h.  */
33533 _ACEOF
33534 cat confdefs.h >>conftest.$ac_ext
33535 cat >>conftest.$ac_ext <<_ACEOF
33536 /* end confdefs.h.  */
33537 $ac_includes_default
33538 typedef daddr_t ac__type_new_;
33539 int
33540 main ()
33541 {
33542 if ((ac__type_new_ *) 0)
33543   return 0;
33544 if (sizeof (ac__type_new_))
33545   return 0;
33546   ;
33547   return 0;
33548 }
33549 _ACEOF
33550 rm -f conftest.$ac_objext
33551 if { (ac_try="$ac_compile"
33552 case "(($ac_try" in
33553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33554   *) ac_try_echo=$ac_try;;
33555 esac
33556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33557   (eval "$ac_compile") 2>conftest.er1
33558   ac_status=$?
33559   grep -v '^ *+' conftest.er1 >conftest.err
33560   rm -f conftest.er1
33561   cat conftest.err >&5
33562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563   (exit $ac_status); } && {
33564          test -z "$ac_c_werror_flag" ||
33565          test ! -s conftest.err
33566        } && test -s conftest.$ac_objext; then
33567   ac_cv_type_daddr_t=yes
33568 else
33569   echo "$as_me: failed program was:" >&5
33570 sed 's/^/| /' conftest.$ac_ext >&5
33571
33572         ac_cv_type_daddr_t=no
33573 fi
33574
33575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33576 fi
33577 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33578 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33579 if test $ac_cv_type_daddr_t = yes; then
33580   :
33581 else
33582
33583 cat >>confdefs.h <<_ACEOF
33584 #define daddr_t long
33585 _ACEOF
33586
33587 fi
33588
33589 { echo "$as_me:$LINENO: checking for major_t" >&5
33590 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33591 if test "${ac_cv_type_major_t+set}" = set; then
33592   echo $ECHO_N "(cached) $ECHO_C" >&6
33593 else
33594   cat >conftest.$ac_ext <<_ACEOF
33595 /* confdefs.h.  */
33596 _ACEOF
33597 cat confdefs.h >>conftest.$ac_ext
33598 cat >>conftest.$ac_ext <<_ACEOF
33599 /* end confdefs.h.  */
33600 $ac_includes_default
33601 typedef major_t ac__type_new_;
33602 int
33603 main ()
33604 {
33605 if ((ac__type_new_ *) 0)
33606   return 0;
33607 if (sizeof (ac__type_new_))
33608   return 0;
33609   ;
33610   return 0;
33611 }
33612 _ACEOF
33613 rm -f conftest.$ac_objext
33614 if { (ac_try="$ac_compile"
33615 case "(($ac_try" in
33616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33617   *) ac_try_echo=$ac_try;;
33618 esac
33619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33620   (eval "$ac_compile") 2>conftest.er1
33621   ac_status=$?
33622   grep -v '^ *+' conftest.er1 >conftest.err
33623   rm -f conftest.er1
33624   cat conftest.err >&5
33625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33626   (exit $ac_status); } && {
33627          test -z "$ac_c_werror_flag" ||
33628          test ! -s conftest.err
33629        } && test -s conftest.$ac_objext; then
33630   ac_cv_type_major_t=yes
33631 else
33632   echo "$as_me: failed program was:" >&5
33633 sed 's/^/| /' conftest.$ac_ext >&5
33634
33635         ac_cv_type_major_t=no
33636 fi
33637
33638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33639 fi
33640 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33641 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33642 if test $ac_cv_type_major_t = yes; then
33643   :
33644 else
33645
33646 cat >>confdefs.h <<_ACEOF
33647 #define major_t int
33648 _ACEOF
33649
33650 fi
33651
33652 { echo "$as_me:$LINENO: checking for minor_t" >&5
33653 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33654 if test "${ac_cv_type_minor_t+set}" = set; then
33655   echo $ECHO_N "(cached) $ECHO_C" >&6
33656 else
33657   cat >conftest.$ac_ext <<_ACEOF
33658 /* confdefs.h.  */
33659 _ACEOF
33660 cat confdefs.h >>conftest.$ac_ext
33661 cat >>conftest.$ac_ext <<_ACEOF
33662 /* end confdefs.h.  */
33663 $ac_includes_default
33664 typedef minor_t ac__type_new_;
33665 int
33666 main ()
33667 {
33668 if ((ac__type_new_ *) 0)
33669   return 0;
33670 if (sizeof (ac__type_new_))
33671   return 0;
33672   ;
33673   return 0;
33674 }
33675 _ACEOF
33676 rm -f conftest.$ac_objext
33677 if { (ac_try="$ac_compile"
33678 case "(($ac_try" in
33679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33680   *) ac_try_echo=$ac_try;;
33681 esac
33682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33683   (eval "$ac_compile") 2>conftest.er1
33684   ac_status=$?
33685   grep -v '^ *+' conftest.er1 >conftest.err
33686   rm -f conftest.er1
33687   cat conftest.err >&5
33688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689   (exit $ac_status); } && {
33690          test -z "$ac_c_werror_flag" ||
33691          test ! -s conftest.err
33692        } && test -s conftest.$ac_objext; then
33693   ac_cv_type_minor_t=yes
33694 else
33695   echo "$as_me: failed program was:" >&5
33696 sed 's/^/| /' conftest.$ac_ext >&5
33697
33698         ac_cv_type_minor_t=no
33699 fi
33700
33701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33702 fi
33703 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33704 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33705 if test $ac_cv_type_minor_t = yes; then
33706   :
33707 else
33708
33709 cat >>confdefs.h <<_ACEOF
33710 #define minor_t int
33711 _ACEOF
33712
33713 fi
33714
33715 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33716 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33717 if test "${ac_cv_type_ssize_t+set}" = set; then
33718   echo $ECHO_N "(cached) $ECHO_C" >&6
33719 else
33720   cat >conftest.$ac_ext <<_ACEOF
33721 /* confdefs.h.  */
33722 _ACEOF
33723 cat confdefs.h >>conftest.$ac_ext
33724 cat >>conftest.$ac_ext <<_ACEOF
33725 /* end confdefs.h.  */
33726 $ac_includes_default
33727 typedef ssize_t ac__type_new_;
33728 int
33729 main ()
33730 {
33731 if ((ac__type_new_ *) 0)
33732   return 0;
33733 if (sizeof (ac__type_new_))
33734   return 0;
33735   ;
33736   return 0;
33737 }
33738 _ACEOF
33739 rm -f conftest.$ac_objext
33740 if { (ac_try="$ac_compile"
33741 case "(($ac_try" in
33742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33743   *) ac_try_echo=$ac_try;;
33744 esac
33745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33746   (eval "$ac_compile") 2>conftest.er1
33747   ac_status=$?
33748   grep -v '^ *+' conftest.er1 >conftest.err
33749   rm -f conftest.er1
33750   cat conftest.err >&5
33751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752   (exit $ac_status); } && {
33753          test -z "$ac_c_werror_flag" ||
33754          test ! -s conftest.err
33755        } && test -s conftest.$ac_objext; then
33756   ac_cv_type_ssize_t=yes
33757 else
33758   echo "$as_me: failed program was:" >&5
33759 sed 's/^/| /' conftest.$ac_ext >&5
33760
33761         ac_cv_type_ssize_t=no
33762 fi
33763
33764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33765 fi
33766 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33767 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33768 if test $ac_cv_type_ssize_t = yes; then
33769   :
33770 else
33771
33772 cat >>confdefs.h <<_ACEOF
33773 #define ssize_t int
33774 _ACEOF
33775
33776 fi
33777
33778 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33779 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33780 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33781   echo $ECHO_N "(cached) $ECHO_C" >&6
33782 else
33783   cat >conftest.$ac_ext <<_ACEOF
33784 /* confdefs.h.  */
33785 _ACEOF
33786 cat confdefs.h >>conftest.$ac_ext
33787 cat >>conftest.$ac_ext <<_ACEOF
33788 /* end confdefs.h.  */
33789 $ac_includes_default
33790 int
33791 main ()
33792 {
33793 static struct stat ac_aggr;
33794 if (ac_aggr.st_blocks)
33795 return 0;
33796   ;
33797   return 0;
33798 }
33799 _ACEOF
33800 rm -f conftest.$ac_objext
33801 if { (ac_try="$ac_compile"
33802 case "(($ac_try" in
33803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33804   *) ac_try_echo=$ac_try;;
33805 esac
33806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33807   (eval "$ac_compile") 2>conftest.er1
33808   ac_status=$?
33809   grep -v '^ *+' conftest.er1 >conftest.err
33810   rm -f conftest.er1
33811   cat conftest.err >&5
33812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813   (exit $ac_status); } && {
33814          test -z "$ac_c_werror_flag" ||
33815          test ! -s conftest.err
33816        } && test -s conftest.$ac_objext; then
33817   ac_cv_member_struct_stat_st_blocks=yes
33818 else
33819   echo "$as_me: failed program was:" >&5
33820 sed 's/^/| /' conftest.$ac_ext >&5
33821
33822         cat >conftest.$ac_ext <<_ACEOF
33823 /* confdefs.h.  */
33824 _ACEOF
33825 cat confdefs.h >>conftest.$ac_ext
33826 cat >>conftest.$ac_ext <<_ACEOF
33827 /* end confdefs.h.  */
33828 $ac_includes_default
33829 int
33830 main ()
33831 {
33832 static struct stat ac_aggr;
33833 if (sizeof ac_aggr.st_blocks)
33834 return 0;
33835   ;
33836   return 0;
33837 }
33838 _ACEOF
33839 rm -f conftest.$ac_objext
33840 if { (ac_try="$ac_compile"
33841 case "(($ac_try" in
33842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33843   *) ac_try_echo=$ac_try;;
33844 esac
33845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33846   (eval "$ac_compile") 2>conftest.er1
33847   ac_status=$?
33848   grep -v '^ *+' conftest.er1 >conftest.err
33849   rm -f conftest.er1
33850   cat conftest.err >&5
33851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852   (exit $ac_status); } && {
33853          test -z "$ac_c_werror_flag" ||
33854          test ! -s conftest.err
33855        } && test -s conftest.$ac_objext; then
33856   ac_cv_member_struct_stat_st_blocks=yes
33857 else
33858   echo "$as_me: failed program was:" >&5
33859 sed 's/^/| /' conftest.$ac_ext >&5
33860
33861         ac_cv_member_struct_stat_st_blocks=no
33862 fi
33863
33864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33865 fi
33866
33867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33868 fi
33869 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33870 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33871 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33872
33873 cat >>confdefs.h <<_ACEOF
33874 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33875 _ACEOF
33876
33877
33878 cat >>confdefs.h <<\_ACEOF
33879 #define HAVE_ST_BLOCKS 1
33880 _ACEOF
33881
33882 else
33883   case " $LIBOBJS " in
33884   *" fileblocks.$ac_objext "* ) ;;
33885   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33886  ;;
33887 esac
33888
33889 fi
33890
33891
33892 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33893 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33894 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33895   echo $ECHO_N "(cached) $ECHO_C" >&6
33896 else
33897   cat >conftest.$ac_ext <<_ACEOF
33898 /* confdefs.h.  */
33899 _ACEOF
33900 cat confdefs.h >>conftest.$ac_ext
33901 cat >>conftest.$ac_ext <<_ACEOF
33902 /* end confdefs.h.  */
33903 $ac_includes_default
33904 int
33905 main ()
33906 {
33907 static struct stat ac_aggr;
33908 if (ac_aggr.st_rdev)
33909 return 0;
33910   ;
33911   return 0;
33912 }
33913 _ACEOF
33914 rm -f conftest.$ac_objext
33915 if { (ac_try="$ac_compile"
33916 case "(($ac_try" in
33917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918   *) ac_try_echo=$ac_try;;
33919 esac
33920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921   (eval "$ac_compile") 2>conftest.er1
33922   ac_status=$?
33923   grep -v '^ *+' conftest.er1 >conftest.err
33924   rm -f conftest.er1
33925   cat conftest.err >&5
33926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927   (exit $ac_status); } && {
33928          test -z "$ac_c_werror_flag" ||
33929          test ! -s conftest.err
33930        } && test -s conftest.$ac_objext; then
33931   ac_cv_member_struct_stat_st_rdev=yes
33932 else
33933   echo "$as_me: failed program was:" >&5
33934 sed 's/^/| /' conftest.$ac_ext >&5
33935
33936         cat >conftest.$ac_ext <<_ACEOF
33937 /* confdefs.h.  */
33938 _ACEOF
33939 cat confdefs.h >>conftest.$ac_ext
33940 cat >>conftest.$ac_ext <<_ACEOF
33941 /* end confdefs.h.  */
33942 $ac_includes_default
33943 int
33944 main ()
33945 {
33946 static struct stat ac_aggr;
33947 if (sizeof ac_aggr.st_rdev)
33948 return 0;
33949   ;
33950   return 0;
33951 }
33952 _ACEOF
33953 rm -f conftest.$ac_objext
33954 if { (ac_try="$ac_compile"
33955 case "(($ac_try" in
33956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33957   *) ac_try_echo=$ac_try;;
33958 esac
33959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33960   (eval "$ac_compile") 2>conftest.er1
33961   ac_status=$?
33962   grep -v '^ *+' conftest.er1 >conftest.err
33963   rm -f conftest.er1
33964   cat conftest.err >&5
33965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33966   (exit $ac_status); } && {
33967          test -z "$ac_c_werror_flag" ||
33968          test ! -s conftest.err
33969        } && test -s conftest.$ac_objext; then
33970   ac_cv_member_struct_stat_st_rdev=yes
33971 else
33972   echo "$as_me: failed program was:" >&5
33973 sed 's/^/| /' conftest.$ac_ext >&5
33974
33975         ac_cv_member_struct_stat_st_rdev=no
33976 fi
33977
33978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33979 fi
33980
33981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33982 fi
33983 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33984 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33985 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33986
33987 cat >>confdefs.h <<_ACEOF
33988 #define HAVE_STRUCT_STAT_ST_RDEV 1
33989 _ACEOF
33990
33991
33992 cat >>confdefs.h <<\_ACEOF
33993 #define HAVE_ST_RDEV 1
33994 _ACEOF
33995
33996 fi
33997
33998
33999 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34000 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34001 if test "${ac_cv_struct_tm+set}" = set; then
34002   echo $ECHO_N "(cached) $ECHO_C" >&6
34003 else
34004   cat >conftest.$ac_ext <<_ACEOF
34005 /* confdefs.h.  */
34006 _ACEOF
34007 cat confdefs.h >>conftest.$ac_ext
34008 cat >>conftest.$ac_ext <<_ACEOF
34009 /* end confdefs.h.  */
34010 #include <sys/types.h>
34011 #include <time.h>
34012
34013 int
34014 main ()
34015 {
34016 struct tm tm;
34017                                      int *p = &tm.tm_sec;
34018                                      return !p;
34019   ;
34020   return 0;
34021 }
34022 _ACEOF
34023 rm -f conftest.$ac_objext
34024 if { (ac_try="$ac_compile"
34025 case "(($ac_try" in
34026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34027   *) ac_try_echo=$ac_try;;
34028 esac
34029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34030   (eval "$ac_compile") 2>conftest.er1
34031   ac_status=$?
34032   grep -v '^ *+' conftest.er1 >conftest.err
34033   rm -f conftest.er1
34034   cat conftest.err >&5
34035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036   (exit $ac_status); } && {
34037          test -z "$ac_c_werror_flag" ||
34038          test ! -s conftest.err
34039        } && test -s conftest.$ac_objext; then
34040   ac_cv_struct_tm=time.h
34041 else
34042   echo "$as_me: failed program was:" >&5
34043 sed 's/^/| /' conftest.$ac_ext >&5
34044
34045         ac_cv_struct_tm=sys/time.h
34046 fi
34047
34048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34049 fi
34050 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34051 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34052 if test $ac_cv_struct_tm = sys/time.h; then
34053
34054 cat >>confdefs.h <<\_ACEOF
34055 #define TM_IN_SYS_TIME 1
34056 _ACEOF
34057
34058 fi
34059
34060 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34061 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34062 if test "${ac_cv_c_const+set}" = set; then
34063   echo $ECHO_N "(cached) $ECHO_C" >&6
34064 else
34065   cat >conftest.$ac_ext <<_ACEOF
34066 /* confdefs.h.  */
34067 _ACEOF
34068 cat confdefs.h >>conftest.$ac_ext
34069 cat >>conftest.$ac_ext <<_ACEOF
34070 /* end confdefs.h.  */
34071
34072 int
34073 main ()
34074 {
34075 /* FIXME: Include the comments suggested by Paul. */
34076 #ifndef __cplusplus
34077   /* Ultrix mips cc rejects this.  */
34078   typedef int charset[2];
34079   const charset cs;
34080   /* SunOS 4.1.1 cc rejects this.  */
34081   char const *const *pcpcc;
34082   char **ppc;
34083   /* NEC SVR4.0.2 mips cc rejects this.  */
34084   struct point {int x, y;};
34085   static struct point const zero = {0,0};
34086   /* AIX XL C 1.02.0.0 rejects this.
34087      It does not let you subtract one const X* pointer from another in
34088      an arm of an if-expression whose if-part is not a constant
34089      expression */
34090   const char *g = "string";
34091   pcpcc = &g + (g ? g-g : 0);
34092   /* HPUX 7.0 cc rejects these. */
34093   ++pcpcc;
34094   ppc = (char**) pcpcc;
34095   pcpcc = (char const *const *) ppc;
34096   { /* SCO 3.2v4 cc rejects this.  */
34097     char *t;
34098     char const *s = 0 ? (char *) 0 : (char const *) 0;
34099
34100     *t++ = 0;
34101     if (s) return 0;
34102   }
34103   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34104     int x[] = {25, 17};
34105     const int *foo = &x[0];
34106     ++foo;
34107   }
34108   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34109     typedef const int *iptr;
34110     iptr p = 0;
34111     ++p;
34112   }
34113   { /* AIX XL C 1.02.0.0 rejects this saying
34114        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34115     struct s { int j; const int *ap[3]; };
34116     struct s *b; b->j = 5;
34117   }
34118   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34119     const int foo = 10;
34120     if (!foo) return 0;
34121   }
34122   return !cs[0] && !zero.x;
34123 #endif
34124
34125   ;
34126   return 0;
34127 }
34128 _ACEOF
34129 rm -f conftest.$ac_objext
34130 if { (ac_try="$ac_compile"
34131 case "(($ac_try" in
34132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34133   *) ac_try_echo=$ac_try;;
34134 esac
34135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34136   (eval "$ac_compile") 2>conftest.er1
34137   ac_status=$?
34138   grep -v '^ *+' conftest.er1 >conftest.err
34139   rm -f conftest.er1
34140   cat conftest.err >&5
34141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142   (exit $ac_status); } && {
34143          test -z "$ac_c_werror_flag" ||
34144          test ! -s conftest.err
34145        } && test -s conftest.$ac_objext; then
34146   ac_cv_c_const=yes
34147 else
34148   echo "$as_me: failed program was:" >&5
34149 sed 's/^/| /' conftest.$ac_ext >&5
34150
34151         ac_cv_c_const=no
34152 fi
34153
34154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34155 fi
34156 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34157 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34158 if test $ac_cv_c_const = no; then
34159
34160 cat >>confdefs.h <<\_ACEOF
34161 #define const
34162 _ACEOF
34163
34164 fi
34165
34166
34167 { echo "$as_me:$LINENO: checking for char" >&5
34168 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34169 if test "${ac_cv_type_char+set}" = set; then
34170   echo $ECHO_N "(cached) $ECHO_C" >&6
34171 else
34172   cat >conftest.$ac_ext <<_ACEOF
34173 /* confdefs.h.  */
34174 _ACEOF
34175 cat confdefs.h >>conftest.$ac_ext
34176 cat >>conftest.$ac_ext <<_ACEOF
34177 /* end confdefs.h.  */
34178 $ac_includes_default
34179 typedef char ac__type_new_;
34180 int
34181 main ()
34182 {
34183 if ((ac__type_new_ *) 0)
34184   return 0;
34185 if (sizeof (ac__type_new_))
34186   return 0;
34187   ;
34188   return 0;
34189 }
34190 _ACEOF
34191 rm -f conftest.$ac_objext
34192 if { (ac_try="$ac_compile"
34193 case "(($ac_try" in
34194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34195   *) ac_try_echo=$ac_try;;
34196 esac
34197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34198   (eval "$ac_compile") 2>conftest.er1
34199   ac_status=$?
34200   grep -v '^ *+' conftest.er1 >conftest.err
34201   rm -f conftest.er1
34202   cat conftest.err >&5
34203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204   (exit $ac_status); } && {
34205          test -z "$ac_c_werror_flag" ||
34206          test ! -s conftest.err
34207        } && test -s conftest.$ac_objext; then
34208   ac_cv_type_char=yes
34209 else
34210   echo "$as_me: failed program was:" >&5
34211 sed 's/^/| /' conftest.$ac_ext >&5
34212
34213         ac_cv_type_char=no
34214 fi
34215
34216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34217 fi
34218 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34219 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34220
34221 # The cast to long int works around a bug in the HP C Compiler
34222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34224 # This bug is HP SR number 8606223364.
34225 { echo "$as_me:$LINENO: checking size of char" >&5
34226 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34227 if test "${ac_cv_sizeof_char+set}" = set; then
34228   echo $ECHO_N "(cached) $ECHO_C" >&6
34229 else
34230   if test "$cross_compiling" = yes; then
34231   # Depending upon the size, compute the lo and hi bounds.
34232 cat >conftest.$ac_ext <<_ACEOF
34233 /* confdefs.h.  */
34234 _ACEOF
34235 cat confdefs.h >>conftest.$ac_ext
34236 cat >>conftest.$ac_ext <<_ACEOF
34237 /* end confdefs.h.  */
34238 $ac_includes_default
34239    typedef char ac__type_sizeof_;
34240 int
34241 main ()
34242 {
34243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34244 test_array [0] = 0
34245
34246   ;
34247   return 0;
34248 }
34249 _ACEOF
34250 rm -f conftest.$ac_objext
34251 if { (ac_try="$ac_compile"
34252 case "(($ac_try" in
34253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34254   *) ac_try_echo=$ac_try;;
34255 esac
34256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34257   (eval "$ac_compile") 2>conftest.er1
34258   ac_status=$?
34259   grep -v '^ *+' conftest.er1 >conftest.err
34260   rm -f conftest.er1
34261   cat conftest.err >&5
34262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263   (exit $ac_status); } && {
34264          test -z "$ac_c_werror_flag" ||
34265          test ! -s conftest.err
34266        } && test -s conftest.$ac_objext; then
34267   ac_lo=0 ac_mid=0
34268   while :; do
34269     cat >conftest.$ac_ext <<_ACEOF
34270 /* confdefs.h.  */
34271 _ACEOF
34272 cat confdefs.h >>conftest.$ac_ext
34273 cat >>conftest.$ac_ext <<_ACEOF
34274 /* end confdefs.h.  */
34275 $ac_includes_default
34276    typedef char ac__type_sizeof_;
34277 int
34278 main ()
34279 {
34280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34281 test_array [0] = 0
34282
34283   ;
34284   return 0;
34285 }
34286 _ACEOF
34287 rm -f conftest.$ac_objext
34288 if { (ac_try="$ac_compile"
34289 case "(($ac_try" in
34290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34291   *) ac_try_echo=$ac_try;;
34292 esac
34293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34294   (eval "$ac_compile") 2>conftest.er1
34295   ac_status=$?
34296   grep -v '^ *+' conftest.er1 >conftest.err
34297   rm -f conftest.er1
34298   cat conftest.err >&5
34299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300   (exit $ac_status); } && {
34301          test -z "$ac_c_werror_flag" ||
34302          test ! -s conftest.err
34303        } && test -s conftest.$ac_objext; then
34304   ac_hi=$ac_mid; break
34305 else
34306   echo "$as_me: failed program was:" >&5
34307 sed 's/^/| /' conftest.$ac_ext >&5
34308
34309         ac_lo=`expr $ac_mid + 1`
34310                         if test $ac_lo -le $ac_mid; then
34311                           ac_lo= ac_hi=
34312                           break
34313                         fi
34314                         ac_mid=`expr 2 '*' $ac_mid + 1`
34315 fi
34316
34317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34318   done
34319 else
34320   echo "$as_me: failed program was:" >&5
34321 sed 's/^/| /' conftest.$ac_ext >&5
34322
34323         cat >conftest.$ac_ext <<_ACEOF
34324 /* confdefs.h.  */
34325 _ACEOF
34326 cat confdefs.h >>conftest.$ac_ext
34327 cat >>conftest.$ac_ext <<_ACEOF
34328 /* end confdefs.h.  */
34329 $ac_includes_default
34330    typedef char ac__type_sizeof_;
34331 int
34332 main ()
34333 {
34334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34335 test_array [0] = 0
34336
34337   ;
34338   return 0;
34339 }
34340 _ACEOF
34341 rm -f conftest.$ac_objext
34342 if { (ac_try="$ac_compile"
34343 case "(($ac_try" in
34344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34345   *) ac_try_echo=$ac_try;;
34346 esac
34347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34348   (eval "$ac_compile") 2>conftest.er1
34349   ac_status=$?
34350   grep -v '^ *+' conftest.er1 >conftest.err
34351   rm -f conftest.er1
34352   cat conftest.err >&5
34353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354   (exit $ac_status); } && {
34355          test -z "$ac_c_werror_flag" ||
34356          test ! -s conftest.err
34357        } && test -s conftest.$ac_objext; then
34358   ac_hi=-1 ac_mid=-1
34359   while :; do
34360     cat >conftest.$ac_ext <<_ACEOF
34361 /* confdefs.h.  */
34362 _ACEOF
34363 cat confdefs.h >>conftest.$ac_ext
34364 cat >>conftest.$ac_ext <<_ACEOF
34365 /* end confdefs.h.  */
34366 $ac_includes_default
34367    typedef char ac__type_sizeof_;
34368 int
34369 main ()
34370 {
34371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34372 test_array [0] = 0
34373
34374   ;
34375   return 0;
34376 }
34377 _ACEOF
34378 rm -f conftest.$ac_objext
34379 if { (ac_try="$ac_compile"
34380 case "(($ac_try" in
34381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34382   *) ac_try_echo=$ac_try;;
34383 esac
34384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34385   (eval "$ac_compile") 2>conftest.er1
34386   ac_status=$?
34387   grep -v '^ *+' conftest.er1 >conftest.err
34388   rm -f conftest.er1
34389   cat conftest.err >&5
34390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391   (exit $ac_status); } && {
34392          test -z "$ac_c_werror_flag" ||
34393          test ! -s conftest.err
34394        } && test -s conftest.$ac_objext; then
34395   ac_lo=$ac_mid; break
34396 else
34397   echo "$as_me: failed program was:" >&5
34398 sed 's/^/| /' conftest.$ac_ext >&5
34399
34400         ac_hi=`expr '(' $ac_mid ')' - 1`
34401                         if test $ac_mid -le $ac_hi; then
34402                           ac_lo= ac_hi=
34403                           break
34404                         fi
34405                         ac_mid=`expr 2 '*' $ac_mid`
34406 fi
34407
34408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34409   done
34410 else
34411   echo "$as_me: failed program was:" >&5
34412 sed 's/^/| /' conftest.$ac_ext >&5
34413
34414         ac_lo= ac_hi=
34415 fi
34416
34417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34418 fi
34419
34420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34421 # Binary search between lo and hi bounds.
34422 while test "x$ac_lo" != "x$ac_hi"; do
34423   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34424   cat >conftest.$ac_ext <<_ACEOF
34425 /* confdefs.h.  */
34426 _ACEOF
34427 cat confdefs.h >>conftest.$ac_ext
34428 cat >>conftest.$ac_ext <<_ACEOF
34429 /* end confdefs.h.  */
34430 $ac_includes_default
34431    typedef char ac__type_sizeof_;
34432 int
34433 main ()
34434 {
34435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34436 test_array [0] = 0
34437
34438   ;
34439   return 0;
34440 }
34441 _ACEOF
34442 rm -f conftest.$ac_objext
34443 if { (ac_try="$ac_compile"
34444 case "(($ac_try" in
34445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34446   *) ac_try_echo=$ac_try;;
34447 esac
34448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34449   (eval "$ac_compile") 2>conftest.er1
34450   ac_status=$?
34451   grep -v '^ *+' conftest.er1 >conftest.err
34452   rm -f conftest.er1
34453   cat conftest.err >&5
34454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455   (exit $ac_status); } && {
34456          test -z "$ac_c_werror_flag" ||
34457          test ! -s conftest.err
34458        } && test -s conftest.$ac_objext; then
34459   ac_hi=$ac_mid
34460 else
34461   echo "$as_me: failed program was:" >&5
34462 sed 's/^/| /' conftest.$ac_ext >&5
34463
34464         ac_lo=`expr '(' $ac_mid ')' + 1`
34465 fi
34466
34467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34468 done
34469 case $ac_lo in
34470 ?*) ac_cv_sizeof_char=$ac_lo;;
34471 '') if test "$ac_cv_type_char" = yes; then
34472      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34473 See \`config.log' for more details." >&5
34474 echo "$as_me: error: cannot compute sizeof (char)
34475 See \`config.log' for more details." >&2;}
34476    { (exit 77); exit 77; }; }
34477    else
34478      ac_cv_sizeof_char=0
34479    fi ;;
34480 esac
34481 else
34482   cat >conftest.$ac_ext <<_ACEOF
34483 /* confdefs.h.  */
34484 _ACEOF
34485 cat confdefs.h >>conftest.$ac_ext
34486 cat >>conftest.$ac_ext <<_ACEOF
34487 /* end confdefs.h.  */
34488 $ac_includes_default
34489    typedef char ac__type_sizeof_;
34490 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34491 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34492 #include <stdio.h>
34493 #include <stdlib.h>
34494 int
34495 main ()
34496 {
34497
34498   FILE *f = fopen ("conftest.val", "w");
34499   if (! f)
34500     return 1;
34501   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34502     {
34503       long int i = longval ();
34504       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34505         return 1;
34506       fprintf (f, "%ld\n", i);
34507     }
34508   else
34509     {
34510       unsigned long int i = ulongval ();
34511       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34512         return 1;
34513       fprintf (f, "%lu\n", i);
34514     }
34515   return ferror (f) || fclose (f) != 0;
34516
34517   ;
34518   return 0;
34519 }
34520 _ACEOF
34521 rm -f conftest$ac_exeext
34522 if { (ac_try="$ac_link"
34523 case "(($ac_try" in
34524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34525   *) ac_try_echo=$ac_try;;
34526 esac
34527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34528   (eval "$ac_link") 2>&5
34529   ac_status=$?
34530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34532   { (case "(($ac_try" in
34533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34534   *) ac_try_echo=$ac_try;;
34535 esac
34536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34537   (eval "$ac_try") 2>&5
34538   ac_status=$?
34539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34540   (exit $ac_status); }; }; then
34541   ac_cv_sizeof_char=`cat conftest.val`
34542 else
34543   echo "$as_me: program exited with status $ac_status" >&5
34544 echo "$as_me: failed program was:" >&5
34545 sed 's/^/| /' conftest.$ac_ext >&5
34546
34547 ( exit $ac_status )
34548 if test "$ac_cv_type_char" = yes; then
34549      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34550 See \`config.log' for more details." >&5
34551 echo "$as_me: error: cannot compute sizeof (char)
34552 See \`config.log' for more details." >&2;}
34553    { (exit 77); exit 77; }; }
34554    else
34555      ac_cv_sizeof_char=0
34556    fi
34557 fi
34558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34559 fi
34560 rm -f conftest.val
34561 fi
34562 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34563 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34564
34565
34566
34567 cat >>confdefs.h <<_ACEOF
34568 #define SIZEOF_CHAR $ac_cv_sizeof_char
34569 _ACEOF
34570
34571
34572 { echo "$as_me:$LINENO: checking for short int" >&5
34573 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34574 if test "${ac_cv_type_short_int+set}" = set; then
34575   echo $ECHO_N "(cached) $ECHO_C" >&6
34576 else
34577   cat >conftest.$ac_ext <<_ACEOF
34578 /* confdefs.h.  */
34579 _ACEOF
34580 cat confdefs.h >>conftest.$ac_ext
34581 cat >>conftest.$ac_ext <<_ACEOF
34582 /* end confdefs.h.  */
34583 $ac_includes_default
34584 typedef short int ac__type_new_;
34585 int
34586 main ()
34587 {
34588 if ((ac__type_new_ *) 0)
34589   return 0;
34590 if (sizeof (ac__type_new_))
34591   return 0;
34592   ;
34593   return 0;
34594 }
34595 _ACEOF
34596 rm -f conftest.$ac_objext
34597 if { (ac_try="$ac_compile"
34598 case "(($ac_try" in
34599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34600   *) ac_try_echo=$ac_try;;
34601 esac
34602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34603   (eval "$ac_compile") 2>conftest.er1
34604   ac_status=$?
34605   grep -v '^ *+' conftest.er1 >conftest.err
34606   rm -f conftest.er1
34607   cat conftest.err >&5
34608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609   (exit $ac_status); } && {
34610          test -z "$ac_c_werror_flag" ||
34611          test ! -s conftest.err
34612        } && test -s conftest.$ac_objext; then
34613   ac_cv_type_short_int=yes
34614 else
34615   echo "$as_me: failed program was:" >&5
34616 sed 's/^/| /' conftest.$ac_ext >&5
34617
34618         ac_cv_type_short_int=no
34619 fi
34620
34621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34622 fi
34623 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34624 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34625
34626 # The cast to long int works around a bug in the HP C Compiler
34627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34629 # This bug is HP SR number 8606223364.
34630 { echo "$as_me:$LINENO: checking size of short int" >&5
34631 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34632 if test "${ac_cv_sizeof_short_int+set}" = set; then
34633   echo $ECHO_N "(cached) $ECHO_C" >&6
34634 else
34635   if test "$cross_compiling" = yes; then
34636   # Depending upon the size, compute the lo and hi bounds.
34637 cat >conftest.$ac_ext <<_ACEOF
34638 /* confdefs.h.  */
34639 _ACEOF
34640 cat confdefs.h >>conftest.$ac_ext
34641 cat >>conftest.$ac_ext <<_ACEOF
34642 /* end confdefs.h.  */
34643 $ac_includes_default
34644    typedef short int ac__type_sizeof_;
34645 int
34646 main ()
34647 {
34648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34649 test_array [0] = 0
34650
34651   ;
34652   return 0;
34653 }
34654 _ACEOF
34655 rm -f conftest.$ac_objext
34656 if { (ac_try="$ac_compile"
34657 case "(($ac_try" in
34658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34659   *) ac_try_echo=$ac_try;;
34660 esac
34661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34662   (eval "$ac_compile") 2>conftest.er1
34663   ac_status=$?
34664   grep -v '^ *+' conftest.er1 >conftest.err
34665   rm -f conftest.er1
34666   cat conftest.err >&5
34667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668   (exit $ac_status); } && {
34669          test -z "$ac_c_werror_flag" ||
34670          test ! -s conftest.err
34671        } && test -s conftest.$ac_objext; then
34672   ac_lo=0 ac_mid=0
34673   while :; do
34674     cat >conftest.$ac_ext <<_ACEOF
34675 /* confdefs.h.  */
34676 _ACEOF
34677 cat confdefs.h >>conftest.$ac_ext
34678 cat >>conftest.$ac_ext <<_ACEOF
34679 /* end confdefs.h.  */
34680 $ac_includes_default
34681    typedef short int ac__type_sizeof_;
34682 int
34683 main ()
34684 {
34685 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34686 test_array [0] = 0
34687
34688   ;
34689   return 0;
34690 }
34691 _ACEOF
34692 rm -f conftest.$ac_objext
34693 if { (ac_try="$ac_compile"
34694 case "(($ac_try" in
34695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34696   *) ac_try_echo=$ac_try;;
34697 esac
34698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34699   (eval "$ac_compile") 2>conftest.er1
34700   ac_status=$?
34701   grep -v '^ *+' conftest.er1 >conftest.err
34702   rm -f conftest.er1
34703   cat conftest.err >&5
34704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705   (exit $ac_status); } && {
34706          test -z "$ac_c_werror_flag" ||
34707          test ! -s conftest.err
34708        } && test -s conftest.$ac_objext; then
34709   ac_hi=$ac_mid; break
34710 else
34711   echo "$as_me: failed program was:" >&5
34712 sed 's/^/| /' conftest.$ac_ext >&5
34713
34714         ac_lo=`expr $ac_mid + 1`
34715                         if test $ac_lo -le $ac_mid; then
34716                           ac_lo= ac_hi=
34717                           break
34718                         fi
34719                         ac_mid=`expr 2 '*' $ac_mid + 1`
34720 fi
34721
34722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34723   done
34724 else
34725   echo "$as_me: failed program was:" >&5
34726 sed 's/^/| /' conftest.$ac_ext >&5
34727
34728         cat >conftest.$ac_ext <<_ACEOF
34729 /* confdefs.h.  */
34730 _ACEOF
34731 cat confdefs.h >>conftest.$ac_ext
34732 cat >>conftest.$ac_ext <<_ACEOF
34733 /* end confdefs.h.  */
34734 $ac_includes_default
34735    typedef short int ac__type_sizeof_;
34736 int
34737 main ()
34738 {
34739 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34740 test_array [0] = 0
34741
34742   ;
34743   return 0;
34744 }
34745 _ACEOF
34746 rm -f conftest.$ac_objext
34747 if { (ac_try="$ac_compile"
34748 case "(($ac_try" in
34749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34750   *) ac_try_echo=$ac_try;;
34751 esac
34752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34753   (eval "$ac_compile") 2>conftest.er1
34754   ac_status=$?
34755   grep -v '^ *+' conftest.er1 >conftest.err
34756   rm -f conftest.er1
34757   cat conftest.err >&5
34758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759   (exit $ac_status); } && {
34760          test -z "$ac_c_werror_flag" ||
34761          test ! -s conftest.err
34762        } && test -s conftest.$ac_objext; then
34763   ac_hi=-1 ac_mid=-1
34764   while :; do
34765     cat >conftest.$ac_ext <<_ACEOF
34766 /* confdefs.h.  */
34767 _ACEOF
34768 cat confdefs.h >>conftest.$ac_ext
34769 cat >>conftest.$ac_ext <<_ACEOF
34770 /* end confdefs.h.  */
34771 $ac_includes_default
34772    typedef short int ac__type_sizeof_;
34773 int
34774 main ()
34775 {
34776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34777 test_array [0] = 0
34778
34779   ;
34780   return 0;
34781 }
34782 _ACEOF
34783 rm -f conftest.$ac_objext
34784 if { (ac_try="$ac_compile"
34785 case "(($ac_try" in
34786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34787   *) ac_try_echo=$ac_try;;
34788 esac
34789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34790   (eval "$ac_compile") 2>conftest.er1
34791   ac_status=$?
34792   grep -v '^ *+' conftest.er1 >conftest.err
34793   rm -f conftest.er1
34794   cat conftest.err >&5
34795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34796   (exit $ac_status); } && {
34797          test -z "$ac_c_werror_flag" ||
34798          test ! -s conftest.err
34799        } && test -s conftest.$ac_objext; then
34800   ac_lo=$ac_mid; break
34801 else
34802   echo "$as_me: failed program was:" >&5
34803 sed 's/^/| /' conftest.$ac_ext >&5
34804
34805         ac_hi=`expr '(' $ac_mid ')' - 1`
34806                         if test $ac_mid -le $ac_hi; then
34807                           ac_lo= ac_hi=
34808                           break
34809                         fi
34810                         ac_mid=`expr 2 '*' $ac_mid`
34811 fi
34812
34813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34814   done
34815 else
34816   echo "$as_me: failed program was:" >&5
34817 sed 's/^/| /' conftest.$ac_ext >&5
34818
34819         ac_lo= ac_hi=
34820 fi
34821
34822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34823 fi
34824
34825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34826 # Binary search between lo and hi bounds.
34827 while test "x$ac_lo" != "x$ac_hi"; do
34828   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34829   cat >conftest.$ac_ext <<_ACEOF
34830 /* confdefs.h.  */
34831 _ACEOF
34832 cat confdefs.h >>conftest.$ac_ext
34833 cat >>conftest.$ac_ext <<_ACEOF
34834 /* end confdefs.h.  */
34835 $ac_includes_default
34836    typedef short int ac__type_sizeof_;
34837 int
34838 main ()
34839 {
34840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34841 test_array [0] = 0
34842
34843   ;
34844   return 0;
34845 }
34846 _ACEOF
34847 rm -f conftest.$ac_objext
34848 if { (ac_try="$ac_compile"
34849 case "(($ac_try" in
34850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34851   *) ac_try_echo=$ac_try;;
34852 esac
34853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34854   (eval "$ac_compile") 2>conftest.er1
34855   ac_status=$?
34856   grep -v '^ *+' conftest.er1 >conftest.err
34857   rm -f conftest.er1
34858   cat conftest.err >&5
34859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860   (exit $ac_status); } && {
34861          test -z "$ac_c_werror_flag" ||
34862          test ! -s conftest.err
34863        } && test -s conftest.$ac_objext; then
34864   ac_hi=$ac_mid
34865 else
34866   echo "$as_me: failed program was:" >&5
34867 sed 's/^/| /' conftest.$ac_ext >&5
34868
34869         ac_lo=`expr '(' $ac_mid ')' + 1`
34870 fi
34871
34872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34873 done
34874 case $ac_lo in
34875 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34876 '') if test "$ac_cv_type_short_int" = yes; then
34877      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34878 See \`config.log' for more details." >&5
34879 echo "$as_me: error: cannot compute sizeof (short int)
34880 See \`config.log' for more details." >&2;}
34881    { (exit 77); exit 77; }; }
34882    else
34883      ac_cv_sizeof_short_int=0
34884    fi ;;
34885 esac
34886 else
34887   cat >conftest.$ac_ext <<_ACEOF
34888 /* confdefs.h.  */
34889 _ACEOF
34890 cat confdefs.h >>conftest.$ac_ext
34891 cat >>conftest.$ac_ext <<_ACEOF
34892 /* end confdefs.h.  */
34893 $ac_includes_default
34894    typedef short int ac__type_sizeof_;
34895 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34896 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34897 #include <stdio.h>
34898 #include <stdlib.h>
34899 int
34900 main ()
34901 {
34902
34903   FILE *f = fopen ("conftest.val", "w");
34904   if (! f)
34905     return 1;
34906   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34907     {
34908       long int i = longval ();
34909       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34910         return 1;
34911       fprintf (f, "%ld\n", i);
34912     }
34913   else
34914     {
34915       unsigned long int i = ulongval ();
34916       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34917         return 1;
34918       fprintf (f, "%lu\n", i);
34919     }
34920   return ferror (f) || fclose (f) != 0;
34921
34922   ;
34923   return 0;
34924 }
34925 _ACEOF
34926 rm -f conftest$ac_exeext
34927 if { (ac_try="$ac_link"
34928 case "(($ac_try" in
34929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34930   *) ac_try_echo=$ac_try;;
34931 esac
34932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34933   (eval "$ac_link") 2>&5
34934   ac_status=$?
34935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34937   { (case "(($ac_try" in
34938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34939   *) ac_try_echo=$ac_try;;
34940 esac
34941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34942   (eval "$ac_try") 2>&5
34943   ac_status=$?
34944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945   (exit $ac_status); }; }; then
34946   ac_cv_sizeof_short_int=`cat conftest.val`
34947 else
34948   echo "$as_me: program exited with status $ac_status" >&5
34949 echo "$as_me: failed program was:" >&5
34950 sed 's/^/| /' conftest.$ac_ext >&5
34951
34952 ( exit $ac_status )
34953 if test "$ac_cv_type_short_int" = yes; then
34954      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34955 See \`config.log' for more details." >&5
34956 echo "$as_me: error: cannot compute sizeof (short int)
34957 See \`config.log' for more details." >&2;}
34958    { (exit 77); exit 77; }; }
34959    else
34960      ac_cv_sizeof_short_int=0
34961    fi
34962 fi
34963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34964 fi
34965 rm -f conftest.val
34966 fi
34967 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34968 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34969
34970
34971
34972 cat >>confdefs.h <<_ACEOF
34973 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34974 _ACEOF
34975
34976
34977 { echo "$as_me:$LINENO: checking for int" >&5
34978 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34979 if test "${ac_cv_type_int+set}" = set; then
34980   echo $ECHO_N "(cached) $ECHO_C" >&6
34981 else
34982   cat >conftest.$ac_ext <<_ACEOF
34983 /* confdefs.h.  */
34984 _ACEOF
34985 cat confdefs.h >>conftest.$ac_ext
34986 cat >>conftest.$ac_ext <<_ACEOF
34987 /* end confdefs.h.  */
34988 $ac_includes_default
34989 typedef int ac__type_new_;
34990 int
34991 main ()
34992 {
34993 if ((ac__type_new_ *) 0)
34994   return 0;
34995 if (sizeof (ac__type_new_))
34996   return 0;
34997   ;
34998   return 0;
34999 }
35000 _ACEOF
35001 rm -f conftest.$ac_objext
35002 if { (ac_try="$ac_compile"
35003 case "(($ac_try" in
35004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35005   *) ac_try_echo=$ac_try;;
35006 esac
35007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35008   (eval "$ac_compile") 2>conftest.er1
35009   ac_status=$?
35010   grep -v '^ *+' conftest.er1 >conftest.err
35011   rm -f conftest.er1
35012   cat conftest.err >&5
35013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014   (exit $ac_status); } && {
35015          test -z "$ac_c_werror_flag" ||
35016          test ! -s conftest.err
35017        } && test -s conftest.$ac_objext; then
35018   ac_cv_type_int=yes
35019 else
35020   echo "$as_me: failed program was:" >&5
35021 sed 's/^/| /' conftest.$ac_ext >&5
35022
35023         ac_cv_type_int=no
35024 fi
35025
35026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35027 fi
35028 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35029 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35030
35031 # The cast to long int works around a bug in the HP C Compiler
35032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35034 # This bug is HP SR number 8606223364.
35035 { echo "$as_me:$LINENO: checking size of int" >&5
35036 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35037 if test "${ac_cv_sizeof_int+set}" = set; then
35038   echo $ECHO_N "(cached) $ECHO_C" >&6
35039 else
35040   if test "$cross_compiling" = yes; then
35041   # Depending upon the size, compute the lo and hi bounds.
35042 cat >conftest.$ac_ext <<_ACEOF
35043 /* confdefs.h.  */
35044 _ACEOF
35045 cat confdefs.h >>conftest.$ac_ext
35046 cat >>conftest.$ac_ext <<_ACEOF
35047 /* end confdefs.h.  */
35048 $ac_includes_default
35049    typedef int ac__type_sizeof_;
35050 int
35051 main ()
35052 {
35053 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35054 test_array [0] = 0
35055
35056   ;
35057   return 0;
35058 }
35059 _ACEOF
35060 rm -f conftest.$ac_objext
35061 if { (ac_try="$ac_compile"
35062 case "(($ac_try" in
35063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35064   *) ac_try_echo=$ac_try;;
35065 esac
35066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35067   (eval "$ac_compile") 2>conftest.er1
35068   ac_status=$?
35069   grep -v '^ *+' conftest.er1 >conftest.err
35070   rm -f conftest.er1
35071   cat conftest.err >&5
35072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073   (exit $ac_status); } && {
35074          test -z "$ac_c_werror_flag" ||
35075          test ! -s conftest.err
35076        } && test -s conftest.$ac_objext; then
35077   ac_lo=0 ac_mid=0
35078   while :; do
35079     cat >conftest.$ac_ext <<_ACEOF
35080 /* confdefs.h.  */
35081 _ACEOF
35082 cat confdefs.h >>conftest.$ac_ext
35083 cat >>conftest.$ac_ext <<_ACEOF
35084 /* end confdefs.h.  */
35085 $ac_includes_default
35086    typedef int ac__type_sizeof_;
35087 int
35088 main ()
35089 {
35090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35091 test_array [0] = 0
35092
35093   ;
35094   return 0;
35095 }
35096 _ACEOF
35097 rm -f conftest.$ac_objext
35098 if { (ac_try="$ac_compile"
35099 case "(($ac_try" in
35100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35101   *) ac_try_echo=$ac_try;;
35102 esac
35103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35104   (eval "$ac_compile") 2>conftest.er1
35105   ac_status=$?
35106   grep -v '^ *+' conftest.er1 >conftest.err
35107   rm -f conftest.er1
35108   cat conftest.err >&5
35109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110   (exit $ac_status); } && {
35111          test -z "$ac_c_werror_flag" ||
35112          test ! -s conftest.err
35113        } && test -s conftest.$ac_objext; then
35114   ac_hi=$ac_mid; break
35115 else
35116   echo "$as_me: failed program was:" >&5
35117 sed 's/^/| /' conftest.$ac_ext >&5
35118
35119         ac_lo=`expr $ac_mid + 1`
35120                         if test $ac_lo -le $ac_mid; then
35121                           ac_lo= ac_hi=
35122                           break
35123                         fi
35124                         ac_mid=`expr 2 '*' $ac_mid + 1`
35125 fi
35126
35127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35128   done
35129 else
35130   echo "$as_me: failed program was:" >&5
35131 sed 's/^/| /' conftest.$ac_ext >&5
35132
35133         cat >conftest.$ac_ext <<_ACEOF
35134 /* confdefs.h.  */
35135 _ACEOF
35136 cat confdefs.h >>conftest.$ac_ext
35137 cat >>conftest.$ac_ext <<_ACEOF
35138 /* end confdefs.h.  */
35139 $ac_includes_default
35140    typedef int ac__type_sizeof_;
35141 int
35142 main ()
35143 {
35144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35145 test_array [0] = 0
35146
35147   ;
35148   return 0;
35149 }
35150 _ACEOF
35151 rm -f conftest.$ac_objext
35152 if { (ac_try="$ac_compile"
35153 case "(($ac_try" in
35154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35155   *) ac_try_echo=$ac_try;;
35156 esac
35157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35158   (eval "$ac_compile") 2>conftest.er1
35159   ac_status=$?
35160   grep -v '^ *+' conftest.er1 >conftest.err
35161   rm -f conftest.er1
35162   cat conftest.err >&5
35163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164   (exit $ac_status); } && {
35165          test -z "$ac_c_werror_flag" ||
35166          test ! -s conftest.err
35167        } && test -s conftest.$ac_objext; then
35168   ac_hi=-1 ac_mid=-1
35169   while :; do
35170     cat >conftest.$ac_ext <<_ACEOF
35171 /* confdefs.h.  */
35172 _ACEOF
35173 cat confdefs.h >>conftest.$ac_ext
35174 cat >>conftest.$ac_ext <<_ACEOF
35175 /* end confdefs.h.  */
35176 $ac_includes_default
35177    typedef int ac__type_sizeof_;
35178 int
35179 main ()
35180 {
35181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35182 test_array [0] = 0
35183
35184   ;
35185   return 0;
35186 }
35187 _ACEOF
35188 rm -f conftest.$ac_objext
35189 if { (ac_try="$ac_compile"
35190 case "(($ac_try" in
35191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35192   *) ac_try_echo=$ac_try;;
35193 esac
35194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35195   (eval "$ac_compile") 2>conftest.er1
35196   ac_status=$?
35197   grep -v '^ *+' conftest.er1 >conftest.err
35198   rm -f conftest.er1
35199   cat conftest.err >&5
35200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201   (exit $ac_status); } && {
35202          test -z "$ac_c_werror_flag" ||
35203          test ! -s conftest.err
35204        } && test -s conftest.$ac_objext; then
35205   ac_lo=$ac_mid; break
35206 else
35207   echo "$as_me: failed program was:" >&5
35208 sed 's/^/| /' conftest.$ac_ext >&5
35209
35210         ac_hi=`expr '(' $ac_mid ')' - 1`
35211                         if test $ac_mid -le $ac_hi; then
35212                           ac_lo= ac_hi=
35213                           break
35214                         fi
35215                         ac_mid=`expr 2 '*' $ac_mid`
35216 fi
35217
35218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35219   done
35220 else
35221   echo "$as_me: failed program was:" >&5
35222 sed 's/^/| /' conftest.$ac_ext >&5
35223
35224         ac_lo= ac_hi=
35225 fi
35226
35227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35228 fi
35229
35230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35231 # Binary search between lo and hi bounds.
35232 while test "x$ac_lo" != "x$ac_hi"; do
35233   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35234   cat >conftest.$ac_ext <<_ACEOF
35235 /* confdefs.h.  */
35236 _ACEOF
35237 cat confdefs.h >>conftest.$ac_ext
35238 cat >>conftest.$ac_ext <<_ACEOF
35239 /* end confdefs.h.  */
35240 $ac_includes_default
35241    typedef int ac__type_sizeof_;
35242 int
35243 main ()
35244 {
35245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35246 test_array [0] = 0
35247
35248   ;
35249   return 0;
35250 }
35251 _ACEOF
35252 rm -f conftest.$ac_objext
35253 if { (ac_try="$ac_compile"
35254 case "(($ac_try" in
35255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35256   *) ac_try_echo=$ac_try;;
35257 esac
35258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35259   (eval "$ac_compile") 2>conftest.er1
35260   ac_status=$?
35261   grep -v '^ *+' conftest.er1 >conftest.err
35262   rm -f conftest.er1
35263   cat conftest.err >&5
35264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265   (exit $ac_status); } && {
35266          test -z "$ac_c_werror_flag" ||
35267          test ! -s conftest.err
35268        } && test -s conftest.$ac_objext; then
35269   ac_hi=$ac_mid
35270 else
35271   echo "$as_me: failed program was:" >&5
35272 sed 's/^/| /' conftest.$ac_ext >&5
35273
35274         ac_lo=`expr '(' $ac_mid ')' + 1`
35275 fi
35276
35277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35278 done
35279 case $ac_lo in
35280 ?*) ac_cv_sizeof_int=$ac_lo;;
35281 '') if test "$ac_cv_type_int" = yes; then
35282      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35283 See \`config.log' for more details." >&5
35284 echo "$as_me: error: cannot compute sizeof (int)
35285 See \`config.log' for more details." >&2;}
35286    { (exit 77); exit 77; }; }
35287    else
35288      ac_cv_sizeof_int=0
35289    fi ;;
35290 esac
35291 else
35292   cat >conftest.$ac_ext <<_ACEOF
35293 /* confdefs.h.  */
35294 _ACEOF
35295 cat confdefs.h >>conftest.$ac_ext
35296 cat >>conftest.$ac_ext <<_ACEOF
35297 /* end confdefs.h.  */
35298 $ac_includes_default
35299    typedef int ac__type_sizeof_;
35300 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35301 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35302 #include <stdio.h>
35303 #include <stdlib.h>
35304 int
35305 main ()
35306 {
35307
35308   FILE *f = fopen ("conftest.val", "w");
35309   if (! f)
35310     return 1;
35311   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35312     {
35313       long int i = longval ();
35314       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35315         return 1;
35316       fprintf (f, "%ld\n", i);
35317     }
35318   else
35319     {
35320       unsigned long int i = ulongval ();
35321       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35322         return 1;
35323       fprintf (f, "%lu\n", i);
35324     }
35325   return ferror (f) || fclose (f) != 0;
35326
35327   ;
35328   return 0;
35329 }
35330 _ACEOF
35331 rm -f conftest$ac_exeext
35332 if { (ac_try="$ac_link"
35333 case "(($ac_try" in
35334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35335   *) ac_try_echo=$ac_try;;
35336 esac
35337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35338   (eval "$ac_link") 2>&5
35339   ac_status=$?
35340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35342   { (case "(($ac_try" in
35343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35344   *) ac_try_echo=$ac_try;;
35345 esac
35346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35347   (eval "$ac_try") 2>&5
35348   ac_status=$?
35349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350   (exit $ac_status); }; }; then
35351   ac_cv_sizeof_int=`cat conftest.val`
35352 else
35353   echo "$as_me: program exited with status $ac_status" >&5
35354 echo "$as_me: failed program was:" >&5
35355 sed 's/^/| /' conftest.$ac_ext >&5
35356
35357 ( exit $ac_status )
35358 if test "$ac_cv_type_int" = yes; then
35359      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35360 See \`config.log' for more details." >&5
35361 echo "$as_me: error: cannot compute sizeof (int)
35362 See \`config.log' for more details." >&2;}
35363    { (exit 77); exit 77; }; }
35364    else
35365      ac_cv_sizeof_int=0
35366    fi
35367 fi
35368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35369 fi
35370 rm -f conftest.val
35371 fi
35372 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35373 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35374
35375
35376
35377 cat >>confdefs.h <<_ACEOF
35378 #define SIZEOF_INT $ac_cv_sizeof_int
35379 _ACEOF
35380
35381
35382 { echo "$as_me:$LINENO: checking for long int" >&5
35383 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35384 if test "${ac_cv_type_long_int+set}" = set; then
35385   echo $ECHO_N "(cached) $ECHO_C" >&6
35386 else
35387   cat >conftest.$ac_ext <<_ACEOF
35388 /* confdefs.h.  */
35389 _ACEOF
35390 cat confdefs.h >>conftest.$ac_ext
35391 cat >>conftest.$ac_ext <<_ACEOF
35392 /* end confdefs.h.  */
35393 $ac_includes_default
35394 typedef long int ac__type_new_;
35395 int
35396 main ()
35397 {
35398 if ((ac__type_new_ *) 0)
35399   return 0;
35400 if (sizeof (ac__type_new_))
35401   return 0;
35402   ;
35403   return 0;
35404 }
35405 _ACEOF
35406 rm -f conftest.$ac_objext
35407 if { (ac_try="$ac_compile"
35408 case "(($ac_try" in
35409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35410   *) ac_try_echo=$ac_try;;
35411 esac
35412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35413   (eval "$ac_compile") 2>conftest.er1
35414   ac_status=$?
35415   grep -v '^ *+' conftest.er1 >conftest.err
35416   rm -f conftest.er1
35417   cat conftest.err >&5
35418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35419   (exit $ac_status); } && {
35420          test -z "$ac_c_werror_flag" ||
35421          test ! -s conftest.err
35422        } && test -s conftest.$ac_objext; then
35423   ac_cv_type_long_int=yes
35424 else
35425   echo "$as_me: failed program was:" >&5
35426 sed 's/^/| /' conftest.$ac_ext >&5
35427
35428         ac_cv_type_long_int=no
35429 fi
35430
35431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35432 fi
35433 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35434 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35435
35436 # The cast to long int works around a bug in the HP C Compiler
35437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35439 # This bug is HP SR number 8606223364.
35440 { echo "$as_me:$LINENO: checking size of long int" >&5
35441 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35442 if test "${ac_cv_sizeof_long_int+set}" = set; then
35443   echo $ECHO_N "(cached) $ECHO_C" >&6
35444 else
35445   if test "$cross_compiling" = yes; then
35446   # Depending upon the size, compute the lo and hi bounds.
35447 cat >conftest.$ac_ext <<_ACEOF
35448 /* confdefs.h.  */
35449 _ACEOF
35450 cat confdefs.h >>conftest.$ac_ext
35451 cat >>conftest.$ac_ext <<_ACEOF
35452 /* end confdefs.h.  */
35453 $ac_includes_default
35454    typedef long int ac__type_sizeof_;
35455 int
35456 main ()
35457 {
35458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35459 test_array [0] = 0
35460
35461   ;
35462   return 0;
35463 }
35464 _ACEOF
35465 rm -f conftest.$ac_objext
35466 if { (ac_try="$ac_compile"
35467 case "(($ac_try" in
35468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35469   *) ac_try_echo=$ac_try;;
35470 esac
35471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35472   (eval "$ac_compile") 2>conftest.er1
35473   ac_status=$?
35474   grep -v '^ *+' conftest.er1 >conftest.err
35475   rm -f conftest.er1
35476   cat conftest.err >&5
35477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35478   (exit $ac_status); } && {
35479          test -z "$ac_c_werror_flag" ||
35480          test ! -s conftest.err
35481        } && test -s conftest.$ac_objext; then
35482   ac_lo=0 ac_mid=0
35483   while :; do
35484     cat >conftest.$ac_ext <<_ACEOF
35485 /* confdefs.h.  */
35486 _ACEOF
35487 cat confdefs.h >>conftest.$ac_ext
35488 cat >>conftest.$ac_ext <<_ACEOF
35489 /* end confdefs.h.  */
35490 $ac_includes_default
35491    typedef long int ac__type_sizeof_;
35492 int
35493 main ()
35494 {
35495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35496 test_array [0] = 0
35497
35498   ;
35499   return 0;
35500 }
35501 _ACEOF
35502 rm -f conftest.$ac_objext
35503 if { (ac_try="$ac_compile"
35504 case "(($ac_try" in
35505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35506   *) ac_try_echo=$ac_try;;
35507 esac
35508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35509   (eval "$ac_compile") 2>conftest.er1
35510   ac_status=$?
35511   grep -v '^ *+' conftest.er1 >conftest.err
35512   rm -f conftest.er1
35513   cat conftest.err >&5
35514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35515   (exit $ac_status); } && {
35516          test -z "$ac_c_werror_flag" ||
35517          test ! -s conftest.err
35518        } && test -s conftest.$ac_objext; then
35519   ac_hi=$ac_mid; break
35520 else
35521   echo "$as_me: failed program was:" >&5
35522 sed 's/^/| /' conftest.$ac_ext >&5
35523
35524         ac_lo=`expr $ac_mid + 1`
35525                         if test $ac_lo -le $ac_mid; then
35526                           ac_lo= ac_hi=
35527                           break
35528                         fi
35529                         ac_mid=`expr 2 '*' $ac_mid + 1`
35530 fi
35531
35532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35533   done
35534 else
35535   echo "$as_me: failed program was:" >&5
35536 sed 's/^/| /' conftest.$ac_ext >&5
35537
35538         cat >conftest.$ac_ext <<_ACEOF
35539 /* confdefs.h.  */
35540 _ACEOF
35541 cat confdefs.h >>conftest.$ac_ext
35542 cat >>conftest.$ac_ext <<_ACEOF
35543 /* end confdefs.h.  */
35544 $ac_includes_default
35545    typedef long int ac__type_sizeof_;
35546 int
35547 main ()
35548 {
35549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35550 test_array [0] = 0
35551
35552   ;
35553   return 0;
35554 }
35555 _ACEOF
35556 rm -f conftest.$ac_objext
35557 if { (ac_try="$ac_compile"
35558 case "(($ac_try" in
35559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35560   *) ac_try_echo=$ac_try;;
35561 esac
35562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35563   (eval "$ac_compile") 2>conftest.er1
35564   ac_status=$?
35565   grep -v '^ *+' conftest.er1 >conftest.err
35566   rm -f conftest.er1
35567   cat conftest.err >&5
35568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35569   (exit $ac_status); } && {
35570          test -z "$ac_c_werror_flag" ||
35571          test ! -s conftest.err
35572        } && test -s conftest.$ac_objext; then
35573   ac_hi=-1 ac_mid=-1
35574   while :; do
35575     cat >conftest.$ac_ext <<_ACEOF
35576 /* confdefs.h.  */
35577 _ACEOF
35578 cat confdefs.h >>conftest.$ac_ext
35579 cat >>conftest.$ac_ext <<_ACEOF
35580 /* end confdefs.h.  */
35581 $ac_includes_default
35582    typedef long int ac__type_sizeof_;
35583 int
35584 main ()
35585 {
35586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35587 test_array [0] = 0
35588
35589   ;
35590   return 0;
35591 }
35592 _ACEOF
35593 rm -f conftest.$ac_objext
35594 if { (ac_try="$ac_compile"
35595 case "(($ac_try" in
35596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35597   *) ac_try_echo=$ac_try;;
35598 esac
35599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35600   (eval "$ac_compile") 2>conftest.er1
35601   ac_status=$?
35602   grep -v '^ *+' conftest.er1 >conftest.err
35603   rm -f conftest.er1
35604   cat conftest.err >&5
35605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35606   (exit $ac_status); } && {
35607          test -z "$ac_c_werror_flag" ||
35608          test ! -s conftest.err
35609        } && test -s conftest.$ac_objext; then
35610   ac_lo=$ac_mid; break
35611 else
35612   echo "$as_me: failed program was:" >&5
35613 sed 's/^/| /' conftest.$ac_ext >&5
35614
35615         ac_hi=`expr '(' $ac_mid ')' - 1`
35616                         if test $ac_mid -le $ac_hi; then
35617                           ac_lo= ac_hi=
35618                           break
35619                         fi
35620                         ac_mid=`expr 2 '*' $ac_mid`
35621 fi
35622
35623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35624   done
35625 else
35626   echo "$as_me: failed program was:" >&5
35627 sed 's/^/| /' conftest.$ac_ext >&5
35628
35629         ac_lo= ac_hi=
35630 fi
35631
35632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35633 fi
35634
35635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35636 # Binary search between lo and hi bounds.
35637 while test "x$ac_lo" != "x$ac_hi"; do
35638   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35639   cat >conftest.$ac_ext <<_ACEOF
35640 /* confdefs.h.  */
35641 _ACEOF
35642 cat confdefs.h >>conftest.$ac_ext
35643 cat >>conftest.$ac_ext <<_ACEOF
35644 /* end confdefs.h.  */
35645 $ac_includes_default
35646    typedef long int ac__type_sizeof_;
35647 int
35648 main ()
35649 {
35650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35651 test_array [0] = 0
35652
35653   ;
35654   return 0;
35655 }
35656 _ACEOF
35657 rm -f conftest.$ac_objext
35658 if { (ac_try="$ac_compile"
35659 case "(($ac_try" in
35660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35661   *) ac_try_echo=$ac_try;;
35662 esac
35663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35664   (eval "$ac_compile") 2>conftest.er1
35665   ac_status=$?
35666   grep -v '^ *+' conftest.er1 >conftest.err
35667   rm -f conftest.er1
35668   cat conftest.err >&5
35669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35670   (exit $ac_status); } && {
35671          test -z "$ac_c_werror_flag" ||
35672          test ! -s conftest.err
35673        } && test -s conftest.$ac_objext; then
35674   ac_hi=$ac_mid
35675 else
35676   echo "$as_me: failed program was:" >&5
35677 sed 's/^/| /' conftest.$ac_ext >&5
35678
35679         ac_lo=`expr '(' $ac_mid ')' + 1`
35680 fi
35681
35682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35683 done
35684 case $ac_lo in
35685 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35686 '') if test "$ac_cv_type_long_int" = yes; then
35687      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35688 See \`config.log' for more details." >&5
35689 echo "$as_me: error: cannot compute sizeof (long int)
35690 See \`config.log' for more details." >&2;}
35691    { (exit 77); exit 77; }; }
35692    else
35693      ac_cv_sizeof_long_int=0
35694    fi ;;
35695 esac
35696 else
35697   cat >conftest.$ac_ext <<_ACEOF
35698 /* confdefs.h.  */
35699 _ACEOF
35700 cat confdefs.h >>conftest.$ac_ext
35701 cat >>conftest.$ac_ext <<_ACEOF
35702 /* end confdefs.h.  */
35703 $ac_includes_default
35704    typedef long int ac__type_sizeof_;
35705 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35706 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35707 #include <stdio.h>
35708 #include <stdlib.h>
35709 int
35710 main ()
35711 {
35712
35713   FILE *f = fopen ("conftest.val", "w");
35714   if (! f)
35715     return 1;
35716   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35717     {
35718       long int i = longval ();
35719       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35720         return 1;
35721       fprintf (f, "%ld\n", i);
35722     }
35723   else
35724     {
35725       unsigned long int i = ulongval ();
35726       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35727         return 1;
35728       fprintf (f, "%lu\n", i);
35729     }
35730   return ferror (f) || fclose (f) != 0;
35731
35732   ;
35733   return 0;
35734 }
35735 _ACEOF
35736 rm -f conftest$ac_exeext
35737 if { (ac_try="$ac_link"
35738 case "(($ac_try" in
35739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35740   *) ac_try_echo=$ac_try;;
35741 esac
35742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35743   (eval "$ac_link") 2>&5
35744   ac_status=$?
35745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35747   { (case "(($ac_try" in
35748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35749   *) ac_try_echo=$ac_try;;
35750 esac
35751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35752   (eval "$ac_try") 2>&5
35753   ac_status=$?
35754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755   (exit $ac_status); }; }; then
35756   ac_cv_sizeof_long_int=`cat conftest.val`
35757 else
35758   echo "$as_me: program exited with status $ac_status" >&5
35759 echo "$as_me: failed program was:" >&5
35760 sed 's/^/| /' conftest.$ac_ext >&5
35761
35762 ( exit $ac_status )
35763 if test "$ac_cv_type_long_int" = yes; then
35764      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35765 See \`config.log' for more details." >&5
35766 echo "$as_me: error: cannot compute sizeof (long int)
35767 See \`config.log' for more details." >&2;}
35768    { (exit 77); exit 77; }; }
35769    else
35770      ac_cv_sizeof_long_int=0
35771    fi
35772 fi
35773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35774 fi
35775 rm -f conftest.val
35776 fi
35777 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35778 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35779
35780
35781
35782 cat >>confdefs.h <<_ACEOF
35783 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35784 _ACEOF
35785
35786
35787 { echo "$as_me:$LINENO: checking for long long int" >&5
35788 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35789 if test "${ac_cv_type_long_long_int+set}" = set; then
35790   echo $ECHO_N "(cached) $ECHO_C" >&6
35791 else
35792   cat >conftest.$ac_ext <<_ACEOF
35793 /* confdefs.h.  */
35794 _ACEOF
35795 cat confdefs.h >>conftest.$ac_ext
35796 cat >>conftest.$ac_ext <<_ACEOF
35797 /* end confdefs.h.  */
35798 $ac_includes_default
35799 typedef long long int ac__type_new_;
35800 int
35801 main ()
35802 {
35803 if ((ac__type_new_ *) 0)
35804   return 0;
35805 if (sizeof (ac__type_new_))
35806   return 0;
35807   ;
35808   return 0;
35809 }
35810 _ACEOF
35811 rm -f conftest.$ac_objext
35812 if { (ac_try="$ac_compile"
35813 case "(($ac_try" in
35814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35815   *) ac_try_echo=$ac_try;;
35816 esac
35817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35818   (eval "$ac_compile") 2>conftest.er1
35819   ac_status=$?
35820   grep -v '^ *+' conftest.er1 >conftest.err
35821   rm -f conftest.er1
35822   cat conftest.err >&5
35823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35824   (exit $ac_status); } && {
35825          test -z "$ac_c_werror_flag" ||
35826          test ! -s conftest.err
35827        } && test -s conftest.$ac_objext; then
35828   ac_cv_type_long_long_int=yes
35829 else
35830   echo "$as_me: failed program was:" >&5
35831 sed 's/^/| /' conftest.$ac_ext >&5
35832
35833         ac_cv_type_long_long_int=no
35834 fi
35835
35836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35837 fi
35838 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35839 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35840
35841 # The cast to long int works around a bug in the HP C Compiler
35842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35844 # This bug is HP SR number 8606223364.
35845 { echo "$as_me:$LINENO: checking size of long long int" >&5
35846 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35847 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35848   echo $ECHO_N "(cached) $ECHO_C" >&6
35849 else
35850   if test "$cross_compiling" = yes; then
35851   # Depending upon the size, compute the lo and hi bounds.
35852 cat >conftest.$ac_ext <<_ACEOF
35853 /* confdefs.h.  */
35854 _ACEOF
35855 cat confdefs.h >>conftest.$ac_ext
35856 cat >>conftest.$ac_ext <<_ACEOF
35857 /* end confdefs.h.  */
35858 $ac_includes_default
35859    typedef long long int ac__type_sizeof_;
35860 int
35861 main ()
35862 {
35863 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35864 test_array [0] = 0
35865
35866   ;
35867   return 0;
35868 }
35869 _ACEOF
35870 rm -f conftest.$ac_objext
35871 if { (ac_try="$ac_compile"
35872 case "(($ac_try" in
35873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35874   *) ac_try_echo=$ac_try;;
35875 esac
35876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35877   (eval "$ac_compile") 2>conftest.er1
35878   ac_status=$?
35879   grep -v '^ *+' conftest.er1 >conftest.err
35880   rm -f conftest.er1
35881   cat conftest.err >&5
35882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35883   (exit $ac_status); } && {
35884          test -z "$ac_c_werror_flag" ||
35885          test ! -s conftest.err
35886        } && test -s conftest.$ac_objext; then
35887   ac_lo=0 ac_mid=0
35888   while :; do
35889     cat >conftest.$ac_ext <<_ACEOF
35890 /* confdefs.h.  */
35891 _ACEOF
35892 cat confdefs.h >>conftest.$ac_ext
35893 cat >>conftest.$ac_ext <<_ACEOF
35894 /* end confdefs.h.  */
35895 $ac_includes_default
35896    typedef long long int ac__type_sizeof_;
35897 int
35898 main ()
35899 {
35900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35901 test_array [0] = 0
35902
35903   ;
35904   return 0;
35905 }
35906 _ACEOF
35907 rm -f conftest.$ac_objext
35908 if { (ac_try="$ac_compile"
35909 case "(($ac_try" in
35910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35911   *) ac_try_echo=$ac_try;;
35912 esac
35913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35914   (eval "$ac_compile") 2>conftest.er1
35915   ac_status=$?
35916   grep -v '^ *+' conftest.er1 >conftest.err
35917   rm -f conftest.er1
35918   cat conftest.err >&5
35919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35920   (exit $ac_status); } && {
35921          test -z "$ac_c_werror_flag" ||
35922          test ! -s conftest.err
35923        } && test -s conftest.$ac_objext; then
35924   ac_hi=$ac_mid; break
35925 else
35926   echo "$as_me: failed program was:" >&5
35927 sed 's/^/| /' conftest.$ac_ext >&5
35928
35929         ac_lo=`expr $ac_mid + 1`
35930                         if test $ac_lo -le $ac_mid; then
35931                           ac_lo= ac_hi=
35932                           break
35933                         fi
35934                         ac_mid=`expr 2 '*' $ac_mid + 1`
35935 fi
35936
35937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35938   done
35939 else
35940   echo "$as_me: failed program was:" >&5
35941 sed 's/^/| /' conftest.$ac_ext >&5
35942
35943         cat >conftest.$ac_ext <<_ACEOF
35944 /* confdefs.h.  */
35945 _ACEOF
35946 cat confdefs.h >>conftest.$ac_ext
35947 cat >>conftest.$ac_ext <<_ACEOF
35948 /* end confdefs.h.  */
35949 $ac_includes_default
35950    typedef long long int ac__type_sizeof_;
35951 int
35952 main ()
35953 {
35954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35955 test_array [0] = 0
35956
35957   ;
35958   return 0;
35959 }
35960 _ACEOF
35961 rm -f conftest.$ac_objext
35962 if { (ac_try="$ac_compile"
35963 case "(($ac_try" in
35964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35965   *) ac_try_echo=$ac_try;;
35966 esac
35967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35968   (eval "$ac_compile") 2>conftest.er1
35969   ac_status=$?
35970   grep -v '^ *+' conftest.er1 >conftest.err
35971   rm -f conftest.er1
35972   cat conftest.err >&5
35973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974   (exit $ac_status); } && {
35975          test -z "$ac_c_werror_flag" ||
35976          test ! -s conftest.err
35977        } && test -s conftest.$ac_objext; then
35978   ac_hi=-1 ac_mid=-1
35979   while :; do
35980     cat >conftest.$ac_ext <<_ACEOF
35981 /* confdefs.h.  */
35982 _ACEOF
35983 cat confdefs.h >>conftest.$ac_ext
35984 cat >>conftest.$ac_ext <<_ACEOF
35985 /* end confdefs.h.  */
35986 $ac_includes_default
35987    typedef long long int ac__type_sizeof_;
35988 int
35989 main ()
35990 {
35991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35992 test_array [0] = 0
35993
35994   ;
35995   return 0;
35996 }
35997 _ACEOF
35998 rm -f conftest.$ac_objext
35999 if { (ac_try="$ac_compile"
36000 case "(($ac_try" in
36001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36002   *) ac_try_echo=$ac_try;;
36003 esac
36004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36005   (eval "$ac_compile") 2>conftest.er1
36006   ac_status=$?
36007   grep -v '^ *+' conftest.er1 >conftest.err
36008   rm -f conftest.er1
36009   cat conftest.err >&5
36010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36011   (exit $ac_status); } && {
36012          test -z "$ac_c_werror_flag" ||
36013          test ! -s conftest.err
36014        } && test -s conftest.$ac_objext; then
36015   ac_lo=$ac_mid; break
36016 else
36017   echo "$as_me: failed program was:" >&5
36018 sed 's/^/| /' conftest.$ac_ext >&5
36019
36020         ac_hi=`expr '(' $ac_mid ')' - 1`
36021                         if test $ac_mid -le $ac_hi; then
36022                           ac_lo= ac_hi=
36023                           break
36024                         fi
36025                         ac_mid=`expr 2 '*' $ac_mid`
36026 fi
36027
36028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36029   done
36030 else
36031   echo "$as_me: failed program was:" >&5
36032 sed 's/^/| /' conftest.$ac_ext >&5
36033
36034         ac_lo= ac_hi=
36035 fi
36036
36037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36038 fi
36039
36040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36041 # Binary search between lo and hi bounds.
36042 while test "x$ac_lo" != "x$ac_hi"; do
36043   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36044   cat >conftest.$ac_ext <<_ACEOF
36045 /* confdefs.h.  */
36046 _ACEOF
36047 cat confdefs.h >>conftest.$ac_ext
36048 cat >>conftest.$ac_ext <<_ACEOF
36049 /* end confdefs.h.  */
36050 $ac_includes_default
36051    typedef long long int ac__type_sizeof_;
36052 int
36053 main ()
36054 {
36055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36056 test_array [0] = 0
36057
36058   ;
36059   return 0;
36060 }
36061 _ACEOF
36062 rm -f conftest.$ac_objext
36063 if { (ac_try="$ac_compile"
36064 case "(($ac_try" in
36065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36066   *) ac_try_echo=$ac_try;;
36067 esac
36068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36069   (eval "$ac_compile") 2>conftest.er1
36070   ac_status=$?
36071   grep -v '^ *+' conftest.er1 >conftest.err
36072   rm -f conftest.er1
36073   cat conftest.err >&5
36074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36075   (exit $ac_status); } && {
36076          test -z "$ac_c_werror_flag" ||
36077          test ! -s conftest.err
36078        } && test -s conftest.$ac_objext; then
36079   ac_hi=$ac_mid
36080 else
36081   echo "$as_me: failed program was:" >&5
36082 sed 's/^/| /' conftest.$ac_ext >&5
36083
36084         ac_lo=`expr '(' $ac_mid ')' + 1`
36085 fi
36086
36087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36088 done
36089 case $ac_lo in
36090 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36091 '') if test "$ac_cv_type_long_long_int" = yes; then
36092      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36093 See \`config.log' for more details." >&5
36094 echo "$as_me: error: cannot compute sizeof (long long int)
36095 See \`config.log' for more details." >&2;}
36096    { (exit 77); exit 77; }; }
36097    else
36098      ac_cv_sizeof_long_long_int=0
36099    fi ;;
36100 esac
36101 else
36102   cat >conftest.$ac_ext <<_ACEOF
36103 /* confdefs.h.  */
36104 _ACEOF
36105 cat confdefs.h >>conftest.$ac_ext
36106 cat >>conftest.$ac_ext <<_ACEOF
36107 /* end confdefs.h.  */
36108 $ac_includes_default
36109    typedef long long int ac__type_sizeof_;
36110 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36111 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36112 #include <stdio.h>
36113 #include <stdlib.h>
36114 int
36115 main ()
36116 {
36117
36118   FILE *f = fopen ("conftest.val", "w");
36119   if (! f)
36120     return 1;
36121   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36122     {
36123       long int i = longval ();
36124       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36125         return 1;
36126       fprintf (f, "%ld\n", i);
36127     }
36128   else
36129     {
36130       unsigned long int i = ulongval ();
36131       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36132         return 1;
36133       fprintf (f, "%lu\n", i);
36134     }
36135   return ferror (f) || fclose (f) != 0;
36136
36137   ;
36138   return 0;
36139 }
36140 _ACEOF
36141 rm -f conftest$ac_exeext
36142 if { (ac_try="$ac_link"
36143 case "(($ac_try" in
36144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36145   *) ac_try_echo=$ac_try;;
36146 esac
36147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36148   (eval "$ac_link") 2>&5
36149   ac_status=$?
36150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36152   { (case "(($ac_try" in
36153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36154   *) ac_try_echo=$ac_try;;
36155 esac
36156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36157   (eval "$ac_try") 2>&5
36158   ac_status=$?
36159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160   (exit $ac_status); }; }; then
36161   ac_cv_sizeof_long_long_int=`cat conftest.val`
36162 else
36163   echo "$as_me: program exited with status $ac_status" >&5
36164 echo "$as_me: failed program was:" >&5
36165 sed 's/^/| /' conftest.$ac_ext >&5
36166
36167 ( exit $ac_status )
36168 if test "$ac_cv_type_long_long_int" = yes; then
36169      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36170 See \`config.log' for more details." >&5
36171 echo "$as_me: error: cannot compute sizeof (long long int)
36172 See \`config.log' for more details." >&2;}
36173    { (exit 77); exit 77; }; }
36174    else
36175      ac_cv_sizeof_long_long_int=0
36176    fi
36177 fi
36178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36179 fi
36180 rm -f conftest.val
36181 fi
36182 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36183 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36184
36185
36186
36187 cat >>confdefs.h <<_ACEOF
36188 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36189 _ACEOF
36190
36191
36192 { echo "$as_me:$LINENO: checking for int *" >&5
36193 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36194 if test "${ac_cv_type_int_p+set}" = set; then
36195   echo $ECHO_N "(cached) $ECHO_C" >&6
36196 else
36197   cat >conftest.$ac_ext <<_ACEOF
36198 /* confdefs.h.  */
36199 _ACEOF
36200 cat confdefs.h >>conftest.$ac_ext
36201 cat >>conftest.$ac_ext <<_ACEOF
36202 /* end confdefs.h.  */
36203 $ac_includes_default
36204 typedef int * ac__type_new_;
36205 int
36206 main ()
36207 {
36208 if ((ac__type_new_ *) 0)
36209   return 0;
36210 if (sizeof (ac__type_new_))
36211   return 0;
36212   ;
36213   return 0;
36214 }
36215 _ACEOF
36216 rm -f conftest.$ac_objext
36217 if { (ac_try="$ac_compile"
36218 case "(($ac_try" in
36219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36220   *) ac_try_echo=$ac_try;;
36221 esac
36222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36223   (eval "$ac_compile") 2>conftest.er1
36224   ac_status=$?
36225   grep -v '^ *+' conftest.er1 >conftest.err
36226   rm -f conftest.er1
36227   cat conftest.err >&5
36228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36229   (exit $ac_status); } && {
36230          test -z "$ac_c_werror_flag" ||
36231          test ! -s conftest.err
36232        } && test -s conftest.$ac_objext; then
36233   ac_cv_type_int_p=yes
36234 else
36235   echo "$as_me: failed program was:" >&5
36236 sed 's/^/| /' conftest.$ac_ext >&5
36237
36238         ac_cv_type_int_p=no
36239 fi
36240
36241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36242 fi
36243 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36244 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36245
36246 # The cast to long int works around a bug in the HP C Compiler
36247 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36248 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36249 # This bug is HP SR number 8606223364.
36250 { echo "$as_me:$LINENO: checking size of int *" >&5
36251 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36252 if test "${ac_cv_sizeof_int_p+set}" = set; then
36253   echo $ECHO_N "(cached) $ECHO_C" >&6
36254 else
36255   if test "$cross_compiling" = yes; then
36256   # Depending upon the size, compute the lo and hi bounds.
36257 cat >conftest.$ac_ext <<_ACEOF
36258 /* confdefs.h.  */
36259 _ACEOF
36260 cat confdefs.h >>conftest.$ac_ext
36261 cat >>conftest.$ac_ext <<_ACEOF
36262 /* end confdefs.h.  */
36263 $ac_includes_default
36264    typedef int * ac__type_sizeof_;
36265 int
36266 main ()
36267 {
36268 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36269 test_array [0] = 0
36270
36271   ;
36272   return 0;
36273 }
36274 _ACEOF
36275 rm -f conftest.$ac_objext
36276 if { (ac_try="$ac_compile"
36277 case "(($ac_try" in
36278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36279   *) ac_try_echo=$ac_try;;
36280 esac
36281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36282   (eval "$ac_compile") 2>conftest.er1
36283   ac_status=$?
36284   grep -v '^ *+' conftest.er1 >conftest.err
36285   rm -f conftest.er1
36286   cat conftest.err >&5
36287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36288   (exit $ac_status); } && {
36289          test -z "$ac_c_werror_flag" ||
36290          test ! -s conftest.err
36291        } && test -s conftest.$ac_objext; then
36292   ac_lo=0 ac_mid=0
36293   while :; do
36294     cat >conftest.$ac_ext <<_ACEOF
36295 /* confdefs.h.  */
36296 _ACEOF
36297 cat confdefs.h >>conftest.$ac_ext
36298 cat >>conftest.$ac_ext <<_ACEOF
36299 /* end confdefs.h.  */
36300 $ac_includes_default
36301    typedef int * ac__type_sizeof_;
36302 int
36303 main ()
36304 {
36305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36306 test_array [0] = 0
36307
36308   ;
36309   return 0;
36310 }
36311 _ACEOF
36312 rm -f conftest.$ac_objext
36313 if { (ac_try="$ac_compile"
36314 case "(($ac_try" in
36315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36316   *) ac_try_echo=$ac_try;;
36317 esac
36318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36319   (eval "$ac_compile") 2>conftest.er1
36320   ac_status=$?
36321   grep -v '^ *+' conftest.er1 >conftest.err
36322   rm -f conftest.er1
36323   cat conftest.err >&5
36324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36325   (exit $ac_status); } && {
36326          test -z "$ac_c_werror_flag" ||
36327          test ! -s conftest.err
36328        } && test -s conftest.$ac_objext; then
36329   ac_hi=$ac_mid; break
36330 else
36331   echo "$as_me: failed program was:" >&5
36332 sed 's/^/| /' conftest.$ac_ext >&5
36333
36334         ac_lo=`expr $ac_mid + 1`
36335                         if test $ac_lo -le $ac_mid; then
36336                           ac_lo= ac_hi=
36337                           break
36338                         fi
36339                         ac_mid=`expr 2 '*' $ac_mid + 1`
36340 fi
36341
36342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36343   done
36344 else
36345   echo "$as_me: failed program was:" >&5
36346 sed 's/^/| /' conftest.$ac_ext >&5
36347
36348         cat >conftest.$ac_ext <<_ACEOF
36349 /* confdefs.h.  */
36350 _ACEOF
36351 cat confdefs.h >>conftest.$ac_ext
36352 cat >>conftest.$ac_ext <<_ACEOF
36353 /* end confdefs.h.  */
36354 $ac_includes_default
36355    typedef int * ac__type_sizeof_;
36356 int
36357 main ()
36358 {
36359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36360 test_array [0] = 0
36361
36362   ;
36363   return 0;
36364 }
36365 _ACEOF
36366 rm -f conftest.$ac_objext
36367 if { (ac_try="$ac_compile"
36368 case "(($ac_try" in
36369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36370   *) ac_try_echo=$ac_try;;
36371 esac
36372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36373   (eval "$ac_compile") 2>conftest.er1
36374   ac_status=$?
36375   grep -v '^ *+' conftest.er1 >conftest.err
36376   rm -f conftest.er1
36377   cat conftest.err >&5
36378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36379   (exit $ac_status); } && {
36380          test -z "$ac_c_werror_flag" ||
36381          test ! -s conftest.err
36382        } && test -s conftest.$ac_objext; then
36383   ac_hi=-1 ac_mid=-1
36384   while :; do
36385     cat >conftest.$ac_ext <<_ACEOF
36386 /* confdefs.h.  */
36387 _ACEOF
36388 cat confdefs.h >>conftest.$ac_ext
36389 cat >>conftest.$ac_ext <<_ACEOF
36390 /* end confdefs.h.  */
36391 $ac_includes_default
36392    typedef int * ac__type_sizeof_;
36393 int
36394 main ()
36395 {
36396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36397 test_array [0] = 0
36398
36399   ;
36400   return 0;
36401 }
36402 _ACEOF
36403 rm -f conftest.$ac_objext
36404 if { (ac_try="$ac_compile"
36405 case "(($ac_try" in
36406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36407   *) ac_try_echo=$ac_try;;
36408 esac
36409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36410   (eval "$ac_compile") 2>conftest.er1
36411   ac_status=$?
36412   grep -v '^ *+' conftest.er1 >conftest.err
36413   rm -f conftest.er1
36414   cat conftest.err >&5
36415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416   (exit $ac_status); } && {
36417          test -z "$ac_c_werror_flag" ||
36418          test ! -s conftest.err
36419        } && test -s conftest.$ac_objext; then
36420   ac_lo=$ac_mid; break
36421 else
36422   echo "$as_me: failed program was:" >&5
36423 sed 's/^/| /' conftest.$ac_ext >&5
36424
36425         ac_hi=`expr '(' $ac_mid ')' - 1`
36426                         if test $ac_mid -le $ac_hi; then
36427                           ac_lo= ac_hi=
36428                           break
36429                         fi
36430                         ac_mid=`expr 2 '*' $ac_mid`
36431 fi
36432
36433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36434   done
36435 else
36436   echo "$as_me: failed program was:" >&5
36437 sed 's/^/| /' conftest.$ac_ext >&5
36438
36439         ac_lo= ac_hi=
36440 fi
36441
36442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36443 fi
36444
36445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36446 # Binary search between lo and hi bounds.
36447 while test "x$ac_lo" != "x$ac_hi"; do
36448   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36449   cat >conftest.$ac_ext <<_ACEOF
36450 /* confdefs.h.  */
36451 _ACEOF
36452 cat confdefs.h >>conftest.$ac_ext
36453 cat >>conftest.$ac_ext <<_ACEOF
36454 /* end confdefs.h.  */
36455 $ac_includes_default
36456    typedef int * ac__type_sizeof_;
36457 int
36458 main ()
36459 {
36460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36461 test_array [0] = 0
36462
36463   ;
36464   return 0;
36465 }
36466 _ACEOF
36467 rm -f conftest.$ac_objext
36468 if { (ac_try="$ac_compile"
36469 case "(($ac_try" in
36470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36471   *) ac_try_echo=$ac_try;;
36472 esac
36473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36474   (eval "$ac_compile") 2>conftest.er1
36475   ac_status=$?
36476   grep -v '^ *+' conftest.er1 >conftest.err
36477   rm -f conftest.er1
36478   cat conftest.err >&5
36479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480   (exit $ac_status); } && {
36481          test -z "$ac_c_werror_flag" ||
36482          test ! -s conftest.err
36483        } && test -s conftest.$ac_objext; then
36484   ac_hi=$ac_mid
36485 else
36486   echo "$as_me: failed program was:" >&5
36487 sed 's/^/| /' conftest.$ac_ext >&5
36488
36489         ac_lo=`expr '(' $ac_mid ')' + 1`
36490 fi
36491
36492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36493 done
36494 case $ac_lo in
36495 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36496 '') if test "$ac_cv_type_int_p" = yes; then
36497      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36498 See \`config.log' for more details." >&5
36499 echo "$as_me: error: cannot compute sizeof (int *)
36500 See \`config.log' for more details." >&2;}
36501    { (exit 77); exit 77; }; }
36502    else
36503      ac_cv_sizeof_int_p=0
36504    fi ;;
36505 esac
36506 else
36507   cat >conftest.$ac_ext <<_ACEOF
36508 /* confdefs.h.  */
36509 _ACEOF
36510 cat confdefs.h >>conftest.$ac_ext
36511 cat >>conftest.$ac_ext <<_ACEOF
36512 /* end confdefs.h.  */
36513 $ac_includes_default
36514    typedef int * ac__type_sizeof_;
36515 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36516 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36517 #include <stdio.h>
36518 #include <stdlib.h>
36519 int
36520 main ()
36521 {
36522
36523   FILE *f = fopen ("conftest.val", "w");
36524   if (! f)
36525     return 1;
36526   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36527     {
36528       long int i = longval ();
36529       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36530         return 1;
36531       fprintf (f, "%ld\n", i);
36532     }
36533   else
36534     {
36535       unsigned long int i = ulongval ();
36536       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36537         return 1;
36538       fprintf (f, "%lu\n", i);
36539     }
36540   return ferror (f) || fclose (f) != 0;
36541
36542   ;
36543   return 0;
36544 }
36545 _ACEOF
36546 rm -f conftest$ac_exeext
36547 if { (ac_try="$ac_link"
36548 case "(($ac_try" in
36549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36550   *) ac_try_echo=$ac_try;;
36551 esac
36552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36553   (eval "$ac_link") 2>&5
36554   ac_status=$?
36555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36557   { (case "(($ac_try" in
36558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36559   *) ac_try_echo=$ac_try;;
36560 esac
36561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36562   (eval "$ac_try") 2>&5
36563   ac_status=$?
36564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565   (exit $ac_status); }; }; then
36566   ac_cv_sizeof_int_p=`cat conftest.val`
36567 else
36568   echo "$as_me: program exited with status $ac_status" >&5
36569 echo "$as_me: failed program was:" >&5
36570 sed 's/^/| /' conftest.$ac_ext >&5
36571
36572 ( exit $ac_status )
36573 if test "$ac_cv_type_int_p" = yes; then
36574      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36575 See \`config.log' for more details." >&5
36576 echo "$as_me: error: cannot compute sizeof (int *)
36577 See \`config.log' for more details." >&2;}
36578    { (exit 77); exit 77; }; }
36579    else
36580      ac_cv_sizeof_int_p=0
36581    fi
36582 fi
36583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36584 fi
36585 rm -f conftest.val
36586 fi
36587 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36588 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36589
36590
36591
36592 cat >>confdefs.h <<_ACEOF
36593 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36594 _ACEOF
36595
36596
36597
36598 { echo "$as_me:$LINENO: checking for u_int type" >&5
36599 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36600 if test "${ac_cv_have_u_int+set}" = set; then
36601   echo $ECHO_N "(cached) $ECHO_C" >&6
36602 else
36603
36604        cat >conftest.$ac_ext <<_ACEOF
36605 /* confdefs.h.  */
36606 _ACEOF
36607 cat confdefs.h >>conftest.$ac_ext
36608 cat >>conftest.$ac_ext <<_ACEOF
36609 /* end confdefs.h.  */
36610
36611               #include <sys/types.h>
36612
36613 int
36614 main ()
36615 {
36616
36617               u_int a; a = 1;
36618
36619   ;
36620   return 0;
36621 }
36622 _ACEOF
36623 rm -f conftest.$ac_objext
36624 if { (ac_try="$ac_compile"
36625 case "(($ac_try" in
36626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36627   *) ac_try_echo=$ac_try;;
36628 esac
36629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36630   (eval "$ac_compile") 2>conftest.er1
36631   ac_status=$?
36632   grep -v '^ *+' conftest.er1 >conftest.err
36633   rm -f conftest.er1
36634   cat conftest.err >&5
36635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36636   (exit $ac_status); } && {
36637          test -z "$ac_c_werror_flag" ||
36638          test ! -s conftest.err
36639        } && test -s conftest.$ac_objext; then
36640
36641               ac_cv_have_u_int="yes"
36642
36643 else
36644   echo "$as_me: failed program was:" >&5
36645 sed 's/^/| /' conftest.$ac_ext >&5
36646
36647
36648               ac_cv_have_u_int="no"
36649
36650
36651 fi
36652
36653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36654
36655
36656 fi
36657 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36658 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36659 if test "x$ac_cv_have_u_int" = "xyes" ; then
36660    cat >>confdefs.h <<\_ACEOF
36661 #define HAVE_U_INT 1
36662 _ACEOF
36663
36664    have_u_int=1
36665 fi
36666
36667 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36668 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36669 if test "${ac_cv_have_intmax_t+set}" = set; then
36670   echo $ECHO_N "(cached) $ECHO_C" >&6
36671 else
36672
36673        cat >conftest.$ac_ext <<_ACEOF
36674 /* confdefs.h.  */
36675 _ACEOF
36676 cat confdefs.h >>conftest.$ac_ext
36677 cat >>conftest.$ac_ext <<_ACEOF
36678 /* end confdefs.h.  */
36679
36680               #include <sys/types.h>
36681
36682 int
36683 main ()
36684 {
36685
36686               intmax_t a; a = 1;
36687
36688   ;
36689   return 0;
36690 }
36691 _ACEOF
36692 rm -f conftest.$ac_objext
36693 if { (ac_try="$ac_compile"
36694 case "(($ac_try" in
36695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36696   *) ac_try_echo=$ac_try;;
36697 esac
36698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36699   (eval "$ac_compile") 2>conftest.er1
36700   ac_status=$?
36701   grep -v '^ *+' conftest.er1 >conftest.err
36702   rm -f conftest.er1
36703   cat conftest.err >&5
36704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36705   (exit $ac_status); } && {
36706          test -z "$ac_c_werror_flag" ||
36707          test ! -s conftest.err
36708        } && test -s conftest.$ac_objext; then
36709
36710               ac_cv_have_intmax_t="yes"
36711
36712 else
36713   echo "$as_me: failed program was:" >&5
36714 sed 's/^/| /' conftest.$ac_ext >&5
36715
36716
36717               cat >conftest.$ac_ext <<_ACEOF
36718 /* confdefs.h.  */
36719 _ACEOF
36720 cat confdefs.h >>conftest.$ac_ext
36721 cat >>conftest.$ac_ext <<_ACEOF
36722 /* end confdefs.h.  */
36723
36724                      #include <stdint.h>
36725
36726 int
36727 main ()
36728 {
36729
36730                      intmax_t a; a = 1;
36731
36732   ;
36733   return 0;
36734 }
36735 _ACEOF
36736 rm -f conftest.$ac_objext
36737 if { (ac_try="$ac_compile"
36738 case "(($ac_try" in
36739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36740   *) ac_try_echo=$ac_try;;
36741 esac
36742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36743   (eval "$ac_compile") 2>conftest.er1
36744   ac_status=$?
36745   grep -v '^ *+' conftest.er1 >conftest.err
36746   rm -f conftest.er1
36747   cat conftest.err >&5
36748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749   (exit $ac_status); } && {
36750          test -z "$ac_c_werror_flag" ||
36751          test ! -s conftest.err
36752        } && test -s conftest.$ac_objext; then
36753
36754                      ac_cv_have_intmax_t="yes"
36755
36756 else
36757   echo "$as_me: failed program was:" >&5
36758 sed 's/^/| /' conftest.$ac_ext >&5
36759
36760
36761                      ac_cv_have_intmax_t="no"
36762
36763
36764 fi
36765
36766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36767
36768
36769 fi
36770
36771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36772
36773
36774 fi
36775 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36776 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36777 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36778    cat >>confdefs.h <<\_ACEOF
36779 #define HAVE_INTMAX_T 1
36780 _ACEOF
36781
36782    have_intmax_t=1
36783 fi
36784
36785 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36786 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36787 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36788   echo $ECHO_N "(cached) $ECHO_C" >&6
36789 else
36790
36791        cat >conftest.$ac_ext <<_ACEOF
36792 /* confdefs.h.  */
36793 _ACEOF
36794 cat confdefs.h >>conftest.$ac_ext
36795 cat >>conftest.$ac_ext <<_ACEOF
36796 /* end confdefs.h.  */
36797
36798               #include <sys/types.h>
36799
36800 int
36801 main ()
36802 {
36803
36804               u_intmax_t a; a = 1;
36805
36806   ;
36807   return 0;
36808 }
36809 _ACEOF
36810 rm -f conftest.$ac_objext
36811 if { (ac_try="$ac_compile"
36812 case "(($ac_try" in
36813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36814   *) ac_try_echo=$ac_try;;
36815 esac
36816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36817   (eval "$ac_compile") 2>conftest.er1
36818   ac_status=$?
36819   grep -v '^ *+' conftest.er1 >conftest.err
36820   rm -f conftest.er1
36821   cat conftest.err >&5
36822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36823   (exit $ac_status); } && {
36824          test -z "$ac_c_werror_flag" ||
36825          test ! -s conftest.err
36826        } && test -s conftest.$ac_objext; then
36827
36828               ac_cv_have_u_intmax_t="yes"
36829
36830 else
36831   echo "$as_me: failed program was:" >&5
36832 sed 's/^/| /' conftest.$ac_ext >&5
36833
36834
36835               cat >conftest.$ac_ext <<_ACEOF
36836 /* confdefs.h.  */
36837 _ACEOF
36838 cat confdefs.h >>conftest.$ac_ext
36839 cat >>conftest.$ac_ext <<_ACEOF
36840 /* end confdefs.h.  */
36841
36842                      #include <stdint.h>
36843
36844 int
36845 main ()
36846 {
36847
36848                     u_intmax_t a; a = 1;
36849
36850   ;
36851   return 0;
36852 }
36853 _ACEOF
36854 rm -f conftest.$ac_objext
36855 if { (ac_try="$ac_compile"
36856 case "(($ac_try" in
36857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36858   *) ac_try_echo=$ac_try;;
36859 esac
36860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36861   (eval "$ac_compile") 2>conftest.er1
36862   ac_status=$?
36863   grep -v '^ *+' conftest.er1 >conftest.err
36864   rm -f conftest.er1
36865   cat conftest.err >&5
36866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36867   (exit $ac_status); } && {
36868          test -z "$ac_c_werror_flag" ||
36869          test ! -s conftest.err
36870        } && test -s conftest.$ac_objext; then
36871
36872                     ac_cv_have_u_intmax_t="yes"
36873
36874 else
36875   echo "$as_me: failed program was:" >&5
36876 sed 's/^/| /' conftest.$ac_ext >&5
36877
36878
36879                     ac_cv_have_u_intmax_t="no"
36880
36881
36882 fi
36883
36884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36885
36886
36887 fi
36888
36889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36890
36891
36892 fi
36893 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36894 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36895 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36896    cat >>confdefs.h <<\_ACEOF
36897 #define HAVE_U_INTMAX_T 1
36898 _ACEOF
36899
36900    have_u_intmax_t=1
36901 fi
36902
36903 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36904 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36905 if test "${ac_cv_have_intxx_t+set}" = set; then
36906   echo $ECHO_N "(cached) $ECHO_C" >&6
36907 else
36908
36909        cat >conftest.$ac_ext <<_ACEOF
36910 /* confdefs.h.  */
36911 _ACEOF
36912 cat confdefs.h >>conftest.$ac_ext
36913 cat >>conftest.$ac_ext <<_ACEOF
36914 /* end confdefs.h.  */
36915
36916               #include <sys/types.h>
36917
36918 int
36919 main ()
36920 {
36921
36922               int8_t a; int16_t b; int32_t c; a = b = c = 1;
36923
36924   ;
36925   return 0;
36926 }
36927 _ACEOF
36928 rm -f conftest.$ac_objext
36929 if { (ac_try="$ac_compile"
36930 case "(($ac_try" in
36931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36932   *) ac_try_echo=$ac_try;;
36933 esac
36934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36935   (eval "$ac_compile") 2>conftest.er1
36936   ac_status=$?
36937   grep -v '^ *+' conftest.er1 >conftest.err
36938   rm -f conftest.er1
36939   cat conftest.err >&5
36940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36941   (exit $ac_status); } && {
36942          test -z "$ac_c_werror_flag" ||
36943          test ! -s conftest.err
36944        } && test -s conftest.$ac_objext; then
36945
36946               ac_cv_have_intxx_t="yes"
36947
36948 else
36949   echo "$as_me: failed program was:" >&5
36950 sed 's/^/| /' conftest.$ac_ext >&5
36951
36952
36953               ac_cv_have_intxx_t="no"
36954
36955
36956 fi
36957
36958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36959
36960
36961 fi
36962 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36963 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36964 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36965    cat >>confdefs.h <<\_ACEOF
36966 #define HAVE_INTXX_T 1
36967 _ACEOF
36968
36969    have_intxx_t=1
36970 fi
36971
36972 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36973 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36974 if test "${ac_cv_have_int64_t+set}" = set; then
36975   echo $ECHO_N "(cached) $ECHO_C" >&6
36976 else
36977
36978        cat >conftest.$ac_ext <<_ACEOF
36979 /* confdefs.h.  */
36980 _ACEOF
36981 cat confdefs.h >>conftest.$ac_ext
36982 cat >>conftest.$ac_ext <<_ACEOF
36983 /* end confdefs.h.  */
36984
36985               #include <sys/types.h>
36986
36987 int
36988 main ()
36989 {
36990
36991               int64_t a; a = 1;
36992
36993   ;
36994   return 0;
36995 }
36996 _ACEOF
36997 rm -f conftest.$ac_objext
36998 if { (ac_try="$ac_compile"
36999 case "(($ac_try" in
37000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37001   *) ac_try_echo=$ac_try;;
37002 esac
37003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37004   (eval "$ac_compile") 2>conftest.er1
37005   ac_status=$?
37006   grep -v '^ *+' conftest.er1 >conftest.err
37007   rm -f conftest.er1
37008   cat conftest.err >&5
37009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010   (exit $ac_status); } && {
37011          test -z "$ac_c_werror_flag" ||
37012          test ! -s conftest.err
37013        } && test -s conftest.$ac_objext; then
37014
37015               ac_cv_have_int64_t="yes"
37016
37017 else
37018   echo "$as_me: failed program was:" >&5
37019 sed 's/^/| /' conftest.$ac_ext >&5
37020
37021
37022               ac_cv_have_int64_t="no"
37023
37024
37025 fi
37026
37027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37028
37029
37030 fi
37031 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37032 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37033 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37034    cat >>confdefs.h <<\_ACEOF
37035 #define HAVE_INT64_T 1
37036 _ACEOF
37037
37038    have_int64_t=1
37039 fi
37040
37041 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37042 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37043 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37044   echo $ECHO_N "(cached) $ECHO_C" >&6
37045 else
37046
37047        cat >conftest.$ac_ext <<_ACEOF
37048 /* confdefs.h.  */
37049 _ACEOF
37050 cat confdefs.h >>conftest.$ac_ext
37051 cat >>conftest.$ac_ext <<_ACEOF
37052 /* end confdefs.h.  */
37053
37054               #include <sys/types.h>
37055
37056 int
37057 main ()
37058 {
37059
37060               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37061
37062   ;
37063   return 0;
37064 }
37065 _ACEOF
37066 rm -f conftest.$ac_objext
37067 if { (ac_try="$ac_compile"
37068 case "(($ac_try" in
37069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37070   *) ac_try_echo=$ac_try;;
37071 esac
37072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37073   (eval "$ac_compile") 2>conftest.er1
37074   ac_status=$?
37075   grep -v '^ *+' conftest.er1 >conftest.err
37076   rm -f conftest.er1
37077   cat conftest.err >&5
37078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079   (exit $ac_status); } && {
37080          test -z "$ac_c_werror_flag" ||
37081          test ! -s conftest.err
37082        } && test -s conftest.$ac_objext; then
37083
37084              ac_cv_have_u_intxx_t="yes"
37085
37086 else
37087   echo "$as_me: failed program was:" >&5
37088 sed 's/^/| /' conftest.$ac_ext >&5
37089
37090
37091              ac_cv_have_u_intxx_t="no"
37092
37093
37094 fi
37095
37096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37097
37098
37099 fi
37100 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37101 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37102 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37103    cat >>confdefs.h <<\_ACEOF
37104 #define HAVE_U_INTXX_T 1
37105 _ACEOF
37106
37107    have_u_intxx_t=1
37108 fi
37109
37110 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37111 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37112 if test "${ac_cv_have_u_int64_t+set}" = set; then
37113   echo $ECHO_N "(cached) $ECHO_C" >&6
37114 else
37115
37116        cat >conftest.$ac_ext <<_ACEOF
37117 /* confdefs.h.  */
37118 _ACEOF
37119 cat confdefs.h >>conftest.$ac_ext
37120 cat >>conftest.$ac_ext <<_ACEOF
37121 /* end confdefs.h.  */
37122
37123               #include <sys/types.h>
37124
37125 int
37126 main ()
37127 {
37128
37129               u_int64_t a; a = 1;
37130
37131   ;
37132   return 0;
37133 }
37134 _ACEOF
37135 rm -f conftest.$ac_objext
37136 if { (ac_try="$ac_compile"
37137 case "(($ac_try" in
37138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37139   *) ac_try_echo=$ac_try;;
37140 esac
37141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37142   (eval "$ac_compile") 2>conftest.er1
37143   ac_status=$?
37144   grep -v '^ *+' conftest.er1 >conftest.err
37145   rm -f conftest.er1
37146   cat conftest.err >&5
37147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37148   (exit $ac_status); } && {
37149          test -z "$ac_c_werror_flag" ||
37150          test ! -s conftest.err
37151        } && test -s conftest.$ac_objext; then
37152
37153              ac_cv_have_u_int64_t="yes"
37154
37155 else
37156   echo "$as_me: failed program was:" >&5
37157 sed 's/^/| /' conftest.$ac_ext >&5
37158
37159
37160              ac_cv_have_u_int64_t="no"
37161
37162
37163 fi
37164
37165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37166
37167
37168 fi
37169 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37170 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37171 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37172    cat >>confdefs.h <<\_ACEOF
37173 #define HAVE_U_INT64_T 1
37174 _ACEOF
37175
37176    have_u_int64_t=1
37177 fi
37178
37179 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37180     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37181 then
37182    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37183 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37184    cat >conftest.$ac_ext <<_ACEOF
37185 /* confdefs.h.  */
37186 _ACEOF
37187 cat confdefs.h >>conftest.$ac_ext
37188 cat >>conftest.$ac_ext <<_ACEOF
37189 /* end confdefs.h.  */
37190
37191           #include <sys/bitypes.h>
37192
37193 int
37194 main ()
37195 {
37196
37197           int8_t a; int16_t b; int32_t c;
37198           u_int8_t e; u_int16_t f; u_int32_t g;
37199           a = b = c = e = f = g = 1;
37200
37201   ;
37202   return 0;
37203 }
37204 _ACEOF
37205 rm -f conftest.$ac_objext
37206 if { (ac_try="$ac_compile"
37207 case "(($ac_try" in
37208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37209   *) ac_try_echo=$ac_try;;
37210 esac
37211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37212   (eval "$ac_compile") 2>conftest.er1
37213   ac_status=$?
37214   grep -v '^ *+' conftest.er1 >conftest.err
37215   rm -f conftest.er1
37216   cat conftest.err >&5
37217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218   (exit $ac_status); } && {
37219          test -z "$ac_c_werror_flag" ||
37220          test ! -s conftest.err
37221        } && test -s conftest.$ac_objext; then
37222
37223           cat >>confdefs.h <<\_ACEOF
37224 #define HAVE_U_INTXX_T 1
37225 _ACEOF
37226
37227           cat >>confdefs.h <<\_ACEOF
37228 #define HAVE_INTXX_T 1
37229 _ACEOF
37230
37231           cat >>confdefs.h <<\_ACEOF
37232 #define HAVE_SYS_BITYPES_H 1
37233 _ACEOF
37234
37235           { echo "$as_me:$LINENO: result: yes" >&5
37236 echo "${ECHO_T}yes" >&6; }
37237
37238 else
37239   echo "$as_me: failed program was:" >&5
37240 sed 's/^/| /' conftest.$ac_ext >&5
37241
37242
37243           { echo "$as_me:$LINENO: result: no" >&5
37244 echo "${ECHO_T}no" >&6; }
37245
37246
37247 fi
37248
37249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37250 fi
37251
37252 if test -z "$have_u_intxx_t" ; then
37253    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37254 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37255 if test "${ac_cv_have_uintxx_t+set}" = set; then
37256   echo $ECHO_N "(cached) $ECHO_C" >&6
37257 else
37258
37259           cat >conftest.$ac_ext <<_ACEOF
37260 /* confdefs.h.  */
37261 _ACEOF
37262 cat confdefs.h >>conftest.$ac_ext
37263 cat >>conftest.$ac_ext <<_ACEOF
37264 /* end confdefs.h.  */
37265
37266                  #include <sys/types.h>
37267
37268 int
37269 main ()
37270 {
37271
37272                  uint8_t a; uint16_t b;
37273                  uint32_t c; a = b = c = 1;
37274
37275   ;
37276   return 0;
37277 }
37278 _ACEOF
37279 rm -f conftest.$ac_objext
37280 if { (ac_try="$ac_compile"
37281 case "(($ac_try" in
37282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37283   *) ac_try_echo=$ac_try;;
37284 esac
37285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37286   (eval "$ac_compile") 2>conftest.er1
37287   ac_status=$?
37288   grep -v '^ *+' conftest.er1 >conftest.err
37289   rm -f conftest.er1
37290   cat conftest.err >&5
37291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37292   (exit $ac_status); } && {
37293          test -z "$ac_c_werror_flag" ||
37294          test ! -s conftest.err
37295        } && test -s conftest.$ac_objext; then
37296
37297                 ac_cv_have_uintxx_t="yes"
37298
37299 else
37300   echo "$as_me: failed program was:" >&5
37301 sed 's/^/| /' conftest.$ac_ext >&5
37302
37303
37304                 ac_cv_have_uintxx_t="no"
37305
37306
37307 fi
37308
37309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37310
37311
37312 fi
37313 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37314 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37315    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37316       cat >>confdefs.h <<\_ACEOF
37317 #define HAVE_UINTXX_T 1
37318 _ACEOF
37319
37320    fi
37321 fi
37322
37323 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37324     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37325 then
37326    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37327 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37328    cat >conftest.$ac_ext <<_ACEOF
37329 /* confdefs.h.  */
37330 _ACEOF
37331 cat confdefs.h >>conftest.$ac_ext
37332 cat >>conftest.$ac_ext <<_ACEOF
37333 /* end confdefs.h.  */
37334
37335           #include <sys/bitypes.h>
37336
37337 int
37338 main ()
37339 {
37340
37341           int64_t a; u_int64_t b;
37342           a = b = 1;
37343
37344   ;
37345   return 0;
37346 }
37347 _ACEOF
37348 rm -f conftest.$ac_objext
37349 if { (ac_try="$ac_compile"
37350 case "(($ac_try" in
37351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37352   *) ac_try_echo=$ac_try;;
37353 esac
37354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37355   (eval "$ac_compile") 2>conftest.er1
37356   ac_status=$?
37357   grep -v '^ *+' conftest.er1 >conftest.err
37358   rm -f conftest.er1
37359   cat conftest.err >&5
37360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361   (exit $ac_status); } && {
37362          test -z "$ac_c_werror_flag" ||
37363          test ! -s conftest.err
37364        } && test -s conftest.$ac_objext; then
37365
37366           cat >>confdefs.h <<\_ACEOF
37367 #define HAVE_U_INT64_T 1
37368 _ACEOF
37369
37370           cat >>confdefs.h <<\_ACEOF
37371 #define HAVE_INT64_T 1
37372 _ACEOF
37373
37374           { echo "$as_me:$LINENO: result: yes" >&5
37375 echo "${ECHO_T}yes" >&6; }
37376
37377 else
37378   echo "$as_me: failed program was:" >&5
37379 sed 's/^/| /' conftest.$ac_ext >&5
37380
37381
37382           { echo "$as_me:$LINENO: result: no" >&5
37383 echo "${ECHO_T}no" >&6; }
37384
37385
37386 fi
37387
37388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37389 fi
37390
37391 if (test -z "$have_uintxx_t" && \
37392     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37393 then
37394    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37395 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37396    cat >conftest.$ac_ext <<_ACEOF
37397 /* confdefs.h.  */
37398 _ACEOF
37399 cat confdefs.h >>conftest.$ac_ext
37400 cat >>conftest.$ac_ext <<_ACEOF
37401 /* end confdefs.h.  */
37402
37403           #include <sys/bitypes.h>
37404
37405 int
37406 main ()
37407 {
37408
37409           uint8_t a; uint16_t b;
37410           uint32_t c; a = b = c = 1;
37411
37412   ;
37413   return 0;
37414 }
37415 _ACEOF
37416 rm -f conftest.$ac_objext
37417 if { (ac_try="$ac_compile"
37418 case "(($ac_try" in
37419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37420   *) ac_try_echo=$ac_try;;
37421 esac
37422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37423   (eval "$ac_compile") 2>conftest.er1
37424   ac_status=$?
37425   grep -v '^ *+' conftest.er1 >conftest.err
37426   rm -f conftest.er1
37427   cat conftest.err >&5
37428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429   (exit $ac_status); } && {
37430          test -z "$ac_c_werror_flag" ||
37431          test ! -s conftest.err
37432        } && test -s conftest.$ac_objext; then
37433
37434           cat >>confdefs.h <<\_ACEOF
37435 #define HAVE_UINTXX_T 1
37436 _ACEOF
37437
37438           { echo "$as_me:$LINENO: result: yes" >&5
37439 echo "${ECHO_T}yes" >&6; }
37440
37441 else
37442   echo "$as_me: failed program was:" >&5
37443 sed 's/^/| /' conftest.$ac_ext >&5
37444
37445
37446           { echo "$as_me:$LINENO: result: no" >&5
37447 echo "${ECHO_T}no" >&6; }
37448
37449
37450 fi
37451
37452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37453 fi
37454
37455
37456
37457
37458
37459
37460
37461
37462
37463
37464
37465
37466
37467
37468 for ac_func in \
37469    fork \
37470    getcwd \
37471    gethostname \
37472    getpid \
37473    gettimeofday \
37474    setpgid \
37475    setpgrp \
37476    setsid \
37477    signal \
37478    strerror \
37479    strncmp \
37480    strncpy \
37481    vfprintf \
37482
37483 do
37484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37488   echo $ECHO_N "(cached) $ECHO_C" >&6
37489 else
37490   cat >conftest.$ac_ext <<_ACEOF
37491 /* confdefs.h.  */
37492 _ACEOF
37493 cat confdefs.h >>conftest.$ac_ext
37494 cat >>conftest.$ac_ext <<_ACEOF
37495 /* end confdefs.h.  */
37496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37498 #define $ac_func innocuous_$ac_func
37499
37500 /* System header to define __stub macros and hopefully few prototypes,
37501     which can conflict with char $ac_func (); below.
37502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37503     <limits.h> exists even on freestanding compilers.  */
37504
37505 #ifdef __STDC__
37506 # include <limits.h>
37507 #else
37508 # include <assert.h>
37509 #endif
37510
37511 #undef $ac_func
37512
37513 /* Override any GCC internal prototype to avoid an error.
37514    Use char because int might match the return type of a GCC
37515    builtin and then its argument prototype would still apply.  */
37516 #ifdef __cplusplus
37517 extern "C"
37518 #endif
37519 char $ac_func ();
37520 /* The GNU C library defines this for functions which it implements
37521     to always fail with ENOSYS.  Some functions are actually named
37522     something starting with __ and the normal name is an alias.  */
37523 #if defined __stub_$ac_func || defined __stub___$ac_func
37524 choke me
37525 #endif
37526
37527 int
37528 main ()
37529 {
37530 return $ac_func ();
37531   ;
37532   return 0;
37533 }
37534 _ACEOF
37535 rm -f conftest.$ac_objext conftest$ac_exeext
37536 if { (ac_try="$ac_link"
37537 case "(($ac_try" in
37538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37539   *) ac_try_echo=$ac_try;;
37540 esac
37541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37542   (eval "$ac_link") 2>conftest.er1
37543   ac_status=$?
37544   grep -v '^ *+' conftest.er1 >conftest.err
37545   rm -f conftest.er1
37546   cat conftest.err >&5
37547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548   (exit $ac_status); } && {
37549          test -z "$ac_c_werror_flag" ||
37550          test ! -s conftest.err
37551        } && test -s conftest$ac_exeext &&
37552        $as_test_x conftest$ac_exeext; then
37553   eval "$as_ac_var=yes"
37554 else
37555   echo "$as_me: failed program was:" >&5
37556 sed 's/^/| /' conftest.$ac_ext >&5
37557
37558         eval "$as_ac_var=no"
37559 fi
37560
37561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37562       conftest$ac_exeext conftest.$ac_ext
37563 fi
37564 ac_res=`eval echo '${'$as_ac_var'}'`
37565                { echo "$as_me:$LINENO: result: $ac_res" >&5
37566 echo "${ECHO_T}$ac_res" >&6; }
37567 if test `eval echo '${'$as_ac_var'}'` = yes; then
37568   cat >>confdefs.h <<_ACEOF
37569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37570 _ACEOF
37571
37572 else
37573   echo 'configure: cannot find needed function.'; exit 1
37574
37575 fi
37576 done
37577
37578
37579
37580 for ac_func in fchdir
37581 do
37582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37586   echo $ECHO_N "(cached) $ECHO_C" >&6
37587 else
37588   cat >conftest.$ac_ext <<_ACEOF
37589 /* confdefs.h.  */
37590 _ACEOF
37591 cat confdefs.h >>conftest.$ac_ext
37592 cat >>conftest.$ac_ext <<_ACEOF
37593 /* end confdefs.h.  */
37594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37596 #define $ac_func innocuous_$ac_func
37597
37598 /* System header to define __stub macros and hopefully few prototypes,
37599     which can conflict with char $ac_func (); below.
37600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37601     <limits.h> exists even on freestanding compilers.  */
37602
37603 #ifdef __STDC__
37604 # include <limits.h>
37605 #else
37606 # include <assert.h>
37607 #endif
37608
37609 #undef $ac_func
37610
37611 /* Override any GCC internal prototype to avoid an error.
37612    Use char because int might match the return type of a GCC
37613    builtin and then its argument prototype would still apply.  */
37614 #ifdef __cplusplus
37615 extern "C"
37616 #endif
37617 char $ac_func ();
37618 /* The GNU C library defines this for functions which it implements
37619     to always fail with ENOSYS.  Some functions are actually named
37620     something starting with __ and the normal name is an alias.  */
37621 #if defined __stub_$ac_func || defined __stub___$ac_func
37622 choke me
37623 #endif
37624
37625 int
37626 main ()
37627 {
37628 return $ac_func ();
37629   ;
37630   return 0;
37631 }
37632 _ACEOF
37633 rm -f conftest.$ac_objext conftest$ac_exeext
37634 if { (ac_try="$ac_link"
37635 case "(($ac_try" in
37636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37637   *) ac_try_echo=$ac_try;;
37638 esac
37639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37640   (eval "$ac_link") 2>conftest.er1
37641   ac_status=$?
37642   grep -v '^ *+' conftest.er1 >conftest.err
37643   rm -f conftest.er1
37644   cat conftest.err >&5
37645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646   (exit $ac_status); } && {
37647          test -z "$ac_c_werror_flag" ||
37648          test ! -s conftest.err
37649        } && test -s conftest$ac_exeext &&
37650        $as_test_x conftest$ac_exeext; then
37651   eval "$as_ac_var=yes"
37652 else
37653   echo "$as_me: failed program was:" >&5
37654 sed 's/^/| /' conftest.$ac_ext >&5
37655
37656         eval "$as_ac_var=no"
37657 fi
37658
37659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37660       conftest$ac_exeext conftest.$ac_ext
37661 fi
37662 ac_res=`eval echo '${'$as_ac_var'}'`
37663                { echo "$as_me:$LINENO: result: $ac_res" >&5
37664 echo "${ECHO_T}$ac_res" >&6; }
37665 if test `eval echo '${'$as_ac_var'}'` = yes; then
37666   cat >>confdefs.h <<_ACEOF
37667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37668 _ACEOF
37669  cat >>confdefs.h <<\_ACEOF
37670 #define HAVE_FCHDIR 1
37671 _ACEOF
37672
37673 fi
37674 done
37675
37676
37677 for ac_func in strtoll
37678 do
37679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37683   echo $ECHO_N "(cached) $ECHO_C" >&6
37684 else
37685   cat >conftest.$ac_ext <<_ACEOF
37686 /* confdefs.h.  */
37687 _ACEOF
37688 cat confdefs.h >>conftest.$ac_ext
37689 cat >>conftest.$ac_ext <<_ACEOF
37690 /* end confdefs.h.  */
37691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37693 #define $ac_func innocuous_$ac_func
37694
37695 /* System header to define __stub macros and hopefully few prototypes,
37696     which can conflict with char $ac_func (); below.
37697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37698     <limits.h> exists even on freestanding compilers.  */
37699
37700 #ifdef __STDC__
37701 # include <limits.h>
37702 #else
37703 # include <assert.h>
37704 #endif
37705
37706 #undef $ac_func
37707
37708 /* Override any GCC internal prototype to avoid an error.
37709    Use char because int might match the return type of a GCC
37710    builtin and then its argument prototype would still apply.  */
37711 #ifdef __cplusplus
37712 extern "C"
37713 #endif
37714 char $ac_func ();
37715 /* The GNU C library defines this for functions which it implements
37716     to always fail with ENOSYS.  Some functions are actually named
37717     something starting with __ and the normal name is an alias.  */
37718 #if defined __stub_$ac_func || defined __stub___$ac_func
37719 choke me
37720 #endif
37721
37722 int
37723 main ()
37724 {
37725 return $ac_func ();
37726   ;
37727   return 0;
37728 }
37729 _ACEOF
37730 rm -f conftest.$ac_objext conftest$ac_exeext
37731 if { (ac_try="$ac_link"
37732 case "(($ac_try" in
37733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37734   *) ac_try_echo=$ac_try;;
37735 esac
37736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37737   (eval "$ac_link") 2>conftest.er1
37738   ac_status=$?
37739   grep -v '^ *+' conftest.er1 >conftest.err
37740   rm -f conftest.er1
37741   cat conftest.err >&5
37742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37743   (exit $ac_status); } && {
37744          test -z "$ac_c_werror_flag" ||
37745          test ! -s conftest.err
37746        } && test -s conftest$ac_exeext &&
37747        $as_test_x conftest$ac_exeext; then
37748   eval "$as_ac_var=yes"
37749 else
37750   echo "$as_me: failed program was:" >&5
37751 sed 's/^/| /' conftest.$ac_ext >&5
37752
37753         eval "$as_ac_var=no"
37754 fi
37755
37756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37757       conftest$ac_exeext conftest.$ac_ext
37758 fi
37759 ac_res=`eval echo '${'$as_ac_var'}'`
37760                { echo "$as_me:$LINENO: result: $ac_res" >&5
37761 echo "${ECHO_T}$ac_res" >&6; }
37762 if test `eval echo '${'$as_ac_var'}'` = yes; then
37763   cat >>confdefs.h <<_ACEOF
37764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37765 _ACEOF
37766  cat >>confdefs.h <<\_ACEOF
37767 #define HAVE_STRTOLL 1
37768 _ACEOF
37769
37770 fi
37771 done
37772
37773
37774 for ac_func in posix_fadvise
37775 do
37776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37777 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37780   echo $ECHO_N "(cached) $ECHO_C" >&6
37781 else
37782   cat >conftest.$ac_ext <<_ACEOF
37783 /* confdefs.h.  */
37784 _ACEOF
37785 cat confdefs.h >>conftest.$ac_ext
37786 cat >>conftest.$ac_ext <<_ACEOF
37787 /* end confdefs.h.  */
37788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37790 #define $ac_func innocuous_$ac_func
37791
37792 /* System header to define __stub macros and hopefully few prototypes,
37793     which can conflict with char $ac_func (); below.
37794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37795     <limits.h> exists even on freestanding compilers.  */
37796
37797 #ifdef __STDC__
37798 # include <limits.h>
37799 #else
37800 # include <assert.h>
37801 #endif
37802
37803 #undef $ac_func
37804
37805 /* Override any GCC internal prototype to avoid an error.
37806    Use char because int might match the return type of a GCC
37807    builtin and then its argument prototype would still apply.  */
37808 #ifdef __cplusplus
37809 extern "C"
37810 #endif
37811 char $ac_func ();
37812 /* The GNU C library defines this for functions which it implements
37813     to always fail with ENOSYS.  Some functions are actually named
37814     something starting with __ and the normal name is an alias.  */
37815 #if defined __stub_$ac_func || defined __stub___$ac_func
37816 choke me
37817 #endif
37818
37819 int
37820 main ()
37821 {
37822 return $ac_func ();
37823   ;
37824   return 0;
37825 }
37826 _ACEOF
37827 rm -f conftest.$ac_objext conftest$ac_exeext
37828 if { (ac_try="$ac_link"
37829 case "(($ac_try" in
37830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37831   *) ac_try_echo=$ac_try;;
37832 esac
37833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37834   (eval "$ac_link") 2>conftest.er1
37835   ac_status=$?
37836   grep -v '^ *+' conftest.er1 >conftest.err
37837   rm -f conftest.er1
37838   cat conftest.err >&5
37839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37840   (exit $ac_status); } && {
37841          test -z "$ac_c_werror_flag" ||
37842          test ! -s conftest.err
37843        } && test -s conftest$ac_exeext &&
37844        $as_test_x conftest$ac_exeext; then
37845   eval "$as_ac_var=yes"
37846 else
37847   echo "$as_me: failed program was:" >&5
37848 sed 's/^/| /' conftest.$ac_ext >&5
37849
37850         eval "$as_ac_var=no"
37851 fi
37852
37853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37854       conftest$ac_exeext conftest.$ac_ext
37855 fi
37856 ac_res=`eval echo '${'$as_ac_var'}'`
37857                { echo "$as_me:$LINENO: result: $ac_res" >&5
37858 echo "${ECHO_T}$ac_res" >&6; }
37859 if test `eval echo '${'$as_ac_var'}'` = yes; then
37860   cat >>confdefs.h <<_ACEOF
37861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37862 _ACEOF
37863
37864 fi
37865 done
37866
37867
37868 for ac_func in fdatasync
37869 do
37870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37874   echo $ECHO_N "(cached) $ECHO_C" >&6
37875 else
37876   cat >conftest.$ac_ext <<_ACEOF
37877 /* confdefs.h.  */
37878 _ACEOF
37879 cat confdefs.h >>conftest.$ac_ext
37880 cat >>conftest.$ac_ext <<_ACEOF
37881 /* end confdefs.h.  */
37882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37884 #define $ac_func innocuous_$ac_func
37885
37886 /* System header to define __stub macros and hopefully few prototypes,
37887     which can conflict with char $ac_func (); below.
37888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37889     <limits.h> exists even on freestanding compilers.  */
37890
37891 #ifdef __STDC__
37892 # include <limits.h>
37893 #else
37894 # include <assert.h>
37895 #endif
37896
37897 #undef $ac_func
37898
37899 /* Override any GCC internal prototype to avoid an error.
37900    Use char because int might match the return type of a GCC
37901    builtin and then its argument prototype would still apply.  */
37902 #ifdef __cplusplus
37903 extern "C"
37904 #endif
37905 char $ac_func ();
37906 /* The GNU C library defines this for functions which it implements
37907     to always fail with ENOSYS.  Some functions are actually named
37908     something starting with __ and the normal name is an alias.  */
37909 #if defined __stub_$ac_func || defined __stub___$ac_func
37910 choke me
37911 #endif
37912
37913 int
37914 main ()
37915 {
37916 return $ac_func ();
37917   ;
37918   return 0;
37919 }
37920 _ACEOF
37921 rm -f conftest.$ac_objext conftest$ac_exeext
37922 if { (ac_try="$ac_link"
37923 case "(($ac_try" in
37924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37925   *) ac_try_echo=$ac_try;;
37926 esac
37927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37928   (eval "$ac_link") 2>conftest.er1
37929   ac_status=$?
37930   grep -v '^ *+' conftest.er1 >conftest.err
37931   rm -f conftest.er1
37932   cat conftest.err >&5
37933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37934   (exit $ac_status); } && {
37935          test -z "$ac_c_werror_flag" ||
37936          test ! -s conftest.err
37937        } && test -s conftest$ac_exeext &&
37938        $as_test_x conftest$ac_exeext; then
37939   eval "$as_ac_var=yes"
37940 else
37941   echo "$as_me: failed program was:" >&5
37942 sed 's/^/| /' conftest.$ac_ext >&5
37943
37944         eval "$as_ac_var=no"
37945 fi
37946
37947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37948       conftest$ac_exeext conftest.$ac_ext
37949 fi
37950 ac_res=`eval echo '${'$as_ac_var'}'`
37951                { echo "$as_me:$LINENO: result: $ac_res" >&5
37952 echo "${ECHO_T}$ac_res" >&6; }
37953 if test `eval echo '${'$as_ac_var'}'` = yes; then
37954   cat >>confdefs.h <<_ACEOF
37955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37956 _ACEOF
37957
37958 fi
37959 done
37960
37961
37962
37963 for ac_func in chflags
37964 do
37965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37966 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37969   echo $ECHO_N "(cached) $ECHO_C" >&6
37970 else
37971   cat >conftest.$ac_ext <<_ACEOF
37972 /* confdefs.h.  */
37973 _ACEOF
37974 cat confdefs.h >>conftest.$ac_ext
37975 cat >>conftest.$ac_ext <<_ACEOF
37976 /* end confdefs.h.  */
37977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37979 #define $ac_func innocuous_$ac_func
37980
37981 /* System header to define __stub macros and hopefully few prototypes,
37982     which can conflict with char $ac_func (); below.
37983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37984     <limits.h> exists even on freestanding compilers.  */
37985
37986 #ifdef __STDC__
37987 # include <limits.h>
37988 #else
37989 # include <assert.h>
37990 #endif
37991
37992 #undef $ac_func
37993
37994 /* Override any GCC internal prototype to avoid an error.
37995    Use char because int might match the return type of a GCC
37996    builtin and then its argument prototype would still apply.  */
37997 #ifdef __cplusplus
37998 extern "C"
37999 #endif
38000 char $ac_func ();
38001 /* The GNU C library defines this for functions which it implements
38002     to always fail with ENOSYS.  Some functions are actually named
38003     something starting with __ and the normal name is an alias.  */
38004 #if defined __stub_$ac_func || defined __stub___$ac_func
38005 choke me
38006 #endif
38007
38008 int
38009 main ()
38010 {
38011 return $ac_func ();
38012   ;
38013   return 0;
38014 }
38015 _ACEOF
38016 rm -f conftest.$ac_objext conftest$ac_exeext
38017 if { (ac_try="$ac_link"
38018 case "(($ac_try" in
38019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38020   *) ac_try_echo=$ac_try;;
38021 esac
38022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38023   (eval "$ac_link") 2>conftest.er1
38024   ac_status=$?
38025   grep -v '^ *+' conftest.er1 >conftest.err
38026   rm -f conftest.er1
38027   cat conftest.err >&5
38028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38029   (exit $ac_status); } && {
38030          test -z "$ac_c_werror_flag" ||
38031          test ! -s conftest.err
38032        } && test -s conftest$ac_exeext &&
38033        $as_test_x conftest$ac_exeext; then
38034   eval "$as_ac_var=yes"
38035 else
38036   echo "$as_me: failed program was:" >&5
38037 sed 's/^/| /' conftest.$ac_ext >&5
38038
38039         eval "$as_ac_var=no"
38040 fi
38041
38042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38043       conftest$ac_exeext conftest.$ac_ext
38044 fi
38045 ac_res=`eval echo '${'$as_ac_var'}'`
38046                { echo "$as_me:$LINENO: result: $ac_res" >&5
38047 echo "${ECHO_T}$ac_res" >&6; }
38048 if test `eval echo '${'$as_ac_var'}'` = yes; then
38049   cat >>confdefs.h <<_ACEOF
38050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38051 _ACEOF
38052
38053 fi
38054 done
38055
38056
38057
38058
38059
38060
38061 for ac_func in snprintf vsnprintf gethostid fseeko
38062 do
38063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38067   echo $ECHO_N "(cached) $ECHO_C" >&6
38068 else
38069   cat >conftest.$ac_ext <<_ACEOF
38070 /* confdefs.h.  */
38071 _ACEOF
38072 cat confdefs.h >>conftest.$ac_ext
38073 cat >>conftest.$ac_ext <<_ACEOF
38074 /* end confdefs.h.  */
38075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38077 #define $ac_func innocuous_$ac_func
38078
38079 /* System header to define __stub macros and hopefully few prototypes,
38080     which can conflict with char $ac_func (); below.
38081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38082     <limits.h> exists even on freestanding compilers.  */
38083
38084 #ifdef __STDC__
38085 # include <limits.h>
38086 #else
38087 # include <assert.h>
38088 #endif
38089
38090 #undef $ac_func
38091
38092 /* Override any GCC internal prototype to avoid an error.
38093    Use char because int might match the return type of a GCC
38094    builtin and then its argument prototype would still apply.  */
38095 #ifdef __cplusplus
38096 extern "C"
38097 #endif
38098 char $ac_func ();
38099 /* The GNU C library defines this for functions which it implements
38100     to always fail with ENOSYS.  Some functions are actually named
38101     something starting with __ and the normal name is an alias.  */
38102 #if defined __stub_$ac_func || defined __stub___$ac_func
38103 choke me
38104 #endif
38105
38106 int
38107 main ()
38108 {
38109 return $ac_func ();
38110   ;
38111   return 0;
38112 }
38113 _ACEOF
38114 rm -f conftest.$ac_objext conftest$ac_exeext
38115 if { (ac_try="$ac_link"
38116 case "(($ac_try" in
38117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38118   *) ac_try_echo=$ac_try;;
38119 esac
38120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38121   (eval "$ac_link") 2>conftest.er1
38122   ac_status=$?
38123   grep -v '^ *+' conftest.er1 >conftest.err
38124   rm -f conftest.er1
38125   cat conftest.err >&5
38126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38127   (exit $ac_status); } && {
38128          test -z "$ac_c_werror_flag" ||
38129          test ! -s conftest.err
38130        } && test -s conftest$ac_exeext &&
38131        $as_test_x conftest$ac_exeext; then
38132   eval "$as_ac_var=yes"
38133 else
38134   echo "$as_me: failed program was:" >&5
38135 sed 's/^/| /' conftest.$ac_ext >&5
38136
38137         eval "$as_ac_var=no"
38138 fi
38139
38140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38141       conftest$ac_exeext conftest.$ac_ext
38142 fi
38143 ac_res=`eval echo '${'$as_ac_var'}'`
38144                { echo "$as_me:$LINENO: result: $ac_res" >&5
38145 echo "${ECHO_T}$ac_res" >&6; }
38146 if test `eval echo '${'$as_ac_var'}'` = yes; then
38147   cat >>confdefs.h <<_ACEOF
38148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38149 _ACEOF
38150
38151 fi
38152 done
38153
38154
38155 { echo "$as_me:$LINENO: checking for va_copy" >&5
38156 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38157 if test "${ba_cv_va_copy+set}" = set; then
38158   echo $ECHO_N "(cached) $ECHO_C" >&6
38159 else
38160
38161        cat >conftest.$ac_ext <<_ACEOF
38162 /* confdefs.h.  */
38163 _ACEOF
38164 cat confdefs.h >>conftest.$ac_ext
38165 cat >>conftest.$ac_ext <<_ACEOF
38166 /* end confdefs.h.  */
38167
38168               #include <stdarg.h>
38169               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38170               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38171
38172 int
38173 main ()
38174 {
38175
38176               call_use_va_copy(1,2,3)
38177
38178   ;
38179   return 0;
38180 }
38181 _ACEOF
38182 rm -f conftest.$ac_objext conftest$ac_exeext
38183 if { (ac_try="$ac_link"
38184 case "(($ac_try" in
38185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38186   *) ac_try_echo=$ac_try;;
38187 esac
38188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38189   (eval "$ac_link") 2>conftest.er1
38190   ac_status=$?
38191   grep -v '^ *+' conftest.er1 >conftest.err
38192   rm -f conftest.er1
38193   cat conftest.err >&5
38194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38195   (exit $ac_status); } && {
38196          test -z "$ac_c_werror_flag" ||
38197          test ! -s conftest.err
38198        } && test -s conftest$ac_exeext &&
38199        $as_test_x conftest$ac_exeext; then
38200
38201               ba_cv_va_copy=yes,
38202
38203 else
38204   echo "$as_me: failed program was:" >&5
38205 sed 's/^/| /' conftest.$ac_ext >&5
38206
38207
38208               ba_cv_va_copy=no
38209
38210
38211 fi
38212
38213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38214       conftest$ac_exeext conftest.$ac_ext
38215
38216
38217 fi
38218 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38219 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38220 test $ba_cv_va_copy = yes &&
38221 cat >>confdefs.h <<\_ACEOF
38222 #define HAVE_VA_COPY 1
38223 _ACEOF
38224
38225
38226
38227
38228
38229
38230 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38231 do
38232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38236   echo $ECHO_N "(cached) $ECHO_C" >&6
38237 else
38238   cat >conftest.$ac_ext <<_ACEOF
38239 /* confdefs.h.  */
38240 _ACEOF
38241 cat confdefs.h >>conftest.$ac_ext
38242 cat >>conftest.$ac_ext <<_ACEOF
38243 /* end confdefs.h.  */
38244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38246 #define $ac_func innocuous_$ac_func
38247
38248 /* System header to define __stub macros and hopefully few prototypes,
38249     which can conflict with char $ac_func (); below.
38250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38251     <limits.h> exists even on freestanding compilers.  */
38252
38253 #ifdef __STDC__
38254 # include <limits.h>
38255 #else
38256 # include <assert.h>
38257 #endif
38258
38259 #undef $ac_func
38260
38261 /* Override any GCC internal prototype to avoid an error.
38262    Use char because int might match the return type of a GCC
38263    builtin and then its argument prototype would still apply.  */
38264 #ifdef __cplusplus
38265 extern "C"
38266 #endif
38267 char $ac_func ();
38268 /* The GNU C library defines this for functions which it implements
38269     to always fail with ENOSYS.  Some functions are actually named
38270     something starting with __ and the normal name is an alias.  */
38271 #if defined __stub_$ac_func || defined __stub___$ac_func
38272 choke me
38273 #endif
38274
38275 int
38276 main ()
38277 {
38278 return $ac_func ();
38279   ;
38280   return 0;
38281 }
38282 _ACEOF
38283 rm -f conftest.$ac_objext conftest$ac_exeext
38284 if { (ac_try="$ac_link"
38285 case "(($ac_try" in
38286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38287   *) ac_try_echo=$ac_try;;
38288 esac
38289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38290   (eval "$ac_link") 2>conftest.er1
38291   ac_status=$?
38292   grep -v '^ *+' conftest.er1 >conftest.err
38293   rm -f conftest.er1
38294   cat conftest.err >&5
38295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296   (exit $ac_status); } && {
38297          test -z "$ac_c_werror_flag" ||
38298          test ! -s conftest.err
38299        } && test -s conftest$ac_exeext &&
38300        $as_test_x conftest$ac_exeext; then
38301   eval "$as_ac_var=yes"
38302 else
38303   echo "$as_me: failed program was:" >&5
38304 sed 's/^/| /' conftest.$ac_ext >&5
38305
38306         eval "$as_ac_var=no"
38307 fi
38308
38309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38310       conftest$ac_exeext conftest.$ac_ext
38311 fi
38312 ac_res=`eval echo '${'$as_ac_var'}'`
38313                { echo "$as_me:$LINENO: result: $ac_res" >&5
38314 echo "${ECHO_T}$ac_res" >&6; }
38315 if test `eval echo '${'$as_ac_var'}'` = yes; then
38316   cat >>confdefs.h <<_ACEOF
38317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38318 _ACEOF
38319
38320 fi
38321 done
38322
38323
38324 # If resolver functions are not in libc check for -lnsl or -lresolv.
38325 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38326 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38327 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38328   echo $ECHO_N "(cached) $ECHO_C" >&6
38329 else
38330   cat >conftest.$ac_ext <<_ACEOF
38331 /* confdefs.h.  */
38332 _ACEOF
38333 cat confdefs.h >>conftest.$ac_ext
38334 cat >>conftest.$ac_ext <<_ACEOF
38335 /* end confdefs.h.  */
38336 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38338 #define gethostbyname_r innocuous_gethostbyname_r
38339
38340 /* System header to define __stub macros and hopefully few prototypes,
38341     which can conflict with char gethostbyname_r (); below.
38342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38343     <limits.h> exists even on freestanding compilers.  */
38344
38345 #ifdef __STDC__
38346 # include <limits.h>
38347 #else
38348 # include <assert.h>
38349 #endif
38350
38351 #undef gethostbyname_r
38352
38353 /* Override any GCC internal prototype to avoid an error.
38354    Use char because int might match the return type of a GCC
38355    builtin and then its argument prototype would still apply.  */
38356 #ifdef __cplusplus
38357 extern "C"
38358 #endif
38359 char gethostbyname_r ();
38360 /* The GNU C library defines this for functions which it implements
38361     to always fail with ENOSYS.  Some functions are actually named
38362     something starting with __ and the normal name is an alias.  */
38363 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38364 choke me
38365 #endif
38366
38367 int
38368 main ()
38369 {
38370 return gethostbyname_r ();
38371   ;
38372   return 0;
38373 }
38374 _ACEOF
38375 rm -f conftest.$ac_objext conftest$ac_exeext
38376 if { (ac_try="$ac_link"
38377 case "(($ac_try" in
38378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38379   *) ac_try_echo=$ac_try;;
38380 esac
38381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38382   (eval "$ac_link") 2>conftest.er1
38383   ac_status=$?
38384   grep -v '^ *+' conftest.er1 >conftest.err
38385   rm -f conftest.er1
38386   cat conftest.err >&5
38387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388   (exit $ac_status); } && {
38389          test -z "$ac_c_werror_flag" ||
38390          test ! -s conftest.err
38391        } && test -s conftest$ac_exeext &&
38392        $as_test_x conftest$ac_exeext; then
38393   ac_cv_func_gethostbyname_r=yes
38394 else
38395   echo "$as_me: failed program was:" >&5
38396 sed 's/^/| /' conftest.$ac_ext >&5
38397
38398         ac_cv_func_gethostbyname_r=no
38399 fi
38400
38401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38402       conftest$ac_exeext conftest.$ac_ext
38403 fi
38404 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38405 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38406 if test $ac_cv_func_gethostbyname_r = yes; then
38407   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38408 echo "${ECHO_T}using libc's resolver" >&6; }
38409 else
38410
38411 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38412 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38413 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38414   echo $ECHO_N "(cached) $ECHO_C" >&6
38415 else
38416   ac_check_lib_save_LIBS=$LIBS
38417 LIBS="-lnsl  $LIBS"
38418 cat >conftest.$ac_ext <<_ACEOF
38419 /* confdefs.h.  */
38420 _ACEOF
38421 cat confdefs.h >>conftest.$ac_ext
38422 cat >>conftest.$ac_ext <<_ACEOF
38423 /* end confdefs.h.  */
38424
38425 /* Override any GCC internal prototype to avoid an error.
38426    Use char because int might match the return type of a GCC
38427    builtin and then its argument prototype would still apply.  */
38428 #ifdef __cplusplus
38429 extern "C"
38430 #endif
38431 char gethostbyname_r ();
38432 int
38433 main ()
38434 {
38435 return gethostbyname_r ();
38436   ;
38437   return 0;
38438 }
38439 _ACEOF
38440 rm -f conftest.$ac_objext conftest$ac_exeext
38441 if { (ac_try="$ac_link"
38442 case "(($ac_try" in
38443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38444   *) ac_try_echo=$ac_try;;
38445 esac
38446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38447   (eval "$ac_link") 2>conftest.er1
38448   ac_status=$?
38449   grep -v '^ *+' conftest.er1 >conftest.err
38450   rm -f conftest.er1
38451   cat conftest.err >&5
38452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453   (exit $ac_status); } && {
38454          test -z "$ac_c_werror_flag" ||
38455          test ! -s conftest.err
38456        } && test -s conftest$ac_exeext &&
38457        $as_test_x conftest$ac_exeext; then
38458   ac_cv_lib_nsl_gethostbyname_r=yes
38459 else
38460   echo "$as_me: failed program was:" >&5
38461 sed 's/^/| /' conftest.$ac_ext >&5
38462
38463         ac_cv_lib_nsl_gethostbyname_r=no
38464 fi
38465
38466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38467       conftest$ac_exeext conftest.$ac_ext
38468 LIBS=$ac_check_lib_save_LIBS
38469 fi
38470 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38471 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38472 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38473   cat >>confdefs.h <<_ACEOF
38474 #define HAVE_LIBNSL 1
38475 _ACEOF
38476
38477   LIBS="-lnsl $LIBS"
38478
38479 fi
38480
38481
38482 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38483 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38484 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38485   echo $ECHO_N "(cached) $ECHO_C" >&6
38486 else
38487   ac_check_lib_save_LIBS=$LIBS
38488 LIBS="-lresolv  $LIBS"
38489 cat >conftest.$ac_ext <<_ACEOF
38490 /* confdefs.h.  */
38491 _ACEOF
38492 cat confdefs.h >>conftest.$ac_ext
38493 cat >>conftest.$ac_ext <<_ACEOF
38494 /* end confdefs.h.  */
38495
38496 /* Override any GCC internal prototype to avoid an error.
38497    Use char because int might match the return type of a GCC
38498    builtin and then its argument prototype would still apply.  */
38499 #ifdef __cplusplus
38500 extern "C"
38501 #endif
38502 char gethostbyname_r ();
38503 int
38504 main ()
38505 {
38506 return gethostbyname_r ();
38507   ;
38508   return 0;
38509 }
38510 _ACEOF
38511 rm -f conftest.$ac_objext conftest$ac_exeext
38512 if { (ac_try="$ac_link"
38513 case "(($ac_try" in
38514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38515   *) ac_try_echo=$ac_try;;
38516 esac
38517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38518   (eval "$ac_link") 2>conftest.er1
38519   ac_status=$?
38520   grep -v '^ *+' conftest.er1 >conftest.err
38521   rm -f conftest.er1
38522   cat conftest.err >&5
38523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38524   (exit $ac_status); } && {
38525          test -z "$ac_c_werror_flag" ||
38526          test ! -s conftest.err
38527        } && test -s conftest$ac_exeext &&
38528        $as_test_x conftest$ac_exeext; then
38529   ac_cv_lib_resolv_gethostbyname_r=yes
38530 else
38531   echo "$as_me: failed program was:" >&5
38532 sed 's/^/| /' conftest.$ac_ext >&5
38533
38534         ac_cv_lib_resolv_gethostbyname_r=no
38535 fi
38536
38537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38538       conftest$ac_exeext conftest.$ac_ext
38539 LIBS=$ac_check_lib_save_LIBS
38540 fi
38541 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38542 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38543 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38544   cat >>confdefs.h <<_ACEOF
38545 #define HAVE_LIBRESOLV 1
38546 _ACEOF
38547
38548   LIBS="-lresolv $LIBS"
38549
38550 fi
38551
38552 fi
38553
38554
38555
38556 for ac_func in inet_pton
38557 do
38558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38562   echo $ECHO_N "(cached) $ECHO_C" >&6
38563 else
38564   cat >conftest.$ac_ext <<_ACEOF
38565 /* confdefs.h.  */
38566 _ACEOF
38567 cat confdefs.h >>conftest.$ac_ext
38568 cat >>conftest.$ac_ext <<_ACEOF
38569 /* end confdefs.h.  */
38570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38572 #define $ac_func innocuous_$ac_func
38573
38574 /* System header to define __stub macros and hopefully few prototypes,
38575     which can conflict with char $ac_func (); below.
38576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38577     <limits.h> exists even on freestanding compilers.  */
38578
38579 #ifdef __STDC__
38580 # include <limits.h>
38581 #else
38582 # include <assert.h>
38583 #endif
38584
38585 #undef $ac_func
38586
38587 /* Override any GCC internal prototype to avoid an error.
38588    Use char because int might match the return type of a GCC
38589    builtin and then its argument prototype would still apply.  */
38590 #ifdef __cplusplus
38591 extern "C"
38592 #endif
38593 char $ac_func ();
38594 /* The GNU C library defines this for functions which it implements
38595     to always fail with ENOSYS.  Some functions are actually named
38596     something starting with __ and the normal name is an alias.  */
38597 #if defined __stub_$ac_func || defined __stub___$ac_func
38598 choke me
38599 #endif
38600
38601 int
38602 main ()
38603 {
38604 return $ac_func ();
38605   ;
38606   return 0;
38607 }
38608 _ACEOF
38609 rm -f conftest.$ac_objext conftest$ac_exeext
38610 if { (ac_try="$ac_link"
38611 case "(($ac_try" in
38612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38613   *) ac_try_echo=$ac_try;;
38614 esac
38615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38616   (eval "$ac_link") 2>conftest.er1
38617   ac_status=$?
38618   grep -v '^ *+' conftest.er1 >conftest.err
38619   rm -f conftest.er1
38620   cat conftest.err >&5
38621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622   (exit $ac_status); } && {
38623          test -z "$ac_c_werror_flag" ||
38624          test ! -s conftest.err
38625        } && test -s conftest$ac_exeext &&
38626        $as_test_x conftest$ac_exeext; then
38627   eval "$as_ac_var=yes"
38628 else
38629   echo "$as_me: failed program was:" >&5
38630 sed 's/^/| /' conftest.$ac_ext >&5
38631
38632         eval "$as_ac_var=no"
38633 fi
38634
38635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38636       conftest$ac_exeext conftest.$ac_ext
38637 fi
38638 ac_res=`eval echo '${'$as_ac_var'}'`
38639                { echo "$as_me:$LINENO: result: $ac_res" >&5
38640 echo "${ECHO_T}$ac_res" >&6; }
38641 if test `eval echo '${'$as_ac_var'}'` = yes; then
38642   cat >>confdefs.h <<_ACEOF
38643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38644 _ACEOF
38645  cat >>confdefs.h <<\_ACEOF
38646 #define HAVE_INET_PTON 1
38647 _ACEOF
38648
38649 fi
38650 done
38651
38652
38653 for ac_func in inet_ntop
38654 do
38655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38659   echo $ECHO_N "(cached) $ECHO_C" >&6
38660 else
38661   cat >conftest.$ac_ext <<_ACEOF
38662 /* confdefs.h.  */
38663 _ACEOF
38664 cat confdefs.h >>conftest.$ac_ext
38665 cat >>conftest.$ac_ext <<_ACEOF
38666 /* end confdefs.h.  */
38667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38669 #define $ac_func innocuous_$ac_func
38670
38671 /* System header to define __stub macros and hopefully few prototypes,
38672     which can conflict with char $ac_func (); below.
38673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38674     <limits.h> exists even on freestanding compilers.  */
38675
38676 #ifdef __STDC__
38677 # include <limits.h>
38678 #else
38679 # include <assert.h>
38680 #endif
38681
38682 #undef $ac_func
38683
38684 /* Override any GCC internal prototype to avoid an error.
38685    Use char because int might match the return type of a GCC
38686    builtin and then its argument prototype would still apply.  */
38687 #ifdef __cplusplus
38688 extern "C"
38689 #endif
38690 char $ac_func ();
38691 /* The GNU C library defines this for functions which it implements
38692     to always fail with ENOSYS.  Some functions are actually named
38693     something starting with __ and the normal name is an alias.  */
38694 #if defined __stub_$ac_func || defined __stub___$ac_func
38695 choke me
38696 #endif
38697
38698 int
38699 main ()
38700 {
38701 return $ac_func ();
38702   ;
38703   return 0;
38704 }
38705 _ACEOF
38706 rm -f conftest.$ac_objext conftest$ac_exeext
38707 if { (ac_try="$ac_link"
38708 case "(($ac_try" in
38709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38710   *) ac_try_echo=$ac_try;;
38711 esac
38712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38713   (eval "$ac_link") 2>conftest.er1
38714   ac_status=$?
38715   grep -v '^ *+' conftest.er1 >conftest.err
38716   rm -f conftest.er1
38717   cat conftest.err >&5
38718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38719   (exit $ac_status); } && {
38720          test -z "$ac_c_werror_flag" ||
38721          test ! -s conftest.err
38722        } && test -s conftest$ac_exeext &&
38723        $as_test_x conftest$ac_exeext; then
38724   eval "$as_ac_var=yes"
38725 else
38726   echo "$as_me: failed program was:" >&5
38727 sed 's/^/| /' conftest.$ac_ext >&5
38728
38729         eval "$as_ac_var=no"
38730 fi
38731
38732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38733       conftest$ac_exeext conftest.$ac_ext
38734 fi
38735 ac_res=`eval echo '${'$as_ac_var'}'`
38736                { echo "$as_me:$LINENO: result: $ac_res" >&5
38737 echo "${ECHO_T}$ac_res" >&6; }
38738 if test `eval echo '${'$as_ac_var'}'` = yes; then
38739   cat >>confdefs.h <<_ACEOF
38740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38741 _ACEOF
38742  cat >>confdefs.h <<\_ACEOF
38743 #define HAVE_INET_NTOP 1
38744 _ACEOF
38745
38746 fi
38747 done
38748
38749
38750 for ac_func in gethostbyname2
38751 do
38752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38756   echo $ECHO_N "(cached) $ECHO_C" >&6
38757 else
38758   cat >conftest.$ac_ext <<_ACEOF
38759 /* confdefs.h.  */
38760 _ACEOF
38761 cat confdefs.h >>conftest.$ac_ext
38762 cat >>conftest.$ac_ext <<_ACEOF
38763 /* end confdefs.h.  */
38764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38766 #define $ac_func innocuous_$ac_func
38767
38768 /* System header to define __stub macros and hopefully few prototypes,
38769     which can conflict with char $ac_func (); below.
38770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38771     <limits.h> exists even on freestanding compilers.  */
38772
38773 #ifdef __STDC__
38774 # include <limits.h>
38775 #else
38776 # include <assert.h>
38777 #endif
38778
38779 #undef $ac_func
38780
38781 /* Override any GCC internal prototype to avoid an error.
38782    Use char because int might match the return type of a GCC
38783    builtin and then its argument prototype would still apply.  */
38784 #ifdef __cplusplus
38785 extern "C"
38786 #endif
38787 char $ac_func ();
38788 /* The GNU C library defines this for functions which it implements
38789     to always fail with ENOSYS.  Some functions are actually named
38790     something starting with __ and the normal name is an alias.  */
38791 #if defined __stub_$ac_func || defined __stub___$ac_func
38792 choke me
38793 #endif
38794
38795 int
38796 main ()
38797 {
38798 return $ac_func ();
38799   ;
38800   return 0;
38801 }
38802 _ACEOF
38803 rm -f conftest.$ac_objext conftest$ac_exeext
38804 if { (ac_try="$ac_link"
38805 case "(($ac_try" in
38806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38807   *) ac_try_echo=$ac_try;;
38808 esac
38809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38810   (eval "$ac_link") 2>conftest.er1
38811   ac_status=$?
38812   grep -v '^ *+' conftest.er1 >conftest.err
38813   rm -f conftest.er1
38814   cat conftest.err >&5
38815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38816   (exit $ac_status); } && {
38817          test -z "$ac_c_werror_flag" ||
38818          test ! -s conftest.err
38819        } && test -s conftest$ac_exeext &&
38820        $as_test_x conftest$ac_exeext; then
38821   eval "$as_ac_var=yes"
38822 else
38823   echo "$as_me: failed program was:" >&5
38824 sed 's/^/| /' conftest.$ac_ext >&5
38825
38826         eval "$as_ac_var=no"
38827 fi
38828
38829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38830       conftest$ac_exeext conftest.$ac_ext
38831 fi
38832 ac_res=`eval echo '${'$as_ac_var'}'`
38833                { echo "$as_me:$LINENO: result: $ac_res" >&5
38834 echo "${ECHO_T}$ac_res" >&6; }
38835 if test `eval echo '${'$as_ac_var'}'` = yes; then
38836   cat >>confdefs.h <<_ACEOF
38837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38838 _ACEOF
38839  cat >>confdefs.h <<\_ACEOF
38840 #define HAVE_GETHOSTBYNAME2 1
38841 _ACEOF
38842
38843 fi
38844 done
38845
38846
38847 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38848 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38849 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38850   echo $ECHO_N "(cached) $ECHO_C" >&6
38851 else
38852
38853        cat >conftest.$ac_ext <<_ACEOF
38854 /* confdefs.h.  */
38855 _ACEOF
38856 cat confdefs.h >>conftest.$ac_ext
38857 cat >>conftest.$ac_ext <<_ACEOF
38858 /* end confdefs.h.  */
38859
38860               #include <sys/socket.h>
38861
38862 int
38863 main ()
38864 {
38865
38866               struct sockaddr s; s.sa_len;
38867
38868   ;
38869   return 0;
38870 }
38871 _ACEOF
38872 rm -f conftest.$ac_objext
38873 if { (ac_try="$ac_compile"
38874 case "(($ac_try" in
38875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38876   *) ac_try_echo=$ac_try;;
38877 esac
38878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38879   (eval "$ac_compile") 2>conftest.er1
38880   ac_status=$?
38881   grep -v '^ *+' conftest.er1 >conftest.err
38882   rm -f conftest.er1
38883   cat conftest.err >&5
38884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38885   (exit $ac_status); } && {
38886          test -z "$ac_c_werror_flag" ||
38887          test ! -s conftest.err
38888        } && test -s conftest.$ac_objext; then
38889
38890              ac_cv_struct_sockaddr_sa_len=yes
38891
38892 else
38893   echo "$as_me: failed program was:" >&5
38894 sed 's/^/| /' conftest.$ac_ext >&5
38895
38896         ac_cv_struct_sockaddr_sa_len=no
38897
38898
38899 fi
38900
38901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38902
38903
38904 fi
38905 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38906 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38907
38908 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38909
38910 cat >>confdefs.h <<\_ACEOF
38911 #define HAVE_SA_LEN 1
38912 _ACEOF
38913
38914 fi
38915
38916
38917 for ac_func in strftime
38918 do
38919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38923   echo $ECHO_N "(cached) $ECHO_C" >&6
38924 else
38925   cat >conftest.$ac_ext <<_ACEOF
38926 /* confdefs.h.  */
38927 _ACEOF
38928 cat confdefs.h >>conftest.$ac_ext
38929 cat >>conftest.$ac_ext <<_ACEOF
38930 /* end confdefs.h.  */
38931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38933 #define $ac_func innocuous_$ac_func
38934
38935 /* System header to define __stub macros and hopefully few prototypes,
38936     which can conflict with char $ac_func (); below.
38937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38938     <limits.h> exists even on freestanding compilers.  */
38939
38940 #ifdef __STDC__
38941 # include <limits.h>
38942 #else
38943 # include <assert.h>
38944 #endif
38945
38946 #undef $ac_func
38947
38948 /* Override any GCC internal prototype to avoid an error.
38949    Use char because int might match the return type of a GCC
38950    builtin and then its argument prototype would still apply.  */
38951 #ifdef __cplusplus
38952 extern "C"
38953 #endif
38954 char $ac_func ();
38955 /* The GNU C library defines this for functions which it implements
38956     to always fail with ENOSYS.  Some functions are actually named
38957     something starting with __ and the normal name is an alias.  */
38958 #if defined __stub_$ac_func || defined __stub___$ac_func
38959 choke me
38960 #endif
38961
38962 int
38963 main ()
38964 {
38965 return $ac_func ();
38966   ;
38967   return 0;
38968 }
38969 _ACEOF
38970 rm -f conftest.$ac_objext conftest$ac_exeext
38971 if { (ac_try="$ac_link"
38972 case "(($ac_try" in
38973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38974   *) ac_try_echo=$ac_try;;
38975 esac
38976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38977   (eval "$ac_link") 2>conftest.er1
38978   ac_status=$?
38979   grep -v '^ *+' conftest.er1 >conftest.err
38980   rm -f conftest.er1
38981   cat conftest.err >&5
38982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38983   (exit $ac_status); } && {
38984          test -z "$ac_c_werror_flag" ||
38985          test ! -s conftest.err
38986        } && test -s conftest$ac_exeext &&
38987        $as_test_x conftest$ac_exeext; then
38988   eval "$as_ac_var=yes"
38989 else
38990   echo "$as_me: failed program was:" >&5
38991 sed 's/^/| /' conftest.$ac_ext >&5
38992
38993         eval "$as_ac_var=no"
38994 fi
38995
38996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38997       conftest$ac_exeext conftest.$ac_ext
38998 fi
38999 ac_res=`eval echo '${'$as_ac_var'}'`
39000                { echo "$as_me:$LINENO: result: $ac_res" >&5
39001 echo "${ECHO_T}$ac_res" >&6; }
39002 if test `eval echo '${'$as_ac_var'}'` = yes; then
39003   cat >>confdefs.h <<_ACEOF
39004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39005 _ACEOF
39006
39007 else
39008   # strftime is in -lintl on SCO UNIX.
39009 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39010 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39011 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39012   echo $ECHO_N "(cached) $ECHO_C" >&6
39013 else
39014   ac_check_lib_save_LIBS=$LIBS
39015 LIBS="-lintl  $LIBS"
39016 cat >conftest.$ac_ext <<_ACEOF
39017 /* confdefs.h.  */
39018 _ACEOF
39019 cat confdefs.h >>conftest.$ac_ext
39020 cat >>conftest.$ac_ext <<_ACEOF
39021 /* end confdefs.h.  */
39022
39023 /* Override any GCC internal prototype to avoid an error.
39024    Use char because int might match the return type of a GCC
39025    builtin and then its argument prototype would still apply.  */
39026 #ifdef __cplusplus
39027 extern "C"
39028 #endif
39029 char strftime ();
39030 int
39031 main ()
39032 {
39033 return strftime ();
39034   ;
39035   return 0;
39036 }
39037 _ACEOF
39038 rm -f conftest.$ac_objext conftest$ac_exeext
39039 if { (ac_try="$ac_link"
39040 case "(($ac_try" in
39041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39042   *) ac_try_echo=$ac_try;;
39043 esac
39044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39045   (eval "$ac_link") 2>conftest.er1
39046   ac_status=$?
39047   grep -v '^ *+' conftest.er1 >conftest.err
39048   rm -f conftest.er1
39049   cat conftest.err >&5
39050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39051   (exit $ac_status); } && {
39052          test -z "$ac_c_werror_flag" ||
39053          test ! -s conftest.err
39054        } && test -s conftest$ac_exeext &&
39055        $as_test_x conftest$ac_exeext; then
39056   ac_cv_lib_intl_strftime=yes
39057 else
39058   echo "$as_me: failed program was:" >&5
39059 sed 's/^/| /' conftest.$ac_ext >&5
39060
39061         ac_cv_lib_intl_strftime=no
39062 fi
39063
39064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39065       conftest$ac_exeext conftest.$ac_ext
39066 LIBS=$ac_check_lib_save_LIBS
39067 fi
39068 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39069 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39070 if test $ac_cv_lib_intl_strftime = yes; then
39071   cat >>confdefs.h <<\_ACEOF
39072 #define HAVE_STRFTIME 1
39073 _ACEOF
39074
39075 LIBS="-lintl $LIBS"
39076 fi
39077
39078 fi
39079 done
39080
39081
39082 for ac_func in vprintf
39083 do
39084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39088   echo $ECHO_N "(cached) $ECHO_C" >&6
39089 else
39090   cat >conftest.$ac_ext <<_ACEOF
39091 /* confdefs.h.  */
39092 _ACEOF
39093 cat confdefs.h >>conftest.$ac_ext
39094 cat >>conftest.$ac_ext <<_ACEOF
39095 /* end confdefs.h.  */
39096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39098 #define $ac_func innocuous_$ac_func
39099
39100 /* System header to define __stub macros and hopefully few prototypes,
39101     which can conflict with char $ac_func (); below.
39102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39103     <limits.h> exists even on freestanding compilers.  */
39104
39105 #ifdef __STDC__
39106 # include <limits.h>
39107 #else
39108 # include <assert.h>
39109 #endif
39110
39111 #undef $ac_func
39112
39113 /* Override any GCC internal prototype to avoid an error.
39114    Use char because int might match the return type of a GCC
39115    builtin and then its argument prototype would still apply.  */
39116 #ifdef __cplusplus
39117 extern "C"
39118 #endif
39119 char $ac_func ();
39120 /* The GNU C library defines this for functions which it implements
39121     to always fail with ENOSYS.  Some functions are actually named
39122     something starting with __ and the normal name is an alias.  */
39123 #if defined __stub_$ac_func || defined __stub___$ac_func
39124 choke me
39125 #endif
39126
39127 int
39128 main ()
39129 {
39130 return $ac_func ();
39131   ;
39132   return 0;
39133 }
39134 _ACEOF
39135 rm -f conftest.$ac_objext conftest$ac_exeext
39136 if { (ac_try="$ac_link"
39137 case "(($ac_try" in
39138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39139   *) ac_try_echo=$ac_try;;
39140 esac
39141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39142   (eval "$ac_link") 2>conftest.er1
39143   ac_status=$?
39144   grep -v '^ *+' conftest.er1 >conftest.err
39145   rm -f conftest.er1
39146   cat conftest.err >&5
39147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39148   (exit $ac_status); } && {
39149          test -z "$ac_c_werror_flag" ||
39150          test ! -s conftest.err
39151        } && test -s conftest$ac_exeext &&
39152        $as_test_x conftest$ac_exeext; then
39153   eval "$as_ac_var=yes"
39154 else
39155   echo "$as_me: failed program was:" >&5
39156 sed 's/^/| /' conftest.$ac_ext >&5
39157
39158         eval "$as_ac_var=no"
39159 fi
39160
39161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39162       conftest$ac_exeext conftest.$ac_ext
39163 fi
39164 ac_res=`eval echo '${'$as_ac_var'}'`
39165                { echo "$as_me:$LINENO: result: $ac_res" >&5
39166 echo "${ECHO_T}$ac_res" >&6; }
39167 if test `eval echo '${'$as_ac_var'}'` = yes; then
39168   cat >>confdefs.h <<_ACEOF
39169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39170 _ACEOF
39171
39172 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39173 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39174 if test "${ac_cv_func__doprnt+set}" = set; then
39175   echo $ECHO_N "(cached) $ECHO_C" >&6
39176 else
39177   cat >conftest.$ac_ext <<_ACEOF
39178 /* confdefs.h.  */
39179 _ACEOF
39180 cat confdefs.h >>conftest.$ac_ext
39181 cat >>conftest.$ac_ext <<_ACEOF
39182 /* end confdefs.h.  */
39183 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39185 #define _doprnt innocuous__doprnt
39186
39187 /* System header to define __stub macros and hopefully few prototypes,
39188     which can conflict with char _doprnt (); below.
39189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39190     <limits.h> exists even on freestanding compilers.  */
39191
39192 #ifdef __STDC__
39193 # include <limits.h>
39194 #else
39195 # include <assert.h>
39196 #endif
39197
39198 #undef _doprnt
39199
39200 /* Override any GCC internal prototype to avoid an error.
39201    Use char because int might match the return type of a GCC
39202    builtin and then its argument prototype would still apply.  */
39203 #ifdef __cplusplus
39204 extern "C"
39205 #endif
39206 char _doprnt ();
39207 /* The GNU C library defines this for functions which it implements
39208     to always fail with ENOSYS.  Some functions are actually named
39209     something starting with __ and the normal name is an alias.  */
39210 #if defined __stub__doprnt || defined __stub____doprnt
39211 choke me
39212 #endif
39213
39214 int
39215 main ()
39216 {
39217 return _doprnt ();
39218   ;
39219   return 0;
39220 }
39221 _ACEOF
39222 rm -f conftest.$ac_objext conftest$ac_exeext
39223 if { (ac_try="$ac_link"
39224 case "(($ac_try" in
39225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39226   *) ac_try_echo=$ac_try;;
39227 esac
39228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39229   (eval "$ac_link") 2>conftest.er1
39230   ac_status=$?
39231   grep -v '^ *+' conftest.er1 >conftest.err
39232   rm -f conftest.er1
39233   cat conftest.err >&5
39234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39235   (exit $ac_status); } && {
39236          test -z "$ac_c_werror_flag" ||
39237          test ! -s conftest.err
39238        } && test -s conftest$ac_exeext &&
39239        $as_test_x conftest$ac_exeext; then
39240   ac_cv_func__doprnt=yes
39241 else
39242   echo "$as_me: failed program was:" >&5
39243 sed 's/^/| /' conftest.$ac_ext >&5
39244
39245         ac_cv_func__doprnt=no
39246 fi
39247
39248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39249       conftest$ac_exeext conftest.$ac_ext
39250 fi
39251 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39252 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39253 if test $ac_cv_func__doprnt = yes; then
39254
39255 cat >>confdefs.h <<\_ACEOF
39256 #define HAVE_DOPRNT 1
39257 _ACEOF
39258
39259 fi
39260
39261 fi
39262 done
39263
39264
39265 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39266 # for constant arguments.  Useless!
39267 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39268 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39269 if test "${ac_cv_working_alloca_h+set}" = set; then
39270   echo $ECHO_N "(cached) $ECHO_C" >&6
39271 else
39272   cat >conftest.$ac_ext <<_ACEOF
39273 /* confdefs.h.  */
39274 _ACEOF
39275 cat confdefs.h >>conftest.$ac_ext
39276 cat >>conftest.$ac_ext <<_ACEOF
39277 /* end confdefs.h.  */
39278 #include <alloca.h>
39279 int
39280 main ()
39281 {
39282 char *p = (char *) alloca (2 * sizeof (int));
39283                           if (p) return 0;
39284   ;
39285   return 0;
39286 }
39287 _ACEOF
39288 rm -f conftest.$ac_objext conftest$ac_exeext
39289 if { (ac_try="$ac_link"
39290 case "(($ac_try" in
39291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39292   *) ac_try_echo=$ac_try;;
39293 esac
39294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39295   (eval "$ac_link") 2>conftest.er1
39296   ac_status=$?
39297   grep -v '^ *+' conftest.er1 >conftest.err
39298   rm -f conftest.er1
39299   cat conftest.err >&5
39300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39301   (exit $ac_status); } && {
39302          test -z "$ac_c_werror_flag" ||
39303          test ! -s conftest.err
39304        } && test -s conftest$ac_exeext &&
39305        $as_test_x conftest$ac_exeext; then
39306   ac_cv_working_alloca_h=yes
39307 else
39308   echo "$as_me: failed program was:" >&5
39309 sed 's/^/| /' conftest.$ac_ext >&5
39310
39311         ac_cv_working_alloca_h=no
39312 fi
39313
39314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39315       conftest$ac_exeext conftest.$ac_ext
39316 fi
39317 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39318 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39319 if test $ac_cv_working_alloca_h = yes; then
39320
39321 cat >>confdefs.h <<\_ACEOF
39322 #define HAVE_ALLOCA_H 1
39323 _ACEOF
39324
39325 fi
39326
39327 { echo "$as_me:$LINENO: checking for alloca" >&5
39328 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39329 if test "${ac_cv_func_alloca_works+set}" = set; then
39330   echo $ECHO_N "(cached) $ECHO_C" >&6
39331 else
39332   cat >conftest.$ac_ext <<_ACEOF
39333 /* confdefs.h.  */
39334 _ACEOF
39335 cat confdefs.h >>conftest.$ac_ext
39336 cat >>conftest.$ac_ext <<_ACEOF
39337 /* end confdefs.h.  */
39338 #ifdef __GNUC__
39339 # define alloca __builtin_alloca
39340 #else
39341 # ifdef _MSC_VER
39342 #  include <malloc.h>
39343 #  define alloca _alloca
39344 # else
39345 #  ifdef HAVE_ALLOCA_H
39346 #   include <alloca.h>
39347 #  else
39348 #   ifdef _AIX
39349  #pragma alloca
39350 #   else
39351 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39352 char *alloca ();
39353 #    endif
39354 #   endif
39355 #  endif
39356 # endif
39357 #endif
39358
39359 int
39360 main ()
39361 {
39362 char *p = (char *) alloca (1);
39363                                     if (p) return 0;
39364   ;
39365   return 0;
39366 }
39367 _ACEOF
39368 rm -f conftest.$ac_objext conftest$ac_exeext
39369 if { (ac_try="$ac_link"
39370 case "(($ac_try" in
39371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39372   *) ac_try_echo=$ac_try;;
39373 esac
39374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39375   (eval "$ac_link") 2>conftest.er1
39376   ac_status=$?
39377   grep -v '^ *+' conftest.er1 >conftest.err
39378   rm -f conftest.er1
39379   cat conftest.err >&5
39380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39381   (exit $ac_status); } && {
39382          test -z "$ac_c_werror_flag" ||
39383          test ! -s conftest.err
39384        } && test -s conftest$ac_exeext &&
39385        $as_test_x conftest$ac_exeext; then
39386   ac_cv_func_alloca_works=yes
39387 else
39388   echo "$as_me: failed program was:" >&5
39389 sed 's/^/| /' conftest.$ac_ext >&5
39390
39391         ac_cv_func_alloca_works=no
39392 fi
39393
39394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39395       conftest$ac_exeext conftest.$ac_ext
39396 fi
39397 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39398 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39399
39400 if test $ac_cv_func_alloca_works = yes; then
39401
39402 cat >>confdefs.h <<\_ACEOF
39403 #define HAVE_ALLOCA 1
39404 _ACEOF
39405
39406 else
39407   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39408 # that cause trouble.  Some versions do not even contain alloca or
39409 # contain a buggy version.  If you still want to use their alloca,
39410 # use ar to extract alloca.o from them instead of compiling alloca.c.
39411
39412 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39413
39414 cat >>confdefs.h <<\_ACEOF
39415 #define C_ALLOCA 1
39416 _ACEOF
39417
39418
39419 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39420 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39421 if test "${ac_cv_os_cray+set}" = set; then
39422   echo $ECHO_N "(cached) $ECHO_C" >&6
39423 else
39424   cat >conftest.$ac_ext <<_ACEOF
39425 /* confdefs.h.  */
39426 _ACEOF
39427 cat confdefs.h >>conftest.$ac_ext
39428 cat >>conftest.$ac_ext <<_ACEOF
39429 /* end confdefs.h.  */
39430 #if defined CRAY && ! defined CRAY2
39431 webecray
39432 #else
39433 wenotbecray
39434 #endif
39435
39436 _ACEOF
39437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39438   $EGREP "webecray" >/dev/null 2>&1; then
39439   ac_cv_os_cray=yes
39440 else
39441   ac_cv_os_cray=no
39442 fi
39443 rm -f conftest*
39444
39445 fi
39446 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39447 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39448 if test $ac_cv_os_cray = yes; then
39449   for ac_func in _getb67 GETB67 getb67; do
39450     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39451 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39454   echo $ECHO_N "(cached) $ECHO_C" >&6
39455 else
39456   cat >conftest.$ac_ext <<_ACEOF
39457 /* confdefs.h.  */
39458 _ACEOF
39459 cat confdefs.h >>conftest.$ac_ext
39460 cat >>conftest.$ac_ext <<_ACEOF
39461 /* end confdefs.h.  */
39462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39464 #define $ac_func innocuous_$ac_func
39465
39466 /* System header to define __stub macros and hopefully few prototypes,
39467     which can conflict with char $ac_func (); below.
39468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39469     <limits.h> exists even on freestanding compilers.  */
39470
39471 #ifdef __STDC__
39472 # include <limits.h>
39473 #else
39474 # include <assert.h>
39475 #endif
39476
39477 #undef $ac_func
39478
39479 /* Override any GCC internal prototype to avoid an error.
39480    Use char because int might match the return type of a GCC
39481    builtin and then its argument prototype would still apply.  */
39482 #ifdef __cplusplus
39483 extern "C"
39484 #endif
39485 char $ac_func ();
39486 /* The GNU C library defines this for functions which it implements
39487     to always fail with ENOSYS.  Some functions are actually named
39488     something starting with __ and the normal name is an alias.  */
39489 #if defined __stub_$ac_func || defined __stub___$ac_func
39490 choke me
39491 #endif
39492
39493 int
39494 main ()
39495 {
39496 return $ac_func ();
39497   ;
39498   return 0;
39499 }
39500 _ACEOF
39501 rm -f conftest.$ac_objext conftest$ac_exeext
39502 if { (ac_try="$ac_link"
39503 case "(($ac_try" in
39504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39505   *) ac_try_echo=$ac_try;;
39506 esac
39507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39508   (eval "$ac_link") 2>conftest.er1
39509   ac_status=$?
39510   grep -v '^ *+' conftest.er1 >conftest.err
39511   rm -f conftest.er1
39512   cat conftest.err >&5
39513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39514   (exit $ac_status); } && {
39515          test -z "$ac_c_werror_flag" ||
39516          test ! -s conftest.err
39517        } && test -s conftest$ac_exeext &&
39518        $as_test_x conftest$ac_exeext; then
39519   eval "$as_ac_var=yes"
39520 else
39521   echo "$as_me: failed program was:" >&5
39522 sed 's/^/| /' conftest.$ac_ext >&5
39523
39524         eval "$as_ac_var=no"
39525 fi
39526
39527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39528       conftest$ac_exeext conftest.$ac_ext
39529 fi
39530 ac_res=`eval echo '${'$as_ac_var'}'`
39531                { echo "$as_me:$LINENO: result: $ac_res" >&5
39532 echo "${ECHO_T}$ac_res" >&6; }
39533 if test `eval echo '${'$as_ac_var'}'` = yes; then
39534
39535 cat >>confdefs.h <<_ACEOF
39536 #define CRAY_STACKSEG_END $ac_func
39537 _ACEOF
39538
39539     break
39540 fi
39541
39542   done
39543 fi
39544
39545 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39546 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39547 if test "${ac_cv_c_stack_direction+set}" = set; then
39548   echo $ECHO_N "(cached) $ECHO_C" >&6
39549 else
39550   if test "$cross_compiling" = yes; then
39551   ac_cv_c_stack_direction=0
39552 else
39553   cat >conftest.$ac_ext <<_ACEOF
39554 /* confdefs.h.  */
39555 _ACEOF
39556 cat confdefs.h >>conftest.$ac_ext
39557 cat >>conftest.$ac_ext <<_ACEOF
39558 /* end confdefs.h.  */
39559 $ac_includes_default
39560 int
39561 find_stack_direction ()
39562 {
39563   static char *addr = 0;
39564   auto char dummy;
39565   if (addr == 0)
39566     {
39567       addr = &dummy;
39568       return find_stack_direction ();
39569     }
39570   else
39571     return (&dummy > addr) ? 1 : -1;
39572 }
39573
39574 int
39575 main ()
39576 {
39577   return find_stack_direction () < 0;
39578 }
39579 _ACEOF
39580 rm -f 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>&5
39588   ac_status=$?
39589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39591   { (case "(($ac_try" in
39592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39593   *) ac_try_echo=$ac_try;;
39594 esac
39595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39596   (eval "$ac_try") 2>&5
39597   ac_status=$?
39598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599   (exit $ac_status); }; }; then
39600   ac_cv_c_stack_direction=1
39601 else
39602   echo "$as_me: program exited with status $ac_status" >&5
39603 echo "$as_me: failed program was:" >&5
39604 sed 's/^/| /' conftest.$ac_ext >&5
39605
39606 ( exit $ac_status )
39607 ac_cv_c_stack_direction=-1
39608 fi
39609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39610 fi
39611
39612
39613 fi
39614 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39615 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39616
39617 cat >>confdefs.h <<_ACEOF
39618 #define STACK_DIRECTION $ac_cv_c_stack_direction
39619 _ACEOF
39620
39621
39622 fi
39623
39624 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39625 # -lseq on Dynix/PTX, -lgen on Unixware.
39626 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39627 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39628 if test "${ac_cv_search_getmntent+set}" = set; then
39629   echo $ECHO_N "(cached) $ECHO_C" >&6
39630 else
39631   ac_func_search_save_LIBS=$LIBS
39632 cat >conftest.$ac_ext <<_ACEOF
39633 /* confdefs.h.  */
39634 _ACEOF
39635 cat confdefs.h >>conftest.$ac_ext
39636 cat >>conftest.$ac_ext <<_ACEOF
39637 /* end confdefs.h.  */
39638
39639 /* Override any GCC internal prototype to avoid an error.
39640    Use char because int might match the return type of a GCC
39641    builtin and then its argument prototype would still apply.  */
39642 #ifdef __cplusplus
39643 extern "C"
39644 #endif
39645 char getmntent ();
39646 int
39647 main ()
39648 {
39649 return getmntent ();
39650   ;
39651   return 0;
39652 }
39653 _ACEOF
39654 for ac_lib in '' sun seq gen; do
39655   if test -z "$ac_lib"; then
39656     ac_res="none required"
39657   else
39658     ac_res=-l$ac_lib
39659     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39660   fi
39661   rm -f conftest.$ac_objext conftest$ac_exeext
39662 if { (ac_try="$ac_link"
39663 case "(($ac_try" in
39664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39665   *) ac_try_echo=$ac_try;;
39666 esac
39667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39668   (eval "$ac_link") 2>conftest.er1
39669   ac_status=$?
39670   grep -v '^ *+' conftest.er1 >conftest.err
39671   rm -f conftest.er1
39672   cat conftest.err >&5
39673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39674   (exit $ac_status); } && {
39675          test -z "$ac_c_werror_flag" ||
39676          test ! -s conftest.err
39677        } && test -s conftest$ac_exeext &&
39678        $as_test_x conftest$ac_exeext; then
39679   ac_cv_search_getmntent=$ac_res
39680 else
39681   echo "$as_me: failed program was:" >&5
39682 sed 's/^/| /' conftest.$ac_ext >&5
39683
39684
39685 fi
39686
39687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39688       conftest$ac_exeext
39689   if test "${ac_cv_search_getmntent+set}" = set; then
39690   break
39691 fi
39692 done
39693 if test "${ac_cv_search_getmntent+set}" = set; then
39694   :
39695 else
39696   ac_cv_search_getmntent=no
39697 fi
39698 rm conftest.$ac_ext
39699 LIBS=$ac_func_search_save_LIBS
39700 fi
39701 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39702 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39703 ac_res=$ac_cv_search_getmntent
39704 if test "$ac_res" != no; then
39705   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39706   ac_cv_func_getmntent=yes
39707
39708 cat >>confdefs.h <<\_ACEOF
39709 #define HAVE_GETMNTENT 1
39710 _ACEOF
39711
39712 else
39713   ac_cv_func_getmntent=no
39714 fi
39715
39716
39717 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39718 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39719 if test "${ac_cv_func_closedir_void+set}" = set; then
39720   echo $ECHO_N "(cached) $ECHO_C" >&6
39721 else
39722   if test "$cross_compiling" = yes; then
39723   ac_cv_func_closedir_void=yes
39724 else
39725   cat >conftest.$ac_ext <<_ACEOF
39726 /* confdefs.h.  */
39727 _ACEOF
39728 cat confdefs.h >>conftest.$ac_ext
39729 cat >>conftest.$ac_ext <<_ACEOF
39730 /* end confdefs.h.  */
39731 $ac_includes_default
39732 #include <$ac_header_dirent>
39733 #ifndef __cplusplus
39734 int closedir ();
39735 #endif
39736
39737 int
39738 main ()
39739 {
39740 return closedir (opendir (".")) != 0;
39741   ;
39742   return 0;
39743 }
39744 _ACEOF
39745 rm -f conftest$ac_exeext
39746 if { (ac_try="$ac_link"
39747 case "(($ac_try" in
39748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39749   *) ac_try_echo=$ac_try;;
39750 esac
39751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39752   (eval "$ac_link") 2>&5
39753   ac_status=$?
39754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39756   { (case "(($ac_try" in
39757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39758   *) ac_try_echo=$ac_try;;
39759 esac
39760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39761   (eval "$ac_try") 2>&5
39762   ac_status=$?
39763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39764   (exit $ac_status); }; }; then
39765   ac_cv_func_closedir_void=no
39766 else
39767   echo "$as_me: program exited with status $ac_status" >&5
39768 echo "$as_me: failed program was:" >&5
39769 sed 's/^/| /' conftest.$ac_ext >&5
39770
39771 ( exit $ac_status )
39772 ac_cv_func_closedir_void=yes
39773 fi
39774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39775 fi
39776
39777
39778 fi
39779 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39780 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39781 if test $ac_cv_func_closedir_void = yes; then
39782
39783 cat >>confdefs.h <<\_ACEOF
39784 #define CLOSEDIR_VOID 1
39785 _ACEOF
39786
39787 fi
39788
39789 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39790 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39791 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39792   echo $ECHO_N "(cached) $ECHO_C" >&6
39793 else
39794   if test "$cross_compiling" = yes; then
39795   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39796 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39797    { (exit 1); exit 1; }; }
39798 else
39799   cat >conftest.$ac_ext <<_ACEOF
39800 /* confdefs.h.  */
39801 _ACEOF
39802 cat confdefs.h >>conftest.$ac_ext
39803 cat >>conftest.$ac_ext <<_ACEOF
39804 /* end confdefs.h.  */
39805 $ac_includes_default
39806 int
39807 main ()
39808 {
39809 /* If this system has a BSD-style setpgrp which takes arguments,
39810   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39811   exit successfully. */
39812   return setpgrp (1,1) != -1;
39813   ;
39814   return 0;
39815 }
39816 _ACEOF
39817 rm -f conftest$ac_exeext
39818 if { (ac_try="$ac_link"
39819 case "(($ac_try" in
39820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39821   *) ac_try_echo=$ac_try;;
39822 esac
39823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39824   (eval "$ac_link") 2>&5
39825   ac_status=$?
39826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39828   { (case "(($ac_try" in
39829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39830   *) ac_try_echo=$ac_try;;
39831 esac
39832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39833   (eval "$ac_try") 2>&5
39834   ac_status=$?
39835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39836   (exit $ac_status); }; }; then
39837   ac_cv_func_setpgrp_void=no
39838 else
39839   echo "$as_me: program exited with status $ac_status" >&5
39840 echo "$as_me: failed program was:" >&5
39841 sed 's/^/| /' conftest.$ac_ext >&5
39842
39843 ( exit $ac_status )
39844 ac_cv_func_setpgrp_void=yes
39845 fi
39846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39847 fi
39848
39849
39850 fi
39851 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39852 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39853 if test $ac_cv_func_setpgrp_void = yes; then
39854
39855 cat >>confdefs.h <<\_ACEOF
39856 #define SETPGRP_VOID 1
39857 _ACEOF
39858
39859 fi
39860             # AC_FUNC_FNMATCH    dnl use local version
39861
39862 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39863 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39864 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39865   echo $ECHO_N "(cached) $ECHO_C" >&6
39866 else
39867   ac_check_lib_save_LIBS=$LIBS
39868 LIBS="-lintl  $LIBS"
39869 cat >conftest.$ac_ext <<_ACEOF
39870 /* confdefs.h.  */
39871 _ACEOF
39872 cat confdefs.h >>conftest.$ac_ext
39873 cat >>conftest.$ac_ext <<_ACEOF
39874 /* end confdefs.h.  */
39875
39876 /* Override any GCC internal prototype to avoid an error.
39877    Use char because int might match the return type of a GCC
39878    builtin and then its argument prototype would still apply.  */
39879 #ifdef __cplusplus
39880 extern "C"
39881 #endif
39882 char gettext ();
39883 int
39884 main ()
39885 {
39886 return gettext ();
39887   ;
39888   return 0;
39889 }
39890 _ACEOF
39891 rm -f conftest.$ac_objext conftest$ac_exeext
39892 if { (ac_try="$ac_link"
39893 case "(($ac_try" in
39894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39895   *) ac_try_echo=$ac_try;;
39896 esac
39897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39898   (eval "$ac_link") 2>conftest.er1
39899   ac_status=$?
39900   grep -v '^ *+' conftest.er1 >conftest.err
39901   rm -f conftest.er1
39902   cat conftest.err >&5
39903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39904   (exit $ac_status); } && {
39905          test -z "$ac_c_werror_flag" ||
39906          test ! -s conftest.err
39907        } && test -s conftest$ac_exeext &&
39908        $as_test_x conftest$ac_exeext; then
39909   ac_cv_lib_intl_gettext=yes
39910 else
39911   echo "$as_me: failed program was:" >&5
39912 sed 's/^/| /' conftest.$ac_ext >&5
39913
39914         ac_cv_lib_intl_gettext=no
39915 fi
39916
39917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39918       conftest$ac_exeext conftest.$ac_ext
39919 LIBS=$ac_check_lib_save_LIBS
39920 fi
39921 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39922 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39923 if test $ac_cv_lib_intl_gettext = yes; then
39924   LIBS="$LIBS -lintl"
39925 fi
39926
39927
39928
39929 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39930 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39931 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39932   echo $ECHO_N "(cached) $ECHO_C" >&6
39933 else
39934   ac_check_lib_save_LIBS=$LIBS
39935 LIBS="-lsun  $LIBS"
39936 cat >conftest.$ac_ext <<_ACEOF
39937 /* confdefs.h.  */
39938 _ACEOF
39939 cat confdefs.h >>conftest.$ac_ext
39940 cat >>conftest.$ac_ext <<_ACEOF
39941 /* end confdefs.h.  */
39942
39943 /* Override any GCC internal prototype to avoid an error.
39944    Use char because int might match the return type of a GCC
39945    builtin and then its argument prototype would still apply.  */
39946 #ifdef __cplusplus
39947 extern "C"
39948 #endif
39949 char getpwnam ();
39950 int
39951 main ()
39952 {
39953 return getpwnam ();
39954   ;
39955   return 0;
39956 }
39957 _ACEOF
39958 rm -f conftest.$ac_objext conftest$ac_exeext
39959 if { (ac_try="$ac_link"
39960 case "(($ac_try" in
39961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39962   *) ac_try_echo=$ac_try;;
39963 esac
39964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39965   (eval "$ac_link") 2>conftest.er1
39966   ac_status=$?
39967   grep -v '^ *+' conftest.er1 >conftest.err
39968   rm -f conftest.er1
39969   cat conftest.err >&5
39970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39971   (exit $ac_status); } && {
39972          test -z "$ac_c_werror_flag" ||
39973          test ! -s conftest.err
39974        } && test -s conftest$ac_exeext &&
39975        $as_test_x conftest$ac_exeext; then
39976   ac_cv_lib_sun_getpwnam=yes
39977 else
39978   echo "$as_me: failed program was:" >&5
39979 sed 's/^/| /' conftest.$ac_ext >&5
39980
39981         ac_cv_lib_sun_getpwnam=no
39982 fi
39983
39984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39985       conftest$ac_exeext conftest.$ac_ext
39986 LIBS=$ac_check_lib_save_LIBS
39987 fi
39988 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39989 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39990 if test $ac_cv_lib_sun_getpwnam = yes; then
39991   cat >>confdefs.h <<_ACEOF
39992 #define HAVE_LIBSUN 1
39993 _ACEOF
39994
39995   LIBS="-lsun $LIBS"
39996
39997 fi
39998
39999
40000
40001 for ac_header in zlib.h
40002 do
40003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40005   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40008   echo $ECHO_N "(cached) $ECHO_C" >&6
40009 fi
40010 ac_res=`eval echo '${'$as_ac_Header'}'`
40011                { echo "$as_me:$LINENO: result: $ac_res" >&5
40012 echo "${ECHO_T}$ac_res" >&6; }
40013 else
40014   # Is the header compilable?
40015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40017 cat >conftest.$ac_ext <<_ACEOF
40018 /* confdefs.h.  */
40019 _ACEOF
40020 cat confdefs.h >>conftest.$ac_ext
40021 cat >>conftest.$ac_ext <<_ACEOF
40022 /* end confdefs.h.  */
40023 $ac_includes_default
40024 #include <$ac_header>
40025 _ACEOF
40026 rm -f conftest.$ac_objext
40027 if { (ac_try="$ac_compile"
40028 case "(($ac_try" in
40029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40030   *) ac_try_echo=$ac_try;;
40031 esac
40032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40033   (eval "$ac_compile") 2>conftest.er1
40034   ac_status=$?
40035   grep -v '^ *+' conftest.er1 >conftest.err
40036   rm -f conftest.er1
40037   cat conftest.err >&5
40038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039   (exit $ac_status); } && {
40040          test -z "$ac_c_werror_flag" ||
40041          test ! -s conftest.err
40042        } && test -s conftest.$ac_objext; then
40043   ac_header_compiler=yes
40044 else
40045   echo "$as_me: failed program was:" >&5
40046 sed 's/^/| /' conftest.$ac_ext >&5
40047
40048         ac_header_compiler=no
40049 fi
40050
40051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40053 echo "${ECHO_T}$ac_header_compiler" >&6; }
40054
40055 # Is the header present?
40056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40058 cat >conftest.$ac_ext <<_ACEOF
40059 /* confdefs.h.  */
40060 _ACEOF
40061 cat confdefs.h >>conftest.$ac_ext
40062 cat >>conftest.$ac_ext <<_ACEOF
40063 /* end confdefs.h.  */
40064 #include <$ac_header>
40065 _ACEOF
40066 if { (ac_try="$ac_cpp conftest.$ac_ext"
40067 case "(($ac_try" in
40068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40069   *) ac_try_echo=$ac_try;;
40070 esac
40071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40073   ac_status=$?
40074   grep -v '^ *+' conftest.er1 >conftest.err
40075   rm -f conftest.er1
40076   cat conftest.err >&5
40077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40078   (exit $ac_status); } >/dev/null && {
40079          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40080          test ! -s conftest.err
40081        }; then
40082   ac_header_preproc=yes
40083 else
40084   echo "$as_me: failed program was:" >&5
40085 sed 's/^/| /' conftest.$ac_ext >&5
40086
40087   ac_header_preproc=no
40088 fi
40089
40090 rm -f conftest.err conftest.$ac_ext
40091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40092 echo "${ECHO_T}$ac_header_preproc" >&6; }
40093
40094 # So?  What about this header?
40095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40096   yes:no: )
40097     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40101     ac_header_preproc=yes
40102     ;;
40103   no:yes:* )
40104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40106     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40107 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40108     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40110     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40111 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40114     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40116
40117     ;;
40118 esac
40119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40122   echo $ECHO_N "(cached) $ECHO_C" >&6
40123 else
40124   eval "$as_ac_Header=\$ac_header_preproc"
40125 fi
40126 ac_res=`eval echo '${'$as_ac_Header'}'`
40127                { echo "$as_me:$LINENO: result: $ac_res" >&5
40128 echo "${ECHO_T}$ac_res" >&6; }
40129
40130 fi
40131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40132   cat >>confdefs.h <<_ACEOF
40133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40134 _ACEOF
40135
40136 fi
40137
40138 done
40139
40140 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40141 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40142 if test "${ac_cv_lib_z_deflate+set}" = set; then
40143   echo $ECHO_N "(cached) $ECHO_C" >&6
40144 else
40145   ac_check_lib_save_LIBS=$LIBS
40146 LIBS="-lz  $LIBS"
40147 cat >conftest.$ac_ext <<_ACEOF
40148 /* confdefs.h.  */
40149 _ACEOF
40150 cat confdefs.h >>conftest.$ac_ext
40151 cat >>conftest.$ac_ext <<_ACEOF
40152 /* end confdefs.h.  */
40153
40154 /* Override any GCC internal prototype to avoid an error.
40155    Use char because int might match the return type of a GCC
40156    builtin and then its argument prototype would still apply.  */
40157 #ifdef __cplusplus
40158 extern "C"
40159 #endif
40160 char deflate ();
40161 int
40162 main ()
40163 {
40164 return deflate ();
40165   ;
40166   return 0;
40167 }
40168 _ACEOF
40169 rm -f conftest.$ac_objext conftest$ac_exeext
40170 if { (ac_try="$ac_link"
40171 case "(($ac_try" in
40172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40173   *) ac_try_echo=$ac_try;;
40174 esac
40175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40176   (eval "$ac_link") 2>conftest.er1
40177   ac_status=$?
40178   grep -v '^ *+' conftest.er1 >conftest.err
40179   rm -f conftest.er1
40180   cat conftest.err >&5
40181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40182   (exit $ac_status); } && {
40183          test -z "$ac_c_werror_flag" ||
40184          test ! -s conftest.err
40185        } && test -s conftest$ac_exeext &&
40186        $as_test_x conftest$ac_exeext; then
40187   ac_cv_lib_z_deflate=yes
40188 else
40189   echo "$as_me: failed program was:" >&5
40190 sed 's/^/| /' conftest.$ac_ext >&5
40191
40192         ac_cv_lib_z_deflate=no
40193 fi
40194
40195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40196       conftest$ac_exeext conftest.$ac_ext
40197 LIBS=$ac_check_lib_save_LIBS
40198 fi
40199 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40200 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40201 if test $ac_cv_lib_z_deflate = yes; then
40202   FDLIBS="-lz"
40203 fi
40204
40205 have_zlib=no
40206 if test x$FDLIBS = x-lz; then
40207    cat >>confdefs.h <<\_ACEOF
40208 #define HAVE_LIBZ 1
40209 _ACEOF
40210
40211    have_zlib=yes
40212 fi
40213
40214 have_acl=no
40215 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40216   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40217 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40218 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40219   echo $ECHO_N "(cached) $ECHO_C" >&6
40220 fi
40221 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40222 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40223 else
40224   # Is the header compilable?
40225 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40226 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
40234 #include <sys/acl.h>
40235 _ACEOF
40236 rm -f conftest.$ac_objext
40237 if { (ac_try="$ac_compile"
40238 case "(($ac_try" in
40239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40240   *) ac_try_echo=$ac_try;;
40241 esac
40242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40243   (eval "$ac_compile") 2>conftest.er1
40244   ac_status=$?
40245   grep -v '^ *+' conftest.er1 >conftest.err
40246   rm -f conftest.er1
40247   cat conftest.err >&5
40248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40249   (exit $ac_status); } && {
40250          test -z "$ac_c_werror_flag" ||
40251          test ! -s conftest.err
40252        } && test -s conftest.$ac_objext; then
40253   ac_header_compiler=yes
40254 else
40255   echo "$as_me: failed program was:" >&5
40256 sed 's/^/| /' conftest.$ac_ext >&5
40257
40258         ac_header_compiler=no
40259 fi
40260
40261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40263 echo "${ECHO_T}$ac_header_compiler" >&6; }
40264
40265 # Is the header present?
40266 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40267 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40268 cat >conftest.$ac_ext <<_ACEOF
40269 /* confdefs.h.  */
40270 _ACEOF
40271 cat confdefs.h >>conftest.$ac_ext
40272 cat >>conftest.$ac_ext <<_ACEOF
40273 /* end confdefs.h.  */
40274 #include <sys/acl.h>
40275 _ACEOF
40276 if { (ac_try="$ac_cpp conftest.$ac_ext"
40277 case "(($ac_try" in
40278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40279   *) ac_try_echo=$ac_try;;
40280 esac
40281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40282   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40283   ac_status=$?
40284   grep -v '^ *+' conftest.er1 >conftest.err
40285   rm -f conftest.er1
40286   cat conftest.err >&5
40287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40288   (exit $ac_status); } >/dev/null && {
40289          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40290          test ! -s conftest.err
40291        }; then
40292   ac_header_preproc=yes
40293 else
40294   echo "$as_me: failed program was:" >&5
40295 sed 's/^/| /' conftest.$ac_ext >&5
40296
40297   ac_header_preproc=no
40298 fi
40299
40300 rm -f conftest.err conftest.$ac_ext
40301 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40302 echo "${ECHO_T}$ac_header_preproc" >&6; }
40303
40304 # So?  What about this header?
40305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40306   yes:no: )
40307     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40308 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40309     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40310 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40311     ac_header_preproc=yes
40312     ;;
40313   no:yes:* )
40314     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40315 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40316     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40317 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40318     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40319 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40320     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40321 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40322     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40323 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40324     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40325 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40326
40327     ;;
40328 esac
40329 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40330 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40331 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40332   echo $ECHO_N "(cached) $ECHO_C" >&6
40333 else
40334   ac_cv_header_sys_acl_h=$ac_header_preproc
40335 fi
40336 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40337 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40338
40339 fi
40340
40341
40342 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40343 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40344 if test "${ac_cv_func_acl_get_file+set}" = set; then
40345   echo $ECHO_N "(cached) $ECHO_C" >&6
40346 else
40347   cat >conftest.$ac_ext <<_ACEOF
40348 /* confdefs.h.  */
40349 _ACEOF
40350 cat confdefs.h >>conftest.$ac_ext
40351 cat >>conftest.$ac_ext <<_ACEOF
40352 /* end confdefs.h.  */
40353 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40355 #define acl_get_file innocuous_acl_get_file
40356
40357 /* System header to define __stub macros and hopefully few prototypes,
40358     which can conflict with char acl_get_file (); below.
40359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40360     <limits.h> exists even on freestanding compilers.  */
40361
40362 #ifdef __STDC__
40363 # include <limits.h>
40364 #else
40365 # include <assert.h>
40366 #endif
40367
40368 #undef acl_get_file
40369
40370 /* Override any GCC internal prototype to avoid an error.
40371    Use char because int might match the return type of a GCC
40372    builtin and then its argument prototype would still apply.  */
40373 #ifdef __cplusplus
40374 extern "C"
40375 #endif
40376 char acl_get_file ();
40377 /* The GNU C library defines this for functions which it implements
40378     to always fail with ENOSYS.  Some functions are actually named
40379     something starting with __ and the normal name is an alias.  */
40380 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40381 choke me
40382 #endif
40383
40384 int
40385 main ()
40386 {
40387 return acl_get_file ();
40388   ;
40389   return 0;
40390 }
40391 _ACEOF
40392 rm -f conftest.$ac_objext conftest$ac_exeext
40393 if { (ac_try="$ac_link"
40394 case "(($ac_try" in
40395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40396   *) ac_try_echo=$ac_try;;
40397 esac
40398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40399   (eval "$ac_link") 2>conftest.er1
40400   ac_status=$?
40401   grep -v '^ *+' conftest.er1 >conftest.err
40402   rm -f conftest.er1
40403   cat conftest.err >&5
40404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405   (exit $ac_status); } && {
40406          test -z "$ac_c_werror_flag" ||
40407          test ! -s conftest.err
40408        } && test -s conftest$ac_exeext &&
40409        $as_test_x conftest$ac_exeext; then
40410   ac_cv_func_acl_get_file=yes
40411 else
40412   echo "$as_me: failed program was:" >&5
40413 sed 's/^/| /' conftest.$ac_ext >&5
40414
40415         ac_cv_func_acl_get_file=no
40416 fi
40417
40418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40419       conftest$ac_exeext conftest.$ac_ext
40420 fi
40421 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40422 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40423 if test $ac_cv_func_acl_get_file = yes; then
40424   have_acl=yes
40425 else
40426
40427        { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40428 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40429 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40430   echo $ECHO_N "(cached) $ECHO_C" >&6
40431 else
40432   ac_check_lib_save_LIBS=$LIBS
40433 LIBS="-lacl  $LIBS"
40434 cat >conftest.$ac_ext <<_ACEOF
40435 /* confdefs.h.  */
40436 _ACEOF
40437 cat confdefs.h >>conftest.$ac_ext
40438 cat >>conftest.$ac_ext <<_ACEOF
40439 /* end confdefs.h.  */
40440
40441 /* Override any GCC internal prototype to avoid an error.
40442    Use char because int might match the return type of a GCC
40443    builtin and then its argument prototype would still apply.  */
40444 #ifdef __cplusplus
40445 extern "C"
40446 #endif
40447 char acl_get_file ();
40448 int
40449 main ()
40450 {
40451 return acl_get_file ();
40452   ;
40453   return 0;
40454 }
40455 _ACEOF
40456 rm -f conftest.$ac_objext conftest$ac_exeext
40457 if { (ac_try="$ac_link"
40458 case "(($ac_try" in
40459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40460   *) ac_try_echo=$ac_try;;
40461 esac
40462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40463   (eval "$ac_link") 2>conftest.er1
40464   ac_status=$?
40465   grep -v '^ *+' conftest.er1 >conftest.err
40466   rm -f conftest.er1
40467   cat conftest.err >&5
40468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40469   (exit $ac_status); } && {
40470          test -z "$ac_c_werror_flag" ||
40471          test ! -s conftest.err
40472        } && test -s conftest$ac_exeext &&
40473        $as_test_x conftest$ac_exeext; then
40474   ac_cv_lib_acl_acl_get_file=yes
40475 else
40476   echo "$as_me: failed program was:" >&5
40477 sed 's/^/| /' conftest.$ac_ext >&5
40478
40479         ac_cv_lib_acl_acl_get_file=no
40480 fi
40481
40482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40483       conftest$ac_exeext conftest.$ac_ext
40484 LIBS=$ac_check_lib_save_LIBS
40485 fi
40486 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40487 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40488 if test $ac_cv_lib_acl_acl_get_file = yes; then
40489
40490               have_acl=yes;
40491               FDLIBS="-lacl $FDLIBS"
40492
40493 else
40494
40495               { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40496 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40497 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40498   echo $ECHO_N "(cached) $ECHO_C" >&6
40499 else
40500   ac_check_lib_save_LIBS=$LIBS
40501 LIBS="-lsec  $LIBS"
40502 cat >conftest.$ac_ext <<_ACEOF
40503 /* confdefs.h.  */
40504 _ACEOF
40505 cat confdefs.h >>conftest.$ac_ext
40506 cat >>conftest.$ac_ext <<_ACEOF
40507 /* end confdefs.h.  */
40508
40509 /* Override any GCC internal prototype to avoid an error.
40510    Use char because int might match the return type of a GCC
40511    builtin and then its argument prototype would still apply.  */
40512 #ifdef __cplusplus
40513 extern "C"
40514 #endif
40515 char acltotext ();
40516 int
40517 main ()
40518 {
40519 return acltotext ();
40520   ;
40521   return 0;
40522 }
40523 _ACEOF
40524 rm -f conftest.$ac_objext conftest$ac_exeext
40525 if { (ac_try="$ac_link"
40526 case "(($ac_try" in
40527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40528   *) ac_try_echo=$ac_try;;
40529 esac
40530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40531   (eval "$ac_link") 2>conftest.er1
40532   ac_status=$?
40533   grep -v '^ *+' conftest.er1 >conftest.err
40534   rm -f conftest.er1
40535   cat conftest.err >&5
40536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40537   (exit $ac_status); } && {
40538          test -z "$ac_c_werror_flag" ||
40539          test ! -s conftest.err
40540        } && test -s conftest$ac_exeext &&
40541        $as_test_x conftest$ac_exeext; then
40542   ac_cv_lib_sec_acltotext=yes
40543 else
40544   echo "$as_me: failed program was:" >&5
40545 sed 's/^/| /' conftest.$ac_ext >&5
40546
40547         ac_cv_lib_sec_acltotext=no
40548 fi
40549
40550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40551       conftest$ac_exeext conftest.$ac_ext
40552 LIBS=$ac_check_lib_save_LIBS
40553 fi
40554 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40555 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40556 if test $ac_cv_lib_sec_acltotext = yes; then
40557
40558                      have_acl=yes;
40559                      FDLIBS="-lsec $FDLIBS"
40560
40561
40562 fi
40563
40564
40565
40566 fi
40567
40568
40569
40570 fi
40571
40572 if test $have_acl = yes; then
40573    cat >>confdefs.h <<\_ACEOF
40574 #define HAVE_ACL 1
40575 _ACEOF
40576
40577 fi
40578
40579 PTHREAD_LIB=""
40580 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40581 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40582 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40583   echo $ECHO_N "(cached) $ECHO_C" >&6
40584 else
40585   ac_check_lib_save_LIBS=$LIBS
40586 LIBS="-lpthread  $LIBS"
40587 cat >conftest.$ac_ext <<_ACEOF
40588 /* confdefs.h.  */
40589 _ACEOF
40590 cat confdefs.h >>conftest.$ac_ext
40591 cat >>conftest.$ac_ext <<_ACEOF
40592 /* end confdefs.h.  */
40593
40594 /* Override any GCC internal prototype to avoid an error.
40595    Use char because int might match the return type of a GCC
40596    builtin and then its argument prototype would still apply.  */
40597 #ifdef __cplusplus
40598 extern "C"
40599 #endif
40600 char pthread_create ();
40601 int
40602 main ()
40603 {
40604 return pthread_create ();
40605   ;
40606   return 0;
40607 }
40608 _ACEOF
40609 rm -f conftest.$ac_objext conftest$ac_exeext
40610 if { (ac_try="$ac_link"
40611 case "(($ac_try" in
40612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40613   *) ac_try_echo=$ac_try;;
40614 esac
40615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40616   (eval "$ac_link") 2>conftest.er1
40617   ac_status=$?
40618   grep -v '^ *+' conftest.er1 >conftest.err
40619   rm -f conftest.er1
40620   cat conftest.err >&5
40621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40622   (exit $ac_status); } && {
40623          test -z "$ac_c_werror_flag" ||
40624          test ! -s conftest.err
40625        } && test -s conftest$ac_exeext &&
40626        $as_test_x conftest$ac_exeext; then
40627   ac_cv_lib_pthread_pthread_create=yes
40628 else
40629   echo "$as_me: failed program was:" >&5
40630 sed 's/^/| /' conftest.$ac_ext >&5
40631
40632         ac_cv_lib_pthread_pthread_create=no
40633 fi
40634
40635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40636       conftest$ac_exeext conftest.$ac_ext
40637 LIBS=$ac_check_lib_save_LIBS
40638 fi
40639 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40640 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40641 if test $ac_cv_lib_pthread_pthread_create = yes; then
40642   PTHREAD_LIB="-lpthread"
40643 else
40644
40645        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40646 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40647 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40648   echo $ECHO_N "(cached) $ECHO_C" >&6
40649 else
40650   ac_check_lib_save_LIBS=$LIBS
40651 LIBS="-lpthreads  $LIBS"
40652 cat >conftest.$ac_ext <<_ACEOF
40653 /* confdefs.h.  */
40654 _ACEOF
40655 cat confdefs.h >>conftest.$ac_ext
40656 cat >>conftest.$ac_ext <<_ACEOF
40657 /* end confdefs.h.  */
40658
40659 /* Override any GCC internal prototype to avoid an error.
40660    Use char because int might match the return type of a GCC
40661    builtin and then its argument prototype would still apply.  */
40662 #ifdef __cplusplus
40663 extern "C"
40664 #endif
40665 char pthread_create ();
40666 int
40667 main ()
40668 {
40669 return pthread_create ();
40670   ;
40671   return 0;
40672 }
40673 _ACEOF
40674 rm -f conftest.$ac_objext conftest$ac_exeext
40675 if { (ac_try="$ac_link"
40676 case "(($ac_try" in
40677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40678   *) ac_try_echo=$ac_try;;
40679 esac
40680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40681   (eval "$ac_link") 2>conftest.er1
40682   ac_status=$?
40683   grep -v '^ *+' conftest.er1 >conftest.err
40684   rm -f conftest.er1
40685   cat conftest.err >&5
40686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40687   (exit $ac_status); } && {
40688          test -z "$ac_c_werror_flag" ||
40689          test ! -s conftest.err
40690        } && test -s conftest$ac_exeext &&
40691        $as_test_x conftest$ac_exeext; then
40692   ac_cv_lib_pthreads_pthread_create=yes
40693 else
40694   echo "$as_me: failed program was:" >&5
40695 sed 's/^/| /' conftest.$ac_ext >&5
40696
40697         ac_cv_lib_pthreads_pthread_create=no
40698 fi
40699
40700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40701       conftest$ac_exeext conftest.$ac_ext
40702 LIBS=$ac_check_lib_save_LIBS
40703 fi
40704 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40705 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40706 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40707   PTHREAD_LIB="-lpthreads"
40708 else
40709
40710               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40711 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40712 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40713   echo $ECHO_N "(cached) $ECHO_C" >&6
40714 else
40715   ac_check_lib_save_LIBS=$LIBS
40716 LIBS="-lc_r  $LIBS"
40717 cat >conftest.$ac_ext <<_ACEOF
40718 /* confdefs.h.  */
40719 _ACEOF
40720 cat confdefs.h >>conftest.$ac_ext
40721 cat >>conftest.$ac_ext <<_ACEOF
40722 /* end confdefs.h.  */
40723
40724 /* Override any GCC internal prototype to avoid an error.
40725    Use char because int might match the return type of a GCC
40726    builtin and then its argument prototype would still apply.  */
40727 #ifdef __cplusplus
40728 extern "C"
40729 #endif
40730 char pthread_create ();
40731 int
40732 main ()
40733 {
40734 return pthread_create ();
40735   ;
40736   return 0;
40737 }
40738 _ACEOF
40739 rm -f conftest.$ac_objext conftest$ac_exeext
40740 if { (ac_try="$ac_link"
40741 case "(($ac_try" in
40742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40743   *) ac_try_echo=$ac_try;;
40744 esac
40745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40746   (eval "$ac_link") 2>conftest.er1
40747   ac_status=$?
40748   grep -v '^ *+' conftest.er1 >conftest.err
40749   rm -f conftest.er1
40750   cat conftest.err >&5
40751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40752   (exit $ac_status); } && {
40753          test -z "$ac_c_werror_flag" ||
40754          test ! -s conftest.err
40755        } && test -s conftest$ac_exeext &&
40756        $as_test_x conftest$ac_exeext; then
40757   ac_cv_lib_c_r_pthread_create=yes
40758 else
40759   echo "$as_me: failed program was:" >&5
40760 sed 's/^/| /' conftest.$ac_ext >&5
40761
40762         ac_cv_lib_c_r_pthread_create=no
40763 fi
40764
40765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40766       conftest$ac_exeext conftest.$ac_ext
40767 LIBS=$ac_check_lib_save_LIBS
40768 fi
40769 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40770 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40771 if test $ac_cv_lib_c_r_pthread_create = yes; then
40772   PTHREAD_LIB="-lc_r"
40773 else
40774
40775                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
40776 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40777 if test "${ac_cv_func_pthread_create+set}" = set; then
40778   echo $ECHO_N "(cached) $ECHO_C" >&6
40779 else
40780   cat >conftest.$ac_ext <<_ACEOF
40781 /* confdefs.h.  */
40782 _ACEOF
40783 cat confdefs.h >>conftest.$ac_ext
40784 cat >>conftest.$ac_ext <<_ACEOF
40785 /* end confdefs.h.  */
40786 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40788 #define pthread_create innocuous_pthread_create
40789
40790 /* System header to define __stub macros and hopefully few prototypes,
40791     which can conflict with char pthread_create (); below.
40792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40793     <limits.h> exists even on freestanding compilers.  */
40794
40795 #ifdef __STDC__
40796 # include <limits.h>
40797 #else
40798 # include <assert.h>
40799 #endif
40800
40801 #undef pthread_create
40802
40803 /* Override any GCC internal prototype to avoid an error.
40804    Use char because int might match the return type of a GCC
40805    builtin and then its argument prototype would still apply.  */
40806 #ifdef __cplusplus
40807 extern "C"
40808 #endif
40809 char pthread_create ();
40810 /* The GNU C library defines this for functions which it implements
40811     to always fail with ENOSYS.  Some functions are actually named
40812     something starting with __ and the normal name is an alias.  */
40813 #if defined __stub_pthread_create || defined __stub___pthread_create
40814 choke me
40815 #endif
40816
40817 int
40818 main ()
40819 {
40820 return pthread_create ();
40821   ;
40822   return 0;
40823 }
40824 _ACEOF
40825 rm -f conftest.$ac_objext conftest$ac_exeext
40826 if { (ac_try="$ac_link"
40827 case "(($ac_try" in
40828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40829   *) ac_try_echo=$ac_try;;
40830 esac
40831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40832   (eval "$ac_link") 2>conftest.er1
40833   ac_status=$?
40834   grep -v '^ *+' conftest.er1 >conftest.err
40835   rm -f conftest.er1
40836   cat conftest.err >&5
40837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40838   (exit $ac_status); } && {
40839          test -z "$ac_c_werror_flag" ||
40840          test ! -s conftest.err
40841        } && test -s conftest$ac_exeext &&
40842        $as_test_x conftest$ac_exeext; then
40843   ac_cv_func_pthread_create=yes
40844 else
40845   echo "$as_me: failed program was:" >&5
40846 sed 's/^/| /' conftest.$ac_ext >&5
40847
40848         ac_cv_func_pthread_create=no
40849 fi
40850
40851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40852       conftest$ac_exeext conftest.$ac_ext
40853 fi
40854 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40855 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40856
40857
40858
40859 fi
40860
40861
40862
40863 fi
40864
40865
40866
40867 fi
40868
40869
40870
40871 cat >>confdefs.h <<\_ACEOF
40872 #define FDLIBS 1
40873 _ACEOF
40874
40875
40876 CFLAGS=${CFLAGS--O}
40877
40878 if test x$have_gcc = xyes ; then
40879    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40880    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40881 fi
40882 LDFLAGS=${LDFLAGS--O}
40883 DB_LIBS="${SQL_LFLAGS}"
40884 CPPFLAGS="$CPPFLAGS"
40885 CFLAGS="$CFLAGS"
40886
40887
40888
40889
40890
40891
40892
40893
40894
40895
40896
40897
40898
40899
40900
40901
40902 OBJLIST=
40903
40904
40905 lld="lld"
40906 llu="llu"
40907
40908 WCFLAGS=
40909 WLDFLAGS=
40910
40911 PFILES="platforms/Makefile"
40912 PSCMD="ps -e"
40913 WIN32=
40914 MACOSX=
40915 hostname=`uname -n | cut -d '.' -f 1`
40916 if test x${hostname} = x ; then
40917    hostname="localhost"
40918 fi
40919 case "$DISTNAME" in
40920 aix)
40921    DISTVER=`uname -r`
40922    PSCMD="ps -e -o pid,comm"
40923    PFILES="${PFILES} \
40924       platforms/aix/Makefile"
40925    TAPEDRIVE="/dev/rmt0.1"
40926   ;;
40927 alpha)
40928    DISTVER=`uname -r`
40929    PTHREAD_LIB="-lpthread -lexc"
40930    if test "${CC}" = "gcc" ; then
40931       lld="lld"
40932       llu="llu"
40933    else
40934       lld="ld"
40935       llu="lu"
40936    fi
40937    TAPEDRIVE="/dev/nrmt0"
40938   ;;
40939 bsdi)
40940    DISTVER=`uname -a |awk '{print $3}'`
40941    TAPEDRIVE="/dev/nrmt0"
40942    PTHREAD_LIB="-pthread"
40943    CFLAGS="${CFLAGS} -pthread"
40944    PSCMD="ps -ax -o pid,command"
40945    lld="qd"
40946    llu="qu"
40947    PFILES="${PFILES} \
40948        platforms/bsdi/Makefile \
40949        platforms/bsdi/bacula-fd \
40950        platforms/bsdi/bacula-sd \
40951        platforms/bsdi/bacula-dir"
40952    largefile_support="yes"
40953   ;;
40954 cygwin)
40955    DISTVER=`uname -a |awk '{print $3}'`
40956    TAPEDRIVE="/dev/nrst0"
40957    WIN32=win32
40958    WCFLAGS="-mwindows"
40959    WLDFLAGS="-mwindows"
40960   ;;
40961 darwin)
40962    DISTVER=`uname -r`
40963    TAPEDRIVE="/dev/nst0"
40964    PSCMD="ps -e -o pid,command"
40965    MACOSX=macosx
40966    PFILES="${PFILES} \
40967       platforms/darwin/Makefile"
40968   ;;
40969 debian)
40970       ping -c 1 $hostname 2>&1 1>/dev/null
40971    if test ! $? = 0; then
40972       hostname="localhost"
40973    fi
40974    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
40975       DISTNAME="ubuntu"
40976    fi
40977    DISTVER=`cat /etc/debian_version`
40978    if test -f /etc/lsb-release ; then
40979       . /etc/lsb-release
40980       if test "x$DISTRIB_ID" != "x" ; then
40981          DISTNAME=$DISTRIB_ID
40982       fi
40983       if test "x$DISTRIB_RELEASE" != "x" ; then
40984          DISTVER=$DISTRIB_RELEASE
40985       fi
40986    fi
40987    if test "$DISTNAME" = "Ubuntu" ; then
40988       DISTNAME="ubuntu"
40989    fi
40990    TAPEDRIVE="/dev/nst0"
40991    PSCMD="ps -e -o pid,command"
40992    if test "$DISTNAME" = "ubuntu" ; then
40993       PFILES="${PFILES} \
40994          platforms/ubuntu/Makefile \
40995          platforms/ubuntu/bacula-fd \
40996          platforms/ubuntu/bacula-sd \
40997          platforms/ubuntu/bacula-dir"
40998    else
40999       PFILES="${PFILES} \
41000          platforms/debian/Makefile \
41001          platforms/debian/bacula-fd \
41002          platforms/debian/bacula-sd \
41003          platforms/debian/bacula-dir"
41004    fi
41005   ;;
41006 freebsd)
41007       ping -c 1 $hostname 2>&1 1>/dev/null
41008    if test ! $? = 0; then
41009       hostname="localhost"
41010    fi
41011    DISTVER=`uname -a |awk '{print $3}'`
41012    VER=`echo $DISTVER | cut -c 1`
41013    if test x$VER = x4 ; then
41014       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41015       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41016    fi
41017    lld="qd"
41018    llu="qu"
41019    TAPEDRIVE="/dev/nrsa0"
41020    PSCMD="ps -ax -o pid,command"
41021    PFILES="${PFILES} \
41022        platforms/freebsd/Makefile \
41023        platforms/freebsd/bacula-fd \
41024        platforms/freebsd/bacula-sd \
41025        platforms/freebsd/bacula-dir"
41026    largefile_support="yes"
41027   ;;
41028 hpux)
41029    PSCMD="UNIX95=1; ps -e -o pid,comm"
41030    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41031    DISTVER=`uname -r`
41032    TAPEDRIVE="/dev/rmt/0hnb"
41033    PTHREAD_LIB="-lpthread"
41034    cat >>confdefs.h <<\_ACEOF
41035 #define _INCLUDE_LONGLONG 1
41036 _ACEOF
41037
41038   ;;
41039 irix)
41040    DISTVER=`uname -r`
41041    TAPEDRIVE="/dev/rmt/0cbn"
41042    PSCMD="ps -e -o pid,comm"
41043    PFILES="${PFILES} \
41044        platforms/irix/Makefile \
41045        platforms/irix/bacula-fd \
41046        platforms/irix/bacula-sd \
41047        platforms/irix/bacula-dir"
41048   ;;
41049 netbsd)
41050    DISTVER=`uname -a |awk '{print $3}'`
41051    lld="qd"
41052    llu="qu"
41053    TAPEDRIVE="/dev/nrst0"
41054    PSCMD="ps -ax -o pid,command"
41055    PTHREAD_LIB="-pthread"
41056    CFLAGS="${CFLAGS} -pthread"
41057   ;;
41058 openbsd)
41059    DISTVER=`uname -a |awk '{print $3}'`
41060    lld="qd"
41061    llu="qu"
41062    TAPEDRIVE="/dev/nrst0"
41063    PSCMD="ps -ax -o pid,command"
41064    PTHREAD_LIB="-pthread"
41065    CFLAGS="${CFLAGS} -pthread"
41066    PFILES="${PFILES} \
41067        platforms/openbsd/Makefile \
41068        platforms/openbsd/bacula-fd \
41069        platforms/openbsd/bacula-sd \
41070        platforms/openbsd/bacula-dir"
41071   ;;
41072 redhat)
41073       ping -c 1 $hostname 2>&1 1>/dev/null
41074    if test ! $? = 0; then
41075       hostname="localhost"
41076    fi
41077    if test -f /etc/whitebox-release ; then
41078       f=/etc/whitebox-release
41079    else
41080       f=/etc/redhat-release
41081    fi
41082    if test `cat $f | grep release |\
41083          cut -f 3 -d ' '`x = "Enterprise"x ; then
41084       DISTVER="Enterprise "`cat $f | grep release |\
41085           cut -f 6 -d ' '`
41086    else
41087        DISTVER=`cat /etc/redhat-release | grep release |\
41088            cut -f 5 -d ' '`
41089    fi
41090    TAPEDRIVE="/dev/nst0"
41091    PSCMD="ps -e -o pid,command"
41092    PFILES="${PFILES} \
41093        platforms/redhat/Makefile \
41094        platforms/redhat/bacula-fd \
41095        platforms/redhat/bacula-sd \
41096        platforms/redhat/bacula-dir \
41097        platforms/redhat/bacula.spec \
41098        "
41099   ;;
41100 mandrake)
41101       ping -c 1 $hostname 2>&1 1>/dev/null
41102    if test ! $? = 0; then
41103       hostname="localhost"
41104    fi
41105    DISTVER=`cat /etc/mandrake-release | grep release |\
41106       cut -f 5 -d ' '`
41107    TAPEDRIVE="/dev/nst0"
41108    PSCMD="ps -e -o pid,command"
41109    PFILES="${PFILES} \
41110        platforms/mandrake/Makefile \
41111        platforms/mandrake/bacula-fd \
41112        platforms/mandrake/bacula-sd \
41113        platforms/mandrake/bacula-dir \
41114        platforms/mandrake/bacula.spec \
41115        "
41116   ;;
41117 gentoo)
41118       ping -c 1 $hostname 2>&1 1>/dev/null
41119    if test ! $? = 0; then
41120       hostname="localhost"
41121    fi
41122    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41123    TAPEDRIVE="/dev/nst0"
41124    PSCMD="ps -e -o pid,command"
41125    PFILES="${PFILES} \
41126        platforms/gentoo/Makefile \
41127     platforms/gentoo/bacula-init \
41128        platforms/gentoo/bacula-fd \
41129        platforms/gentoo/bacula-sd \
41130        platforms/gentoo/bacula-dir"
41131   ;;
41132 slackware)
41133       ping -c 1 $hostname 2>&1 1>/dev/null
41134    if test ! $? = 0; then
41135       hostname="localhost"
41136    fi
41137    DISTVER=`cat /etc/slackware-version`
41138    TAPEDRIVE="/dev/nst0"
41139    PSCMD="ps -e -o pid,command"
41140    PFILES="${PFILES} \
41141        platforms/slackware/Makefile \
41142        platforms/slackware/rc.bacula-fd \
41143        platforms/slackware/rc.bacula-sd \
41144        platforms/slackware/rc.bacula-dir\
41145        platforms/slackware/functions.bacula"
41146   ;;
41147 solaris)
41148    DISTVER=`uname -r`
41149    TAPEDRIVE="/dev/rmt/0cbn"
41150    PSCMD="ps -e -o pid,comm"
41151    PFILES="${PFILES} \
41152        platforms/solaris/Makefile \
41153        platforms/solaris/bacula-fd \
41154        platforms/solaris/bacula-sd \
41155        platforms/solaris/bacula-dir"
41156    if test x$DISTVER = x5.6 ; then
41157        cat >>confdefs.h <<\_ACEOF
41158 #define HAVE_OLD_SOCKOPT 1
41159 _ACEOF
41160
41161    fi
41162    LIBS="$LIBS -lresolv"
41163   ;;
41164 suse)
41165       ping -c 1 $hostname 2>&1 1>/dev/null
41166    if test ! $? = 0; then
41167       hostname="localhost"
41168    fi
41169    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41170        cut -f 3 -d ' '`
41171    TAPEDRIVE="/dev/nst0"
41172    PSCMD="ps -e -o pid,command"
41173    PFILES="${PFILES} \
41174        platforms/suse/Makefile \
41175        platforms/suse/bacula-fd \
41176        platforms/suse/bacula-sd \
41177        platforms/suse/bacula-dir \
41178        platforms/suse/bacula \
41179        platforms/suse/bacula.spec"
41180   ;;
41181 suse5)
41182       ping -c 1 $hostname 2>&1 1>/dev/null
41183    if test ! $? = 0; then
41184       hostname="localhost"
41185    fi
41186    DISTNAME=suse
41187    DISTVER=5.x
41188    TAPEDRIVE="/dev/nst0"
41189    PSCMD="ps -e -o pid,command"
41190    PFILES="${PFILES} \
41191        platforms/suse/Makefile \
41192        platforms/suse/bacula-fd \
41193        platforms/suse/bacula-sd \
41194        platforms/suse/bacula-dir"
41195   ;;
41196 unknown)
41197    DISTVER=unknown
41198    TAPEDRIVE="/dev/nst0"
41199   ;;
41200 *)
41201   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41202   ;;
41203 esac
41204
41205
41206
41207 LIBS="$PTHREAD_LIB $LIBS"
41208
41209 cat >>confdefs.h <<_ACEOF
41210 #define lld "$lld"
41211 _ACEOF
41212
41213 cat >>confdefs.h <<_ACEOF
41214 #define llu "$llu"
41215 _ACEOF
41216
41217
41218
41219
41220
41221
41222
41223
41224 MCOMMON=./autoconf/Make.common
41225
41226
41227 if test "x${subsysdir}" = "x${sbindir}" ; then
41228    echo " "
41229    echo " "
41230    echo "You have set both --sbindir and --with-subsys-dir"
41231    echo "  equal to: ${subsysdir} "
41232    echo "This is not permitted. Please reconfigure."
41233    echo " "
41234    echo "Aborting configuration ..."
41235    echo " "
41236    echo " "
41237    exit 1
41238 fi
41239
41240 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 po/Makefile.in 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"
41241
41242 ac_config_commands="$ac_config_commands default"
41243
41244 cat >confcache <<\_ACEOF
41245 # This file is a shell script that caches the results of configure
41246 # tests run on this system so they can be shared between configure
41247 # scripts and configure runs, see configure's option --config-cache.
41248 # It is not useful on other systems.  If it contains results you don't
41249 # want to keep, you may remove or edit it.
41250 #
41251 # config.status only pays attention to the cache file if you give it
41252 # the --recheck option to rerun configure.
41253 #
41254 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41255 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41256 # following values.
41257
41258 _ACEOF
41259
41260 # The following way of writing the cache mishandles newlines in values,
41261 # but we know of no workaround that is simple, portable, and efficient.
41262 # So, we kill variables containing newlines.
41263 # Ultrix sh set writes to stderr and can't be redirected directly,
41264 # and sets the high bit in the cache file unless we assign to the vars.
41265 (
41266   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41267     eval ac_val=\$$ac_var
41268     case $ac_val in #(
41269     *${as_nl}*)
41270       case $ac_var in #(
41271       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41272 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41273       esac
41274       case $ac_var in #(
41275       _ | IFS | as_nl) ;; #(
41276       *) $as_unset $ac_var ;;
41277       esac ;;
41278     esac
41279   done
41280
41281   (set) 2>&1 |
41282     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41283     *${as_nl}ac_space=\ *)
41284       # `set' does not quote correctly, so add quotes (double-quote
41285       # substitution turns \\\\ into \\, and sed turns \\ into \).
41286       sed -n \
41287         "s/'/'\\\\''/g;
41288           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41289       ;; #(
41290     *)
41291       # `set' quotes correctly as required by POSIX, so do not add quotes.
41292       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41293       ;;
41294     esac |
41295     sort
41296 ) |
41297   sed '
41298      /^ac_cv_env_/b end
41299      t clear
41300      :clear
41301      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41302      t end
41303      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41304      :end' >>confcache
41305 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41306   if test -w "$cache_file"; then
41307     test "x$cache_file" != "x/dev/null" &&
41308       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41309 echo "$as_me: updating cache $cache_file" >&6;}
41310     cat confcache >$cache_file
41311   else
41312     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41313 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41314   fi
41315 fi
41316 rm -f confcache
41317
41318 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41319 # Let make expand exec_prefix.
41320 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41321
41322 DEFS=-DHAVE_CONFIG_H
41323
41324 ac_libobjs=
41325 ac_ltlibobjs=
41326 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41327   # 1. Remove the extension, and $U if already installed.
41328   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41329   ac_i=`echo "$ac_i" | sed "$ac_script"`
41330   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41331   #    will be set to the directory where LIBOBJS objects are built.
41332   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41333   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41334 done
41335 LIBOBJS=$ac_libobjs
41336
41337 LTLIBOBJS=$ac_ltlibobjs
41338
41339
41340
41341 : ${CONFIG_STATUS=./config.status}
41342 ac_clean_files_save=$ac_clean_files
41343 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41344 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41345 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41346 cat >$CONFIG_STATUS <<_ACEOF
41347 #! $SHELL
41348 # Generated by $as_me.
41349 # Run this file to recreate the current configuration.
41350 # Compiler output produced by configure, useful for debugging
41351 # configure, is in config.log if it exists.
41352
41353 debug=false
41354 ac_cs_recheck=false
41355 ac_cs_silent=false
41356 SHELL=\${CONFIG_SHELL-$SHELL}
41357 _ACEOF
41358
41359 cat >>$CONFIG_STATUS <<\_ACEOF
41360 ## --------------------- ##
41361 ## M4sh Initialization.  ##
41362 ## --------------------- ##
41363
41364 # Be more Bourne compatible
41365 DUALCASE=1; export DUALCASE # for MKS sh
41366 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41367   emulate sh
41368   NULLCMD=:
41369   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41370   # is contrary to our usage.  Disable this feature.
41371   alias -g '${1+"$@"}'='"$@"'
41372   setopt NO_GLOB_SUBST
41373 else
41374   case `(set -o) 2>/dev/null` in
41375   *posix*) set -o posix ;;
41376 esac
41377
41378 fi
41379
41380
41381
41382
41383 # PATH needs CR
41384 # Avoid depending upon Character Ranges.
41385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41388 as_cr_digits='0123456789'
41389 as_cr_alnum=$as_cr_Letters$as_cr_digits
41390
41391 # The user is always right.
41392 if test "${PATH_SEPARATOR+set}" != set; then
41393   echo "#! /bin/sh" >conf$$.sh
41394   echo  "exit 0"   >>conf$$.sh
41395   chmod +x conf$$.sh
41396   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41397     PATH_SEPARATOR=';'
41398   else
41399     PATH_SEPARATOR=:
41400   fi
41401   rm -f conf$$.sh
41402 fi
41403
41404 # Support unset when possible.
41405 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41406   as_unset=unset
41407 else
41408   as_unset=false
41409 fi
41410
41411
41412 # IFS
41413 # We need space, tab and new line, in precisely that order.  Quoting is
41414 # there to prevent editors from complaining about space-tab.
41415 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41416 # splitting by setting IFS to empty value.)
41417 as_nl='
41418 '
41419 IFS=" ""        $as_nl"
41420
41421 # Find who we are.  Look in the path if we contain no directory separator.
41422 case $0 in
41423   *[\\/]* ) as_myself=$0 ;;
41424   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41425 for as_dir in $PATH
41426 do
41427   IFS=$as_save_IFS
41428   test -z "$as_dir" && as_dir=.
41429   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41430 done
41431 IFS=$as_save_IFS
41432
41433      ;;
41434 esac
41435 # We did not find ourselves, most probably we were run as `sh COMMAND'
41436 # in which case we are not to be found in the path.
41437 if test "x$as_myself" = x; then
41438   as_myself=$0
41439 fi
41440 if test ! -f "$as_myself"; then
41441   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41442   { (exit 1); exit 1; }
41443 fi
41444
41445 # Work around bugs in pre-3.0 UWIN ksh.
41446 for as_var in ENV MAIL MAILPATH
41447 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41448 done
41449 PS1='$ '
41450 PS2='> '
41451 PS4='+ '
41452
41453 # NLS nuisances.
41454 for as_var in \
41455   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41456   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41457   LC_TELEPHONE LC_TIME
41458 do
41459   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41460     eval $as_var=C; export $as_var
41461   else
41462     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41463   fi
41464 done
41465
41466 # Required to use basename.
41467 if expr a : '\(a\)' >/dev/null 2>&1 &&
41468    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41469   as_expr=expr
41470 else
41471   as_expr=false
41472 fi
41473
41474 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41475   as_basename=basename
41476 else
41477   as_basename=false
41478 fi
41479
41480
41481 # Name of the executable.
41482 as_me=`$as_basename -- "$0" ||
41483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41484          X"$0" : 'X\(//\)$' \| \
41485          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41486 echo X/"$0" |
41487     sed '/^.*\/\([^/][^/]*\)\/*$/{
41488             s//\1/
41489             q
41490           }
41491           /^X\/\(\/\/\)$/{
41492             s//\1/
41493             q
41494           }
41495           /^X\/\(\/\).*/{
41496             s//\1/
41497             q
41498           }
41499           s/.*/./; q'`
41500
41501 # CDPATH.
41502 $as_unset CDPATH
41503
41504
41505
41506   as_lineno_1=$LINENO
41507   as_lineno_2=$LINENO
41508   test "x$as_lineno_1" != "x$as_lineno_2" &&
41509   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41510
41511   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41512   # uniformly replaced by the line number.  The first 'sed' inserts a
41513   # line-number line after each line using $LINENO; the second 'sed'
41514   # does the real work.  The second script uses 'N' to pair each
41515   # line-number line with the line containing $LINENO, and appends
41516   # trailing '-' during substitution so that $LINENO is not a special
41517   # case at line end.
41518   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41519   # scripts with optimization help from Paolo Bonzini.  Blame Lee
41520   # E. McMahon (1931-1989) for sed's syntax.  :-)
41521   sed -n '
41522     p
41523     /[$]LINENO/=
41524   ' <$as_myself |
41525     sed '
41526       s/[$]LINENO.*/&-/
41527       t lineno
41528       b
41529       :lineno
41530       N
41531       :loop
41532       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41533       t loop
41534       s/-\n.*//
41535     ' >$as_me.lineno &&
41536   chmod +x "$as_me.lineno" ||
41537     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41538    { (exit 1); exit 1; }; }
41539
41540   # Don't try to exec as it changes $[0], causing all sort of problems
41541   # (the dirname of $[0] is not the place where we might find the
41542   # original and so on.  Autoconf is especially sensitive to this).
41543   . "./$as_me.lineno"
41544   # Exit status is that of the last command.
41545   exit
41546 }
41547
41548
41549 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41550   as_dirname=dirname
41551 else
41552   as_dirname=false
41553 fi
41554
41555 ECHO_C= ECHO_N= ECHO_T=
41556 case `echo -n x` in
41557 -n*)
41558   case `echo 'x\c'` in
41559   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
41560   *)   ECHO_C='\c';;
41561   esac;;
41562 *)
41563   ECHO_N='-n';;
41564 esac
41565
41566 if expr a : '\(a\)' >/dev/null 2>&1 &&
41567    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41568   as_expr=expr
41569 else
41570   as_expr=false
41571 fi
41572
41573 rm -f conf$$ conf$$.exe conf$$.file
41574 if test -d conf$$.dir; then
41575   rm -f conf$$.dir/conf$$.file
41576 else
41577   rm -f conf$$.dir
41578   mkdir conf$$.dir
41579 fi
41580 echo >conf$$.file
41581 if ln -s conf$$.file conf$$ 2>/dev/null; then
41582   as_ln_s='ln -s'
41583   # ... but there are two gotchas:
41584   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41585   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41586   # In both cases, we have to default to `cp -p'.
41587   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41588     as_ln_s='cp -p'
41589 elif ln conf$$.file conf$$ 2>/dev/null; then
41590   as_ln_s=ln
41591 else
41592   as_ln_s='cp -p'
41593 fi
41594 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41595 rmdir conf$$.dir 2>/dev/null
41596
41597 if mkdir -p . 2>/dev/null; then
41598   as_mkdir_p=:
41599 else
41600   test -d ./-p && rmdir ./-p
41601   as_mkdir_p=false
41602 fi
41603
41604 if test -x / >/dev/null 2>&1; then
41605   as_test_x='test -x'
41606 else
41607   if ls -dL / >/dev/null 2>&1; then
41608     as_ls_L_option=L
41609   else
41610     as_ls_L_option=
41611   fi
41612   as_test_x='
41613     eval sh -c '\''
41614       if test -d "$1"; then
41615         test -d "$1/.";
41616       else
41617         case $1 in
41618         -*)set "./$1";;
41619         esac;
41620         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41621         ???[sx]*):;;*)false;;esac;fi
41622     '\'' sh
41623   '
41624 fi
41625 as_executable_p=$as_test_x
41626
41627 # Sed expression to map a string onto a valid CPP name.
41628 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41629
41630 # Sed expression to map a string onto a valid variable name.
41631 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41632
41633
41634 exec 6>&1
41635
41636 # Save the log message, to keep $[0] and so on meaningful, and to
41637 # report actual input values of CONFIG_FILES etc. instead of their
41638 # values after options handling.
41639 ac_log="
41640 This file was extended by $as_me, which was
41641 generated by GNU Autoconf 2.61.  Invocation command line was
41642
41643   CONFIG_FILES    = $CONFIG_FILES
41644   CONFIG_HEADERS  = $CONFIG_HEADERS
41645   CONFIG_LINKS    = $CONFIG_LINKS
41646   CONFIG_COMMANDS = $CONFIG_COMMANDS
41647   $ $0 $@
41648
41649 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41650 "
41651
41652 _ACEOF
41653
41654 cat >>$CONFIG_STATUS <<_ACEOF
41655 # Files that config.status was made for.
41656 config_files="$ac_config_files"
41657 config_headers="$ac_config_headers"
41658 config_commands="$ac_config_commands"
41659
41660 _ACEOF
41661
41662 cat >>$CONFIG_STATUS <<\_ACEOF
41663 ac_cs_usage="\
41664 \`$as_me' instantiates files from templates according to the
41665 current configuration.
41666
41667 Usage: $0 [OPTIONS] [FILE]...
41668
41669   -h, --help       print this help, then exit
41670   -V, --version    print version number and configuration settings, then exit
41671   -q, --quiet      do not print progress messages
41672   -d, --debug      don't remove temporary files
41673       --recheck    update $as_me by reconfiguring in the same conditions
41674   --file=FILE[:TEMPLATE]
41675                    instantiate the configuration file FILE
41676   --header=FILE[:TEMPLATE]
41677                    instantiate the configuration header FILE
41678
41679 Configuration files:
41680 $config_files
41681
41682 Configuration headers:
41683 $config_headers
41684
41685 Configuration commands:
41686 $config_commands
41687
41688 Report bugs to <bug-autoconf@gnu.org>."
41689
41690 _ACEOF
41691 cat >>$CONFIG_STATUS <<_ACEOF
41692 ac_cs_version="\\
41693 config.status
41694 configured by $0, generated by GNU Autoconf 2.61,
41695   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41696
41697 Copyright (C) 2006 Free Software Foundation, Inc.
41698 This config.status script is free software; the Free Software Foundation
41699 gives unlimited permission to copy, distribute and modify it."
41700
41701 ac_pwd='$ac_pwd'
41702 srcdir='$srcdir'
41703 INSTALL='$INSTALL'
41704 _ACEOF
41705
41706 cat >>$CONFIG_STATUS <<\_ACEOF
41707 # If no file are specified by the user, then we need to provide default
41708 # value.  By we need to know if files were specified by the user.
41709 ac_need_defaults=:
41710 while test $# != 0
41711 do
41712   case $1 in
41713   --*=*)
41714     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41715     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41716     ac_shift=:
41717     ;;
41718   *)
41719     ac_option=$1
41720     ac_optarg=$2
41721     ac_shift=shift
41722     ;;
41723   esac
41724
41725   case $ac_option in
41726   # Handling of the options.
41727   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41728     ac_cs_recheck=: ;;
41729   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41730     echo "$ac_cs_version"; exit ;;
41731   --debug | --debu | --deb | --de | --d | -d )
41732     debug=: ;;
41733   --file | --fil | --fi | --f )
41734     $ac_shift
41735     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41736     ac_need_defaults=false;;
41737   --header | --heade | --head | --hea )
41738     $ac_shift
41739     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41740     ac_need_defaults=false;;
41741   --he | --h)
41742     # Conflict between --help and --header
41743     { echo "$as_me: error: ambiguous option: $1
41744 Try \`$0 --help' for more information." >&2
41745    { (exit 1); exit 1; }; };;
41746   --help | --hel | -h )
41747     echo "$ac_cs_usage"; exit ;;
41748   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41749   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41750     ac_cs_silent=: ;;
41751
41752   # This is an error.
41753   -*) { echo "$as_me: error: unrecognized option: $1
41754 Try \`$0 --help' for more information." >&2
41755    { (exit 1); exit 1; }; } ;;
41756
41757   *) ac_config_targets="$ac_config_targets $1"
41758      ac_need_defaults=false ;;
41759
41760   esac
41761   shift
41762 done
41763
41764 ac_configure_extra_args=
41765
41766 if $ac_cs_silent; then
41767   exec 6>/dev/null
41768   ac_configure_extra_args="$ac_configure_extra_args --silent"
41769 fi
41770
41771 _ACEOF
41772 cat >>$CONFIG_STATUS <<_ACEOF
41773 if \$ac_cs_recheck; then
41774   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41775   CONFIG_SHELL=$SHELL
41776   export CONFIG_SHELL
41777   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41778 fi
41779
41780 _ACEOF
41781 cat >>$CONFIG_STATUS <<\_ACEOF
41782 exec 5>>config.log
41783 {
41784   echo
41785   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41786 ## Running $as_me. ##
41787 _ASBOX
41788   echo "$ac_log"
41789 } >&5
41790
41791 _ACEOF
41792 cat >>$CONFIG_STATUS <<_ACEOF
41793 #
41794 # INIT-COMMANDS
41795 #
41796
41797
41798 # The HP-UX ksh and POSIX shell print the target directory to stdout
41799 # if CDPATH is set.
41800 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41801
41802 sed_quote_subst='$sed_quote_subst'
41803 double_quote_subst='$double_quote_subst'
41804 delay_variable_subst='$delay_variable_subst'
41805 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41806 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41807 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41808 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41809 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41810 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41811 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41812 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41813 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41814 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41815 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41816 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41817 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41818 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41819 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41820 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41821 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41822 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41823 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41824 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41825 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41826 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41827 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41828 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41829 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41830 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41831 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41832 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41833 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41834 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41835 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41836 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41837 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41838 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41839 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41840 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41841 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41842 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41843 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41844 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41845 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41846 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41847 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41848 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41849 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"`'
41850 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"`'
41851 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41852 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41853 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41854 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41855 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41856 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41857 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41858 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41859 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41860 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41861 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41862 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41863 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41864 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41865 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41866 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41867 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41868 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41869 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41870 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41871 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41872 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41873 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41874 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41875 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41876 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41877 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41878 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41879 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41880 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41881 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41882 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41883 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41884 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41885 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41886 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41887 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41888 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41889 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41890 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41891 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41892 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41893 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41894 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41895 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41896 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41897 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41898 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41899 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41900 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41901 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41902 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41903 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41904 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41905 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41906 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41907 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41908 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41909 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41910 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41911 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41912 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41913 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41914 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41915 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41916 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41917 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41918 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41919 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41920 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41921 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41922 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41923 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
41924 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41925 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41926 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
41927 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
41928 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
41929 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41930 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41931 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41932 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41933 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41934 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41935 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41936 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41937 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41938 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41939 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41940 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41941 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41942 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41943 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41944 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41945 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41946 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41947 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41948 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41949 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41950 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41951 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41952 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41953 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41954 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41955 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41956 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41957 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41958 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41959 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41960 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41961 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41962 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41963 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41964 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41965 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41966 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41967 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41968 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41969 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41970 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41971 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41972 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41973 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41974 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41975 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41976
41977 LTCC='$LTCC'
41978 LTCFLAGS='$LTCFLAGS'
41979 compiler='$compiler_DEFAULT'
41980
41981 # Quote evaled strings.
41982 for var in SED \
41983 GREP \
41984 EGREP \
41985 FGREP \
41986 LD \
41987 NM \
41988 LN_S \
41989 lt_SP2NL \
41990 lt_NL2SP \
41991 reload_flag \
41992 OBJDUMP \
41993 deplibs_check_method \
41994 file_magic_cmd \
41995 AR \
41996 AR_FLAGS \
41997 STRIP \
41998 RANLIB \
41999 CC \
42000 CFLAGS \
42001 compiler \
42002 lt_cv_sys_global_symbol_pipe \
42003 lt_cv_sys_global_symbol_to_cdecl \
42004 lt_cv_sys_global_symbol_to_c_name_address \
42005 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42006 SHELL \
42007 ECHO \
42008 lt_prog_compiler_no_builtin_flag \
42009 lt_prog_compiler_wl \
42010 lt_prog_compiler_pic \
42011 lt_prog_compiler_static \
42012 lt_cv_prog_compiler_c_o \
42013 need_locks \
42014 DSYMUTIL \
42015 NMEDIT \
42016 LIPO \
42017 OTOOL \
42018 OTOOL64 \
42019 shrext_cmds \
42020 export_dynamic_flag_spec \
42021 whole_archive_flag_spec \
42022 compiler_needs_object \
42023 with_gnu_ld \
42024 allow_undefined_flag \
42025 no_undefined_flag \
42026 hardcode_libdir_flag_spec \
42027 hardcode_libdir_flag_spec_ld \
42028 hardcode_libdir_separator \
42029 fix_srcfile_path \
42030 exclude_expsyms \
42031 include_expsyms \
42032 file_list_spec \
42033 variables_saved_for_relink \
42034 libname_spec \
42035 library_names_spec \
42036 soname_spec \
42037 finish_eval \
42038 old_striplib \
42039 striplib \
42040 compiler_lib_search_dirs \
42041 predep_objects \
42042 postdep_objects \
42043 predeps \
42044 postdeps \
42045 compiler_lib_search_path \
42046 LD_CXX \
42047 compiler_CXX \
42048 lt_prog_compiler_no_builtin_flag_CXX \
42049 lt_prog_compiler_wl_CXX \
42050 lt_prog_compiler_pic_CXX \
42051 lt_prog_compiler_static_CXX \
42052 lt_cv_prog_compiler_c_o_CXX \
42053 export_dynamic_flag_spec_CXX \
42054 whole_archive_flag_spec_CXX \
42055 compiler_needs_object_CXX \
42056 with_gnu_ld_CXX \
42057 allow_undefined_flag_CXX \
42058 no_undefined_flag_CXX \
42059 hardcode_libdir_flag_spec_CXX \
42060 hardcode_libdir_flag_spec_ld_CXX \
42061 hardcode_libdir_separator_CXX \
42062 fix_srcfile_path_CXX \
42063 exclude_expsyms_CXX \
42064 include_expsyms_CXX \
42065 file_list_spec_CXX \
42066 compiler_lib_search_dirs_CXX \
42067 predep_objects_CXX \
42068 postdep_objects_CXX \
42069 predeps_CXX \
42070 postdeps_CXX \
42071 compiler_lib_search_path_CXX; do
42072     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42073     *[\\\\\\\`\\"\\\$]*)
42074       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42075       ;;
42076     *)
42077       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42078       ;;
42079     esac
42080 done
42081
42082 # Double-quote double-evaled strings.
42083 for var in reload_cmds \
42084 old_postinstall_cmds \
42085 old_postuninstall_cmds \
42086 old_archive_cmds \
42087 extract_expsyms_cmds \
42088 old_archive_from_new_cmds \
42089 old_archive_from_expsyms_cmds \
42090 archive_cmds \
42091 archive_expsym_cmds \
42092 module_cmds \
42093 module_expsym_cmds \
42094 export_symbols_cmds \
42095 prelink_cmds \
42096 postinstall_cmds \
42097 postuninstall_cmds \
42098 finish_cmds \
42099 sys_lib_search_path_spec \
42100 sys_lib_dlsearch_path_spec \
42101 old_archive_cmds_CXX \
42102 old_archive_from_new_cmds_CXX \
42103 old_archive_from_expsyms_cmds_CXX \
42104 archive_cmds_CXX \
42105 archive_expsym_cmds_CXX \
42106 module_cmds_CXX \
42107 module_expsym_cmds_CXX \
42108 export_symbols_cmds_CXX \
42109 prelink_cmds_CXX; do
42110     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42111     *[\\\\\\\`\\"\\\$]*)
42112       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42113       ;;
42114     *)
42115       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42116       ;;
42117     esac
42118 done
42119
42120 # Fix-up fallback echo if it was mangled by the above quoting rules.
42121 case \$lt_ECHO in
42122 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42123   ;;
42124 esac
42125
42126 ac_aux_dir='$ac_aux_dir'
42127 xsi_shell='$xsi_shell'
42128 lt_shell_append='$lt_shell_append'
42129
42130 # See if we are running on zsh, and set the options which allow our
42131 # commands through without removal of \ escapes INIT.
42132 if test -n "\${ZSH_VERSION+set}" ; then
42133    setopt NO_GLOB_SUBST
42134 fi
42135
42136
42137     PACKAGE='$PACKAGE'
42138     VERSION='$VERSION'
42139     TIMESTAMP='$TIMESTAMP'
42140     RM='$RM'
42141     ofile='$ofile'
42142
42143
42144
42145
42146
42147 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42148     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42149     # from automake.
42150     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42151     # Capture the value of LINGUAS because we need it to compute CATALOGS.
42152     LINGUAS="${LINGUAS-%UNSET%}"
42153
42154
42155 _ACEOF
42156
42157 cat >>$CONFIG_STATUS <<\_ACEOF
42158
42159 # Handling of arguments.
42160 for ac_config_target in $ac_config_targets
42161 do
42162   case $ac_config_target in
42163     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42164     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42165     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42166     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42167     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42168     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42169     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42170     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42171     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42172     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42173     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42174     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42175     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42176     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42177     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42178     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42179     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42180     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42181     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42182     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42183     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42184     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42185     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42186     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42187     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42188     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42189     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42190     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42191     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42192     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42193     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42194     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42195     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42196     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42197     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42198     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42199     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42200     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42201     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42202     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42203     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42204     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42205     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42206     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42207     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42208     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42209     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42210     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42211     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42212     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42213     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42214     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42215     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42216     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42217     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42218     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42219     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42220     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42221     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42222     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42223     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42224     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42225     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42226     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42227     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42228     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42229     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42230     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42231     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42232     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42233     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42234     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42235     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42236     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42237     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42238     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42239     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42240     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42241     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42242     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42243     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42244     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42245     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42246     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42247     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42248     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42249     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42250     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42251     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42252     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42253     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42254     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42255     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42256     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42257     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42258     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42259     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42260     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42261     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42262     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42263     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42264     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42265     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42266     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42267     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42268     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42269     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42270     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42271     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42272     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42273     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42274     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42275     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42276
42277   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42278 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42279    { (exit 1); exit 1; }; };;
42280   esac
42281 done
42282
42283
42284 # If the user did not use the arguments to specify the items to instantiate,
42285 # then the envvar interface is used.  Set only those that are not.
42286 # We use the long form for the default assignment because of an extremely
42287 # bizarre bug on SunOS 4.1.3.
42288 if $ac_need_defaults; then
42289   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42290   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42291   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42292 fi
42293
42294 # Have a temporary directory for convenience.  Make it in the build tree
42295 # simply because there is no reason against having it here, and in addition,
42296 # creating and moving files from /tmp can sometimes cause problems.
42297 # Hook for its removal unless debugging.
42298 # Note that there is a small window in which the directory will not be cleaned:
42299 # after its creation but before its name has been assigned to `$tmp'.
42300 $debug ||
42301 {
42302   tmp=
42303   trap 'exit_status=$?
42304   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42305 ' 0
42306   trap '{ (exit 1); exit 1; }' 1 2 13 15
42307 }
42308 # Create a (secure) tmp directory for tmp files.
42309
42310 {
42311   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42312   test -n "$tmp" && test -d "$tmp"
42313 }  ||
42314 {
42315   tmp=./conf$$-$RANDOM
42316   (umask 077 && mkdir "$tmp")
42317 } ||
42318 {
42319    echo "$me: cannot create a temporary directory in ." >&2
42320    { (exit 1); exit 1; }
42321 }
42322
42323 #
42324 # Set up the sed scripts for CONFIG_FILES section.
42325 #
42326
42327 # No need to generate the scripts if there are no CONFIG_FILES.
42328 # This happens for instance when ./config.status config.h
42329 if test -n "$CONFIG_FILES"; then
42330
42331 _ACEOF
42332
42333 # Create sed commands to just substitute file output variables.
42334
42335 # Remaining file output variables are in a fragment that also has non-file
42336 # output varibles.
42337
42338
42339
42340 ac_delim='%!_!# '
42341 for ac_last_try in false false false false false :; do
42342   cat >conf$$subs.sed <<_ACEOF
42343 SHELL!$SHELL$ac_delim
42344 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42345 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42346 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42347 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42348 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42349 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42350 exec_prefix!$exec_prefix$ac_delim
42351 prefix!$prefix$ac_delim
42352 program_transform_name!$program_transform_name$ac_delim
42353 bindir!$bindir$ac_delim
42354 sbindir!$sbindir$ac_delim
42355 libexecdir!$libexecdir$ac_delim
42356 datarootdir!$datarootdir$ac_delim
42357 datadir!$datadir$ac_delim
42358 sysconfdir!$sysconfdir$ac_delim
42359 sharedstatedir!$sharedstatedir$ac_delim
42360 localstatedir!$localstatedir$ac_delim
42361 includedir!$includedir$ac_delim
42362 oldincludedir!$oldincludedir$ac_delim
42363 docdir!$docdir$ac_delim
42364 infodir!$infodir$ac_delim
42365 htmldir!$htmldir$ac_delim
42366 dvidir!$dvidir$ac_delim
42367 pdfdir!$pdfdir$ac_delim
42368 psdir!$psdir$ac_delim
42369 libdir!$libdir$ac_delim
42370 localedir!$localedir$ac_delim
42371 mandir!$mandir$ac_delim
42372 DEFS!$DEFS$ac_delim
42373 ECHO_C!$ECHO_C$ac_delim
42374 ECHO_N!$ECHO_N$ac_delim
42375 ECHO_T!$ECHO_T$ac_delim
42376 LIBS!$LIBS$ac_delim
42377 build_alias!$build_alias$ac_delim
42378 host_alias!$host_alias$ac_delim
42379 target_alias!$target_alias$ac_delim
42380 BUILD_DIR!$BUILD_DIR$ac_delim
42381 TOP_DIR!$TOP_DIR$ac_delim
42382 TRUEPRG!$TRUEPRG$ac_delim
42383 FALSEPRG!$FALSEPRG$ac_delim
42384 VERSION!$VERSION$ac_delim
42385 DATE!$DATE$ac_delim
42386 LSMDATE!$LSMDATE$ac_delim
42387 BACULA!$BACULA$ac_delim
42388 post_host!$post_host$ac_delim
42389 CC!$CC$ac_delim
42390 CFLAGS!$CFLAGS$ac_delim
42391 LDFLAGS!$LDFLAGS$ac_delim
42392 CPPFLAGS!$CPPFLAGS$ac_delim
42393 ac_ct_CC!$ac_ct_CC$ac_delim
42394 EXEEXT!$EXEEXT$ac_delim
42395 OBJEXT!$OBJEXT$ac_delim
42396 CXX!$CXX$ac_delim
42397 CXXFLAGS!$CXXFLAGS$ac_delim
42398 ac_ct_CXX!$ac_ct_CXX$ac_delim
42399 CPP!$CPP$ac_delim
42400 GREP!$GREP$ac_delim
42401 EGREP!$EGREP$ac_delim
42402 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42403 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42404 INSTALL_DATA!$INSTALL_DATA$ac_delim
42405 MV!$MV$ac_delim
42406 REMOVE!$REMOVE$ac_delim
42407 CP!$CP$ac_delim
42408 SED!$SED$ac_delim
42409 ECHO!$ECHO$ac_delim
42410 CMP!$CMP$ac_delim
42411 TBL!$TBL$ac_delim
42412 AR!$AR$ac_delim
42413 OPENSSL!$OPENSSL$ac_delim
42414 MTX!$MTX$ac_delim
42415 DD!$DD$ac_delim
42416 MKISOFS!$MKISOFS$ac_delim
42417 PYTHON!$PYTHON$ac_delim
42418 GROWISOFS!$GROWISOFS$ac_delim
42419 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42420 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42421 PKGCONFIG!$PKGCONFIG$ac_delim
42422 QMAKE!$QMAKE$ac_delim
42423 QMAKEQT4!$QMAKEQT4$ac_delim
42424 WXCONFIG!$WXCONFIG$ac_delim
42425 WXFLAGS!$WXFLAGS$ac_delim
42426 CDRECORD!$CDRECORD$ac_delim
42427 PIDOF!$PIDOF$ac_delim
42428 AWK!$AWK$ac_delim
42429 ARFLAGS!$ARFLAGS$ac_delim
42430 MAKE_SHELL!$MAKE_SHELL$ac_delim
42431 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42432 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42433 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42434 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42435 LIBTOOL!$LIBTOOL$ac_delim
42436 build!$build$ac_delim
42437 _ACEOF
42438
42439   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42440     break
42441   elif $ac_last_try; then
42442     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42443 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42444    { (exit 1); exit 1; }; }
42445   else
42446     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42447   fi
42448 done
42449
42450 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42451 if test -n "$ac_eof"; then
42452   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42453   ac_eof=`expr $ac_eof + 1`
42454 fi
42455
42456 cat >>$CONFIG_STATUS <<_ACEOF
42457 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42459 /^[      ]*@MCOMMON@[    ]*$/{
42460 r $MCOMMON
42461 d
42462 }
42463 _ACEOF
42464 sed '
42465 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42466 s/^/s,@/; s/!/@,|#_!!_#|/
42467 :n
42468 t n
42469 s/'"$ac_delim"'$/,g/; t
42470 s/$/\\/; p
42471 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42472 ' >>$CONFIG_STATUS <conf$$subs.sed
42473 rm -f conf$$subs.sed
42474 cat >>$CONFIG_STATUS <<_ACEOF
42475 CEOF$ac_eof
42476 _ACEOF
42477
42478
42479 ac_delim='%!_!# '
42480 for ac_last_try in false false false false false :; do
42481   cat >conf$$subs.sed <<_ACEOF
42482 build_cpu!$build_cpu$ac_delim
42483 build_vendor!$build_vendor$ac_delim
42484 build_os!$build_os$ac_delim
42485 host!$host$ac_delim
42486 host_cpu!$host_cpu$ac_delim
42487 host_vendor!$host_vendor$ac_delim
42488 host_os!$host_os$ac_delim
42489 FGREP!$FGREP$ac_delim
42490 LD!$LD$ac_delim
42491 DUMPBIN!$DUMPBIN$ac_delim
42492 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42493 NM!$NM$ac_delim
42494 LN_S!$LN_S$ac_delim
42495 OBJDUMP!$OBJDUMP$ac_delim
42496 STRIP!$STRIP$ac_delim
42497 RANLIB!$RANLIB$ac_delim
42498 lt_ECHO!$lt_ECHO$ac_delim
42499 DSYMUTIL!$DSYMUTIL$ac_delim
42500 NMEDIT!$NMEDIT$ac_delim
42501 LIPO!$LIPO$ac_delim
42502 OTOOL!$OTOOL$ac_delim
42503 OTOOL64!$OTOOL64$ac_delim
42504 CXXCPP!$CXXCPP$ac_delim
42505 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42506 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42507 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42508 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42509 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42510 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42511 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42512 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42513 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42514 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42515 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42516 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42517 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42518 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42519 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42520 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42521 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42522 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42523 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42524 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42525 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42526 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42527 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42528 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42529 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42530 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42531 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42532 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42533 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42534 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42535 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42536 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42537 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42538 SET_MAKE!$SET_MAKE$ac_delim
42539 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42540 USE_NLS!$USE_NLS$ac_delim
42541 MSGFMT!$MSGFMT$ac_delim
42542 GMSGFMT!$GMSGFMT$ac_delim
42543 XGETTEXT!$XGETTEXT$ac_delim
42544 MSGMERGE!$MSGMERGE$ac_delim
42545 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42546 LIBICONV!$LIBICONV$ac_delim
42547 LTLIBICONV!$LTLIBICONV$ac_delim
42548 INTLLIBS!$INTLLIBS$ac_delim
42549 LIBINTL!$LIBINTL$ac_delim
42550 LTLIBINTL!$LTLIBINTL$ac_delim
42551 POSUB!$POSUB$ac_delim
42552 GLIBC2!$GLIBC2$ac_delim
42553 ALLOCA!$ALLOCA$ac_delim
42554 GLIBC21!$GLIBC21$ac_delim
42555 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42556 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42557 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42558 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42559 INTLBISON!$INTLBISON$ac_delim
42560 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42561 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42562 CATOBJEXT!$CATOBJEXT$ac_delim
42563 DATADIRNAME!$DATADIRNAME$ac_delim
42564 INSTOBJEXT!$INSTOBJEXT$ac_delim
42565 GENCAT!$GENCAT$ac_delim
42566 INTLOBJS!$INTLOBJS$ac_delim
42567 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42568 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42569 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42570 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42571 GNOME_LIBS!$GNOME_LIBS$ac_delim
42572 GNOME_DIR!$GNOME_DIR$ac_delim
42573 BAT_DIR!$BAT_DIR$ac_delim
42574 QWT_INC!$QWT_INC$ac_delim
42575 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42576 QWT_LIB!$QWT_LIB$ac_delim
42577 QWT!$QWT$ac_delim
42578 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42579 _ACEOF
42580
42581   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42582     break
42583   elif $ac_last_try; then
42584     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42585 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42586    { (exit 1); exit 1; }; }
42587   else
42588     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42589   fi
42590 done
42591
42592 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42593 if test -n "$ac_eof"; then
42594   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42595   ac_eof=`expr $ac_eof + 1`
42596 fi
42597
42598 cat >>$CONFIG_STATUS <<_ACEOF
42599 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42600 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42601 _ACEOF
42602 sed '
42603 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42604 s/^/s,@/; s/!/@,|#_!!_#|/
42605 :n
42606 t n
42607 s/'"$ac_delim"'$/,g/; t
42608 s/$/\\/; p
42609 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42610 ' >>$CONFIG_STATUS <conf$$subs.sed
42611 rm -f conf$$subs.sed
42612 cat >>$CONFIG_STATUS <<_ACEOF
42613 CEOF$ac_eof
42614 _ACEOF
42615
42616
42617 ac_delim='%!_!# '
42618 for ac_last_try in false false false false false :; do
42619   cat >conf$$subs.sed <<_ACEOF
42620 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42621 WX_DIR!$WX_DIR$ac_delim
42622 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42623 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42624 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42625 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42626 STATIC_FD!$STATIC_FD$ac_delim
42627 STATIC_SD!$STATIC_SD$ac_delim
42628 STATIC_DIR!$STATIC_DIR$ac_delim
42629 STATIC_CONS!$STATIC_CONS$ac_delim
42630 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42631 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42632 ALL_DIRS!$ALL_DIRS$ac_delim
42633 DIRD_DIR!$DIRD_DIR$ac_delim
42634 DIR_TOOLS!$DIR_TOOLS$ac_delim
42635 STORED_DIR!$STORED_DIR$ac_delim
42636 CONS_INC!$CONS_INC$ac_delim
42637 CONS_OBJ!$CONS_OBJ$ac_delim
42638 CONS_SRC!$CONS_SRC$ac_delim
42639 CONS_LIBS!$CONS_LIBS$ac_delim
42640 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42641 READLINE_SRC!$READLINE_SRC$ac_delim
42642 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42643 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42644 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42645 OPENSSL_INC!$OPENSSL_INC$ac_delim
42646 working_dir!$working_dir$ac_delim
42647 archivedir!$archivedir$ac_delim
42648 scriptdir!$scriptdir$ac_delim
42649 plugindir!$plugindir$ac_delim
42650 dump_email!$dump_email$ac_delim
42651 job_email!$job_email$ac_delim
42652 smtp_host!$smtp_host$ac_delim
42653 piddir!$piddir$ac_delim
42654 subsysdir!$subsysdir$ac_delim
42655 baseport!$baseport$ac_delim
42656 dir_port!$dir_port$ac_delim
42657 fd_port!$fd_port$ac_delim
42658 sd_port!$sd_port$ac_delim
42659 dir_password!$dir_password$ac_delim
42660 fd_password!$fd_password$ac_delim
42661 sd_password!$sd_password$ac_delim
42662 mon_dir_password!$mon_dir_password$ac_delim
42663 mon_fd_password!$mon_fd_password$ac_delim
42664 mon_sd_password!$mon_sd_password$ac_delim
42665 db_name!$db_name$ac_delim
42666 db_user!$db_user$ac_delim
42667 db_password!$db_password$ac_delim
42668 db_port!$db_port$ac_delim
42669 dir_user!$dir_user$ac_delim
42670 dir_group!$dir_group$ac_delim
42671 sd_user!$sd_user$ac_delim
42672 sd_group!$sd_group$ac_delim
42673 fd_user!$fd_user$ac_delim
42674 fd_group!$fd_group$ac_delim
42675 SBINPERM!$SBINPERM$ac_delim
42676 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42677 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42678 SQL_BINDIR!$SQL_BINDIR$ac_delim
42679 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42680 uncomment_dbi!$uncomment_dbi$ac_delim
42681 DB_PROG!$DB_PROG$ac_delim
42682 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42683 cats!$cats$ac_delim
42684 DB_TYPE!$DB_TYPE$ac_delim
42685 GETCONF!$GETCONF$ac_delim
42686 XMKMF!$XMKMF$ac_delim
42687 X_CFLAGS!$X_CFLAGS$ac_delim
42688 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42689 X_LIBS!$X_LIBS$ac_delim
42690 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42691 LIBOBJS!$LIBOBJS$ac_delim
42692 FDLIBS!$FDLIBS$ac_delim
42693 DEBUG!$DEBUG$ac_delim
42694 DINCLUDE!$DINCLUDE$ac_delim
42695 DLIB!$DLIB$ac_delim
42696 DB_LIBS!$DB_LIBS$ac_delim
42697 WCFLAGS!$WCFLAGS$ac_delim
42698 WLDFLAGS!$WLDFLAGS$ac_delim
42699 WRAPLIBS!$WRAPLIBS$ac_delim
42700 OBJLIST!$OBJLIST$ac_delim
42701 hostname!$hostname$ac_delim
42702 TAPEDRIVE!$TAPEDRIVE$ac_delim
42703 PSCMD!$PSCMD$ac_delim
42704 WIN32!$WIN32$ac_delim
42705 MACOSX!$MACOSX$ac_delim
42706 DISTNAME!$DISTNAME$ac_delim
42707 DISTVER!$DISTVER$ac_delim
42708 LTLIBOBJS!$LTLIBOBJS$ac_delim
42709 _ACEOF
42710
42711   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42712     break
42713   elif $ac_last_try; then
42714     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42715 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42716    { (exit 1); exit 1; }; }
42717   else
42718     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42719   fi
42720 done
42721
42722 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42723 if test -n "$ac_eof"; then
42724   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42725   ac_eof=`expr $ac_eof + 1`
42726 fi
42727
42728 cat >>$CONFIG_STATUS <<_ACEOF
42729 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42730 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42731 _ACEOF
42732 sed '
42733 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42734 s/^/s,@/; s/!/@,|#_!!_#|/
42735 :n
42736 t n
42737 s/'"$ac_delim"'$/,g/; t
42738 s/$/\\/; p
42739 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42740 ' >>$CONFIG_STATUS <conf$$subs.sed
42741 rm -f conf$$subs.sed
42742 cat >>$CONFIG_STATUS <<_ACEOF
42743 :end
42744 s/|#_!!_#|//g
42745 CEOF$ac_eof
42746 _ACEOF
42747
42748
42749 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42750 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42751 # trailing colons and then remove the whole line if VPATH becomes empty
42752 # (actually we leave an empty line to preserve line numbers).
42753 if test "x$srcdir" = x.; then
42754   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42755 s/:*\$(srcdir):*/:/
42756 s/:*\${srcdir}:*/:/
42757 s/:*@srcdir@:*/:/
42758 s/^\([^=]*=[     ]*\):*/\1/
42759 s/:*$//
42760 s/^[^=]*=[       ]*$//
42761 }'
42762 fi
42763
42764 cat >>$CONFIG_STATUS <<\_ACEOF
42765 fi # test -n "$CONFIG_FILES"
42766
42767
42768 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
42769 do
42770   case $ac_tag in
42771   :[FHLC]) ac_mode=$ac_tag; continue;;
42772   esac
42773   case $ac_mode$ac_tag in
42774   :[FHL]*:*);;
42775   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42776 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42777    { (exit 1); exit 1; }; };;
42778   :[FH]-) ac_tag=-:-;;
42779   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42780   esac
42781   ac_save_IFS=$IFS
42782   IFS=:
42783   set x $ac_tag
42784   IFS=$ac_save_IFS
42785   shift
42786   ac_file=$1
42787   shift
42788
42789   case $ac_mode in
42790   :L) ac_source=$1;;
42791   :[FH])
42792     ac_file_inputs=
42793     for ac_f
42794     do
42795       case $ac_f in
42796       -) ac_f="$tmp/stdin";;
42797       *) # Look for the file first in the build tree, then in the source tree
42798          # (if the path is not absolute).  The absolute path cannot be DOS-style,
42799          # because $ac_f cannot contain `:'.
42800          test -f "$ac_f" ||
42801            case $ac_f in
42802            [\\/$]*) false;;
42803            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42804            esac ||
42805            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42806 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42807    { (exit 1); exit 1; }; };;
42808       esac
42809       ac_file_inputs="$ac_file_inputs $ac_f"
42810     done
42811
42812     # Let's still pretend it is `configure' which instantiates (i.e., don't
42813     # use $as_me), people would be surprised to read:
42814     #    /* config.h.  Generated by config.status.  */
42815     configure_input="Generated from "`IFS=:
42816           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42817     if test x"$ac_file" != x-; then
42818       configure_input="$ac_file.  $configure_input"
42819       { echo "$as_me:$LINENO: creating $ac_file" >&5
42820 echo "$as_me: creating $ac_file" >&6;}
42821     fi
42822
42823     case $ac_tag in
42824     *:-:* | *:-) cat >"$tmp/stdin";;
42825     esac
42826     ;;
42827   esac
42828
42829   ac_dir=`$as_dirname -- "$ac_file" ||
42830 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42831          X"$ac_file" : 'X\(//\)[^/]' \| \
42832          X"$ac_file" : 'X\(//\)$' \| \
42833          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42834 echo X"$ac_file" |
42835     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42836             s//\1/
42837             q
42838           }
42839           /^X\(\/\/\)[^/].*/{
42840             s//\1/
42841             q
42842           }
42843           /^X\(\/\/\)$/{
42844             s//\1/
42845             q
42846           }
42847           /^X\(\/\).*/{
42848             s//\1/
42849             q
42850           }
42851           s/.*/./; q'`
42852   { as_dir="$ac_dir"
42853   case $as_dir in #(
42854   -*) as_dir=./$as_dir;;
42855   esac
42856   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42857     as_dirs=
42858     while :; do
42859       case $as_dir in #(
42860       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42861       *) as_qdir=$as_dir;;
42862       esac
42863       as_dirs="'$as_qdir' $as_dirs"
42864       as_dir=`$as_dirname -- "$as_dir" ||
42865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42866          X"$as_dir" : 'X\(//\)[^/]' \| \
42867          X"$as_dir" : 'X\(//\)$' \| \
42868          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42869 echo X"$as_dir" |
42870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42871             s//\1/
42872             q
42873           }
42874           /^X\(\/\/\)[^/].*/{
42875             s//\1/
42876             q
42877           }
42878           /^X\(\/\/\)$/{
42879             s//\1/
42880             q
42881           }
42882           /^X\(\/\).*/{
42883             s//\1/
42884             q
42885           }
42886           s/.*/./; q'`
42887       test -d "$as_dir" && break
42888     done
42889     test -z "$as_dirs" || eval "mkdir $as_dirs"
42890   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42891 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42892    { (exit 1); exit 1; }; }; }
42893   ac_builddir=.
42894
42895 case "$ac_dir" in
42896 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42897 *)
42898   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42899   # A ".." for each directory in $ac_dir_suffix.
42900   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42901   case $ac_top_builddir_sub in
42902   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42903   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42904   esac ;;
42905 esac
42906 ac_abs_top_builddir=$ac_pwd
42907 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42908 # for backward compatibility:
42909 ac_top_builddir=$ac_top_build_prefix
42910
42911 case $srcdir in
42912   .)  # We are building in place.
42913     ac_srcdir=.
42914     ac_top_srcdir=$ac_top_builddir_sub
42915     ac_abs_top_srcdir=$ac_pwd ;;
42916   [\\/]* | ?:[\\/]* )  # Absolute name.
42917     ac_srcdir=$srcdir$ac_dir_suffix;
42918     ac_top_srcdir=$srcdir
42919     ac_abs_top_srcdir=$srcdir ;;
42920   *) # Relative name.
42921     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42922     ac_top_srcdir=$ac_top_build_prefix$srcdir
42923     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42924 esac
42925 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42926
42927
42928   case $ac_mode in
42929   :F)
42930   #
42931   # CONFIG_FILE
42932   #
42933
42934   case $INSTALL in
42935   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42936   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42937   esac
42938 _ACEOF
42939
42940 cat >>$CONFIG_STATUS <<\_ACEOF
42941 # If the template does not know about datarootdir, expand it.
42942 # FIXME: This hack should be removed a few years after 2.60.
42943 ac_datarootdir_hack=; ac_datarootdir_seen=
42944
42945 case `sed -n '/datarootdir/ {
42946   p
42947   q
42948 }
42949 /@datadir@/p
42950 /@docdir@/p
42951 /@infodir@/p
42952 /@localedir@/p
42953 /@mandir@/p
42954 ' $ac_file_inputs` in
42955 *datarootdir*) ac_datarootdir_seen=yes;;
42956 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42957   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42958 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42959 _ACEOF
42960 cat >>$CONFIG_STATUS <<_ACEOF
42961   ac_datarootdir_hack='
42962   s&@datadir@&$datadir&g
42963   s&@docdir@&$docdir&g
42964   s&@infodir@&$infodir&g
42965   s&@localedir@&$localedir&g
42966   s&@mandir@&$mandir&g
42967     s&\\\${datarootdir}&$datarootdir&g' ;;
42968 esac
42969 _ACEOF
42970
42971 # Neutralize VPATH when `$srcdir' = `.'.
42972 # Shell code in configure.ac might set extrasub.
42973 # FIXME: do we really want to maintain this feature?
42974 cat >>$CONFIG_STATUS <<_ACEOF
42975   sed "$ac_vpsub
42976 $extrasub
42977 _ACEOF
42978 cat >>$CONFIG_STATUS <<\_ACEOF
42979 :t
42980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42981 s&@configure_input@&$configure_input&;t t
42982 s&@top_builddir@&$ac_top_builddir_sub&;t t
42983 s&@srcdir@&$ac_srcdir&;t t
42984 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42985 s&@top_srcdir@&$ac_top_srcdir&;t t
42986 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42987 s&@builddir@&$ac_builddir&;t t
42988 s&@abs_builddir@&$ac_abs_builddir&;t t
42989 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42990 s&@INSTALL@&$ac_INSTALL&;t t
42991 $ac_datarootdir_hack
42992 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
42993
42994 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42995   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42996   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42997   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42998 which seems to be undefined.  Please make sure it is defined." >&5
42999 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43000 which seems to be undefined.  Please make sure it is defined." >&2;}
43001
43002   rm -f "$tmp/stdin"
43003   case $ac_file in
43004   -) cat "$tmp/out"; rm -f "$tmp/out";;
43005   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43006   esac
43007  ;;
43008   :H)
43009   #
43010   # CONFIG_HEADER
43011   #
43012 _ACEOF
43013
43014 # Transform confdefs.h into a sed script `conftest.defines', that
43015 # substitutes the proper values into config.h.in to produce config.h.
43016 rm -f conftest.defines conftest.tail
43017 # First, append a space to every undef/define line, to ease matching.
43018 echo 's/$/ /' >conftest.defines
43019 # Then, protect against being on the right side of a sed subst, or in
43020 # an unquoted here document, in config.status.  If some macros were
43021 # called several times there might be several #defines for the same
43022 # symbol, which is useless.  But do not sort them, since the last
43023 # AC_DEFINE must be honored.
43024 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43025 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43026 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43027 # PARAMS is the parameter list in the macro definition--in most cases, it's
43028 # just an empty string.
43029 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
43030 ac_dB='\\)[      (].*,\\1define\\2'
43031 ac_dC=' '
43032 ac_dD=' ,'
43033
43034 uniq confdefs.h |
43035   sed -n '
43036         t rset
43037         :rset
43038         s/^[     ]*#[    ]*define[       ][      ]*//
43039         t ok
43040         d
43041         :ok
43042         s/[\\&,]/\\&/g
43043         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43044         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43045   ' >>conftest.defines
43046
43047 # Remove the space that was appended to ease matching.
43048 # Then replace #undef with comments.  This is necessary, for
43049 # example, in the case of _POSIX_SOURCE, which is predefined and required
43050 # on some systems where configure will not decide to define it.
43051 # (The regexp can be short, since the line contains either #define or #undef.)
43052 echo 's/ $//
43053 s,^[     #]*u.*,/* & */,' >>conftest.defines
43054
43055 # Break up conftest.defines:
43056 ac_max_sed_lines=50
43057
43058 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43059 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43060 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43061 # et cetera.
43062 ac_in='$ac_file_inputs'
43063 ac_out='"$tmp/out1"'
43064 ac_nxt='"$tmp/out2"'
43065
43066 while :
43067 do
43068   # Write a here document:
43069     cat >>$CONFIG_STATUS <<_ACEOF
43070     # First, check the format of the line:
43071     cat >"\$tmp/defines.sed" <<\\CEOF
43072 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
43073 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
43074 b
43075 :def
43076 _ACEOF
43077   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43078   echo 'CEOF
43079     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43080   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43081   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43082   grep . conftest.tail >/dev/null || break
43083   rm -f conftest.defines
43084   mv conftest.tail conftest.defines
43085 done
43086 rm -f conftest.defines conftest.tail
43087
43088 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43089 cat >>$CONFIG_STATUS <<\_ACEOF
43090   if test x"$ac_file" != x-; then
43091     echo "/* $configure_input  */" >"$tmp/config.h"
43092     cat "$ac_result" >>"$tmp/config.h"
43093     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43094       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43095 echo "$as_me: $ac_file is unchanged" >&6;}
43096     else
43097       rm -f $ac_file
43098       mv "$tmp/config.h" $ac_file
43099     fi
43100   else
43101     echo "/* $configure_input  */"
43102     cat "$ac_result"
43103   fi
43104   rm -f "$tmp/out12"
43105  ;;
43106
43107   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43108 echo "$as_me: executing $ac_file commands" >&6;}
43109  ;;
43110   esac
43111
43112
43113   case $ac_file$ac_mode in
43114     "libtool":C)
43115
43116     # See if we are running on zsh, and set the options which allow our
43117     # commands through without removal of \ escapes.
43118     if test -n "${ZSH_VERSION+set}" ; then
43119       setopt NO_GLOB_SUBST
43120     fi
43121
43122     cfgfile="${ofile}T"
43123     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43124     $RM "$cfgfile"
43125
43126     cat <<_LT_EOF >> "$cfgfile"
43127 #! $SHELL
43128
43129 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43130 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43131 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43132 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43133 #
43134 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43135 #                 2006, 2007, 2008 Free Software Foundation, Inc.
43136 #   Written by Gordon Matzigkeit, 1996
43137 #
43138 #   This file is part of GNU Libtool.
43139 #
43140 # GNU Libtool is free software; you can redistribute it and/or
43141 # modify it under the terms of the GNU General Public License as
43142 # published by the Free Software Foundation; either version 2 of
43143 # the License, or (at your option) any later version.
43144 #
43145 # As a special exception to the GNU General Public License,
43146 # if you distribute this file as part of a program or library that
43147 # is built using GNU Libtool, you may include this file under the
43148 # same distribution terms that you use for the rest of that program.
43149 #
43150 # GNU Libtool is distributed in the hope that it will be useful,
43151 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43152 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43153 # GNU General Public License for more details.
43154 #
43155 # You should have received a copy of the GNU General Public License
43156 # along with GNU Libtool; see the file COPYING.  If not, a copy
43157 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43158 # obtained by writing to the Free Software Foundation, Inc.,
43159 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43160
43161
43162 # The names of the tagged configurations supported by this script.
43163 available_tags="CXX "
43164
43165 # ### BEGIN LIBTOOL CONFIG
43166
43167 # Which release of libtool.m4 was used?
43168 macro_version=$macro_version
43169 macro_revision=$macro_revision
43170
43171 # Whether or not to build shared libraries.
43172 build_libtool_libs=$enable_shared
43173
43174 # Whether or not to build static libraries.
43175 build_old_libs=$enable_static
43176
43177 # What type of objects to build.
43178 pic_mode=$pic_mode
43179
43180 # Whether or not to optimize for fast installation.
43181 fast_install=$enable_fast_install
43182
43183 # The host system.
43184 host_alias=$host_alias
43185 host=$host
43186 host_os=$host_os
43187
43188 # The build system.
43189 build_alias=$build_alias
43190 build=$build
43191 build_os=$build_os
43192
43193 # A sed program that does not truncate output.
43194 SED=$lt_SED
43195
43196 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43197 Xsed="\$SED -e 1s/^X//"
43198
43199 # A grep program that handles long lines.
43200 GREP=$lt_GREP
43201
43202 # An ERE matcher.
43203 EGREP=$lt_EGREP
43204
43205 # A literal string matcher.
43206 FGREP=$lt_FGREP
43207
43208 # A BSD- or MS-compatible name lister.
43209 NM=$lt_NM
43210
43211 # Whether we need soft or hard links.
43212 LN_S=$lt_LN_S
43213
43214 # What is the maximum length of a command?
43215 max_cmd_len=$max_cmd_len
43216
43217 # Object file suffix (normally "o").
43218 objext=$ac_objext
43219
43220 # Executable file suffix (normally "").
43221 exeext=$exeext
43222
43223 # whether the shell understands "unset".
43224 lt_unset=$lt_unset
43225
43226 # turn spaces into newlines.
43227 SP2NL=$lt_lt_SP2NL
43228
43229 # turn newlines into spaces.
43230 NL2SP=$lt_lt_NL2SP
43231
43232 # How to create reloadable object files.
43233 reload_flag=$lt_reload_flag
43234 reload_cmds=$lt_reload_cmds
43235
43236 # An object symbol dumper.
43237 OBJDUMP=$lt_OBJDUMP
43238
43239 # Method to check whether dependent libraries are shared objects.
43240 deplibs_check_method=$lt_deplibs_check_method
43241
43242 # Command to use when deplibs_check_method == "file_magic".
43243 file_magic_cmd=$lt_file_magic_cmd
43244
43245 # The archiver.
43246 AR=$lt_AR
43247 AR_FLAGS=$lt_AR_FLAGS
43248
43249 # A symbol stripping program.
43250 STRIP=$lt_STRIP
43251
43252 # Commands used to install an old-style archive.
43253 RANLIB=$lt_RANLIB
43254 old_postinstall_cmds=$lt_old_postinstall_cmds
43255 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43256
43257 # A C compiler.
43258 LTCC=$lt_CC
43259
43260 # LTCC compiler flags.
43261 LTCFLAGS=$lt_CFLAGS
43262
43263 # Take the output of nm and produce a listing of raw symbols and C names.
43264 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43265
43266 # Transform the output of nm in a proper C declaration.
43267 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43268
43269 # Transform the output of nm in a C name address pair.
43270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43271
43272 # Transform the output of nm in a C name address pair when lib prefix is needed.
43273 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43274
43275 # The name of the directory that contains temporary libtool files.
43276 objdir=$objdir
43277
43278 # Shell to use when invoking shell scripts.
43279 SHELL=$lt_SHELL
43280
43281 # An echo program that does not interpret backslashes.
43282 ECHO=$lt_ECHO
43283
43284 # Used to examine libraries when file_magic_cmd begins with "file".
43285 MAGIC_CMD=$MAGIC_CMD
43286
43287 # Must we lock files when doing compilation?
43288 need_locks=$lt_need_locks
43289
43290 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43291 DSYMUTIL=$lt_DSYMUTIL
43292
43293 # Tool to change global to local symbols on Mac OS X.
43294 NMEDIT=$lt_NMEDIT
43295
43296 # Tool to manipulate fat objects and archives on Mac OS X.
43297 LIPO=$lt_LIPO
43298
43299 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43300 OTOOL=$lt_OTOOL
43301
43302 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43303 OTOOL64=$lt_OTOOL64
43304
43305 # Old archive suffix (normally "a").
43306 libext=$libext
43307
43308 # Shared library suffix (normally ".so").
43309 shrext_cmds=$lt_shrext_cmds
43310
43311 # The commands to extract the exported symbol list from a shared archive.
43312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43313
43314 # Variables whose values should be saved in libtool wrapper scripts and
43315 # restored at link time.
43316 variables_saved_for_relink=$lt_variables_saved_for_relink
43317
43318 # Do we need the "lib" prefix for modules?
43319 need_lib_prefix=$need_lib_prefix
43320
43321 # Do we need a version for libraries?
43322 need_version=$need_version
43323
43324 # Library versioning type.
43325 version_type=$version_type
43326
43327 # Shared library runtime path variable.
43328 runpath_var=$runpath_var
43329
43330 # Shared library path variable.
43331 shlibpath_var=$shlibpath_var
43332
43333 # Is shlibpath searched before the hard-coded library search path?
43334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43335
43336 # Format of library name prefix.
43337 libname_spec=$lt_libname_spec
43338
43339 # List of archive names.  First name is the real one, the rest are links.
43340 # The last name is the one that the linker finds with -lNAME
43341 library_names_spec=$lt_library_names_spec
43342
43343 # The coded name of the library, if different from the real name.
43344 soname_spec=$lt_soname_spec
43345
43346 # Command to use after installation of a shared archive.
43347 postinstall_cmds=$lt_postinstall_cmds
43348
43349 # Command to use after uninstallation of a shared archive.
43350 postuninstall_cmds=$lt_postuninstall_cmds
43351
43352 # Commands used to finish a libtool library installation in a directory.
43353 finish_cmds=$lt_finish_cmds
43354
43355 # As "finish_cmds", except a single script fragment to be evaled but
43356 # not shown.
43357 finish_eval=$lt_finish_eval
43358
43359 # Whether we should hardcode library paths into libraries.
43360 hardcode_into_libs=$hardcode_into_libs
43361
43362 # Compile-time system search path for libraries.
43363 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43364
43365 # Run-time system search path for libraries.
43366 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43367
43368 # Whether dlopen is supported.
43369 dlopen_support=$enable_dlopen
43370
43371 # Whether dlopen of programs is supported.
43372 dlopen_self=$enable_dlopen_self
43373
43374 # Whether dlopen of statically linked programs is supported.
43375 dlopen_self_static=$enable_dlopen_self_static
43376
43377 # Commands to strip libraries.
43378 old_striplib=$lt_old_striplib
43379 striplib=$lt_striplib
43380
43381
43382 # The linker used to build libraries.
43383 LD=$lt_LD
43384
43385 # Commands used to build an old-style archive.
43386 old_archive_cmds=$lt_old_archive_cmds
43387
43388 # A language specific compiler.
43389 CC=$lt_compiler
43390
43391 # Is the compiler the GNU compiler?
43392 with_gcc=$GCC
43393
43394 # Compiler flag to turn off builtin functions.
43395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43396
43397 # How to pass a linker flag through the compiler.
43398 wl=$lt_lt_prog_compiler_wl
43399
43400 # Additional compiler flags for building library objects.
43401 pic_flag=$lt_lt_prog_compiler_pic
43402
43403 # Compiler flag to prevent dynamic linking.
43404 link_static_flag=$lt_lt_prog_compiler_static
43405
43406 # Does compiler simultaneously support -c and -o options?
43407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43408
43409 # Whether or not to add -lc for building shared libraries.
43410 build_libtool_need_lc=$archive_cmds_need_lc
43411
43412 # Whether or not to disallow shared libs when runtime libs are static.
43413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43414
43415 # Compiler flag to allow reflexive dlopens.
43416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43417
43418 # Compiler flag to generate shared objects directly from archives.
43419 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43420
43421 # Whether the compiler copes with passing no objects directly.
43422 compiler_needs_object=$lt_compiler_needs_object
43423
43424 # Create an old-style archive from a shared archive.
43425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43426
43427 # Create a temporary old-style archive to link instead of a shared archive.
43428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43429
43430 # Commands used to build a shared archive.
43431 archive_cmds=$lt_archive_cmds
43432 archive_expsym_cmds=$lt_archive_expsym_cmds
43433
43434 # Commands used to build a loadable module if different from building
43435 # a shared archive.
43436 module_cmds=$lt_module_cmds
43437 module_expsym_cmds=$lt_module_expsym_cmds
43438
43439 # Whether we are building with GNU ld or not.
43440 with_gnu_ld=$lt_with_gnu_ld
43441
43442 # Flag that allows shared libraries with undefined symbols to be built.
43443 allow_undefined_flag=$lt_allow_undefined_flag
43444
43445 # Flag that enforces no undefined symbols.
43446 no_undefined_flag=$lt_no_undefined_flag
43447
43448 # Flag to hardcode \$libdir into a binary during linking.
43449 # This must work even if \$libdir does not exist
43450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43451
43452 # If ld is used when linking, flag to hardcode \$libdir into a binary
43453 # during linking.  This must work even if \$libdir does not exist.
43454 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43455
43456 # Whether we need a single "-rpath" flag with a separated argument.
43457 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43458
43459 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43460 # DIR into the resulting binary.
43461 hardcode_direct=$hardcode_direct
43462
43463 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43464 # DIR into the resulting binary and the resulting library dependency is
43465 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43466 # library is relocated.
43467 hardcode_direct_absolute=$hardcode_direct_absolute
43468
43469 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43470 # into the resulting binary.
43471 hardcode_minus_L=$hardcode_minus_L
43472
43473 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43474 # into the resulting binary.
43475 hardcode_shlibpath_var=$hardcode_shlibpath_var
43476
43477 # Set to "yes" if building a shared library automatically hardcodes DIR
43478 # into the library and all subsequent libraries and executables linked
43479 # against it.
43480 hardcode_automatic=$hardcode_automatic
43481
43482 # Set to yes if linker adds runtime paths of dependent libraries
43483 # to runtime path list.
43484 inherit_rpath=$inherit_rpath
43485
43486 # Whether libtool must link a program against all its dependency libraries.
43487 link_all_deplibs=$link_all_deplibs
43488
43489 # Fix the shell variable \$srcfile for the compiler.
43490 fix_srcfile_path=$lt_fix_srcfile_path
43491
43492 # Set to "yes" if exported symbols are required.
43493 always_export_symbols=$always_export_symbols
43494
43495 # The commands to list exported symbols.
43496 export_symbols_cmds=$lt_export_symbols_cmds
43497
43498 # Symbols that should not be listed in the preloaded symbols.
43499 exclude_expsyms=$lt_exclude_expsyms
43500
43501 # Symbols that must always be exported.
43502 include_expsyms=$lt_include_expsyms
43503
43504 # Commands necessary for linking programs (against libraries) with templates.
43505 prelink_cmds=$lt_prelink_cmds
43506
43507 # Specify filename containing input files.
43508 file_list_spec=$lt_file_list_spec
43509
43510 # How to hardcode a shared library path into an executable.
43511 hardcode_action=$hardcode_action
43512
43513 # The directories searched by this compiler when creating a shared library.
43514 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43515
43516 # Dependencies to place before and after the objects being linked to
43517 # create a shared library.
43518 predep_objects=$lt_predep_objects
43519 postdep_objects=$lt_postdep_objects
43520 predeps=$lt_predeps
43521 postdeps=$lt_postdeps
43522
43523 # The library search path used internally by the compiler when linking
43524 # a shared library.
43525 compiler_lib_search_path=$lt_compiler_lib_search_path
43526
43527 # ### END LIBTOOL CONFIG
43528
43529 _LT_EOF
43530
43531   case $host_os in
43532   aix3*)
43533     cat <<\_LT_EOF >> "$cfgfile"
43534 # AIX sometimes has problems with the GCC collect2 program.  For some
43535 # reason, if we set the COLLECT_NAMES environment variable, the problems
43536 # vanish in a puff of smoke.
43537 if test "X${COLLECT_NAMES+set}" != Xset; then
43538   COLLECT_NAMES=
43539   export COLLECT_NAMES
43540 fi
43541 _LT_EOF
43542     ;;
43543   esac
43544
43545
43546 ltmain="$ac_aux_dir/ltmain.sh"
43547
43548
43549   # We use sed instead of cat because bash on DJGPP gets confused if
43550   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43551   # text mode, it properly converts lines to CR/LF.  This bash problem
43552   # is reportedly fixed, but why not run on old versions too?
43553   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43554     || (rm -f "$cfgfile"; exit 1)
43555
43556   case $xsi_shell in
43557   yes)
43558     cat << \_LT_EOF >> "$cfgfile"
43559
43560 # func_dirname file append nondir_replacement
43561 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43562 # otherwise set result to NONDIR_REPLACEMENT.
43563 func_dirname ()
43564 {
43565   case ${1} in
43566     */*) func_dirname_result="${1%/*}${2}" ;;
43567     *  ) func_dirname_result="${3}" ;;
43568   esac
43569 }
43570
43571 # func_basename file
43572 func_basename ()
43573 {
43574   func_basename_result="${1##*/}"
43575 }
43576
43577 # func_dirname_and_basename file append nondir_replacement
43578 # perform func_basename and func_dirname in a single function
43579 # call:
43580 #   dirname:  Compute the dirname of FILE.  If nonempty,
43581 #             add APPEND to the result, otherwise set result
43582 #             to NONDIR_REPLACEMENT.
43583 #             value returned in "$func_dirname_result"
43584 #   basename: Compute filename of FILE.
43585 #             value retuned in "$func_basename_result"
43586 # Implementation must be kept synchronized with func_dirname
43587 # and func_basename. For efficiency, we do not delegate to
43588 # those functions but instead duplicate the functionality here.
43589 func_dirname_and_basename ()
43590 {
43591   case ${1} in
43592     */*) func_dirname_result="${1%/*}${2}" ;;
43593     *  ) func_dirname_result="${3}" ;;
43594   esac
43595   func_basename_result="${1##*/}"
43596 }
43597
43598 # func_stripname prefix suffix name
43599 # strip PREFIX and SUFFIX off of NAME.
43600 # PREFIX and SUFFIX must not contain globbing or regex special
43601 # characters, hashes, percent signs, but SUFFIX may contain a leading
43602 # dot (in which case that matches only a dot).
43603 func_stripname ()
43604 {
43605   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43606   # positional parameters, so assign one to ordinary parameter first.
43607   func_stripname_result=${3}
43608   func_stripname_result=${func_stripname_result#"${1}"}
43609   func_stripname_result=${func_stripname_result%"${2}"}
43610 }
43611
43612 # func_opt_split
43613 func_opt_split ()
43614 {
43615   func_opt_split_opt=${1%%=*}
43616   func_opt_split_arg=${1#*=}
43617 }
43618
43619 # func_lo2o object
43620 func_lo2o ()
43621 {
43622   case ${1} in
43623     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43624     *)    func_lo2o_result=${1} ;;
43625   esac
43626 }
43627
43628 # func_xform libobj-or-source
43629 func_xform ()
43630 {
43631   func_xform_result=${1%.*}.lo
43632 }
43633
43634 # func_arith arithmetic-term...
43635 func_arith ()
43636 {
43637   func_arith_result=$(( $* ))
43638 }
43639
43640 # func_len string
43641 # STRING may not start with a hyphen.
43642 func_len ()
43643 {
43644   func_len_result=${#1}
43645 }
43646
43647 _LT_EOF
43648     ;;
43649   *) # Bourne compatible functions.
43650     cat << \_LT_EOF >> "$cfgfile"
43651
43652 # func_dirname file append nondir_replacement
43653 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43654 # otherwise set result to NONDIR_REPLACEMENT.
43655 func_dirname ()
43656 {
43657   # Extract subdirectory from the argument.
43658   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43659   if test "X$func_dirname_result" = "X${1}"; then
43660     func_dirname_result="${3}"
43661   else
43662     func_dirname_result="$func_dirname_result${2}"
43663   fi
43664 }
43665
43666 # func_basename file
43667 func_basename ()
43668 {
43669   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43670 }
43671
43672
43673 # func_stripname prefix suffix name
43674 # strip PREFIX and SUFFIX off of NAME.
43675 # PREFIX and SUFFIX must not contain globbing or regex special
43676 # characters, hashes, percent signs, but SUFFIX may contain a leading
43677 # dot (in which case that matches only a dot).
43678 # func_strip_suffix prefix name
43679 func_stripname ()
43680 {
43681   case ${2} in
43682     .*) func_stripname_result=`$ECHO "X${3}" \
43683            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43684     *)  func_stripname_result=`$ECHO "X${3}" \
43685            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43686   esac
43687 }
43688
43689 # sed scripts:
43690 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43691 my_sed_long_arg='1s/^-[^=]*=//'
43692
43693 # func_opt_split
43694 func_opt_split ()
43695 {
43696   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43697   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43698 }
43699
43700 # func_lo2o object
43701 func_lo2o ()
43702 {
43703   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43704 }
43705
43706 # func_xform libobj-or-source
43707 func_xform ()
43708 {
43709   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43710 }
43711
43712 # func_arith arithmetic-term...
43713 func_arith ()
43714 {
43715   func_arith_result=`expr "$@"`
43716 }
43717
43718 # func_len string
43719 # STRING may not start with a hyphen.
43720 func_len ()
43721 {
43722   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43723 }
43724
43725 _LT_EOF
43726 esac
43727
43728 case $lt_shell_append in
43729   yes)
43730     cat << \_LT_EOF >> "$cfgfile"
43731
43732 # func_append var value
43733 # Append VALUE to the end of shell variable VAR.
43734 func_append ()
43735 {
43736   eval "$1+=\$2"
43737 }
43738 _LT_EOF
43739     ;;
43740   *)
43741     cat << \_LT_EOF >> "$cfgfile"
43742
43743 # func_append var value
43744 # Append VALUE to the end of shell variable VAR.
43745 func_append ()
43746 {
43747   eval "$1=\$$1\$2"
43748 }
43749
43750 _LT_EOF
43751     ;;
43752   esac
43753
43754
43755   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43756     || (rm -f "$cfgfile"; exit 1)
43757
43758   mv -f "$cfgfile" "$ofile" ||
43759     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43760   chmod +x "$ofile"
43761
43762
43763     cat <<_LT_EOF >> "$ofile"
43764
43765 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43766
43767 # The linker used to build libraries.
43768 LD=$lt_LD_CXX
43769
43770 # Commands used to build an old-style archive.
43771 old_archive_cmds=$lt_old_archive_cmds_CXX
43772
43773 # A language specific compiler.
43774 CC=$lt_compiler_CXX
43775
43776 # Is the compiler the GNU compiler?
43777 with_gcc=$GCC_CXX
43778
43779 # Compiler flag to turn off builtin functions.
43780 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43781
43782 # How to pass a linker flag through the compiler.
43783 wl=$lt_lt_prog_compiler_wl_CXX
43784
43785 # Additional compiler flags for building library objects.
43786 pic_flag=$lt_lt_prog_compiler_pic_CXX
43787
43788 # Compiler flag to prevent dynamic linking.
43789 link_static_flag=$lt_lt_prog_compiler_static_CXX
43790
43791 # Does compiler simultaneously support -c and -o options?
43792 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43793
43794 # Whether or not to add -lc for building shared libraries.
43795 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43796
43797 # Whether or not to disallow shared libs when runtime libs are static.
43798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43799
43800 # Compiler flag to allow reflexive dlopens.
43801 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43802
43803 # Compiler flag to generate shared objects directly from archives.
43804 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43805
43806 # Whether the compiler copes with passing no objects directly.
43807 compiler_needs_object=$lt_compiler_needs_object_CXX
43808
43809 # Create an old-style archive from a shared archive.
43810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43811
43812 # Create a temporary old-style archive to link instead of a shared archive.
43813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43814
43815 # Commands used to build a shared archive.
43816 archive_cmds=$lt_archive_cmds_CXX
43817 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43818
43819 # Commands used to build a loadable module if different from building
43820 # a shared archive.
43821 module_cmds=$lt_module_cmds_CXX
43822 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43823
43824 # Whether we are building with GNU ld or not.
43825 with_gnu_ld=$lt_with_gnu_ld_CXX
43826
43827 # Flag that allows shared libraries with undefined symbols to be built.
43828 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43829
43830 # Flag that enforces no undefined symbols.
43831 no_undefined_flag=$lt_no_undefined_flag_CXX
43832
43833 # Flag to hardcode \$libdir into a binary during linking.
43834 # This must work even if \$libdir does not exist
43835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43836
43837 # If ld is used when linking, flag to hardcode \$libdir into a binary
43838 # during linking.  This must work even if \$libdir does not exist.
43839 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43840
43841 # Whether we need a single "-rpath" flag with a separated argument.
43842 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43843
43844 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43845 # DIR into the resulting binary.
43846 hardcode_direct=$hardcode_direct_CXX
43847
43848 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43849 # DIR into the resulting binary and the resulting library dependency is
43850 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43851 # library is relocated.
43852 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43853
43854 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43855 # into the resulting binary.
43856 hardcode_minus_L=$hardcode_minus_L_CXX
43857
43858 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43859 # into the resulting binary.
43860 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43861
43862 # Set to "yes" if building a shared library automatically hardcodes DIR
43863 # into the library and all subsequent libraries and executables linked
43864 # against it.
43865 hardcode_automatic=$hardcode_automatic_CXX
43866
43867 # Set to yes if linker adds runtime paths of dependent libraries
43868 # to runtime path list.
43869 inherit_rpath=$inherit_rpath_CXX
43870
43871 # Whether libtool must link a program against all its dependency libraries.
43872 link_all_deplibs=$link_all_deplibs_CXX
43873
43874 # Fix the shell variable \$srcfile for the compiler.
43875 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43876
43877 # Set to "yes" if exported symbols are required.
43878 always_export_symbols=$always_export_symbols_CXX
43879
43880 # The commands to list exported symbols.
43881 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43882
43883 # Symbols that should not be listed in the preloaded symbols.
43884 exclude_expsyms=$lt_exclude_expsyms_CXX
43885
43886 # Symbols that must always be exported.
43887 include_expsyms=$lt_include_expsyms_CXX
43888
43889 # Commands necessary for linking programs (against libraries) with templates.
43890 prelink_cmds=$lt_prelink_cmds_CXX
43891
43892 # Specify filename containing input files.
43893 file_list_spec=$lt_file_list_spec_CXX
43894
43895 # How to hardcode a shared library path into an executable.
43896 hardcode_action=$hardcode_action_CXX
43897
43898 # The directories searched by this compiler when creating a shared library.
43899 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43900
43901 # Dependencies to place before and after the objects being linked to
43902 # create a shared library.
43903 predep_objects=$lt_predep_objects_CXX
43904 postdep_objects=$lt_postdep_objects_CXX
43905 predeps=$lt_predeps_CXX
43906 postdeps=$lt_postdeps_CXX
43907
43908 # The library search path used internally by the compiler when linking
43909 # a shared library.
43910 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43911
43912 # ### END LIBTOOL TAG CONFIG: CXX
43913 _LT_EOF
43914
43915  ;;
43916     "default-1":C)
43917     for ac_file in $CONFIG_FILES; do
43918       # Support "outfile[:infile[:infile...]]"
43919       case "$ac_file" in
43920         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43921       esac
43922       # PO directories have a Makefile.in generated from Makefile.in.in.
43923       case "$ac_file" in */Makefile.in)
43924         # Adjust a relative srcdir.
43925         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43926         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
43927         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43928         # In autoconf-2.13 it is called $ac_given_srcdir.
43929         # In autoconf-2.50 it is called $srcdir.
43930         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
43931         case "$ac_given_srcdir" in
43932           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
43933           /*) top_srcdir="$ac_given_srcdir" ;;
43934           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
43935         esac
43936         # Treat a directory as a PO directory if and only if it has a
43937         # POTFILES.in file. This allows packages to have multiple PO
43938         # directories under different names or in different locations.
43939         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43940           rm -f "$ac_dir/POTFILES"
43941           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
43942           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43943           POMAKEFILEDEPS="POTFILES.in"
43944           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43945           # on $ac_dir but don't depend on user-specified configuration
43946           # parameters.
43947           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43948             # The LINGUAS file contains the set of available languages.
43949             if test -n "$OBSOLETE_ALL_LINGUAS"; then
43950               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
43951             fi
43952             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43953             # Hide the ALL_LINGUAS assigment from automake.
43954             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43955             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
43956           else
43957             # The set of available languages was given in configure.in.
43958             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43959           fi
43960           # Compute POFILES
43961           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43962           # Compute UPDATEPOFILES
43963           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43964           # Compute DUMMYPOFILES
43965           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43966           # Compute GMOFILES
43967           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43968           case "$ac_given_srcdir" in
43969             .) srcdirpre= ;;
43970             *) srcdirpre='$(srcdir)/' ;;
43971           esac
43972           POFILES=
43973           UPDATEPOFILES=
43974           DUMMYPOFILES=
43975           GMOFILES=
43976           for lang in $ALL_LINGUAS; do
43977             POFILES="$POFILES $srcdirpre$lang.po"
43978             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
43979             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
43980             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
43981           done
43982           # CATALOGS depends on both $ac_dir and the user's LINGUAS
43983           # environment variable.
43984           INST_LINGUAS=
43985           if test -n "$ALL_LINGUAS"; then
43986             for presentlang in $ALL_LINGUAS; do
43987               useit=no
43988               if test "%UNSET%" != "$LINGUAS"; then
43989                 desiredlanguages="$LINGUAS"
43990               else
43991                 desiredlanguages="$ALL_LINGUAS"
43992               fi
43993               for desiredlang in $desiredlanguages; do
43994                 # Use the presentlang catalog if desiredlang is
43995                 #   a. equal to presentlang, or
43996                 #   b. a variant of presentlang (because in this case,
43997                 #      presentlang can be used as a fallback for messages
43998                 #      which are not translated in the desiredlang catalog).
43999                 case "$desiredlang" in
44000                   "$presentlang"*) useit=yes;;
44001                 esac
44002               done
44003               if test $useit = yes; then
44004                 INST_LINGUAS="$INST_LINGUAS $presentlang"
44005               fi
44006             done
44007           fi
44008           CATALOGS=
44009           if test -n "$INST_LINGUAS"; then
44010             for lang in $INST_LINGUAS; do
44011               CATALOGS="$CATALOGS $lang.gmo"
44012             done
44013           fi
44014           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44015           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"
44016           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44017             if test -f "$f"; then
44018               case "$f" in
44019                 *.orig | *.bak | *~) ;;
44020                 *) cat "$f" >> "$ac_dir/Makefile" ;;
44021               esac
44022             fi
44023           done
44024         fi
44025         ;;
44026       esac
44027     done ;;
44028     "default":C)
44029  ;;
44030
44031   esac
44032 done # for ac_tag
44033
44034
44035 { (exit 0); exit 0; }
44036 _ACEOF
44037 chmod +x $CONFIG_STATUS
44038 ac_clean_files=$ac_clean_files_save
44039
44040
44041 # configure is writing to config.log, and then calls config.status.
44042 # config.status does its own redirection, appending to config.log.
44043 # Unfortunately, on DOS this fails, as config.log is still kept open
44044 # by configure, so config.status won't be able to write to it; its
44045 # output is simply discarded.  So we exec the FD to /dev/null,
44046 # effectively closing config.log, so it can be properly (re)opened and
44047 # appended to by config.status.  When coming back to configure, we
44048 # need to make the FD available again.
44049 if test "$no_create" != yes; then
44050   ac_cs_success=:
44051   ac_config_status_args=
44052   test "$silent" = yes &&
44053     ac_config_status_args="$ac_config_status_args --quiet"
44054   exec 5>/dev/null
44055   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44056   exec 5>>config.log
44057   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44058   # would make configure fail if this is the last instruction.
44059   $ac_cs_success || { (exit 1); exit 1; }
44060 fi
44061
44062
44063 if test "${support_bat}" = "yes" ; then
44064    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44065       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44066       exit 1
44067    fi
44068
44069    QMAKEBIN="qmake"
44070
44071    if test "x$QMAKEQT4" != "xnone"; then
44072        QMAKEBIN=qmake-qt4
44073    fi
44074
44075    cd src/qt-console
44076    chmod 755 install_conf_file build-depkgs-qt-console
44077    echo "Creating bat Makefile"
44078    $QMAKEBIN
44079    make clean
44080    cd ${BUILD_DIR}
44081 fi
44082
44083 if test X"$GCC" = "Xyes" ; then
44084   echo "Doing make of dependencies"
44085   ${MAKE:-make} depend
44086 fi
44087
44088 cd scripts
44089 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44090 chmod 755 dvd-handler dvd-simulator
44091 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44092 cd ..
44093
44094 c=updatedb
44095 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
44096 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
44097
44098 c=src/cats
44099
44100 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
44101 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
44102
44103 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
44104 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
44105
44106 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
44107 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
44108
44109 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
44110 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
44111
44112 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
44113 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
44114
44115 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
44116 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
44117
44118 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44119 chmod 755 $c/sqlite
44120 chmod 755 $c/mysql
44121
44122 chmod 755 src/win32/build-depkgs-mingw32
44123
44124 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44125    largefile_support="yes"
44126 fi
44127
44128 if test X"$GCC" = "Xyes" ; then
44129                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44130    if test "x${CCVERSION}" = "x" ; then
44131       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44132    fi
44133    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44134    if test x"${CXXVERSION}" = x ; then
44135       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44136    fi
44137 fi
44138
44139 if test "x${db_type}" = "xInternal" ; then
44140    echo " "
44141    echo " "
44142    echo "You have not specified either --enable-client-only or one of the"
44143    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44144    echo "  This is not permitted. Please reconfigure."
44145    echo " "
44146    echo "Aborting the configuration ..."
44147    echo " "
44148    echo " "
44149    exit 1
44150 fi
44151
44152 echo "
44153 Configuration on `date`:
44154
44155    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44156    Bacula version:          ${BACULA} ${VERSION} (${DATE})
44157    Source code location:    ${srcdir}
44158    Install binaries:        ${sbindir}
44159    Install libraries:       ${libdir}
44160    Install config files:    ${sysconfdir}
44161    Scripts directory:       ${scriptdir}
44162    Archive directory:       ${archivedir}
44163    Working directory:       ${working_dir}
44164    PID directory:           ${piddir}
44165    Subsys directory:        ${subsysdir}
44166    Man directory:           ${mandir}
44167    Data directory:          ${datarootdir}
44168    C Compiler:              ${CC} ${CCVERSION}
44169    C++ Compiler:            ${CXX} ${CXXVERSION}
44170    Compiler flags:          ${WCFLAGS} ${CFLAGS}
44171    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
44172    Libraries:               ${LIBS}
44173    Statically Linked Tools: ${support_static_tools}
44174    Statically Linked FD:    ${support_static_fd}
44175    Statically Linked SD:    ${support_static_sd}
44176    Statically Linked DIR:   ${support_static_dir}
44177    Statically Linked CONS:  ${support_static_cons}
44178    Database type:           ${db_type}
44179    Database port:           ${db_port}
44180    Database lib:            ${DB_LIBS}
44181    Database name:           ${db_name}
44182    Database user:           ${db_user}
44183
44184    Job Output Email:        ${job_email}
44185    Traceback Email:         ${dump_email}
44186    SMTP Host Address:       ${smtp_host}
44187
44188    Director Port:           ${dir_port}
44189    File daemon Port:        ${fd_port}
44190    Storage daemon Port:     ${sd_port}
44191
44192    Director User:           ${dir_user}
44193    Director Group:          ${dir_group}
44194    Storage Daemon User:     ${sd_user}
44195    Storage DaemonGroup:     ${sd_group}
44196    File Daemon User:        ${fd_user}
44197    File Daemon Group:       ${fd_group}
44198
44199    SQL binaries Directory   ${SQL_BINDIR}
44200
44201    Large file support:      $largefile_support
44202    Bacula conio support:    ${got_conio} ${CONS_LIBS}
44203    readline support:        ${got_readline} ${PRTREADLINE_SRC}
44204    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
44205    TLS support:             ${support_tls}
44206    Encryption support:      ${support_crypto}
44207    ZLIB support:            ${have_zlib}
44208    enable-smartalloc:       ${support_smartalloc}
44209    bat support:             ${support_bat} ${QWT_LDFLAGS}
44210    enable-gnome:            ${support_gnome} ${gnome_version}
44211    enable-bwx-console:      ${support_wx_console} ${wx_version}
44212    enable-tray-monitor:     ${support_tray_monitor}
44213    client-only:             ${build_client_only}
44214    build-dird:              ${build_dird}
44215    build-stored:            ${build_stored}
44216    ACL support:             ${have_acl}
44217    Python support:          ${support_python} ${PYTHON_LIBS}
44218    Batch insert enabled:    ${support_batch_insert}
44219
44220   " > config.out
44221
44222 cat config.out