]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add back Marco's configure.in changes without the libdir part
[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=no]
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   --disable-acl           disable acl support [default=auto]
1668   --disable-xattr         disable xattr support [default=auto]
1669
1670 Optional Packages:
1671   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1672   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1673   --with-pic              try to use only PIC/non-PIC objects [default=use
1674                           both]
1675   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1676   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1677   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1678   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1679   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1680   --without-libintl-prefix     don't search for libintl in includedir and libdir
1681   --with-included-gettext use the GNU gettext library included here
1682   --with-qwt[=DIR]        specify qwt library directory
1683   --with-readline[=DIR]   specify readline library directory
1684   --with-python[=DIR]     Include Python support. DIR is the Python base
1685                           install directory, default is to search through a
1686                           number of common places for the Python files.
1687   --with-tcp-wrappers[=DIR]
1688                           enable tcpwrappers support
1689   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1690   --with-working-dir=PATH specify path of Bacula working directory
1691   --with-archivedir=PATH  specify path of SD archive directory
1692   --with-scriptdir=PATH   specify path of Bacula scripts directory
1693   --with-plugindir=PATH   specify path of Bacula plugins directory
1694   --with-dump-email=EMAIL dump email address
1695   --with-job-email=EMAIL  job output email address
1696   --with-smtp-host=HOST   SMTP mail host address
1697   --with-pid-dir=PATH     specify location of Bacula pid files
1698   --with-subsys-dir=PATH  specify location of Bacula subsys file
1699   --with-baseport=PORT    specify base port address for daemons
1700   --with-dir-password=PASSWORD
1701                           specify Director's password
1702   --with-fd-password=PASSWORD
1703                           specify Client's password
1704   --with-sd-password=PASSWORD
1705                           specify Storage daemon's password
1706   --with-mon-dir-password=PASSWORD
1707                           specify Director's password used by the monitor
1708   --with-mon-fd-password=PASSWORD
1709                           specify Client's password used by the monitor
1710   --with-mon-sd-password=PASSWORD
1711                           specify Storage daemon's password used by the
1712                           monitor
1713   --with-db-name=DBNAME   specify database name [default=bacula]
1714   --with-db-user=UNAME    specify database user [default=bacula]
1715   --with-db-password=PWD  specify database password [default=*none*]
1716   --with-db-port=DBPORT   specify a database port [default=null]
1717   --with-dir-user=USER    specify user for Director daemon
1718   --with-dir-group=GROUP  specify group for Director daemon
1719   --with-sd-user=USER     specify user for Storage daemon
1720   --with-sd-group=GROUP   specify group for Storage daemon
1721   --with-fd-user=USER     specify user for File daemon
1722   --with-fd-group=GROUP   specify group for File daemon
1723   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1724   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1725                           base install directory, [default=/usr/local/pgsql]
1726   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1727                           directory, default is to search through a number of
1728                           common places for the MySQL files.
1729   --with-embedded-mysql[=DIR]
1730                           Include MySQL support. DIR is the MySQL base install
1731                           directory, default is to search through a number of
1732                           common places for the MySQL files.
1733   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1734                           install directory, default is to search through a
1735                           number of common places for the SQLite3 files.
1736   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1737                           install directory, default is to search through a
1738                           number of common places for the SQLite files.
1739   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1740                           directory, default is to search through a number of
1741                           common places for the DBI files.
1742   --with-dbi-driver[=DRIVER]
1743                           Suport for DBI driver. DRIVER is the one DBI driver
1744                           like Mysql, Postgresql, others. Default is to not
1745                           configure any driver.
1746   --with-x                use the X Window System
1747
1748 Some influential environment variables:
1749   CC          C compiler command
1750   CFLAGS      C compiler flags
1751   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1752               nonstandard directory <lib dir>
1753   LIBS        libraries to pass to the linker, e.g. -l<library>
1754   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1755               you have headers in a nonstandard directory <include dir>
1756   CXX         C++ compiler command
1757   CXXFLAGS    C++ compiler flags
1758   CPP         C preprocessor
1759   WXCONFIG    wx-config command. On some systems, you must set it to
1760               wx-config-2.6 to use wxWidgets 2.6.
1761   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1762   CXXCPP      C++ preprocessor
1763   XMKMF       Path to xmkmf, Makefile generator for X Window System
1764
1765 Use these variables to override the choices made by `configure' or to help
1766 it to find libraries and programs with nonstandard names/locations.
1767
1768 _ACEOF
1769 ac_status=$?
1770 fi
1771
1772 if test "$ac_init_help" = "recursive"; then
1773   # If there are subdirs, report their specific --help.
1774   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1775     test -d "$ac_dir" || continue
1776     ac_builddir=.
1777
1778 case "$ac_dir" in
1779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780 *)
1781   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1782   # A ".." for each directory in $ac_dir_suffix.
1783   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1784   case $ac_top_builddir_sub in
1785   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1787   esac ;;
1788 esac
1789 ac_abs_top_builddir=$ac_pwd
1790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1791 # for backward compatibility:
1792 ac_top_builddir=$ac_top_build_prefix
1793
1794 case $srcdir in
1795   .)  # We are building in place.
1796     ac_srcdir=.
1797     ac_top_srcdir=$ac_top_builddir_sub
1798     ac_abs_top_srcdir=$ac_pwd ;;
1799   [\\/]* | ?:[\\/]* )  # Absolute name.
1800     ac_srcdir=$srcdir$ac_dir_suffix;
1801     ac_top_srcdir=$srcdir
1802     ac_abs_top_srcdir=$srcdir ;;
1803   *) # Relative name.
1804     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1805     ac_top_srcdir=$ac_top_build_prefix$srcdir
1806     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1807 esac
1808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1809
1810     cd "$ac_dir" || { ac_status=$?; continue; }
1811     # Check for guested configure.
1812     if test -f "$ac_srcdir/configure.gnu"; then
1813       echo &&
1814       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1815     elif test -f "$ac_srcdir/configure"; then
1816       echo &&
1817       $SHELL "$ac_srcdir/configure" --help=recursive
1818     else
1819       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1820     fi || ac_status=$?
1821     cd "$ac_pwd" || { ac_status=$?; break; }
1822   done
1823 fi
1824
1825 test -n "$ac_init_help" && exit $ac_status
1826 if $ac_init_version; then
1827   cat <<\_ACEOF
1828 configure
1829 generated by GNU Autoconf 2.61
1830
1831 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1832 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1833 This configure script is free software; the Free Software Foundation
1834 gives unlimited permission to copy, distribute and modify it.
1835 _ACEOF
1836   exit
1837 fi
1838 cat >config.log <<_ACEOF
1839 This file contains any messages produced by compilers while
1840 running configure, to aid debugging if configure makes a mistake.
1841
1842 It was created by $as_me, which was
1843 generated by GNU Autoconf 2.61.  Invocation command line was
1844
1845   $ $0 $@
1846
1847 _ACEOF
1848 exec 5>>config.log
1849 {
1850 cat <<_ASUNAME
1851 ## --------- ##
1852 ## Platform. ##
1853 ## --------- ##
1854
1855 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1856 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1857 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1858 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1859 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1860
1861 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1862 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1863
1864 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1865 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1866 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1867 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1868 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1869 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1870 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1871
1872 _ASUNAME
1873
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   echo "PATH: $as_dir"
1880 done
1881 IFS=$as_save_IFS
1882
1883 } >&5
1884
1885 cat >&5 <<_ACEOF
1886
1887
1888 ## ----------- ##
1889 ## Core tests. ##
1890 ## ----------- ##
1891
1892 _ACEOF
1893
1894
1895 # Keep a trace of the command line.
1896 # Strip out --no-create and --no-recursion so they do not pile up.
1897 # Strip out --silent because we don't want to record it for future runs.
1898 # Also quote any args containing shell meta-characters.
1899 # Make two passes to allow for proper duplicate-argument suppression.
1900 ac_configure_args=
1901 ac_configure_args0=
1902 ac_configure_args1=
1903 ac_must_keep_next=false
1904 for ac_pass in 1 2
1905 do
1906   for ac_arg
1907   do
1908     case $ac_arg in
1909     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1910     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1911     | -silent | --silent | --silen | --sile | --sil)
1912       continue ;;
1913     *\'*)
1914       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1915     esac
1916     case $ac_pass in
1917     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1918     2)
1919       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1920       if test $ac_must_keep_next = true; then
1921         ac_must_keep_next=false # Got value, back to normal.
1922       else
1923         case $ac_arg in
1924           *=* | --config-cache | -C | -disable-* | --disable-* \
1925           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1926           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1927           | -with-* | --with-* | -without-* | --without-* | --x)
1928             case "$ac_configure_args0 " in
1929               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1930             esac
1931             ;;
1932           -* ) ac_must_keep_next=true ;;
1933         esac
1934       fi
1935       ac_configure_args="$ac_configure_args '$ac_arg'"
1936       ;;
1937     esac
1938   done
1939 done
1940 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1941 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1942
1943 # When interrupted or exit'd, cleanup temporary files, and complete
1944 # config.log.  We remove comments because anyway the quotes in there
1945 # would cause problems or look ugly.
1946 # WARNING: Use '\'' to represent an apostrophe within the trap.
1947 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1948 trap 'exit_status=$?
1949   # Save into config.log some information that might help in debugging.
1950   {
1951     echo
1952
1953     cat <<\_ASBOX
1954 ## ---------------- ##
1955 ## Cache variables. ##
1956 ## ---------------- ##
1957 _ASBOX
1958     echo
1959     # The following way of writing the cache mishandles newlines in values,
1960 (
1961   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1962     eval ac_val=\$$ac_var
1963     case $ac_val in #(
1964     *${as_nl}*)
1965       case $ac_var in #(
1966       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1967 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1968       esac
1969       case $ac_var in #(
1970       _ | IFS | as_nl) ;; #(
1971       *) $as_unset $ac_var ;;
1972       esac ;;
1973     esac
1974   done
1975   (set) 2>&1 |
1976     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1977     *${as_nl}ac_space=\ *)
1978       sed -n \
1979         "s/'\''/'\''\\\\'\'''\''/g;
1980           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1981       ;; #(
1982     *)
1983       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1984       ;;
1985     esac |
1986     sort
1987 )
1988     echo
1989
1990     cat <<\_ASBOX
1991 ## ----------------- ##
1992 ## Output variables. ##
1993 ## ----------------- ##
1994 _ASBOX
1995     echo
1996     for ac_var in $ac_subst_vars
1997     do
1998       eval ac_val=\$$ac_var
1999       case $ac_val in
2000       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2001       esac
2002       echo "$ac_var='\''$ac_val'\''"
2003     done | sort
2004     echo
2005
2006     if test -n "$ac_subst_files"; then
2007       cat <<\_ASBOX
2008 ## ------------------- ##
2009 ## File substitutions. ##
2010 ## ------------------- ##
2011 _ASBOX
2012       echo
2013       for ac_var in $ac_subst_files
2014       do
2015         eval ac_val=\$$ac_var
2016         case $ac_val in
2017         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2018         esac
2019         echo "$ac_var='\''$ac_val'\''"
2020       done | sort
2021       echo
2022     fi
2023
2024     if test -s confdefs.h; then
2025       cat <<\_ASBOX
2026 ## ----------- ##
2027 ## confdefs.h. ##
2028 ## ----------- ##
2029 _ASBOX
2030       echo
2031       cat confdefs.h
2032       echo
2033     fi
2034     test "$ac_signal" != 0 &&
2035       echo "$as_me: caught signal $ac_signal"
2036     echo "$as_me: exit $exit_status"
2037   } >&5
2038   rm -f core *.core core.conftest.* &&
2039     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2040     exit $exit_status
2041 ' 0
2042 for ac_signal in 1 2 13 15; do
2043   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2044 done
2045 ac_signal=0
2046
2047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2048 rm -f -r conftest* confdefs.h
2049
2050 # Predefined preprocessor variables.
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_NAME "$PACKAGE_NAME"
2054 _ACEOF
2055
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2059 _ACEOF
2060
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2064 _ACEOF
2065
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_STRING "$PACKAGE_STRING"
2069 _ACEOF
2070
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2074 _ACEOF
2075
2076
2077 # Let the site file select an alternate cache file if it wants to.
2078 # Prefer explicitly selected file to automatically selected ones.
2079 if test -n "$CONFIG_SITE"; then
2080   set x "$CONFIG_SITE"
2081 elif test "x$prefix" != xNONE; then
2082   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2083 else
2084   set x "$ac_default_prefix/share/config.site" \
2085         "$ac_default_prefix/etc/config.site"
2086 fi
2087 shift
2088 for ac_site_file
2089 do
2090   if test -r "$ac_site_file"; then
2091     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2092 echo "$as_me: loading site script $ac_site_file" >&6;}
2093     sed 's/^/| /' "$ac_site_file" >&5
2094     . "$ac_site_file"
2095   fi
2096 done
2097
2098 if test -r "$cache_file"; then
2099   # Some versions of bash will fail to source /dev/null (special
2100   # files actually), so we avoid doing that.
2101   if test -f "$cache_file"; then
2102     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2103 echo "$as_me: loading cache $cache_file" >&6;}
2104     case $cache_file in
2105       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2106       *)                      . "./$cache_file";;
2107     esac
2108   fi
2109 else
2110   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2111 echo "$as_me: creating cache $cache_file" >&6;}
2112   >$cache_file
2113 fi
2114
2115 # Check that the precious variables saved in the cache have kept the same
2116 # value.
2117 ac_cache_corrupted=false
2118 for ac_var in $ac_precious_vars; do
2119   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2120   eval ac_new_set=\$ac_env_${ac_var}_set
2121   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2122   eval ac_new_val=\$ac_env_${ac_var}_value
2123   case $ac_old_set,$ac_new_set in
2124     set,)
2125       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2126 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2127       ac_cache_corrupted=: ;;
2128     ,set)
2129       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2130 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2131       ac_cache_corrupted=: ;;
2132     ,);;
2133     *)
2134       if test "x$ac_old_val" != "x$ac_new_val"; then
2135         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2136 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2137         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2138 echo "$as_me:   former value:  $ac_old_val" >&2;}
2139         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2140 echo "$as_me:   current value: $ac_new_val" >&2;}
2141         ac_cache_corrupted=:
2142       fi;;
2143   esac
2144   # Pass precious variables to config.status.
2145   if test "$ac_new_set" = set; then
2146     case $ac_new_val in
2147     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2148     *) ac_arg=$ac_var=$ac_new_val ;;
2149     esac
2150     case " $ac_configure_args " in
2151       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2152       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2153     esac
2154   fi
2155 done
2156 if $ac_cache_corrupted; then
2157   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2158 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2159   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2160 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2161    { (exit 1); exit 1; }; }
2162 fi
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180 ac_ext=c
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185
2186
2187 BUILD_DIR=`pwd`
2188 cd ..
2189 TOP_DIR=`pwd`
2190 cd ${BUILD_DIR}
2191
2192
2193 ac_aux_dir=
2194 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2195   if test -f "$ac_dir/install-sh"; then
2196     ac_aux_dir=$ac_dir
2197     ac_install_sh="$ac_aux_dir/install-sh -c"
2198     break
2199   elif test -f "$ac_dir/install.sh"; then
2200     ac_aux_dir=$ac_dir
2201     ac_install_sh="$ac_aux_dir/install.sh -c"
2202     break
2203   elif test -f "$ac_dir/shtool"; then
2204     ac_aux_dir=$ac_dir
2205     ac_install_sh="$ac_aux_dir/shtool install -c"
2206     break
2207   fi
2208 done
2209 if test -z "$ac_aux_dir"; then
2210   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2211 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2212    { (exit 1); exit 1; }; }
2213 fi
2214
2215 # These three variables are undocumented and unsupported,
2216 # and are intended to be withdrawn in a future Autoconf release.
2217 # They can cause serious problems if a builder's source tree is in a directory
2218 # whose full name contains unusual characters.
2219 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2220 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2221 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2222
2223
2224 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2225
2226
2227
2228
2229
2230 for ac_prog in true
2231 do
2232   # Extract the first word of "$ac_prog", so it can be a program name with args.
2233 set dummy $ac_prog; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2237   echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239   case $TRUEPRG in
2240   [\\/]* | ?:[\\/]*)
2241   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2242   ;;
2243   *)
2244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247   IFS=$as_save_IFS
2248   test -z "$as_dir" && as_dir=.
2249   for ac_exec_ext in '' $ac_executable_extensions; do
2250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253     break 2
2254   fi
2255 done
2256 done
2257 IFS=$as_save_IFS
2258
2259   ;;
2260 esac
2261 fi
2262 TRUEPRG=$ac_cv_path_TRUEPRG
2263 if test -n "$TRUEPRG"; then
2264   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2265 echo "${ECHO_T}$TRUEPRG" >&6; }
2266 else
2267   { echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6; }
2269 fi
2270
2271
2272   test -n "$TRUEPRG" && break
2273 done
2274 test -n "$TRUEPRG" || TRUEPRG=":"
2275
2276 for ac_prog in false
2277 do
2278   # Extract the first word of "$ac_prog", so it can be a program name with args.
2279 set dummy $ac_prog; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2283   echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285   case $FALSEPRG in
2286   [\\/]* | ?:[\\/]*)
2287   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2288   ;;
2289   *)
2290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293   IFS=$as_save_IFS
2294   test -z "$as_dir" && as_dir=.
2295   for ac_exec_ext in '' $ac_executable_extensions; do
2296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2297     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299     break 2
2300   fi
2301 done
2302 done
2303 IFS=$as_save_IFS
2304
2305   ;;
2306 esac
2307 fi
2308 FALSEPRG=$ac_cv_path_FALSEPRG
2309 if test -n "$FALSEPRG"; then
2310   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2311 echo "${ECHO_T}$FALSEPRG" >&6; }
2312 else
2313   { echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6; }
2315 fi
2316
2317
2318   test -n "$FALSEPRG" && break
2319 done
2320 test -n "$FALSEPRG" || FALSEPRG=":"
2321
2322
2323
2324 post_host=
2325 if test "x$BACULA" != x; then
2326    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2327 fi
2328 BACULA=${BACULA-Bacula}
2329 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2330 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2331 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2332 echo "configuring for ${BACULA} $VERSION ($DATE)"
2333
2334
2335 ac_ext=c
2336 ac_cpp='$CPP $CPPFLAGS'
2337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2340 if test -n "$ac_tool_prefix"; then
2341   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2342 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_CC+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   if test -n "$CC"; then
2349   ac_cv_prog_CC="$CC" # Let the user override the test.
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354   IFS=$as_save_IFS
2355   test -z "$as_dir" && as_dir=.
2356   for ac_exec_ext in '' $ac_executable_extensions; do
2357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360     break 2
2361   fi
2362 done
2363 done
2364 IFS=$as_save_IFS
2365
2366 fi
2367 fi
2368 CC=$ac_cv_prog_CC
2369 if test -n "$CC"; then
2370   { echo "$as_me:$LINENO: result: $CC" >&5
2371 echo "${ECHO_T}$CC" >&6; }
2372 else
2373   { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2375 fi
2376
2377
2378 fi
2379 if test -z "$ac_cv_prog_CC"; then
2380   ac_ct_CC=$CC
2381   # Extract the first word of "gcc", so it can be a program name with args.
2382 set dummy gcc; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   if test -n "$ac_ct_CC"; then
2389   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394   IFS=$as_save_IFS
2395   test -z "$as_dir" && as_dir=.
2396   for ac_exec_ext in '' $ac_executable_extensions; do
2397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398     ac_cv_prog_ac_ct_CC="gcc"
2399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400     break 2
2401   fi
2402 done
2403 done
2404 IFS=$as_save_IFS
2405
2406 fi
2407 fi
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6; }
2412 else
2413   { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2415 fi
2416
2417   if test "x$ac_ct_CC" = x; then
2418     CC=""
2419   else
2420     case $cross_compiling:$ac_tool_warned in
2421 yes:)
2422 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2423 whose name does not start with the host triplet.  If you think this
2424 configuration is useful to you, please write to autoconf@gnu.org." >&5
2425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet.  If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2428 ac_tool_warned=yes ;;
2429 esac
2430     CC=$ac_ct_CC
2431   fi
2432 else
2433   CC="$ac_cv_prog_CC"
2434 fi
2435
2436 if test -z "$CC"; then
2437           if test -n "$ac_tool_prefix"; then
2438     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}cc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$CC"; then
2446   ac_cv_prog_CC="$CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455     ac_cv_prog_CC="${ac_tool_prefix}cc"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467   { echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6; }
2469 else
2470   { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472 fi
2473
2474
2475   fi
2476 fi
2477 if test -z "$CC"; then
2478   # Extract the first word of "cc", so it can be a program name with args.
2479 set dummy cc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$CC"; then
2486   ac_cv_prog_CC="$CC" # Let the user override the test.
2487 else
2488   ac_prog_rejected=no
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492   IFS=$as_save_IFS
2493   test -z "$as_dir" && as_dir=.
2494   for ac_exec_ext in '' $ac_executable_extensions; do
2495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2497        ac_prog_rejected=yes
2498        continue
2499      fi
2500     ac_cv_prog_CC="cc"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506 IFS=$as_save_IFS
2507
2508 if test $ac_prog_rejected = yes; then
2509   # We found a bogon in the path, so make sure we never use it.
2510   set dummy $ac_cv_prog_CC
2511   shift
2512   if test $# != 0; then
2513     # We chose a different compiler from the bogus one.
2514     # However, it has the same basename, so the bogon will be chosen
2515     # first if we set CC to just the basename; use the full file name.
2516     shift
2517     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2518   fi
2519 fi
2520 fi
2521 fi
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524   { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2526 else
2527   { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2529 fi
2530
2531
2532 fi
2533 if test -z "$CC"; then
2534   if test -n "$ac_tool_prefix"; then
2535   for ac_prog in cl.exe
2536   do
2537     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_CC+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   if test -n "$CC"; then
2545   ac_cv_prog_CC="$CC" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552   for ac_exec_ext in '' $ac_executable_extensions; do
2553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 CC=$ac_cv_prog_CC
2565 if test -n "$CC"; then
2566   { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2568 else
2569   { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2571 fi
2572
2573
2574     test -n "$CC" && break
2575   done
2576 fi
2577 if test -z "$CC"; then
2578   ac_ct_CC=$CC
2579   for ac_prog in cl.exe
2580 do
2581   # Extract the first word of "$ac_prog", so it can be a program name with args.
2582 set dummy $ac_prog; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if test -n "$ac_ct_CC"; then
2589   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594   IFS=$as_save_IFS
2595   test -z "$as_dir" && as_dir=.
2596   for ac_exec_ext in '' $ac_executable_extensions; do
2597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598     ac_cv_prog_ac_ct_CC="$ac_prog"
2599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600     break 2
2601   fi
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 fi
2607 fi
2608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609 if test -n "$ac_ct_CC"; then
2610   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2611 echo "${ECHO_T}$ac_ct_CC" >&6; }
2612 else
2613   { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2615 fi
2616
2617
2618   test -n "$ac_ct_CC" && break
2619 done
2620
2621   if test "x$ac_ct_CC" = x; then
2622     CC=""
2623   else
2624     case $cross_compiling:$ac_tool_warned in
2625 yes:)
2626 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet.  If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&5
2629 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2630 whose name does not start with the host triplet.  If you think this
2631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2632 ac_tool_warned=yes ;;
2633 esac
2634     CC=$ac_ct_CC
2635   fi
2636 fi
2637
2638 fi
2639
2640
2641 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2642 See \`config.log' for more details." >&5
2643 echo "$as_me: error: no acceptable C compiler found in \$PATH
2644 See \`config.log' for more details." >&2;}
2645    { (exit 1); exit 1; }; }
2646
2647 # Provide some information about the compiler.
2648 echo "$as_me:$LINENO: checking for C compiler version" >&5
2649 ac_compiler=`set X $ac_compile; echo $2`
2650 { (ac_try="$ac_compiler --version >&5"
2651 case "(($ac_try" in
2652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653   *) ac_try_echo=$ac_try;;
2654 esac
2655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656   (eval "$ac_compiler --version >&5") 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }
2660 { (ac_try="$ac_compiler -v >&5"
2661 case "(($ac_try" in
2662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663   *) ac_try_echo=$ac_try;;
2664 esac
2665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2666   (eval "$ac_compiler -v >&5") 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }
2670 { (ac_try="$ac_compiler -V >&5"
2671 case "(($ac_try" in
2672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673   *) ac_try_echo=$ac_try;;
2674 esac
2675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676   (eval "$ac_compiler -V >&5") 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); }
2680
2681 cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h.  */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h.  */
2687
2688 int
2689 main ()
2690 {
2691
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 ac_clean_files_save=$ac_clean_files
2697 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2698 # Try to create an executable without -o first, disregard a.out.
2699 # It will help us diagnose broken compilers, and finding out an intuition
2700 # of exeext.
2701 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2702 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2703 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2704 #
2705 # List of possible output files, starting from the most likely.
2706 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2707 # only as a last resort.  b.out is created by i960 compilers.
2708 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2709 #
2710 # The IRIX 6 linker writes into existing files which may not be
2711 # executable, retaining their permissions.  Remove them first so a
2712 # subsequent execution test works.
2713 ac_rmfiles=
2714 for ac_file in $ac_files
2715 do
2716   case $ac_file in
2717     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2718     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2719   esac
2720 done
2721 rm -f $ac_rmfiles
2722
2723 if { (ac_try="$ac_link_default"
2724 case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729   (eval "$ac_link_default") 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; then
2733   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2734 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2735 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2736 # so that the user can short-circuit this test for compilers unknown to
2737 # Autoconf.
2738 for ac_file in $ac_files ''
2739 do
2740   test -f "$ac_file" || continue
2741   case $ac_file in
2742     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2743         ;;
2744     [ab].out )
2745         # We found the default executable, but exeext='' is most
2746         # certainly right.
2747         break;;
2748     *.* )
2749         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2750         then :; else
2751            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2752         fi
2753         # We set ac_cv_exeext here because the later test for it is not
2754         # safe: cross compilers may not add the suffix if given an `-o'
2755         # argument, so we may need to know it at that point already.
2756         # Even if this section looks crufty: it has the advantage of
2757         # actually working.
2758         break;;
2759     * )
2760         break;;
2761   esac
2762 done
2763 test "$ac_cv_exeext" = no && ac_cv_exeext=
2764
2765 else
2766   ac_file=''
2767 fi
2768
2769 { echo "$as_me:$LINENO: result: $ac_file" >&5
2770 echo "${ECHO_T}$ac_file" >&6; }
2771 if test -z "$ac_file"; then
2772   echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: C compiler cannot create executables
2778 See \`config.log' for more details." >&2;}
2779    { (exit 77); exit 77; }; }
2780 fi
2781
2782 ac_exeext=$ac_cv_exeext
2783
2784 # Check that the compiler produces executables we can run.  If not, either
2785 # the compiler is broken, or we cross compile.
2786 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2787 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2788 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2789 # If not cross compiling, check that we can run a simple program.
2790 if test "$cross_compiling" != yes; then
2791   if { ac_try='./$ac_file'
2792   { (case "(($ac_try" in
2793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794   *) ac_try_echo=$ac_try;;
2795 esac
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797   (eval "$ac_try") 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); }; }; then
2801     cross_compiling=no
2802   else
2803     if test "$cross_compiling" = maybe; then
2804         cross_compiling=yes
2805     else
2806         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2807 If you meant to cross compile, use \`--host'.
2808 See \`config.log' for more details." >&5
2809 echo "$as_me: error: cannot run C compiled programs.
2810 If you meant to cross compile, use \`--host'.
2811 See \`config.log' for more details." >&2;}
2812    { (exit 1); exit 1; }; }
2813     fi
2814   fi
2815 fi
2816 { echo "$as_me:$LINENO: result: yes" >&5
2817 echo "${ECHO_T}yes" >&6; }
2818
2819 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2820 ac_clean_files=$ac_clean_files_save
2821 # Check that the compiler produces executables we can run.  If not, either
2822 # the compiler is broken, or we cross compile.
2823 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2824 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2825 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2826 echo "${ECHO_T}$cross_compiling" >&6; }
2827
2828 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2829 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2830 if { (ac_try="$ac_link"
2831 case "(($ac_try" in
2832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833   *) ac_try_echo=$ac_try;;
2834 esac
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836   (eval "$ac_link") 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; then
2840   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2841 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2842 # work properly (i.e., refer to `conftest.exe'), while it won't with
2843 # `rm'.
2844 for ac_file in conftest.exe conftest conftest.*; do
2845   test -f "$ac_file" || continue
2846   case $ac_file in
2847     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2848     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849           break;;
2850     * ) break;;
2851   esac
2852 done
2853 else
2854   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2857 See \`config.log' for more details." >&2;}
2858    { (exit 1); exit 1; }; }
2859 fi
2860
2861 rm -f conftest$ac_cv_exeext
2862 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2863 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2864
2865 rm -f conftest.$ac_ext
2866 EXEEXT=$ac_cv_exeext
2867 ac_exeext=$EXEEXT
2868 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2869 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2870 if test "${ac_cv_objext+set}" = set; then
2871   echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873   cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h.  */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h.  */
2879
2880 int
2881 main ()
2882 {
2883
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 rm -f conftest.o conftest.obj
2889 if { (ac_try="$ac_compile"
2890 case "(($ac_try" in
2891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892   *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895   (eval "$ac_compile") 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }; then
2899   for ac_file in conftest.o conftest.obj conftest.*; do
2900   test -f "$ac_file" || continue;
2901   case $ac_file in
2902     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2903     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2904        break;;
2905   esac
2906 done
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2914 See \`config.log' for more details." >&2;}
2915    { (exit 1); exit 1; }; }
2916 fi
2917
2918 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2919 fi
2920 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2921 echo "${ECHO_T}$ac_cv_objext" >&6; }
2922 OBJEXT=$ac_cv_objext
2923 ac_objext=$OBJEXT
2924 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2925 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2926 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929   cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935
2936 int
2937 main ()
2938 {
2939 #ifndef __GNUC__
2940        choke me
2941 #endif
2942
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (ac_try="$ac_compile"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954   (eval "$ac_compile") 2>conftest.er1
2955   ac_status=$?
2956   grep -v '^ *+' conftest.er1 >conftest.err
2957   rm -f conftest.er1
2958   cat conftest.err >&5
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); } && {
2961          test -z "$ac_c_werror_flag" ||
2962          test ! -s conftest.err
2963        } && test -s conftest.$ac_objext; then
2964   ac_compiler_gnu=yes
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969         ac_compiler_gnu=no
2970 fi
2971
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2974
2975 fi
2976 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2978 GCC=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CFLAGS=${CFLAGS+set}
2980 ac_save_CFLAGS=$CFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2982 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cc_g+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986   ac_save_c_werror_flag=$ac_c_werror_flag
2987    ac_c_werror_flag=yes
2988    ac_cv_prog_cc_g=no
2989    CFLAGS="-g"
2990    cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996
2997 int
2998 main ()
2999 {
3000
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compile") 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } && {
3019          test -z "$ac_c_werror_flag" ||
3020          test ! -s conftest.err
3021        } && test -s conftest.$ac_objext; then
3022   ac_cv_prog_cc_g=yes
3023 else
3024   echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3026
3027         CFLAGS=""
3028       cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034
3035 int
3036 main ()
3037 {
3038
3039   ;
3040   return 0;
3041 }
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3045 case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_compile") 2>conftest.er1
3051   ac_status=$?
3052   grep -v '^ *+' conftest.er1 >conftest.err
3053   rm -f conftest.er1
3054   cat conftest.err >&5
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); } && {
3057          test -z "$ac_c_werror_flag" ||
3058          test ! -s conftest.err
3059        } && test -s conftest.$ac_objext; then
3060   :
3061 else
3062   echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065         ac_c_werror_flag=$ac_save_c_werror_flag
3066          CFLAGS="-g"
3067          cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073
3074 int
3075 main ()
3076 {
3077
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3084 case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_compile") 2>conftest.er1
3090   ac_status=$?
3091   grep -v '^ *+' conftest.er1 >conftest.err
3092   rm -f conftest.er1
3093   cat conftest.err >&5
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); } && {
3096          test -z "$ac_c_werror_flag" ||
3097          test ! -s conftest.err
3098        } && test -s conftest.$ac_objext; then
3099   ac_cv_prog_cc_g=yes
3100 else
3101   echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104
3105 fi
3106
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 fi
3109
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 fi
3112
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114    ac_c_werror_flag=$ac_save_c_werror_flag
3115 fi
3116 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3117 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3118 if test "$ac_test_CFLAGS" = set; then
3119   CFLAGS=$ac_save_CFLAGS
3120 elif test $ac_cv_prog_cc_g = yes; then
3121   if test "$GCC" = yes; then
3122     CFLAGS="-g -O2"
3123   else
3124     CFLAGS="-g"
3125   fi
3126 else
3127   if test "$GCC" = yes; then
3128     CFLAGS="-O2"
3129   else
3130     CFLAGS=
3131   fi
3132 fi
3133 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3134 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3135 if test "${ac_cv_prog_cc_c89+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   ac_cv_prog_cc_c89=no
3139 ac_save_CC=$CC
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146 #include <stdarg.h>
3147 #include <stdio.h>
3148 #include <sys/types.h>
3149 #include <sys/stat.h>
3150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3151 struct buf { int x; };
3152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3153 static char *e (p, i)
3154      char **p;
3155      int i;
3156 {
3157   return p[i];
3158 }
3159 static char *f (char * (*g) (char **, int), char **p, ...)
3160 {
3161   char *s;
3162   va_list v;
3163   va_start (v,p);
3164   s = g (p, va_arg (v,int));
3165   va_end (v);
3166   return s;
3167 }
3168
3169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3170    function prototypes and stuff, but not '\xHH' hex character constants.
3171    These don't provoke an error unfortunately, instead are silently treated
3172    as 'x'.  The following induces an error, until -std is added to get
3173    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3174    array size at least.  It's necessary to write '\x00'==0 to get something
3175    that's true only with -std.  */
3176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3177
3178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3179    inside strings and character constants.  */
3180 #define FOO(x) 'x'
3181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3182
3183 int test (int i, double x);
3184 struct s1 {int (*f) (int a);};
3185 struct s2 {int (*f) (double a);};
3186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187 int argc;
3188 char **argv;
3189 int
3190 main ()
3191 {
3192 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3198         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3199 do
3200   CC="$ac_save_CC $ac_arg"
3201   rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3203 case "(($ac_try" in
3204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205   *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208   (eval "$ac_compile") 2>conftest.er1
3209   ac_status=$?
3210   grep -v '^ *+' conftest.er1 >conftest.err
3211   rm -f conftest.er1
3212   cat conftest.err >&5
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); } && {
3215          test -z "$ac_c_werror_flag" ||
3216          test ! -s conftest.err
3217        } && test -s conftest.$ac_objext; then
3218   ac_cv_prog_cc_c89=$ac_arg
3219 else
3220   echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223
3224 fi
3225
3226 rm -f core conftest.err conftest.$ac_objext
3227   test "x$ac_cv_prog_cc_c89" != "xno" && break
3228 done
3229 rm -f conftest.$ac_ext
3230 CC=$ac_save_CC
3231
3232 fi
3233 # AC_CACHE_VAL
3234 case "x$ac_cv_prog_cc_c89" in
3235   x)
3236     { echo "$as_me:$LINENO: result: none needed" >&5
3237 echo "${ECHO_T}none needed" >&6; } ;;
3238   xno)
3239     { echo "$as_me:$LINENO: result: unsupported" >&5
3240 echo "${ECHO_T}unsupported" >&6; } ;;
3241   *)
3242     CC="$CC $ac_cv_prog_cc_c89"
3243     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3244 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3245 esac
3246
3247
3248 ac_ext=c
3249 ac_cpp='$CPP $CPPFLAGS'
3250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253
3254 ac_ext=cpp
3255 ac_cpp='$CXXCPP $CPPFLAGS'
3256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3259 if test -z "$CXX"; then
3260   if test -n "$CCC"; then
3261     CXX=$CCC
3262   else
3263     if test -n "$ac_tool_prefix"; then
3264   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3265   do
3266     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3270 if test "${ac_cv_prog_CXX+set}" = set; then
3271   echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273   if test -n "$CXX"; then
3274   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281   for ac_exec_ext in '' $ac_executable_extensions; do
3282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 CXX=$ac_cv_prog_CXX
3294 if test -n "$CXX"; then
3295   { echo "$as_me:$LINENO: result: $CXX" >&5
3296 echo "${ECHO_T}$CXX" >&6; }
3297 else
3298   { echo "$as_me:$LINENO: result: no" >&5
3299 echo "${ECHO_T}no" >&6; }
3300 fi
3301
3302
3303     test -n "$CXX" && break
3304   done
3305 fi
3306 if test -z "$CXX"; then
3307   ac_ct_CXX=$CXX
3308   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3309 do
3310   # Extract the first word of "$ac_prog", so it can be a program name with args.
3311 set dummy $ac_prog; ac_word=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   if test -n "$ac_ct_CXX"; then
3318   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323   IFS=$as_save_IFS
3324   test -z "$as_dir" && as_dir=.
3325   for ac_exec_ext in '' $ac_executable_extensions; do
3326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327     ac_cv_prog_ac_ct_CXX="$ac_prog"
3328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329     break 2
3330   fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3338 if test -n "$ac_ct_CXX"; then
3339   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3340 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3341 else
3342   { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3344 fi
3345
3346
3347   test -n "$ac_ct_CXX" && break
3348 done
3349
3350   if test "x$ac_ct_CXX" = x; then
3351     CXX="g++"
3352   else
3353     case $cross_compiling:$ac_tool_warned in
3354 yes:)
3355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3356 whose name does not start with the host triplet.  If you think this
3357 configuration is useful to you, please write to autoconf@gnu.org." >&5
3358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3359 whose name does not start with the host triplet.  If you think this
3360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3361 ac_tool_warned=yes ;;
3362 esac
3363     CXX=$ac_ct_CXX
3364   fi
3365 fi
3366
3367   fi
3368 fi
3369 # Provide some information about the compiler.
3370 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3371 ac_compiler=`set X $ac_compile; echo $2`
3372 { (ac_try="$ac_compiler --version >&5"
3373 case "(($ac_try" in
3374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375   *) ac_try_echo=$ac_try;;
3376 esac
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378   (eval "$ac_compiler --version >&5") 2>&5
3379   ac_status=$?
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); }
3382 { (ac_try="$ac_compiler -v >&5"
3383 case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388   (eval "$ac_compiler -v >&5") 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }
3392 { (ac_try="$ac_compiler -V >&5"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398   (eval "$ac_compiler -V >&5") 2>&5
3399   ac_status=$?
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); }
3402
3403 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3404 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3405 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414
3415 int
3416 main ()
3417 {
3418 #ifndef __GNUC__
3419        choke me
3420 #endif
3421
3422   ;
3423   return 0;
3424 }
3425 _ACEOF
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433   (eval "$ac_compile") 2>conftest.er1
3434   ac_status=$?
3435   grep -v '^ *+' conftest.er1 >conftest.err
3436   rm -f conftest.er1
3437   cat conftest.err >&5
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } && {
3440          test -z "$ac_cxx_werror_flag" ||
3441          test ! -s conftest.err
3442        } && test -s conftest.$ac_objext; then
3443   ac_compiler_gnu=yes
3444 else
3445   echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448         ac_compiler_gnu=no
3449 fi
3450
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3453
3454 fi
3455 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3456 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3457 GXX=`test $ac_compiler_gnu = yes && echo yes`
3458 ac_test_CXXFLAGS=${CXXFLAGS+set}
3459 ac_save_CXXFLAGS=$CXXFLAGS
3460 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3461 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3462 if test "${ac_cv_prog_cxx_g+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3466    ac_cxx_werror_flag=yes
3467    ac_cv_prog_cxx_g=no
3468    CXXFLAGS="-g"
3469    cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (ac_try="$ac_compile"
3486 case "(($ac_try" in
3487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488   *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491   (eval "$ac_compile") 2>conftest.er1
3492   ac_status=$?
3493   grep -v '^ *+' conftest.er1 >conftest.err
3494   rm -f conftest.er1
3495   cat conftest.err >&5
3496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); } && {
3498          test -z "$ac_cxx_werror_flag" ||
3499          test ! -s conftest.err
3500        } && test -s conftest.$ac_objext; then
3501   ac_cv_prog_cxx_g=yes
3502 else
3503   echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506         CXXFLAGS=""
3507       cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513
3514 int
3515 main ()
3516 {
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3524 case "(($ac_try" in
3525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526   *) ac_try_echo=$ac_try;;
3527 esac
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529   (eval "$ac_compile") 2>conftest.er1
3530   ac_status=$?
3531   grep -v '^ *+' conftest.er1 >conftest.err
3532   rm -f conftest.er1
3533   cat conftest.err >&5
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } && {
3536          test -z "$ac_cxx_werror_flag" ||
3537          test ! -s conftest.err
3538        } && test -s conftest.$ac_objext; then
3539   :
3540 else
3541   echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3545          CXXFLAGS="-g"
3546          cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h.  */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h.  */
3552
3553 int
3554 main ()
3555 {
3556
3557   ;
3558   return 0;
3559 }
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (ac_try="$ac_compile"
3563 case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568   (eval "$ac_compile") 2>conftest.er1
3569   ac_status=$?
3570   grep -v '^ *+' conftest.er1 >conftest.err
3571   rm -f conftest.er1
3572   cat conftest.err >&5
3573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574   (exit $ac_status); } && {
3575          test -z "$ac_cxx_werror_flag" ||
3576          test ! -s conftest.err
3577        } && test -s conftest.$ac_objext; then
3578   ac_cv_prog_cxx_g=yes
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583
3584 fi
3585
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 fi
3591
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3594 fi
3595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3596 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3597 if test "$ac_test_CXXFLAGS" = set; then
3598   CXXFLAGS=$ac_save_CXXFLAGS
3599 elif test $ac_cv_prog_cxx_g = yes; then
3600   if test "$GXX" = yes; then
3601     CXXFLAGS="-g -O2"
3602   else
3603     CXXFLAGS="-g"
3604   fi
3605 else
3606   if test "$GXX" = yes; then
3607     CXXFLAGS="-O2"
3608   else
3609     CXXFLAGS=
3610   fi
3611 fi
3612 ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618 if test "x$CC" != xcc; then
3619   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3620 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3621 else
3622   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3623 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3624 fi
3625 set dummy $CC; ac_cc=`echo $2 |
3626                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3627 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 # Make sure it works both with $CC and with simple cc.
3646 # We do the test twice because some compilers refuse to overwrite an
3647 # existing .o file with -o, though they will create one.
3648 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3649 rm -f conftest2.*
3650 if { (case "(($ac_try" in
3651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652   *) ac_try_echo=$ac_try;;
3653 esac
3654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655   (eval "$ac_try") 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); } &&
3659    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664   (eval "$ac_try") 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); };
3668 then
3669   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3670   if test "x$CC" != xcc; then
3671     # Test first that cc exists at all.
3672     if { ac_try='cc -c conftest.$ac_ext >&5'
3673   { (case "(($ac_try" in
3674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675   *) ac_try_echo=$ac_try;;
3676 esac
3677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678   (eval "$ac_try") 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; }; then
3682       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3683       rm -f conftest2.*
3684       if { (case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689   (eval "$ac_try") 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); } &&
3693          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695   *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698   (eval "$ac_try") 2>&5
3699   ac_status=$?
3700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701   (exit $ac_status); };
3702       then
3703         # cc works too.
3704         :
3705       else
3706         # cc exists but doesn't like -o.
3707         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3708       fi
3709     fi
3710   fi
3711 else
3712   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3713 fi
3714 rm -f core conftest*
3715
3716 fi
3717 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3718   { echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6; }
3720 else
3721   { echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6; }
3723
3724 cat >>confdefs.h <<\_ACEOF
3725 #define NO_MINUS_C_MINUS_O 1
3726 _ACEOF
3727
3728 fi
3729
3730 ac_ext=c
3731 ac_cpp='$CPP $CPPFLAGS'
3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3736 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3737 # On Suns, sometimes $CPP names a directory.
3738 if test -n "$CPP" && test -d "$CPP"; then
3739   CPP=
3740 fi
3741 if test -z "$CPP"; then
3742   if test "${ac_cv_prog_CPP+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745       # Double quotes because CPP needs to be expanded
3746     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3747     do
3748       ac_preproc_ok=false
3749 for ac_c_preproc_warn_flag in '' yes
3750 do
3751   # Use a header file that comes with gcc, so configuring glibc
3752   # with a fresh cross-compiler works.
3753   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3754   # <limits.h> exists even on freestanding compilers.
3755   # On the NeXT, cc -E runs the code through the compiler's parser,
3756   # not just through cpp. "Syntax error" is here to catch this case.
3757   cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h.  */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h.  */
3763 #ifdef __STDC__
3764 # include <limits.h>
3765 #else
3766 # include <assert.h>
3767 #endif
3768                      Syntax error
3769 _ACEOF
3770 if { (ac_try="$ac_cpp conftest.$ac_ext"
3771 case "(($ac_try" in
3772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773   *) ac_try_echo=$ac_try;;
3774 esac
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3777   ac_status=$?
3778   grep -v '^ *+' conftest.er1 >conftest.err
3779   rm -f conftest.er1
3780   cat conftest.err >&5
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); } >/dev/null && {
3783          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3784          test ! -s conftest.err
3785        }; then
3786   :
3787 else
3788   echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791   # Broken: fails on valid input.
3792 continue
3793 fi
3794
3795 rm -f conftest.err conftest.$ac_ext
3796
3797   # OK, works on sane cases.  Now check whether nonexistent headers
3798   # can be detected and how.
3799   cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h.  */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h.  */
3805 #include <ac_nonexistent.h>
3806 _ACEOF
3807 if { (ac_try="$ac_cpp conftest.$ac_ext"
3808 case "(($ac_try" in
3809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810   *) ac_try_echo=$ac_try;;
3811 esac
3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3814   ac_status=$?
3815   grep -v '^ *+' conftest.er1 >conftest.err
3816   rm -f conftest.er1
3817   cat conftest.err >&5
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); } >/dev/null && {
3820          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3821          test ! -s conftest.err
3822        }; then
3823   # Broken: success on invalid input.
3824 continue
3825 else
3826   echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3828
3829   # Passes both tests.
3830 ac_preproc_ok=:
3831 break
3832 fi
3833
3834 rm -f conftest.err conftest.$ac_ext
3835
3836 done
3837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3838 rm -f conftest.err conftest.$ac_ext
3839 if $ac_preproc_ok; then
3840   break
3841 fi
3842
3843     done
3844     ac_cv_prog_CPP=$CPP
3845
3846 fi
3847   CPP=$ac_cv_prog_CPP
3848 else
3849   ac_cv_prog_CPP=$CPP
3850 fi
3851 { echo "$as_me:$LINENO: result: $CPP" >&5
3852 echo "${ECHO_T}$CPP" >&6; }
3853 ac_preproc_ok=false
3854 for ac_c_preproc_warn_flag in '' yes
3855 do
3856   # Use a header file that comes with gcc, so configuring glibc
3857   # with a fresh cross-compiler works.
3858   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3859   # <limits.h> exists even on freestanding compilers.
3860   # On the NeXT, cc -E runs the code through the compiler's parser,
3861   # not just through cpp. "Syntax error" is here to catch this case.
3862   cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h.  */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h.  */
3868 #ifdef __STDC__
3869 # include <limits.h>
3870 #else
3871 # include <assert.h>
3872 #endif
3873                      Syntax error
3874 _ACEOF
3875 if { (ac_try="$ac_cpp conftest.$ac_ext"
3876 case "(($ac_try" in
3877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878   *) ac_try_echo=$ac_try;;
3879 esac
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3882   ac_status=$?
3883   grep -v '^ *+' conftest.er1 >conftest.err
3884   rm -f conftest.er1
3885   cat conftest.err >&5
3886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887   (exit $ac_status); } >/dev/null && {
3888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3889          test ! -s conftest.err
3890        }; then
3891   :
3892 else
3893   echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896   # Broken: fails on valid input.
3897 continue
3898 fi
3899
3900 rm -f conftest.err conftest.$ac_ext
3901
3902   # OK, works on sane cases.  Now check whether nonexistent headers
3903   # can be detected and how.
3904   cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 #include <ac_nonexistent.h>
3911 _ACEOF
3912 if { (ac_try="$ac_cpp conftest.$ac_ext"
3913 case "(($ac_try" in
3914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915   *) ac_try_echo=$ac_try;;
3916 esac
3917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3919   ac_status=$?
3920   grep -v '^ *+' conftest.er1 >conftest.err
3921   rm -f conftest.er1
3922   cat conftest.err >&5
3923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); } >/dev/null && {
3925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3926          test ! -s conftest.err
3927        }; then
3928   # Broken: success on invalid input.
3929 continue
3930 else
3931   echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934   # Passes both tests.
3935 ac_preproc_ok=:
3936 break
3937 fi
3938
3939 rm -f conftest.err conftest.$ac_ext
3940
3941 done
3942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3943 rm -f conftest.err conftest.$ac_ext
3944 if $ac_preproc_ok; then
3945   :
3946 else
3947   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3948 See \`config.log' for more details." >&5
3949 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3950 See \`config.log' for more details." >&2;}
3951    { (exit 1); exit 1; }; }
3952 fi
3953
3954 ac_ext=c
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959
3960
3961 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3962 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3963 if test "${ac_cv_path_GREP+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   # Extract the first word of "grep ggrep" to use in msg output
3967 if test -z "$GREP"; then
3968 set dummy grep ggrep; ac_prog_name=$2
3969 if test "${ac_cv_path_GREP+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   ac_path_GREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979   for ac_prog in grep ggrep; do
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3982     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3983     # Check for GNU ac_path_GREP and select it if it is found.
3984   # Check for GNU $ac_path_GREP
3985 case `"$ac_path_GREP" --version 2>&1` in
3986 *GNU*)
3987   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988 *)
3989   ac_count=0
3990   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991   while :
3992   do
3993     cat "conftest.in" "conftest.in" >"conftest.tmp"
3994     mv "conftest.tmp" "conftest.in"
3995     cp "conftest.in" "conftest.nl"
3996     echo 'GREP' >> "conftest.nl"
3997     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999     ac_count=`expr $ac_count + 1`
4000     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4001       # Best one so far, save it but keep looking for a better one
4002       ac_cv_path_GREP="$ac_path_GREP"
4003       ac_path_GREP_max=$ac_count
4004     fi
4005     # 10*(2^10) chars as input seems more than enough
4006     test $ac_count -gt 10 && break
4007   done
4008   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 esac
4010
4011
4012     $ac_path_GREP_found && break 3
4013   done
4014 done
4015
4016 done
4017 IFS=$as_save_IFS
4018
4019
4020 fi
4021
4022 GREP="$ac_cv_path_GREP"
4023 if test -z "$GREP"; then
4024   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026    { (exit 1); exit 1; }; }
4027 fi
4028
4029 else
4030   ac_cv_path_GREP=$GREP
4031 fi
4032
4033
4034 fi
4035 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4036 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4037  GREP="$ac_cv_path_GREP"
4038
4039
4040 { echo "$as_me:$LINENO: checking for egrep" >&5
4041 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4042 if test "${ac_cv_path_EGREP+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4046    then ac_cv_path_EGREP="$GREP -E"
4047    else
4048      # Extract the first word of "egrep" to use in msg output
4049 if test -z "$EGREP"; then
4050 set dummy egrep; ac_prog_name=$2
4051 if test "${ac_cv_path_EGREP+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   ac_path_EGREP_found=false
4055 # Loop through the user's path and test for each of PROGNAME-LIST
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061   for ac_prog in egrep; do
4062   for ac_exec_ext in '' $ac_executable_extensions; do
4063     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4064     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4065     # Check for GNU ac_path_EGREP and select it if it is found.
4066   # Check for GNU $ac_path_EGREP
4067 case `"$ac_path_EGREP" --version 2>&1` in
4068 *GNU*)
4069   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070 *)
4071   ac_count=0
4072   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4073   while :
4074   do
4075     cat "conftest.in" "conftest.in" >"conftest.tmp"
4076     mv "conftest.tmp" "conftest.in"
4077     cp "conftest.in" "conftest.nl"
4078     echo 'EGREP' >> "conftest.nl"
4079     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4081     ac_count=`expr $ac_count + 1`
4082     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4083       # Best one so far, save it but keep looking for a better one
4084       ac_cv_path_EGREP="$ac_path_EGREP"
4085       ac_path_EGREP_max=$ac_count
4086     fi
4087     # 10*(2^10) chars as input seems more than enough
4088     test $ac_count -gt 10 && break
4089   done
4090   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091 esac
4092
4093
4094     $ac_path_EGREP_found && break 3
4095   done
4096 done
4097
4098 done
4099 IFS=$as_save_IFS
4100
4101
4102 fi
4103
4104 EGREP="$ac_cv_path_EGREP"
4105 if test -z "$EGREP"; then
4106   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4107 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4108    { (exit 1); exit 1; }; }
4109 fi
4110
4111 else
4112   ac_cv_path_EGREP=$EGREP
4113 fi
4114
4115
4116    fi
4117 fi
4118 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4119 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4120  EGREP="$ac_cv_path_EGREP"
4121
4122
4123 if test $ac_cv_c_compiler_gnu = yes; then
4124     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4125 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4126 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129     ac_pattern="Autoconf.*'x'"
4130   cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 #include <sgtty.h>
4137 Autoconf TIOCGETP
4138 _ACEOF
4139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4140   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4141   ac_cv_prog_gcc_traditional=yes
4142 else
4143   ac_cv_prog_gcc_traditional=no
4144 fi
4145 rm -f conftest*
4146
4147
4148   if test $ac_cv_prog_gcc_traditional = no; then
4149     cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155 #include <termio.h>
4156 Autoconf TCGETA
4157 _ACEOF
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4160   ac_cv_prog_gcc_traditional=yes
4161 fi
4162 rm -f conftest*
4163
4164   fi
4165 fi
4166 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4167 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4168   if test $ac_cv_prog_gcc_traditional = yes; then
4169     CC="$CC -traditional"
4170   fi
4171 fi
4172
4173 BASECC=`basename $CC`
4174 have_gcc=no
4175 if test "x$BASECC" = xgcc; then
4176    cat >>confdefs.h <<\_ACEOF
4177 #define HAVE_GCC 1
4178 _ACEOF
4179
4180    have_gcc=yes
4181 fi
4182 # Extract the first word of "$CXX", so it can be a program name with args.
4183 set dummy $CXX; ac_word=$2
4184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4186 if test "${ac_cv_path_CXX+set}" = set; then
4187   echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189   case $CXX in
4190   [\\/]* | ?:[\\/]*)
4191   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4192   ;;
4193   *)
4194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197   IFS=$as_save_IFS
4198   test -z "$as_dir" && as_dir=.
4199   for ac_exec_ext in '' $ac_executable_extensions; do
4200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203     break 2
4204   fi
4205 done
4206 done
4207 IFS=$as_save_IFS
4208
4209   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4210   ;;
4211 esac
4212 fi
4213 CXX=$ac_cv_path_CXX
4214 if test -n "$CXX"; then
4215   { echo "$as_me:$LINENO: result: $CXX" >&5
4216 echo "${ECHO_T}$CXX" >&6; }
4217 else
4218   { echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6; }
4220 fi
4221
4222
4223 if test ! -e $CXX; then
4224    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4225 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4226    { (exit 1); exit 1; }; }
4227 fi
4228
4229 # Find a good install program.  We prefer a C program (faster),
4230 # so one script is as good as another.  But avoid the broken or
4231 # incompatible versions:
4232 # SysV /etc/install, /usr/sbin/install
4233 # SunOS /usr/etc/install
4234 # IRIX /sbin/install
4235 # AIX /bin/install
4236 # AmigaOS /C/install, which installs bootblocks on floppy discs
4237 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4238 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4239 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4240 # OS/2's system install, which has a completely different semantic
4241 # ./install, which can be erroneously created by make from ./install.sh.
4242 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4243 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4244 if test -z "$INSTALL"; then
4245 if test "${ac_cv_path_install+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251   IFS=$as_save_IFS
4252   test -z "$as_dir" && as_dir=.
4253   # Account for people who put trailing slashes in PATH elements.
4254 case $as_dir/ in
4255   ./ | .// | /cC/* | \
4256   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4257   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4258   /usr/ucb/* ) ;;
4259   *)
4260     # OSF1 and SCO ODT 3.0 have their own names for install.
4261     # Don't use installbsd from OSF since it installs stuff as root
4262     # by default.
4263     for ac_prog in ginstall scoinst install; do
4264       for ac_exec_ext in '' $ac_executable_extensions; do
4265         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4266           if test $ac_prog = install &&
4267             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268             # AIX install.  It has an incompatible calling convention.
4269             :
4270           elif test $ac_prog = install &&
4271             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4272             # program-specific install script used by HP pwplus--don't use.
4273             :
4274           else
4275             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4276             break 3
4277           fi
4278         fi
4279       done
4280     done
4281     ;;
4282 esac
4283 done
4284 IFS=$as_save_IFS
4285
4286
4287 fi
4288   if test "${ac_cv_path_install+set}" = set; then
4289     INSTALL=$ac_cv_path_install
4290   else
4291     # As a last resort, use the slow shell script.  Don't cache a
4292     # value for INSTALL within a source directory, because that will
4293     # break other packages using the cache if that directory is
4294     # removed, or if the value is a relative name.
4295     INSTALL=$ac_install_sh
4296   fi
4297 fi
4298 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4299 echo "${ECHO_T}$INSTALL" >&6; }
4300
4301 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4302 # It thinks the first close brace ends the variable substitution.
4303 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4304
4305 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4306
4307 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4308
4309 # Extract the first word of "mv", so it can be a program name with args.
4310 set dummy mv; ac_word=$2
4311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4313 if test "${ac_cv_path_MV+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   case $MV in
4317   [\\/]* | ?:[\\/]*)
4318   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4319   ;;
4320   *)
4321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326   for ac_exec_ext in '' $ac_executable_extensions; do
4327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330     break 2
4331   fi
4332 done
4333 done
4334 IFS=$as_save_IFS
4335
4336   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4337   ;;
4338 esac
4339 fi
4340 MV=$ac_cv_path_MV
4341 if test -n "$MV"; then
4342   { echo "$as_me:$LINENO: result: $MV" >&5
4343 echo "${ECHO_T}$MV" >&6; }
4344 else
4345   { echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6; }
4347 fi
4348
4349
4350 # Extract the first word of "rm", so it can be a program name with args.
4351 set dummy rm; ac_word=$2
4352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4354 if test "${ac_cv_path_REMOVE+set}" = set; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357   case $REMOVE in
4358   [\\/]* | ?:[\\/]*)
4359   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4360   ;;
4361   *)
4362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367   for ac_exec_ext in '' $ac_executable_extensions; do
4368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4378   ;;
4379 esac
4380 fi
4381 REMOVE=$ac_cv_path_REMOVE
4382 if test -n "$REMOVE"; then
4383   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4384 echo "${ECHO_T}$REMOVE" >&6; }
4385 else
4386   { echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6; }
4388 fi
4389
4390
4391 # Extract the first word of "cp", so it can be a program name with args.
4392 set dummy cp; ac_word=$2
4393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4395 if test "${ac_cv_path_CP+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   case $CP in
4399   [\\/]* | ?:[\\/]*)
4400   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4401   ;;
4402   *)
4403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408   for ac_exec_ext in '' $ac_executable_extensions; do
4409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412     break 2
4413   fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4419   ;;
4420 esac
4421 fi
4422 CP=$ac_cv_path_CP
4423 if test -n "$CP"; then
4424   { echo "$as_me:$LINENO: result: $CP" >&5
4425 echo "${ECHO_T}$CP" >&6; }
4426 else
4427   { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4429 fi
4430
4431
4432 # Extract the first word of "sed", so it can be a program name with args.
4433 set dummy sed; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_path_SED+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   case $SED in
4440   [\\/]* | ?:[\\/]*)
4441   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4442   ;;
4443   *)
4444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449   for ac_exec_ext in '' $ac_executable_extensions; do
4450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456 done
4457 IFS=$as_save_IFS
4458
4459   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4460   ;;
4461 esac
4462 fi
4463 SED=$ac_cv_path_SED
4464 if test -n "$SED"; then
4465   { echo "$as_me:$LINENO: result: $SED" >&5
4466 echo "${ECHO_T}$SED" >&6; }
4467 else
4468   { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4470 fi
4471
4472
4473 # Extract the first word of "echo", so it can be a program name with args.
4474 set dummy echo; ac_word=$2
4475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4477 if test "${ac_cv_path_ECHO+set}" = set; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480   case $ECHO in
4481   [\\/]* | ?:[\\/]*)
4482   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4483   ;;
4484   *)
4485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4487 do
4488   IFS=$as_save_IFS
4489   test -z "$as_dir" && as_dir=.
4490   for ac_exec_ext in '' $ac_executable_extensions; do
4491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494     break 2
4495   fi
4496 done
4497 done
4498 IFS=$as_save_IFS
4499
4500   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4501   ;;
4502 esac
4503 fi
4504 ECHO=$ac_cv_path_ECHO
4505 if test -n "$ECHO"; then
4506   { echo "$as_me:$LINENO: result: $ECHO" >&5
4507 echo "${ECHO_T}$ECHO" >&6; }
4508 else
4509   { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4511 fi
4512
4513
4514 # Extract the first word of "cmp", so it can be a program name with args.
4515 set dummy cmp; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_path_CMP+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   case $CMP in
4522   [\\/]* | ?:[\\/]*)
4523   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4524   ;;
4525   *)
4526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529   IFS=$as_save_IFS
4530   test -z "$as_dir" && as_dir=.
4531   for ac_exec_ext in '' $ac_executable_extensions; do
4532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535     break 2
4536   fi
4537 done
4538 done
4539 IFS=$as_save_IFS
4540
4541   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4542   ;;
4543 esac
4544 fi
4545 CMP=$ac_cv_path_CMP
4546 if test -n "$CMP"; then
4547   { echo "$as_me:$LINENO: result: $CMP" >&5
4548 echo "${ECHO_T}$CMP" >&6; }
4549 else
4550   { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4552 fi
4553
4554
4555 # Extract the first word of "tbl", so it can be a program name with args.
4556 set dummy tbl; ac_word=$2
4557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559 if test "${ac_cv_path_TBL+set}" = set; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   case $TBL in
4563   [\\/]* | ?:[\\/]*)
4564   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4565   ;;
4566   *)
4567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572   for ac_exec_ext in '' $ac_executable_extensions; do
4573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576     break 2
4577   fi
4578 done
4579 done
4580 IFS=$as_save_IFS
4581
4582   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4583   ;;
4584 esac
4585 fi
4586 TBL=$ac_cv_path_TBL
4587 if test -n "$TBL"; then
4588   { echo "$as_me:$LINENO: result: $TBL" >&5
4589 echo "${ECHO_T}$TBL" >&6; }
4590 else
4591   { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4593 fi
4594
4595
4596 # Extract the first word of "ar", so it can be a program name with args.
4597 set dummy ar; ac_word=$2
4598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4600 if test "${ac_cv_path_AR+set}" = set; then
4601   echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603   case $AR in
4604   [\\/]* | ?:[\\/]*)
4605   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4606   ;;
4607   *)
4608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611   IFS=$as_save_IFS
4612   test -z "$as_dir" && as_dir=.
4613   for ac_exec_ext in '' $ac_executable_extensions; do
4614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617     break 2
4618   fi
4619 done
4620 done
4621 IFS=$as_save_IFS
4622
4623   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4624   ;;
4625 esac
4626 fi
4627 AR=$ac_cv_path_AR
4628 if test -n "$AR"; then
4629   { echo "$as_me:$LINENO: result: $AR" >&5
4630 echo "${ECHO_T}$AR" >&6; }
4631 else
4632   { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4634 fi
4635
4636
4637 # Extract the first word of "openssl", so it can be a program name with args.
4638 set dummy openssl; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_path_OPENSSL+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644   case $OPENSSL in
4645   [\\/]* | ?:[\\/]*)
4646   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4647   ;;
4648   *)
4649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654   for ac_exec_ext in '' $ac_executable_extensions; do
4655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658     break 2
4659   fi
4660 done
4661 done
4662 IFS=$as_save_IFS
4663
4664   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4665   ;;
4666 esac
4667 fi
4668 OPENSSL=$ac_cv_path_OPENSSL
4669 if test -n "$OPENSSL"; then
4670   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4671 echo "${ECHO_T}$OPENSSL" >&6; }
4672 else
4673   { echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6; }
4675 fi
4676
4677
4678 # Extract the first word of "mtx", so it can be a program name with args.
4679 set dummy mtx; ac_word=$2
4680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4682 if test "${ac_cv_path_MTX+set}" = set; then
4683   echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685   case $MTX in
4686   [\\/]* | ?:[\\/]*)
4687   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4688   ;;
4689   *)
4690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693   IFS=$as_save_IFS
4694   test -z "$as_dir" && as_dir=.
4695   for ac_exec_ext in '' $ac_executable_extensions; do
4696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699     break 2
4700   fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4706   ;;
4707 esac
4708 fi
4709 MTX=$ac_cv_path_MTX
4710 if test -n "$MTX"; then
4711   { echo "$as_me:$LINENO: result: $MTX" >&5
4712 echo "${ECHO_T}$MTX" >&6; }
4713 else
4714   { echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6; }
4716 fi
4717
4718
4719 # Extract the first word of "dd", so it can be a program name with args.
4720 set dummy dd; ac_word=$2
4721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4723 if test "${ac_cv_path_DD+set}" = set; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   case $DD in
4727   [\\/]* | ?:[\\/]*)
4728   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4729   ;;
4730   *)
4731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734   IFS=$as_save_IFS
4735   test -z "$as_dir" && as_dir=.
4736   for ac_exec_ext in '' $ac_executable_extensions; do
4737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740     break 2
4741   fi
4742 done
4743 done
4744 IFS=$as_save_IFS
4745
4746   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4747   ;;
4748 esac
4749 fi
4750 DD=$ac_cv_path_DD
4751 if test -n "$DD"; then
4752   { echo "$as_me:$LINENO: result: $DD" >&5
4753 echo "${ECHO_T}$DD" >&6; }
4754 else
4755   { echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6; }
4757 fi
4758
4759
4760 # Extract the first word of "mkisofs", so it can be a program name with args.
4761 set dummy mkisofs; ac_word=$2
4762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4764 if test "${ac_cv_path_MKISOFS+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   case $MKISOFS in
4768   [\\/]* | ?:[\\/]*)
4769   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4770   ;;
4771   *)
4772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775   IFS=$as_save_IFS
4776   test -z "$as_dir" && as_dir=.
4777   for ac_exec_ext in '' $ac_executable_extensions; do
4778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781     break 2
4782   fi
4783 done
4784 done
4785 IFS=$as_save_IFS
4786
4787   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4788   ;;
4789 esac
4790 fi
4791 MKISOFS=$ac_cv_path_MKISOFS
4792 if test -n "$MKISOFS"; then
4793   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4794 echo "${ECHO_T}$MKISOFS" >&6; }
4795 else
4796   { echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6; }
4798 fi
4799
4800
4801 # Extract the first word of "python", so it can be a program name with args.
4802 set dummy python; ac_word=$2
4803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4805 if test "${ac_cv_path_PYTHON+set}" = set; then
4806   echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808   case $PYTHON in
4809   [\\/]* | ?:[\\/]*)
4810   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4811   ;;
4812   *)
4813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816   IFS=$as_save_IFS
4817   test -z "$as_dir" && as_dir=.
4818   for ac_exec_ext in '' $ac_executable_extensions; do
4819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822     break 2
4823   fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4829   ;;
4830 esac
4831 fi
4832 PYTHON=$ac_cv_path_PYTHON
4833 if test -n "$PYTHON"; then
4834   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4835 echo "${ECHO_T}$PYTHON" >&6; }
4836 else
4837   { echo "$as_me:$LINENO: result: no" >&5
4838 echo "${ECHO_T}no" >&6; }
4839 fi
4840
4841
4842 # Extract the first word of "growisofs", so it can be a program name with args.
4843 set dummy growisofs; ac_word=$2
4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4846 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   case $GROWISOFS in
4850   [\\/]* | ?:[\\/]*)
4851   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4852   ;;
4853   *)
4854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857   IFS=$as_save_IFS
4858   test -z "$as_dir" && as_dir=.
4859   for ac_exec_ext in '' $ac_executable_extensions; do
4860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4863     break 2
4864   fi
4865 done
4866 done
4867 IFS=$as_save_IFS
4868
4869   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4870   ;;
4871 esac
4872 fi
4873 GROWISOFS=$ac_cv_path_GROWISOFS
4874 if test -n "$GROWISOFS"; then
4875   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4876 echo "${ECHO_T}$GROWISOFS" >&6; }
4877 else
4878   { echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6; }
4880 fi
4881
4882
4883 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4884 set dummy dvd+rw-mediainfo; ac_word=$2
4885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4887 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   case $DVDRWMEDIAINFO in
4891   [\\/]* | ?:[\\/]*)
4892   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4893   ;;
4894   *)
4895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898   IFS=$as_save_IFS
4899   test -z "$as_dir" && as_dir=.
4900   for ac_exec_ext in '' $ac_executable_extensions; do
4901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904     break 2
4905   fi
4906 done
4907 done
4908 IFS=$as_save_IFS
4909
4910   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4911   ;;
4912 esac
4913 fi
4914 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4915 if test -n "$DVDRWMEDIAINFO"; then
4916   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4917 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4918 else
4919   { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4921 fi
4922
4923
4924 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4925 set dummy dvd+rw-format; ac_word=$2
4926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4928 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931   case $DVDRWFORMAT in
4932   [\\/]* | ?:[\\/]*)
4933   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4934   ;;
4935   *)
4936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939   IFS=$as_save_IFS
4940   test -z "$as_dir" && as_dir=.
4941   for ac_exec_ext in '' $ac_executable_extensions; do
4942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945     break 2
4946   fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4952   ;;
4953 esac
4954 fi
4955 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4956 if test -n "$DVDRWFORMAT"; then
4957   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4958 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4959 else
4960   { echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6; }
4962 fi
4963
4964
4965 # Extract the first word of "pkg-config", so it can be a program name with args.
4966 set dummy pkg-config; ac_word=$2
4967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4969 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   case $PKGCONFIG in
4973   [\\/]* | ?:[\\/]*)
4974   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4975   ;;
4976   *)
4977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980   IFS=$as_save_IFS
4981   test -z "$as_dir" && as_dir=.
4982   for ac_exec_ext in '' $ac_executable_extensions; do
4983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986     break 2
4987   fi
4988 done
4989 done
4990 IFS=$as_save_IFS
4991
4992   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4993   ;;
4994 esac
4995 fi
4996 PKGCONFIG=$ac_cv_path_PKGCONFIG
4997 if test -n "$PKGCONFIG"; then
4998   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4999 echo "${ECHO_T}$PKGCONFIG" >&6; }
5000 else
5001   { echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6; }
5003 fi
5004
5005
5006 # Extract the first word of "qmake", so it can be a program name with args.
5007 set dummy qmake; ac_word=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_path_QMAKE+set}" = set; then
5011   echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013   case $QMAKE in
5014   [\\/]* | ?:[\\/]*)
5015   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5016   ;;
5017   *)
5018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023   for ac_exec_ext in '' $ac_executable_extensions; do
5024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027     break 2
5028   fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5034   ;;
5035 esac
5036 fi
5037 QMAKE=$ac_cv_path_QMAKE
5038 if test -n "$QMAKE"; then
5039   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5040 echo "${ECHO_T}$QMAKE" >&6; }
5041 else
5042   { echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6; }
5044 fi
5045
5046
5047 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5048 set dummy qmake-qt4; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   case $QMAKEQT4 in
5055   [\\/]* | ?:[\\/]*)
5056   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5057   ;;
5058   *)
5059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064   for ac_exec_ext in '' $ac_executable_extensions; do
5065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5075   ;;
5076 esac
5077 fi
5078 QMAKEQT4=$ac_cv_path_QMAKEQT4
5079 if test -n "$QMAKEQT4"; then
5080   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5081 echo "${ECHO_T}$QMAKEQT4" >&6; }
5082 else
5083   { echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6; }
5085 fi
5086
5087
5088
5089 if test "x$WXCONFIG" = x; then
5090    WXCONFIG=wx-config
5091 fi
5092 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5093 set dummy ${WXCONFIG}; ac_word=$2
5094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5096 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5097   echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099   case $WXCONFIG in
5100   [\\/]* | ?:[\\/]*)
5101   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5102   ;;
5103   *)
5104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109   for ac_exec_ext in '' $ac_executable_extensions; do
5110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113     break 2
5114   fi
5115 done
5116 done
5117 IFS=$as_save_IFS
5118
5119   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5120   ;;
5121 esac
5122 fi
5123 WXCONFIG=$ac_cv_path_WXCONFIG
5124 if test -n "$WXCONFIG"; then
5125   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5126 echo "${ECHO_T}$WXCONFIG" >&6; }
5127 else
5128   { echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6; }
5130 fi
5131
5132
5133
5134 # Extract the first word of "cdrecord", so it can be a program name with args.
5135 set dummy cdrecord; ac_word=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_path_CDRECORD+set}" = set; then
5139   echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141   case $CDRECORD in
5142   [\\/]* | ?:[\\/]*)
5143   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5144   ;;
5145   *)
5146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149   IFS=$as_save_IFS
5150   test -z "$as_dir" && as_dir=.
5151   for ac_exec_ext in '' $ac_executable_extensions; do
5152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155     break 2
5156   fi
5157 done
5158 done
5159 IFS=$as_save_IFS
5160
5161   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5162   ;;
5163 esac
5164 fi
5165 CDRECORD=$ac_cv_path_CDRECORD
5166 if test -n "$CDRECORD"; then
5167   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5168 echo "${ECHO_T}$CDRECORD" >&6; }
5169 else
5170   { echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6; }
5172 fi
5173
5174
5175 # Extract the first word of "pidof", so it can be a program name with args.
5176 set dummy pidof; ac_word=$2
5177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5179 if test "${ac_cv_path_PIDOF+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   case $PIDOF in
5183   [\\/]* | ?:[\\/]*)
5184   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5185   ;;
5186   *)
5187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190   IFS=$as_save_IFS
5191   test -z "$as_dir" && as_dir=.
5192   for ac_exec_ext in '' $ac_executable_extensions; do
5193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196     break 2
5197   fi
5198 done
5199 done
5200 IFS=$as_save_IFS
5201
5202   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5203   ;;
5204 esac
5205 fi
5206 PIDOF=$ac_cv_path_PIDOF
5207 if test -n "$PIDOF"; then
5208   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5209 echo "${ECHO_T}$PIDOF" >&6; }
5210 else
5211   { echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6; }
5213 fi
5214
5215
5216 for ac_prog in gawk mawk nawk awk
5217 do
5218   # Extract the first word of "$ac_prog", so it can be a program name with args.
5219 set dummy $ac_prog; ac_word=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_prog_AWK+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   if test -n "$AWK"; then
5226   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233   for ac_exec_ext in '' $ac_executable_extensions; do
5234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235     ac_cv_prog_AWK="$ac_prog"
5236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240 done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 AWK=$ac_cv_prog_AWK
5246 if test -n "$AWK"; then
5247   { echo "$as_me:$LINENO: result: $AWK" >&5
5248 echo "${ECHO_T}$AWK" >&6; }
5249 else
5250   { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5252 fi
5253
5254
5255   test -n "$AWK" && break
5256 done
5257
5258 # Some AWK programs fail, so test it and warn the user
5259 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5260       { if ((prog == $2) || (("(" prog ")") == $2) ||
5261       (("" prog "") == $2) ||
5262       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5263 else
5264   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5265    The regex engine of $AWK is too broken to be used you
5266    might want to install GNU AWK.
5267    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5268 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5269    The regex engine of $AWK is too broken to be used you
5270    might want to install GNU AWK.
5271    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5272    { (exit 1); exit 1; }; }
5273 fi
5274 THE_AWK=$AWK
5275 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5276 set dummy $THE_AWK; ac_word=$2
5277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5279 if test "${ac_cv_path_AWK+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   case $AWK in
5283   [\\/]* | ?:[\\/]*)
5284   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5285   ;;
5286   *)
5287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292   for ac_exec_ext in '' $ac_executable_extensions; do
5293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299 done
5300 IFS=$as_save_IFS
5301
5302   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5303   ;;
5304 esac
5305 fi
5306 AWK=$ac_cv_path_AWK
5307 if test -n "$AWK"; then
5308   { echo "$as_me:$LINENO: result: $AWK" >&5
5309 echo "${ECHO_T}$AWK" >&6; }
5310 else
5311   { echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6; }
5313 fi
5314
5315
5316
5317
5318 test -n "$ARFLAG" || ARFLAGS="cr"
5319
5320
5321 MAKE_SHELL=/bin/sh
5322
5323
5324
5325
5326
5327
5328
5329 # Check whether --enable-libtool was given.
5330 if test "${enable_libtool+set}" = set; then
5331   enableval=$enable_libtool;
5332        if test x$enableval = xno; then
5333           use_libtool=no
5334        fi
5335
5336
5337 fi
5338
5339 case `pwd` in
5340   *\ * | *\     *)
5341     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5342 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5343 esac
5344
5345
5346
5347 macro_version='2.2.6'
5348 macro_revision='1.3012'
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362 ltmain="$ac_aux_dir/ltmain.sh"
5363
5364 # Make sure we can run config.sub.
5365 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5366   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5367 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5368    { (exit 1); exit 1; }; }
5369
5370 { echo "$as_me:$LINENO: checking build system type" >&5
5371 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5372 if test "${ac_cv_build+set}" = set; then
5373   echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375   ac_build_alias=$build_alias
5376 test "x$ac_build_alias" = x &&
5377   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5378 test "x$ac_build_alias" = x &&
5379   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5380 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5381    { (exit 1); exit 1; }; }
5382 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5383   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5384 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5385    { (exit 1); exit 1; }; }
5386
5387 fi
5388 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5389 echo "${ECHO_T}$ac_cv_build" >&6; }
5390 case $ac_cv_build in
5391 *-*-*) ;;
5392 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5393 echo "$as_me: error: invalid value of canonical build" >&2;}
5394    { (exit 1); exit 1; }; };;
5395 esac
5396 build=$ac_cv_build
5397 ac_save_IFS=$IFS; IFS='-'
5398 set x $ac_cv_build
5399 shift
5400 build_cpu=$1
5401 build_vendor=$2
5402 shift; shift
5403 # Remember, the first character of IFS is used to create $*,
5404 # except with old shells:
5405 build_os=$*
5406 IFS=$ac_save_IFS
5407 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5408
5409
5410 { echo "$as_me:$LINENO: checking host system type" >&5
5411 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5412 if test "${ac_cv_host+set}" = set; then
5413   echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415   if test "x$host_alias" = x; then
5416   ac_cv_host=$ac_cv_build
5417 else
5418   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5419     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5420 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5421    { (exit 1); exit 1; }; }
5422 fi
5423
5424 fi
5425 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5426 echo "${ECHO_T}$ac_cv_host" >&6; }
5427 case $ac_cv_host in
5428 *-*-*) ;;
5429 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5430 echo "$as_me: error: invalid value of canonical host" >&2;}
5431    { (exit 1); exit 1; }; };;
5432 esac
5433 host=$ac_cv_host
5434 ac_save_IFS=$IFS; IFS='-'
5435 set x $ac_cv_host
5436 shift
5437 host_cpu=$1
5438 host_vendor=$2
5439 shift; shift
5440 # Remember, the first character of IFS is used to create $*,
5441 # except with old shells:
5442 host_os=$*
5443 IFS=$ac_save_IFS
5444 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5445
5446
5447 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5448 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5449 if test "${ac_cv_path_SED+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5453      for ac_i in 1 2 3 4 5 6 7; do
5454        ac_script="$ac_script$as_nl$ac_script"
5455      done
5456      echo "$ac_script" | sed 99q >conftest.sed
5457      $as_unset ac_script || ac_script=
5458      # Extract the first word of "sed gsed" to use in msg output
5459 if test -z "$SED"; then
5460 set dummy sed gsed; ac_prog_name=$2
5461 if test "${ac_cv_path_SED+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   ac_path_SED_found=false
5465 # Loop through the user's path and test for each of PROGNAME-LIST
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469   IFS=$as_save_IFS
5470   test -z "$as_dir" && as_dir=.
5471   for ac_prog in sed gsed; do
5472   for ac_exec_ext in '' $ac_executable_extensions; do
5473     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5474     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5475     # Check for GNU ac_path_SED and select it if it is found.
5476   # Check for GNU $ac_path_SED
5477 case `"$ac_path_SED" --version 2>&1` in
5478 *GNU*)
5479   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5480 *)
5481   ac_count=0
5482   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5483   while :
5484   do
5485     cat "conftest.in" "conftest.in" >"conftest.tmp"
5486     mv "conftest.tmp" "conftest.in"
5487     cp "conftest.in" "conftest.nl"
5488     echo '' >> "conftest.nl"
5489     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5490     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5491     ac_count=`expr $ac_count + 1`
5492     if test $ac_count -gt ${ac_path_SED_max-0}; then
5493       # Best one so far, save it but keep looking for a better one
5494       ac_cv_path_SED="$ac_path_SED"
5495       ac_path_SED_max=$ac_count
5496     fi
5497     # 10*(2^10) chars as input seems more than enough
5498     test $ac_count -gt 10 && break
5499   done
5500   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5501 esac
5502
5503
5504     $ac_path_SED_found && break 3
5505   done
5506 done
5507
5508 done
5509 IFS=$as_save_IFS
5510
5511
5512 fi
5513
5514 SED="$ac_cv_path_SED"
5515 if test -z "$SED"; then
5516   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5517 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5518    { (exit 1); exit 1; }; }
5519 fi
5520
5521 else
5522   ac_cv_path_SED=$SED
5523 fi
5524
5525 fi
5526 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5527 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5528  SED="$ac_cv_path_SED"
5529   rm -f conftest.sed
5530
5531 test -z "$SED" && SED=sed
5532 Xsed="$SED -e 1s/^X//"
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544 { echo "$as_me:$LINENO: checking for fgrep" >&5
5545 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5546 if test "${ac_cv_path_FGREP+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5550    then ac_cv_path_FGREP="$GREP -F"
5551    else
5552      # Extract the first word of "fgrep" to use in msg output
5553 if test -z "$FGREP"; then
5554 set dummy fgrep; ac_prog_name=$2
5555 if test "${ac_cv_path_FGREP+set}" = set; then
5556   echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558   ac_path_FGREP_found=false
5559 # Loop through the user's path and test for each of PROGNAME-LIST
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562 do
5563   IFS=$as_save_IFS
5564   test -z "$as_dir" && as_dir=.
5565   for ac_prog in fgrep; do
5566   for ac_exec_ext in '' $ac_executable_extensions; do
5567     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5568     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5569     # Check for GNU ac_path_FGREP and select it if it is found.
5570   # Check for GNU $ac_path_FGREP
5571 case `"$ac_path_FGREP" --version 2>&1` in
5572 *GNU*)
5573   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5574 *)
5575   ac_count=0
5576   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5577   while :
5578   do
5579     cat "conftest.in" "conftest.in" >"conftest.tmp"
5580     mv "conftest.tmp" "conftest.in"
5581     cp "conftest.in" "conftest.nl"
5582     echo 'FGREP' >> "conftest.nl"
5583     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5584     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5585     ac_count=`expr $ac_count + 1`
5586     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5587       # Best one so far, save it but keep looking for a better one
5588       ac_cv_path_FGREP="$ac_path_FGREP"
5589       ac_path_FGREP_max=$ac_count
5590     fi
5591     # 10*(2^10) chars as input seems more than enough
5592     test $ac_count -gt 10 && break
5593   done
5594   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5595 esac
5596
5597
5598     $ac_path_FGREP_found && break 3
5599   done
5600 done
5601
5602 done
5603 IFS=$as_save_IFS
5604
5605
5606 fi
5607
5608 FGREP="$ac_cv_path_FGREP"
5609 if test -z "$FGREP"; then
5610   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5611 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5612    { (exit 1); exit 1; }; }
5613 fi
5614
5615 else
5616   ac_cv_path_FGREP=$FGREP
5617 fi
5618
5619
5620    fi
5621 fi
5622 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5623 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5624  FGREP="$ac_cv_path_FGREP"
5625
5626
5627 test -z "$GREP" && GREP=grep
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647 # Check whether --with-gnu-ld was given.
5648 if test "${with_gnu_ld+set}" = set; then
5649   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5650 else
5651   with_gnu_ld=no
5652 fi
5653
5654 ac_prog=ld
5655 if test "$GCC" = yes; then
5656   # Check if gcc -print-prog-name=ld gives a path.
5657   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5658 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5659   case $host in
5660   *-*-mingw*)
5661     # gcc leaves a trailing carriage return which upsets mingw
5662     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5663   *)
5664     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5665   esac
5666   case $ac_prog in
5667     # Accept absolute paths.
5668     [\\/]* | ?:[\\/]*)
5669       re_direlt='/[^/][^/]*/\.\./'
5670       # Canonicalize the pathname of ld
5671       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5672       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5673         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5674       done
5675       test -z "$LD" && LD="$ac_prog"
5676       ;;
5677   "")
5678     # If it fails, then pretend we aren't using GCC.
5679     ac_prog=ld
5680     ;;
5681   *)
5682     # If it is relative, then search for the first ld in PATH.
5683     with_gnu_ld=unknown
5684     ;;
5685   esac
5686 elif test "$with_gnu_ld" = yes; then
5687   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5688 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5689 else
5690   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5691 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5692 fi
5693 if test "${lt_cv_path_LD+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   if test -z "$LD"; then
5697   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5698   for ac_dir in $PATH; do
5699     IFS="$lt_save_ifs"
5700     test -z "$ac_dir" && ac_dir=.
5701     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5702       lt_cv_path_LD="$ac_dir/$ac_prog"
5703       # Check to see if the program is GNU ld.  I'd rather use --version,
5704       # but apparently some variants of GNU ld only accept -v.
5705       # Break only if it was the GNU/non-GNU ld that we prefer.
5706       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5707       *GNU* | *'with BFD'*)
5708         test "$with_gnu_ld" != no && break
5709         ;;
5710       *)
5711         test "$with_gnu_ld" != yes && break
5712         ;;
5713       esac
5714     fi
5715   done
5716   IFS="$lt_save_ifs"
5717 else
5718   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5719 fi
5720 fi
5721
5722 LD="$lt_cv_path_LD"
5723 if test -n "$LD"; then
5724   { echo "$as_me:$LINENO: result: $LD" >&5
5725 echo "${ECHO_T}$LD" >&6; }
5726 else
5727   { echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6; }
5729 fi
5730 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5731 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5732    { (exit 1); exit 1; }; }
5733 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5734 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5735 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5736   echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5739 case `$LD -v 2>&1 </dev/null` in
5740 *GNU* | *'with BFD'*)
5741   lt_cv_prog_gnu_ld=yes
5742   ;;
5743 *)
5744   lt_cv_prog_gnu_ld=no
5745   ;;
5746 esac
5747 fi
5748 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5749 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5750 with_gnu_ld=$lt_cv_prog_gnu_ld
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5761 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5762 if test "${lt_cv_path_NM+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   if test -n "$NM"; then
5766   # Let the user override the test.
5767   lt_cv_path_NM="$NM"
5768 else
5769   lt_nm_to_check="${ac_tool_prefix}nm"
5770   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5771     lt_nm_to_check="$lt_nm_to_check nm"
5772   fi
5773   for lt_tmp_nm in $lt_nm_to_check; do
5774     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5775     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5776       IFS="$lt_save_ifs"
5777       test -z "$ac_dir" && ac_dir=.
5778       tmp_nm="$ac_dir/$lt_tmp_nm"
5779       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5780         # Check to see if the nm accepts a BSD-compat flag.
5781         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5782         #   nm: unknown option "B" ignored
5783         # Tru64's nm complains that /dev/null is an invalid object file
5784         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5785         */dev/null* | *'Invalid file or object type'*)
5786           lt_cv_path_NM="$tmp_nm -B"
5787           break
5788           ;;
5789         *)
5790           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5791           */dev/null*)
5792             lt_cv_path_NM="$tmp_nm -p"
5793             break
5794             ;;
5795           *)
5796             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5797             continue # so that we can try to find one that supports BSD flags
5798             ;;
5799           esac
5800           ;;
5801         esac
5802       fi
5803     done
5804     IFS="$lt_save_ifs"
5805   done
5806   : ${lt_cv_path_NM=no}
5807 fi
5808 fi
5809 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5810 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5811 if test "$lt_cv_path_NM" != "no"; then
5812   NM="$lt_cv_path_NM"
5813 else
5814   # Didn't find any BSD compatible name lister, look for dumpbin.
5815   if test -n "$ac_tool_prefix"; then
5816   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5817   do
5818     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   if test -n "$DUMPBIN"; then
5826   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833   for ac_exec_ext in '' $ac_executable_extensions; do
5834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 DUMPBIN=$ac_cv_prog_DUMPBIN
5846 if test -n "$DUMPBIN"; then
5847   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5848 echo "${ECHO_T}$DUMPBIN" >&6; }
5849 else
5850   { echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6; }
5852 fi
5853
5854
5855     test -n "$DUMPBIN" && break
5856   done
5857 fi
5858 if test -z "$DUMPBIN"; then
5859   ac_ct_DUMPBIN=$DUMPBIN
5860   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5861 do
5862   # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   if test -n "$ac_ct_DUMPBIN"; then
5870   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5890 if test -n "$ac_ct_DUMPBIN"; then
5891   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5892 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5893 else
5894   { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5896 fi
5897
5898
5899   test -n "$ac_ct_DUMPBIN" && break
5900 done
5901
5902   if test "x$ac_ct_DUMPBIN" = x; then
5903     DUMPBIN=":"
5904   else
5905     case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5908 whose name does not start with the host triplet.  If you think this
5909 configuration is useful to you, please write to autoconf@gnu.org." >&5
5910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5911 whose name does not start with the host triplet.  If you think this
5912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5913 ac_tool_warned=yes ;;
5914 esac
5915     DUMPBIN=$ac_ct_DUMPBIN
5916   fi
5917 fi
5918
5919
5920   if test "$DUMPBIN" != ":"; then
5921     NM="$DUMPBIN"
5922   fi
5923 fi
5924 test -z "$NM" && NM=nm
5925
5926
5927
5928
5929
5930
5931 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5932 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5933 if test "${lt_cv_nm_interface+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   lt_cv_nm_interface="BSD nm"
5937   echo "int some_variable = 0;" > conftest.$ac_ext
5938   (eval echo "\"\$as_me:5938: $ac_compile\"" >&5)
5939   (eval "$ac_compile" 2>conftest.err)
5940   cat conftest.err >&5
5941   (eval echo "\"\$as_me:5941: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5942   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5943   cat conftest.err >&5
5944   (eval echo "\"\$as_me:5944: output\"" >&5)
5945   cat conftest.out >&5
5946   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5947     lt_cv_nm_interface="MS dumpbin"
5948   fi
5949   rm -f conftest*
5950 fi
5951 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5952 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5953
5954 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5955 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5956 LN_S=$as_ln_s
5957 if test "$LN_S" = "ln -s"; then
5958   { echo "$as_me:$LINENO: result: yes" >&5
5959 echo "${ECHO_T}yes" >&6; }
5960 else
5961   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5962 echo "${ECHO_T}no, using $LN_S" >&6; }
5963 fi
5964
5965 # find the maximum length of command line arguments
5966 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5967 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5968 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971     i=0
5972   teststring="ABCD"
5973
5974   case $build_os in
5975   msdosdjgpp*)
5976     # On DJGPP, this test can blow up pretty badly due to problems in libc
5977     # (any single argument exceeding 2000 bytes causes a buffer overrun
5978     # during glob expansion).  Even if it were fixed, the result of this
5979     # check would be larger than it should be.
5980     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5981     ;;
5982
5983   gnu*)
5984     # Under GNU Hurd, this test is not required because there is
5985     # no limit to the length of command line arguments.
5986     # Libtool will interpret -1 as no limit whatsoever
5987     lt_cv_sys_max_cmd_len=-1;
5988     ;;
5989
5990   cygwin* | mingw* | cegcc*)
5991     # On Win9x/ME, this test blows up -- it succeeds, but takes
5992     # about 5 minutes as the teststring grows exponentially.
5993     # Worse, since 9x/ME are not pre-emptively multitasking,
5994     # you end up with a "frozen" computer, even though with patience
5995     # the test eventually succeeds (with a max line length of 256k).
5996     # Instead, let's just punt: use the minimum linelength reported by
5997     # all of the supported platforms: 8192 (on NT/2K/XP).
5998     lt_cv_sys_max_cmd_len=8192;
5999     ;;
6000
6001   amigaos*)
6002     # On AmigaOS with pdksh, this test takes hours, literally.
6003     # So we just punt and use a minimum line length of 8192.
6004     lt_cv_sys_max_cmd_len=8192;
6005     ;;
6006
6007   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6008     # This has been around since 386BSD, at least.  Likely further.
6009     if test -x /sbin/sysctl; then
6010       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6011     elif test -x /usr/sbin/sysctl; then
6012       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6013     else
6014       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6015     fi
6016     # And add a safety zone
6017     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6018     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6019     ;;
6020
6021   interix*)
6022     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6023     lt_cv_sys_max_cmd_len=196608
6024     ;;
6025
6026   osf*)
6027     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6028     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6029     # nice to cause kernel panics so lets avoid the loop below.
6030     # First set a reasonable default.
6031     lt_cv_sys_max_cmd_len=16384
6032     #
6033     if test -x /sbin/sysconfig; then
6034       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6035         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6036       esac
6037     fi
6038     ;;
6039   sco3.2v5*)
6040     lt_cv_sys_max_cmd_len=102400
6041     ;;
6042   sysv5* | sco5v6* | sysv4.2uw2*)
6043     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6044     if test -n "$kargmax"; then
6045       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6046     else
6047       lt_cv_sys_max_cmd_len=32768
6048     fi
6049     ;;
6050   *)
6051     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6052     if test -n "$lt_cv_sys_max_cmd_len"; then
6053       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6054       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6055     else
6056       # Make teststring a little bigger before we do anything with it.
6057       # a 1K string should be a reasonable start.
6058       for i in 1 2 3 4 5 6 7 8 ; do
6059         teststring=$teststring$teststring
6060       done
6061       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6062       # If test is not a shell built-in, we'll probably end up computing a
6063       # maximum length that is only half of the actual maximum length, but
6064       # we can't tell.
6065       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6066                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6067               test $i != 17 # 1/2 MB should be enough
6068       do
6069         i=`expr $i + 1`
6070         teststring=$teststring$teststring
6071       done
6072       # Only check the string length outside the loop.
6073       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6074       teststring=
6075       # Add a significant safety factor because C++ compilers can tack on
6076       # massive amounts of additional arguments before passing them to the
6077       # linker.  It appears as though 1/2 is a usable value.
6078       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6079     fi
6080     ;;
6081   esac
6082
6083 fi
6084
6085 if test -n $lt_cv_sys_max_cmd_len ; then
6086   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6087 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6088 else
6089   { echo "$as_me:$LINENO: result: none" >&5
6090 echo "${ECHO_T}none" >&6; }
6091 fi
6092 max_cmd_len=$lt_cv_sys_max_cmd_len
6093
6094
6095
6096
6097
6098
6099 : ${CP="cp -f"}
6100 : ${MV="mv -f"}
6101 : ${RM="rm -f"}
6102
6103 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6104 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6105 # Try some XSI features
6106 xsi_shell=no
6107 ( _lt_dummy="a/b/c"
6108   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6109       = c,a/b,, \
6110     && eval 'test $(( 1 + 1 )) -eq 2 \
6111     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6112   && xsi_shell=yes
6113 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6114 echo "${ECHO_T}$xsi_shell" >&6; }
6115
6116
6117 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6118 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6119 lt_shell_append=no
6120 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6121     >/dev/null 2>&1 \
6122   && lt_shell_append=yes
6123 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6124 echo "${ECHO_T}$lt_shell_append" >&6; }
6125
6126
6127 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6128   lt_unset=unset
6129 else
6130   lt_unset=false
6131 fi
6132
6133
6134
6135
6136
6137 # test EBCDIC or ASCII
6138 case `echo X|tr X '\101'` in
6139  A) # ASCII based system
6140     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6141   lt_SP2NL='tr \040 \012'
6142   lt_NL2SP='tr \015\012 \040\040'
6143   ;;
6144  *) # EBCDIC based system
6145   lt_SP2NL='tr \100 \n'
6146   lt_NL2SP='tr \r\n \100\100'
6147   ;;
6148 esac
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6159 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6160 if test "${lt_cv_ld_reload_flag+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   lt_cv_ld_reload_flag='-r'
6164 fi
6165 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6166 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6167 reload_flag=$lt_cv_ld_reload_flag
6168 case $reload_flag in
6169 "" | " "*) ;;
6170 *) reload_flag=" $reload_flag" ;;
6171 esac
6172 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6173 case $host_os in
6174   darwin*)
6175     if test "$GCC" = yes; then
6176       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6177     else
6178       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6179     fi
6180     ;;
6181 esac
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191 if test -n "$ac_tool_prefix"; then
6192   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6196 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6197   echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199   if test -n "$OBJDUMP"; then
6200   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207   for ac_exec_ext in '' $ac_executable_extensions; do
6208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 OBJDUMP=$ac_cv_prog_OBJDUMP
6220 if test -n "$OBJDUMP"; then
6221   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6222 echo "${ECHO_T}$OBJDUMP" >&6; }
6223 else
6224   { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6226 fi
6227
6228
6229 fi
6230 if test -z "$ac_cv_prog_OBJDUMP"; then
6231   ac_ct_OBJDUMP=$OBJDUMP
6232   # Extract the first word of "objdump", so it can be a program name with args.
6233 set dummy objdump; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   if test -n "$ac_ct_OBJDUMP"; then
6240   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6260 if test -n "$ac_ct_OBJDUMP"; then
6261   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6262 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6263 else
6264   { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6266 fi
6267
6268   if test "x$ac_ct_OBJDUMP" = x; then
6269     OBJDUMP="false"
6270   else
6271     case $cross_compiling:$ac_tool_warned in
6272 yes:)
6273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6274 whose name does not start with the host triplet.  If you think this
6275 configuration is useful to you, please write to autoconf@gnu.org." >&5
6276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6277 whose name does not start with the host triplet.  If you think this
6278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281     OBJDUMP=$ac_ct_OBJDUMP
6282   fi
6283 else
6284   OBJDUMP="$ac_cv_prog_OBJDUMP"
6285 fi
6286
6287 test -z "$OBJDUMP" && OBJDUMP=objdump
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6298 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6299 if test "${lt_cv_deplibs_check_method+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   lt_cv_file_magic_cmd='$MAGIC_CMD'
6303 lt_cv_file_magic_test_file=
6304 lt_cv_deplibs_check_method='unknown'
6305 # Need to set the preceding variable on all platforms that support
6306 # interlibrary dependencies.
6307 # 'none' -- dependencies not supported.
6308 # `unknown' -- same as none, but documents that we really don't know.
6309 # 'pass_all' -- all dependencies passed with no checks.
6310 # 'test_compile' -- check by making test program.
6311 # 'file_magic [[regex]]' -- check by looking for files in library path
6312 # which responds to the $file_magic_cmd with a given extended regex.
6313 # If you have `file' or equivalent on your system and you're not sure
6314 # whether `pass_all' will *always* work, you probably want this one.
6315
6316 case $host_os in
6317 aix[4-9]*)
6318   lt_cv_deplibs_check_method=pass_all
6319   ;;
6320
6321 beos*)
6322   lt_cv_deplibs_check_method=pass_all
6323   ;;
6324
6325 bsdi[45]*)
6326   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6327   lt_cv_file_magic_cmd='/usr/bin/file -L'
6328   lt_cv_file_magic_test_file=/shlib/libc.so
6329   ;;
6330
6331 cygwin*)
6332   # func_win32_libid is a shell function defined in ltmain.sh
6333   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6334   lt_cv_file_magic_cmd='func_win32_libid'
6335   ;;
6336
6337 mingw* | pw32*)
6338   # Base MSYS/MinGW do not provide the 'file' command needed by
6339   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6340   # unless we find 'file', for example because we are cross-compiling.
6341   if ( file / ) >/dev/null 2>&1; then
6342     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6343     lt_cv_file_magic_cmd='func_win32_libid'
6344   else
6345     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6346     lt_cv_file_magic_cmd='$OBJDUMP -f'
6347   fi
6348   ;;
6349
6350 cegcc)
6351   # use the weaker test based on 'objdump'. See mingw*.
6352   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6353   lt_cv_file_magic_cmd='$OBJDUMP -f'
6354   ;;
6355
6356 darwin* | rhapsody*)
6357   lt_cv_deplibs_check_method=pass_all
6358   ;;
6359
6360 freebsd* | dragonfly*)
6361   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6362     case $host_cpu in
6363     i*86 )
6364       # Not sure whether the presence of OpenBSD here was a mistake.
6365       # Let's accept both of them until this is cleared up.
6366       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6367       lt_cv_file_magic_cmd=/usr/bin/file
6368       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6369       ;;
6370     esac
6371   else
6372     lt_cv_deplibs_check_method=pass_all
6373   fi
6374   ;;
6375
6376 gnu*)
6377   lt_cv_deplibs_check_method=pass_all
6378   ;;
6379
6380 hpux10.20* | hpux11*)
6381   lt_cv_file_magic_cmd=/usr/bin/file
6382   case $host_cpu in
6383   ia64*)
6384     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6385     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6386     ;;
6387   hppa*64*)
6388     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]'
6389     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6390     ;;
6391   *)
6392     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6393     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6394     ;;
6395   esac
6396   ;;
6397
6398 interix[3-9]*)
6399   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6400   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6401   ;;
6402
6403 irix5* | irix6* | nonstopux*)
6404   case $LD in
6405   *-32|*"-32 ") libmagic=32-bit;;
6406   *-n32|*"-n32 ") libmagic=N32;;
6407   *-64|*"-64 ") libmagic=64-bit;;
6408   *) libmagic=never-match;;
6409   esac
6410   lt_cv_deplibs_check_method=pass_all
6411   ;;
6412
6413 # This must be Linux ELF.
6414 linux* | k*bsd*-gnu)
6415   lt_cv_deplibs_check_method=pass_all
6416   ;;
6417
6418 netbsd*)
6419   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6420     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6421   else
6422     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6423   fi
6424   ;;
6425
6426 newos6*)
6427   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6428   lt_cv_file_magic_cmd=/usr/bin/file
6429   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6430   ;;
6431
6432 *nto* | *qnx*)
6433   lt_cv_deplibs_check_method=pass_all
6434   ;;
6435
6436 openbsd*)
6437   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6438     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6439   else
6440     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6441   fi
6442   ;;
6443
6444 osf3* | osf4* | osf5*)
6445   lt_cv_deplibs_check_method=pass_all
6446   ;;
6447
6448 rdos*)
6449   lt_cv_deplibs_check_method=pass_all
6450   ;;
6451
6452 solaris*)
6453   lt_cv_deplibs_check_method=pass_all
6454   ;;
6455
6456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6457   lt_cv_deplibs_check_method=pass_all
6458   ;;
6459
6460 sysv4 | sysv4.3*)
6461   case $host_vendor in
6462   motorola)
6463     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]'
6464     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6465     ;;
6466   ncr)
6467     lt_cv_deplibs_check_method=pass_all
6468     ;;
6469   sequent)
6470     lt_cv_file_magic_cmd='/bin/file'
6471     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6472     ;;
6473   sni)
6474     lt_cv_file_magic_cmd='/bin/file'
6475     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6476     lt_cv_file_magic_test_file=/lib/libc.so
6477     ;;
6478   siemens)
6479     lt_cv_deplibs_check_method=pass_all
6480     ;;
6481   pc)
6482     lt_cv_deplibs_check_method=pass_all
6483     ;;
6484   esac
6485   ;;
6486
6487 tpf*)
6488   lt_cv_deplibs_check_method=pass_all
6489   ;;
6490 esac
6491
6492 fi
6493 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6494 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6495 file_magic_cmd=$lt_cv_file_magic_cmd
6496 deplibs_check_method=$lt_cv_deplibs_check_method
6497 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510 if test -n "$ac_tool_prefix"; then
6511   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}ar; ac_word=$2
6513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515 if test "${ac_cv_prog_AR+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   if test -n "$AR"; then
6519   ac_cv_prog_AR="$AR" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526   for ac_exec_ext in '' $ac_executable_extensions; do
6527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528     ac_cv_prog_AR="${ac_tool_prefix}ar"
6529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 AR=$ac_cv_prog_AR
6539 if test -n "$AR"; then
6540   { echo "$as_me:$LINENO: result: $AR" >&5
6541 echo "${ECHO_T}$AR" >&6; }
6542 else
6543   { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6545 fi
6546
6547
6548 fi
6549 if test -z "$ac_cv_prog_AR"; then
6550   ac_ct_AR=$AR
6551   # Extract the first word of "ar", so it can be a program name with args.
6552 set dummy ar; ac_word=$2
6553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6555 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558   if test -n "$ac_ct_AR"; then
6559   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564   IFS=$as_save_IFS
6565   test -z "$as_dir" && as_dir=.
6566   for ac_exec_ext in '' $ac_executable_extensions; do
6567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568     ac_cv_prog_ac_ct_AR="ar"
6569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570     break 2
6571   fi
6572 done
6573 done
6574 IFS=$as_save_IFS
6575
6576 fi
6577 fi
6578 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6579 if test -n "$ac_ct_AR"; then
6580   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6581 echo "${ECHO_T}$ac_ct_AR" >&6; }
6582 else
6583   { echo "$as_me:$LINENO: result: no" >&5
6584 echo "${ECHO_T}no" >&6; }
6585 fi
6586
6587   if test "x$ac_ct_AR" = x; then
6588     AR="false"
6589   else
6590     case $cross_compiling:$ac_tool_warned in
6591 yes:)
6592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6593 whose name does not start with the host triplet.  If you think this
6594 configuration is useful to you, please write to autoconf@gnu.org." >&5
6595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6596 whose name does not start with the host triplet.  If you think this
6597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6598 ac_tool_warned=yes ;;
6599 esac
6600     AR=$ac_ct_AR
6601   fi
6602 else
6603   AR="$ac_cv_prog_AR"
6604 fi
6605
6606 test -z "$AR" && AR=ar
6607 test -z "$AR_FLAGS" && AR_FLAGS=cru
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619 if test -n "$ac_tool_prefix"; then
6620   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}strip; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_prog_STRIP+set}" = set; then
6625   echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627   if test -n "$STRIP"; then
6628   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635   for ac_exec_ext in '' $ac_executable_extensions; do
6636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645 fi
6646 fi
6647 STRIP=$ac_cv_prog_STRIP
6648 if test -n "$STRIP"; then
6649   { echo "$as_me:$LINENO: result: $STRIP" >&5
6650 echo "${ECHO_T}$STRIP" >&6; }
6651 else
6652   { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6654 fi
6655
6656
6657 fi
6658 if test -z "$ac_cv_prog_STRIP"; then
6659   ac_ct_STRIP=$STRIP
6660   # Extract the first word of "strip", so it can be a program name with args.
6661 set dummy strip; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   if test -n "$ac_ct_STRIP"; then
6668   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   test -z "$as_dir" && as_dir=.
6675   for ac_exec_ext in '' $ac_executable_extensions; do
6676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677     ac_cv_prog_ac_ct_STRIP="strip"
6678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679     break 2
6680   fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6688 if test -n "$ac_ct_STRIP"; then
6689   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6690 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6691 else
6692   { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6694 fi
6695
6696   if test "x$ac_ct_STRIP" = x; then
6697     STRIP=":"
6698   else
6699     case $cross_compiling:$ac_tool_warned in
6700 yes:)
6701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6702 whose name does not start with the host triplet.  If you think this
6703 configuration is useful to you, please write to autoconf@gnu.org." >&5
6704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6705 whose name does not start with the host triplet.  If you think this
6706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709     STRIP=$ac_ct_STRIP
6710   fi
6711 else
6712   STRIP="$ac_cv_prog_STRIP"
6713 fi
6714
6715 test -z "$STRIP" && STRIP=:
6716
6717
6718
6719
6720
6721
6722 if test -n "$ac_tool_prefix"; then
6723   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_prog_RANLIB+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   if test -n "$RANLIB"; then
6731   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738   for ac_exec_ext in '' $ac_executable_extensions; do
6739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 RANLIB=$ac_cv_prog_RANLIB
6751 if test -n "$RANLIB"; then
6752   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6753 echo "${ECHO_T}$RANLIB" >&6; }
6754 else
6755   { echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6; }
6757 fi
6758
6759
6760 fi
6761 if test -z "$ac_cv_prog_RANLIB"; then
6762   ac_ct_RANLIB=$RANLIB
6763   # Extract the first word of "ranlib", so it can be a program name with args.
6764 set dummy ranlib; ac_word=$2
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6768   echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770   if test -n "$ac_ct_RANLIB"; then
6771   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776   IFS=$as_save_IFS
6777   test -z "$as_dir" && as_dir=.
6778   for ac_exec_ext in '' $ac_executable_extensions; do
6779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780     ac_cv_prog_ac_ct_RANLIB="ranlib"
6781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785 done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6791 if test -n "$ac_ct_RANLIB"; then
6792   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6793 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6794 else
6795   { echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6; }
6797 fi
6798
6799   if test "x$ac_ct_RANLIB" = x; then
6800     RANLIB=":"
6801   else
6802     case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6805 whose name does not start with the host triplet.  If you think this
6806 configuration is useful to you, please write to autoconf@gnu.org." >&5
6807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6808 whose name does not start with the host triplet.  If you think this
6809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6810 ac_tool_warned=yes ;;
6811 esac
6812     RANLIB=$ac_ct_RANLIB
6813   fi
6814 else
6815   RANLIB="$ac_cv_prog_RANLIB"
6816 fi
6817
6818 test -z "$RANLIB" && RANLIB=:
6819
6820
6821
6822
6823
6824
6825 # Determine commands to create old-style static archives.
6826 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6827 old_postinstall_cmds='chmod 644 $oldlib'
6828 old_postuninstall_cmds=
6829
6830 if test -n "$RANLIB"; then
6831   case $host_os in
6832   openbsd*)
6833     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6834     ;;
6835   *)
6836     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6837     ;;
6838   esac
6839   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6840 fi
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
6872
6873
6874
6875 # If no C compiler was specified, use CC.
6876 LTCC=${LTCC-"$CC"}
6877
6878 # If no C compiler flags were specified, use CFLAGS.
6879 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6880
6881 # Allow CC to be a program name with arguments.
6882 compiler=$CC
6883
6884
6885 # Check for command to grab the raw symbol name followed by C symbol from nm.
6886 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6887 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6888 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891
6892 # These are sane defaults that work on at least a few old systems.
6893 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6894
6895 # Character class describing NM global symbol codes.
6896 symcode='[BCDEGRST]'
6897
6898 # Regexp to match symbols that can be accessed directly from C.
6899 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6900
6901 # Define system-specific variables.
6902 case $host_os in
6903 aix*)
6904   symcode='[BCDT]'
6905   ;;
6906 cygwin* | mingw* | pw32* | cegcc*)
6907   symcode='[ABCDGISTW]'
6908   ;;
6909 hpux*)
6910   if test "$host_cpu" = ia64; then
6911     symcode='[ABCDEGRST]'
6912   fi
6913   ;;
6914 irix* | nonstopux*)
6915   symcode='[BCDEGRST]'
6916   ;;
6917 osf*)
6918   symcode='[BCDEGQRST]'
6919   ;;
6920 solaris*)
6921   symcode='[BDRT]'
6922   ;;
6923 sco3.2v5*)
6924   symcode='[DT]'
6925   ;;
6926 sysv4.2uw2*)
6927   symcode='[DT]'
6928   ;;
6929 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6930   symcode='[ABDT]'
6931   ;;
6932 sysv4)
6933   symcode='[DFNSTU]'
6934   ;;
6935 esac
6936
6937 # If we're using GNU nm, then use its standard symbol codes.
6938 case `$NM -V 2>&1` in
6939 *GNU* | *'with BFD'*)
6940   symcode='[ABCDGIRSTW]' ;;
6941 esac
6942
6943 # Transform an extracted symbol line into a proper C declaration.
6944 # Some systems (esp. on ia64) link data and code symbols differently,
6945 # so use this general approach.
6946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6947
6948 # Transform an extracted symbol line into symbol name and symbol address
6949 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6950 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'"
6951
6952 # Handle CRLF in mingw tool chain
6953 opt_cr=
6954 case $build_os in
6955 mingw*)
6956   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6957   ;;
6958 esac
6959
6960 # Try without a prefix underscore, then with it.
6961 for ac_symprfx in "" "_"; do
6962
6963   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6964   symxfrm="\\1 $ac_symprfx\\2 \\2"
6965
6966   # Write the raw and C identifiers.
6967   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6968     # Fake it for dumpbin and say T for any non-static function
6969     # and D for any global variable.
6970     # Also find C++ and __fastcall symbols from MSVC++,
6971     # which start with @ or ?.
6972     lt_cv_sys_global_symbol_pipe="$AWK '"\
6973 "     {last_section=section; section=\$ 3};"\
6974 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6975 "     \$ 0!~/External *\|/{next};"\
6976 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6977 "     {if(hide[section]) next};"\
6978 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6979 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6980 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6981 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6982 "     ' prfx=^$ac_symprfx"
6983   else
6984     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6985   fi
6986
6987   # Check to see that the pipe works correctly.
6988   pipe_works=no
6989
6990   rm -f conftest*
6991   cat > conftest.$ac_ext <<_LT_EOF
6992 #ifdef __cplusplus
6993 extern "C" {
6994 #endif
6995 char nm_test_var;
6996 void nm_test_func(void);
6997 void nm_test_func(void){}
6998 #ifdef __cplusplus
6999 }
7000 #endif
7001 int main(){nm_test_var='a';nm_test_func();return(0);}
7002 _LT_EOF
7003
7004   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005   (eval $ac_compile) 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); }; then
7009     # Now try to grab the symbols.
7010     nlist=conftest.nm
7011     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7012   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); } && test -s "$nlist"; then
7016       # Try sorting and uniquifying the output.
7017       if sort "$nlist" | uniq > "$nlist"T; then
7018         mv -f "$nlist"T "$nlist"
7019       else
7020         rm -f "$nlist"T
7021       fi
7022
7023       # Make sure that we snagged all the symbols we need.
7024       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7025         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7026           cat <<_LT_EOF > conftest.$ac_ext
7027 #ifdef __cplusplus
7028 extern "C" {
7029 #endif
7030
7031 _LT_EOF
7032           # Now generate the symbol file.
7033           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7034
7035           cat <<_LT_EOF >> conftest.$ac_ext
7036
7037 /* The mapping between symbol names and symbols.  */
7038 const struct {
7039   const char *name;
7040   void       *address;
7041 }
7042 lt__PROGRAM__LTX_preloaded_symbols[] =
7043 {
7044   { "@PROGRAM@", (void *) 0 },
7045 _LT_EOF
7046           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7047           cat <<\_LT_EOF >> conftest.$ac_ext
7048   {0, (void *) 0}
7049 };
7050
7051 /* This works around a problem in FreeBSD linker */
7052 #ifdef FREEBSD_WORKAROUND
7053 static const void *lt_preloaded_setup() {
7054   return lt__PROGRAM__LTX_preloaded_symbols;
7055 }
7056 #endif
7057
7058 #ifdef __cplusplus
7059 }
7060 #endif
7061 _LT_EOF
7062           # Now try linking the two files.
7063           mv conftest.$ac_objext conftstm.$ac_objext
7064           lt_save_LIBS="$LIBS"
7065           lt_save_CFLAGS="$CFLAGS"
7066           LIBS="conftstm.$ac_objext"
7067           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7068           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7069   (eval $ac_link) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7073             pipe_works=yes
7074           fi
7075           LIBS="$lt_save_LIBS"
7076           CFLAGS="$lt_save_CFLAGS"
7077         else
7078           echo "cannot find nm_test_func in $nlist" >&5
7079         fi
7080       else
7081         echo "cannot find nm_test_var in $nlist" >&5
7082       fi
7083     else
7084       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7085     fi
7086   else
7087     echo "$progname: failed program was:" >&5
7088     cat conftest.$ac_ext >&5
7089   fi
7090   rm -rf conftest* conftst*
7091
7092   # Do not use the global_symbol_pipe unless it works.
7093   if test "$pipe_works" = yes; then
7094     break
7095   else
7096     lt_cv_sys_global_symbol_pipe=
7097   fi
7098 done
7099
7100 fi
7101
7102 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7103   lt_cv_sys_global_symbol_to_cdecl=
7104 fi
7105 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7106   { echo "$as_me:$LINENO: result: failed" >&5
7107 echo "${ECHO_T}failed" >&6; }
7108 else
7109   { echo "$as_me:$LINENO: result: ok" >&5
7110 echo "${ECHO_T}ok" >&6; }
7111 fi
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134 # Check whether --enable-libtool-lock was given.
7135 if test "${enable_libtool_lock+set}" = set; then
7136   enableval=$enable_libtool_lock;
7137 fi
7138
7139 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7140
7141 # Some flags need to be propagated to the compiler or linker for good
7142 # libtool support.
7143 case $host in
7144 ia64-*-hpux*)
7145   # Find out which ABI we are using.
7146   echo 'int i;' > conftest.$ac_ext
7147   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7148   (eval $ac_compile) 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); }; then
7152     case `/usr/bin/file conftest.$ac_objext` in
7153       *ELF-32*)
7154         HPUX_IA64_MODE="32"
7155         ;;
7156       *ELF-64*)
7157         HPUX_IA64_MODE="64"
7158         ;;
7159     esac
7160   fi
7161   rm -rf conftest*
7162   ;;
7163 *-*-irix6*)
7164   # Find out which ABI we are using.
7165   echo '#line 7165 "configure"' > conftest.$ac_ext
7166   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167   (eval $ac_compile) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); }; then
7171     if test "$lt_cv_prog_gnu_ld" = yes; then
7172       case `/usr/bin/file conftest.$ac_objext` in
7173         *32-bit*)
7174           LD="${LD-ld} -melf32bsmip"
7175           ;;
7176         *N32*)
7177           LD="${LD-ld} -melf32bmipn32"
7178           ;;
7179         *64-bit*)
7180           LD="${LD-ld} -melf64bmip"
7181         ;;
7182       esac
7183     else
7184       case `/usr/bin/file conftest.$ac_objext` in
7185         *32-bit*)
7186           LD="${LD-ld} -32"
7187           ;;
7188         *N32*)
7189           LD="${LD-ld} -n32"
7190           ;;
7191         *64-bit*)
7192           LD="${LD-ld} -64"
7193           ;;
7194       esac
7195     fi
7196   fi
7197   rm -rf conftest*
7198   ;;
7199
7200 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7201 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7202   # Find out which ABI we are using.
7203   echo 'int i;' > conftest.$ac_ext
7204   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205   (eval $ac_compile) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); }; then
7209     case `/usr/bin/file conftest.o` in
7210       *32-bit*)
7211         case $host in
7212           x86_64-*kfreebsd*-gnu)
7213             LD="${LD-ld} -m elf_i386_fbsd"
7214             ;;
7215           x86_64-*linux*)
7216             LD="${LD-ld} -m elf_i386"
7217             ;;
7218           ppc64-*linux*|powerpc64-*linux*)
7219             LD="${LD-ld} -m elf32ppclinux"
7220             ;;
7221           s390x-*linux*)
7222             LD="${LD-ld} -m elf_s390"
7223             ;;
7224           sparc64-*linux*)
7225             LD="${LD-ld} -m elf32_sparc"
7226             ;;
7227         esac
7228         ;;
7229       *64-bit*)
7230         case $host in
7231           x86_64-*kfreebsd*-gnu)
7232             LD="${LD-ld} -m elf_x86_64_fbsd"
7233             ;;
7234           x86_64-*linux*)
7235             LD="${LD-ld} -m elf_x86_64"
7236             ;;
7237           ppc*-*linux*|powerpc*-*linux*)
7238             LD="${LD-ld} -m elf64ppc"
7239             ;;
7240           s390*-*linux*|s390*-*tpf*)
7241             LD="${LD-ld} -m elf64_s390"
7242             ;;
7243           sparc*-*linux*)
7244             LD="${LD-ld} -m elf64_sparc"
7245             ;;
7246         esac
7247         ;;
7248     esac
7249   fi
7250   rm -rf conftest*
7251   ;;
7252
7253 *-*-sco3.2v5*)
7254   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7255   SAVE_CFLAGS="$CFLAGS"
7256   CFLAGS="$CFLAGS -belf"
7257   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7258 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7259 if test "${lt_cv_cc_needs_belf+set}" = set; then
7260   echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262   ac_ext=c
7263 ac_cpp='$CPP $CPPFLAGS'
7264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267
7268      cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h.  */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h.  */
7274
7275 int
7276 main ()
7277 {
7278
7279   ;
7280   return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (ac_try="$ac_link"
7285 case "(($ac_try" in
7286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287   *) ac_try_echo=$ac_try;;
7288 esac
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290   (eval "$ac_link") 2>conftest.er1
7291   ac_status=$?
7292   grep -v '^ *+' conftest.er1 >conftest.err
7293   rm -f conftest.er1
7294   cat conftest.err >&5
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } && {
7297          test -z "$ac_c_werror_flag" ||
7298          test ! -s conftest.err
7299        } && test -s conftest$ac_exeext &&
7300        $as_test_x conftest$ac_exeext; then
7301   lt_cv_cc_needs_belf=yes
7302 else
7303   echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7305
7306         lt_cv_cc_needs_belf=no
7307 fi
7308
7309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7310       conftest$ac_exeext conftest.$ac_ext
7311      ac_ext=c
7312 ac_cpp='$CPP $CPPFLAGS'
7313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316
7317 fi
7318 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7319 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7320   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7321     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7322     CFLAGS="$SAVE_CFLAGS"
7323   fi
7324   ;;
7325 sparc*-*solaris*)
7326   # Find out which ABI we are using.
7327   echo 'int i;' > conftest.$ac_ext
7328   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329   (eval $ac_compile) 2>&5
7330   ac_status=$?
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); }; then
7333     case `/usr/bin/file conftest.o` in
7334     *64-bit*)
7335       case $lt_cv_prog_gnu_ld in
7336       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7337       *)
7338         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7339           LD="${LD-ld} -64"
7340         fi
7341         ;;
7342       esac
7343       ;;
7344     esac
7345   fi
7346   rm -rf conftest*
7347   ;;
7348 esac
7349
7350 need_locks="$enable_libtool_lock"
7351
7352
7353   case $host_os in
7354     rhapsody* | darwin*)
7355     if test -n "$ac_tool_prefix"; then
7356   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   if test -n "$DSYMUTIL"; then
7364   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371   for ac_exec_ext in '' $ac_executable_extensions; do
7372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378 done
7379 IFS=$as_save_IFS
7380
7381 fi
7382 fi
7383 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7384 if test -n "$DSYMUTIL"; then
7385   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7386 echo "${ECHO_T}$DSYMUTIL" >&6; }
7387 else
7388   { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7390 fi
7391
7392
7393 fi
7394 if test -z "$ac_cv_prog_DSYMUTIL"; then
7395   ac_ct_DSYMUTIL=$DSYMUTIL
7396   # Extract the first word of "dsymutil", so it can be a program name with args.
7397 set dummy dsymutil; ac_word=$2
7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403   if test -n "$ac_ct_DSYMUTIL"; then
7404   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   test -z "$as_dir" && as_dir=.
7411   for ac_exec_ext in '' $ac_executable_extensions; do
7412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7424 if test -n "$ac_ct_DSYMUTIL"; then
7425   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7426 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7427 else
7428   { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7430 fi
7431
7432   if test "x$ac_ct_DSYMUTIL" = x; then
7433     DSYMUTIL=":"
7434   else
7435     case $cross_compiling:$ac_tool_warned in
7436 yes:)
7437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7438 whose name does not start with the host triplet.  If you think this
7439 configuration is useful to you, please write to autoconf@gnu.org." >&5
7440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7441 whose name does not start with the host triplet.  If you think this
7442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7443 ac_tool_warned=yes ;;
7444 esac
7445     DSYMUTIL=$ac_ct_DSYMUTIL
7446   fi
7447 else
7448   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7449 fi
7450
7451     if test -n "$ac_tool_prefix"; then
7452   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7453 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   if test -n "$NMEDIT"; then
7460   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477 fi
7478 fi
7479 NMEDIT=$ac_cv_prog_NMEDIT
7480 if test -n "$NMEDIT"; then
7481   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7482 echo "${ECHO_T}$NMEDIT" >&6; }
7483 else
7484   { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7486 fi
7487
7488
7489 fi
7490 if test -z "$ac_cv_prog_NMEDIT"; then
7491   ac_ct_NMEDIT=$NMEDIT
7492   # Extract the first word of "nmedit", so it can be a program name with args.
7493 set dummy nmedit; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   if test -n "$ac_ct_NMEDIT"; then
7500   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7501 else
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507   for ac_exec_ext in '' $ac_executable_extensions; do
7508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517 fi
7518 fi
7519 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7520 if test -n "$ac_ct_NMEDIT"; then
7521   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7522 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7523 else
7524   { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7526 fi
7527
7528   if test "x$ac_ct_NMEDIT" = x; then
7529     NMEDIT=":"
7530   else
7531     case $cross_compiling:$ac_tool_warned in
7532 yes:)
7533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7534 whose name does not start with the host triplet.  If you think this
7535 configuration is useful to you, please write to autoconf@gnu.org." >&5
7536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7537 whose name does not start with the host triplet.  If you think this
7538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7539 ac_tool_warned=yes ;;
7540 esac
7541     NMEDIT=$ac_ct_NMEDIT
7542   fi
7543 else
7544   NMEDIT="$ac_cv_prog_NMEDIT"
7545 fi
7546
7547     if test -n "$ac_tool_prefix"; then
7548   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7549 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_prog_LIPO+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   if test -n "$LIPO"; then
7556   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563   for ac_exec_ext in '' $ac_executable_extensions; do
7564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570 done
7571 IFS=$as_save_IFS
7572
7573 fi
7574 fi
7575 LIPO=$ac_cv_prog_LIPO
7576 if test -n "$LIPO"; then
7577   { echo "$as_me:$LINENO: result: $LIPO" >&5
7578 echo "${ECHO_T}$LIPO" >&6; }
7579 else
7580   { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7582 fi
7583
7584
7585 fi
7586 if test -z "$ac_cv_prog_LIPO"; then
7587   ac_ct_LIPO=$LIPO
7588   # Extract the first word of "lipo", so it can be a program name with args.
7589 set dummy lipo; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   if test -n "$ac_ct_LIPO"; then
7596   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603   for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_prog_ac_ct_LIPO="lipo"
7606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610 done
7611 IFS=$as_save_IFS
7612
7613 fi
7614 fi
7615 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7616 if test -n "$ac_ct_LIPO"; then
7617   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7618 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7619 else
7620   { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7622 fi
7623
7624   if test "x$ac_ct_LIPO" = x; then
7625     LIPO=":"
7626   else
7627     case $cross_compiling:$ac_tool_warned in
7628 yes:)
7629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7630 whose name does not start with the host triplet.  If you think this
7631 configuration is useful to you, please write to autoconf@gnu.org." >&5
7632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7633 whose name does not start with the host triplet.  If you think this
7634 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7635 ac_tool_warned=yes ;;
7636 esac
7637     LIPO=$ac_ct_LIPO
7638   fi
7639 else
7640   LIPO="$ac_cv_prog_LIPO"
7641 fi
7642
7643     if test -n "$ac_tool_prefix"; then
7644   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7645 set dummy ${ac_tool_prefix}otool; ac_word=$2
7646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7648 if test "${ac_cv_prog_OTOOL+set}" = set; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651   if test -n "$OTOOL"; then
7652   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659   for ac_exec_ext in '' $ac_executable_extensions; do
7660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 OTOOL=$ac_cv_prog_OTOOL
7672 if test -n "$OTOOL"; then
7673   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7674 echo "${ECHO_T}$OTOOL" >&6; }
7675 else
7676   { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7678 fi
7679
7680
7681 fi
7682 if test -z "$ac_cv_prog_OTOOL"; then
7683   ac_ct_OTOOL=$OTOOL
7684   # Extract the first word of "otool", so it can be a program name with args.
7685 set dummy otool; ac_word=$2
7686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7688 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7689   echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691   if test -n "$ac_ct_OTOOL"; then
7692   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7693 else
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7696 do
7697   IFS=$as_save_IFS
7698   test -z "$as_dir" && as_dir=.
7699   for ac_exec_ext in '' $ac_executable_extensions; do
7700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7701     ac_cv_prog_ac_ct_OTOOL="otool"
7702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703     break 2
7704   fi
7705 done
7706 done
7707 IFS=$as_save_IFS
7708
7709 fi
7710 fi
7711 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7712 if test -n "$ac_ct_OTOOL"; then
7713   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7714 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7715 else
7716   { echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6; }
7718 fi
7719
7720   if test "x$ac_ct_OTOOL" = x; then
7721     OTOOL=":"
7722   else
7723     case $cross_compiling:$ac_tool_warned in
7724 yes:)
7725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7726 whose name does not start with the host triplet.  If you think this
7727 configuration is useful to you, please write to autoconf@gnu.org." >&5
7728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7729 whose name does not start with the host triplet.  If you think this
7730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7731 ac_tool_warned=yes ;;
7732 esac
7733     OTOOL=$ac_ct_OTOOL
7734   fi
7735 else
7736   OTOOL="$ac_cv_prog_OTOOL"
7737 fi
7738
7739     if test -n "$ac_tool_prefix"; then
7740   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7741 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747   if test -n "$OTOOL64"; then
7748   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753   IFS=$as_save_IFS
7754   test -z "$as_dir" && as_dir=.
7755   for ac_exec_ext in '' $ac_executable_extensions; do
7756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759     break 2
7760   fi
7761 done
7762 done
7763 IFS=$as_save_IFS
7764
7765 fi
7766 fi
7767 OTOOL64=$ac_cv_prog_OTOOL64
7768 if test -n "$OTOOL64"; then
7769   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7770 echo "${ECHO_T}$OTOOL64" >&6; }
7771 else
7772   { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7774 fi
7775
7776
7777 fi
7778 if test -z "$ac_cv_prog_OTOOL64"; then
7779   ac_ct_OTOOL64=$OTOOL64
7780   # Extract the first word of "otool64", so it can be a program name with args.
7781 set dummy otool64; ac_word=$2
7782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787   if test -n "$ac_ct_OTOOL64"; then
7788   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793   IFS=$as_save_IFS
7794   test -z "$as_dir" && as_dir=.
7795   for ac_exec_ext in '' $ac_executable_extensions; do
7796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797     ac_cv_prog_ac_ct_OTOOL64="otool64"
7798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799     break 2
7800   fi
7801 done
7802 done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7808 if test -n "$ac_ct_OTOOL64"; then
7809   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7810 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7811 else
7812   { echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6; }
7814 fi
7815
7816   if test "x$ac_ct_OTOOL64" = x; then
7817     OTOOL64=":"
7818   else
7819     case $cross_compiling:$ac_tool_warned in
7820 yes:)
7821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7822 whose name does not start with the host triplet.  If you think this
7823 configuration is useful to you, please write to autoconf@gnu.org." >&5
7824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7825 whose name does not start with the host triplet.  If you think this
7826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7827 ac_tool_warned=yes ;;
7828 esac
7829     OTOOL64=$ac_ct_OTOOL64
7830   fi
7831 else
7832   OTOOL64="$ac_cv_prog_OTOOL64"
7833 fi
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7862 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7863 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7864   echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866   lt_cv_apple_cc_single_mod=no
7867       if test -z "${LT_MULTI_MODULE}"; then
7868         # By default we will add the -single_module flag. You can override
7869         # by either setting the environment variable LT_MULTI_MODULE
7870         # non-empty at configure time, or by adding -multi_module to the
7871         # link flags.
7872         rm -rf libconftest.dylib*
7873         echo "int foo(void){return 1;}" > conftest.c
7874         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7875 -dynamiclib -Wl,-single_module conftest.c" >&5
7876         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7877           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7878         _lt_result=$?
7879         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7880           lt_cv_apple_cc_single_mod=yes
7881         else
7882           cat conftest.err >&5
7883         fi
7884         rm -rf libconftest.dylib*
7885         rm -f conftest.*
7886       fi
7887 fi
7888 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7889 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7890     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7891 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7892 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7893   echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895   lt_cv_ld_exported_symbols_list=no
7896       save_LDFLAGS=$LDFLAGS
7897       echo "_main" > conftest.sym
7898       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7899       cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905
7906 int
7907 main ()
7908 {
7909
7910   ;
7911   return 0;
7912 }
7913 _ACEOF
7914 rm -f conftest.$ac_objext conftest$ac_exeext
7915 if { (ac_try="$ac_link"
7916 case "(($ac_try" in
7917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918   *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921   (eval "$ac_link") 2>conftest.er1
7922   ac_status=$?
7923   grep -v '^ *+' conftest.er1 >conftest.err
7924   rm -f conftest.er1
7925   cat conftest.err >&5
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); } && {
7928          test -z "$ac_c_werror_flag" ||
7929          test ! -s conftest.err
7930        } && test -s conftest$ac_exeext &&
7931        $as_test_x conftest$ac_exeext; then
7932   lt_cv_ld_exported_symbols_list=yes
7933 else
7934   echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7936
7937         lt_cv_ld_exported_symbols_list=no
7938 fi
7939
7940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7941       conftest$ac_exeext conftest.$ac_ext
7942         LDFLAGS="$save_LDFLAGS"
7943
7944 fi
7945 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7946 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7947     case $host_os in
7948     rhapsody* | darwin1.[012])
7949       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7950     darwin1.*)
7951       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7952     darwin*) # darwin 5.x on
7953       # if running on 10.5 or later, the deployment target defaults
7954       # to the OS version, if on x86, and 10.4, the deployment
7955       # target defaults to 10.4. Don't you love it?
7956       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7957         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7958           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7959         10.[012]*)
7960           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7961         10.*)
7962           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7963       esac
7964     ;;
7965   esac
7966     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7967       _lt_dar_single_mod='$single_module'
7968     fi
7969     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7970       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7971     else
7972       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7973     fi
7974     if test "$DSYMUTIL" != ":"; then
7975       _lt_dsymutil='~$DSYMUTIL $lib || :'
7976     else
7977       _lt_dsymutil=
7978     fi
7979     ;;
7980   esac
7981
7982 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7983 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7984 if test "${ac_cv_header_stdc+set}" = set; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h.  */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h.  */
7993 #include <stdlib.h>
7994 #include <stdarg.h>
7995 #include <string.h>
7996 #include <float.h>
7997
7998 int
7999 main ()
8000 {
8001
8002   ;
8003   return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext
8007 if { (ac_try="$ac_compile"
8008 case "(($ac_try" in
8009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010   *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013   (eval "$ac_compile") 2>conftest.er1
8014   ac_status=$?
8015   grep -v '^ *+' conftest.er1 >conftest.err
8016   rm -f conftest.er1
8017   cat conftest.err >&5
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } && {
8020          test -z "$ac_c_werror_flag" ||
8021          test ! -s conftest.err
8022        } && test -s conftest.$ac_objext; then
8023   ac_cv_header_stdc=yes
8024 else
8025   echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028         ac_cv_header_stdc=no
8029 fi
8030
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032
8033 if test $ac_cv_header_stdc = yes; then
8034   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8035   cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h.  */
8041 #include <string.h>
8042
8043 _ACEOF
8044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8045   $EGREP "memchr" >/dev/null 2>&1; then
8046   :
8047 else
8048   ac_cv_header_stdc=no
8049 fi
8050 rm -f conftest*
8051
8052 fi
8053
8054 if test $ac_cv_header_stdc = yes; then
8055   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8056   cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h.  */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h.  */
8062 #include <stdlib.h>
8063
8064 _ACEOF
8065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8066   $EGREP "free" >/dev/null 2>&1; then
8067   :
8068 else
8069   ac_cv_header_stdc=no
8070 fi
8071 rm -f conftest*
8072
8073 fi
8074
8075 if test $ac_cv_header_stdc = yes; then
8076   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8077   if test "$cross_compiling" = yes; then
8078   :
8079 else
8080   cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h.  */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h.  */
8086 #include <ctype.h>
8087 #include <stdlib.h>
8088 #if ((' ' & 0x0FF) == 0x020)
8089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8091 #else
8092 # define ISLOWER(c) \
8093                    (('a' <= (c) && (c) <= 'i') \
8094                      || ('j' <= (c) && (c) <= 'r') \
8095                      || ('s' <= (c) && (c) <= 'z'))
8096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8097 #endif
8098
8099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8100 int
8101 main ()
8102 {
8103   int i;
8104   for (i = 0; i < 256; i++)
8105     if (XOR (islower (i), ISLOWER (i))
8106         || toupper (i) != TOUPPER (i))
8107       return 2;
8108   return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest$ac_exeext
8112 if { (ac_try="$ac_link"
8113 case "(($ac_try" in
8114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115   *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118   (eval "$ac_link") 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8122   { (case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127   (eval "$ac_try") 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; }; then
8131   :
8132 else
8133   echo "$as_me: program exited with status $ac_status" >&5
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8136
8137 ( exit $ac_status )
8138 ac_cv_header_stdc=no
8139 fi
8140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8141 fi
8142
8143
8144 fi
8145 fi
8146 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8147 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8148 if test $ac_cv_header_stdc = yes; then
8149
8150 cat >>confdefs.h <<\_ACEOF
8151 #define STDC_HEADERS 1
8152 _ACEOF
8153
8154 fi
8155
8156 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8167                   inttypes.h stdint.h unistd.h
8168 do
8169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8173   echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175   cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181 $ac_includes_default
8182
8183 #include <$ac_header>
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8187 case "(($ac_try" in
8188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189   *) ac_try_echo=$ac_try;;
8190 esac
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192   (eval "$ac_compile") 2>conftest.er1
8193   ac_status=$?
8194   grep -v '^ *+' conftest.er1 >conftest.err
8195   rm -f conftest.er1
8196   cat conftest.err >&5
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } && {
8199          test -z "$ac_c_werror_flag" ||
8200          test ! -s conftest.err
8201        } && test -s conftest.$ac_objext; then
8202   eval "$as_ac_Header=yes"
8203 else
8204   echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207         eval "$as_ac_Header=no"
8208 fi
8209
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 ac_res=`eval echo '${'$as_ac_Header'}'`
8213                { echo "$as_me:$LINENO: result: $ac_res" >&5
8214 echo "${ECHO_T}$ac_res" >&6; }
8215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8216   cat >>confdefs.h <<_ACEOF
8217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8218 _ACEOF
8219
8220 fi
8221
8222 done
8223
8224
8225
8226 for ac_header in dlfcn.h
8227 do
8228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h.  */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h.  */
8240 $ac_includes_default
8241
8242 #include <$ac_header>
8243 _ACEOF
8244 rm -f conftest.$ac_objext
8245 if { (ac_try="$ac_compile"
8246 case "(($ac_try" in
8247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248   *) ac_try_echo=$ac_try;;
8249 esac
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251   (eval "$ac_compile") 2>conftest.er1
8252   ac_status=$?
8253   grep -v '^ *+' conftest.er1 >conftest.err
8254   rm -f conftest.er1
8255   cat conftest.err >&5
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); } && {
8258          test -z "$ac_c_werror_flag" ||
8259          test ! -s conftest.err
8260        } && test -s conftest.$ac_objext; then
8261   eval "$as_ac_Header=yes"
8262 else
8263   echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8265
8266         eval "$as_ac_Header=no"
8267 fi
8268
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270 fi
8271 ac_res=`eval echo '${'$as_ac_Header'}'`
8272                { echo "$as_me:$LINENO: result: $ac_res" >&5
8273 echo "${ECHO_T}$ac_res" >&6; }
8274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8275   cat >>confdefs.h <<_ACEOF
8276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8277 _ACEOF
8278
8279 fi
8280
8281 done
8282
8283
8284
8285 ac_ext=cpp
8286 ac_cpp='$CXXCPP $CPPFLAGS'
8287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8290 if test -z "$CXX"; then
8291   if test -n "$CCC"; then
8292     CXX=$CCC
8293   else
8294     if test -n "$ac_tool_prefix"; then
8295   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8296   do
8297     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8301 if test "${ac_cv_prog_CXX+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   if test -n "$CXX"; then
8305   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8309 do
8310   IFS=$as_save_IFS
8311   test -z "$as_dir" && as_dir=.
8312   for ac_exec_ext in '' $ac_executable_extensions; do
8313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8316     break 2
8317   fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8321
8322 fi
8323 fi
8324 CXX=$ac_cv_prog_CXX
8325 if test -n "$CXX"; then
8326   { echo "$as_me:$LINENO: result: $CXX" >&5
8327 echo "${ECHO_T}$CXX" >&6; }
8328 else
8329   { echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6; }
8331 fi
8332
8333
8334     test -n "$CXX" && break
8335   done
8336 fi
8337 if test -z "$CXX"; then
8338   ac_ct_CXX=$CXX
8339   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8340 do
8341   # Extract the first word of "$ac_prog", so it can be a program name with args.
8342 set dummy $ac_prog; ac_word=$2
8343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8345 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   if test -n "$ac_ct_CXX"; then
8349   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8350 else
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8353 do
8354   IFS=$as_save_IFS
8355   test -z "$as_dir" && as_dir=.
8356   for ac_exec_ext in '' $ac_executable_extensions; do
8357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8358     ac_cv_prog_ac_ct_CXX="$ac_prog"
8359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8360     break 2
8361   fi
8362 done
8363 done
8364 IFS=$as_save_IFS
8365
8366 fi
8367 fi
8368 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8369 if test -n "$ac_ct_CXX"; then
8370   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8371 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8372 else
8373   { echo "$as_me:$LINENO: result: no" >&5
8374 echo "${ECHO_T}no" >&6; }
8375 fi
8376
8377
8378   test -n "$ac_ct_CXX" && break
8379 done
8380
8381   if test "x$ac_ct_CXX" = x; then
8382     CXX="g++"
8383   else
8384     case $cross_compiling:$ac_tool_warned in
8385 yes:)
8386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8387 whose name does not start with the host triplet.  If you think this
8388 configuration is useful to you, please write to autoconf@gnu.org." >&5
8389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8390 whose name does not start with the host triplet.  If you think this
8391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8392 ac_tool_warned=yes ;;
8393 esac
8394     CXX=$ac_ct_CXX
8395   fi
8396 fi
8397
8398   fi
8399 fi
8400 # Provide some information about the compiler.
8401 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8402 ac_compiler=`set X $ac_compile; echo $2`
8403 { (ac_try="$ac_compiler --version >&5"
8404 case "(($ac_try" in
8405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406   *) ac_try_echo=$ac_try;;
8407 esac
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409   (eval "$ac_compiler --version >&5") 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }
8413 { (ac_try="$ac_compiler -v >&5"
8414 case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419   (eval "$ac_compiler -v >&5") 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }
8423 { (ac_try="$ac_compiler -V >&5"
8424 case "(($ac_try" in
8425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426   *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429   (eval "$ac_compiler -V >&5") 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }
8433
8434 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8435 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8436 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8437   echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439   cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h.  */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h.  */
8445
8446 int
8447 main ()
8448 {
8449 #ifndef __GNUC__
8450        choke me
8451 #endif
8452
8453   ;
8454   return 0;
8455 }
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (ac_try="$ac_compile"
8459 case "(($ac_try" in
8460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461   *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464   (eval "$ac_compile") 2>conftest.er1
8465   ac_status=$?
8466   grep -v '^ *+' conftest.er1 >conftest.err
8467   rm -f conftest.er1
8468   cat conftest.err >&5
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); } && {
8471          test -z "$ac_cxx_werror_flag" ||
8472          test ! -s conftest.err
8473        } && test -s conftest.$ac_objext; then
8474   ac_compiler_gnu=yes
8475 else
8476   echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479         ac_compiler_gnu=no
8480 fi
8481
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8484
8485 fi
8486 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8487 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8488 GXX=`test $ac_compiler_gnu = yes && echo yes`
8489 ac_test_CXXFLAGS=${CXXFLAGS+set}
8490 ac_save_CXXFLAGS=$CXXFLAGS
8491 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8492 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8493 if test "${ac_cv_prog_cxx_g+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8497    ac_cxx_werror_flag=yes
8498    ac_cv_prog_cxx_g=no
8499    CXXFLAGS="-g"
8500    cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506
8507 int
8508 main ()
8509 {
8510
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext
8516 if { (ac_try="$ac_compile"
8517 case "(($ac_try" in
8518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519   *) ac_try_echo=$ac_try;;
8520 esac
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522   (eval "$ac_compile") 2>conftest.er1
8523   ac_status=$?
8524   grep -v '^ *+' conftest.er1 >conftest.err
8525   rm -f conftest.er1
8526   cat conftest.err >&5
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); } && {
8529          test -z "$ac_cxx_werror_flag" ||
8530          test ! -s conftest.err
8531        } && test -s conftest.$ac_objext; then
8532   ac_cv_prog_cxx_g=yes
8533 else
8534   echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8536
8537         CXXFLAGS=""
8538       cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h.  */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h.  */
8544
8545 int
8546 main ()
8547 {
8548
8549   ;
8550   return 0;
8551 }
8552 _ACEOF
8553 rm -f conftest.$ac_objext
8554 if { (ac_try="$ac_compile"
8555 case "(($ac_try" in
8556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557   *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560   (eval "$ac_compile") 2>conftest.er1
8561   ac_status=$?
8562   grep -v '^ *+' conftest.er1 >conftest.err
8563   rm -f conftest.er1
8564   cat conftest.err >&5
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); } && {
8567          test -z "$ac_cxx_werror_flag" ||
8568          test ! -s conftest.err
8569        } && test -s conftest.$ac_objext; then
8570   :
8571 else
8572   echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8576          CXXFLAGS="-g"
8577          cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h.  */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h.  */
8583
8584 int
8585 main ()
8586 {
8587
8588   ;
8589   return 0;
8590 }
8591 _ACEOF
8592 rm -f conftest.$ac_objext
8593 if { (ac_try="$ac_compile"
8594 case "(($ac_try" in
8595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596   *) ac_try_echo=$ac_try;;
8597 esac
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599   (eval "$ac_compile") 2>conftest.er1
8600   ac_status=$?
8601   grep -v '^ *+' conftest.er1 >conftest.err
8602   rm -f conftest.er1
8603   cat conftest.err >&5
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } && {
8606          test -z "$ac_cxx_werror_flag" ||
8607          test ! -s conftest.err
8608        } && test -s conftest.$ac_objext; then
8609   ac_cv_prog_cxx_g=yes
8610 else
8611   echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614
8615 fi
8616
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 fi
8619
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 fi
8622
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8625 fi
8626 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8627 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8628 if test "$ac_test_CXXFLAGS" = set; then
8629   CXXFLAGS=$ac_save_CXXFLAGS
8630 elif test $ac_cv_prog_cxx_g = yes; then
8631   if test "$GXX" = yes; then
8632     CXXFLAGS="-g -O2"
8633   else
8634     CXXFLAGS="-g"
8635   fi
8636 else
8637   if test "$GXX" = yes; then
8638     CXXFLAGS="-O2"
8639   else
8640     CXXFLAGS=
8641   fi
8642 fi
8643 ac_ext=c
8644 ac_cpp='$CPP $CPPFLAGS'
8645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8648
8649 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8650     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8651     (test "X$CXX" != "Xg++"))) ; then
8652   ac_ext=cpp
8653 ac_cpp='$CXXCPP $CPPFLAGS'
8654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8657 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8658 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8659 if test -z "$CXXCPP"; then
8660   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663       # Double quotes because CXXCPP needs to be expanded
8664     for CXXCPP in "$CXX -E" "/lib/cpp"
8665     do
8666       ac_preproc_ok=false
8667 for ac_cxx_preproc_warn_flag in '' yes
8668 do
8669   # Use a header file that comes with gcc, so configuring glibc
8670   # with a fresh cross-compiler works.
8671   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672   # <limits.h> exists even on freestanding compilers.
8673   # On the NeXT, cc -E runs the code through the compiler's parser,
8674   # not just through cpp. "Syntax error" is here to catch this case.
8675   cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h.  */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h.  */
8681 #ifdef __STDC__
8682 # include <limits.h>
8683 #else
8684 # include <assert.h>
8685 #endif
8686                      Syntax error
8687 _ACEOF
8688 if { (ac_try="$ac_cpp conftest.$ac_ext"
8689 case "(($ac_try" in
8690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691   *) ac_try_echo=$ac_try;;
8692 esac
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8695   ac_status=$?
8696   grep -v '^ *+' conftest.er1 >conftest.err
8697   rm -f conftest.er1
8698   cat conftest.err >&5
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); } >/dev/null && {
8701          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8702          test ! -s conftest.err
8703        }; then
8704   :
8705 else
8706   echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8708
8709   # Broken: fails on valid input.
8710 continue
8711 fi
8712
8713 rm -f conftest.err conftest.$ac_ext
8714
8715   # OK, works on sane cases.  Now check whether nonexistent headers
8716   # can be detected and how.
8717   cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h.  */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h.  */
8723 #include <ac_nonexistent.h>
8724 _ACEOF
8725 if { (ac_try="$ac_cpp conftest.$ac_ext"
8726 case "(($ac_try" in
8727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728   *) ac_try_echo=$ac_try;;
8729 esac
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8732   ac_status=$?
8733   grep -v '^ *+' conftest.er1 >conftest.err
8734   rm -f conftest.er1
8735   cat conftest.err >&5
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); } >/dev/null && {
8738          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8739          test ! -s conftest.err
8740        }; then
8741   # Broken: success on invalid input.
8742 continue
8743 else
8744   echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8746
8747   # Passes both tests.
8748 ac_preproc_ok=:
8749 break
8750 fi
8751
8752 rm -f conftest.err conftest.$ac_ext
8753
8754 done
8755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8756 rm -f conftest.err conftest.$ac_ext
8757 if $ac_preproc_ok; then
8758   break
8759 fi
8760
8761     done
8762     ac_cv_prog_CXXCPP=$CXXCPP
8763
8764 fi
8765   CXXCPP=$ac_cv_prog_CXXCPP
8766 else
8767   ac_cv_prog_CXXCPP=$CXXCPP
8768 fi
8769 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8770 echo "${ECHO_T}$CXXCPP" >&6; }
8771 ac_preproc_ok=false
8772 for ac_cxx_preproc_warn_flag in '' yes
8773 do
8774   # Use a header file that comes with gcc, so configuring glibc
8775   # with a fresh cross-compiler works.
8776   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8777   # <limits.h> exists even on freestanding compilers.
8778   # On the NeXT, cc -E runs the code through the compiler's parser,
8779   # not just through cpp. "Syntax error" is here to catch this case.
8780   cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 #ifdef __STDC__
8787 # include <limits.h>
8788 #else
8789 # include <assert.h>
8790 #endif
8791                      Syntax error
8792 _ACEOF
8793 if { (ac_try="$ac_cpp conftest.$ac_ext"
8794 case "(($ac_try" in
8795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796   *) ac_try_echo=$ac_try;;
8797 esac
8798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8800   ac_status=$?
8801   grep -v '^ *+' conftest.er1 >conftest.err
8802   rm -f conftest.er1
8803   cat conftest.err >&5
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); } >/dev/null && {
8806          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8807          test ! -s conftest.err
8808        }; then
8809   :
8810 else
8811   echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814   # Broken: fails on valid input.
8815 continue
8816 fi
8817
8818 rm -f conftest.err conftest.$ac_ext
8819
8820   # OK, works on sane cases.  Now check whether nonexistent headers
8821   # can be detected and how.
8822   cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828 #include <ac_nonexistent.h>
8829 _ACEOF
8830 if { (ac_try="$ac_cpp conftest.$ac_ext"
8831 case "(($ac_try" in
8832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833   *) ac_try_echo=$ac_try;;
8834 esac
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8837   ac_status=$?
8838   grep -v '^ *+' conftest.er1 >conftest.err
8839   rm -f conftest.er1
8840   cat conftest.err >&5
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); } >/dev/null && {
8843          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8844          test ! -s conftest.err
8845        }; then
8846   # Broken: success on invalid input.
8847 continue
8848 else
8849   echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8851
8852   # Passes both tests.
8853 ac_preproc_ok=:
8854 break
8855 fi
8856
8857 rm -f conftest.err conftest.$ac_ext
8858
8859 done
8860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8861 rm -f conftest.err conftest.$ac_ext
8862 if $ac_preproc_ok; then
8863   :
8864 else
8865   _lt_caught_CXX_error=yes
8866 fi
8867
8868 ac_ext=c
8869 ac_cpp='$CPP $CPPFLAGS'
8870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8873
8874 else
8875   _lt_caught_CXX_error=yes
8876 fi
8877
8878
8879
8880
8881
8882 # Set options
8883 # Check whether --enable-shared was given.
8884 if test "${enable_shared+set}" = set; then
8885   enableval=$enable_shared; p=${PACKAGE-default}
8886     case $enableval in
8887     yes) enable_shared=yes ;;
8888     no) enable_shared=no ;;
8889     *)
8890       enable_shared=no
8891       # Look at the argument we got.  We use all the common list separators.
8892       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8893       for pkg in $enableval; do
8894         IFS="$lt_save_ifs"
8895         if test "X$pkg" = "X$p"; then
8896           enable_shared=yes
8897         fi
8898       done
8899       IFS="$lt_save_ifs"
8900       ;;
8901     esac
8902 else
8903   enable_shared=yes
8904 fi
8905
8906
8907
8908
8909
8910
8911
8912 # Check whether --enable-static was given.
8913 if test "${enable_static+set}" = set; then
8914   enableval=$enable_static; p=${PACKAGE-default}
8915     case $enableval in
8916     yes) enable_static=yes ;;
8917     no) enable_static=no ;;
8918     *)
8919      enable_static=no
8920       # Look at the argument we got.  We use all the common list separators.
8921       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8922       for pkg in $enableval; do
8923         IFS="$lt_save_ifs"
8924         if test "X$pkg" = "X$p"; then
8925           enable_static=yes
8926         fi
8927       done
8928       IFS="$lt_save_ifs"
8929       ;;
8930     esac
8931 else
8932   enable_static=no
8933 fi
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944         enable_dlopen=no
8945
8946
8947   enable_win32_dll=no
8948
8949
8950
8951
8952
8953 # Check whether --with-pic was given.
8954 if test "${with_pic+set}" = set; then
8955   withval=$with_pic; pic_mode="$withval"
8956 else
8957   pic_mode=default
8958 fi
8959
8960
8961 test -z "$pic_mode" && pic_mode=default
8962
8963
8964
8965
8966
8967
8968
8969   # Check whether --enable-fast-install was given.
8970 if test "${enable_fast_install+set}" = set; then
8971   enableval=$enable_fast_install; p=${PACKAGE-default}
8972     case $enableval in
8973     yes) enable_fast_install=yes ;;
8974     no) enable_fast_install=no ;;
8975     *)
8976       enable_fast_install=no
8977       # Look at the argument we got.  We use all the common list separators.
8978       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8979       for pkg in $enableval; do
8980         IFS="$lt_save_ifs"
8981         if test "X$pkg" = "X$p"; then
8982           enable_fast_install=yes
8983         fi
8984       done
8985       IFS="$lt_save_ifs"
8986       ;;
8987     esac
8988 else
8989   enable_fast_install=yes
8990 fi
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002 # This can be used to rebuild libtool when needed
9003 LIBTOOL_DEPS="$ltmain"
9004
9005 # Always use our own libtool.
9006 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032 test -z "$LN_S" && LN_S="ln -s"
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047 if test -n "${ZSH_VERSION+set}" ; then
9048    setopt NO_GLOB_SUBST
9049 fi
9050
9051 { echo "$as_me:$LINENO: checking for objdir" >&5
9052 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9053 if test "${lt_cv_objdir+set}" = set; then
9054   echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056   rm -f .libs 2>/dev/null
9057 mkdir .libs 2>/dev/null
9058 if test -d .libs; then
9059   lt_cv_objdir=.libs
9060 else
9061   # MS-DOS does not allow filenames that begin with a dot.
9062   lt_cv_objdir=_libs
9063 fi
9064 rmdir .libs 2>/dev/null
9065 fi
9066 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9067 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9068 objdir=$lt_cv_objdir
9069
9070
9071
9072
9073
9074 cat >>confdefs.h <<_ACEOF
9075 #define LT_OBJDIR "$lt_cv_objdir/"
9076 _ACEOF
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094 case $host_os in
9095 aix3*)
9096   # AIX sometimes has problems with the GCC collect2 program.  For some
9097   # reason, if we set the COLLECT_NAMES environment variable, the problems
9098   # vanish in a puff of smoke.
9099   if test "X${COLLECT_NAMES+set}" != Xset; then
9100     COLLECT_NAMES=
9101     export COLLECT_NAMES
9102   fi
9103   ;;
9104 esac
9105
9106 # Sed substitution that helps us do robust quoting.  It backslashifies
9107 # metacharacters that are still active within double-quoted strings.
9108 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9109
9110 # Same as above, but do not quote variable references.
9111 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9112
9113 # Sed substitution to delay expansion of an escaped shell variable in a
9114 # double_quote_subst'ed string.
9115 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9116
9117 # Sed substitution to delay expansion of an escaped single quote.
9118 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9119
9120 # Sed substitution to avoid accidental globbing in evaled expressions
9121 no_glob_subst='s/\*/\\\*/g'
9122
9123 # Global variables:
9124 ofile=libtool
9125 can_build_shared=yes
9126
9127 # All known linkers require a `.a' archive for static linking (except MSVC,
9128 # which needs '.lib').
9129 libext=a
9130
9131 with_gnu_ld="$lt_cv_prog_gnu_ld"
9132
9133 old_CC="$CC"
9134 old_CFLAGS="$CFLAGS"
9135
9136 # Set sane defaults for various variables
9137 test -z "$CC" && CC=cc
9138 test -z "$LTCC" && LTCC=$CC
9139 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9140 test -z "$LD" && LD=ld
9141 test -z "$ac_objext" && ac_objext=o
9142
9143 for cc_temp in $compiler""; do
9144   case $cc_temp in
9145     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9146     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9147     \-*) ;;
9148     *) break;;
9149   esac
9150 done
9151 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9152
9153
9154 # Only perform the check for file, if the check method requires it
9155 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9156 case $deplibs_check_method in
9157 file_magic*)
9158   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9159     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9160 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9161 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9162   echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164   case $MAGIC_CMD in
9165 [\\/*] |  ?:[\\/]*)
9166   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9167   ;;
9168 *)
9169   lt_save_MAGIC_CMD="$MAGIC_CMD"
9170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9171   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9172   for ac_dir in $ac_dummy; do
9173     IFS="$lt_save_ifs"
9174     test -z "$ac_dir" && ac_dir=.
9175     if test -f $ac_dir/${ac_tool_prefix}file; then
9176       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9177       if test -n "$file_magic_test_file"; then
9178         case $deplibs_check_method in
9179         "file_magic "*)
9180           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9181           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9182           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9183             $EGREP "$file_magic_regex" > /dev/null; then
9184             :
9185           else
9186             cat <<_LT_EOF 1>&2
9187
9188 *** Warning: the command libtool uses to detect shared libraries,
9189 *** $file_magic_cmd, produces output that libtool cannot recognize.
9190 *** The result is that libtool may fail to recognize shared libraries
9191 *** as such.  This will affect the creation of libtool libraries that
9192 *** depend on shared libraries, but programs linked with such libtool
9193 *** libraries will work regardless of this problem.  Nevertheless, you
9194 *** may want to report the problem to your system manager and/or to
9195 *** bug-libtool@gnu.org
9196
9197 _LT_EOF
9198           fi ;;
9199         esac
9200       fi
9201       break
9202     fi
9203   done
9204   IFS="$lt_save_ifs"
9205   MAGIC_CMD="$lt_save_MAGIC_CMD"
9206   ;;
9207 esac
9208 fi
9209
9210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9211 if test -n "$MAGIC_CMD"; then
9212   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9213 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9214 else
9215   { echo "$as_me:$LINENO: result: no" >&5
9216 echo "${ECHO_T}no" >&6; }
9217 fi
9218
9219
9220
9221
9222
9223 if test -z "$lt_cv_path_MAGIC_CMD"; then
9224   if test -n "$ac_tool_prefix"; then
9225     { echo "$as_me:$LINENO: checking for file" >&5
9226 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9228   echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230   case $MAGIC_CMD in
9231 [\\/*] |  ?:[\\/]*)
9232   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9233   ;;
9234 *)
9235   lt_save_MAGIC_CMD="$MAGIC_CMD"
9236   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9237   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9238   for ac_dir in $ac_dummy; do
9239     IFS="$lt_save_ifs"
9240     test -z "$ac_dir" && ac_dir=.
9241     if test -f $ac_dir/file; then
9242       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9243       if test -n "$file_magic_test_file"; then
9244         case $deplibs_check_method in
9245         "file_magic "*)
9246           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9247           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9248           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9249             $EGREP "$file_magic_regex" > /dev/null; then
9250             :
9251           else
9252             cat <<_LT_EOF 1>&2
9253
9254 *** Warning: the command libtool uses to detect shared libraries,
9255 *** $file_magic_cmd, produces output that libtool cannot recognize.
9256 *** The result is that libtool may fail to recognize shared libraries
9257 *** as such.  This will affect the creation of libtool libraries that
9258 *** depend on shared libraries, but programs linked with such libtool
9259 *** libraries will work regardless of this problem.  Nevertheless, you
9260 *** may want to report the problem to your system manager and/or to
9261 *** bug-libtool@gnu.org
9262
9263 _LT_EOF
9264           fi ;;
9265         esac
9266       fi
9267       break
9268     fi
9269   done
9270   IFS="$lt_save_ifs"
9271   MAGIC_CMD="$lt_save_MAGIC_CMD"
9272   ;;
9273 esac
9274 fi
9275
9276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9277 if test -n "$MAGIC_CMD"; then
9278   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9279 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9280 else
9281   { echo "$as_me:$LINENO: result: no" >&5
9282 echo "${ECHO_T}no" >&6; }
9283 fi
9284
9285
9286   else
9287     MAGIC_CMD=:
9288   fi
9289 fi
9290
9291   fi
9292   ;;
9293 esac
9294
9295 # Use C for the default configuration in the libtool script
9296
9297 lt_save_CC="$CC"
9298 ac_ext=c
9299 ac_cpp='$CPP $CPPFLAGS'
9300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9303
9304
9305 # Source file extension for C test sources.
9306 ac_ext=c
9307
9308 # Object file extension for compiled C test sources.
9309 objext=o
9310 objext=$objext
9311
9312 # Code to be used in simple compile tests
9313 lt_simple_compile_test_code="int some_variable = 0;"
9314
9315 # Code to be used in simple link tests
9316 lt_simple_link_test_code='int main(){return(0);}'
9317
9318
9319
9320
9321
9322
9323
9324 # If no C compiler was specified, use CC.
9325 LTCC=${LTCC-"$CC"}
9326
9327 # If no C compiler flags were specified, use CFLAGS.
9328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9329
9330 # Allow CC to be a program name with arguments.
9331 compiler=$CC
9332
9333 # Save the default compiler, since it gets overwritten when the other
9334 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9335 compiler_DEFAULT=$CC
9336
9337 # save warnings/boilerplate of simple test code
9338 ac_outfile=conftest.$ac_objext
9339 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9340 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9341 _lt_compiler_boilerplate=`cat conftest.err`
9342 $RM conftest*
9343
9344 ac_outfile=conftest.$ac_objext
9345 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9346 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9347 _lt_linker_boilerplate=`cat conftest.err`
9348 $RM -r conftest*
9349
9350
9351 ## CAVEAT EMPTOR:
9352 ## There is no encapsulation within the following macros, do not change
9353 ## the running order or otherwise move them around unless you know exactly
9354 ## what you are doing...
9355 if test -n "$compiler"; then
9356
9357 lt_prog_compiler_no_builtin_flag=
9358
9359 if test "$GCC" = yes; then
9360   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9361
9362   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9363 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9364 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9365   echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367   lt_cv_prog_compiler_rtti_exceptions=no
9368    ac_outfile=conftest.$ac_objext
9369    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9370    lt_compiler_flag="-fno-rtti -fno-exceptions"
9371    # Insert the option either (1) after the last *FLAGS variable, or
9372    # (2) before a word containing "conftest.", or (3) at the end.
9373    # Note that $ac_compile itself does not contain backslashes and begins
9374    # with a dollar sign (not a hyphen), so the echo should work correctly.
9375    # The option is referenced via a variable to avoid confusing sed.
9376    lt_compile=`echo "$ac_compile" | $SED \
9377    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9378    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9379    -e 's:$: $lt_compiler_flag:'`
9380    (eval echo "\"\$as_me:9380: $lt_compile\"" >&5)
9381    (eval "$lt_compile" 2>conftest.err)
9382    ac_status=$?
9383    cat conftest.err >&5
9384    echo "$as_me:9384: \$? = $ac_status" >&5
9385    if (exit $ac_status) && test -s "$ac_outfile"; then
9386      # The compiler can only warn and ignore the option if not recognized
9387      # So say no if there are warnings other than the usual output.
9388      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9389      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9390      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9391        lt_cv_prog_compiler_rtti_exceptions=yes
9392      fi
9393    fi
9394    $RM conftest*
9395
9396 fi
9397 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9398 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9399
9400 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9401     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9402 else
9403     :
9404 fi
9405
9406 fi
9407
9408
9409
9410
9411
9412
9413   lt_prog_compiler_wl=
9414 lt_prog_compiler_pic=
9415 lt_prog_compiler_static=
9416
9417 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9418 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9419
9420   if test "$GCC" = yes; then
9421     lt_prog_compiler_wl='-Wl,'
9422     lt_prog_compiler_static='-static'
9423
9424     case $host_os in
9425       aix*)
9426       # All AIX code is PIC.
9427       if test "$host_cpu" = ia64; then
9428         # AIX 5 now supports IA64 processor
9429         lt_prog_compiler_static='-Bstatic'
9430       fi
9431       ;;
9432
9433     amigaos*)
9434       case $host_cpu in
9435       powerpc)
9436             # see comment about AmigaOS4 .so support
9437             lt_prog_compiler_pic='-fPIC'
9438         ;;
9439       m68k)
9440             # FIXME: we need at least 68020 code to build shared libraries, but
9441             # adding the `-m68020' flag to GCC prevents building anything better,
9442             # like `-m68040'.
9443             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9444         ;;
9445       esac
9446       ;;
9447
9448     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9449       # PIC is the default for these OSes.
9450       ;;
9451
9452     mingw* | cygwin* | pw32* | os2* | cegcc*)
9453       # This hack is so that the source file can tell whether it is being
9454       # built for inclusion in a dll (and should export symbols for example).
9455       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9456       # (--disable-auto-import) libraries
9457       lt_prog_compiler_pic='-DDLL_EXPORT'
9458       ;;
9459
9460     darwin* | rhapsody*)
9461       # PIC is the default on this platform
9462       # Common symbols not allowed in MH_DYLIB files
9463       lt_prog_compiler_pic='-fno-common'
9464       ;;
9465
9466     hpux*)
9467       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9468       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9469       # sets the default TLS model and affects inlining.
9470       case $host_cpu in
9471       hppa*64*)
9472         # +Z the default
9473         ;;
9474       *)
9475         lt_prog_compiler_pic='-fPIC'
9476         ;;
9477       esac
9478       ;;
9479
9480     interix[3-9]*)
9481       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9482       # Instead, we relocate shared libraries at runtime.
9483       ;;
9484
9485     msdosdjgpp*)
9486       # Just because we use GCC doesn't mean we suddenly get shared libraries
9487       # on systems that don't support them.
9488       lt_prog_compiler_can_build_shared=no
9489       enable_shared=no
9490       ;;
9491
9492     *nto* | *qnx*)
9493       # QNX uses GNU C++, but need to define -shared option too, otherwise
9494       # it will coredump.
9495       lt_prog_compiler_pic='-fPIC -shared'
9496       ;;
9497
9498     sysv4*MP*)
9499       if test -d /usr/nec; then
9500         lt_prog_compiler_pic=-Kconform_pic
9501       fi
9502       ;;
9503
9504     *)
9505       lt_prog_compiler_pic='-fPIC'
9506       ;;
9507     esac
9508   else
9509     # PORTME Check for flag to pass linker flags through the system compiler.
9510     case $host_os in
9511     aix*)
9512       lt_prog_compiler_wl='-Wl,'
9513       if test "$host_cpu" = ia64; then
9514         # AIX 5 now supports IA64 processor
9515         lt_prog_compiler_static='-Bstatic'
9516       else
9517         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9518       fi
9519       ;;
9520
9521     mingw* | cygwin* | pw32* | os2* | cegcc*)
9522       # This hack is so that the source file can tell whether it is being
9523       # built for inclusion in a dll (and should export symbols for example).
9524       lt_prog_compiler_pic='-DDLL_EXPORT'
9525       ;;
9526
9527     hpux9* | hpux10* | hpux11*)
9528       lt_prog_compiler_wl='-Wl,'
9529       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9530       # not for PA HP-UX.
9531       case $host_cpu in
9532       hppa*64*|ia64*)
9533         # +Z the default
9534         ;;
9535       *)
9536         lt_prog_compiler_pic='+Z'
9537         ;;
9538       esac
9539       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9540       lt_prog_compiler_static='${wl}-a ${wl}archive'
9541       ;;
9542
9543     irix5* | irix6* | nonstopux*)
9544       lt_prog_compiler_wl='-Wl,'
9545       # PIC (with -KPIC) is the default.
9546       lt_prog_compiler_static='-non_shared'
9547       ;;
9548
9549     linux* | k*bsd*-gnu)
9550       case $cc_basename in
9551       # old Intel for x86_64 which still supported -KPIC.
9552       ecc*)
9553         lt_prog_compiler_wl='-Wl,'
9554         lt_prog_compiler_pic='-KPIC'
9555         lt_prog_compiler_static='-static'
9556         ;;
9557       # icc used to be incompatible with GCC.
9558       # ICC 10 doesn't accept -KPIC any more.
9559       icc* | ifort*)
9560         lt_prog_compiler_wl='-Wl,'
9561         lt_prog_compiler_pic='-fPIC'
9562         lt_prog_compiler_static='-static'
9563         ;;
9564       # Lahey Fortran 8.1.
9565       lf95*)
9566         lt_prog_compiler_wl='-Wl,'
9567         lt_prog_compiler_pic='--shared'
9568         lt_prog_compiler_static='--static'
9569         ;;
9570       pgcc* | pgf77* | pgf90* | pgf95*)
9571         # Portland Group compilers (*not* the Pentium gcc compiler,
9572         # which looks to be a dead project)
9573         lt_prog_compiler_wl='-Wl,'
9574         lt_prog_compiler_pic='-fpic'
9575         lt_prog_compiler_static='-Bstatic'
9576         ;;
9577       ccc*)
9578         lt_prog_compiler_wl='-Wl,'
9579         # All Alpha code is PIC.
9580         lt_prog_compiler_static='-non_shared'
9581         ;;
9582       xl*)
9583         # IBM XL C 8.0/Fortran 10.1 on PPC
9584         lt_prog_compiler_wl='-Wl,'
9585         lt_prog_compiler_pic='-qpic'
9586         lt_prog_compiler_static='-qstaticlink'
9587         ;;
9588       *)
9589         case `$CC -V 2>&1 | sed 5q` in
9590         *Sun\ C*)
9591           # Sun C 5.9
9592           lt_prog_compiler_pic='-KPIC'
9593           lt_prog_compiler_static='-Bstatic'
9594           lt_prog_compiler_wl='-Wl,'
9595           ;;
9596         *Sun\ F*)
9597           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9598           lt_prog_compiler_pic='-KPIC'
9599           lt_prog_compiler_static='-Bstatic'
9600           lt_prog_compiler_wl=''
9601           ;;
9602         esac
9603         ;;
9604       esac
9605       ;;
9606
9607     newsos6)
9608       lt_prog_compiler_pic='-KPIC'
9609       lt_prog_compiler_static='-Bstatic'
9610       ;;
9611
9612     *nto* | *qnx*)
9613       # QNX uses GNU C++, but need to define -shared option too, otherwise
9614       # it will coredump.
9615       lt_prog_compiler_pic='-fPIC -shared'
9616       ;;
9617
9618     osf3* | osf4* | osf5*)
9619       lt_prog_compiler_wl='-Wl,'
9620       # All OSF/1 code is PIC.
9621       lt_prog_compiler_static='-non_shared'
9622       ;;
9623
9624     rdos*)
9625       lt_prog_compiler_static='-non_shared'
9626       ;;
9627
9628     solaris*)
9629       lt_prog_compiler_pic='-KPIC'
9630       lt_prog_compiler_static='-Bstatic'
9631       case $cc_basename in
9632       f77* | f90* | f95*)
9633         lt_prog_compiler_wl='-Qoption ld ';;
9634       *)
9635         lt_prog_compiler_wl='-Wl,';;
9636       esac
9637       ;;
9638
9639     sunos4*)
9640       lt_prog_compiler_wl='-Qoption ld '
9641       lt_prog_compiler_pic='-PIC'
9642       lt_prog_compiler_static='-Bstatic'
9643       ;;
9644
9645     sysv4 | sysv4.2uw2* | sysv4.3*)
9646       lt_prog_compiler_wl='-Wl,'
9647       lt_prog_compiler_pic='-KPIC'
9648       lt_prog_compiler_static='-Bstatic'
9649       ;;
9650
9651     sysv4*MP*)
9652       if test -d /usr/nec ;then
9653         lt_prog_compiler_pic='-Kconform_pic'
9654         lt_prog_compiler_static='-Bstatic'
9655       fi
9656       ;;
9657
9658     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9659       lt_prog_compiler_wl='-Wl,'
9660       lt_prog_compiler_pic='-KPIC'
9661       lt_prog_compiler_static='-Bstatic'
9662       ;;
9663
9664     unicos*)
9665       lt_prog_compiler_wl='-Wl,'
9666       lt_prog_compiler_can_build_shared=no
9667       ;;
9668
9669     uts4*)
9670       lt_prog_compiler_pic='-pic'
9671       lt_prog_compiler_static='-Bstatic'
9672       ;;
9673
9674     *)
9675       lt_prog_compiler_can_build_shared=no
9676       ;;
9677     esac
9678   fi
9679
9680 case $host_os in
9681   # For platforms which do not support PIC, -DPIC is meaningless:
9682   *djgpp*)
9683     lt_prog_compiler_pic=
9684     ;;
9685   *)
9686     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9687     ;;
9688 esac
9689 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9690 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9691
9692
9693
9694
9695
9696
9697 #
9698 # Check to make sure the PIC flag actually works.
9699 #
9700 if test -n "$lt_prog_compiler_pic"; then
9701   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9702 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9703 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9704   echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706   lt_cv_prog_compiler_pic_works=no
9707    ac_outfile=conftest.$ac_objext
9708    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9709    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9710    # Insert the option either (1) after the last *FLAGS variable, or
9711    # (2) before a word containing "conftest.", or (3) at the end.
9712    # Note that $ac_compile itself does not contain backslashes and begins
9713    # with a dollar sign (not a hyphen), so the echo should work correctly.
9714    # The option is referenced via a variable to avoid confusing sed.
9715    lt_compile=`echo "$ac_compile" | $SED \
9716    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9717    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9718    -e 's:$: $lt_compiler_flag:'`
9719    (eval echo "\"\$as_me:9719: $lt_compile\"" >&5)
9720    (eval "$lt_compile" 2>conftest.err)
9721    ac_status=$?
9722    cat conftest.err >&5
9723    echo "$as_me:9723: \$? = $ac_status" >&5
9724    if (exit $ac_status) && test -s "$ac_outfile"; then
9725      # The compiler can only warn and ignore the option if not recognized
9726      # So say no if there are warnings other than the usual output.
9727      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9728      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9729      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9730        lt_cv_prog_compiler_pic_works=yes
9731      fi
9732    fi
9733    $RM conftest*
9734
9735 fi
9736 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9737 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9738
9739 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9740     case $lt_prog_compiler_pic in
9741      "" | " "*) ;;
9742      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9743      esac
9744 else
9745     lt_prog_compiler_pic=
9746      lt_prog_compiler_can_build_shared=no
9747 fi
9748
9749 fi
9750
9751
9752
9753
9754
9755
9756 #
9757 # Check to make sure the static flag actually works.
9758 #
9759 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9760 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9761 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9762 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   lt_cv_prog_compiler_static_works=no
9766    save_LDFLAGS="$LDFLAGS"
9767    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9768    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9769    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9770      # The linker can only warn and ignore the option if not recognized
9771      # So say no if there are warnings
9772      if test -s conftest.err; then
9773        # Append any errors to the config.log.
9774        cat conftest.err 1>&5
9775        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9776        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9777        if diff conftest.exp conftest.er2 >/dev/null; then
9778          lt_cv_prog_compiler_static_works=yes
9779        fi
9780      else
9781        lt_cv_prog_compiler_static_works=yes
9782      fi
9783    fi
9784    $RM -r conftest*
9785    LDFLAGS="$save_LDFLAGS"
9786
9787 fi
9788 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9789 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9790
9791 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9792     :
9793 else
9794     lt_prog_compiler_static=
9795 fi
9796
9797
9798
9799
9800
9801
9802
9803   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9804 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9805 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9806   echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808   lt_cv_prog_compiler_c_o=no
9809    $RM -r conftest 2>/dev/null
9810    mkdir conftest
9811    cd conftest
9812    mkdir out
9813    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9814
9815    lt_compiler_flag="-o out/conftest2.$ac_objext"
9816    # Insert the option either (1) after the last *FLAGS variable, or
9817    # (2) before a word containing "conftest.", or (3) at the end.
9818    # Note that $ac_compile itself does not contain backslashes and begins
9819    # with a dollar sign (not a hyphen), so the echo should work correctly.
9820    lt_compile=`echo "$ac_compile" | $SED \
9821    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9823    -e 's:$: $lt_compiler_flag:'`
9824    (eval echo "\"\$as_me:9824: $lt_compile\"" >&5)
9825    (eval "$lt_compile" 2>out/conftest.err)
9826    ac_status=$?
9827    cat out/conftest.err >&5
9828    echo "$as_me:9828: \$? = $ac_status" >&5
9829    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9830    then
9831      # The compiler can only warn and ignore the option if not recognized
9832      # So say no if there are warnings
9833      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9834      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9835      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9836        lt_cv_prog_compiler_c_o=yes
9837      fi
9838    fi
9839    chmod u+w . 2>&5
9840    $RM conftest*
9841    # SGI C++ compiler will create directory out/ii_files/ for
9842    # template instantiation
9843    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9844    $RM out/* && rmdir out
9845    cd ..
9846    $RM -r conftest
9847    $RM conftest*
9848
9849 fi
9850 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9851 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9852
9853
9854
9855
9856
9857
9858   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9859 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9860 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   lt_cv_prog_compiler_c_o=no
9864    $RM -r conftest 2>/dev/null
9865    mkdir conftest
9866    cd conftest
9867    mkdir out
9868    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9869
9870    lt_compiler_flag="-o out/conftest2.$ac_objext"
9871    # Insert the option either (1) after the last *FLAGS variable, or
9872    # (2) before a word containing "conftest.", or (3) at the end.
9873    # Note that $ac_compile itself does not contain backslashes and begins
9874    # with a dollar sign (not a hyphen), so the echo should work correctly.
9875    lt_compile=`echo "$ac_compile" | $SED \
9876    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9877    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9878    -e 's:$: $lt_compiler_flag:'`
9879    (eval echo "\"\$as_me:9879: $lt_compile\"" >&5)
9880    (eval "$lt_compile" 2>out/conftest.err)
9881    ac_status=$?
9882    cat out/conftest.err >&5
9883    echo "$as_me:9883: \$? = $ac_status" >&5
9884    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9885    then
9886      # The compiler can only warn and ignore the option if not recognized
9887      # So say no if there are warnings
9888      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9889      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9890      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9891        lt_cv_prog_compiler_c_o=yes
9892      fi
9893    fi
9894    chmod u+w . 2>&5
9895    $RM conftest*
9896    # SGI C++ compiler will create directory out/ii_files/ for
9897    # template instantiation
9898    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9899    $RM out/* && rmdir out
9900    cd ..
9901    $RM -r conftest
9902    $RM conftest*
9903
9904 fi
9905 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9906 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9907
9908
9909
9910
9911 hard_links="nottested"
9912 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9913   # do not overwrite the value of need_locks provided by the user
9914   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9915 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9916   hard_links=yes
9917   $RM conftest*
9918   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9919   touch conftest.a
9920   ln conftest.a conftest.b 2>&5 || hard_links=no
9921   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9922   { echo "$as_me:$LINENO: result: $hard_links" >&5
9923 echo "${ECHO_T}$hard_links" >&6; }
9924   if test "$hard_links" = no; then
9925     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9926 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9927     need_locks=warn
9928   fi
9929 else
9930   need_locks=no
9931 fi
9932
9933
9934
9935
9936
9937
9938   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9940
9941   runpath_var=
9942   allow_undefined_flag=
9943   always_export_symbols=no
9944   archive_cmds=
9945   archive_expsym_cmds=
9946   compiler_needs_object=no
9947   enable_shared_with_static_runtimes=no
9948   export_dynamic_flag_spec=
9949   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9950   hardcode_automatic=no
9951   hardcode_direct=no
9952   hardcode_direct_absolute=no
9953   hardcode_libdir_flag_spec=
9954   hardcode_libdir_flag_spec_ld=
9955   hardcode_libdir_separator=
9956   hardcode_minus_L=no
9957   hardcode_shlibpath_var=unsupported
9958   inherit_rpath=no
9959   link_all_deplibs=unknown
9960   module_cmds=
9961   module_expsym_cmds=
9962   old_archive_from_new_cmds=
9963   old_archive_from_expsyms_cmds=
9964   thread_safe_flag_spec=
9965   whole_archive_flag_spec=
9966   # include_expsyms should be a list of space-separated symbols to be *always*
9967   # included in the symbol list
9968   include_expsyms=
9969   # exclude_expsyms can be an extended regexp of symbols to exclude
9970   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9971   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9972   # as well as any symbol that contains `d'.
9973   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9974   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9975   # platforms (ab)use it in PIC code, but their linkers get confused if
9976   # the symbol is explicitly referenced.  Since portable code cannot
9977   # rely on this symbol name, it's probably fine to never include it in
9978   # preloaded symbol tables.
9979   # Exclude shared library initialization/finalization symbols.
9980   extract_expsyms_cmds=
9981
9982   case $host_os in
9983   cygwin* | mingw* | pw32* | cegcc*)
9984     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9985     # When not using gcc, we currently assume that we are using
9986     # Microsoft Visual C++.
9987     if test "$GCC" != yes; then
9988       with_gnu_ld=no
9989     fi
9990     ;;
9991   interix*)
9992     # we just hope/assume this is gcc and not c89 (= MSVC++)
9993     with_gnu_ld=yes
9994     ;;
9995   openbsd*)
9996     with_gnu_ld=no
9997     ;;
9998   esac
9999
10000   ld_shlibs=yes
10001   if test "$with_gnu_ld" = yes; then
10002     # If archive_cmds runs LD, not CC, wlarc should be empty
10003     wlarc='${wl}'
10004
10005     # Set some defaults for GNU ld with shared library support. These
10006     # are reset later if shared libraries are not supported. Putting them
10007     # here allows them to be overridden if necessary.
10008     runpath_var=LD_RUN_PATH
10009     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10010     export_dynamic_flag_spec='${wl}--export-dynamic'
10011     # ancient GNU ld didn't support --whole-archive et. al.
10012     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10013       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10014     else
10015       whole_archive_flag_spec=
10016     fi
10017     supports_anon_versioning=no
10018     case `$LD -v 2>&1` in
10019       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10020       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10021       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10022       *\ 2.11.*) ;; # other 2.11 versions
10023       *) supports_anon_versioning=yes ;;
10024     esac
10025
10026     # See if GNU ld supports shared libraries.
10027     case $host_os in
10028     aix[3-9]*)
10029       # On AIX/PPC, the GNU linker is very broken
10030       if test "$host_cpu" != ia64; then
10031         ld_shlibs=no
10032         cat <<_LT_EOF 1>&2
10033
10034 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10035 *** to be unable to reliably create shared libraries on AIX.
10036 *** Therefore, libtool is disabling shared libraries support.  If you
10037 *** really care for shared libraries, you may want to modify your PATH
10038 *** so that a non-GNU linker is found, and then restart.
10039
10040 _LT_EOF
10041       fi
10042       ;;
10043
10044     amigaos*)
10045       case $host_cpu in
10046       powerpc)
10047             # see comment about AmigaOS4 .so support
10048             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10049             archive_expsym_cmds=''
10050         ;;
10051       m68k)
10052             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)'
10053             hardcode_libdir_flag_spec='-L$libdir'
10054             hardcode_minus_L=yes
10055         ;;
10056       esac
10057       ;;
10058
10059     beos*)
10060       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10061         allow_undefined_flag=unsupported
10062         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10063         # support --undefined.  This deserves some investigation.  FIXME
10064         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10065       else
10066         ld_shlibs=no
10067       fi
10068       ;;
10069
10070     cygwin* | mingw* | pw32* | cegcc*)
10071       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10072       # as there is no search path for DLLs.
10073       hardcode_libdir_flag_spec='-L$libdir'
10074       allow_undefined_flag=unsupported
10075       always_export_symbols=no
10076       enable_shared_with_static_runtimes=yes
10077       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10078
10079       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10080         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10081         # If the export-symbols file already is a .def file (1st line
10082         # is EXPORTS), use it as is; otherwise, prepend...
10083         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10084           cp $export_symbols $output_objdir/$soname.def;
10085         else
10086           echo EXPORTS > $output_objdir/$soname.def;
10087           cat $export_symbols >> $output_objdir/$soname.def;
10088         fi~
10089         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10090       else
10091         ld_shlibs=no
10092       fi
10093       ;;
10094
10095     interix[3-9]*)
10096       hardcode_direct=no
10097       hardcode_shlibpath_var=no
10098       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10099       export_dynamic_flag_spec='${wl}-E'
10100       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10101       # Instead, shared libraries are loaded at an image base (0x10000000 by
10102       # default) and relocated if they conflict, which is a slow very memory
10103       # consuming and fragmenting process.  To avoid this, we pick a random,
10104       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10105       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10106       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10107       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'
10108       ;;
10109
10110     gnu* | linux* | tpf* | k*bsd*-gnu)
10111       tmp_diet=no
10112       if test "$host_os" = linux-dietlibc; then
10113         case $cc_basename in
10114           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10115         esac
10116       fi
10117       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10118          && test "$tmp_diet" = no
10119       then
10120         tmp_addflag=
10121         tmp_sharedflag='-shared'
10122         case $cc_basename,$host_cpu in
10123         pgcc*)                          # Portland Group C compiler
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'
10126           ;;
10127         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10128           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'
10129           tmp_addflag=' $pic_flag -Mnomain' ;;
10130         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10131           tmp_addflag=' -i_dynamic' ;;
10132         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10133           tmp_addflag=' -i_dynamic -nofor_main' ;;
10134         ifc* | ifort*)                  # Intel Fortran compiler
10135           tmp_addflag=' -nofor_main' ;;
10136         lf95*)                          # Lahey Fortran 8.1
10137           whole_archive_flag_spec=
10138           tmp_sharedflag='--shared' ;;
10139         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10140           tmp_sharedflag='-qmkshrobj'
10141           tmp_addflag= ;;
10142         esac
10143         case `$CC -V 2>&1 | sed 5q` in
10144         *Sun\ C*)                       # Sun C 5.9
10145           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'
10146           compiler_needs_object=yes
10147           tmp_sharedflag='-G' ;;
10148         *Sun\ F*)                       # Sun Fortran 8.3
10149           tmp_sharedflag='-G' ;;
10150         esac
10151         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10152
10153         if test "x$supports_anon_versioning" = xyes; then
10154           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10155             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10156             echo "local: *; };" >> $output_objdir/$libname.ver~
10157             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10158         fi
10159
10160         case $cc_basename in
10161         xlf*)
10162           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10163           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10164           hardcode_libdir_flag_spec=
10165           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10166           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10167           if test "x$supports_anon_versioning" = xyes; then
10168             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10169               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10170               echo "local: *; };" >> $output_objdir/$libname.ver~
10171               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10172           fi
10173           ;;
10174         esac
10175       else
10176         ld_shlibs=no
10177       fi
10178       ;;
10179
10180     netbsd*)
10181       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10182         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10183         wlarc=
10184       else
10185         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10186         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10187       fi
10188       ;;
10189
10190     solaris*)
10191       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10192         ld_shlibs=no
10193         cat <<_LT_EOF 1>&2
10194
10195 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10196 *** create shared libraries on Solaris systems.  Therefore, libtool
10197 *** is disabling shared libraries support.  We urge you to upgrade GNU
10198 *** binutils to release 2.9.1 or newer.  Another option is to modify
10199 *** your PATH or compiler configuration so that the native linker is
10200 *** used, and then restart.
10201
10202 _LT_EOF
10203       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10204         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10206       else
10207         ld_shlibs=no
10208       fi
10209       ;;
10210
10211     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10212       case `$LD -v 2>&1` in
10213         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10214         ld_shlibs=no
10215         cat <<_LT_EOF 1>&2
10216
10217 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10218 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10219 *** is disabling shared libraries support.  We urge you to upgrade GNU
10220 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10221 *** your PATH or compiler configuration so that the native linker is
10222 *** used, and then restart.
10223
10224 _LT_EOF
10225         ;;
10226         *)
10227           # For security reasons, it is highly recommended that you always
10228           # use absolute paths for naming shared libraries, and exclude the
10229           # DT_RUNPATH tag from executables and libraries.  But doing so
10230           # requires that you compile everything twice, which is a pain.
10231           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10232             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10233             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10235           else
10236             ld_shlibs=no
10237           fi
10238         ;;
10239       esac
10240       ;;
10241
10242     sunos4*)
10243       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10244       wlarc=
10245       hardcode_direct=yes
10246       hardcode_shlibpath_var=no
10247       ;;
10248
10249     *)
10250       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10251         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10252         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10253       else
10254         ld_shlibs=no
10255       fi
10256       ;;
10257     esac
10258
10259     if test "$ld_shlibs" = no; then
10260       runpath_var=
10261       hardcode_libdir_flag_spec=
10262       export_dynamic_flag_spec=
10263       whole_archive_flag_spec=
10264     fi
10265   else
10266     # PORTME fill in a description of your system's linker (not GNU ld)
10267     case $host_os in
10268     aix3*)
10269       allow_undefined_flag=unsupported
10270       always_export_symbols=yes
10271       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'
10272       # Note: this linker hardcodes the directories in LIBPATH if there
10273       # are no directories specified by -L.
10274       hardcode_minus_L=yes
10275       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10276         # Neither direct hardcoding nor static linking is supported with a
10277         # broken collect2.
10278         hardcode_direct=unsupported
10279       fi
10280       ;;
10281
10282     aix[4-9]*)
10283       if test "$host_cpu" = ia64; then
10284         # On IA64, the linker does run time linking by default, so we don't
10285         # have to do anything special.
10286         aix_use_runtimelinking=no
10287         exp_sym_flag='-Bexport'
10288         no_entry_flag=""
10289       else
10290         # If we're using GNU nm, then we don't want the "-C" option.
10291         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10292         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10293           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'
10294         else
10295           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'
10296         fi
10297         aix_use_runtimelinking=no
10298
10299         # Test if we are trying to use run time linking or normal
10300         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10301         # need to do runtime linking.
10302         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10303           for ld_flag in $LDFLAGS; do
10304           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10305             aix_use_runtimelinking=yes
10306             break
10307           fi
10308           done
10309           ;;
10310         esac
10311
10312         exp_sym_flag='-bexport'
10313         no_entry_flag='-bnoentry'
10314       fi
10315
10316       # When large executables or shared objects are built, AIX ld can
10317       # have problems creating the table of contents.  If linking a library
10318       # or program results in "error TOC overflow" add -mminimal-toc to
10319       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10320       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10321
10322       archive_cmds=''
10323       hardcode_direct=yes
10324       hardcode_direct_absolute=yes
10325       hardcode_libdir_separator=':'
10326       link_all_deplibs=yes
10327       file_list_spec='${wl}-f,'
10328
10329       if test "$GCC" = yes; then
10330         case $host_os in aix4.[012]|aix4.[012].*)
10331         # We only want to do this on AIX 4.2 and lower, the check
10332         # below for broken collect2 doesn't work under 4.3+
10333           collect2name=`${CC} -print-prog-name=collect2`
10334           if test -f "$collect2name" &&
10335            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10336           then
10337           # We have reworked collect2
10338           :
10339           else
10340           # We have old collect2
10341           hardcode_direct=unsupported
10342           # It fails to find uninstalled libraries when the uninstalled
10343           # path is not listed in the libpath.  Setting hardcode_minus_L
10344           # to unsupported forces relinking
10345           hardcode_minus_L=yes
10346           hardcode_libdir_flag_spec='-L$libdir'
10347           hardcode_libdir_separator=
10348           fi
10349           ;;
10350         esac
10351         shared_flag='-shared'
10352         if test "$aix_use_runtimelinking" = yes; then
10353           shared_flag="$shared_flag "'${wl}-G'
10354         fi
10355       else
10356         # not using gcc
10357         if test "$host_cpu" = ia64; then
10358         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10359         # chokes on -Wl,-G. The following line is correct:
10360           shared_flag='-G'
10361         else
10362           if test "$aix_use_runtimelinking" = yes; then
10363             shared_flag='${wl}-G'
10364           else
10365             shared_flag='${wl}-bM:SRE'
10366           fi
10367         fi
10368       fi
10369
10370       export_dynamic_flag_spec='${wl}-bexpall'
10371       # It seems that -bexpall does not export symbols beginning with
10372       # underscore (_), so it is better to generate a list of symbols to export.
10373       always_export_symbols=yes
10374       if test "$aix_use_runtimelinking" = yes; then
10375         # Warning - without using the other runtime loading flags (-brtl),
10376         # -berok will link without error, but may produce a broken library.
10377         allow_undefined_flag='-berok'
10378         # Determine the default libpath from the value encoded in an
10379         # empty executable.
10380         cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386
10387 int
10388 main ()
10389 {
10390
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399   *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402   (eval "$ac_link") 2>conftest.er1
10403   ac_status=$?
10404   grep -v '^ *+' conftest.er1 >conftest.err
10405   rm -f conftest.er1
10406   cat conftest.err >&5
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); } && {
10409          test -z "$ac_c_werror_flag" ||
10410          test ! -s conftest.err
10411        } && test -s conftest$ac_exeext &&
10412        $as_test_x conftest$ac_exeext; then
10413
10414 lt_aix_libpath_sed='
10415     /Import File Strings/,/^$/ {
10416         /^0/ {
10417             s/^0  *\(.*\)$/\1/
10418             p
10419         }
10420     }'
10421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10422 # Check for a 64-bit object if we didn't find anything.
10423 if test -z "$aix_libpath"; then
10424   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10425 fi
10426 else
10427   echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430
10431 fi
10432
10433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10434       conftest$ac_exeext conftest.$ac_ext
10435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10436
10437         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10438         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"
10439       else
10440         if test "$host_cpu" = ia64; then
10441           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10442           allow_undefined_flag="-z nodefs"
10443           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"
10444         else
10445          # Determine the default libpath from the value encoded in an
10446          # empty executable.
10447          cat >conftest.$ac_ext <<_ACEOF
10448 /* confdefs.h.  */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h.  */
10453
10454 int
10455 main ()
10456 {
10457
10458   ;
10459   return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466   *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469   (eval "$ac_link") 2>conftest.er1
10470   ac_status=$?
10471   grep -v '^ *+' conftest.er1 >conftest.err
10472   rm -f conftest.er1
10473   cat conftest.err >&5
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); } && {
10476          test -z "$ac_c_werror_flag" ||
10477          test ! -s conftest.err
10478        } && test -s conftest$ac_exeext &&
10479        $as_test_x conftest$ac_exeext; then
10480
10481 lt_aix_libpath_sed='
10482     /Import File Strings/,/^$/ {
10483         /^0/ {
10484             s/^0  *\(.*\)$/\1/
10485             p
10486         }
10487     }'
10488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10489 # Check for a 64-bit object if we didn't find anything.
10490 if test -z "$aix_libpath"; then
10491   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10492 fi
10493 else
10494   echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497
10498 fi
10499
10500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10501       conftest$ac_exeext conftest.$ac_ext
10502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10503
10504          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10505           # Warning - without using the other run time loading flags,
10506           # -berok will link without error, but may produce a broken library.
10507           no_undefined_flag=' ${wl}-bernotok'
10508           allow_undefined_flag=' ${wl}-berok'
10509           # Exported symbols can be pulled into shared objects from archives
10510           whole_archive_flag_spec='$convenience'
10511           archive_cmds_need_lc=yes
10512           # This is similar to how AIX traditionally builds its shared libraries.
10513           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'
10514         fi
10515       fi
10516       ;;
10517
10518     amigaos*)
10519       case $host_cpu in
10520       powerpc)
10521             # see comment about AmigaOS4 .so support
10522             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10523             archive_expsym_cmds=''
10524         ;;
10525       m68k)
10526             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)'
10527             hardcode_libdir_flag_spec='-L$libdir'
10528             hardcode_minus_L=yes
10529         ;;
10530       esac
10531       ;;
10532
10533     bsdi[45]*)
10534       export_dynamic_flag_spec=-rdynamic
10535       ;;
10536
10537     cygwin* | mingw* | pw32* | cegcc*)
10538       # When not using gcc, we currently assume that we are using
10539       # Microsoft Visual C++.
10540       # hardcode_libdir_flag_spec is actually meaningless, as there is
10541       # no search path for DLLs.
10542       hardcode_libdir_flag_spec=' '
10543       allow_undefined_flag=unsupported
10544       # Tell ltmain to make .lib files, not .a files.
10545       libext=lib
10546       # Tell ltmain to make .dll files, not .so files.
10547       shrext_cmds=".dll"
10548       # FIXME: Setting linknames here is a bad hack.
10549       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10550       # The linker will automatically build a .lib file if we build a DLL.
10551       old_archive_from_new_cmds='true'
10552       # FIXME: Should let the user specify the lib program.
10553       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10554       fix_srcfile_path='`cygpath -w "$srcfile"`'
10555       enable_shared_with_static_runtimes=yes
10556       ;;
10557
10558     darwin* | rhapsody*)
10559
10560
10561   archive_cmds_need_lc=no
10562   hardcode_direct=no
10563   hardcode_automatic=yes
10564   hardcode_shlibpath_var=unsupported
10565   whole_archive_flag_spec=''
10566   link_all_deplibs=yes
10567   allow_undefined_flag="$_lt_dar_allow_undefined"
10568   case $cc_basename in
10569      ifort*) _lt_dar_can_shared=yes ;;
10570      *) _lt_dar_can_shared=$GCC ;;
10571   esac
10572   if test "$_lt_dar_can_shared" = "yes"; then
10573     output_verbose_link_cmd=echo
10574     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10575     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10576     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}"
10577     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}"
10578
10579   else
10580   ld_shlibs=no
10581   fi
10582
10583       ;;
10584
10585     dgux*)
10586       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10587       hardcode_libdir_flag_spec='-L$libdir'
10588       hardcode_shlibpath_var=no
10589       ;;
10590
10591     freebsd1*)
10592       ld_shlibs=no
10593       ;;
10594
10595     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10596     # support.  Future versions do this automatically, but an explicit c++rt0.o
10597     # does not break anything, and helps significantly (at the cost of a little
10598     # extra space).
10599     freebsd2.2*)
10600       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10601       hardcode_libdir_flag_spec='-R$libdir'
10602       hardcode_direct=yes
10603       hardcode_shlibpath_var=no
10604       ;;
10605
10606     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10607     freebsd2*)
10608       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10609       hardcode_direct=yes
10610       hardcode_minus_L=yes
10611       hardcode_shlibpath_var=no
10612       ;;
10613
10614     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10615     freebsd* | dragonfly*)
10616       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10617       hardcode_libdir_flag_spec='-R$libdir'
10618       hardcode_direct=yes
10619       hardcode_shlibpath_var=no
10620       ;;
10621
10622     hpux9*)
10623       if test "$GCC" = yes; then
10624         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'
10625       else
10626         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'
10627       fi
10628       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10629       hardcode_libdir_separator=:
10630       hardcode_direct=yes
10631
10632       # hardcode_minus_L: Not really in the search PATH,
10633       # but as the default location of the library.
10634       hardcode_minus_L=yes
10635       export_dynamic_flag_spec='${wl}-E'
10636       ;;
10637
10638     hpux10*)
10639       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10640         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10641       else
10642         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10643       fi
10644       if test "$with_gnu_ld" = no; then
10645         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10646         hardcode_libdir_flag_spec_ld='+b $libdir'
10647         hardcode_libdir_separator=:
10648         hardcode_direct=yes
10649         hardcode_direct_absolute=yes
10650         export_dynamic_flag_spec='${wl}-E'
10651         # hardcode_minus_L: Not really in the search PATH,
10652         # but as the default location of the library.
10653         hardcode_minus_L=yes
10654       fi
10655       ;;
10656
10657     hpux11*)
10658       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10659         case $host_cpu in
10660         hppa*64*)
10661           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10662           ;;
10663         ia64*)
10664           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10665           ;;
10666         *)
10667           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10668           ;;
10669         esac
10670       else
10671         case $host_cpu in
10672         hppa*64*)
10673           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10674           ;;
10675         ia64*)
10676           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10677           ;;
10678         *)
10679           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10680           ;;
10681         esac
10682       fi
10683       if test "$with_gnu_ld" = no; then
10684         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10685         hardcode_libdir_separator=:
10686
10687         case $host_cpu in
10688         hppa*64*|ia64*)
10689           hardcode_direct=no
10690           hardcode_shlibpath_var=no
10691           ;;
10692         *)
10693           hardcode_direct=yes
10694           hardcode_direct_absolute=yes
10695           export_dynamic_flag_spec='${wl}-E'
10696
10697           # hardcode_minus_L: Not really in the search PATH,
10698           # but as the default location of the library.
10699           hardcode_minus_L=yes
10700           ;;
10701         esac
10702       fi
10703       ;;
10704
10705     irix5* | irix6* | nonstopux*)
10706       if test "$GCC" = yes; then
10707         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'
10708         # Try to use the -exported_symbol ld option, if it does not
10709         # work, assume that -exports_file does not work either and
10710         # implicitly export all symbols.
10711         save_LDFLAGS="$LDFLAGS"
10712         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10713         cat >conftest.$ac_ext <<_ACEOF
10714 int foo(void) {}
10715 _ACEOF
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (ac_try="$ac_link"
10718 case "(($ac_try" in
10719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720   *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723   (eval "$ac_link") 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } && {
10730          test -z "$ac_c_werror_flag" ||
10731          test ! -s conftest.err
10732        } && test -s conftest$ac_exeext &&
10733        $as_test_x conftest$ac_exeext; then
10734   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'
10735
10736 else
10737   echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10739
10740
10741 fi
10742
10743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10744       conftest$ac_exeext conftest.$ac_ext
10745         LDFLAGS="$save_LDFLAGS"
10746       else
10747         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'
10748         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'
10749       fi
10750       archive_cmds_need_lc='no'
10751       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10752       hardcode_libdir_separator=:
10753       inherit_rpath=yes
10754       link_all_deplibs=yes
10755       ;;
10756
10757     netbsd*)
10758       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10759         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10760       else
10761         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10762       fi
10763       hardcode_libdir_flag_spec='-R$libdir'
10764       hardcode_direct=yes
10765       hardcode_shlibpath_var=no
10766       ;;
10767
10768     newsos6)
10769       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10770       hardcode_direct=yes
10771       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10772       hardcode_libdir_separator=:
10773       hardcode_shlibpath_var=no
10774       ;;
10775
10776     *nto* | *qnx*)
10777       ;;
10778
10779     openbsd*)
10780       if test -f /usr/libexec/ld.so; then
10781         hardcode_direct=yes
10782         hardcode_shlibpath_var=no
10783         hardcode_direct_absolute=yes
10784         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10785           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10786           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10787           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10788           export_dynamic_flag_spec='${wl}-E'
10789         else
10790           case $host_os in
10791            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10792              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10793              hardcode_libdir_flag_spec='-R$libdir'
10794              ;;
10795            *)
10796              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10797              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10798              ;;
10799           esac
10800         fi
10801       else
10802         ld_shlibs=no
10803       fi
10804       ;;
10805
10806     os2*)
10807       hardcode_libdir_flag_spec='-L$libdir'
10808       hardcode_minus_L=yes
10809       allow_undefined_flag=unsupported
10810       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'
10811       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10812       ;;
10813
10814     osf3*)
10815       if test "$GCC" = yes; then
10816         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10817         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'
10818       else
10819         allow_undefined_flag=' -expect_unresolved \*'
10820         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'
10821       fi
10822       archive_cmds_need_lc='no'
10823       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10824       hardcode_libdir_separator=:
10825       ;;
10826
10827     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10828       if test "$GCC" = yes; then
10829         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10830         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'
10831         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10832       else
10833         allow_undefined_flag=' -expect_unresolved \*'
10834         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'
10835         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~
10836         $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'
10837
10838         # Both c and cxx compiler support -rpath directly
10839         hardcode_libdir_flag_spec='-rpath $libdir'
10840       fi
10841       archive_cmds_need_lc='no'
10842       hardcode_libdir_separator=:
10843       ;;
10844
10845     solaris*)
10846       no_undefined_flag=' -z defs'
10847       if test "$GCC" = yes; then
10848         wlarc='${wl}'
10849         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10850         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10851           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10852       else
10853         case `$CC -V 2>&1` in
10854         *"Compilers 5.0"*)
10855           wlarc=''
10856           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10857           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10858           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10859           ;;
10860         *)
10861           wlarc='${wl}'
10862           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10863           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10864           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10865           ;;
10866         esac
10867       fi
10868       hardcode_libdir_flag_spec='-R$libdir'
10869       hardcode_shlibpath_var=no
10870       case $host_os in
10871       solaris2.[0-5] | solaris2.[0-5].*) ;;
10872       *)
10873         # The compiler driver will combine and reorder linker options,
10874         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10875         # but is careful enough not to reorder.
10876         # Supported since Solaris 2.6 (maybe 2.5.1?)
10877         if test "$GCC" = yes; then
10878           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10879         else
10880           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10881         fi
10882         ;;
10883       esac
10884       link_all_deplibs=yes
10885       ;;
10886
10887     sunos4*)
10888       if test "x$host_vendor" = xsequent; then
10889         # Use $CC to link under sequent, because it throws in some extra .o
10890         # files that make .init and .fini sections work.
10891         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10892       else
10893         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10894       fi
10895       hardcode_libdir_flag_spec='-L$libdir'
10896       hardcode_direct=yes
10897       hardcode_minus_L=yes
10898       hardcode_shlibpath_var=no
10899       ;;
10900
10901     sysv4)
10902       case $host_vendor in
10903         sni)
10904           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905           hardcode_direct=yes # is this really true???
10906         ;;
10907         siemens)
10908           ## LD is ld it makes a PLAMLIB
10909           ## CC just makes a GrossModule.
10910           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10911           reload_cmds='$CC -r -o $output$reload_objs'
10912           hardcode_direct=no
10913         ;;
10914         motorola)
10915           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10917         ;;
10918       esac
10919       runpath_var='LD_RUN_PATH'
10920       hardcode_shlibpath_var=no
10921       ;;
10922
10923     sysv4.3*)
10924       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10925       hardcode_shlibpath_var=no
10926       export_dynamic_flag_spec='-Bexport'
10927       ;;
10928
10929     sysv4*MP*)
10930       if test -d /usr/nec; then
10931         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10932         hardcode_shlibpath_var=no
10933         runpath_var=LD_RUN_PATH
10934         hardcode_runpath_var=yes
10935         ld_shlibs=yes
10936       fi
10937       ;;
10938
10939     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10940       no_undefined_flag='${wl}-z,text'
10941       archive_cmds_need_lc=no
10942       hardcode_shlibpath_var=no
10943       runpath_var='LD_RUN_PATH'
10944
10945       if test "$GCC" = yes; then
10946         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948       else
10949         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951       fi
10952       ;;
10953
10954     sysv5* | sco3.2v5* | sco5v6*)
10955       # Note: We can NOT use -z defs as we might desire, because we do not
10956       # link with -lc, and that would cause any symbols used from libc to
10957       # always be unresolved, which means just about no library would
10958       # ever link correctly.  If we're not using GNU ld we use -z text
10959       # though, which does catch some bad symbols but isn't as heavy-handed
10960       # as -z defs.
10961       no_undefined_flag='${wl}-z,text'
10962       allow_undefined_flag='${wl}-z,nodefs'
10963       archive_cmds_need_lc=no
10964       hardcode_shlibpath_var=no
10965       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10966       hardcode_libdir_separator=':'
10967       link_all_deplibs=yes
10968       export_dynamic_flag_spec='${wl}-Bexport'
10969       runpath_var='LD_RUN_PATH'
10970
10971       if test "$GCC" = yes; then
10972         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10973         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10974       else
10975         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10976         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10977       fi
10978       ;;
10979
10980     uts4*)
10981       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982       hardcode_libdir_flag_spec='-L$libdir'
10983       hardcode_shlibpath_var=no
10984       ;;
10985
10986     *)
10987       ld_shlibs=no
10988       ;;
10989     esac
10990
10991     if test x$host_vendor = xsni; then
10992       case $host in
10993       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10994         export_dynamic_flag_spec='${wl}-Blargedynsym'
10995         ;;
10996       esac
10997     fi
10998   fi
10999
11000 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11001 echo "${ECHO_T}$ld_shlibs" >&6; }
11002 test "$ld_shlibs" = no && can_build_shared=no
11003
11004 with_gnu_ld=$with_gnu_ld
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020 #
11021 # Do we need to explicitly link libc?
11022 #
11023 case "x$archive_cmds_need_lc" in
11024 x|xyes)
11025   # Assume -lc should be added
11026   archive_cmds_need_lc=yes
11027
11028   if test "$enable_shared" = yes && test "$GCC" = yes; then
11029     case $archive_cmds in
11030     *'~'*)
11031       # FIXME: we may have to deal with multi-command sequences.
11032       ;;
11033     '$CC '*)
11034       # Test whether the compiler implicitly links with -lc since on some
11035       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11036       # to ld, don't add -lc before -lgcc.
11037       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11038 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11039       $RM conftest*
11040       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11041
11042       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043   (eval $ac_compile) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); } 2>conftest.err; then
11047         soname=conftest
11048         lib=conftest
11049         libobjs=conftest.$ac_objext
11050         deplibs=
11051         wl=$lt_prog_compiler_wl
11052         pic_flag=$lt_prog_compiler_pic
11053         compiler_flags=-v
11054         linker_flags=-v
11055         verstring=
11056         output_objdir=.
11057         libname=conftest
11058         lt_save_allow_undefined_flag=$allow_undefined_flag
11059         allow_undefined_flag=
11060         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11061   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }
11065         then
11066           archive_cmds_need_lc=no
11067         else
11068           archive_cmds_need_lc=yes
11069         fi
11070         allow_undefined_flag=$lt_save_allow_undefined_flag
11071       else
11072         cat conftest.err 1>&5
11073       fi
11074       $RM conftest*
11075       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11076 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11077       ;;
11078     esac
11079   fi
11080   ;;
11081 esac
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
11236
11237
11238
11239   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11240 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11241
11242 if test "$GCC" = yes; then
11243   case $host_os in
11244     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11245     *) lt_awk_arg="/^libraries:/" ;;
11246   esac
11247   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11248   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11249     # if the path contains ";" then we assume it to be the separator
11250     # otherwise default to the standard path separator (i.e. ":") - it is
11251     # assumed that no part of a normal pathname contains ";" but that should
11252     # okay in the real world where ";" in dirpaths is itself problematic.
11253     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11254   else
11255     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11256   fi
11257   # Ok, now we have the path, separated by spaces, we can step through it
11258   # and add multilib dir if necessary.
11259   lt_tmp_lt_search_path_spec=
11260   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11261   for lt_sys_path in $lt_search_path_spec; do
11262     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11263       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11264     else
11265       test -d "$lt_sys_path" && \
11266         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11267     fi
11268   done
11269   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11270 BEGIN {RS=" "; FS="/|\n";} {
11271   lt_foo="";
11272   lt_count=0;
11273   for (lt_i = NF; lt_i > 0; lt_i--) {
11274     if ($lt_i != "" && $lt_i != ".") {
11275       if ($lt_i == "..") {
11276         lt_count++;
11277       } else {
11278         if (lt_count == 0) {
11279           lt_foo="/" $lt_i lt_foo;
11280         } else {
11281           lt_count--;
11282         }
11283       }
11284     }
11285   }
11286   if (lt_foo != "") { lt_freq[lt_foo]++; }
11287   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11288 }'`
11289   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11290 else
11291   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11292 fi
11293 library_names_spec=
11294 libname_spec='lib$name'
11295 soname_spec=
11296 shrext_cmds=".so"
11297 postinstall_cmds=
11298 postuninstall_cmds=
11299 finish_cmds=
11300 finish_eval=
11301 shlibpath_var=
11302 shlibpath_overrides_runpath=unknown
11303 version_type=none
11304 dynamic_linker="$host_os ld.so"
11305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11306 need_lib_prefix=unknown
11307 hardcode_into_libs=no
11308
11309 # when you set need_version to no, make sure it does not cause -set_version
11310 # flags to be left without arguments
11311 need_version=unknown
11312
11313 case $host_os in
11314 aix3*)
11315   version_type=linux
11316   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11317   shlibpath_var=LIBPATH
11318
11319   # AIX 3 has no versioning support, so we append a major version to the name.
11320   soname_spec='${libname}${release}${shared_ext}$major'
11321   ;;
11322
11323 aix[4-9]*)
11324   version_type=linux
11325   need_lib_prefix=no
11326   need_version=no
11327   hardcode_into_libs=yes
11328   if test "$host_cpu" = ia64; then
11329     # AIX 5 supports IA64
11330     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11331     shlibpath_var=LD_LIBRARY_PATH
11332   else
11333     # With GCC up to 2.95.x, collect2 would create an import file
11334     # for dependence libraries.  The import file would start with
11335     # the line `#! .'.  This would cause the generated library to
11336     # depend on `.', always an invalid library.  This was fixed in
11337     # development snapshots of GCC prior to 3.0.
11338     case $host_os in
11339       aix4 | aix4.[01] | aix4.[01].*)
11340       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11341            echo ' yes '
11342            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11343         :
11344       else
11345         can_build_shared=no
11346       fi
11347       ;;
11348     esac
11349     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11350     # soname into executable. Probably we can add versioning support to
11351     # collect2, so additional links can be useful in future.
11352     if test "$aix_use_runtimelinking" = yes; then
11353       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11354       # instead of lib<name>.a to let people know that these are not
11355       # typical AIX shared libraries.
11356       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357     else
11358       # We preserve .a as extension for shared libraries through AIX4.2
11359       # and later when we are not doing run time linking.
11360       library_names_spec='${libname}${release}.a $libname.a'
11361       soname_spec='${libname}${release}${shared_ext}$major'
11362     fi
11363     shlibpath_var=LIBPATH
11364   fi
11365   ;;
11366
11367 amigaos*)
11368   case $host_cpu in
11369   powerpc)
11370     # Since July 2007 AmigaOS4 officially supports .so libraries.
11371     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11373     ;;
11374   m68k)
11375     library_names_spec='$libname.ixlibrary $libname.a'
11376     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11377     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'
11378     ;;
11379   esac
11380   ;;
11381
11382 beos*)
11383   library_names_spec='${libname}${shared_ext}'
11384   dynamic_linker="$host_os ld.so"
11385   shlibpath_var=LIBRARY_PATH
11386   ;;
11387
11388 bsdi[45]*)
11389   version_type=linux
11390   need_version=no
11391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392   soname_spec='${libname}${release}${shared_ext}$major'
11393   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11394   shlibpath_var=LD_LIBRARY_PATH
11395   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11396   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11397   # the default ld.so.conf also contains /usr/contrib/lib and
11398   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11399   # libtool to hard-code these into programs
11400   ;;
11401
11402 cygwin* | mingw* | pw32* | cegcc*)
11403   version_type=windows
11404   shrext_cmds=".dll"
11405   need_version=no
11406   need_lib_prefix=no
11407
11408   case $GCC,$host_os in
11409   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11410     library_names_spec='$libname.dll.a'
11411     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11412     postinstall_cmds='base_file=`basename \${file}`~
11413       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11414       dldir=$destdir/`dirname \$dlpath`~
11415       test -d \$dldir || mkdir -p \$dldir~
11416       $install_prog $dir/$dlname \$dldir/$dlname~
11417       chmod a+x \$dldir/$dlname~
11418       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11419         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11420       fi'
11421     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11422       dlpath=$dir/\$dldll~
11423        $RM \$dlpath'
11424     shlibpath_overrides_runpath=yes
11425
11426     case $host_os in
11427     cygwin*)
11428       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11429       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11430       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11431       ;;
11432     mingw* | cegcc*)
11433       # MinGW DLLs use traditional 'lib' prefix
11434       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11435       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11436       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11437         # It is most probably a Windows format PATH printed by
11438         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11439         # path with ; separators, and with drive letters. We can handle the
11440         # drive letters (cygwin fileutils understands them), so leave them,
11441         # especially as we might pass files found there to a mingw objdump,
11442         # which wouldn't understand a cygwinified path. Ahh.
11443         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11444       else
11445         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11446       fi
11447       ;;
11448     pw32*)
11449       # pw32 DLLs use 'pw' prefix rather than 'lib'
11450       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11451       ;;
11452     esac
11453     ;;
11454
11455   *)
11456     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11457     ;;
11458   esac
11459   dynamic_linker='Win32 ld.exe'
11460   # FIXME: first we should search . and the directory the executable is in
11461   shlibpath_var=PATH
11462   ;;
11463
11464 darwin* | rhapsody*)
11465   dynamic_linker="$host_os dyld"
11466   version_type=darwin
11467   need_lib_prefix=no
11468   need_version=no
11469   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11470   soname_spec='${libname}${release}${major}$shared_ext'
11471   shlibpath_overrides_runpath=yes
11472   shlibpath_var=DYLD_LIBRARY_PATH
11473   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11474
11475   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11476   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11477   ;;
11478
11479 dgux*)
11480   version_type=linux
11481   need_lib_prefix=no
11482   need_version=no
11483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11484   soname_spec='${libname}${release}${shared_ext}$major'
11485   shlibpath_var=LD_LIBRARY_PATH
11486   ;;
11487
11488 freebsd1*)
11489   dynamic_linker=no
11490   ;;
11491
11492 freebsd* | dragonfly*)
11493   # DragonFly does not have aout.  When/if they implement a new
11494   # versioning mechanism, adjust this.
11495   if test -x /usr/bin/objformat; then
11496     objformat=`/usr/bin/objformat`
11497   else
11498     case $host_os in
11499     freebsd[123]*) objformat=aout ;;
11500     *) objformat=elf ;;
11501     esac
11502   fi
11503   version_type=freebsd-$objformat
11504   case $version_type in
11505     freebsd-elf*)
11506       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11507       need_version=no
11508       need_lib_prefix=no
11509       ;;
11510     freebsd-*)
11511       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11512       need_version=yes
11513       ;;
11514   esac
11515   shlibpath_var=LD_LIBRARY_PATH
11516   case $host_os in
11517   freebsd2*)
11518     shlibpath_overrides_runpath=yes
11519     ;;
11520   freebsd3.[01]* | freebsdelf3.[01]*)
11521     shlibpath_overrides_runpath=yes
11522     hardcode_into_libs=yes
11523     ;;
11524   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11525   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11526     shlibpath_overrides_runpath=no
11527     hardcode_into_libs=yes
11528     ;;
11529   *) # from 4.6 on, and DragonFly
11530     shlibpath_overrides_runpath=yes
11531     hardcode_into_libs=yes
11532     ;;
11533   esac
11534   ;;
11535
11536 gnu*)
11537   version_type=linux
11538   need_lib_prefix=no
11539   need_version=no
11540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11541   soname_spec='${libname}${release}${shared_ext}$major'
11542   shlibpath_var=LD_LIBRARY_PATH
11543   hardcode_into_libs=yes
11544   ;;
11545
11546 hpux9* | hpux10* | hpux11*)
11547   # Give a soname corresponding to the major version so that dld.sl refuses to
11548   # link against other versions.
11549   version_type=sunos
11550   need_lib_prefix=no
11551   need_version=no
11552   case $host_cpu in
11553   ia64*)
11554     shrext_cmds='.so'
11555     hardcode_into_libs=yes
11556     dynamic_linker="$host_os dld.so"
11557     shlibpath_var=LD_LIBRARY_PATH
11558     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560     soname_spec='${libname}${release}${shared_ext}$major'
11561     if test "X$HPUX_IA64_MODE" = X32; then
11562       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11563     else
11564       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11565     fi
11566     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11567     ;;
11568   hppa*64*)
11569     shrext_cmds='.sl'
11570     hardcode_into_libs=yes
11571     dynamic_linker="$host_os dld.sl"
11572     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11573     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575     soname_spec='${libname}${release}${shared_ext}$major'
11576     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11577     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11578     ;;
11579   *)
11580     shrext_cmds='.sl'
11581     dynamic_linker="$host_os dld.sl"
11582     shlibpath_var=SHLIB_PATH
11583     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11584     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585     soname_spec='${libname}${release}${shared_ext}$major'
11586     ;;
11587   esac
11588   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11589   postinstall_cmds='chmod 555 $lib'
11590   ;;
11591
11592 interix[3-9]*)
11593   version_type=linux
11594   need_lib_prefix=no
11595   need_version=no
11596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11597   soname_spec='${libname}${release}${shared_ext}$major'
11598   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11599   shlibpath_var=LD_LIBRARY_PATH
11600   shlibpath_overrides_runpath=no
11601   hardcode_into_libs=yes
11602   ;;
11603
11604 irix5* | irix6* | nonstopux*)
11605   case $host_os in
11606     nonstopux*) version_type=nonstopux ;;
11607     *)
11608         if test "$lt_cv_prog_gnu_ld" = yes; then
11609                 version_type=linux
11610         else
11611                 version_type=irix
11612         fi ;;
11613   esac
11614   need_lib_prefix=no
11615   need_version=no
11616   soname_spec='${libname}${release}${shared_ext}$major'
11617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11618   case $host_os in
11619   irix5* | nonstopux*)
11620     libsuff= shlibsuff=
11621     ;;
11622   *)
11623     case $LD in # libtool.m4 will add one of these switches to LD
11624     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11625       libsuff= shlibsuff= libmagic=32-bit;;
11626     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11627       libsuff=32 shlibsuff=N32 libmagic=N32;;
11628     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11629       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11630     *) libsuff= shlibsuff= libmagic=never-match;;
11631     esac
11632     ;;
11633   esac
11634   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11635   shlibpath_overrides_runpath=no
11636   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11637   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11638   hardcode_into_libs=yes
11639   ;;
11640
11641 # No shared lib support for Linux oldld, aout, or coff.
11642 linux*oldld* | linux*aout* | linux*coff*)
11643   dynamic_linker=no
11644   ;;
11645
11646 # This must be Linux ELF.
11647 linux* | k*bsd*-gnu)
11648   version_type=linux
11649   need_lib_prefix=no
11650   need_version=no
11651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652   soname_spec='${libname}${release}${shared_ext}$major'
11653   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11654   shlibpath_var=LD_LIBRARY_PATH
11655   shlibpath_overrides_runpath=no
11656   # Some binutils ld are patched to set DT_RUNPATH
11657   save_LDFLAGS=$LDFLAGS
11658   save_libdir=$libdir
11659   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11660        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11661   cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h.  */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h.  */
11667
11668 int
11669 main ()
11670 {
11671
11672   ;
11673   return 0;
11674 }
11675 _ACEOF
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (ac_try="$ac_link"
11678 case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_link") 2>conftest.er1
11684   ac_status=$?
11685   grep -v '^ *+' conftest.er1 >conftest.err
11686   rm -f conftest.er1
11687   cat conftest.err >&5
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); } && {
11690          test -z "$ac_c_werror_flag" ||
11691          test ! -s conftest.err
11692        } && test -s conftest$ac_exeext &&
11693        $as_test_x conftest$ac_exeext; then
11694   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11695   shlibpath_overrides_runpath=yes
11696 fi
11697
11698 else
11699   echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702
11703 fi
11704
11705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11706       conftest$ac_exeext conftest.$ac_ext
11707   LDFLAGS=$save_LDFLAGS
11708   libdir=$save_libdir
11709
11710   # This implies no fast_install, which is unacceptable.
11711   # Some rework will be needed to allow for fast_install
11712   # before this can be enabled.
11713   hardcode_into_libs=yes
11714
11715   # Append ld.so.conf contents to the search path
11716   if test -f /etc/ld.so.conf; then
11717     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' ' '`
11718     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11719   fi
11720
11721   # We used to test for /lib/ld.so.1 and disable shared libraries on
11722   # powerpc, because MkLinux only supported shared libraries with the
11723   # GNU dynamic linker.  Since this was broken with cross compilers,
11724   # most powerpc-linux boxes support dynamic linking these days and
11725   # people can always --disable-shared, the test was removed, and we
11726   # assume the GNU/Linux dynamic linker is in use.
11727   dynamic_linker='GNU/Linux ld.so'
11728   ;;
11729
11730 netbsd*)
11731   version_type=sunos
11732   need_lib_prefix=no
11733   need_version=no
11734   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11736     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11737     dynamic_linker='NetBSD (a.out) ld.so'
11738   else
11739     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11740     soname_spec='${libname}${release}${shared_ext}$major'
11741     dynamic_linker='NetBSD ld.elf_so'
11742   fi
11743   shlibpath_var=LD_LIBRARY_PATH
11744   shlibpath_overrides_runpath=yes
11745   hardcode_into_libs=yes
11746   ;;
11747
11748 newsos6)
11749   version_type=linux
11750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751   shlibpath_var=LD_LIBRARY_PATH
11752   shlibpath_overrides_runpath=yes
11753   ;;
11754
11755 *nto* | *qnx*)
11756   version_type=qnx
11757   need_lib_prefix=no
11758   need_version=no
11759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760   soname_spec='${libname}${release}${shared_ext}$major'
11761   shlibpath_var=LD_LIBRARY_PATH
11762   shlibpath_overrides_runpath=no
11763   hardcode_into_libs=yes
11764   dynamic_linker='ldqnx.so'
11765   ;;
11766
11767 openbsd*)
11768   version_type=sunos
11769   sys_lib_dlsearch_path_spec="/usr/lib"
11770   need_lib_prefix=no
11771   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11772   case $host_os in
11773     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11774     *)                          need_version=no  ;;
11775   esac
11776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11777   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11778   shlibpath_var=LD_LIBRARY_PATH
11779   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11780     case $host_os in
11781       openbsd2.[89] | openbsd2.[89].*)
11782         shlibpath_overrides_runpath=no
11783         ;;
11784       *)
11785         shlibpath_overrides_runpath=yes
11786         ;;
11787       esac
11788   else
11789     shlibpath_overrides_runpath=yes
11790   fi
11791   ;;
11792
11793 os2*)
11794   libname_spec='$name'
11795   shrext_cmds=".dll"
11796   need_lib_prefix=no
11797   library_names_spec='$libname${shared_ext} $libname.a'
11798   dynamic_linker='OS/2 ld.exe'
11799   shlibpath_var=LIBPATH
11800   ;;
11801
11802 osf3* | osf4* | osf5*)
11803   version_type=osf
11804   need_lib_prefix=no
11805   need_version=no
11806   soname_spec='${libname}${release}${shared_ext}$major'
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808   shlibpath_var=LD_LIBRARY_PATH
11809   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11810   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11811   ;;
11812
11813 rdos*)
11814   dynamic_linker=no
11815   ;;
11816
11817 solaris*)
11818   version_type=linux
11819   need_lib_prefix=no
11820   need_version=no
11821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822   soname_spec='${libname}${release}${shared_ext}$major'
11823   shlibpath_var=LD_LIBRARY_PATH
11824   shlibpath_overrides_runpath=yes
11825   hardcode_into_libs=yes
11826   # ldd complains unless libraries are executable
11827   postinstall_cmds='chmod +x $lib'
11828   ;;
11829
11830 sunos4*)
11831   version_type=sunos
11832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11833   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11834   shlibpath_var=LD_LIBRARY_PATH
11835   shlibpath_overrides_runpath=yes
11836   if test "$with_gnu_ld" = yes; then
11837     need_lib_prefix=no
11838   fi
11839   need_version=yes
11840   ;;
11841
11842 sysv4 | sysv4.3*)
11843   version_type=linux
11844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845   soname_spec='${libname}${release}${shared_ext}$major'
11846   shlibpath_var=LD_LIBRARY_PATH
11847   case $host_vendor in
11848     sni)
11849       shlibpath_overrides_runpath=no
11850       need_lib_prefix=no
11851       runpath_var=LD_RUN_PATH
11852       ;;
11853     siemens)
11854       need_lib_prefix=no
11855       ;;
11856     motorola)
11857       need_lib_prefix=no
11858       need_version=no
11859       shlibpath_overrides_runpath=no
11860       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11861       ;;
11862   esac
11863   ;;
11864
11865 sysv4*MP*)
11866   if test -d /usr/nec ;then
11867     version_type=linux
11868     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11869     soname_spec='$libname${shared_ext}.$major'
11870     shlibpath_var=LD_LIBRARY_PATH
11871   fi
11872   ;;
11873
11874 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11875   version_type=freebsd-elf
11876   need_lib_prefix=no
11877   need_version=no
11878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11879   soname_spec='${libname}${release}${shared_ext}$major'
11880   shlibpath_var=LD_LIBRARY_PATH
11881   shlibpath_overrides_runpath=yes
11882   hardcode_into_libs=yes
11883   if test "$with_gnu_ld" = yes; then
11884     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11885   else
11886     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11887     case $host_os in
11888       sco3.2v5*)
11889         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11890         ;;
11891     esac
11892   fi
11893   sys_lib_dlsearch_path_spec='/usr/lib'
11894   ;;
11895
11896 tpf*)
11897   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11898   version_type=linux
11899   need_lib_prefix=no
11900   need_version=no
11901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11902   shlibpath_var=LD_LIBRARY_PATH
11903   shlibpath_overrides_runpath=no
11904   hardcode_into_libs=yes
11905   ;;
11906
11907 uts4*)
11908   version_type=linux
11909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11910   soname_spec='${libname}${release}${shared_ext}$major'
11911   shlibpath_var=LD_LIBRARY_PATH
11912   ;;
11913
11914 *)
11915   dynamic_linker=no
11916   ;;
11917 esac
11918 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11919 echo "${ECHO_T}$dynamic_linker" >&6; }
11920 test "$dynamic_linker" = no && can_build_shared=no
11921
11922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11923 if test "$GCC" = yes; then
11924   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11925 fi
11926
11927 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11928   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11929 fi
11930 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11931   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11932 fi
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
12017
12018
12019
12020   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12021 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12022 hardcode_action=
12023 if test -n "$hardcode_libdir_flag_spec" ||
12024    test -n "$runpath_var" ||
12025    test "X$hardcode_automatic" = "Xyes" ; then
12026
12027   # We can hardcode non-existent directories.
12028   if test "$hardcode_direct" != no &&
12029      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12030      # have to relink, otherwise we might link with an installed library
12031      # when we should be linking with a yet-to-be-installed one
12032      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12033      test "$hardcode_minus_L" != no; then
12034     # Linking always hardcodes the temporary library directory.
12035     hardcode_action=relink
12036   else
12037     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12038     hardcode_action=immediate
12039   fi
12040 else
12041   # We cannot hardcode anything, or else we can only hardcode existing
12042   # directories.
12043   hardcode_action=unsupported
12044 fi
12045 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12046 echo "${ECHO_T}$hardcode_action" >&6; }
12047
12048 if test "$hardcode_action" = relink ||
12049    test "$inherit_rpath" = yes; then
12050   # Fast installation is not supported
12051   enable_fast_install=no
12052 elif test "$shlibpath_overrides_runpath" = yes ||
12053      test "$enable_shared" = no; then
12054   # Fast installation is not necessary
12055   enable_fast_install=needless
12056 fi
12057
12058
12059
12060
12061
12062
12063   if test "x$enable_dlopen" != xyes; then
12064   enable_dlopen=unknown
12065   enable_dlopen_self=unknown
12066   enable_dlopen_self_static=unknown
12067 else
12068   lt_cv_dlopen=no
12069   lt_cv_dlopen_libs=
12070
12071   case $host_os in
12072   beos*)
12073     lt_cv_dlopen="load_add_on"
12074     lt_cv_dlopen_libs=
12075     lt_cv_dlopen_self=yes
12076     ;;
12077
12078   mingw* | pw32* | cegcc*)
12079     lt_cv_dlopen="LoadLibrary"
12080     lt_cv_dlopen_libs=
12081     ;;
12082
12083   cygwin*)
12084     lt_cv_dlopen="dlopen"
12085     lt_cv_dlopen_libs=
12086     ;;
12087
12088   darwin*)
12089   # if libdl is installed we need to link against it
12090     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12091 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12092 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12093   echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095   ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-ldl  $LIBS"
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h.  */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h.  */
12103
12104 /* Override any GCC internal prototype to avoid an error.
12105    Use char because int might match the return type of a GCC
12106    builtin and then its argument prototype would still apply.  */
12107 #ifdef __cplusplus
12108 extern "C"
12109 #endif
12110 char dlopen ();
12111 int
12112 main ()
12113 {
12114 return dlopen ();
12115   ;
12116   return 0;
12117 }
12118 _ACEOF
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (ac_try="$ac_link"
12121 case "(($ac_try" in
12122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123   *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126   (eval "$ac_link") 2>conftest.er1
12127   ac_status=$?
12128   grep -v '^ *+' conftest.er1 >conftest.err
12129   rm -f conftest.er1
12130   cat conftest.err >&5
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); } && {
12133          test -z "$ac_c_werror_flag" ||
12134          test ! -s conftest.err
12135        } && test -s conftest$ac_exeext &&
12136        $as_test_x conftest$ac_exeext; then
12137   ac_cv_lib_dl_dlopen=yes
12138 else
12139   echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142         ac_cv_lib_dl_dlopen=no
12143 fi
12144
12145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12146       conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12150 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12151 if test $ac_cv_lib_dl_dlopen = yes; then
12152   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12153 else
12154
12155     lt_cv_dlopen="dyld"
12156     lt_cv_dlopen_libs=
12157     lt_cv_dlopen_self=yes
12158
12159 fi
12160
12161     ;;
12162
12163   *)
12164     { echo "$as_me:$LINENO: checking for shl_load" >&5
12165 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12166 if test "${ac_cv_func_shl_load+set}" = set; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12177 #define shl_load innocuous_shl_load
12178
12179 /* System header to define __stub macros and hopefully few prototypes,
12180     which can conflict with char shl_load (); below.
12181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12182     <limits.h> exists even on freestanding compilers.  */
12183
12184 #ifdef __STDC__
12185 # include <limits.h>
12186 #else
12187 # include <assert.h>
12188 #endif
12189
12190 #undef shl_load
12191
12192 /* Override any GCC internal prototype to avoid an error.
12193    Use char because int might match the return type of a GCC
12194    builtin and then its argument prototype would still apply.  */
12195 #ifdef __cplusplus
12196 extern "C"
12197 #endif
12198 char shl_load ();
12199 /* The GNU C library defines this for functions which it implements
12200     to always fail with ENOSYS.  Some functions are actually named
12201     something starting with __ and the normal name is an alias.  */
12202 #if defined __stub_shl_load || defined __stub___shl_load
12203 choke me
12204 #endif
12205
12206 int
12207 main ()
12208 {
12209 return shl_load ();
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218   *) ac_try_echo=$ac_try;;
12219 esac
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221   (eval "$ac_link") 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } && {
12228          test -z "$ac_c_werror_flag" ||
12229          test ! -s conftest.err
12230        } && test -s conftest$ac_exeext &&
12231        $as_test_x conftest$ac_exeext; then
12232   ac_cv_func_shl_load=yes
12233 else
12234   echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12236
12237         ac_cv_func_shl_load=no
12238 fi
12239
12240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12241       conftest$ac_exeext conftest.$ac_ext
12242 fi
12243 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12244 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12245 if test $ac_cv_func_shl_load = yes; then
12246   lt_cv_dlopen="shl_load"
12247 else
12248   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12249 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12250 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12251   echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253   ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-ldld  $LIBS"
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261
12262 /* Override any GCC internal prototype to avoid an error.
12263    Use char because int might match the return type of a GCC
12264    builtin and then its argument prototype would still apply.  */
12265 #ifdef __cplusplus
12266 extern "C"
12267 #endif
12268 char shl_load ();
12269 int
12270 main ()
12271 {
12272 return shl_load ();
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (ac_try="$ac_link"
12279 case "(($ac_try" in
12280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281   *) ac_try_echo=$ac_try;;
12282 esac
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284   (eval "$ac_link") 2>conftest.er1
12285   ac_status=$?
12286   grep -v '^ *+' conftest.er1 >conftest.err
12287   rm -f conftest.er1
12288   cat conftest.err >&5
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); } && {
12291          test -z "$ac_c_werror_flag" ||
12292          test ! -s conftest.err
12293        } && test -s conftest$ac_exeext &&
12294        $as_test_x conftest$ac_exeext; then
12295   ac_cv_lib_dld_shl_load=yes
12296 else
12297   echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12299
12300         ac_cv_lib_dld_shl_load=no
12301 fi
12302
12303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12304       conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12306 fi
12307 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12308 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12309 if test $ac_cv_lib_dld_shl_load = yes; then
12310   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12311 else
12312   { echo "$as_me:$LINENO: checking for dlopen" >&5
12313 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12314 if test "${ac_cv_func_dlopen+set}" = set; then
12315   echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317   cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h.  */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h.  */
12323 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12325 #define dlopen innocuous_dlopen
12326
12327 /* System header to define __stub macros and hopefully few prototypes,
12328     which can conflict with char dlopen (); below.
12329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12330     <limits.h> exists even on freestanding compilers.  */
12331
12332 #ifdef __STDC__
12333 # include <limits.h>
12334 #else
12335 # include <assert.h>
12336 #endif
12337
12338 #undef dlopen
12339
12340 /* Override any GCC internal prototype to avoid an error.
12341    Use char because int might match the return type of a GCC
12342    builtin and then its argument prototype would still apply.  */
12343 #ifdef __cplusplus
12344 extern "C"
12345 #endif
12346 char dlopen ();
12347 /* The GNU C library defines this for functions which it implements
12348     to always fail with ENOSYS.  Some functions are actually named
12349     something starting with __ and the normal name is an alias.  */
12350 #if defined __stub_dlopen || defined __stub___dlopen
12351 choke me
12352 #endif
12353
12354 int
12355 main ()
12356 {
12357 return dlopen ();
12358   ;
12359   return 0;
12360 }
12361 _ACEOF
12362 rm -f conftest.$ac_objext conftest$ac_exeext
12363 if { (ac_try="$ac_link"
12364 case "(($ac_try" in
12365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366   *) ac_try_echo=$ac_try;;
12367 esac
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369   (eval "$ac_link") 2>conftest.er1
12370   ac_status=$?
12371   grep -v '^ *+' conftest.er1 >conftest.err
12372   rm -f conftest.er1
12373   cat conftest.err >&5
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); } && {
12376          test -z "$ac_c_werror_flag" ||
12377          test ! -s conftest.err
12378        } && test -s conftest$ac_exeext &&
12379        $as_test_x conftest$ac_exeext; then
12380   ac_cv_func_dlopen=yes
12381 else
12382   echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12384
12385         ac_cv_func_dlopen=no
12386 fi
12387
12388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12389       conftest$ac_exeext conftest.$ac_ext
12390 fi
12391 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12392 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12393 if test $ac_cv_func_dlopen = yes; then
12394   lt_cv_dlopen="dlopen"
12395 else
12396   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12397 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12398 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12399   echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401   ac_check_lib_save_LIBS=$LIBS
12402 LIBS="-ldl  $LIBS"
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h.  */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h.  */
12409
12410 /* Override any GCC internal prototype to avoid an error.
12411    Use char because int might match the return type of a GCC
12412    builtin and then its argument prototype would still apply.  */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 char dlopen ();
12417 int
12418 main ()
12419 {
12420 return dlopen ();
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (ac_try="$ac_link"
12427 case "(($ac_try" in
12428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429   *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432   (eval "$ac_link") 2>conftest.er1
12433   ac_status=$?
12434   grep -v '^ *+' conftest.er1 >conftest.err
12435   rm -f conftest.er1
12436   cat conftest.err >&5
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); } && {
12439          test -z "$ac_c_werror_flag" ||
12440          test ! -s conftest.err
12441        } && test -s conftest$ac_exeext &&
12442        $as_test_x conftest$ac_exeext; then
12443   ac_cv_lib_dl_dlopen=yes
12444 else
12445   echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448         ac_cv_lib_dl_dlopen=no
12449 fi
12450
12451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12452       conftest$ac_exeext conftest.$ac_ext
12453 LIBS=$ac_check_lib_save_LIBS
12454 fi
12455 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12456 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12457 if test $ac_cv_lib_dl_dlopen = yes; then
12458   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12459 else
12460   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12461 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12462 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12463   echo $ECHO_N "(cached) $ECHO_C" >&6
12464 else
12465   ac_check_lib_save_LIBS=$LIBS
12466 LIBS="-lsvld  $LIBS"
12467 cat >conftest.$ac_ext <<_ACEOF
12468 /* confdefs.h.  */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h.  */
12473
12474 /* Override any GCC internal prototype to avoid an error.
12475    Use char because int might match the return type of a GCC
12476    builtin and then its argument prototype would still apply.  */
12477 #ifdef __cplusplus
12478 extern "C"
12479 #endif
12480 char dlopen ();
12481 int
12482 main ()
12483 {
12484 return dlopen ();
12485   ;
12486   return 0;
12487 }
12488 _ACEOF
12489 rm -f conftest.$ac_objext conftest$ac_exeext
12490 if { (ac_try="$ac_link"
12491 case "(($ac_try" in
12492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493   *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496   (eval "$ac_link") 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } && {
12503          test -z "$ac_c_werror_flag" ||
12504          test ! -s conftest.err
12505        } && test -s conftest$ac_exeext &&
12506        $as_test_x conftest$ac_exeext; then
12507   ac_cv_lib_svld_dlopen=yes
12508 else
12509   echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12511
12512         ac_cv_lib_svld_dlopen=no
12513 fi
12514
12515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12516       conftest$ac_exeext conftest.$ac_ext
12517 LIBS=$ac_check_lib_save_LIBS
12518 fi
12519 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12520 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12521 if test $ac_cv_lib_svld_dlopen = yes; then
12522   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12523 else
12524   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12525 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12526 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12527   echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529   ac_check_lib_save_LIBS=$LIBS
12530 LIBS="-ldld  $LIBS"
12531 cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h.  */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h.  */
12537
12538 /* Override any GCC internal prototype to avoid an error.
12539    Use char because int might match the return type of a GCC
12540    builtin and then its argument prototype would still apply.  */
12541 #ifdef __cplusplus
12542 extern "C"
12543 #endif
12544 char dld_link ();
12545 int
12546 main ()
12547 {
12548 return dld_link ();
12549   ;
12550   return 0;
12551 }
12552 _ACEOF
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (ac_try="$ac_link"
12555 case "(($ac_try" in
12556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557   *) ac_try_echo=$ac_try;;
12558 esac
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560   (eval "$ac_link") 2>conftest.er1
12561   ac_status=$?
12562   grep -v '^ *+' conftest.er1 >conftest.err
12563   rm -f conftest.er1
12564   cat conftest.err >&5
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); } && {
12567          test -z "$ac_c_werror_flag" ||
12568          test ! -s conftest.err
12569        } && test -s conftest$ac_exeext &&
12570        $as_test_x conftest$ac_exeext; then
12571   ac_cv_lib_dld_dld_link=yes
12572 else
12573   echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12575
12576         ac_cv_lib_dld_dld_link=no
12577 fi
12578
12579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12580       conftest$ac_exeext conftest.$ac_ext
12581 LIBS=$ac_check_lib_save_LIBS
12582 fi
12583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12584 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12585 if test $ac_cv_lib_dld_dld_link = yes; then
12586   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12587 fi
12588
12589
12590 fi
12591
12592
12593 fi
12594
12595
12596 fi
12597
12598
12599 fi
12600
12601
12602 fi
12603
12604     ;;
12605   esac
12606
12607   if test "x$lt_cv_dlopen" != xno; then
12608     enable_dlopen=yes
12609   else
12610     enable_dlopen=no
12611   fi
12612
12613   case $lt_cv_dlopen in
12614   dlopen)
12615     save_CPPFLAGS="$CPPFLAGS"
12616     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12617
12618     save_LDFLAGS="$LDFLAGS"
12619     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12620
12621     save_LIBS="$LIBS"
12622     LIBS="$lt_cv_dlopen_libs $LIBS"
12623
12624     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12625 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12626 if test "${lt_cv_dlopen_self+set}" = set; then
12627   echo $ECHO_N "(cached) $ECHO_C" >&6
12628 else
12629           if test "$cross_compiling" = yes; then :
12630   lt_cv_dlopen_self=cross
12631 else
12632   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12633   lt_status=$lt_dlunknown
12634   cat > conftest.$ac_ext <<_LT_EOF
12635 #line 12635 "configure"
12636 #include "confdefs.h"
12637
12638 #if HAVE_DLFCN_H
12639 #include <dlfcn.h>
12640 #endif
12641
12642 #include <stdio.h>
12643
12644 #ifdef RTLD_GLOBAL
12645 #  define LT_DLGLOBAL           RTLD_GLOBAL
12646 #else
12647 #  ifdef DL_GLOBAL
12648 #    define LT_DLGLOBAL         DL_GLOBAL
12649 #  else
12650 #    define LT_DLGLOBAL         0
12651 #  endif
12652 #endif
12653
12654 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12655    find out it does not work in some platform. */
12656 #ifndef LT_DLLAZY_OR_NOW
12657 #  ifdef RTLD_LAZY
12658 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12659 #  else
12660 #    ifdef DL_LAZY
12661 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12662 #    else
12663 #      ifdef RTLD_NOW
12664 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12665 #      else
12666 #        ifdef DL_NOW
12667 #          define LT_DLLAZY_OR_NOW      DL_NOW
12668 #        else
12669 #          define LT_DLLAZY_OR_NOW      0
12670 #        endif
12671 #      endif
12672 #    endif
12673 #  endif
12674 #endif
12675
12676 void fnord() { int i=42;}
12677 int main ()
12678 {
12679   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12680   int status = $lt_dlunknown;
12681
12682   if (self)
12683     {
12684       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12685       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12686       /* dlclose (self); */
12687     }
12688   else
12689     puts (dlerror ());
12690
12691   return status;
12692 }
12693 _LT_EOF
12694   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695   (eval $ac_link) 2>&5
12696   ac_status=$?
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12699     (./conftest; exit; ) >&5 2>/dev/null
12700     lt_status=$?
12701     case x$lt_status in
12702       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12703       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12704       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12705     esac
12706   else :
12707     # compilation failed
12708     lt_cv_dlopen_self=no
12709   fi
12710 fi
12711 rm -fr conftest*
12712
12713
12714 fi
12715 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12716 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12717
12718     if test "x$lt_cv_dlopen_self" = xyes; then
12719       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12720       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12721 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12722 if test "${lt_cv_dlopen_self_static+set}" = set; then
12723   echo $ECHO_N "(cached) $ECHO_C" >&6
12724 else
12725           if test "$cross_compiling" = yes; then :
12726   lt_cv_dlopen_self_static=cross
12727 else
12728   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12729   lt_status=$lt_dlunknown
12730   cat > conftest.$ac_ext <<_LT_EOF
12731 #line 12731 "configure"
12732 #include "confdefs.h"
12733
12734 #if HAVE_DLFCN_H
12735 #include <dlfcn.h>
12736 #endif
12737
12738 #include <stdio.h>
12739
12740 #ifdef RTLD_GLOBAL
12741 #  define LT_DLGLOBAL           RTLD_GLOBAL
12742 #else
12743 #  ifdef DL_GLOBAL
12744 #    define LT_DLGLOBAL         DL_GLOBAL
12745 #  else
12746 #    define LT_DLGLOBAL         0
12747 #  endif
12748 #endif
12749
12750 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12751    find out it does not work in some platform. */
12752 #ifndef LT_DLLAZY_OR_NOW
12753 #  ifdef RTLD_LAZY
12754 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12755 #  else
12756 #    ifdef DL_LAZY
12757 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12758 #    else
12759 #      ifdef RTLD_NOW
12760 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12761 #      else
12762 #        ifdef DL_NOW
12763 #          define LT_DLLAZY_OR_NOW      DL_NOW
12764 #        else
12765 #          define LT_DLLAZY_OR_NOW      0
12766 #        endif
12767 #      endif
12768 #    endif
12769 #  endif
12770 #endif
12771
12772 void fnord() { int i=42;}
12773 int main ()
12774 {
12775   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12776   int status = $lt_dlunknown;
12777
12778   if (self)
12779     {
12780       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12781       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12782       /* dlclose (self); */
12783     }
12784   else
12785     puts (dlerror ());
12786
12787   return status;
12788 }
12789 _LT_EOF
12790   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12791   (eval $ac_link) 2>&5
12792   ac_status=$?
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12795     (./conftest; exit; ) >&5 2>/dev/null
12796     lt_status=$?
12797     case x$lt_status in
12798       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12799       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12800       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12801     esac
12802   else :
12803     # compilation failed
12804     lt_cv_dlopen_self_static=no
12805   fi
12806 fi
12807 rm -fr conftest*
12808
12809
12810 fi
12811 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12812 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12813     fi
12814
12815     CPPFLAGS="$save_CPPFLAGS"
12816     LDFLAGS="$save_LDFLAGS"
12817     LIBS="$save_LIBS"
12818     ;;
12819   esac
12820
12821   case $lt_cv_dlopen_self in
12822   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12823   *) enable_dlopen_self=unknown ;;
12824   esac
12825
12826   case $lt_cv_dlopen_self_static in
12827   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12828   *) enable_dlopen_self_static=unknown ;;
12829   esac
12830 fi
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848 striplib=
12849 old_striplib=
12850 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12851 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12852 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12853   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12854   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12855   { echo "$as_me:$LINENO: result: yes" >&5
12856 echo "${ECHO_T}yes" >&6; }
12857 else
12858 # FIXME - insert some real tests, host_os isn't really good enough
12859   case $host_os in
12860   darwin*)
12861     if test -n "$STRIP" ; then
12862       striplib="$STRIP -x"
12863       old_striplib="$STRIP -S"
12864       { echo "$as_me:$LINENO: result: yes" >&5
12865 echo "${ECHO_T}yes" >&6; }
12866     else
12867       { echo "$as_me:$LINENO: result: no" >&5
12868 echo "${ECHO_T}no" >&6; }
12869     fi
12870     ;;
12871   *)
12872     { echo "$as_me:$LINENO: result: no" >&5
12873 echo "${ECHO_T}no" >&6; }
12874     ;;
12875   esac
12876 fi
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889   # Report which library types will actually be built
12890   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12891 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12892   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12893 echo "${ECHO_T}$can_build_shared" >&6; }
12894
12895   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12896 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12897   test "$can_build_shared" = "no" && enable_shared=no
12898
12899   # On AIX, shared libraries and static libraries use the same namespace, and
12900   # are all built from PIC.
12901   case $host_os in
12902   aix3*)
12903     test "$enable_shared" = yes && enable_static=no
12904     if test -n "$RANLIB"; then
12905       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12906       postinstall_cmds='$RANLIB $lib'
12907     fi
12908     ;;
12909
12910   aix[4-9]*)
12911     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12912       test "$enable_shared" = yes && enable_static=no
12913     fi
12914     ;;
12915   esac
12916   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12917 echo "${ECHO_T}$enable_shared" >&6; }
12918
12919   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12920 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12921   # Make sure either enable_shared or enable_static is yes.
12922   test "$enable_shared" = yes || enable_static=yes
12923   { echo "$as_me:$LINENO: result: $enable_static" >&5
12924 echo "${ECHO_T}$enable_static" >&6; }
12925
12926
12927
12928
12929 fi
12930 ac_ext=c
12931 ac_cpp='$CPP $CPPFLAGS'
12932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12935
12936 CC="$lt_save_CC"
12937
12938
12939 ac_ext=cpp
12940 ac_cpp='$CXXCPP $CPPFLAGS'
12941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12944
12945 archive_cmds_need_lc_CXX=no
12946 allow_undefined_flag_CXX=
12947 always_export_symbols_CXX=no
12948 archive_expsym_cmds_CXX=
12949 compiler_needs_object_CXX=no
12950 export_dynamic_flag_spec_CXX=
12951 hardcode_direct_CXX=no
12952 hardcode_direct_absolute_CXX=no
12953 hardcode_libdir_flag_spec_CXX=
12954 hardcode_libdir_flag_spec_ld_CXX=
12955 hardcode_libdir_separator_CXX=
12956 hardcode_minus_L_CXX=no
12957 hardcode_shlibpath_var_CXX=unsupported
12958 hardcode_automatic_CXX=no
12959 inherit_rpath_CXX=no
12960 module_cmds_CXX=
12961 module_expsym_cmds_CXX=
12962 link_all_deplibs_CXX=unknown
12963 old_archive_cmds_CXX=$old_archive_cmds
12964 no_undefined_flag_CXX=
12965 whole_archive_flag_spec_CXX=
12966 enable_shared_with_static_runtimes_CXX=no
12967
12968 # Source file extension for C++ test sources.
12969 ac_ext=cpp
12970
12971 # Object file extension for compiled C++ test sources.
12972 objext=o
12973 objext_CXX=$objext
12974
12975 # No sense in running all these tests if we already determined that
12976 # the CXX compiler isn't working.  Some variables (like enable_shared)
12977 # are currently assumed to apply to all compilers on this platform,
12978 # and will be corrupted by setting them based on a non-working compiler.
12979 if test "$_lt_caught_CXX_error" != yes; then
12980   # Code to be used in simple compile tests
12981   lt_simple_compile_test_code="int some_variable = 0;"
12982
12983   # Code to be used in simple link tests
12984   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12985
12986   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12987
12988
12989
12990
12991
12992
12993 # If no C compiler was specified, use CC.
12994 LTCC=${LTCC-"$CC"}
12995
12996 # If no C compiler flags were specified, use CFLAGS.
12997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12998
12999 # Allow CC to be a program name with arguments.
13000 compiler=$CC
13001
13002
13003   # save warnings/boilerplate of simple test code
13004   ac_outfile=conftest.$ac_objext
13005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13007 _lt_compiler_boilerplate=`cat conftest.err`
13008 $RM conftest*
13009
13010   ac_outfile=conftest.$ac_objext
13011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13013 _lt_linker_boilerplate=`cat conftest.err`
13014 $RM -r conftest*
13015
13016
13017   # Allow CC to be a program name with arguments.
13018   lt_save_CC=$CC
13019   lt_save_LD=$LD
13020   lt_save_GCC=$GCC
13021   GCC=$GXX
13022   lt_save_with_gnu_ld=$with_gnu_ld
13023   lt_save_path_LD=$lt_cv_path_LD
13024   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13025     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13026   else
13027     $as_unset lt_cv_prog_gnu_ld
13028   fi
13029   if test -n "${lt_cv_path_LDCXX+set}"; then
13030     lt_cv_path_LD=$lt_cv_path_LDCXX
13031   else
13032     $as_unset lt_cv_path_LD
13033   fi
13034   test -z "${LDCXX+set}" || LD=$LDCXX
13035   CC=${CXX-"c++"}
13036   compiler=$CC
13037   compiler_CXX=$CC
13038   for cc_temp in $compiler""; do
13039   case $cc_temp in
13040     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13041     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13042     \-*) ;;
13043     *) break;;
13044   esac
13045 done
13046 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13047
13048
13049   if test -n "$compiler"; then
13050     # We don't want -fno-exception when compiling C++ code, so set the
13051     # no_builtin_flag separately
13052     if test "$GXX" = yes; then
13053       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13054     else
13055       lt_prog_compiler_no_builtin_flag_CXX=
13056     fi
13057
13058     if test "$GXX" = yes; then
13059       # Set up default GNU C++ configuration
13060
13061
13062
13063 # Check whether --with-gnu-ld was given.
13064 if test "${with_gnu_ld+set}" = set; then
13065   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13066 else
13067   with_gnu_ld=no
13068 fi
13069
13070 ac_prog=ld
13071 if test "$GCC" = yes; then
13072   # Check if gcc -print-prog-name=ld gives a path.
13073   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13074 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13075   case $host in
13076   *-*-mingw*)
13077     # gcc leaves a trailing carriage return which upsets mingw
13078     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13079   *)
13080     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13081   esac
13082   case $ac_prog in
13083     # Accept absolute paths.
13084     [\\/]* | ?:[\\/]*)
13085       re_direlt='/[^/][^/]*/\.\./'
13086       # Canonicalize the pathname of ld
13087       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13088       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13089         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13090       done
13091       test -z "$LD" && LD="$ac_prog"
13092       ;;
13093   "")
13094     # If it fails, then pretend we aren't using GCC.
13095     ac_prog=ld
13096     ;;
13097   *)
13098     # If it is relative, then search for the first ld in PATH.
13099     with_gnu_ld=unknown
13100     ;;
13101   esac
13102 elif test "$with_gnu_ld" = yes; then
13103   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13104 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13105 else
13106   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13107 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13108 fi
13109 if test "${lt_cv_path_LD+set}" = set; then
13110   echo $ECHO_N "(cached) $ECHO_C" >&6
13111 else
13112   if test -z "$LD"; then
13113   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13114   for ac_dir in $PATH; do
13115     IFS="$lt_save_ifs"
13116     test -z "$ac_dir" && ac_dir=.
13117     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13118       lt_cv_path_LD="$ac_dir/$ac_prog"
13119       # Check to see if the program is GNU ld.  I'd rather use --version,
13120       # but apparently some variants of GNU ld only accept -v.
13121       # Break only if it was the GNU/non-GNU ld that we prefer.
13122       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13123       *GNU* | *'with BFD'*)
13124         test "$with_gnu_ld" != no && break
13125         ;;
13126       *)
13127         test "$with_gnu_ld" != yes && break
13128         ;;
13129       esac
13130     fi
13131   done
13132   IFS="$lt_save_ifs"
13133 else
13134   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13135 fi
13136 fi
13137
13138 LD="$lt_cv_path_LD"
13139 if test -n "$LD"; then
13140   { echo "$as_me:$LINENO: result: $LD" >&5
13141 echo "${ECHO_T}$LD" >&6; }
13142 else
13143   { echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6; }
13145 fi
13146 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13147 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13148    { (exit 1); exit 1; }; }
13149 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13150 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13151 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13152   echo $ECHO_N "(cached) $ECHO_C" >&6
13153 else
13154   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13155 case `$LD -v 2>&1 </dev/null` in
13156 *GNU* | *'with BFD'*)
13157   lt_cv_prog_gnu_ld=yes
13158   ;;
13159 *)
13160   lt_cv_prog_gnu_ld=no
13161   ;;
13162 esac
13163 fi
13164 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13165 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13166 with_gnu_ld=$lt_cv_prog_gnu_ld
13167
13168
13169
13170
13171
13172
13173
13174       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13175       # archiving commands below assume that GNU ld is being used.
13176       if test "$with_gnu_ld" = yes; then
13177         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13178         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'
13179
13180         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13181         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13182
13183         # If archive_cmds runs LD, not CC, wlarc should be empty
13184         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13185         #     investigate it a little bit more. (MM)
13186         wlarc='${wl}'
13187
13188         # ancient GNU ld didn't support --whole-archive et. al.
13189         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13190           $GREP 'no-whole-archive' > /dev/null; then
13191           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13192         else
13193           whole_archive_flag_spec_CXX=
13194         fi
13195       else
13196         with_gnu_ld=no
13197         wlarc=
13198
13199         # A generic and very simple default shared library creation
13200         # command for GNU C++ for the case where it uses the native
13201         # linker, instead of GNU ld.  If possible, this setting should
13202         # overridden to take advantage of the native linker features on
13203         # the platform it is being used on.
13204         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13205       fi
13206
13207       # Commands to make compiler produce verbose output that lists
13208       # what "hidden" libraries, object files and flags are used when
13209       # linking a shared library.
13210       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13211
13212     else
13213       GXX=no
13214       with_gnu_ld=no
13215       wlarc=
13216     fi
13217
13218     # PORTME: fill in a description of your system's C++ link characteristics
13219     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13220 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13221     ld_shlibs_CXX=yes
13222     case $host_os in
13223       aix3*)
13224         # FIXME: insert proper C++ library support
13225         ld_shlibs_CXX=no
13226         ;;
13227       aix[4-9]*)
13228         if test "$host_cpu" = ia64; then
13229           # On IA64, the linker does run time linking by default, so we don't
13230           # have to do anything special.
13231           aix_use_runtimelinking=no
13232           exp_sym_flag='-Bexport'
13233           no_entry_flag=""
13234         else
13235           aix_use_runtimelinking=no
13236
13237           # Test if we are trying to use run time linking or normal
13238           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13239           # need to do runtime linking.
13240           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13241             for ld_flag in $LDFLAGS; do
13242               case $ld_flag in
13243               *-brtl*)
13244                 aix_use_runtimelinking=yes
13245                 break
13246                 ;;
13247               esac
13248             done
13249             ;;
13250           esac
13251
13252           exp_sym_flag='-bexport'
13253           no_entry_flag='-bnoentry'
13254         fi
13255
13256         # When large executables or shared objects are built, AIX ld can
13257         # have problems creating the table of contents.  If linking a library
13258         # or program results in "error TOC overflow" add -mminimal-toc to
13259         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13260         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13261
13262         archive_cmds_CXX=''
13263         hardcode_direct_CXX=yes
13264         hardcode_direct_absolute_CXX=yes
13265         hardcode_libdir_separator_CXX=':'
13266         link_all_deplibs_CXX=yes
13267         file_list_spec_CXX='${wl}-f,'
13268
13269         if test "$GXX" = yes; then
13270           case $host_os in aix4.[012]|aix4.[012].*)
13271           # We only want to do this on AIX 4.2 and lower, the check
13272           # below for broken collect2 doesn't work under 4.3+
13273           collect2name=`${CC} -print-prog-name=collect2`
13274           if test -f "$collect2name" &&
13275              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13276           then
13277             # We have reworked collect2
13278             :
13279           else
13280             # We have old collect2
13281             hardcode_direct_CXX=unsupported
13282             # It fails to find uninstalled libraries when the uninstalled
13283             # path is not listed in the libpath.  Setting hardcode_minus_L
13284             # to unsupported forces relinking
13285             hardcode_minus_L_CXX=yes
13286             hardcode_libdir_flag_spec_CXX='-L$libdir'
13287             hardcode_libdir_separator_CXX=
13288           fi
13289           esac
13290           shared_flag='-shared'
13291           if test "$aix_use_runtimelinking" = yes; then
13292             shared_flag="$shared_flag "'${wl}-G'
13293           fi
13294         else
13295           # not using gcc
13296           if test "$host_cpu" = ia64; then
13297           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13298           # chokes on -Wl,-G. The following line is correct:
13299           shared_flag='-G'
13300           else
13301             if test "$aix_use_runtimelinking" = yes; then
13302               shared_flag='${wl}-G'
13303             else
13304               shared_flag='${wl}-bM:SRE'
13305             fi
13306           fi
13307         fi
13308
13309         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13310         # It seems that -bexpall does not export symbols beginning with
13311         # underscore (_), so it is better to generate a list of symbols to
13312         # export.
13313         always_export_symbols_CXX=yes
13314         if test "$aix_use_runtimelinking" = yes; then
13315           # Warning - without using the other runtime loading flags (-brtl),
13316           # -berok will link without error, but may produce a broken library.
13317           allow_undefined_flag_CXX='-berok'
13318           # Determine the default libpath from the value encoded in an empty
13319           # executable.
13320           cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h.  */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h.  */
13326
13327 int
13328 main ()
13329 {
13330
13331   ;
13332   return 0;
13333 }
13334 _ACEOF
13335 rm -f conftest.$ac_objext conftest$ac_exeext
13336 if { (ac_try="$ac_link"
13337 case "(($ac_try" in
13338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339   *) ac_try_echo=$ac_try;;
13340 esac
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342   (eval "$ac_link") 2>conftest.er1
13343   ac_status=$?
13344   grep -v '^ *+' conftest.er1 >conftest.err
13345   rm -f conftest.er1
13346   cat conftest.err >&5
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); } && {
13349          test -z "$ac_cxx_werror_flag" ||
13350          test ! -s conftest.err
13351        } && test -s conftest$ac_exeext &&
13352        $as_test_x conftest$ac_exeext; then
13353
13354 lt_aix_libpath_sed='
13355     /Import File Strings/,/^$/ {
13356         /^0/ {
13357             s/^0  *\(.*\)$/\1/
13358             p
13359         }
13360     }'
13361 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13362 # Check for a 64-bit object if we didn't find anything.
13363 if test -z "$aix_libpath"; then
13364   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13365 fi
13366 else
13367   echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13369
13370
13371 fi
13372
13373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13374       conftest$ac_exeext conftest.$ac_ext
13375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13376
13377           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13378
13379           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"
13380         else
13381           if test "$host_cpu" = ia64; then
13382             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13383             allow_undefined_flag_CXX="-z nodefs"
13384             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"
13385           else
13386             # Determine the default libpath from the value encoded in an
13387             # empty executable.
13388             cat >conftest.$ac_ext <<_ACEOF
13389 /* confdefs.h.  */
13390 _ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h.  */
13394
13395 int
13396 main ()
13397 {
13398
13399   ;
13400   return 0;
13401 }
13402 _ACEOF
13403 rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407   *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410   (eval "$ac_link") 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } && {
13417          test -z "$ac_cxx_werror_flag" ||
13418          test ! -s conftest.err
13419        } && test -s conftest$ac_exeext &&
13420        $as_test_x conftest$ac_exeext; then
13421
13422 lt_aix_libpath_sed='
13423     /Import File Strings/,/^$/ {
13424         /^0/ {
13425             s/^0  *\(.*\)$/\1/
13426             p
13427         }
13428     }'
13429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13430 # Check for a 64-bit object if we didn't find anything.
13431 if test -z "$aix_libpath"; then
13432   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13433 fi
13434 else
13435   echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13437
13438
13439 fi
13440
13441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13442       conftest$ac_exeext conftest.$ac_ext
13443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13444
13445             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13446             # Warning - without using the other run time loading flags,
13447             # -berok will link without error, but may produce a broken library.
13448             no_undefined_flag_CXX=' ${wl}-bernotok'
13449             allow_undefined_flag_CXX=' ${wl}-berok'
13450             # Exported symbols can be pulled into shared objects from archives
13451             whole_archive_flag_spec_CXX='$convenience'
13452             archive_cmds_need_lc_CXX=yes
13453             # This is similar to how AIX traditionally builds its shared
13454             # libraries.
13455             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'
13456           fi
13457         fi
13458         ;;
13459
13460       beos*)
13461         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13462           allow_undefined_flag_CXX=unsupported
13463           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13464           # support --undefined.  This deserves some investigation.  FIXME
13465           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13466         else
13467           ld_shlibs_CXX=no
13468         fi
13469         ;;
13470
13471       chorus*)
13472         case $cc_basename in
13473           *)
13474           # FIXME: insert proper C++ library support
13475           ld_shlibs_CXX=no
13476           ;;
13477         esac
13478         ;;
13479
13480       cygwin* | mingw* | pw32* | cegcc*)
13481         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13482         # as there is no search path for DLLs.
13483         hardcode_libdir_flag_spec_CXX='-L$libdir'
13484         allow_undefined_flag_CXX=unsupported
13485         always_export_symbols_CXX=no
13486         enable_shared_with_static_runtimes_CXX=yes
13487
13488         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13489           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'
13490           # If the export-symbols file already is a .def file (1st line
13491           # is EXPORTS), use it as is; otherwise, prepend...
13492           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13493             cp $export_symbols $output_objdir/$soname.def;
13494           else
13495             echo EXPORTS > $output_objdir/$soname.def;
13496             cat $export_symbols >> $output_objdir/$soname.def;
13497           fi~
13498           $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'
13499         else
13500           ld_shlibs_CXX=no
13501         fi
13502         ;;
13503       darwin* | rhapsody*)
13504
13505
13506   archive_cmds_need_lc_CXX=no
13507   hardcode_direct_CXX=no
13508   hardcode_automatic_CXX=yes
13509   hardcode_shlibpath_var_CXX=unsupported
13510   whole_archive_flag_spec_CXX=''
13511   link_all_deplibs_CXX=yes
13512   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13513   case $cc_basename in
13514      ifort*) _lt_dar_can_shared=yes ;;
13515      *) _lt_dar_can_shared=$GCC ;;
13516   esac
13517   if test "$_lt_dar_can_shared" = "yes"; then
13518     output_verbose_link_cmd=echo
13519     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}"
13520     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13521     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}"
13522     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}"
13523        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13524       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}"
13525       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}"
13526     fi
13527
13528   else
13529   ld_shlibs_CXX=no
13530   fi
13531
13532         ;;
13533
13534       dgux*)
13535         case $cc_basename in
13536           ec++*)
13537             # FIXME: insert proper C++ library support
13538             ld_shlibs_CXX=no
13539             ;;
13540           ghcx*)
13541             # Green Hills C++ Compiler
13542             # FIXME: insert proper C++ library support
13543             ld_shlibs_CXX=no
13544             ;;
13545           *)
13546             # FIXME: insert proper C++ library support
13547             ld_shlibs_CXX=no
13548             ;;
13549         esac
13550         ;;
13551
13552       freebsd[12]*)
13553         # C++ shared libraries reported to be fairly broken before
13554         # switch to ELF
13555         ld_shlibs_CXX=no
13556         ;;
13557
13558       freebsd-elf*)
13559         archive_cmds_need_lc_CXX=no
13560         ;;
13561
13562       freebsd* | dragonfly*)
13563         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13564         # conventions
13565         ld_shlibs_CXX=yes
13566         ;;
13567
13568       gnu*)
13569         ;;
13570
13571       hpux9*)
13572         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13573         hardcode_libdir_separator_CXX=:
13574         export_dynamic_flag_spec_CXX='${wl}-E'
13575         hardcode_direct_CXX=yes
13576         hardcode_minus_L_CXX=yes # Not in the search PATH,
13577                                              # but as the default
13578                                              # location of the library.
13579
13580         case $cc_basename in
13581           CC*)
13582             # FIXME: insert proper C++ library support
13583             ld_shlibs_CXX=no
13584             ;;
13585           aCC*)
13586             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'
13587             # Commands to make compiler produce verbose output that lists
13588             # what "hidden" libraries, object files and flags are used when
13589             # linking a shared library.
13590             #
13591             # There doesn't appear to be a way to prevent this compiler from
13592             # explicitly linking system object files so we need to strip them
13593             # from the output so that they don't get included in the library
13594             # dependencies.
13595             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'
13596             ;;
13597           *)
13598             if test "$GXX" = yes; then
13599               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'
13600             else
13601               # FIXME: insert proper C++ library support
13602               ld_shlibs_CXX=no
13603             fi
13604             ;;
13605         esac
13606         ;;
13607
13608       hpux10*|hpux11*)
13609         if test $with_gnu_ld = no; then
13610           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13611           hardcode_libdir_separator_CXX=:
13612
13613           case $host_cpu in
13614             hppa*64*|ia64*)
13615               ;;
13616             *)
13617               export_dynamic_flag_spec_CXX='${wl}-E'
13618               ;;
13619           esac
13620         fi
13621         case $host_cpu in
13622           hppa*64*|ia64*)
13623             hardcode_direct_CXX=no
13624             hardcode_shlibpath_var_CXX=no
13625             ;;
13626           *)
13627             hardcode_direct_CXX=yes
13628             hardcode_direct_absolute_CXX=yes
13629             hardcode_minus_L_CXX=yes # Not in the search PATH,
13630                                                  # but as the default
13631                                                  # location of the library.
13632             ;;
13633         esac
13634
13635         case $cc_basename in
13636           CC*)
13637             # FIXME: insert proper C++ library support
13638             ld_shlibs_CXX=no
13639             ;;
13640           aCC*)
13641             case $host_cpu in
13642               hppa*64*)
13643                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13644                 ;;
13645               ia64*)
13646                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647                 ;;
13648               *)
13649                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13650                 ;;
13651             esac
13652             # Commands to make compiler produce verbose output that lists
13653             # what "hidden" libraries, object files and flags are used when
13654             # linking a shared library.
13655             #
13656             # There doesn't appear to be a way to prevent this compiler from
13657             # explicitly linking system object files so we need to strip them
13658             # from the output so that they don't get included in the library
13659             # dependencies.
13660             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'
13661             ;;
13662           *)
13663             if test "$GXX" = yes; then
13664               if test $with_gnu_ld = no; then
13665                 case $host_cpu in
13666                   hppa*64*)
13667                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13668                     ;;
13669                   ia64*)
13670                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13671                     ;;
13672                   *)
13673                     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'
13674                     ;;
13675                 esac
13676               fi
13677             else
13678               # FIXME: insert proper C++ library support
13679               ld_shlibs_CXX=no
13680             fi
13681             ;;
13682         esac
13683         ;;
13684
13685       interix[3-9]*)
13686         hardcode_direct_CXX=no
13687         hardcode_shlibpath_var_CXX=no
13688         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13689         export_dynamic_flag_spec_CXX='${wl}-E'
13690         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13691         # Instead, shared libraries are loaded at an image base (0x10000000 by
13692         # default) and relocated if they conflict, which is a slow very memory
13693         # consuming and fragmenting process.  To avoid this, we pick a random,
13694         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13695         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13696         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'
13697         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'
13698         ;;
13699       irix5* | irix6*)
13700         case $cc_basename in
13701           CC*)
13702             # SGI C++
13703             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'
13704
13705             # Archives containing C++ object files must be created using
13706             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13707             # necessary to make sure instantiated templates are included
13708             # in the archive.
13709             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13710             ;;
13711           *)
13712             if test "$GXX" = yes; then
13713               if test "$with_gnu_ld" = no; then
13714                 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'
13715               else
13716                 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'
13717               fi
13718             fi
13719             link_all_deplibs_CXX=yes
13720             ;;
13721         esac
13722         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13723         hardcode_libdir_separator_CXX=:
13724         inherit_rpath_CXX=yes
13725         ;;
13726
13727       linux* | k*bsd*-gnu)
13728         case $cc_basename in
13729           KCC*)
13730             # Kuck and Associates, Inc. (KAI) C++ Compiler
13731
13732             # KCC will only create a shared library if the output file
13733             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13734             # to its proper name (with version) after linking.
13735             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'
13736             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'
13737             # Commands to make compiler produce verbose output that lists
13738             # what "hidden" libraries, object files and flags are used when
13739             # linking a shared library.
13740             #
13741             # There doesn't appear to be a way to prevent this compiler from
13742             # explicitly linking system object files so we need to strip them
13743             # from the output so that they don't get included in the library
13744             # dependencies.
13745             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'
13746
13747             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13748             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13749
13750             # Archives containing C++ object files must be created using
13751             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13752             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13753             ;;
13754           icpc* | ecpc* )
13755             # Intel C++
13756             with_gnu_ld=yes
13757             # version 8.0 and above of icpc choke on multiply defined symbols
13758             # if we add $predep_objects and $postdep_objects, however 7.1 and
13759             # earlier do not add the objects themselves.
13760             case `$CC -V 2>&1` in
13761               *"Version 7."*)
13762                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13763                 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'
13764                 ;;
13765               *)  # Version 8.0 or newer
13766                 tmp_idyn=
13767                 case $host_cpu in
13768                   ia64*) tmp_idyn=' -i_dynamic';;
13769                 esac
13770                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13771                 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'
13772                 ;;
13773             esac
13774             archive_cmds_need_lc_CXX=no
13775             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13776             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13777             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13778             ;;
13779           pgCC* | pgcpp*)
13780             # Portland Group C++ compiler
13781             case `$CC -V` in
13782             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13783               prelink_cmds_CXX='tpldir=Template.dir~
13784                 rm -rf $tpldir~
13785                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13786                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13787               old_archive_cmds_CXX='tpldir=Template.dir~
13788                 rm -rf $tpldir~
13789                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13790                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13791                 $RANLIB $oldlib'
13792               archive_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 -o $lib'
13796               archive_expsym_cmds_CXX='tpldir=Template.dir~
13797                 rm -rf $tpldir~
13798                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13799                 $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'
13800               ;;
13801             *) # Version 6 will use weak symbols
13802               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13803               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'
13804               ;;
13805             esac
13806
13807             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13808             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13809             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'
13810             ;;
13811           cxx*)
13812             # Compaq C++
13813             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13814             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'
13815
13816             runpath_var=LD_RUN_PATH
13817             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13818             hardcode_libdir_separator_CXX=:
13819
13820             # Commands to make compiler produce verbose output that lists
13821             # what "hidden" libraries, object files and flags are used when
13822             # linking a shared library.
13823             #
13824             # There doesn't appear to be a way to prevent this compiler from
13825             # explicitly linking system object files so we need to strip them
13826             # from the output so that they don't get included in the library
13827             # dependencies.
13828             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'
13829             ;;
13830           xl*)
13831             # IBM XL 8.0 on PPC, with GNU ld
13832             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13833             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13834             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13835             if test "x$supports_anon_versioning" = xyes; then
13836               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13837                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13838                 echo "local: *; };" >> $output_objdir/$libname.ver~
13839                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13840             fi
13841             ;;
13842           *)
13843             case `$CC -V 2>&1 | sed 5q` in
13844             *Sun\ C*)
13845               # Sun C++ 5.9
13846               no_undefined_flag_CXX=' -zdefs'
13847               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13848               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'
13849               hardcode_libdir_flag_spec_CXX='-R$libdir'
13850               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'
13851               compiler_needs_object_CXX=yes
13852
13853               # Not sure whether something based on
13854               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13855               # would be better.
13856               output_verbose_link_cmd='echo'
13857
13858               # Archives containing C++ object files must be created using
13859               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13860               # necessary to make sure instantiated templates are included
13861               # in the archive.
13862               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13863               ;;
13864             esac
13865             ;;
13866         esac
13867         ;;
13868
13869       lynxos*)
13870         # FIXME: insert proper C++ library support
13871         ld_shlibs_CXX=no
13872         ;;
13873
13874       m88k*)
13875         # FIXME: insert proper C++ library support
13876         ld_shlibs_CXX=no
13877         ;;
13878
13879       mvs*)
13880         case $cc_basename in
13881           cxx*)
13882             # FIXME: insert proper C++ library support
13883             ld_shlibs_CXX=no
13884             ;;
13885           *)
13886             # FIXME: insert proper C++ library support
13887             ld_shlibs_CXX=no
13888             ;;
13889         esac
13890         ;;
13891
13892       netbsd*)
13893         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13894           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13895           wlarc=
13896           hardcode_libdir_flag_spec_CXX='-R$libdir'
13897           hardcode_direct_CXX=yes
13898           hardcode_shlibpath_var_CXX=no
13899         fi
13900         # Workaround some broken pre-1.5 toolchains
13901         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13902         ;;
13903
13904       *nto* | *qnx*)
13905         ld_shlibs_CXX=yes
13906         ;;
13907
13908       openbsd2*)
13909         # C++ shared libraries are fairly broken
13910         ld_shlibs_CXX=no
13911         ;;
13912
13913       openbsd*)
13914         if test -f /usr/libexec/ld.so; then
13915           hardcode_direct_CXX=yes
13916           hardcode_shlibpath_var_CXX=no
13917           hardcode_direct_absolute_CXX=yes
13918           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13919           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13920           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13921             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13922             export_dynamic_flag_spec_CXX='${wl}-E'
13923             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13924           fi
13925           output_verbose_link_cmd=echo
13926         else
13927           ld_shlibs_CXX=no
13928         fi
13929         ;;
13930
13931       osf3* | osf4* | osf5*)
13932         case $cc_basename in
13933           KCC*)
13934             # Kuck and Associates, Inc. (KAI) C++ Compiler
13935
13936             # KCC will only create a shared library if the output file
13937             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13938             # to its proper name (with version) after linking.
13939             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'
13940
13941             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13942             hardcode_libdir_separator_CXX=:
13943
13944             # Archives containing C++ object files must be created using
13945             # the KAI C++ compiler.
13946             case $host in
13947               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13948               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13949             esac
13950             ;;
13951           RCC*)
13952             # Rational C++ 2.4.1
13953             # FIXME: insert proper C++ library support
13954             ld_shlibs_CXX=no
13955             ;;
13956           cxx*)
13957             case $host in
13958               osf3*)
13959                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13960                 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'
13961                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13962                 ;;
13963               *)
13964                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13965                 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'
13966                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13967                   echo "-hidden">> $lib.exp~
13968                   $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~
13969                   $RM $lib.exp'
13970                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13971                 ;;
13972             esac
13973
13974             hardcode_libdir_separator_CXX=:
13975
13976             # Commands to make compiler produce verbose output that lists
13977             # what "hidden" libraries, object files and flags are used when
13978             # linking a shared library.
13979             #
13980             # There doesn't appear to be a way to prevent this compiler from
13981             # explicitly linking system object files so we need to strip them
13982             # from the output so that they don't get included in the library
13983             # dependencies.
13984             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'
13985             ;;
13986           *)
13987             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13988               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13989               case $host in
13990                 osf3*)
13991                   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'
13992                   ;;
13993                 *)
13994                   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'
13995                   ;;
13996               esac
13997
13998               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13999               hardcode_libdir_separator_CXX=:
14000
14001               # Commands to make compiler produce verbose output that lists
14002               # what "hidden" libraries, object files and flags are used when
14003               # linking a shared library.
14004               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14005
14006             else
14007               # FIXME: insert proper C++ library support
14008               ld_shlibs_CXX=no
14009             fi
14010             ;;
14011         esac
14012         ;;
14013
14014       psos*)
14015         # FIXME: insert proper C++ library support
14016         ld_shlibs_CXX=no
14017         ;;
14018
14019       sunos4*)
14020         case $cc_basename in
14021           CC*)
14022             # Sun C++ 4.x
14023             # FIXME: insert proper C++ library support
14024             ld_shlibs_CXX=no
14025             ;;
14026           lcc*)
14027             # Lucid
14028             # FIXME: insert proper C++ library support
14029             ld_shlibs_CXX=no
14030             ;;
14031           *)
14032             # FIXME: insert proper C++ library support
14033             ld_shlibs_CXX=no
14034             ;;
14035         esac
14036         ;;
14037
14038       solaris*)
14039         case $cc_basename in
14040           CC*)
14041             # Sun C++ 4.2, 5.x and Centerline C++
14042             archive_cmds_need_lc_CXX=yes
14043             no_undefined_flag_CXX=' -zdefs'
14044             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14045             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14046               $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'
14047
14048             hardcode_libdir_flag_spec_CXX='-R$libdir'
14049             hardcode_shlibpath_var_CXX=no
14050             case $host_os in
14051               solaris2.[0-5] | solaris2.[0-5].*) ;;
14052               *)
14053                 # The compiler driver will combine and reorder linker options,
14054                 # but understands `-z linker_flag'.
14055                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14056                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14057                 ;;
14058             esac
14059             link_all_deplibs_CXX=yes
14060
14061             output_verbose_link_cmd='echo'
14062
14063             # Archives containing C++ object files must be created using
14064             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14065             # necessary to make sure instantiated templates are included
14066             # in the archive.
14067             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14068             ;;
14069           gcx*)
14070             # Green Hills C++ Compiler
14071             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14072
14073             # The C++ compiler must be used to create the archive.
14074             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14075             ;;
14076           *)
14077             # GNU C++ compiler with Solaris linker
14078             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14079               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14080               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14081                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14082                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14083                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14084
14085                 # Commands to make compiler produce verbose output that lists
14086                 # what "hidden" libraries, object files and flags are used when
14087                 # linking a shared library.
14088                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14089               else
14090                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14091                 # platform.
14092                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14093                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14094                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14095
14096                 # Commands to make compiler produce verbose output that lists
14097                 # what "hidden" libraries, object files and flags are used when
14098                 # linking a shared library.
14099                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14100               fi
14101
14102               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14103               case $host_os in
14104                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14105                 *)
14106                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14107                   ;;
14108               esac
14109             fi
14110             ;;
14111         esac
14112         ;;
14113
14114     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14115       no_undefined_flag_CXX='${wl}-z,text'
14116       archive_cmds_need_lc_CXX=no
14117       hardcode_shlibpath_var_CXX=no
14118       runpath_var='LD_RUN_PATH'
14119
14120       case $cc_basename in
14121         CC*)
14122           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14123           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14124           ;;
14125         *)
14126           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14127           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14128           ;;
14129       esac
14130       ;;
14131
14132       sysv5* | sco3.2v5* | sco5v6*)
14133         # Note: We can NOT use -z defs as we might desire, because we do not
14134         # link with -lc, and that would cause any symbols used from libc to
14135         # always be unresolved, which means just about no library would
14136         # ever link correctly.  If we're not using GNU ld we use -z text
14137         # though, which does catch some bad symbols but isn't as heavy-handed
14138         # as -z defs.
14139         no_undefined_flag_CXX='${wl}-z,text'
14140         allow_undefined_flag_CXX='${wl}-z,nodefs'
14141         archive_cmds_need_lc_CXX=no
14142         hardcode_shlibpath_var_CXX=no
14143         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14144         hardcode_libdir_separator_CXX=':'
14145         link_all_deplibs_CXX=yes
14146         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14147         runpath_var='LD_RUN_PATH'
14148
14149         case $cc_basename in
14150           CC*)
14151             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14152             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14153             ;;
14154           *)
14155             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14156             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14157             ;;
14158         esac
14159       ;;
14160
14161       tandem*)
14162         case $cc_basename in
14163           NCC*)
14164             # NonStop-UX NCC 3.20
14165             # FIXME: insert proper C++ library support
14166             ld_shlibs_CXX=no
14167             ;;
14168           *)
14169             # FIXME: insert proper C++ library support
14170             ld_shlibs_CXX=no
14171             ;;
14172         esac
14173         ;;
14174
14175       vxworks*)
14176         # FIXME: insert proper C++ library support
14177         ld_shlibs_CXX=no
14178         ;;
14179
14180       *)
14181         # FIXME: insert proper C++ library support
14182         ld_shlibs_CXX=no
14183         ;;
14184     esac
14185
14186     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14187 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14188     test "$ld_shlibs_CXX" = no && can_build_shared=no
14189
14190     GCC_CXX="$GXX"
14191     LD_CXX="$LD"
14192
14193     ## CAVEAT EMPTOR:
14194     ## There is no encapsulation within the following macros, do not change
14195     ## the running order or otherwise move them around unless you know exactly
14196     ## what you are doing...
14197     # Dependencies to place before and after the object being linked:
14198 predep_objects_CXX=
14199 postdep_objects_CXX=
14200 predeps_CXX=
14201 postdeps_CXX=
14202 compiler_lib_search_path_CXX=
14203
14204 cat > conftest.$ac_ext <<_LT_EOF
14205 class Foo
14206 {
14207 public:
14208   Foo (void) { a = 0; }
14209 private:
14210   int a;
14211 };
14212 _LT_EOF
14213
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215   (eval $ac_compile) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; then
14219   # Parse the compiler output and extract the necessary
14220   # objects, libraries and library flags.
14221
14222   # Sentinel used to keep track of whether or not we are before
14223   # the conftest object file.
14224   pre_test_object_deps_done=no
14225
14226   for p in `eval "$output_verbose_link_cmd"`; do
14227     case $p in
14228
14229     -L* | -R* | -l*)
14230        # Some compilers place space between "-{L,R}" and the path.
14231        # Remove the space.
14232        if test $p = "-L" ||
14233           test $p = "-R"; then
14234          prev=$p
14235          continue
14236        else
14237          prev=
14238        fi
14239
14240        if test "$pre_test_object_deps_done" = no; then
14241          case $p in
14242          -L* | -R*)
14243            # Internal compiler library paths should come after those
14244            # provided the user.  The postdeps already come after the
14245            # user supplied libs so there is no need to process them.
14246            if test -z "$compiler_lib_search_path_CXX"; then
14247              compiler_lib_search_path_CXX="${prev}${p}"
14248            else
14249              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14250            fi
14251            ;;
14252          # The "-l" case would never come before the object being
14253          # linked, so don't bother handling this case.
14254          esac
14255        else
14256          if test -z "$postdeps_CXX"; then
14257            postdeps_CXX="${prev}${p}"
14258          else
14259            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14260          fi
14261        fi
14262        ;;
14263
14264     *.$objext)
14265        # This assumes that the test object file only shows up
14266        # once in the compiler output.
14267        if test "$p" = "conftest.$objext"; then
14268          pre_test_object_deps_done=yes
14269          continue
14270        fi
14271
14272        if test "$pre_test_object_deps_done" = no; then
14273          if test -z "$predep_objects_CXX"; then
14274            predep_objects_CXX="$p"
14275          else
14276            predep_objects_CXX="$predep_objects_CXX $p"
14277          fi
14278        else
14279          if test -z "$postdep_objects_CXX"; then
14280            postdep_objects_CXX="$p"
14281          else
14282            postdep_objects_CXX="$postdep_objects_CXX $p"
14283          fi
14284        fi
14285        ;;
14286
14287     *) ;; # Ignore the rest.
14288
14289     esac
14290   done
14291
14292   # Clean up.
14293   rm -f a.out a.exe
14294 else
14295   echo "libtool.m4: error: problem compiling CXX test program"
14296 fi
14297
14298 $RM -f confest.$objext
14299
14300 # PORTME: override above test on systems where it is broken
14301 case $host_os in
14302 interix[3-9]*)
14303   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14304   # hack all around it, let's just trust "g++" to DTRT.
14305   predep_objects_CXX=
14306   postdep_objects_CXX=
14307   postdeps_CXX=
14308   ;;
14309
14310 linux*)
14311   case `$CC -V 2>&1 | sed 5q` in
14312   *Sun\ C*)
14313     # Sun C++ 5.9
14314
14315     # The more standards-conforming stlport4 library is
14316     # incompatible with the Cstd library. Avoid specifying
14317     # it if it's in CXXFLAGS. Ignore libCrun as
14318     # -library=stlport4 depends on it.
14319     case " $CXX $CXXFLAGS " in
14320     *" -library=stlport4 "*)
14321       solaris_use_stlport4=yes
14322       ;;
14323     esac
14324
14325     if test "$solaris_use_stlport4" != yes; then
14326       postdeps_CXX='-library=Cstd -library=Crun'
14327     fi
14328     ;;
14329   esac
14330   ;;
14331
14332 solaris*)
14333   case $cc_basename in
14334   CC*)
14335     # The more standards-conforming stlport4 library is
14336     # incompatible with the Cstd library. Avoid specifying
14337     # it if it's in CXXFLAGS. Ignore libCrun as
14338     # -library=stlport4 depends on it.
14339     case " $CXX $CXXFLAGS " in
14340     *" -library=stlport4 "*)
14341       solaris_use_stlport4=yes
14342       ;;
14343     esac
14344
14345     # Adding this requires a known-good setup of shared libraries for
14346     # Sun compiler versions before 5.6, else PIC objects from an old
14347     # archive will be linked into the output, leading to subtle bugs.
14348     if test "$solaris_use_stlport4" != yes; then
14349       postdeps_CXX='-library=Cstd -library=Crun'
14350     fi
14351     ;;
14352   esac
14353   ;;
14354 esac
14355
14356
14357 case " $postdeps_CXX " in
14358 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14359 esac
14360  compiler_lib_search_dirs_CXX=
14361 if test -n "${compiler_lib_search_path_CXX}"; then
14362  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14363 fi
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
14392
14393
14394
14395     lt_prog_compiler_wl_CXX=
14396 lt_prog_compiler_pic_CXX=
14397 lt_prog_compiler_static_CXX=
14398
14399 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14400 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14401
14402   # C++ specific cases for pic, static, wl, etc.
14403   if test "$GXX" = yes; then
14404     lt_prog_compiler_wl_CXX='-Wl,'
14405     lt_prog_compiler_static_CXX='-static'
14406
14407     case $host_os in
14408     aix*)
14409       # All AIX code is PIC.
14410       if test "$host_cpu" = ia64; then
14411         # AIX 5 now supports IA64 processor
14412         lt_prog_compiler_static_CXX='-Bstatic'
14413       fi
14414       ;;
14415
14416     amigaos*)
14417       case $host_cpu in
14418       powerpc)
14419             # see comment about AmigaOS4 .so support
14420             lt_prog_compiler_pic_CXX='-fPIC'
14421         ;;
14422       m68k)
14423             # FIXME: we need at least 68020 code to build shared libraries, but
14424             # adding the `-m68020' flag to GCC prevents building anything better,
14425             # like `-m68040'.
14426             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14427         ;;
14428       esac
14429       ;;
14430
14431     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14432       # PIC is the default for these OSes.
14433       ;;
14434     mingw* | cygwin* | os2* | pw32* | cegcc*)
14435       # This hack is so that the source file can tell whether it is being
14436       # built for inclusion in a dll (and should export symbols for example).
14437       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14438       # (--disable-auto-import) libraries
14439       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14440       ;;
14441     darwin* | rhapsody*)
14442       # PIC is the default on this platform
14443       # Common symbols not allowed in MH_DYLIB files
14444       lt_prog_compiler_pic_CXX='-fno-common'
14445       ;;
14446     *djgpp*)
14447       # DJGPP does not support shared libraries at all
14448       lt_prog_compiler_pic_CXX=
14449       ;;
14450     interix[3-9]*)
14451       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14452       # Instead, we relocate shared libraries at runtime.
14453       ;;
14454     sysv4*MP*)
14455       if test -d /usr/nec; then
14456         lt_prog_compiler_pic_CXX=-Kconform_pic
14457       fi
14458       ;;
14459     hpux*)
14460       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14461       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14462       # sets the default TLS model and affects inlining.
14463       case $host_cpu in
14464       hppa*64*)
14465         ;;
14466       *)
14467         lt_prog_compiler_pic_CXX='-fPIC'
14468         ;;
14469       esac
14470       ;;
14471     *qnx* | *nto*)
14472       # QNX uses GNU C++, but need to define -shared option too, otherwise
14473       # it will coredump.
14474       lt_prog_compiler_pic_CXX='-fPIC -shared'
14475       ;;
14476     *)
14477       lt_prog_compiler_pic_CXX='-fPIC'
14478       ;;
14479     esac
14480   else
14481     case $host_os in
14482       aix[4-9]*)
14483         # All AIX code is PIC.
14484         if test "$host_cpu" = ia64; then
14485           # AIX 5 now supports IA64 processor
14486           lt_prog_compiler_static_CXX='-Bstatic'
14487         else
14488           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14489         fi
14490         ;;
14491       chorus*)
14492         case $cc_basename in
14493         cxch68*)
14494           # Green Hills C++ Compiler
14495           # _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"
14496           ;;
14497         esac
14498         ;;
14499       dgux*)
14500         case $cc_basename in
14501           ec++*)
14502             lt_prog_compiler_pic_CXX='-KPIC'
14503             ;;
14504           ghcx*)
14505             # Green Hills C++ Compiler
14506             lt_prog_compiler_pic_CXX='-pic'
14507             ;;
14508           *)
14509             ;;
14510         esac
14511         ;;
14512       freebsd* | dragonfly*)
14513         # FreeBSD uses GNU C++
14514         ;;
14515       hpux9* | hpux10* | hpux11*)
14516         case $cc_basename in
14517           CC*)
14518             lt_prog_compiler_wl_CXX='-Wl,'
14519             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14520             if test "$host_cpu" != ia64; then
14521               lt_prog_compiler_pic_CXX='+Z'
14522             fi
14523             ;;
14524           aCC*)
14525             lt_prog_compiler_wl_CXX='-Wl,'
14526             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14527             case $host_cpu in
14528             hppa*64*|ia64*)
14529               # +Z the default
14530               ;;
14531             *)
14532               lt_prog_compiler_pic_CXX='+Z'
14533               ;;
14534             esac
14535             ;;
14536           *)
14537             ;;
14538         esac
14539         ;;
14540       interix*)
14541         # This is c89, which is MS Visual C++ (no shared libs)
14542         # Anyone wants to do a port?
14543         ;;
14544       irix5* | irix6* | nonstopux*)
14545         case $cc_basename in
14546           CC*)
14547             lt_prog_compiler_wl_CXX='-Wl,'
14548             lt_prog_compiler_static_CXX='-non_shared'
14549             # CC pic flag -KPIC is the default.
14550             ;;
14551           *)
14552             ;;
14553         esac
14554         ;;
14555       linux* | k*bsd*-gnu)
14556         case $cc_basename in
14557           KCC*)
14558             # KAI C++ Compiler
14559             lt_prog_compiler_wl_CXX='--backend -Wl,'
14560             lt_prog_compiler_pic_CXX='-fPIC'
14561             ;;
14562           ecpc* )
14563             # old Intel C++ for x86_64 which still supported -KPIC.
14564             lt_prog_compiler_wl_CXX='-Wl,'
14565             lt_prog_compiler_pic_CXX='-KPIC'
14566             lt_prog_compiler_static_CXX='-static'
14567             ;;
14568           icpc* )
14569             # Intel C++, used to be incompatible with GCC.
14570             # ICC 10 doesn't accept -KPIC any more.
14571             lt_prog_compiler_wl_CXX='-Wl,'
14572             lt_prog_compiler_pic_CXX='-fPIC'
14573             lt_prog_compiler_static_CXX='-static'
14574             ;;
14575           pgCC* | pgcpp*)
14576             # Portland Group C++ compiler
14577             lt_prog_compiler_wl_CXX='-Wl,'
14578             lt_prog_compiler_pic_CXX='-fpic'
14579             lt_prog_compiler_static_CXX='-Bstatic'
14580             ;;
14581           cxx*)
14582             # Compaq C++
14583             # Make sure the PIC flag is empty.  It appears that all Alpha
14584             # Linux and Compaq Tru64 Unix objects are PIC.
14585             lt_prog_compiler_pic_CXX=
14586             lt_prog_compiler_static_CXX='-non_shared'
14587             ;;
14588           xlc* | xlC*)
14589             # IBM XL 8.0 on PPC
14590             lt_prog_compiler_wl_CXX='-Wl,'
14591             lt_prog_compiler_pic_CXX='-qpic'
14592             lt_prog_compiler_static_CXX='-qstaticlink'
14593             ;;
14594           *)
14595             case `$CC -V 2>&1 | sed 5q` in
14596             *Sun\ C*)
14597               # Sun C++ 5.9
14598               lt_prog_compiler_pic_CXX='-KPIC'
14599               lt_prog_compiler_static_CXX='-Bstatic'
14600               lt_prog_compiler_wl_CXX='-Qoption ld '
14601               ;;
14602             esac
14603             ;;
14604         esac
14605         ;;
14606       lynxos*)
14607         ;;
14608       m88k*)
14609         ;;
14610       mvs*)
14611         case $cc_basename in
14612           cxx*)
14613             lt_prog_compiler_pic_CXX='-W c,exportall'
14614             ;;
14615           *)
14616             ;;
14617         esac
14618         ;;
14619       netbsd*)
14620         ;;
14621       *qnx* | *nto*)
14622         # QNX uses GNU C++, but need to define -shared option too, otherwise
14623         # it will coredump.
14624         lt_prog_compiler_pic_CXX='-fPIC -shared'
14625         ;;
14626       osf3* | osf4* | osf5*)
14627         case $cc_basename in
14628           KCC*)
14629             lt_prog_compiler_wl_CXX='--backend -Wl,'
14630             ;;
14631           RCC*)
14632             # Rational C++ 2.4.1
14633             lt_prog_compiler_pic_CXX='-pic'
14634             ;;
14635           cxx*)
14636             # Digital/Compaq C++
14637             lt_prog_compiler_wl_CXX='-Wl,'
14638             # Make sure the PIC flag is empty.  It appears that all Alpha
14639             # Linux and Compaq Tru64 Unix objects are PIC.
14640             lt_prog_compiler_pic_CXX=
14641             lt_prog_compiler_static_CXX='-non_shared'
14642             ;;
14643           *)
14644             ;;
14645         esac
14646         ;;
14647       psos*)
14648         ;;
14649       solaris*)
14650         case $cc_basename in
14651           CC*)
14652             # Sun C++ 4.2, 5.x and Centerline C++
14653             lt_prog_compiler_pic_CXX='-KPIC'
14654             lt_prog_compiler_static_CXX='-Bstatic'
14655             lt_prog_compiler_wl_CXX='-Qoption ld '
14656             ;;
14657           gcx*)
14658             # Green Hills C++ Compiler
14659             lt_prog_compiler_pic_CXX='-PIC'
14660             ;;
14661           *)
14662             ;;
14663         esac
14664         ;;
14665       sunos4*)
14666         case $cc_basename in
14667           CC*)
14668             # Sun C++ 4.x
14669             lt_prog_compiler_pic_CXX='-pic'
14670             lt_prog_compiler_static_CXX='-Bstatic'
14671             ;;
14672           lcc*)
14673             # Lucid
14674             lt_prog_compiler_pic_CXX='-pic'
14675             ;;
14676           *)
14677             ;;
14678         esac
14679         ;;
14680       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14681         case $cc_basename in
14682           CC*)
14683             lt_prog_compiler_wl_CXX='-Wl,'
14684             lt_prog_compiler_pic_CXX='-KPIC'
14685             lt_prog_compiler_static_CXX='-Bstatic'
14686             ;;
14687         esac
14688         ;;
14689       tandem*)
14690         case $cc_basename in
14691           NCC*)
14692             # NonStop-UX NCC 3.20
14693             lt_prog_compiler_pic_CXX='-KPIC'
14694             ;;
14695           *)
14696             ;;
14697         esac
14698         ;;
14699       vxworks*)
14700         ;;
14701       *)
14702         lt_prog_compiler_can_build_shared_CXX=no
14703         ;;
14704     esac
14705   fi
14706
14707 case $host_os in
14708   # For platforms which do not support PIC, -DPIC is meaningless:
14709   *djgpp*)
14710     lt_prog_compiler_pic_CXX=
14711     ;;
14712   *)
14713     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14714     ;;
14715 esac
14716 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14717 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14718
14719
14720
14721 #
14722 # Check to make sure the PIC flag actually works.
14723 #
14724 if test -n "$lt_prog_compiler_pic_CXX"; then
14725   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14726 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14727 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14728   echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730   lt_cv_prog_compiler_pic_works_CXX=no
14731    ac_outfile=conftest.$ac_objext
14732    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14733    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14734    # Insert the option either (1) after the last *FLAGS variable, or
14735    # (2) before a word containing "conftest.", or (3) at the end.
14736    # Note that $ac_compile itself does not contain backslashes and begins
14737    # with a dollar sign (not a hyphen), so the echo should work correctly.
14738    # The option is referenced via a variable to avoid confusing sed.
14739    lt_compile=`echo "$ac_compile" | $SED \
14740    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14741    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14742    -e 's:$: $lt_compiler_flag:'`
14743    (eval echo "\"\$as_me:14743: $lt_compile\"" >&5)
14744    (eval "$lt_compile" 2>conftest.err)
14745    ac_status=$?
14746    cat conftest.err >&5
14747    echo "$as_me:14747: \$? = $ac_status" >&5
14748    if (exit $ac_status) && test -s "$ac_outfile"; then
14749      # The compiler can only warn and ignore the option if not recognized
14750      # So say no if there are warnings other than the usual output.
14751      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14752      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14753      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14754        lt_cv_prog_compiler_pic_works_CXX=yes
14755      fi
14756    fi
14757    $RM conftest*
14758
14759 fi
14760 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14761 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14762
14763 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14764     case $lt_prog_compiler_pic_CXX in
14765      "" | " "*) ;;
14766      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14767      esac
14768 else
14769     lt_prog_compiler_pic_CXX=
14770      lt_prog_compiler_can_build_shared_CXX=no
14771 fi
14772
14773 fi
14774
14775
14776
14777 #
14778 # Check to make sure the static flag actually works.
14779 #
14780 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14781 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14782 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14783 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14784   echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786   lt_cv_prog_compiler_static_works_CXX=no
14787    save_LDFLAGS="$LDFLAGS"
14788    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14789    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14790    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14791      # The linker can only warn and ignore the option if not recognized
14792      # So say no if there are warnings
14793      if test -s conftest.err; then
14794        # Append any errors to the config.log.
14795        cat conftest.err 1>&5
14796        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14797        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798        if diff conftest.exp conftest.er2 >/dev/null; then
14799          lt_cv_prog_compiler_static_works_CXX=yes
14800        fi
14801      else
14802        lt_cv_prog_compiler_static_works_CXX=yes
14803      fi
14804    fi
14805    $RM -r conftest*
14806    LDFLAGS="$save_LDFLAGS"
14807
14808 fi
14809 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14810 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14811
14812 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14813     :
14814 else
14815     lt_prog_compiler_static_CXX=
14816 fi
14817
14818
14819
14820
14821     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14823 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14824   echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826   lt_cv_prog_compiler_c_o_CXX=no
14827    $RM -r conftest 2>/dev/null
14828    mkdir conftest
14829    cd conftest
14830    mkdir out
14831    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14832
14833    lt_compiler_flag="-o out/conftest2.$ac_objext"
14834    # Insert the option either (1) after the last *FLAGS variable, or
14835    # (2) before a word containing "conftest.", or (3) at the end.
14836    # Note that $ac_compile itself does not contain backslashes and begins
14837    # with a dollar sign (not a hyphen), so the echo should work correctly.
14838    lt_compile=`echo "$ac_compile" | $SED \
14839    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14840    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14841    -e 's:$: $lt_compiler_flag:'`
14842    (eval echo "\"\$as_me:14842: $lt_compile\"" >&5)
14843    (eval "$lt_compile" 2>out/conftest.err)
14844    ac_status=$?
14845    cat out/conftest.err >&5
14846    echo "$as_me:14846: \$? = $ac_status" >&5
14847    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14848    then
14849      # The compiler can only warn and ignore the option if not recognized
14850      # So say no if there are warnings
14851      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14852      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14853      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14854        lt_cv_prog_compiler_c_o_CXX=yes
14855      fi
14856    fi
14857    chmod u+w . 2>&5
14858    $RM conftest*
14859    # SGI C++ compiler will create directory out/ii_files/ for
14860    # template instantiation
14861    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14862    $RM out/* && rmdir out
14863    cd ..
14864    $RM -r conftest
14865    $RM conftest*
14866
14867 fi
14868 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14869 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14870
14871
14872
14873     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14874 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14875 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14876   echo $ECHO_N "(cached) $ECHO_C" >&6
14877 else
14878   lt_cv_prog_compiler_c_o_CXX=no
14879    $RM -r conftest 2>/dev/null
14880    mkdir conftest
14881    cd conftest
14882    mkdir out
14883    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14884
14885    lt_compiler_flag="-o out/conftest2.$ac_objext"
14886    # Insert the option either (1) after the last *FLAGS variable, or
14887    # (2) before a word containing "conftest.", or (3) at the end.
14888    # Note that $ac_compile itself does not contain backslashes and begins
14889    # with a dollar sign (not a hyphen), so the echo should work correctly.
14890    lt_compile=`echo "$ac_compile" | $SED \
14891    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14892    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14893    -e 's:$: $lt_compiler_flag:'`
14894    (eval echo "\"\$as_me:14894: $lt_compile\"" >&5)
14895    (eval "$lt_compile" 2>out/conftest.err)
14896    ac_status=$?
14897    cat out/conftest.err >&5
14898    echo "$as_me:14898: \$? = $ac_status" >&5
14899    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14900    then
14901      # The compiler can only warn and ignore the option if not recognized
14902      # So say no if there are warnings
14903      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14904      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14905      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14906        lt_cv_prog_compiler_c_o_CXX=yes
14907      fi
14908    fi
14909    chmod u+w . 2>&5
14910    $RM conftest*
14911    # SGI C++ compiler will create directory out/ii_files/ for
14912    # template instantiation
14913    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14914    $RM out/* && rmdir out
14915    cd ..
14916    $RM -r conftest
14917    $RM conftest*
14918
14919 fi
14920 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14921 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14922
14923
14924
14925
14926 hard_links="nottested"
14927 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14928   # do not overwrite the value of need_locks provided by the user
14929   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14930 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14931   hard_links=yes
14932   $RM conftest*
14933   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14934   touch conftest.a
14935   ln conftest.a conftest.b 2>&5 || hard_links=no
14936   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14937   { echo "$as_me:$LINENO: result: $hard_links" >&5
14938 echo "${ECHO_T}$hard_links" >&6; }
14939   if test "$hard_links" = no; then
14940     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14941 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14942     need_locks=warn
14943   fi
14944 else
14945   need_locks=no
14946 fi
14947
14948
14949
14950     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14951 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14952
14953   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14954   case $host_os in
14955   aix[4-9]*)
14956     # If we're using GNU nm, then we don't want the "-C" option.
14957     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14958     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14959       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'
14960     else
14961       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'
14962     fi
14963     ;;
14964   pw32*)
14965     export_symbols_cmds_CXX="$ltdll_cmds"
14966   ;;
14967   cygwin* | mingw* | cegcc*)
14968     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'
14969   ;;
14970   *)
14971     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14972   ;;
14973   esac
14974   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14975
14976 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14977 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14978 test "$ld_shlibs_CXX" = no && can_build_shared=no
14979
14980 with_gnu_ld_CXX=$with_gnu_ld
14981
14982
14983
14984
14985
14986
14987 #
14988 # Do we need to explicitly link libc?
14989 #
14990 case "x$archive_cmds_need_lc_CXX" in
14991 x|xyes)
14992   # Assume -lc should be added
14993   archive_cmds_need_lc_CXX=yes
14994
14995   if test "$enable_shared" = yes && test "$GCC" = yes; then
14996     case $archive_cmds_CXX in
14997     *'~'*)
14998       # FIXME: we may have to deal with multi-command sequences.
14999       ;;
15000     '$CC '*)
15001       # Test whether the compiler implicitly links with -lc since on some
15002       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15003       # to ld, don't add -lc before -lgcc.
15004       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15005 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15006       $RM conftest*
15007       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15008
15009       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15010   (eval $ac_compile) 2>&5
15011   ac_status=$?
15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013   (exit $ac_status); } 2>conftest.err; then
15014         soname=conftest
15015         lib=conftest
15016         libobjs=conftest.$ac_objext
15017         deplibs=
15018         wl=$lt_prog_compiler_wl_CXX
15019         pic_flag=$lt_prog_compiler_pic_CXX
15020         compiler_flags=-v
15021         linker_flags=-v
15022         verstring=
15023         output_objdir=.
15024         libname=conftest
15025         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15026         allow_undefined_flag_CXX=
15027         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15028   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15029   ac_status=$?
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); }
15032         then
15033           archive_cmds_need_lc_CXX=no
15034         else
15035           archive_cmds_need_lc_CXX=yes
15036         fi
15037         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15038       else
15039         cat conftest.err 1>&5
15040       fi
15041       $RM conftest*
15042       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15043 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15044       ;;
15045     esac
15046   fi
15047   ;;
15048 esac
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
15110
15111
15112
15113     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15114 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15115
15116 library_names_spec=
15117 libname_spec='lib$name'
15118 soname_spec=
15119 shrext_cmds=".so"
15120 postinstall_cmds=
15121 postuninstall_cmds=
15122 finish_cmds=
15123 finish_eval=
15124 shlibpath_var=
15125 shlibpath_overrides_runpath=unknown
15126 version_type=none
15127 dynamic_linker="$host_os ld.so"
15128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15129 need_lib_prefix=unknown
15130 hardcode_into_libs=no
15131
15132 # when you set need_version to no, make sure it does not cause -set_version
15133 # flags to be left without arguments
15134 need_version=unknown
15135
15136 case $host_os in
15137 aix3*)
15138   version_type=linux
15139   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15140   shlibpath_var=LIBPATH
15141
15142   # AIX 3 has no versioning support, so we append a major version to the name.
15143   soname_spec='${libname}${release}${shared_ext}$major'
15144   ;;
15145
15146 aix[4-9]*)
15147   version_type=linux
15148   need_lib_prefix=no
15149   need_version=no
15150   hardcode_into_libs=yes
15151   if test "$host_cpu" = ia64; then
15152     # AIX 5 supports IA64
15153     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15154     shlibpath_var=LD_LIBRARY_PATH
15155   else
15156     # With GCC up to 2.95.x, collect2 would create an import file
15157     # for dependence libraries.  The import file would start with
15158     # the line `#! .'.  This would cause the generated library to
15159     # depend on `.', always an invalid library.  This was fixed in
15160     # development snapshots of GCC prior to 3.0.
15161     case $host_os in
15162       aix4 | aix4.[01] | aix4.[01].*)
15163       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15164            echo ' yes '
15165            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15166         :
15167       else
15168         can_build_shared=no
15169       fi
15170       ;;
15171     esac
15172     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15173     # soname into executable. Probably we can add versioning support to
15174     # collect2, so additional links can be useful in future.
15175     if test "$aix_use_runtimelinking" = yes; then
15176       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15177       # instead of lib<name>.a to let people know that these are not
15178       # typical AIX shared libraries.
15179       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180     else
15181       # We preserve .a as extension for shared libraries through AIX4.2
15182       # and later when we are not doing run time linking.
15183       library_names_spec='${libname}${release}.a $libname.a'
15184       soname_spec='${libname}${release}${shared_ext}$major'
15185     fi
15186     shlibpath_var=LIBPATH
15187   fi
15188   ;;
15189
15190 amigaos*)
15191   case $host_cpu in
15192   powerpc)
15193     # Since July 2007 AmigaOS4 officially supports .so libraries.
15194     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196     ;;
15197   m68k)
15198     library_names_spec='$libname.ixlibrary $libname.a'
15199     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15200     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'
15201     ;;
15202   esac
15203   ;;
15204
15205 beos*)
15206   library_names_spec='${libname}${shared_ext}'
15207   dynamic_linker="$host_os ld.so"
15208   shlibpath_var=LIBRARY_PATH
15209   ;;
15210
15211 bsdi[45]*)
15212   version_type=linux
15213   need_version=no
15214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215   soname_spec='${libname}${release}${shared_ext}$major'
15216   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15217   shlibpath_var=LD_LIBRARY_PATH
15218   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15219   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15220   # the default ld.so.conf also contains /usr/contrib/lib and
15221   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15222   # libtool to hard-code these into programs
15223   ;;
15224
15225 cygwin* | mingw* | pw32* | cegcc*)
15226   version_type=windows
15227   shrext_cmds=".dll"
15228   need_version=no
15229   need_lib_prefix=no
15230
15231   case $GCC,$host_os in
15232   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15233     library_names_spec='$libname.dll.a'
15234     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15235     postinstall_cmds='base_file=`basename \${file}`~
15236       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15237       dldir=$destdir/`dirname \$dlpath`~
15238       test -d \$dldir || mkdir -p \$dldir~
15239       $install_prog $dir/$dlname \$dldir/$dlname~
15240       chmod a+x \$dldir/$dlname~
15241       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15242         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15243       fi'
15244     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15245       dlpath=$dir/\$dldll~
15246        $RM \$dlpath'
15247     shlibpath_overrides_runpath=yes
15248
15249     case $host_os in
15250     cygwin*)
15251       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15252       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15253       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15254       ;;
15255     mingw* | cegcc*)
15256       # MinGW DLLs use traditional 'lib' prefix
15257       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15258       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15259       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15260         # It is most probably a Windows format PATH printed by
15261         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15262         # path with ; separators, and with drive letters. We can handle the
15263         # drive letters (cygwin fileutils understands them), so leave them,
15264         # especially as we might pass files found there to a mingw objdump,
15265         # which wouldn't understand a cygwinified path. Ahh.
15266         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15267       else
15268         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15269       fi
15270       ;;
15271     pw32*)
15272       # pw32 DLLs use 'pw' prefix rather than 'lib'
15273       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15274       ;;
15275     esac
15276     ;;
15277
15278   *)
15279     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15280     ;;
15281   esac
15282   dynamic_linker='Win32 ld.exe'
15283   # FIXME: first we should search . and the directory the executable is in
15284   shlibpath_var=PATH
15285   ;;
15286
15287 darwin* | rhapsody*)
15288   dynamic_linker="$host_os dyld"
15289   version_type=darwin
15290   need_lib_prefix=no
15291   need_version=no
15292   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15293   soname_spec='${libname}${release}${major}$shared_ext'
15294   shlibpath_overrides_runpath=yes
15295   shlibpath_var=DYLD_LIBRARY_PATH
15296   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15297
15298   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15299   ;;
15300
15301 dgux*)
15302   version_type=linux
15303   need_lib_prefix=no
15304   need_version=no
15305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15306   soname_spec='${libname}${release}${shared_ext}$major'
15307   shlibpath_var=LD_LIBRARY_PATH
15308   ;;
15309
15310 freebsd1*)
15311   dynamic_linker=no
15312   ;;
15313
15314 freebsd* | dragonfly*)
15315   # DragonFly does not have aout.  When/if they implement a new
15316   # versioning mechanism, adjust this.
15317   if test -x /usr/bin/objformat; then
15318     objformat=`/usr/bin/objformat`
15319   else
15320     case $host_os in
15321     freebsd[123]*) objformat=aout ;;
15322     *) objformat=elf ;;
15323     esac
15324   fi
15325   version_type=freebsd-$objformat
15326   case $version_type in
15327     freebsd-elf*)
15328       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15329       need_version=no
15330       need_lib_prefix=no
15331       ;;
15332     freebsd-*)
15333       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15334       need_version=yes
15335       ;;
15336   esac
15337   shlibpath_var=LD_LIBRARY_PATH
15338   case $host_os in
15339   freebsd2*)
15340     shlibpath_overrides_runpath=yes
15341     ;;
15342   freebsd3.[01]* | freebsdelf3.[01]*)
15343     shlibpath_overrides_runpath=yes
15344     hardcode_into_libs=yes
15345     ;;
15346   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15347   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15348     shlibpath_overrides_runpath=no
15349     hardcode_into_libs=yes
15350     ;;
15351   *) # from 4.6 on, and DragonFly
15352     shlibpath_overrides_runpath=yes
15353     hardcode_into_libs=yes
15354     ;;
15355   esac
15356   ;;
15357
15358 gnu*)
15359   version_type=linux
15360   need_lib_prefix=no
15361   need_version=no
15362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15363   soname_spec='${libname}${release}${shared_ext}$major'
15364   shlibpath_var=LD_LIBRARY_PATH
15365   hardcode_into_libs=yes
15366   ;;
15367
15368 hpux9* | hpux10* | hpux11*)
15369   # Give a soname corresponding to the major version so that dld.sl refuses to
15370   # link against other versions.
15371   version_type=sunos
15372   need_lib_prefix=no
15373   need_version=no
15374   case $host_cpu in
15375   ia64*)
15376     shrext_cmds='.so'
15377     hardcode_into_libs=yes
15378     dynamic_linker="$host_os dld.so"
15379     shlibpath_var=LD_LIBRARY_PATH
15380     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382     soname_spec='${libname}${release}${shared_ext}$major'
15383     if test "X$HPUX_IA64_MODE" = X32; then
15384       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15385     else
15386       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15387     fi
15388     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15389     ;;
15390   hppa*64*)
15391     shrext_cmds='.sl'
15392     hardcode_into_libs=yes
15393     dynamic_linker="$host_os dld.sl"
15394     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15395     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397     soname_spec='${libname}${release}${shared_ext}$major'
15398     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15399     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15400     ;;
15401   *)
15402     shrext_cmds='.sl'
15403     dynamic_linker="$host_os dld.sl"
15404     shlibpath_var=SHLIB_PATH
15405     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407     soname_spec='${libname}${release}${shared_ext}$major'
15408     ;;
15409   esac
15410   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15411   postinstall_cmds='chmod 555 $lib'
15412   ;;
15413
15414 interix[3-9]*)
15415   version_type=linux
15416   need_lib_prefix=no
15417   need_version=no
15418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15419   soname_spec='${libname}${release}${shared_ext}$major'
15420   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15421   shlibpath_var=LD_LIBRARY_PATH
15422   shlibpath_overrides_runpath=no
15423   hardcode_into_libs=yes
15424   ;;
15425
15426 irix5* | irix6* | nonstopux*)
15427   case $host_os in
15428     nonstopux*) version_type=nonstopux ;;
15429     *)
15430         if test "$lt_cv_prog_gnu_ld" = yes; then
15431                 version_type=linux
15432         else
15433                 version_type=irix
15434         fi ;;
15435   esac
15436   need_lib_prefix=no
15437   need_version=no
15438   soname_spec='${libname}${release}${shared_ext}$major'
15439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15440   case $host_os in
15441   irix5* | nonstopux*)
15442     libsuff= shlibsuff=
15443     ;;
15444   *)
15445     case $LD in # libtool.m4 will add one of these switches to LD
15446     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15447       libsuff= shlibsuff= libmagic=32-bit;;
15448     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15449       libsuff=32 shlibsuff=N32 libmagic=N32;;
15450     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15451       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15452     *) libsuff= shlibsuff= libmagic=never-match;;
15453     esac
15454     ;;
15455   esac
15456   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15457   shlibpath_overrides_runpath=no
15458   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15459   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15460   hardcode_into_libs=yes
15461   ;;
15462
15463 # No shared lib support for Linux oldld, aout, or coff.
15464 linux*oldld* | linux*aout* | linux*coff*)
15465   dynamic_linker=no
15466   ;;
15467
15468 # This must be Linux ELF.
15469 linux* | k*bsd*-gnu)
15470   version_type=linux
15471   need_lib_prefix=no
15472   need_version=no
15473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474   soname_spec='${libname}${release}${shared_ext}$major'
15475   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15476   shlibpath_var=LD_LIBRARY_PATH
15477   shlibpath_overrides_runpath=no
15478   # Some binutils ld are patched to set DT_RUNPATH
15479   save_LDFLAGS=$LDFLAGS
15480   save_libdir=$libdir
15481   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15482        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15483   cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h.  */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h.  */
15489
15490 int
15491 main ()
15492 {
15493
15494   ;
15495   return 0;
15496 }
15497 _ACEOF
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (ac_try="$ac_link"
15500 case "(($ac_try" in
15501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502   *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505   (eval "$ac_link") 2>conftest.er1
15506   ac_status=$?
15507   grep -v '^ *+' conftest.er1 >conftest.err
15508   rm -f conftest.er1
15509   cat conftest.err >&5
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); } && {
15512          test -z "$ac_cxx_werror_flag" ||
15513          test ! -s conftest.err
15514        } && test -s conftest$ac_exeext &&
15515        $as_test_x conftest$ac_exeext; then
15516   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15517   shlibpath_overrides_runpath=yes
15518 fi
15519
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524
15525 fi
15526
15527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15528       conftest$ac_exeext conftest.$ac_ext
15529   LDFLAGS=$save_LDFLAGS
15530   libdir=$save_libdir
15531
15532   # This implies no fast_install, which is unacceptable.
15533   # Some rework will be needed to allow for fast_install
15534   # before this can be enabled.
15535   hardcode_into_libs=yes
15536
15537   # Append ld.so.conf contents to the search path
15538   if test -f /etc/ld.so.conf; then
15539     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' ' '`
15540     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15541   fi
15542
15543   # We used to test for /lib/ld.so.1 and disable shared libraries on
15544   # powerpc, because MkLinux only supported shared libraries with the
15545   # GNU dynamic linker.  Since this was broken with cross compilers,
15546   # most powerpc-linux boxes support dynamic linking these days and
15547   # people can always --disable-shared, the test was removed, and we
15548   # assume the GNU/Linux dynamic linker is in use.
15549   dynamic_linker='GNU/Linux ld.so'
15550   ;;
15551
15552 netbsd*)
15553   version_type=sunos
15554   need_lib_prefix=no
15555   need_version=no
15556   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15558     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15559     dynamic_linker='NetBSD (a.out) ld.so'
15560   else
15561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15562     soname_spec='${libname}${release}${shared_ext}$major'
15563     dynamic_linker='NetBSD ld.elf_so'
15564   fi
15565   shlibpath_var=LD_LIBRARY_PATH
15566   shlibpath_overrides_runpath=yes
15567   hardcode_into_libs=yes
15568   ;;
15569
15570 newsos6)
15571   version_type=linux
15572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573   shlibpath_var=LD_LIBRARY_PATH
15574   shlibpath_overrides_runpath=yes
15575   ;;
15576
15577 *nto* | *qnx*)
15578   version_type=qnx
15579   need_lib_prefix=no
15580   need_version=no
15581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582   soname_spec='${libname}${release}${shared_ext}$major'
15583   shlibpath_var=LD_LIBRARY_PATH
15584   shlibpath_overrides_runpath=no
15585   hardcode_into_libs=yes
15586   dynamic_linker='ldqnx.so'
15587   ;;
15588
15589 openbsd*)
15590   version_type=sunos
15591   sys_lib_dlsearch_path_spec="/usr/lib"
15592   need_lib_prefix=no
15593   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15594   case $host_os in
15595     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15596     *)                          need_version=no  ;;
15597   esac
15598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15599   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15600   shlibpath_var=LD_LIBRARY_PATH
15601   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15602     case $host_os in
15603       openbsd2.[89] | openbsd2.[89].*)
15604         shlibpath_overrides_runpath=no
15605         ;;
15606       *)
15607         shlibpath_overrides_runpath=yes
15608         ;;
15609       esac
15610   else
15611     shlibpath_overrides_runpath=yes
15612   fi
15613   ;;
15614
15615 os2*)
15616   libname_spec='$name'
15617   shrext_cmds=".dll"
15618   need_lib_prefix=no
15619   library_names_spec='$libname${shared_ext} $libname.a'
15620   dynamic_linker='OS/2 ld.exe'
15621   shlibpath_var=LIBPATH
15622   ;;
15623
15624 osf3* | osf4* | osf5*)
15625   version_type=osf
15626   need_lib_prefix=no
15627   need_version=no
15628   soname_spec='${libname}${release}${shared_ext}$major'
15629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630   shlibpath_var=LD_LIBRARY_PATH
15631   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15632   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15633   ;;
15634
15635 rdos*)
15636   dynamic_linker=no
15637   ;;
15638
15639 solaris*)
15640   version_type=linux
15641   need_lib_prefix=no
15642   need_version=no
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644   soname_spec='${libname}${release}${shared_ext}$major'
15645   shlibpath_var=LD_LIBRARY_PATH
15646   shlibpath_overrides_runpath=yes
15647   hardcode_into_libs=yes
15648   # ldd complains unless libraries are executable
15649   postinstall_cmds='chmod +x $lib'
15650   ;;
15651
15652 sunos4*)
15653   version_type=sunos
15654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15655   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15656   shlibpath_var=LD_LIBRARY_PATH
15657   shlibpath_overrides_runpath=yes
15658   if test "$with_gnu_ld" = yes; then
15659     need_lib_prefix=no
15660   fi
15661   need_version=yes
15662   ;;
15663
15664 sysv4 | sysv4.3*)
15665   version_type=linux
15666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15667   soname_spec='${libname}${release}${shared_ext}$major'
15668   shlibpath_var=LD_LIBRARY_PATH
15669   case $host_vendor in
15670     sni)
15671       shlibpath_overrides_runpath=no
15672       need_lib_prefix=no
15673       runpath_var=LD_RUN_PATH
15674       ;;
15675     siemens)
15676       need_lib_prefix=no
15677       ;;
15678     motorola)
15679       need_lib_prefix=no
15680       need_version=no
15681       shlibpath_overrides_runpath=no
15682       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15683       ;;
15684   esac
15685   ;;
15686
15687 sysv4*MP*)
15688   if test -d /usr/nec ;then
15689     version_type=linux
15690     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15691     soname_spec='$libname${shared_ext}.$major'
15692     shlibpath_var=LD_LIBRARY_PATH
15693   fi
15694   ;;
15695
15696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15697   version_type=freebsd-elf
15698   need_lib_prefix=no
15699   need_version=no
15700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15701   soname_spec='${libname}${release}${shared_ext}$major'
15702   shlibpath_var=LD_LIBRARY_PATH
15703   shlibpath_overrides_runpath=yes
15704   hardcode_into_libs=yes
15705   if test "$with_gnu_ld" = yes; then
15706     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15707   else
15708     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15709     case $host_os in
15710       sco3.2v5*)
15711         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15712         ;;
15713     esac
15714   fi
15715   sys_lib_dlsearch_path_spec='/usr/lib'
15716   ;;
15717
15718 tpf*)
15719   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15720   version_type=linux
15721   need_lib_prefix=no
15722   need_version=no
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   shlibpath_overrides_runpath=no
15726   hardcode_into_libs=yes
15727   ;;
15728
15729 uts4*)
15730   version_type=linux
15731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15732   soname_spec='${libname}${release}${shared_ext}$major'
15733   shlibpath_var=LD_LIBRARY_PATH
15734   ;;
15735
15736 *)
15737   dynamic_linker=no
15738   ;;
15739 esac
15740 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15741 echo "${ECHO_T}$dynamic_linker" >&6; }
15742 test "$dynamic_linker" = no && can_build_shared=no
15743
15744 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15745 if test "$GCC" = yes; then
15746   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15747 fi
15748
15749 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15750   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15751 fi
15752 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15753   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15754 fi
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
15788
15789
15790
15791     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15792 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15793 hardcode_action_CXX=
15794 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15795    test -n "$runpath_var_CXX" ||
15796    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15797
15798   # We can hardcode non-existent directories.
15799   if test "$hardcode_direct_CXX" != no &&
15800      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15801      # have to relink, otherwise we might link with an installed library
15802      # when we should be linking with a yet-to-be-installed one
15803      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15804      test "$hardcode_minus_L_CXX" != no; then
15805     # Linking always hardcodes the temporary library directory.
15806     hardcode_action_CXX=relink
15807   else
15808     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15809     hardcode_action_CXX=immediate
15810   fi
15811 else
15812   # We cannot hardcode anything, or else we can only hardcode existing
15813   # directories.
15814   hardcode_action_CXX=unsupported
15815 fi
15816 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15817 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15818
15819 if test "$hardcode_action_CXX" = relink ||
15820    test "$inherit_rpath_CXX" = yes; then
15821   # Fast installation is not supported
15822   enable_fast_install=no
15823 elif test "$shlibpath_overrides_runpath" = yes ||
15824      test "$enable_shared" = no; then
15825   # Fast installation is not necessary
15826   enable_fast_install=needless
15827 fi
15828
15829
15830
15831
15832
15833
15834
15835   fi # test -n "$compiler"
15836
15837   CC=$lt_save_CC
15838   LDCXX=$LD
15839   LD=$lt_save_LD
15840   GCC=$lt_save_GCC
15841   with_gnu_ld=$lt_save_with_gnu_ld
15842   lt_cv_path_LDCXX=$lt_cv_path_LD
15843   lt_cv_path_LD=$lt_save_path_LD
15844   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15845   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15846 fi # test "$_lt_caught_CXX_error" != yes
15847
15848 ac_ext=c
15849 ac_cpp='$CPP $CPPFLAGS'
15850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866         ac_config_commands="$ac_config_commands libtool"
15867
15868
15869
15870
15871 # Only expand once:
15872
15873
15874
15875
15876 if test x$use_libtool != xno; then
15877    DEFAULT_OBJECT_TYPE=".lo"
15878    DEFAULT_ARCHIVE_TYPE=".la"
15879    DEFAULT_SHARED_OBJECT_TYPE=".la"
15880    LIBTOOL="\$(LIBTOOL)"
15881    LIBTOOL_INSTALL_TARGET="libtool-install"
15882    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15883    LIBTOOL_CLEAN_TARGET="libtool-clean"
15884    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15885 else
15886    DEFAULT_OBJECT_TYPE=".o"
15887    DEFAULT_ARCHIVE_TYPE=".a"
15888    DEFAULT_SHARED_OBJECT_TYPE=".so"
15889    LIBTOOL="# \$(LIBTOOL)"
15890    LIBTOOL_INSTALL_TARGET=""
15891    LIBTOOL_UNINSTALL_TARGET=""
15892    LIBTOOL_CLEAN_TARGET=""
15893    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15894 fi
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905 # Check whether --enable-includes was given.
15906 if test "${enable_includes+set}" = set; then
15907   enableval=$enable_includes;
15908        if test x$enableval = xyes; then
15909           install_includes=yes
15910        fi
15911
15912
15913 fi
15914
15915
15916
15917 if test x$use_libtool != xno -a x$install_includes = xyes; then
15918    INCLUDE_INSTALL_TARGET="install-includes"
15919    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15920 else
15921    INCLUDE_INSTALL_TARGET=""
15922    INCLUDE_UNINSTALL_TARGET=""
15923 fi
15924
15925
15926
15927
15928 { echo "$as_me:$LINENO: checking host system type" >&5
15929 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15930 if test "${ac_cv_host+set}" = set; then
15931   echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933   if test "x$host_alias" = x; then
15934   ac_cv_host=$ac_cv_build
15935 else
15936   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15937     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15938 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15939    { (exit 1); exit 1; }; }
15940 fi
15941
15942 fi
15943 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15944 echo "${ECHO_T}$ac_cv_host" >&6; }
15945 case $ac_cv_host in
15946 *-*-*) ;;
15947 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15948 echo "$as_me: error: invalid value of canonical host" >&2;}
15949    { (exit 1); exit 1; }; };;
15950 esac
15951 host=$ac_cv_host
15952 ac_save_IFS=$IFS; IFS='-'
15953 set x $ac_cv_host
15954 shift
15955 host_cpu=$1
15956 host_vendor=$2
15957 shift; shift
15958 # Remember, the first character of IFS is used to create $*,
15959 # except with old shells:
15960 host_os=$*
15961 IFS=$ac_save_IFS
15962 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15963
15964
15965 case $host_os in
15966   *cygwin* ) CYGWIN=yes;;
15967          * ) CYGWIN=no;;
15968 esac
15969
15970 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15971 then
15972
15973
15974 if $TRUEPRG; then
15975   HAVE_SUN_OS_TRUE=
15976   HAVE_SUN_OS_FALSE='#'
15977 else
15978   HAVE_SUN_OS_TRUE='#'
15979   HAVE_SUN_OS_FALSE=
15980 fi
15981         cat >>confdefs.h <<\_ACEOF
15982 #define HAVE_SUN_OS 1
15983 _ACEOF
15984
15985 else
15986
15987
15988 if $FALSEPRG; then
15989   HAVE_SUN_OS_TRUE=
15990   HAVE_SUN_OS_FALSE='#'
15991 else
15992   HAVE_SUN_OS_TRUE='#'
15993   HAVE_SUN_OS_FALSE=
15994 fi
15995 fi
15996
15997 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15998 then
15999
16000
16001 if $TRUEPRG; then
16002   HAVE_OSF1_OS_TRUE=
16003   HAVE_OSF1_OS_FALSE='#'
16004 else
16005   HAVE_OSF1_OS_TRUE='#'
16006   HAVE_OSF1_OS_FALSE=
16007 fi
16008         cat >>confdefs.h <<\_ACEOF
16009 #define HAVE_OSF1_OS 1
16010 _ACEOF
16011
16012 else
16013
16014
16015 if $FALSEPRG; then
16016   HAVE_OSF1_OS_TRUE=
16017   HAVE_OSF1_OS_FALSE='#'
16018 else
16019   HAVE_OSF1_OS_TRUE='#'
16020   HAVE_OSF1_OS_FALSE=
16021 fi
16022 fi
16023
16024 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16025 then
16026
16027
16028 if $TRUEPRG; then
16029   HAVE_AIX_OS_TRUE=
16030   HAVE_AIX_OS_FALSE='#'
16031 else
16032   HAVE_AIX_OS_TRUE='#'
16033   HAVE_AIX_OS_FALSE=
16034 fi
16035         cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_AIX_OS 1
16037 _ACEOF
16038
16039 else
16040
16041
16042 if $FALSEPRG; then
16043   HAVE_AIX_OS_TRUE=
16044   HAVE_AIX_OS_FALSE='#'
16045 else
16046   HAVE_AIX_OS_TRUE='#'
16047   HAVE_AIX_OS_FALSE=
16048 fi
16049 fi
16050
16051 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16052 then
16053
16054
16055 if $TRUEPRG; then
16056   HAVE_HPUX_OS_TRUE=
16057   HAVE_HPUX_OS_FALSE='#'
16058 else
16059   HAVE_HPUX_OS_TRUE='#'
16060   HAVE_HPUX_OS_FALSE=
16061 fi
16062         cat >>confdefs.h <<\_ACEOF
16063 #define HAVE_HPUX_OS 1
16064 _ACEOF
16065
16066 else
16067
16068
16069 if $FALSEPRG; then
16070   HAVE_HPUX_OS_TRUE=
16071   HAVE_HPUX_OS_FALSE='#'
16072 else
16073   HAVE_HPUX_OS_TRUE='#'
16074   HAVE_HPUX_OS_FALSE=
16075 fi
16076 fi
16077
16078 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16079 then
16080
16081
16082 if $TRUEPRG; then
16083   HAVE_LINUX_OS_TRUE=
16084   HAVE_LINUX_OS_FALSE='#'
16085 else
16086   HAVE_LINUX_OS_TRUE='#'
16087   HAVE_LINUX_OS_FALSE=
16088 fi
16089         cat >>confdefs.h <<\_ACEOF
16090 #define HAVE_LINUX_OS 1
16091 _ACEOF
16092
16093 else
16094
16095
16096 if $FALSEPRG; then
16097   HAVE_LINUX_OS_TRUE=
16098   HAVE_LINUX_OS_FALSE='#'
16099 else
16100   HAVE_LINUX_OS_TRUE='#'
16101   HAVE_LINUX_OS_FALSE=
16102 fi
16103 fi
16104
16105 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16106 then
16107
16108
16109 if $TRUEPRG; then
16110   HAVE_FREEBSD_OS_TRUE=
16111   HAVE_FREEBSD_OS_FALSE='#'
16112 else
16113   HAVE_FREEBSD_OS_TRUE='#'
16114   HAVE_FREEBSD_OS_FALSE=
16115 fi
16116         cat >>confdefs.h <<\_ACEOF
16117 #define HAVE_FREEBSD_OS 1
16118 _ACEOF
16119
16120 else
16121
16122
16123 if $FALSEPRG; then
16124   HAVE_FREEBSD_OS_TRUE=
16125   HAVE_FREEBSD_OS_FALSE='#'
16126 else
16127   HAVE_FREEBSD_OS_TRUE='#'
16128   HAVE_FREEBSD_OS_FALSE=
16129 fi
16130 fi
16131
16132 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16133 then
16134
16135
16136 if $TRUEPRG; then
16137   HAVE_NETBSD_OS_TRUE=
16138   HAVE_NETBSD_OS_FALSE='#'
16139 else
16140   HAVE_NETBSD_OS_TRUE='#'
16141   HAVE_NETBSD_OS_FALSE=
16142 fi
16143         cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_NETBSD_OS 1
16145 _ACEOF
16146
16147 else
16148
16149
16150 if $FALSEPRG; then
16151   HAVE_NETBSD_OS_TRUE=
16152   HAVE_NETBSD_OS_FALSE='#'
16153 else
16154   HAVE_NETBSD_OS_TRUE='#'
16155   HAVE_NETBSD_OS_FALSE=
16156 fi
16157 fi
16158
16159 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16160 then
16161
16162
16163 if $TRUEPRG; then
16164   HAVE_OPENBSD_OS_TRUE=
16165   HAVE_OPENBSD_OS_FALSE='#'
16166 else
16167   HAVE_OPENBSD_OS_TRUE='#'
16168   HAVE_OPENBSD_OS_FALSE=
16169 fi
16170         cat >>confdefs.h <<\_ACEOF
16171 #define HAVE_OPENBSD_OS 1
16172 _ACEOF
16173
16174 else
16175
16176
16177 if $FALSEPRG; then
16178   HAVE_OPENBSD_OS_TRUE=
16179   HAVE_OPENBSD_OS_FALSE='#'
16180 else
16181   HAVE_OPENBSD_OS_TRUE='#'
16182   HAVE_OPENBSD_OS_FALSE=
16183 fi
16184 fi
16185
16186 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16187 then
16188
16189
16190 if $TRUEPRG; then
16191   HAVE_BSDI_OS_TRUE=
16192   HAVE_BSDI_OS_FALSE='#'
16193 else
16194   HAVE_BSDI_OS_TRUE='#'
16195   HAVE_BSDI_OS_FALSE=
16196 fi
16197         cat >>confdefs.h <<\_ACEOF
16198 #define HAVE_BSDI_OS 1
16199 _ACEOF
16200
16201 else
16202
16203
16204 if $FALSEPRG; then
16205   HAVE_BSDI_OS_TRUE=
16206   HAVE_BSDI_OS_FALSE='#'
16207 else
16208   HAVE_BSDI_OS_TRUE='#'
16209   HAVE_BSDI_OS_FALSE=
16210 fi
16211 fi
16212
16213 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16214 then
16215
16216
16217 if $TRUEPRG; then
16218   HAVE_SGI_OS_TRUE=
16219   HAVE_SGI_OS_FALSE='#'
16220 else
16221   HAVE_SGI_OS_TRUE='#'
16222   HAVE_SGI_OS_FALSE=
16223 fi
16224         cat >>confdefs.h <<\_ACEOF
16225 #define HAVE_SGI_OS 1
16226 _ACEOF
16227
16228 else
16229
16230
16231 if $FALSEPRG; then
16232   HAVE_SGI_OS_TRUE=
16233   HAVE_SGI_OS_FALSE='#'
16234 else
16235   HAVE_SGI_OS_TRUE='#'
16236   HAVE_SGI_OS_FALSE=
16237 fi
16238 fi
16239
16240 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16241 then
16242
16243
16244 if $TRUEPRG; then
16245   HAVE_IRIX_OS_TRUE=
16246   HAVE_IRIX_OS_FALSE='#'
16247 else
16248   HAVE_IRIX_OS_TRUE='#'
16249   HAVE_IRIX_OS_FALSE=
16250 fi
16251         cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_IRIX_OS 1
16253 _ACEOF
16254
16255 else
16256
16257
16258 if $FALSEPRG; then
16259   HAVE_IRIX_OS_TRUE=
16260   HAVE_IRIX_OS_FALSE='#'
16261 else
16262   HAVE_IRIX_OS_TRUE='#'
16263   HAVE_IRIX_OS_FALSE=
16264 fi
16265 fi
16266
16267 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16268 then
16269
16270
16271 if $TRUEPRG; then
16272   HAVE_DARWIN_OS_TRUE=
16273   HAVE_DARWIN_OS_FALSE='#'
16274 else
16275   HAVE_DARWIN_OS_TRUE='#'
16276   HAVE_DARWIN_OS_FALSE=
16277 fi
16278     cat >>confdefs.h <<\_ACEOF
16279 #define HAVE_DARWIN_OS 1
16280 _ACEOF
16281
16282 else
16283
16284
16285 if $FALSEPRG; then
16286   HAVE_DARWIN_OS_TRUE=
16287   HAVE_DARWIN_OS_FALSE='#'
16288 else
16289   HAVE_DARWIN_OS_TRUE='#'
16290   HAVE_DARWIN_OS_FALSE=
16291 fi
16292 fi
16293
16294
16295 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16296 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16297 if test "x$DISTNAME" != "x"
16298 then
16299         echo "distname set to $DISTNAME"
16300 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16301 then
16302         DISTNAME=alpha
16303 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16304 then
16305         DISTNAME=aix
16306 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16307 then
16308         DISTNAME=hpux
16309 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16310 then
16311         DISTNAME=solaris
16312 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16313 then
16314         DISTNAME=freebsd
16315 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16316 then
16317         DISTNAME=netbsd
16318 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16319 then
16320         DISTNAME=openbsd
16321 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16322 then
16323         DISTNAME=irix
16324 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16325 then
16326         DISTNAME=bsdi
16327 elif test -f /etc/SuSE-release
16328 then
16329         DISTNAME=suse
16330 elif test -d /etc/SuSEconfig
16331 then
16332         DISTNAME=suse5
16333 elif test -f /etc/mandrake-release
16334 then
16335         DISTNAME=mandrake
16336 elif test -f /etc/whitebox-release
16337 then
16338        DISTNAME=redhat
16339 elif test -f /etc/redhat-release
16340 then
16341         DISTNAME=redhat
16342 elif test -f /etc/gentoo-release
16343 then
16344         DISTNAME=gentoo
16345 elif test -f /etc/debian_version
16346 then
16347         DISTNAME=debian
16348 elif test -f /etc/slackware-version
16349 then
16350         DISTNAME=slackware
16351 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16352 then
16353     DISTNAME=darwin
16354 elif test -f /etc/engarde-version
16355 then
16356         DISTNAME=engarde
16357 elif test "$CYGWIN" = yes
16358 then
16359         DISTNAME=cygwin
16360         cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_CYGWIN 1
16362 _ACEOF
16363
16364 else
16365         DISTNAME=unknown
16366 fi
16367 { echo "$as_me:$LINENO: result: done" >&5
16368 echo "${ECHO_T}done" >&6; }
16369
16370
16371 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16372 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16373 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16374 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16375   echo $ECHO_N "(cached) $ECHO_C" >&6
16376 else
16377   cat >conftest.make <<\_ACEOF
16378 SHELL = /bin/sh
16379 all:
16380         @echo '@@@%%%=$(MAKE)=@@@%%%'
16381 _ACEOF
16382 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16383 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16384   *@@@%%%=?*=@@@%%%*)
16385     eval ac_cv_prog_make_${ac_make}_set=yes;;
16386   *)
16387     eval ac_cv_prog_make_${ac_make}_set=no;;
16388 esac
16389 rm -f conftest.make
16390 fi
16391 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16392   { echo "$as_me:$LINENO: result: yes" >&5
16393 echo "${ECHO_T}yes" >&6; }
16394   SET_MAKE=
16395 else
16396   { echo "$as_me:$LINENO: result: no" >&5
16397 echo "${ECHO_T}no" >&6; }
16398   SET_MAKE="MAKE=${MAKE-make}"
16399 fi
16400
16401
16402
16403         MKINSTALLDIRS=
16404   if test -n "$ac_aux_dir"; then
16405     case "$ac_aux_dir" in
16406       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16407       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16408     esac
16409   fi
16410   if test -z "$MKINSTALLDIRS"; then
16411     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16412   fi
16413
16414
16415
16416   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16417 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16418     # Check whether --enable-nls was given.
16419 if test "${enable_nls+set}" = set; then
16420   enableval=$enable_nls; USE_NLS=$enableval
16421 else
16422   USE_NLS=yes
16423 fi
16424
16425   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16426 echo "${ECHO_T}$USE_NLS" >&6; }
16427
16428
16429
16430
16431
16432
16433 # Prepare PATH_SEPARATOR.
16434 # The user is always right.
16435 if test "${PATH_SEPARATOR+set}" != set; then
16436   echo "#! /bin/sh" >conf$$.sh
16437   echo  "exit 0"   >>conf$$.sh
16438   chmod +x conf$$.sh
16439   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16440     PATH_SEPARATOR=';'
16441   else
16442     PATH_SEPARATOR=:
16443   fi
16444   rm -f conf$$.sh
16445 fi
16446
16447 # Find out how to test for executable files. Don't use a zero-byte file,
16448 # as systems may use methods other than mode bits to determine executability.
16449 cat >conf$$.file <<_ASEOF
16450 #! /bin/sh
16451 exit 0
16452 _ASEOF
16453 chmod +x conf$$.file
16454 if test -x conf$$.file >/dev/null 2>&1; then
16455   ac_executable_p="test -x"
16456 else
16457   ac_executable_p="test -f"
16458 fi
16459 rm -f conf$$.file
16460
16461 # Extract the first word of "msgfmt", so it can be a program name with args.
16462 set dummy msgfmt; ac_word=$2
16463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16465 if test "${ac_cv_path_MSGFMT+set}" = set; then
16466   echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468   case "$MSGFMT" in
16469   [\\/]* | ?:[\\/]*)
16470     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16471     ;;
16472   *)
16473     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16474     for ac_dir in $PATH; do
16475       IFS="$ac_save_IFS"
16476       test -z "$ac_dir" && ac_dir=.
16477       for ac_exec_ext in '' $ac_executable_extensions; do
16478         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16479           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16480           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16481      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16482             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16483             break 2
16484           fi
16485         fi
16486       done
16487     done
16488     IFS="$ac_save_IFS"
16489   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16490     ;;
16491 esac
16492 fi
16493 MSGFMT="$ac_cv_path_MSGFMT"
16494 if test "$MSGFMT" != ":"; then
16495   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16496 echo "${ECHO_T}$MSGFMT" >&6; }
16497 else
16498   { echo "$as_me:$LINENO: result: no" >&5
16499 echo "${ECHO_T}no" >&6; }
16500 fi
16501
16502   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16503 set dummy gmsgfmt; ac_word=$2
16504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16506 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16507   echo $ECHO_N "(cached) $ECHO_C" >&6
16508 else
16509   case $GMSGFMT in
16510   [\\/]* | ?:[\\/]*)
16511   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16512   ;;
16513   *)
16514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16516 do
16517   IFS=$as_save_IFS
16518   test -z "$as_dir" && as_dir=.
16519   for ac_exec_ext in '' $ac_executable_extensions; do
16520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16521     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16523     break 2
16524   fi
16525 done
16526 done
16527 IFS=$as_save_IFS
16528
16529   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16530   ;;
16531 esac
16532 fi
16533 GMSGFMT=$ac_cv_path_GMSGFMT
16534 if test -n "$GMSGFMT"; then
16535   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16536 echo "${ECHO_T}$GMSGFMT" >&6; }
16537 else
16538   { echo "$as_me:$LINENO: result: no" >&5
16539 echo "${ECHO_T}no" >&6; }
16540 fi
16541
16542
16543
16544
16545 # Prepare PATH_SEPARATOR.
16546 # The user is always right.
16547 if test "${PATH_SEPARATOR+set}" != set; then
16548   echo "#! /bin/sh" >conf$$.sh
16549   echo  "exit 0"   >>conf$$.sh
16550   chmod +x conf$$.sh
16551   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16552     PATH_SEPARATOR=';'
16553   else
16554     PATH_SEPARATOR=:
16555   fi
16556   rm -f conf$$.sh
16557 fi
16558
16559 # Find out how to test for executable files. Don't use a zero-byte file,
16560 # as systems may use methods other than mode bits to determine executability.
16561 cat >conf$$.file <<_ASEOF
16562 #! /bin/sh
16563 exit 0
16564 _ASEOF
16565 chmod +x conf$$.file
16566 if test -x conf$$.file >/dev/null 2>&1; then
16567   ac_executable_p="test -x"
16568 else
16569   ac_executable_p="test -f"
16570 fi
16571 rm -f conf$$.file
16572
16573 # Extract the first word of "xgettext", so it can be a program name with args.
16574 set dummy xgettext; ac_word=$2
16575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16577 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16578   echo $ECHO_N "(cached) $ECHO_C" >&6
16579 else
16580   case "$XGETTEXT" in
16581   [\\/]* | ?:[\\/]*)
16582     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16583     ;;
16584   *)
16585     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16586     for ac_dir in $PATH; do
16587       IFS="$ac_save_IFS"
16588       test -z "$ac_dir" && ac_dir=.
16589       for ac_exec_ext in '' $ac_executable_extensions; do
16590         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16591           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16592           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16593      (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
16594             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16595             break 2
16596           fi
16597         fi
16598       done
16599     done
16600     IFS="$ac_save_IFS"
16601   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16602     ;;
16603 esac
16604 fi
16605 XGETTEXT="$ac_cv_path_XGETTEXT"
16606 if test "$XGETTEXT" != ":"; then
16607   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16608 echo "${ECHO_T}$XGETTEXT" >&6; }
16609 else
16610   { echo "$as_me:$LINENO: result: no" >&5
16611 echo "${ECHO_T}no" >&6; }
16612 fi
16613
16614     rm -f messages.po
16615
16616
16617 # Prepare PATH_SEPARATOR.
16618 # The user is always right.
16619 if test "${PATH_SEPARATOR+set}" != set; then
16620   echo "#! /bin/sh" >conf$$.sh
16621   echo  "exit 0"   >>conf$$.sh
16622   chmod +x conf$$.sh
16623   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16624     PATH_SEPARATOR=';'
16625   else
16626     PATH_SEPARATOR=:
16627   fi
16628   rm -f conf$$.sh
16629 fi
16630
16631 # Find out how to test for executable files. Don't use a zero-byte file,
16632 # as systems may use methods other than mode bits to determine executability.
16633 cat >conf$$.file <<_ASEOF
16634 #! /bin/sh
16635 exit 0
16636 _ASEOF
16637 chmod +x conf$$.file
16638 if test -x conf$$.file >/dev/null 2>&1; then
16639   ac_executable_p="test -x"
16640 else
16641   ac_executable_p="test -f"
16642 fi
16643 rm -f conf$$.file
16644
16645 # Extract the first word of "msgmerge", so it can be a program name with args.
16646 set dummy msgmerge; ac_word=$2
16647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16649 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16650   echo $ECHO_N "(cached) $ECHO_C" >&6
16651 else
16652   case "$MSGMERGE" in
16653   [\\/]* | ?:[\\/]*)
16654     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16655     ;;
16656   *)
16657     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16658     for ac_dir in $PATH; do
16659       IFS="$ac_save_IFS"
16660       test -z "$ac_dir" && ac_dir=.
16661       for ac_exec_ext in '' $ac_executable_extensions; do
16662         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16663           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16664           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16665             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16666             break 2
16667           fi
16668         fi
16669       done
16670     done
16671     IFS="$ac_save_IFS"
16672   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16673     ;;
16674 esac
16675 fi
16676 MSGMERGE="$ac_cv_path_MSGMERGE"
16677 if test "$MSGMERGE" != ":"; then
16678   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16679 echo "${ECHO_T}$MSGMERGE" >&6; }
16680 else
16681   { echo "$as_me:$LINENO: result: no" >&5
16682 echo "${ECHO_T}no" >&6; }
16683 fi
16684
16685
16686       if test "$GMSGFMT" != ":"; then
16687             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16688        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16689       : ;
16690     else
16691       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16692       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16693 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16694       GMSGFMT=":"
16695     fi
16696   fi
16697
16698       if test "$XGETTEXT" != ":"; then
16699             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16700        (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
16701       : ;
16702     else
16703       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16704 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16705       XGETTEXT=":"
16706     fi
16707         rm -f messages.po
16708   fi
16709
16710   ac_config_commands="$ac_config_commands default-1"
16711
16712
16713
16714       if test "X$prefix" = "XNONE"; then
16715     acl_final_prefix="$ac_default_prefix"
16716   else
16717     acl_final_prefix="$prefix"
16718   fi
16719   if test "X$exec_prefix" = "XNONE"; then
16720     acl_final_exec_prefix='${prefix}'
16721   else
16722     acl_final_exec_prefix="$exec_prefix"
16723   fi
16724   acl_save_prefix="$prefix"
16725   prefix="$acl_final_prefix"
16726   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16727   prefix="$acl_save_prefix"
16728
16729
16730 # Check whether --with-gnu-ld was given.
16731 if test "${with_gnu_ld+set}" = set; then
16732   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16733 else
16734   with_gnu_ld=no
16735 fi
16736
16737 # Prepare PATH_SEPARATOR.
16738 # The user is always right.
16739 if test "${PATH_SEPARATOR+set}" != set; then
16740   echo "#! /bin/sh" >conf$$.sh
16741   echo  "exit 0"   >>conf$$.sh
16742   chmod +x conf$$.sh
16743   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16744     PATH_SEPARATOR=';'
16745   else
16746     PATH_SEPARATOR=:
16747   fi
16748   rm -f conf$$.sh
16749 fi
16750 ac_prog=ld
16751 if test "$GCC" = yes; then
16752   # Check if gcc -print-prog-name=ld gives a path.
16753   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16754 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16755   case $host in
16756   *-*-mingw*)
16757     # gcc leaves a trailing carriage return which upsets mingw
16758     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16759   *)
16760     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16761   esac
16762   case $ac_prog in
16763     # Accept absolute paths.
16764     [\\/]* | [A-Za-z]:[\\/]*)
16765       re_direlt='/[^/][^/]*/\.\./'
16766       # Canonicalize the path of ld
16767       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16768       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16769         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16770       done
16771       test -z "$LD" && LD="$ac_prog"
16772       ;;
16773   "")
16774     # If it fails, then pretend we aren't using GCC.
16775     ac_prog=ld
16776     ;;
16777   *)
16778     # If it is relative, then search for the first ld in PATH.
16779     with_gnu_ld=unknown
16780     ;;
16781   esac
16782 elif test "$with_gnu_ld" = yes; then
16783   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16784 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16785 else
16786   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16787 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16788 fi
16789 if test "${acl_cv_path_LD+set}" = set; then
16790   echo $ECHO_N "(cached) $ECHO_C" >&6
16791 else
16792   if test -z "$LD"; then
16793   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16794   for ac_dir in $PATH; do
16795     test -z "$ac_dir" && ac_dir=.
16796     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16797       acl_cv_path_LD="$ac_dir/$ac_prog"
16798       # Check to see if the program is GNU ld.  I'd rather use --version,
16799       # but apparently some GNU ld's only accept -v.
16800       # Break only if it was the GNU/non-GNU ld that we prefer.
16801       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16802       *GNU* | *'with BFD'*)
16803         test "$with_gnu_ld" != no && break ;;
16804       *)
16805         test "$with_gnu_ld" != yes && break ;;
16806       esac
16807     fi
16808   done
16809   IFS="$ac_save_ifs"
16810 else
16811   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16812 fi
16813 fi
16814
16815 LD="$acl_cv_path_LD"
16816 if test -n "$LD"; then
16817   { echo "$as_me:$LINENO: result: $LD" >&5
16818 echo "${ECHO_T}$LD" >&6; }
16819 else
16820   { echo "$as_me:$LINENO: result: no" >&5
16821 echo "${ECHO_T}no" >&6; }
16822 fi
16823 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16824 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16825    { (exit 1); exit 1; }; }
16826 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16827 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16828 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16829   echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16832 case `$LD -v 2>&1 </dev/null` in
16833 *GNU* | *'with BFD'*)
16834   acl_cv_prog_gnu_ld=yes ;;
16835 *)
16836   acl_cv_prog_gnu_ld=no ;;
16837 esac
16838 fi
16839 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16840 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16841 with_gnu_ld=$acl_cv_prog_gnu_ld
16842
16843
16844
16845
16846                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16847 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16848 if test "${acl_cv_rpath+set}" = set; then
16849   echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851
16852     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16853     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16854     . ./conftest.sh
16855     rm -f ./conftest.sh
16856     acl_cv_rpath=done
16857
16858 fi
16859 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16860 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16861   wl="$acl_cv_wl"
16862   libext="$acl_cv_libext"
16863   shlibext="$acl_cv_shlibext"
16864   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16865   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16866   hardcode_direct="$acl_cv_hardcode_direct"
16867   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16868     # Check whether --enable-rpath was given.
16869 if test "${enable_rpath+set}" = set; then
16870   enableval=$enable_rpath; :
16871 else
16872   enable_rpath=yes
16873 fi
16874
16875
16876
16877
16878
16879
16880
16881
16882     use_additional=yes
16883
16884   acl_save_prefix="$prefix"
16885   prefix="$acl_final_prefix"
16886   acl_save_exec_prefix="$exec_prefix"
16887   exec_prefix="$acl_final_exec_prefix"
16888
16889     eval additional_includedir=\"$includedir\"
16890     eval additional_libdir=\"$libdir\"
16891
16892   exec_prefix="$acl_save_exec_prefix"
16893   prefix="$acl_save_prefix"
16894
16895
16896 # Check whether --with-libiconv-prefix was given.
16897 if test "${with_libiconv_prefix+set}" = set; then
16898   withval=$with_libiconv_prefix;
16899     if test "X$withval" = "Xno"; then
16900       use_additional=no
16901     else
16902       if test "X$withval" = "X"; then
16903
16904   acl_save_prefix="$prefix"
16905   prefix="$acl_final_prefix"
16906   acl_save_exec_prefix="$exec_prefix"
16907   exec_prefix="$acl_final_exec_prefix"
16908
16909           eval additional_includedir=\"$includedir\"
16910           eval additional_libdir=\"$libdir\"
16911
16912   exec_prefix="$acl_save_exec_prefix"
16913   prefix="$acl_save_prefix"
16914
16915       else
16916         additional_includedir="$withval/include"
16917         additional_libdir="$withval/lib"
16918       fi
16919     fi
16920
16921 fi
16922
16923       LIBICONV=
16924   LTLIBICONV=
16925   INCICONV=
16926   rpathdirs=
16927   ltrpathdirs=
16928   names_already_handled=
16929   names_next_round='iconv '
16930   while test -n "$names_next_round"; do
16931     names_this_round="$names_next_round"
16932     names_next_round=
16933     for name in $names_this_round; do
16934       already_handled=
16935       for n in $names_already_handled; do
16936         if test "$n" = "$name"; then
16937           already_handled=yes
16938           break
16939         fi
16940       done
16941       if test -z "$already_handled"; then
16942         names_already_handled="$names_already_handled $name"
16943                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16944         eval value=\"\$HAVE_LIB$uppername\"
16945         if test -n "$value"; then
16946           if test "$value" = yes; then
16947             eval value=\"\$LIB$uppername\"
16948             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16949             eval value=\"\$LTLIB$uppername\"
16950             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16951           else
16952                                     :
16953           fi
16954         else
16955                               found_dir=
16956           found_la=
16957           found_so=
16958           found_a=
16959           if test $use_additional = yes; then
16960             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16961               found_dir="$additional_libdir"
16962               found_so="$additional_libdir/lib$name.$shlibext"
16963               if test -f "$additional_libdir/lib$name.la"; then
16964                 found_la="$additional_libdir/lib$name.la"
16965               fi
16966             else
16967               if test -f "$additional_libdir/lib$name.$libext"; then
16968                 found_dir="$additional_libdir"
16969                 found_a="$additional_libdir/lib$name.$libext"
16970                 if test -f "$additional_libdir/lib$name.la"; then
16971                   found_la="$additional_libdir/lib$name.la"
16972                 fi
16973               fi
16974             fi
16975           fi
16976           if test "X$found_dir" = "X"; then
16977             for x in $LDFLAGS $LTLIBICONV; do
16978
16979   acl_save_prefix="$prefix"
16980   prefix="$acl_final_prefix"
16981   acl_save_exec_prefix="$exec_prefix"
16982   exec_prefix="$acl_final_exec_prefix"
16983   eval x=\"$x\"
16984   exec_prefix="$acl_save_exec_prefix"
16985   prefix="$acl_save_prefix"
16986
16987               case "$x" in
16988                 -L*)
16989                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16990                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16991                     found_dir="$dir"
16992                     found_so="$dir/lib$name.$shlibext"
16993                     if test -f "$dir/lib$name.la"; then
16994                       found_la="$dir/lib$name.la"
16995                     fi
16996                   else
16997                     if test -f "$dir/lib$name.$libext"; then
16998                       found_dir="$dir"
16999                       found_a="$dir/lib$name.$libext"
17000                       if test -f "$dir/lib$name.la"; then
17001                         found_la="$dir/lib$name.la"
17002                       fi
17003                     fi
17004                   fi
17005                   ;;
17006               esac
17007               if test "X$found_dir" != "X"; then
17008                 break
17009               fi
17010             done
17011           fi
17012           if test "X$found_dir" != "X"; then
17013                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17014             if test "X$found_so" != "X"; then
17015                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17016                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17017               else
17018                                                                                 haveit=
17019                 for x in $ltrpathdirs; do
17020                   if test "X$x" = "X$found_dir"; then
17021                     haveit=yes
17022                     break
17023                   fi
17024                 done
17025                 if test -z "$haveit"; then
17026                   ltrpathdirs="$ltrpathdirs $found_dir"
17027                 fi
17028                                 if test "$hardcode_direct" = yes; then
17029                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17030                 else
17031                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17032                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17033                                                             haveit=
17034                     for x in $rpathdirs; do
17035                       if test "X$x" = "X$found_dir"; then
17036                         haveit=yes
17037                         break
17038                       fi
17039                     done
17040                     if test -z "$haveit"; then
17041                       rpathdirs="$rpathdirs $found_dir"
17042                     fi
17043                   else
17044                                                                                 haveit=
17045                     for x in $LDFLAGS $LIBICONV; do
17046
17047   acl_save_prefix="$prefix"
17048   prefix="$acl_final_prefix"
17049   acl_save_exec_prefix="$exec_prefix"
17050   exec_prefix="$acl_final_exec_prefix"
17051   eval x=\"$x\"
17052   exec_prefix="$acl_save_exec_prefix"
17053   prefix="$acl_save_prefix"
17054
17055                       if test "X$x" = "X-L$found_dir"; then
17056                         haveit=yes
17057                         break
17058                       fi
17059                     done
17060                     if test -z "$haveit"; then
17061                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17062                     fi
17063                     if test "$hardcode_minus_L" != no; then
17064                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17065                     else
17066                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17067                     fi
17068                   fi
17069                 fi
17070               fi
17071             else
17072               if test "X$found_a" != "X"; then
17073                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17074               else
17075                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17076               fi
17077             fi
17078                         additional_includedir=
17079             case "$found_dir" in
17080               */lib | */lib/)
17081                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17082                 additional_includedir="$basedir/include"
17083                 ;;
17084             esac
17085             if test "X$additional_includedir" != "X"; then
17086                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17087                 haveit=
17088                 if test "X$additional_includedir" = "X/usr/local/include"; then
17089                   if test -n "$GCC"; then
17090                     case $host_os in
17091                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17092                     esac
17093                   fi
17094                 fi
17095                 if test -z "$haveit"; then
17096                   for x in $CPPFLAGS $INCICONV; do
17097
17098   acl_save_prefix="$prefix"
17099   prefix="$acl_final_prefix"
17100   acl_save_exec_prefix="$exec_prefix"
17101   exec_prefix="$acl_final_exec_prefix"
17102   eval x=\"$x\"
17103   exec_prefix="$acl_save_exec_prefix"
17104   prefix="$acl_save_prefix"
17105
17106                     if test "X$x" = "X-I$additional_includedir"; then
17107                       haveit=yes
17108                       break
17109                     fi
17110                   done
17111                   if test -z "$haveit"; then
17112                     if test -d "$additional_includedir"; then
17113                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17114                     fi
17115                   fi
17116                 fi
17117               fi
17118             fi
17119                         if test -n "$found_la"; then
17120                                                         save_libdir="$libdir"
17121               case "$found_la" in
17122                 */* | *\\*) . "$found_la" ;;
17123                 *) . "./$found_la" ;;
17124               esac
17125               libdir="$save_libdir"
17126                             for dep in $dependency_libs; do
17127                 case "$dep" in
17128                   -L*)
17129                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17130                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17131                       haveit=
17132                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17133                         if test -n "$GCC"; then
17134                           case $host_os in
17135                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17136                           esac
17137                         fi
17138                       fi
17139                       if test -z "$haveit"; then
17140                         haveit=
17141                         for x in $LDFLAGS $LIBICONV; do
17142
17143   acl_save_prefix="$prefix"
17144   prefix="$acl_final_prefix"
17145   acl_save_exec_prefix="$exec_prefix"
17146   exec_prefix="$acl_final_exec_prefix"
17147   eval x=\"$x\"
17148   exec_prefix="$acl_save_exec_prefix"
17149   prefix="$acl_save_prefix"
17150
17151                           if test "X$x" = "X-L$additional_libdir"; then
17152                             haveit=yes
17153                             break
17154                           fi
17155                         done
17156                         if test -z "$haveit"; then
17157                           if test -d "$additional_libdir"; then
17158                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17159                           fi
17160                         fi
17161                         haveit=
17162                         for x in $LDFLAGS $LTLIBICONV; do
17163
17164   acl_save_prefix="$prefix"
17165   prefix="$acl_final_prefix"
17166   acl_save_exec_prefix="$exec_prefix"
17167   exec_prefix="$acl_final_exec_prefix"
17168   eval x=\"$x\"
17169   exec_prefix="$acl_save_exec_prefix"
17170   prefix="$acl_save_prefix"
17171
17172                           if test "X$x" = "X-L$additional_libdir"; then
17173                             haveit=yes
17174                             break
17175                           fi
17176                         done
17177                         if test -z "$haveit"; then
17178                           if test -d "$additional_libdir"; then
17179                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17180                           fi
17181                         fi
17182                       fi
17183                     fi
17184                     ;;
17185                   -R*)
17186                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17187                     if test "$enable_rpath" != no; then
17188                                                                   haveit=
17189                       for x in $rpathdirs; do
17190                         if test "X$x" = "X$dir"; then
17191                           haveit=yes
17192                           break
17193                         fi
17194                       done
17195                       if test -z "$haveit"; then
17196                         rpathdirs="$rpathdirs $dir"
17197                       fi
17198                                                                   haveit=
17199                       for x in $ltrpathdirs; do
17200                         if test "X$x" = "X$dir"; then
17201                           haveit=yes
17202                           break
17203                         fi
17204                       done
17205                       if test -z "$haveit"; then
17206                         ltrpathdirs="$ltrpathdirs $dir"
17207                       fi
17208                     fi
17209                     ;;
17210                   -l*)
17211                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17212                     ;;
17213                   *.la)
17214                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17215                     ;;
17216                   *)
17217                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17218                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17219                     ;;
17220                 esac
17221               done
17222             fi
17223           else
17224                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17225             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17226           fi
17227         fi
17228       fi
17229     done
17230   done
17231   if test "X$rpathdirs" != "X"; then
17232     if test -n "$hardcode_libdir_separator"; then
17233                         alldirs=
17234       for found_dir in $rpathdirs; do
17235         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17236       done
17237             acl_save_libdir="$libdir"
17238       libdir="$alldirs"
17239       eval flag=\"$hardcode_libdir_flag_spec\"
17240       libdir="$acl_save_libdir"
17241       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17242     else
17243             for found_dir in $rpathdirs; do
17244         acl_save_libdir="$libdir"
17245         libdir="$found_dir"
17246         eval flag=\"$hardcode_libdir_flag_spec\"
17247         libdir="$acl_save_libdir"
17248         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17249       done
17250     fi
17251   fi
17252   if test "X$ltrpathdirs" != "X"; then
17253             for found_dir in $ltrpathdirs; do
17254       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17255     done
17256   fi
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17276 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17277 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17278   echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280   gt_save_CPPFLAGS="$CPPFLAGS"
17281      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17282      gt_save_LIBS="$LIBS"
17283      LIBS="$LIBS -framework CoreFoundation"
17284      cat >conftest.$ac_ext <<_ACEOF
17285 /* confdefs.h.  */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h.  */
17290 #include <CFPreferences.h>
17291 int
17292 main ()
17293 {
17294 CFPreferencesCopyAppValue(NULL, NULL)
17295   ;
17296   return 0;
17297 }
17298 _ACEOF
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (ac_try="$ac_link"
17301 case "(($ac_try" in
17302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303   *) ac_try_echo=$ac_try;;
17304 esac
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306   (eval "$ac_link") 2>conftest.er1
17307   ac_status=$?
17308   grep -v '^ *+' conftest.er1 >conftest.err
17309   rm -f conftest.er1
17310   cat conftest.err >&5
17311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312   (exit $ac_status); } && {
17313          test -z "$ac_c_werror_flag" ||
17314          test ! -s conftest.err
17315        } && test -s conftest$ac_exeext &&
17316        $as_test_x conftest$ac_exeext; then
17317   gt_cv_func_CFPreferencesCopyAppValue=yes
17318 else
17319   echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322         gt_cv_func_CFPreferencesCopyAppValue=no
17323 fi
17324
17325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17326       conftest$ac_exeext conftest.$ac_ext
17327      CPPFLAGS="$gt_save_CPPFLAGS"
17328      LIBS="$gt_save_LIBS"
17329 fi
17330 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17331 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17332   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17333
17334 cat >>confdefs.h <<\_ACEOF
17335 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17336 _ACEOF
17337
17338   fi
17339     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17340 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17341 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17342   echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344   gt_save_CPPFLAGS="$CPPFLAGS"
17345      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17346      gt_save_LIBS="$LIBS"
17347      LIBS="$LIBS -framework CoreFoundation"
17348      cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h.  */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h.  */
17354 #include <CFLocale.h>
17355 int
17356 main ()
17357 {
17358 CFLocaleCopyCurrent();
17359   ;
17360   return 0;
17361 }
17362 _ACEOF
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (ac_try="$ac_link"
17365 case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_link") 2>conftest.er1
17371   ac_status=$?
17372   grep -v '^ *+' conftest.er1 >conftest.err
17373   rm -f conftest.er1
17374   cat conftest.err >&5
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } && {
17377          test -z "$ac_c_werror_flag" ||
17378          test ! -s conftest.err
17379        } && test -s conftest$ac_exeext &&
17380        $as_test_x conftest$ac_exeext; then
17381   gt_cv_func_CFLocaleCopyCurrent=yes
17382 else
17383   echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17385
17386         gt_cv_func_CFLocaleCopyCurrent=no
17387 fi
17388
17389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17390       conftest$ac_exeext conftest.$ac_ext
17391      CPPFLAGS="$gt_save_CPPFLAGS"
17392      LIBS="$gt_save_LIBS"
17393 fi
17394 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17395 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17396   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17397
17398 cat >>confdefs.h <<\_ACEOF
17399 #define HAVE_CFLOCALECOPYCURRENT 1
17400 _ACEOF
17401
17402   fi
17403   INTL_MACOSX_LIBS=
17404   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17405     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17406   fi
17407
17408
17409
17410
17411   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17412 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17413     # Check whether --enable-nls was given.
17414 if test "${enable_nls+set}" = set; then
17415   enableval=$enable_nls; USE_NLS=$enableval
17416 else
17417   USE_NLS=yes
17418 fi
17419
17420   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17421 echo "${ECHO_T}$USE_NLS" >&6; }
17422
17423
17424
17425
17426   LIBINTL=
17427   LTLIBINTL=
17428   POSUB=
17429
17430     if test "$USE_NLS" = "yes"; then
17431     gt_use_preinstalled_gnugettext=no
17432
17433
17434
17435
17436
17437
17438         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17439 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17440 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443   cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h.  */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h.  */
17449 #include <libintl.h>
17450 extern int _nl_msg_cat_cntr;
17451 extern int *_nl_domain_bindings;
17452 int
17453 main ()
17454 {
17455 bindtextdomain ("", "");
17456 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17457   ;
17458   return 0;
17459 }
17460 _ACEOF
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (ac_try="$ac_link"
17463 case "(($ac_try" in
17464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465   *) ac_try_echo=$ac_try;;
17466 esac
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468   (eval "$ac_link") 2>conftest.er1
17469   ac_status=$?
17470   grep -v '^ *+' conftest.er1 >conftest.err
17471   rm -f conftest.er1
17472   cat conftest.err >&5
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); } && {
17475          test -z "$ac_c_werror_flag" ||
17476          test ! -s conftest.err
17477        } && test -s conftest$ac_exeext &&
17478        $as_test_x conftest$ac_exeext; then
17479   gt_cv_func_gnugettext1_libc=yes
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484         gt_cv_func_gnugettext1_libc=no
17485 fi
17486
17487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17488       conftest$ac_exeext conftest.$ac_ext
17489 fi
17490 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17491 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17492
17493         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17494
17495
17496
17497
17498
17499           am_save_CPPFLAGS="$CPPFLAGS"
17500
17501   for element in $INCICONV; do
17502     haveit=
17503     for x in $CPPFLAGS; do
17504
17505   acl_save_prefix="$prefix"
17506   prefix="$acl_final_prefix"
17507   acl_save_exec_prefix="$exec_prefix"
17508   exec_prefix="$acl_final_exec_prefix"
17509   eval x=\"$x\"
17510   exec_prefix="$acl_save_exec_prefix"
17511   prefix="$acl_save_prefix"
17512
17513       if test "X$x" = "X$element"; then
17514         haveit=yes
17515         break
17516       fi
17517     done
17518     if test -z "$haveit"; then
17519       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17520     fi
17521   done
17522
17523
17524   { echo "$as_me:$LINENO: checking for iconv" >&5
17525 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17526 if test "${am_cv_func_iconv+set}" = set; then
17527   echo $ECHO_N "(cached) $ECHO_C" >&6
17528 else
17529
17530     am_cv_func_iconv="no, consider installing GNU libiconv"
17531     am_cv_lib_iconv=no
17532     cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h.  */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h.  */
17538 #include <stdlib.h>
17539 #include <iconv.h>
17540 int
17541 main ()
17542 {
17543 iconv_t cd = iconv_open("","");
17544        iconv(cd,NULL,NULL,NULL,NULL);
17545        iconv_close(cd);
17546   ;
17547   return 0;
17548 }
17549 _ACEOF
17550 rm -f conftest.$ac_objext conftest$ac_exeext
17551 if { (ac_try="$ac_link"
17552 case "(($ac_try" in
17553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554   *) ac_try_echo=$ac_try;;
17555 esac
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557   (eval "$ac_link") 2>conftest.er1
17558   ac_status=$?
17559   grep -v '^ *+' conftest.er1 >conftest.err
17560   rm -f conftest.er1
17561   cat conftest.err >&5
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); } && {
17564          test -z "$ac_c_werror_flag" ||
17565          test ! -s conftest.err
17566        } && test -s conftest$ac_exeext &&
17567        $as_test_x conftest$ac_exeext; then
17568   am_cv_func_iconv=yes
17569 else
17570   echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17572
17573
17574 fi
17575
17576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17577       conftest$ac_exeext conftest.$ac_ext
17578     if test "$am_cv_func_iconv" != yes; then
17579       am_save_LIBS="$LIBS"
17580       LIBS="$LIBS $LIBICONV"
17581       cat >conftest.$ac_ext <<_ACEOF
17582 /* confdefs.h.  */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h.  */
17587 #include <stdlib.h>
17588 #include <iconv.h>
17589 int
17590 main ()
17591 {
17592 iconv_t cd = iconv_open("","");
17593          iconv(cd,NULL,NULL,NULL,NULL);
17594          iconv_close(cd);
17595   ;
17596   return 0;
17597 }
17598 _ACEOF
17599 rm -f conftest.$ac_objext conftest$ac_exeext
17600 if { (ac_try="$ac_link"
17601 case "(($ac_try" in
17602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603   *) ac_try_echo=$ac_try;;
17604 esac
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606   (eval "$ac_link") 2>conftest.er1
17607   ac_status=$?
17608   grep -v '^ *+' conftest.er1 >conftest.err
17609   rm -f conftest.er1
17610   cat conftest.err >&5
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); } && {
17613          test -z "$ac_c_werror_flag" ||
17614          test ! -s conftest.err
17615        } && test -s conftest$ac_exeext &&
17616        $as_test_x conftest$ac_exeext; then
17617   am_cv_lib_iconv=yes
17618         am_cv_func_iconv=yes
17619 else
17620   echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17622
17623
17624 fi
17625
17626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17627       conftest$ac_exeext conftest.$ac_ext
17628       LIBS="$am_save_LIBS"
17629     fi
17630
17631 fi
17632 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17633 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17634   if test "$am_cv_func_iconv" = yes; then
17635
17636 cat >>confdefs.h <<\_ACEOF
17637 #define HAVE_ICONV 1
17638 _ACEOF
17639
17640   fi
17641   if test "$am_cv_lib_iconv" = yes; then
17642     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17643 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17644     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17645 echo "${ECHO_T}$LIBICONV" >&6; }
17646   else
17647             CPPFLAGS="$am_save_CPPFLAGS"
17648     LIBICONV=
17649     LTLIBICONV=
17650   fi
17651
17652
17653
17654
17655
17656
17657     use_additional=yes
17658
17659   acl_save_prefix="$prefix"
17660   prefix="$acl_final_prefix"
17661   acl_save_exec_prefix="$exec_prefix"
17662   exec_prefix="$acl_final_exec_prefix"
17663
17664     eval additional_includedir=\"$includedir\"
17665     eval additional_libdir=\"$libdir\"
17666
17667   exec_prefix="$acl_save_exec_prefix"
17668   prefix="$acl_save_prefix"
17669
17670
17671 # Check whether --with-libintl-prefix was given.
17672 if test "${with_libintl_prefix+set}" = set; then
17673   withval=$with_libintl_prefix;
17674     if test "X$withval" = "Xno"; then
17675       use_additional=no
17676     else
17677       if test "X$withval" = "X"; then
17678
17679   acl_save_prefix="$prefix"
17680   prefix="$acl_final_prefix"
17681   acl_save_exec_prefix="$exec_prefix"
17682   exec_prefix="$acl_final_exec_prefix"
17683
17684           eval additional_includedir=\"$includedir\"
17685           eval additional_libdir=\"$libdir\"
17686
17687   exec_prefix="$acl_save_exec_prefix"
17688   prefix="$acl_save_prefix"
17689
17690       else
17691         additional_includedir="$withval/include"
17692         additional_libdir="$withval/lib"
17693       fi
17694     fi
17695
17696 fi
17697
17698       LIBINTL=
17699   LTLIBINTL=
17700   INCINTL=
17701   rpathdirs=
17702   ltrpathdirs=
17703   names_already_handled=
17704   names_next_round='intl '
17705   while test -n "$names_next_round"; do
17706     names_this_round="$names_next_round"
17707     names_next_round=
17708     for name in $names_this_round; do
17709       already_handled=
17710       for n in $names_already_handled; do
17711         if test "$n" = "$name"; then
17712           already_handled=yes
17713           break
17714         fi
17715       done
17716       if test -z "$already_handled"; then
17717         names_already_handled="$names_already_handled $name"
17718                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17719         eval value=\"\$HAVE_LIB$uppername\"
17720         if test -n "$value"; then
17721           if test "$value" = yes; then
17722             eval value=\"\$LIB$uppername\"
17723             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17724             eval value=\"\$LTLIB$uppername\"
17725             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17726           else
17727                                     :
17728           fi
17729         else
17730                               found_dir=
17731           found_la=
17732           found_so=
17733           found_a=
17734           if test $use_additional = yes; then
17735             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17736               found_dir="$additional_libdir"
17737               found_so="$additional_libdir/lib$name.$shlibext"
17738               if test -f "$additional_libdir/lib$name.la"; then
17739                 found_la="$additional_libdir/lib$name.la"
17740               fi
17741             else
17742               if test -f "$additional_libdir/lib$name.$libext"; then
17743                 found_dir="$additional_libdir"
17744                 found_a="$additional_libdir/lib$name.$libext"
17745                 if test -f "$additional_libdir/lib$name.la"; then
17746                   found_la="$additional_libdir/lib$name.la"
17747                 fi
17748               fi
17749             fi
17750           fi
17751           if test "X$found_dir" = "X"; then
17752             for x in $LDFLAGS $LTLIBINTL; do
17753
17754   acl_save_prefix="$prefix"
17755   prefix="$acl_final_prefix"
17756   acl_save_exec_prefix="$exec_prefix"
17757   exec_prefix="$acl_final_exec_prefix"
17758   eval x=\"$x\"
17759   exec_prefix="$acl_save_exec_prefix"
17760   prefix="$acl_save_prefix"
17761
17762               case "$x" in
17763                 -L*)
17764                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17765                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17766                     found_dir="$dir"
17767                     found_so="$dir/lib$name.$shlibext"
17768                     if test -f "$dir/lib$name.la"; then
17769                       found_la="$dir/lib$name.la"
17770                     fi
17771                   else
17772                     if test -f "$dir/lib$name.$libext"; then
17773                       found_dir="$dir"
17774                       found_a="$dir/lib$name.$libext"
17775                       if test -f "$dir/lib$name.la"; then
17776                         found_la="$dir/lib$name.la"
17777                       fi
17778                     fi
17779                   fi
17780                   ;;
17781               esac
17782               if test "X$found_dir" != "X"; then
17783                 break
17784               fi
17785             done
17786           fi
17787           if test "X$found_dir" != "X"; then
17788                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17789             if test "X$found_so" != "X"; then
17790                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17791                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17792               else
17793                                                                                 haveit=
17794                 for x in $ltrpathdirs; do
17795                   if test "X$x" = "X$found_dir"; then
17796                     haveit=yes
17797                     break
17798                   fi
17799                 done
17800                 if test -z "$haveit"; then
17801                   ltrpathdirs="$ltrpathdirs $found_dir"
17802                 fi
17803                                 if test "$hardcode_direct" = yes; then
17804                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17805                 else
17806                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17807                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17808                                                             haveit=
17809                     for x in $rpathdirs; do
17810                       if test "X$x" = "X$found_dir"; then
17811                         haveit=yes
17812                         break
17813                       fi
17814                     done
17815                     if test -z "$haveit"; then
17816                       rpathdirs="$rpathdirs $found_dir"
17817                     fi
17818                   else
17819                                                                                 haveit=
17820                     for x in $LDFLAGS $LIBINTL; do
17821
17822   acl_save_prefix="$prefix"
17823   prefix="$acl_final_prefix"
17824   acl_save_exec_prefix="$exec_prefix"
17825   exec_prefix="$acl_final_exec_prefix"
17826   eval x=\"$x\"
17827   exec_prefix="$acl_save_exec_prefix"
17828   prefix="$acl_save_prefix"
17829
17830                       if test "X$x" = "X-L$found_dir"; then
17831                         haveit=yes
17832                         break
17833                       fi
17834                     done
17835                     if test -z "$haveit"; then
17836                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17837                     fi
17838                     if test "$hardcode_minus_L" != no; then
17839                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17840                     else
17841                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17842                     fi
17843                   fi
17844                 fi
17845               fi
17846             else
17847               if test "X$found_a" != "X"; then
17848                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17849               else
17850                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17851               fi
17852             fi
17853                         additional_includedir=
17854             case "$found_dir" in
17855               */lib | */lib/)
17856                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17857                 additional_includedir="$basedir/include"
17858                 ;;
17859             esac
17860             if test "X$additional_includedir" != "X"; then
17861                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17862                 haveit=
17863                 if test "X$additional_includedir" = "X/usr/local/include"; then
17864                   if test -n "$GCC"; then
17865                     case $host_os in
17866                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17867                     esac
17868                   fi
17869                 fi
17870                 if test -z "$haveit"; then
17871                   for x in $CPPFLAGS $INCINTL; do
17872
17873   acl_save_prefix="$prefix"
17874   prefix="$acl_final_prefix"
17875   acl_save_exec_prefix="$exec_prefix"
17876   exec_prefix="$acl_final_exec_prefix"
17877   eval x=\"$x\"
17878   exec_prefix="$acl_save_exec_prefix"
17879   prefix="$acl_save_prefix"
17880
17881                     if test "X$x" = "X-I$additional_includedir"; then
17882                       haveit=yes
17883                       break
17884                     fi
17885                   done
17886                   if test -z "$haveit"; then
17887                     if test -d "$additional_includedir"; then
17888                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17889                     fi
17890                   fi
17891                 fi
17892               fi
17893             fi
17894                         if test -n "$found_la"; then
17895                                                         save_libdir="$libdir"
17896               case "$found_la" in
17897                 */* | *\\*) . "$found_la" ;;
17898                 *) . "./$found_la" ;;
17899               esac
17900               libdir="$save_libdir"
17901                             for dep in $dependency_libs; do
17902                 case "$dep" in
17903                   -L*)
17904                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17905                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17906                       haveit=
17907                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17908                         if test -n "$GCC"; then
17909                           case $host_os in
17910                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17911                           esac
17912                         fi
17913                       fi
17914                       if test -z "$haveit"; then
17915                         haveit=
17916                         for x in $LDFLAGS $LIBINTL; do
17917
17918   acl_save_prefix="$prefix"
17919   prefix="$acl_final_prefix"
17920   acl_save_exec_prefix="$exec_prefix"
17921   exec_prefix="$acl_final_exec_prefix"
17922   eval x=\"$x\"
17923   exec_prefix="$acl_save_exec_prefix"
17924   prefix="$acl_save_prefix"
17925
17926                           if test "X$x" = "X-L$additional_libdir"; then
17927                             haveit=yes
17928                             break
17929                           fi
17930                         done
17931                         if test -z "$haveit"; then
17932                           if test -d "$additional_libdir"; then
17933                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17934                           fi
17935                         fi
17936                         haveit=
17937                         for x in $LDFLAGS $LTLIBINTL; do
17938
17939   acl_save_prefix="$prefix"
17940   prefix="$acl_final_prefix"
17941   acl_save_exec_prefix="$exec_prefix"
17942   exec_prefix="$acl_final_exec_prefix"
17943   eval x=\"$x\"
17944   exec_prefix="$acl_save_exec_prefix"
17945   prefix="$acl_save_prefix"
17946
17947                           if test "X$x" = "X-L$additional_libdir"; then
17948                             haveit=yes
17949                             break
17950                           fi
17951                         done
17952                         if test -z "$haveit"; then
17953                           if test -d "$additional_libdir"; then
17954                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17955                           fi
17956                         fi
17957                       fi
17958                     fi
17959                     ;;
17960                   -R*)
17961                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17962                     if test "$enable_rpath" != no; then
17963                                                                   haveit=
17964                       for x in $rpathdirs; do
17965                         if test "X$x" = "X$dir"; then
17966                           haveit=yes
17967                           break
17968                         fi
17969                       done
17970                       if test -z "$haveit"; then
17971                         rpathdirs="$rpathdirs $dir"
17972                       fi
17973                                                                   haveit=
17974                       for x in $ltrpathdirs; do
17975                         if test "X$x" = "X$dir"; then
17976                           haveit=yes
17977                           break
17978                         fi
17979                       done
17980                       if test -z "$haveit"; then
17981                         ltrpathdirs="$ltrpathdirs $dir"
17982                       fi
17983                     fi
17984                     ;;
17985                   -l*)
17986                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17987                     ;;
17988                   *.la)
17989                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17990                     ;;
17991                   *)
17992                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17993                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17994                     ;;
17995                 esac
17996               done
17997             fi
17998           else
17999                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18000             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18001           fi
18002         fi
18003       fi
18004     done
18005   done
18006   if test "X$rpathdirs" != "X"; then
18007     if test -n "$hardcode_libdir_separator"; then
18008                         alldirs=
18009       for found_dir in $rpathdirs; do
18010         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18011       done
18012             acl_save_libdir="$libdir"
18013       libdir="$alldirs"
18014       eval flag=\"$hardcode_libdir_flag_spec\"
18015       libdir="$acl_save_libdir"
18016       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18017     else
18018             for found_dir in $rpathdirs; do
18019         acl_save_libdir="$libdir"
18020         libdir="$found_dir"
18021         eval flag=\"$hardcode_libdir_flag_spec\"
18022         libdir="$acl_save_libdir"
18023         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18024       done
18025     fi
18026   fi
18027   if test "X$ltrpathdirs" != "X"; then
18028             for found_dir in $ltrpathdirs; do
18029       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18030     done
18031   fi
18032
18033           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18034 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18035 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18036   echo $ECHO_N "(cached) $ECHO_C" >&6
18037 else
18038   gt_save_CPPFLAGS="$CPPFLAGS"
18039             CPPFLAGS="$CPPFLAGS $INCINTL"
18040             gt_save_LIBS="$LIBS"
18041             LIBS="$LIBS $LIBINTL"
18042                         cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h.  */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h.  */
18048 #include <libintl.h>
18049 extern int _nl_msg_cat_cntr;
18050 extern
18051 #ifdef __cplusplus
18052 "C"
18053 #endif
18054 const char *_nl_expand_alias (const char *);
18055 int
18056 main ()
18057 {
18058 bindtextdomain ("", "");
18059 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18060   ;
18061   return 0;
18062 }
18063 _ACEOF
18064 rm -f conftest.$ac_objext conftest$ac_exeext
18065 if { (ac_try="$ac_link"
18066 case "(($ac_try" in
18067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068   *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071   (eval "$ac_link") 2>conftest.er1
18072   ac_status=$?
18073   grep -v '^ *+' conftest.er1 >conftest.err
18074   rm -f conftest.er1
18075   cat conftest.err >&5
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); } && {
18078          test -z "$ac_c_werror_flag" ||
18079          test ! -s conftest.err
18080        } && test -s conftest$ac_exeext &&
18081        $as_test_x conftest$ac_exeext; then
18082   gt_cv_func_gnugettext1_libintl=yes
18083 else
18084   echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18086
18087         gt_cv_func_gnugettext1_libintl=no
18088 fi
18089
18090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18091       conftest$ac_exeext conftest.$ac_ext
18092                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18093               LIBS="$LIBS $LIBICONV"
18094               cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h.  */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h.  */
18100 #include <libintl.h>
18101 extern int _nl_msg_cat_cntr;
18102 extern
18103 #ifdef __cplusplus
18104 "C"
18105 #endif
18106 const char *_nl_expand_alias (const char *);
18107 int
18108 main ()
18109 {
18110 bindtextdomain ("", "");
18111 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18112   ;
18113   return 0;
18114 }
18115 _ACEOF
18116 rm -f conftest.$ac_objext conftest$ac_exeext
18117 if { (ac_try="$ac_link"
18118 case "(($ac_try" in
18119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120   *) ac_try_echo=$ac_try;;
18121 esac
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123   (eval "$ac_link") 2>conftest.er1
18124   ac_status=$?
18125   grep -v '^ *+' conftest.er1 >conftest.err
18126   rm -f conftest.er1
18127   cat conftest.err >&5
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); } && {
18130          test -z "$ac_c_werror_flag" ||
18131          test ! -s conftest.err
18132        } && test -s conftest$ac_exeext &&
18133        $as_test_x conftest$ac_exeext; then
18134   LIBINTL="$LIBINTL $LIBICONV"
18135                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18136                 gt_cv_func_gnugettext1_libintl=yes
18137
18138 else
18139   echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142
18143 fi
18144
18145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18146       conftest$ac_exeext conftest.$ac_ext
18147             fi
18148             CPPFLAGS="$gt_save_CPPFLAGS"
18149             LIBS="$gt_save_LIBS"
18150 fi
18151 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18152 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18153         fi
18154
18155                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18156            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18157                 && test "$PACKAGE" != gettext-runtime \
18158                 && test "$PACKAGE" != gettext-tools; }; then
18159           gt_use_preinstalled_gnugettext=yes
18160         else
18161                     LIBINTL=
18162           LTLIBINTL=
18163           INCINTL=
18164         fi
18165
18166
18167
18168     if test -n "$INTL_MACOSX_LIBS"; then
18169       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18170          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18171                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18172         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18173       fi
18174     fi
18175
18176     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18177        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18178
18179 cat >>confdefs.h <<\_ACEOF
18180 #define ENABLE_NLS 1
18181 _ACEOF
18182
18183     else
18184       USE_NLS=no
18185     fi
18186   fi
18187
18188   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18189 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18190   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18191 echo "${ECHO_T}$USE_NLS" >&6; }
18192   if test "$USE_NLS" = "yes"; then
18193     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18194 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18195     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18196       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18197         gt_source="external libintl"
18198       else
18199         gt_source="libc"
18200       fi
18201     else
18202       gt_source="included intl directory"
18203     fi
18204     { echo "$as_me:$LINENO: result: $gt_source" >&5
18205 echo "${ECHO_T}$gt_source" >&6; }
18206   fi
18207
18208   if test "$USE_NLS" = "yes"; then
18209
18210     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18211       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18212         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18213 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18214         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18215 echo "${ECHO_T}$LIBINTL" >&6; }
18216
18217   for element in $INCINTL; do
18218     haveit=
18219     for x in $CPPFLAGS; do
18220
18221   acl_save_prefix="$prefix"
18222   prefix="$acl_final_prefix"
18223   acl_save_exec_prefix="$exec_prefix"
18224   exec_prefix="$acl_final_exec_prefix"
18225   eval x=\"$x\"
18226   exec_prefix="$acl_save_exec_prefix"
18227   prefix="$acl_save_prefix"
18228
18229       if test "X$x" = "X$element"; then
18230         haveit=yes
18231         break
18232       fi
18233     done
18234     if test -z "$haveit"; then
18235       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18236     fi
18237   done
18238
18239       fi
18240
18241
18242 cat >>confdefs.h <<\_ACEOF
18243 #define HAVE_GETTEXT 1
18244 _ACEOF
18245
18246
18247 cat >>confdefs.h <<\_ACEOF
18248 #define HAVE_DCGETTEXT 1
18249 _ACEOF
18250
18251     fi
18252
18253         POSUB=po
18254   fi
18255
18256
18257
18258     INTLLIBS="$LIBINTL"
18259
18260
18261
18262
18263
18264
18265 if test x${prefix} = xNONE ; then
18266    if test `eval echo ${datarootdir}` = NONE/share ; then
18267       datarootdir=/usr/share
18268    fi
18269 fi
18270
18271 if test x${prefix} = xNONE ; then
18272    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18273       sysconfdir=/etc/bacula
18274    fi
18275
18276    if test `eval echo ${libdir}` = NONE/lib ; then
18277       libdir=/usr/lib
18278    fi
18279
18280    if test `eval echo ${includedir}` = NONE/include ; then
18281       includedir=/usr/include
18282    fi
18283
18284    prefix=
18285 fi
18286
18287 if test x${exec_prefix} = xNONE ; then
18288    exec_prefix=${prefix}
18289 fi
18290
18291 sysconfdir=`eval echo ${sysconfdir}`
18292 datarootdir=`eval echo ${datarootdir}`
18293 libdir=`eval echo ${libdir}`
18294 includedir=`eval echo ${includedir}`
18295 localedir=`eval echo ${datarootdir}/locale`
18296 cat >>confdefs.h <<_ACEOF
18297 #define SYSCONFDIR "$sysconfdir"
18298 _ACEOF
18299
18300 cat >>confdefs.h <<_ACEOF
18301 #define LOCALEDIR "$localedir"
18302 _ACEOF
18303
18304
18305 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18306    sbindir=${exec_prefix}/sbin
18307 fi
18308 sbindir=`eval echo ${sbindir}`
18309
18310 if test x$mandir = x'${prefix}/man' ; then
18311    mandir=/usr/share/man
18312 fi
18313
18314 for ac_prog in msgfmt
18315 do
18316   # Extract the first word of "$ac_prog", so it can be a program name with args.
18317 set dummy $ac_prog; ac_word=$2
18318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18320 if test "${ac_cv_path_MSGFMT+set}" = set; then
18321   echo $ECHO_N "(cached) $ECHO_C" >&6
18322 else
18323   case $MSGFMT in
18324   [\\/]* | ?:[\\/]*)
18325   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18326   ;;
18327   *)
18328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18329 for as_dir in $PATH
18330 do
18331   IFS=$as_save_IFS
18332   test -z "$as_dir" && as_dir=.
18333   for ac_exec_ext in '' $ac_executable_extensions; do
18334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18335     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18337     break 2
18338   fi
18339 done
18340 done
18341 IFS=$as_save_IFS
18342
18343   ;;
18344 esac
18345 fi
18346 MSGFMT=$ac_cv_path_MSGFMT
18347 if test -n "$MSGFMT"; then
18348   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18349 echo "${ECHO_T}$MSGFMT" >&6; }
18350 else
18351   { echo "$as_me:$LINENO: result: no" >&5
18352 echo "${ECHO_T}no" >&6; }
18353 fi
18354
18355
18356   test -n "$MSGFMT" && break
18357 done
18358 test -n "$MSGFMT" || MSGFMT="no"
18359
18360 if test "$MSGFMT" = "no"
18361 then
18362    echo 'msgfmt program not found, disabling NLS !'
18363    USE_NLS=no
18364    USE_INCLUDED_LIBINTL=no
18365 #else
18366
18367     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18368 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18369 if test "${ac_cv_gnu_library_2+set}" = set; then
18370   echo $ECHO_N "(cached) $ECHO_C" >&6
18371 else
18372   cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h.  */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h.  */
18378
18379 #include <features.h>
18380 #ifdef __GNU_LIBRARY__
18381  #if (__GLIBC__ >= 2)
18382   Lucky GNU user
18383  #endif
18384 #endif
18385
18386 _ACEOF
18387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18388   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18389   ac_cv_gnu_library_2=yes
18390 else
18391   ac_cv_gnu_library_2=no
18392 fi
18393 rm -f conftest*
18394
18395
18396
18397 fi
18398 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18399 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18400
18401     GLIBC2="$ac_cv_gnu_library_2"
18402
18403
18404 if test -n "$ac_tool_prefix"; then
18405   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18409 if test "${ac_cv_prog_RANLIB+set}" = set; then
18410   echo $ECHO_N "(cached) $ECHO_C" >&6
18411 else
18412   if test -n "$RANLIB"; then
18413   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18414 else
18415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18416 for as_dir in $PATH
18417 do
18418   IFS=$as_save_IFS
18419   test -z "$as_dir" && as_dir=.
18420   for ac_exec_ext in '' $ac_executable_extensions; do
18421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18422     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18424     break 2
18425   fi
18426 done
18427 done
18428 IFS=$as_save_IFS
18429
18430 fi
18431 fi
18432 RANLIB=$ac_cv_prog_RANLIB
18433 if test -n "$RANLIB"; then
18434   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18435 echo "${ECHO_T}$RANLIB" >&6; }
18436 else
18437   { echo "$as_me:$LINENO: result: no" >&5
18438 echo "${ECHO_T}no" >&6; }
18439 fi
18440
18441
18442 fi
18443 if test -z "$ac_cv_prog_RANLIB"; then
18444   ac_ct_RANLIB=$RANLIB
18445   # Extract the first word of "ranlib", so it can be a program name with args.
18446 set dummy ranlib; ac_word=$2
18447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18449 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18450   echo $ECHO_N "(cached) $ECHO_C" >&6
18451 else
18452   if test -n "$ac_ct_RANLIB"; then
18453   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18454 else
18455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18456 for as_dir in $PATH
18457 do
18458   IFS=$as_save_IFS
18459   test -z "$as_dir" && as_dir=.
18460   for ac_exec_ext in '' $ac_executable_extensions; do
18461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18462     ac_cv_prog_ac_ct_RANLIB="ranlib"
18463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18464     break 2
18465   fi
18466 done
18467 done
18468 IFS=$as_save_IFS
18469
18470 fi
18471 fi
18472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18473 if test -n "$ac_ct_RANLIB"; then
18474   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18475 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18476 else
18477   { echo "$as_me:$LINENO: result: no" >&5
18478 echo "${ECHO_T}no" >&6; }
18479 fi
18480
18481   if test "x$ac_ct_RANLIB" = x; then
18482     RANLIB=":"
18483   else
18484     case $cross_compiling:$ac_tool_warned in
18485 yes:)
18486 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18487 whose name does not start with the host triplet.  If you think this
18488 configuration is useful to you, please write to autoconf@gnu.org." >&5
18489 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18490 whose name does not start with the host triplet.  If you think this
18491 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18492 ac_tool_warned=yes ;;
18493 esac
18494     RANLIB=$ac_ct_RANLIB
18495   fi
18496 else
18497   RANLIB="$ac_cv_prog_RANLIB"
18498 fi
18499
18500
18501         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18502 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18503 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18504   echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506   ac_check_lib_save_LIBS=$LIBS
18507 LIBS="-lcposix  $LIBS"
18508 cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h.  */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h.  */
18514
18515 /* Override any GCC internal prototype to avoid an error.
18516    Use char because int might match the return type of a GCC
18517    builtin and then its argument prototype would still apply.  */
18518 #ifdef __cplusplus
18519 extern "C"
18520 #endif
18521 char strerror ();
18522 int
18523 main ()
18524 {
18525 return strerror ();
18526   ;
18527   return 0;
18528 }
18529 _ACEOF
18530 rm -f conftest.$ac_objext conftest$ac_exeext
18531 if { (ac_try="$ac_link"
18532 case "(($ac_try" in
18533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534   *) ac_try_echo=$ac_try;;
18535 esac
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537   (eval "$ac_link") 2>conftest.er1
18538   ac_status=$?
18539   grep -v '^ *+' conftest.er1 >conftest.err
18540   rm -f conftest.er1
18541   cat conftest.err >&5
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); } && {
18544          test -z "$ac_c_werror_flag" ||
18545          test ! -s conftest.err
18546        } && test -s conftest$ac_exeext &&
18547        $as_test_x conftest$ac_exeext; then
18548   ac_cv_lib_cposix_strerror=yes
18549 else
18550   echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18552
18553         ac_cv_lib_cposix_strerror=no
18554 fi
18555
18556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18557       conftest$ac_exeext conftest.$ac_ext
18558 LIBS=$ac_check_lib_save_LIBS
18559 fi
18560 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18561 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18562 if test $ac_cv_lib_cposix_strerror = yes; then
18563   LIBS="$LIBS -lcposix"
18564 fi
18565
18566
18567
18568 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18569 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18570 if test "${ac_cv_c_const+set}" = set; then
18571   echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18573   cat >conftest.$ac_ext <<_ACEOF
18574 /* confdefs.h.  */
18575 _ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h.  */
18579
18580 int
18581 main ()
18582 {
18583 /* FIXME: Include the comments suggested by Paul. */
18584 #ifndef __cplusplus
18585   /* Ultrix mips cc rejects this.  */
18586   typedef int charset[2];
18587   const charset cs;
18588   /* SunOS 4.1.1 cc rejects this.  */
18589   char const *const *pcpcc;
18590   char **ppc;
18591   /* NEC SVR4.0.2 mips cc rejects this.  */
18592   struct point {int x, y;};
18593   static struct point const zero = {0,0};
18594   /* AIX XL C 1.02.0.0 rejects this.
18595      It does not let you subtract one const X* pointer from another in
18596      an arm of an if-expression whose if-part is not a constant
18597      expression */
18598   const char *g = "string";
18599   pcpcc = &g + (g ? g-g : 0);
18600   /* HPUX 7.0 cc rejects these. */
18601   ++pcpcc;
18602   ppc = (char**) pcpcc;
18603   pcpcc = (char const *const *) ppc;
18604   { /* SCO 3.2v4 cc rejects this.  */
18605     char *t;
18606     char const *s = 0 ? (char *) 0 : (char const *) 0;
18607
18608     *t++ = 0;
18609     if (s) return 0;
18610   }
18611   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18612     int x[] = {25, 17};
18613     const int *foo = &x[0];
18614     ++foo;
18615   }
18616   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18617     typedef const int *iptr;
18618     iptr p = 0;
18619     ++p;
18620   }
18621   { /* AIX XL C 1.02.0.0 rejects this saying
18622        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18623     struct s { int j; const int *ap[3]; };
18624     struct s *b; b->j = 5;
18625   }
18626   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18627     const int foo = 10;
18628     if (!foo) return 0;
18629   }
18630   return !cs[0] && !zero.x;
18631 #endif
18632
18633   ;
18634   return 0;
18635 }
18636 _ACEOF
18637 rm -f conftest.$ac_objext
18638 if { (ac_try="$ac_compile"
18639 case "(($ac_try" in
18640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641   *) ac_try_echo=$ac_try;;
18642 esac
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644   (eval "$ac_compile") 2>conftest.er1
18645   ac_status=$?
18646   grep -v '^ *+' conftest.er1 >conftest.err
18647   rm -f conftest.er1
18648   cat conftest.err >&5
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); } && {
18651          test -z "$ac_c_werror_flag" ||
18652          test ! -s conftest.err
18653        } && test -s conftest.$ac_objext; then
18654   ac_cv_c_const=yes
18655 else
18656   echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18658
18659         ac_cv_c_const=no
18660 fi
18661
18662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18663 fi
18664 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18665 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18666 if test $ac_cv_c_const = no; then
18667
18668 cat >>confdefs.h <<\_ACEOF
18669 #define const
18670 _ACEOF
18671
18672 fi
18673
18674
18675   { echo "$as_me:$LINENO: checking for signed" >&5
18676 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18677 if test "${bh_cv_c_signed+set}" = set; then
18678   echo $ECHO_N "(cached) $ECHO_C" >&6
18679 else
18680   cat >conftest.$ac_ext <<_ACEOF
18681 /* confdefs.h.  */
18682 _ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h.  */
18686
18687 int
18688 main ()
18689 {
18690 signed char x;
18691   ;
18692   return 0;
18693 }
18694 _ACEOF
18695 rm -f conftest.$ac_objext
18696 if { (ac_try="$ac_compile"
18697 case "(($ac_try" in
18698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699   *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702   (eval "$ac_compile") 2>conftest.er1
18703   ac_status=$?
18704   grep -v '^ *+' conftest.er1 >conftest.err
18705   rm -f conftest.er1
18706   cat conftest.err >&5
18707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708   (exit $ac_status); } && {
18709          test -z "$ac_c_werror_flag" ||
18710          test ! -s conftest.err
18711        } && test -s conftest.$ac_objext; then
18712   bh_cv_c_signed=yes
18713 else
18714   echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18716
18717         bh_cv_c_signed=no
18718 fi
18719
18720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18721 fi
18722 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18723 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18724   if test $bh_cv_c_signed = no; then
18725
18726 cat >>confdefs.h <<\_ACEOF
18727 #define signed
18728 _ACEOF
18729
18730   fi
18731
18732 { echo "$as_me:$LINENO: checking for inline" >&5
18733 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18734 if test "${ac_cv_c_inline+set}" = set; then
18735   echo $ECHO_N "(cached) $ECHO_C" >&6
18736 else
18737   ac_cv_c_inline=no
18738 for ac_kw in inline __inline__ __inline; do
18739   cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h.  */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h.  */
18745 #ifndef __cplusplus
18746 typedef int foo_t;
18747 static $ac_kw foo_t static_foo () {return 0; }
18748 $ac_kw foo_t foo () {return 0; }
18749 #endif
18750
18751 _ACEOF
18752 rm -f conftest.$ac_objext
18753 if { (ac_try="$ac_compile"
18754 case "(($ac_try" in
18755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756   *) ac_try_echo=$ac_try;;
18757 esac
18758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18759   (eval "$ac_compile") 2>conftest.er1
18760   ac_status=$?
18761   grep -v '^ *+' conftest.er1 >conftest.err
18762   rm -f conftest.er1
18763   cat conftest.err >&5
18764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765   (exit $ac_status); } && {
18766          test -z "$ac_c_werror_flag" ||
18767          test ! -s conftest.err
18768        } && test -s conftest.$ac_objext; then
18769   ac_cv_c_inline=$ac_kw
18770 else
18771   echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18773
18774
18775 fi
18776
18777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18778   test "$ac_cv_c_inline" != no && break
18779 done
18780
18781 fi
18782 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18783 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18784
18785
18786 case $ac_cv_c_inline in
18787   inline | yes) ;;
18788   *)
18789     case $ac_cv_c_inline in
18790       no) ac_val=;;
18791       *) ac_val=$ac_cv_c_inline;;
18792     esac
18793     cat >>confdefs.h <<_ACEOF
18794 #ifndef __cplusplus
18795 #define inline $ac_val
18796 #endif
18797 _ACEOF
18798     ;;
18799 esac
18800
18801 { echo "$as_me:$LINENO: checking for off_t" >&5
18802 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18803 if test "${ac_cv_type_off_t+set}" = set; then
18804   echo $ECHO_N "(cached) $ECHO_C" >&6
18805 else
18806   cat >conftest.$ac_ext <<_ACEOF
18807 /* confdefs.h.  */
18808 _ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h.  */
18812 $ac_includes_default
18813 typedef off_t ac__type_new_;
18814 int
18815 main ()
18816 {
18817 if ((ac__type_new_ *) 0)
18818   return 0;
18819 if (sizeof (ac__type_new_))
18820   return 0;
18821   ;
18822   return 0;
18823 }
18824 _ACEOF
18825 rm -f conftest.$ac_objext
18826 if { (ac_try="$ac_compile"
18827 case "(($ac_try" in
18828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829   *) ac_try_echo=$ac_try;;
18830 esac
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832   (eval "$ac_compile") 2>conftest.er1
18833   ac_status=$?
18834   grep -v '^ *+' conftest.er1 >conftest.err
18835   rm -f conftest.er1
18836   cat conftest.err >&5
18837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838   (exit $ac_status); } && {
18839          test -z "$ac_c_werror_flag" ||
18840          test ! -s conftest.err
18841        } && test -s conftest.$ac_objext; then
18842   ac_cv_type_off_t=yes
18843 else
18844   echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18846
18847         ac_cv_type_off_t=no
18848 fi
18849
18850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18851 fi
18852 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18853 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18854 if test $ac_cv_type_off_t = yes; then
18855   :
18856 else
18857
18858 cat >>confdefs.h <<_ACEOF
18859 #define off_t long int
18860 _ACEOF
18861
18862 fi
18863
18864 { echo "$as_me:$LINENO: checking for size_t" >&5
18865 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18866 if test "${ac_cv_type_size_t+set}" = set; then
18867   echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869   cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h.  */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h.  */
18875 $ac_includes_default
18876 typedef size_t ac__type_new_;
18877 int
18878 main ()
18879 {
18880 if ((ac__type_new_ *) 0)
18881   return 0;
18882 if (sizeof (ac__type_new_))
18883   return 0;
18884   ;
18885   return 0;
18886 }
18887 _ACEOF
18888 rm -f conftest.$ac_objext
18889 if { (ac_try="$ac_compile"
18890 case "(($ac_try" in
18891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892   *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895   (eval "$ac_compile") 2>conftest.er1
18896   ac_status=$?
18897   grep -v '^ *+' conftest.er1 >conftest.err
18898   rm -f conftest.er1
18899   cat conftest.err >&5
18900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); } && {
18902          test -z "$ac_c_werror_flag" ||
18903          test ! -s conftest.err
18904        } && test -s conftest.$ac_objext; then
18905   ac_cv_type_size_t=yes
18906 else
18907   echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18909
18910         ac_cv_type_size_t=no
18911 fi
18912
18913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18914 fi
18915 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18916 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18917 if test $ac_cv_type_size_t = yes; then
18918   :
18919 else
18920
18921 cat >>confdefs.h <<_ACEOF
18922 #define size_t unsigned int
18923 _ACEOF
18924
18925 fi
18926
18927
18928   { echo "$as_me:$LINENO: checking for long long" >&5
18929 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18930 if test "${ac_cv_type_long_long+set}" = set; then
18931   echo $ECHO_N "(cached) $ECHO_C" >&6
18932 else
18933   cat >conftest.$ac_ext <<_ACEOF
18934 /* confdefs.h.  */
18935 _ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h.  */
18939 long long ll = 1LL; int i = 63;
18940 int
18941 main ()
18942 {
18943 long long llmax = (long long) -1;
18944      return ll << i | ll >> i | llmax / ll | llmax % ll;
18945   ;
18946   return 0;
18947 }
18948 _ACEOF
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953   *) ac_try_echo=$ac_try;;
18954 esac
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956   (eval "$ac_link") 2>conftest.er1
18957   ac_status=$?
18958   grep -v '^ *+' conftest.er1 >conftest.err
18959   rm -f conftest.er1
18960   cat conftest.err >&5
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); } && {
18963          test -z "$ac_c_werror_flag" ||
18964          test ! -s conftest.err
18965        } && test -s conftest$ac_exeext &&
18966        $as_test_x conftest$ac_exeext; then
18967   ac_cv_type_long_long=yes
18968 else
18969   echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972         ac_cv_type_long_long=no
18973 fi
18974
18975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18976       conftest$ac_exeext conftest.$ac_ext
18977 fi
18978 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18979 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18980   if test $ac_cv_type_long_long = yes; then
18981
18982 cat >>confdefs.h <<\_ACEOF
18983 #define HAVE_LONG_LONG 1
18984 _ACEOF
18985
18986   fi
18987
18988
18989   { echo "$as_me:$LINENO: checking for long double" >&5
18990 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18991 if test "${gt_cv_c_long_double+set}" = set; then
18992   echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994   if test "$GCC" = yes; then
18995        gt_cv_c_long_double=yes
18996      else
18997        cat >conftest.$ac_ext <<_ACEOF
18998 /* confdefs.h.  */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h.  */
19003
19004          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19005          long double foo = 0.0;
19006          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19007          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19008
19009 int
19010 main ()
19011 {
19012
19013   ;
19014   return 0;
19015 }
19016 _ACEOF
19017 rm -f conftest.$ac_objext
19018 if { (ac_try="$ac_compile"
19019 case "(($ac_try" in
19020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021   *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024   (eval "$ac_compile") 2>conftest.er1
19025   ac_status=$?
19026   grep -v '^ *+' conftest.er1 >conftest.err
19027   rm -f conftest.er1
19028   cat conftest.err >&5
19029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); } && {
19031          test -z "$ac_c_werror_flag" ||
19032          test ! -s conftest.err
19033        } && test -s conftest.$ac_objext; then
19034   gt_cv_c_long_double=yes
19035 else
19036   echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19038
19039         gt_cv_c_long_double=no
19040 fi
19041
19042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19043      fi
19044 fi
19045 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19046 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19047   if test $gt_cv_c_long_double = yes; then
19048
19049 cat >>confdefs.h <<\_ACEOF
19050 #define HAVE_LONG_DOUBLE 1
19051 _ACEOF
19052
19053   fi
19054
19055
19056   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19057 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19058 if test "${gt_cv_c_wchar_t+set}" = set; then
19059   echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061   cat >conftest.$ac_ext <<_ACEOF
19062 /* confdefs.h.  */
19063 _ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h.  */
19067 #include <stddef.h>
19068        wchar_t foo = (wchar_t)'\0';
19069 int
19070 main ()
19071 {
19072
19073   ;
19074   return 0;
19075 }
19076 _ACEOF
19077 rm -f conftest.$ac_objext
19078 if { (ac_try="$ac_compile"
19079 case "(($ac_try" in
19080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081   *) ac_try_echo=$ac_try;;
19082 esac
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084   (eval "$ac_compile") 2>conftest.er1
19085   ac_status=$?
19086   grep -v '^ *+' conftest.er1 >conftest.err
19087   rm -f conftest.er1
19088   cat conftest.err >&5
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); } && {
19091          test -z "$ac_c_werror_flag" ||
19092          test ! -s conftest.err
19093        } && test -s conftest.$ac_objext; then
19094   gt_cv_c_wchar_t=yes
19095 else
19096   echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19098
19099         gt_cv_c_wchar_t=no
19100 fi
19101
19102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19103 fi
19104 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19105 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19106   if test $gt_cv_c_wchar_t = yes; then
19107
19108 cat >>confdefs.h <<\_ACEOF
19109 #define HAVE_WCHAR_T 1
19110 _ACEOF
19111
19112   fi
19113
19114
19115   { echo "$as_me:$LINENO: checking for wint_t" >&5
19116 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19117 if test "${gt_cv_c_wint_t+set}" = set; then
19118   echo $ECHO_N "(cached) $ECHO_C" >&6
19119 else
19120   cat >conftest.$ac_ext <<_ACEOF
19121 /* confdefs.h.  */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h.  */
19126 #include <wchar.h>
19127        wint_t foo = (wchar_t)'\0';
19128 int
19129 main ()
19130 {
19131
19132   ;
19133   return 0;
19134 }
19135 _ACEOF
19136 rm -f conftest.$ac_objext
19137 if { (ac_try="$ac_compile"
19138 case "(($ac_try" in
19139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140   *) ac_try_echo=$ac_try;;
19141 esac
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143   (eval "$ac_compile") 2>conftest.er1
19144   ac_status=$?
19145   grep -v '^ *+' conftest.er1 >conftest.err
19146   rm -f conftest.er1
19147   cat conftest.err >&5
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); } && {
19150          test -z "$ac_c_werror_flag" ||
19151          test ! -s conftest.err
19152        } && test -s conftest.$ac_objext; then
19153   gt_cv_c_wint_t=yes
19154 else
19155   echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19157
19158         gt_cv_c_wint_t=no
19159 fi
19160
19161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19162 fi
19163 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19164 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19165   if test $gt_cv_c_wint_t = yes; then
19166
19167 cat >>confdefs.h <<\_ACEOF
19168 #define HAVE_WINT_T 1
19169 _ACEOF
19170
19171   fi
19172
19173
19174   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19175 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19176 if test "${gl_cv_header_inttypes_h+set}" = set; then
19177   echo $ECHO_N "(cached) $ECHO_C" >&6
19178 else
19179   cat >conftest.$ac_ext <<_ACEOF
19180 /* confdefs.h.  */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h.  */
19185 #include <sys/types.h>
19186 #include <inttypes.h>
19187 int
19188 main ()
19189 {
19190 uintmax_t i = (uintmax_t) -1;
19191   ;
19192   return 0;
19193 }
19194 _ACEOF
19195 rm -f conftest.$ac_objext
19196 if { (ac_try="$ac_compile"
19197 case "(($ac_try" in
19198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199   *) ac_try_echo=$ac_try;;
19200 esac
19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202   (eval "$ac_compile") 2>conftest.er1
19203   ac_status=$?
19204   grep -v '^ *+' conftest.er1 >conftest.err
19205   rm -f conftest.er1
19206   cat conftest.err >&5
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); } && {
19209          test -z "$ac_c_werror_flag" ||
19210          test ! -s conftest.err
19211        } && test -s conftest.$ac_objext; then
19212   gl_cv_header_inttypes_h=yes
19213 else
19214   echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19216
19217         gl_cv_header_inttypes_h=no
19218 fi
19219
19220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19221 fi
19222 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19223 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19224   if test $gl_cv_header_inttypes_h = yes; then
19225
19226 cat >>confdefs.h <<_ACEOF
19227 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19228 _ACEOF
19229
19230   fi
19231
19232
19233   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19234 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19235 if test "${gl_cv_header_stdint_h+set}" = set; then
19236   echo $ECHO_N "(cached) $ECHO_C" >&6
19237 else
19238   cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h.  */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h.  */
19244 #include <sys/types.h>
19245 #include <stdint.h>
19246 int
19247 main ()
19248 {
19249 uintmax_t i = (uintmax_t) -1;
19250   ;
19251   return 0;
19252 }
19253 _ACEOF
19254 rm -f conftest.$ac_objext
19255 if { (ac_try="$ac_compile"
19256 case "(($ac_try" in
19257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258   *) ac_try_echo=$ac_try;;
19259 esac
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261   (eval "$ac_compile") 2>conftest.er1
19262   ac_status=$?
19263   grep -v '^ *+' conftest.er1 >conftest.err
19264   rm -f conftest.er1
19265   cat conftest.err >&5
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); } && {
19268          test -z "$ac_c_werror_flag" ||
19269          test ! -s conftest.err
19270        } && test -s conftest.$ac_objext; then
19271   gl_cv_header_stdint_h=yes
19272 else
19273   echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19275
19276         gl_cv_header_stdint_h=no
19277 fi
19278
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280 fi
19281 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19282 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19283   if test $gl_cv_header_stdint_h = yes; then
19284
19285 cat >>confdefs.h <<_ACEOF
19286 #define HAVE_STDINT_H_WITH_UINTMAX 1
19287 _ACEOF
19288
19289   fi
19290
19291
19292
19293
19294   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19295 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19296 if test "${gt_cv_c_intmax_t+set}" = set; then
19297   echo $ECHO_N "(cached) $ECHO_C" >&6
19298 else
19299   cat >conftest.$ac_ext <<_ACEOF
19300 /* confdefs.h.  */
19301 _ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h.  */
19305
19306 #include <stddef.h>
19307 #include <stdlib.h>
19308 #if HAVE_STDINT_H_WITH_UINTMAX
19309 #include <stdint.h>
19310 #endif
19311 #if HAVE_INTTYPES_H_WITH_UINTMAX
19312 #include <inttypes.h>
19313 #endif
19314
19315 int
19316 main ()
19317 {
19318 intmax_t x = -1;
19319   ;
19320   return 0;
19321 }
19322 _ACEOF
19323 rm -f conftest.$ac_objext
19324 if { (ac_try="$ac_compile"
19325 case "(($ac_try" in
19326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327   *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330   (eval "$ac_compile") 2>conftest.er1
19331   ac_status=$?
19332   grep -v '^ *+' conftest.er1 >conftest.err
19333   rm -f conftest.er1
19334   cat conftest.err >&5
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); } && {
19337          test -z "$ac_c_werror_flag" ||
19338          test ! -s conftest.err
19339        } && test -s conftest.$ac_objext; then
19340   gt_cv_c_intmax_t=yes
19341 else
19342   echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19344
19345         gt_cv_c_intmax_t=no
19346 fi
19347
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349 fi
19350 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19351 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19352   if test $gt_cv_c_intmax_t = yes; then
19353
19354 cat >>confdefs.h <<\_ACEOF
19355 #define HAVE_INTMAX_T 1
19356 _ACEOF
19357
19358   fi
19359
19360
19361
19362   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19363 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19364 if test "${gt_cv_func_printf_posix+set}" = set; then
19365   echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367
19368       if test "$cross_compiling" = yes; then
19369
19370         cat >conftest.$ac_ext <<_ACEOF
19371 /* confdefs.h.  */
19372 _ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h.  */
19376
19377 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19378   notposix
19379 #endif
19380
19381 _ACEOF
19382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19383   $EGREP "notposix" >/dev/null 2>&1; then
19384   gt_cv_func_printf_posix="guessing no"
19385 else
19386   gt_cv_func_printf_posix="guessing yes"
19387 fi
19388 rm -f conftest*
19389
19390
19391 else
19392   cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h.  */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h.  */
19398
19399 #include <stdio.h>
19400 #include <string.h>
19401 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19402    dollar expansion (possibly an autoconf bug).  */
19403 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19404 static char buf[100];
19405 int main ()
19406 {
19407   sprintf (buf, format, 33, 55);
19408   return (strcmp (buf, "55 33") != 0);
19409 }
19410 _ACEOF
19411 rm -f conftest$ac_exeext
19412 if { (ac_try="$ac_link"
19413 case "(($ac_try" in
19414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415   *) ac_try_echo=$ac_try;;
19416 esac
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418   (eval "$ac_link") 2>&5
19419   ac_status=$?
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19422   { (case "(($ac_try" in
19423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424   *) ac_try_echo=$ac_try;;
19425 esac
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427   (eval "$ac_try") 2>&5
19428   ac_status=$?
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); }; }; then
19431   gt_cv_func_printf_posix=yes
19432 else
19433   echo "$as_me: program exited with status $ac_status" >&5
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437 ( exit $ac_status )
19438 gt_cv_func_printf_posix=no
19439 fi
19440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19441 fi
19442
19443
19444
19445 fi
19446 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19447 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19448   case $gt_cv_func_printf_posix in
19449     *yes)
19450
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_POSIX_PRINTF 1
19453 _ACEOF
19454
19455       ;;
19456   esac
19457
19458 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19459 # for constant arguments.  Useless!
19460 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19461 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19462 if test "${ac_cv_working_alloca_h+set}" = set; then
19463   echo $ECHO_N "(cached) $ECHO_C" >&6
19464 else
19465   cat >conftest.$ac_ext <<_ACEOF
19466 /* confdefs.h.  */
19467 _ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h.  */
19471 #include <alloca.h>
19472 int
19473 main ()
19474 {
19475 char *p = (char *) alloca (2 * sizeof (int));
19476                           if (p) return 0;
19477   ;
19478   return 0;
19479 }
19480 _ACEOF
19481 rm -f conftest.$ac_objext conftest$ac_exeext
19482 if { (ac_try="$ac_link"
19483 case "(($ac_try" in
19484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485   *) ac_try_echo=$ac_try;;
19486 esac
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488   (eval "$ac_link") 2>conftest.er1
19489   ac_status=$?
19490   grep -v '^ *+' conftest.er1 >conftest.err
19491   rm -f conftest.er1
19492   cat conftest.err >&5
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); } && {
19495          test -z "$ac_c_werror_flag" ||
19496          test ! -s conftest.err
19497        } && test -s conftest$ac_exeext &&
19498        $as_test_x conftest$ac_exeext; then
19499   ac_cv_working_alloca_h=yes
19500 else
19501   echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19503
19504         ac_cv_working_alloca_h=no
19505 fi
19506
19507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19508       conftest$ac_exeext conftest.$ac_ext
19509 fi
19510 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19511 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19512 if test $ac_cv_working_alloca_h = yes; then
19513
19514 cat >>confdefs.h <<\_ACEOF
19515 #define HAVE_ALLOCA_H 1
19516 _ACEOF
19517
19518 fi
19519
19520 { echo "$as_me:$LINENO: checking for alloca" >&5
19521 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19522 if test "${ac_cv_func_alloca_works+set}" = set; then
19523   echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525   cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h.  */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h.  */
19531 #ifdef __GNUC__
19532 # define alloca __builtin_alloca
19533 #else
19534 # ifdef _MSC_VER
19535 #  include <malloc.h>
19536 #  define alloca _alloca
19537 # else
19538 #  ifdef HAVE_ALLOCA_H
19539 #   include <alloca.h>
19540 #  else
19541 #   ifdef _AIX
19542  #pragma alloca
19543 #   else
19544 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19545 char *alloca ();
19546 #    endif
19547 #   endif
19548 #  endif
19549 # endif
19550 #endif
19551
19552 int
19553 main ()
19554 {
19555 char *p = (char *) alloca (1);
19556                                     if (p) return 0;
19557   ;
19558   return 0;
19559 }
19560 _ACEOF
19561 rm -f conftest.$ac_objext conftest$ac_exeext
19562 if { (ac_try="$ac_link"
19563 case "(($ac_try" in
19564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565   *) ac_try_echo=$ac_try;;
19566 esac
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568   (eval "$ac_link") 2>conftest.er1
19569   ac_status=$?
19570   grep -v '^ *+' conftest.er1 >conftest.err
19571   rm -f conftest.er1
19572   cat conftest.err >&5
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); } && {
19575          test -z "$ac_c_werror_flag" ||
19576          test ! -s conftest.err
19577        } && test -s conftest$ac_exeext &&
19578        $as_test_x conftest$ac_exeext; then
19579   ac_cv_func_alloca_works=yes
19580 else
19581   echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19583
19584         ac_cv_func_alloca_works=no
19585 fi
19586
19587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19588       conftest$ac_exeext conftest.$ac_ext
19589 fi
19590 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19591 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19592
19593 if test $ac_cv_func_alloca_works = yes; then
19594
19595 cat >>confdefs.h <<\_ACEOF
19596 #define HAVE_ALLOCA 1
19597 _ACEOF
19598
19599 else
19600   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19601 # that cause trouble.  Some versions do not even contain alloca or
19602 # contain a buggy version.  If you still want to use their alloca,
19603 # use ar to extract alloca.o from them instead of compiling alloca.c.
19604
19605 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19606
19607 cat >>confdefs.h <<\_ACEOF
19608 #define C_ALLOCA 1
19609 _ACEOF
19610
19611
19612 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19613 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19614 if test "${ac_cv_os_cray+set}" = set; then
19615   echo $ECHO_N "(cached) $ECHO_C" >&6
19616 else
19617   cat >conftest.$ac_ext <<_ACEOF
19618 /* confdefs.h.  */
19619 _ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h.  */
19623 #if defined CRAY && ! defined CRAY2
19624 webecray
19625 #else
19626 wenotbecray
19627 #endif
19628
19629 _ACEOF
19630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19631   $EGREP "webecray" >/dev/null 2>&1; then
19632   ac_cv_os_cray=yes
19633 else
19634   ac_cv_os_cray=no
19635 fi
19636 rm -f conftest*
19637
19638 fi
19639 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19640 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19641 if test $ac_cv_os_cray = yes; then
19642   for ac_func in _getb67 GETB67 getb67; do
19643     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19647   echo $ECHO_N "(cached) $ECHO_C" >&6
19648 else
19649   cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h.  */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h.  */
19655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19657 #define $ac_func innocuous_$ac_func
19658
19659 /* System header to define __stub macros and hopefully few prototypes,
19660     which can conflict with char $ac_func (); below.
19661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19662     <limits.h> exists even on freestanding compilers.  */
19663
19664 #ifdef __STDC__
19665 # include <limits.h>
19666 #else
19667 # include <assert.h>
19668 #endif
19669
19670 #undef $ac_func
19671
19672 /* Override any GCC internal prototype to avoid an error.
19673    Use char because int might match the return type of a GCC
19674    builtin and then its argument prototype would still apply.  */
19675 #ifdef __cplusplus
19676 extern "C"
19677 #endif
19678 char $ac_func ();
19679 /* The GNU C library defines this for functions which it implements
19680     to always fail with ENOSYS.  Some functions are actually named
19681     something starting with __ and the normal name is an alias.  */
19682 #if defined __stub_$ac_func || defined __stub___$ac_func
19683 choke me
19684 #endif
19685
19686 int
19687 main ()
19688 {
19689 return $ac_func ();
19690   ;
19691   return 0;
19692 }
19693 _ACEOF
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (ac_try="$ac_link"
19696 case "(($ac_try" in
19697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698   *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701   (eval "$ac_link") 2>conftest.er1
19702   ac_status=$?
19703   grep -v '^ *+' conftest.er1 >conftest.err
19704   rm -f conftest.er1
19705   cat conftest.err >&5
19706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707   (exit $ac_status); } && {
19708          test -z "$ac_c_werror_flag" ||
19709          test ! -s conftest.err
19710        } && test -s conftest$ac_exeext &&
19711        $as_test_x conftest$ac_exeext; then
19712   eval "$as_ac_var=yes"
19713 else
19714   echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19716
19717         eval "$as_ac_var=no"
19718 fi
19719
19720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19721       conftest$ac_exeext conftest.$ac_ext
19722 fi
19723 ac_res=`eval echo '${'$as_ac_var'}'`
19724                { echo "$as_me:$LINENO: result: $ac_res" >&5
19725 echo "${ECHO_T}$ac_res" >&6; }
19726 if test `eval echo '${'$as_ac_var'}'` = yes; then
19727
19728 cat >>confdefs.h <<_ACEOF
19729 #define CRAY_STACKSEG_END $ac_func
19730 _ACEOF
19731
19732     break
19733 fi
19734
19735   done
19736 fi
19737
19738 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19739 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19740 if test "${ac_cv_c_stack_direction+set}" = set; then
19741   echo $ECHO_N "(cached) $ECHO_C" >&6
19742 else
19743   if test "$cross_compiling" = yes; then
19744   ac_cv_c_stack_direction=0
19745 else
19746   cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h.  */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h.  */
19752 $ac_includes_default
19753 int
19754 find_stack_direction ()
19755 {
19756   static char *addr = 0;
19757   auto char dummy;
19758   if (addr == 0)
19759     {
19760       addr = &dummy;
19761       return find_stack_direction ();
19762     }
19763   else
19764     return (&dummy > addr) ? 1 : -1;
19765 }
19766
19767 int
19768 main ()
19769 {
19770   return find_stack_direction () < 0;
19771 }
19772 _ACEOF
19773 rm -f conftest$ac_exeext
19774 if { (ac_try="$ac_link"
19775 case "(($ac_try" in
19776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777   *) ac_try_echo=$ac_try;;
19778 esac
19779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780   (eval "$ac_link") 2>&5
19781   ac_status=$?
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19784   { (case "(($ac_try" in
19785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786   *) ac_try_echo=$ac_try;;
19787 esac
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789   (eval "$ac_try") 2>&5
19790   ac_status=$?
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); }; }; then
19793   ac_cv_c_stack_direction=1
19794 else
19795   echo "$as_me: program exited with status $ac_status" >&5
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799 ( exit $ac_status )
19800 ac_cv_c_stack_direction=-1
19801 fi
19802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19803 fi
19804
19805
19806 fi
19807 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19808 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19809
19810 cat >>confdefs.h <<_ACEOF
19811 #define STACK_DIRECTION $ac_cv_c_stack_direction
19812 _ACEOF
19813
19814
19815 fi
19816
19817
19818
19819 for ac_header in stdlib.h unistd.h
19820 do
19821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19823   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19826   echo $ECHO_N "(cached) $ECHO_C" >&6
19827 fi
19828 ac_res=`eval echo '${'$as_ac_Header'}'`
19829                { echo "$as_me:$LINENO: result: $ac_res" >&5
19830 echo "${ECHO_T}$ac_res" >&6; }
19831 else
19832   # Is the header compilable?
19833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841 $ac_includes_default
19842 #include <$ac_header>
19843 _ACEOF
19844 rm -f conftest.$ac_objext
19845 if { (ac_try="$ac_compile"
19846 case "(($ac_try" in
19847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848   *) ac_try_echo=$ac_try;;
19849 esac
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851   (eval "$ac_compile") 2>conftest.er1
19852   ac_status=$?
19853   grep -v '^ *+' conftest.er1 >conftest.err
19854   rm -f conftest.er1
19855   cat conftest.err >&5
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); } && {
19858          test -z "$ac_c_werror_flag" ||
19859          test ! -s conftest.err
19860        } && test -s conftest.$ac_objext; then
19861   ac_header_compiler=yes
19862 else
19863   echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19865
19866         ac_header_compiler=no
19867 fi
19868
19869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19871 echo "${ECHO_T}$ac_header_compiler" >&6; }
19872
19873 # Is the header present?
19874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19876 cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h.  */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h.  */
19882 #include <$ac_header>
19883 _ACEOF
19884 if { (ac_try="$ac_cpp conftest.$ac_ext"
19885 case "(($ac_try" in
19886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887   *) ac_try_echo=$ac_try;;
19888 esac
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19891   ac_status=$?
19892   grep -v '^ *+' conftest.er1 >conftest.err
19893   rm -f conftest.er1
19894   cat conftest.err >&5
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); } >/dev/null && {
19897          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19898          test ! -s conftest.err
19899        }; then
19900   ac_header_preproc=yes
19901 else
19902   echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19904
19905   ac_header_preproc=no
19906 fi
19907
19908 rm -f conftest.err conftest.$ac_ext
19909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19910 echo "${ECHO_T}$ac_header_preproc" >&6; }
19911
19912 # So?  What about this header?
19913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19914   yes:no: )
19915     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19919     ac_header_preproc=yes
19920     ;;
19921   no:yes:* )
19922     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19924     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19925 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19926     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19928     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19929 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19932     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19934
19935     ;;
19936 esac
19937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19940   echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942   eval "$as_ac_Header=\$ac_header_preproc"
19943 fi
19944 ac_res=`eval echo '${'$as_ac_Header'}'`
19945                { echo "$as_me:$LINENO: result: $ac_res" >&5
19946 echo "${ECHO_T}$ac_res" >&6; }
19947
19948 fi
19949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19950   cat >>confdefs.h <<_ACEOF
19951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19952 _ACEOF
19953
19954 fi
19955
19956 done
19957
19958
19959 for ac_func in getpagesize
19960 do
19961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19965   echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967   cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h.  */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h.  */
19973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19975 #define $ac_func innocuous_$ac_func
19976
19977 /* System header to define __stub macros and hopefully few prototypes,
19978     which can conflict with char $ac_func (); below.
19979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19980     <limits.h> exists even on freestanding compilers.  */
19981
19982 #ifdef __STDC__
19983 # include <limits.h>
19984 #else
19985 # include <assert.h>
19986 #endif
19987
19988 #undef $ac_func
19989
19990 /* Override any GCC internal prototype to avoid an error.
19991    Use char because int might match the return type of a GCC
19992    builtin and then its argument prototype would still apply.  */
19993 #ifdef __cplusplus
19994 extern "C"
19995 #endif
19996 char $ac_func ();
19997 /* The GNU C library defines this for functions which it implements
19998     to always fail with ENOSYS.  Some functions are actually named
19999     something starting with __ and the normal name is an alias.  */
20000 #if defined __stub_$ac_func || defined __stub___$ac_func
20001 choke me
20002 #endif
20003
20004 int
20005 main ()
20006 {
20007 return $ac_func ();
20008   ;
20009   return 0;
20010 }
20011 _ACEOF
20012 rm -f conftest.$ac_objext conftest$ac_exeext
20013 if { (ac_try="$ac_link"
20014 case "(($ac_try" in
20015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016   *) ac_try_echo=$ac_try;;
20017 esac
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019   (eval "$ac_link") 2>conftest.er1
20020   ac_status=$?
20021   grep -v '^ *+' conftest.er1 >conftest.err
20022   rm -f conftest.er1
20023   cat conftest.err >&5
20024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); } && {
20026          test -z "$ac_c_werror_flag" ||
20027          test ! -s conftest.err
20028        } && test -s conftest$ac_exeext &&
20029        $as_test_x conftest$ac_exeext; then
20030   eval "$as_ac_var=yes"
20031 else
20032   echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20034
20035         eval "$as_ac_var=no"
20036 fi
20037
20038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20039       conftest$ac_exeext conftest.$ac_ext
20040 fi
20041 ac_res=`eval echo '${'$as_ac_var'}'`
20042                { echo "$as_me:$LINENO: result: $ac_res" >&5
20043 echo "${ECHO_T}$ac_res" >&6; }
20044 if test `eval echo '${'$as_ac_var'}'` = yes; then
20045   cat >>confdefs.h <<_ACEOF
20046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20047 _ACEOF
20048
20049 fi
20050 done
20051
20052 { echo "$as_me:$LINENO: checking for working mmap" >&5
20053 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20054 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20055   echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057   if test "$cross_compiling" = yes; then
20058   ac_cv_func_mmap_fixed_mapped=no
20059 else
20060   cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20066 $ac_includes_default
20067 /* malloc might have been renamed as rpl_malloc. */
20068 #undef malloc
20069
20070 /* Thanks to Mike Haertel and Jim Avera for this test.
20071    Here is a matrix of mmap possibilities:
20072         mmap private not fixed
20073         mmap private fixed at somewhere currently unmapped
20074         mmap private fixed at somewhere already mapped
20075         mmap shared not fixed
20076         mmap shared fixed at somewhere currently unmapped
20077         mmap shared fixed at somewhere already mapped
20078    For private mappings, we should verify that changes cannot be read()
20079    back from the file, nor mmap's back from the file at a different
20080    address.  (There have been systems where private was not correctly
20081    implemented like the infamous i386 svr4.0, and systems where the
20082    VM page cache was not coherent with the file system buffer cache
20083    like early versions of FreeBSD and possibly contemporary NetBSD.)
20084    For shared mappings, we should conversely verify that changes get
20085    propagated back to all the places they're supposed to be.
20086
20087    Grep wants private fixed already mapped.
20088    The main things grep needs to know about mmap are:
20089    * does it exist and is it safe to write into the mmap'd area
20090    * how to use it (BSD variants)  */
20091
20092 #include <fcntl.h>
20093 #include <sys/mman.h>
20094
20095 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20096 char *malloc ();
20097 #endif
20098
20099 /* This mess was copied from the GNU getpagesize.h.  */
20100 #ifndef HAVE_GETPAGESIZE
20101 /* Assume that all systems that can run configure have sys/param.h.  */
20102 # ifndef HAVE_SYS_PARAM_H
20103 #  define HAVE_SYS_PARAM_H 1
20104 # endif
20105
20106 # ifdef _SC_PAGESIZE
20107 #  define getpagesize() sysconf(_SC_PAGESIZE)
20108 # else /* no _SC_PAGESIZE */
20109 #  ifdef HAVE_SYS_PARAM_H
20110 #   include <sys/param.h>
20111 #   ifdef EXEC_PAGESIZE
20112 #    define getpagesize() EXEC_PAGESIZE
20113 #   else /* no EXEC_PAGESIZE */
20114 #    ifdef NBPG
20115 #     define getpagesize() NBPG * CLSIZE
20116 #     ifndef CLSIZE
20117 #      define CLSIZE 1
20118 #     endif /* no CLSIZE */
20119 #    else /* no NBPG */
20120 #     ifdef NBPC
20121 #      define getpagesize() NBPC
20122 #     else /* no NBPC */
20123 #      ifdef PAGESIZE
20124 #       define getpagesize() PAGESIZE
20125 #      endif /* PAGESIZE */
20126 #     endif /* no NBPC */
20127 #    endif /* no NBPG */
20128 #   endif /* no EXEC_PAGESIZE */
20129 #  else /* no HAVE_SYS_PARAM_H */
20130 #   define getpagesize() 8192   /* punt totally */
20131 #  endif /* no HAVE_SYS_PARAM_H */
20132 # endif /* no _SC_PAGESIZE */
20133
20134 #endif /* no HAVE_GETPAGESIZE */
20135
20136 int
20137 main ()
20138 {
20139   char *data, *data2, *data3;
20140   int i, pagesize;
20141   int fd;
20142
20143   pagesize = getpagesize ();
20144
20145   /* First, make a file with some known garbage in it. */
20146   data = (char *) malloc (pagesize);
20147   if (!data)
20148     return 1;
20149   for (i = 0; i < pagesize; ++i)
20150     *(data + i) = rand ();
20151   umask (0);
20152   fd = creat ("conftest.mmap", 0600);
20153   if (fd < 0)
20154     return 1;
20155   if (write (fd, data, pagesize) != pagesize)
20156     return 1;
20157   close (fd);
20158
20159   /* Next, try to mmap the file at a fixed address which already has
20160      something else allocated at it.  If we can, also make sure that
20161      we see the same garbage.  */
20162   fd = open ("conftest.mmap", O_RDWR);
20163   if (fd < 0)
20164     return 1;
20165   data2 = (char *) malloc (2 * pagesize);
20166   if (!data2)
20167     return 1;
20168   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20169   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20170                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20171     return 1;
20172   for (i = 0; i < pagesize; ++i)
20173     if (*(data + i) != *(data2 + i))
20174       return 1;
20175
20176   /* Finally, make sure that changes to the mapped area do not
20177      percolate back to the file as seen by read().  (This is a bug on
20178      some variants of i386 svr4.0.)  */
20179   for (i = 0; i < pagesize; ++i)
20180     *(data2 + i) = *(data2 + i) + 1;
20181   data3 = (char *) malloc (pagesize);
20182   if (!data3)
20183     return 1;
20184   if (read (fd, data3, pagesize) != pagesize)
20185     return 1;
20186   for (i = 0; i < pagesize; ++i)
20187     if (*(data + i) != *(data3 + i))
20188       return 1;
20189   close (fd);
20190   return 0;
20191 }
20192 _ACEOF
20193 rm -f conftest$ac_exeext
20194 if { (ac_try="$ac_link"
20195 case "(($ac_try" in
20196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197   *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200   (eval "$ac_link") 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20204   { (case "(($ac_try" in
20205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206   *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209   (eval "$ac_try") 2>&5
20210   ac_status=$?
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); }; }; then
20213   ac_cv_func_mmap_fixed_mapped=yes
20214 else
20215   echo "$as_me: program exited with status $ac_status" >&5
20216 echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219 ( exit $ac_status )
20220 ac_cv_func_mmap_fixed_mapped=no
20221 fi
20222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20223 fi
20224
20225
20226 fi
20227 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20228 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20229 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20230
20231 cat >>confdefs.h <<\_ACEOF
20232 #define HAVE_MMAP 1
20233 _ACEOF
20234
20235 fi
20236 rm -f conftest.mmap
20237
20238
20239     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20240 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20241 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20242   echo $ECHO_N "(cached) $ECHO_C" >&6
20243 else
20244   cat >conftest.$ac_ext <<_ACEOF
20245 /* confdefs.h.  */
20246 _ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h.  */
20250
20251 #include <features.h>
20252 #ifdef __GNU_LIBRARY__
20253  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20254   Lucky GNU user
20255  #endif
20256 #endif
20257
20258 _ACEOF
20259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20260   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20261   ac_cv_gnu_library_2_1=yes
20262 else
20263   ac_cv_gnu_library_2_1=no
20264 fi
20265 rm -f conftest*
20266
20267
20268
20269 fi
20270 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20271 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20272
20273     GLIBC21="$ac_cv_gnu_library_2_1"
20274
20275
20276
20277
20278   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20279 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20280 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20281   echo $ECHO_N "(cached) $ECHO_C" >&6
20282 else
20283
20284       if test "$cross_compiling" = yes; then
20285
20286           # Guess based on the CPU.
20287           case "$host_cpu" in
20288             alpha* | i3456786 | m68k | s390*)
20289               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20290             *)
20291               gt_cv_int_divbyzero_sigfpe="guessing no";;
20292           esac
20293
20294 else
20295   cat >conftest.$ac_ext <<_ACEOF
20296 /* confdefs.h.  */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h.  */
20301
20302 #include <stdlib.h>
20303 #include <signal.h>
20304
20305 static void
20306 #ifdef __cplusplus
20307 sigfpe_handler (int sig)
20308 #else
20309 sigfpe_handler (sig) int sig;
20310 #endif
20311 {
20312   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20313   exit (sig != SIGFPE);
20314 }
20315
20316 int x = 1;
20317 int y = 0;
20318 int z;
20319 int nan;
20320
20321 int main ()
20322 {
20323   signal (SIGFPE, sigfpe_handler);
20324 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20325 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20326   signal (SIGTRAP, sigfpe_handler);
20327 #endif
20328 /* Linux/SPARC yields signal SIGILL.  */
20329 #if defined (__sparc__) && defined (__linux__)
20330   signal (SIGILL, sigfpe_handler);
20331 #endif
20332
20333   z = x / y;
20334   nan = y / y;
20335   exit (1);
20336 }
20337
20338 _ACEOF
20339 rm -f conftest$ac_exeext
20340 if { (ac_try="$ac_link"
20341 case "(($ac_try" in
20342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343   *) ac_try_echo=$ac_try;;
20344 esac
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346   (eval "$ac_link") 2>&5
20347   ac_status=$?
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20350   { (case "(($ac_try" in
20351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352   *) ac_try_echo=$ac_try;;
20353 esac
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355   (eval "$ac_try") 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; }; then
20359   gt_cv_int_divbyzero_sigfpe=yes
20360 else
20361   echo "$as_me: program exited with status $ac_status" >&5
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20364
20365 ( exit $ac_status )
20366 gt_cv_int_divbyzero_sigfpe=no
20367 fi
20368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20369 fi
20370
20371
20372
20373 fi
20374 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20375 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20376   case "$gt_cv_int_divbyzero_sigfpe" in
20377     *yes) value=1;;
20378     *) value=0;;
20379   esac
20380
20381 cat >>confdefs.h <<_ACEOF
20382 #define INTDIV0_RAISES_SIGFPE $value
20383 _ACEOF
20384
20385
20386
20387   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20388 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20389 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20390   echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392   cat >conftest.$ac_ext <<_ACEOF
20393 /* confdefs.h.  */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h.  */
20398 unsigned long long ull = 1ULL; int i = 63;
20399 int
20400 main ()
20401 {
20402 unsigned long long ullmax = (unsigned long long) -1;
20403      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20404   ;
20405   return 0;
20406 }
20407 _ACEOF
20408 rm -f conftest.$ac_objext conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412   *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415   (eval "$ac_link") 2>conftest.er1
20416   ac_status=$?
20417   grep -v '^ *+' conftest.er1 >conftest.err
20418   rm -f conftest.er1
20419   cat conftest.err >&5
20420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421   (exit $ac_status); } && {
20422          test -z "$ac_c_werror_flag" ||
20423          test ! -s conftest.err
20424        } && test -s conftest$ac_exeext &&
20425        $as_test_x conftest$ac_exeext; then
20426   ac_cv_type_unsigned_long_long=yes
20427 else
20428   echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20430
20431         ac_cv_type_unsigned_long_long=no
20432 fi
20433
20434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20435       conftest$ac_exeext conftest.$ac_ext
20436 fi
20437 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20438 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20439   if test $ac_cv_type_unsigned_long_long = yes; then
20440
20441 cat >>confdefs.h <<\_ACEOF
20442 #define HAVE_UNSIGNED_LONG_LONG 1
20443 _ACEOF
20444
20445   fi
20446
20447
20448
20449
20450   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20451
20452     test $ac_cv_type_unsigned_long_long = yes \
20453       && ac_type='unsigned long long' \
20454       || ac_type='unsigned long'
20455
20456 cat >>confdefs.h <<_ACEOF
20457 #define uintmax_t $ac_type
20458 _ACEOF
20459
20460   else
20461
20462 cat >>confdefs.h <<\_ACEOF
20463 #define HAVE_UINTMAX_T 1
20464 _ACEOF
20465
20466   fi
20467
20468
20469   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20470 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20471 if test "${gt_cv_header_inttypes_h+set}" = set; then
20472   echo $ECHO_N "(cached) $ECHO_C" >&6
20473 else
20474
20475     cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h.  */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h.  */
20481 #include <sys/types.h>
20482 #include <inttypes.h>
20483 int
20484 main ()
20485 {
20486
20487   ;
20488   return 0;
20489 }
20490 _ACEOF
20491 rm -f conftest.$ac_objext
20492 if { (ac_try="$ac_compile"
20493 case "(($ac_try" in
20494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495   *) ac_try_echo=$ac_try;;
20496 esac
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498   (eval "$ac_compile") 2>conftest.er1
20499   ac_status=$?
20500   grep -v '^ *+' conftest.er1 >conftest.err
20501   rm -f conftest.er1
20502   cat conftest.err >&5
20503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504   (exit $ac_status); } && {
20505          test -z "$ac_c_werror_flag" ||
20506          test ! -s conftest.err
20507        } && test -s conftest.$ac_objext; then
20508   gt_cv_header_inttypes_h=yes
20509 else
20510   echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20512
20513         gt_cv_header_inttypes_h=no
20514 fi
20515
20516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20517
20518 fi
20519 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20520 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20521   if test $gt_cv_header_inttypes_h = yes; then
20522
20523 cat >>confdefs.h <<_ACEOF
20524 #define HAVE_INTTYPES_H 1
20525 _ACEOF
20526
20527   fi
20528
20529
20530
20531   if test $gt_cv_header_inttypes_h = yes; then
20532     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20533 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20534 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20535   echo $ECHO_N "(cached) $ECHO_C" >&6
20536 else
20537
20538         cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h.  */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h.  */
20544 #include <inttypes.h>
20545 #ifdef PRId32
20546 char *p = PRId32;
20547 #endif
20548
20549 int
20550 main ()
20551 {
20552
20553   ;
20554   return 0;
20555 }
20556 _ACEOF
20557 rm -f conftest.$ac_objext
20558 if { (ac_try="$ac_compile"
20559 case "(($ac_try" in
20560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561   *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564   (eval "$ac_compile") 2>conftest.er1
20565   ac_status=$?
20566   grep -v '^ *+' conftest.er1 >conftest.err
20567   rm -f conftest.er1
20568   cat conftest.err >&5
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); } && {
20571          test -z "$ac_c_werror_flag" ||
20572          test ! -s conftest.err
20573        } && test -s conftest.$ac_objext; then
20574   gt_cv_inttypes_pri_broken=no
20575 else
20576   echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579         gt_cv_inttypes_pri_broken=yes
20580 fi
20581
20582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583
20584 fi
20585 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20586 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20587   fi
20588   if test "$gt_cv_inttypes_pri_broken" = yes; then
20589
20590 cat >>confdefs.h <<_ACEOF
20591 #define PRI_MACROS_BROKEN 1
20592 _ACEOF
20593
20594   fi
20595
20596
20597
20598 for ac_header in stdint.h
20599 do
20600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20602   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20605   echo $ECHO_N "(cached) $ECHO_C" >&6
20606 fi
20607 ac_res=`eval echo '${'$as_ac_Header'}'`
20608                { echo "$as_me:$LINENO: result: $ac_res" >&5
20609 echo "${ECHO_T}$ac_res" >&6; }
20610 else
20611   # Is the header compilable?
20612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20614 cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h.  */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h.  */
20620 $ac_includes_default
20621 #include <$ac_header>
20622 _ACEOF
20623 rm -f conftest.$ac_objext
20624 if { (ac_try="$ac_compile"
20625 case "(($ac_try" in
20626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627   *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630   (eval "$ac_compile") 2>conftest.er1
20631   ac_status=$?
20632   grep -v '^ *+' conftest.er1 >conftest.err
20633   rm -f conftest.er1
20634   cat conftest.err >&5
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); } && {
20637          test -z "$ac_c_werror_flag" ||
20638          test ! -s conftest.err
20639        } && test -s conftest.$ac_objext; then
20640   ac_header_compiler=yes
20641 else
20642   echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20644
20645         ac_header_compiler=no
20646 fi
20647
20648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20650 echo "${ECHO_T}$ac_header_compiler" >&6; }
20651
20652 # Is the header present?
20653 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20655 cat >conftest.$ac_ext <<_ACEOF
20656 /* confdefs.h.  */
20657 _ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h.  */
20661 #include <$ac_header>
20662 _ACEOF
20663 if { (ac_try="$ac_cpp conftest.$ac_ext"
20664 case "(($ac_try" in
20665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666   *) ac_try_echo=$ac_try;;
20667 esac
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20670   ac_status=$?
20671   grep -v '^ *+' conftest.er1 >conftest.err
20672   rm -f conftest.er1
20673   cat conftest.err >&5
20674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675   (exit $ac_status); } >/dev/null && {
20676          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20677          test ! -s conftest.err
20678        }; then
20679   ac_header_preproc=yes
20680 else
20681   echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20683
20684   ac_header_preproc=no
20685 fi
20686
20687 rm -f conftest.err conftest.$ac_ext
20688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20689 echo "${ECHO_T}$ac_header_preproc" >&6; }
20690
20691 # So?  What about this header?
20692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20693   yes:no: )
20694     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20698     ac_header_preproc=yes
20699     ;;
20700   no:yes:* )
20701     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20703     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20704 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20705     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20707     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20708 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20711     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20713
20714     ;;
20715 esac
20716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20719   echo $ECHO_N "(cached) $ECHO_C" >&6
20720 else
20721   eval "$as_ac_Header=\$ac_header_preproc"
20722 fi
20723 ac_res=`eval echo '${'$as_ac_Header'}'`
20724                { echo "$as_me:$LINENO: result: $ac_res" >&5
20725 echo "${ECHO_T}$ac_res" >&6; }
20726
20727 fi
20728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20729   cat >>confdefs.h <<_ACEOF
20730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20731 _ACEOF
20732
20733 fi
20734
20735 done
20736
20737     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20738 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20739   result=
20740   cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h.  */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h.  */
20746
20747 #include <limits.h>
20748 #if HAVE_STDINT_H
20749 #include <stdint.h>
20750 #endif
20751 #ifdef SIZE_MAX
20752 Found it
20753 #endif
20754
20755 _ACEOF
20756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20757   $EGREP "Found it" >/dev/null 2>&1; then
20758   result=yes
20759 fi
20760 rm -f conftest*
20761
20762   if test -z "$result"; then
20763                     if test "$cross_compiling" = yes; then
20764   # Depending upon the size, compute the lo and hi bounds.
20765 cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771 #include <stddef.h>
20772 int
20773 main ()
20774 {
20775 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20776 test_array [0] = 0
20777
20778   ;
20779   return 0;
20780 }
20781 _ACEOF
20782 rm -f conftest.$ac_objext
20783 if { (ac_try="$ac_compile"
20784 case "(($ac_try" in
20785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786   *) ac_try_echo=$ac_try;;
20787 esac
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789   (eval "$ac_compile") 2>conftest.er1
20790   ac_status=$?
20791   grep -v '^ *+' conftest.er1 >conftest.err
20792   rm -f conftest.er1
20793   cat conftest.err >&5
20794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795   (exit $ac_status); } && {
20796          test -z "$ac_c_werror_flag" ||
20797          test ! -s conftest.err
20798        } && test -s conftest.$ac_objext; then
20799   ac_lo=0 ac_mid=0
20800   while :; do
20801     cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h.  */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h.  */
20807 #include <stddef.h>
20808 int
20809 main ()
20810 {
20811 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20812 test_array [0] = 0
20813
20814   ;
20815   return 0;
20816 }
20817 _ACEOF
20818 rm -f conftest.$ac_objext
20819 if { (ac_try="$ac_compile"
20820 case "(($ac_try" in
20821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822   *) ac_try_echo=$ac_try;;
20823 esac
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825   (eval "$ac_compile") 2>conftest.er1
20826   ac_status=$?
20827   grep -v '^ *+' conftest.er1 >conftest.err
20828   rm -f conftest.er1
20829   cat conftest.err >&5
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); } && {
20832          test -z "$ac_c_werror_flag" ||
20833          test ! -s conftest.err
20834        } && test -s conftest.$ac_objext; then
20835   ac_hi=$ac_mid; break
20836 else
20837   echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20839
20840         ac_lo=`expr $ac_mid + 1`
20841                         if test $ac_lo -le $ac_mid; then
20842                           ac_lo= ac_hi=
20843                           break
20844                         fi
20845                         ac_mid=`expr 2 '*' $ac_mid + 1`
20846 fi
20847
20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849   done
20850 else
20851   echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.$ac_ext >&5
20853
20854         cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h.  */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h.  */
20860 #include <stddef.h>
20861 int
20862 main ()
20863 {
20864 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20865 test_array [0] = 0
20866
20867   ;
20868   return 0;
20869 }
20870 _ACEOF
20871 rm -f conftest.$ac_objext
20872 if { (ac_try="$ac_compile"
20873 case "(($ac_try" in
20874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875   *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878   (eval "$ac_compile") 2>conftest.er1
20879   ac_status=$?
20880   grep -v '^ *+' conftest.er1 >conftest.err
20881   rm -f conftest.er1
20882   cat conftest.err >&5
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); } && {
20885          test -z "$ac_c_werror_flag" ||
20886          test ! -s conftest.err
20887        } && test -s conftest.$ac_objext; then
20888   ac_hi=-1 ac_mid=-1
20889   while :; do
20890     cat >conftest.$ac_ext <<_ACEOF
20891 /* confdefs.h.  */
20892 _ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h.  */
20896 #include <stddef.h>
20897 int
20898 main ()
20899 {
20900 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20901 test_array [0] = 0
20902
20903   ;
20904   return 0;
20905 }
20906 _ACEOF
20907 rm -f conftest.$ac_objext
20908 if { (ac_try="$ac_compile"
20909 case "(($ac_try" in
20910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911   *) ac_try_echo=$ac_try;;
20912 esac
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914   (eval "$ac_compile") 2>conftest.er1
20915   ac_status=$?
20916   grep -v '^ *+' conftest.er1 >conftest.err
20917   rm -f conftest.er1
20918   cat conftest.err >&5
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); } && {
20921          test -z "$ac_c_werror_flag" ||
20922          test ! -s conftest.err
20923        } && test -s conftest.$ac_objext; then
20924   ac_lo=$ac_mid; break
20925 else
20926   echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20928
20929         ac_hi=`expr '(' $ac_mid ')' - 1`
20930                         if test $ac_mid -le $ac_hi; then
20931                           ac_lo= ac_hi=
20932                           break
20933                         fi
20934                         ac_mid=`expr 2 '*' $ac_mid`
20935 fi
20936
20937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20938   done
20939 else
20940   echo "$as_me: failed program was:" >&5
20941 sed 's/^/| /' conftest.$ac_ext >&5
20942
20943         ac_lo= ac_hi=
20944 fi
20945
20946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947 fi
20948
20949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20950 # Binary search between lo and hi bounds.
20951 while test "x$ac_lo" != "x$ac_hi"; do
20952   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20953   cat >conftest.$ac_ext <<_ACEOF
20954 /* confdefs.h.  */
20955 _ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h.  */
20959 #include <stddef.h>
20960 int
20961 main ()
20962 {
20963 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20964 test_array [0] = 0
20965
20966   ;
20967   return 0;
20968 }
20969 _ACEOF
20970 rm -f conftest.$ac_objext
20971 if { (ac_try="$ac_compile"
20972 case "(($ac_try" in
20973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974   *) ac_try_echo=$ac_try;;
20975 esac
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977   (eval "$ac_compile") 2>conftest.er1
20978   ac_status=$?
20979   grep -v '^ *+' conftest.er1 >conftest.err
20980   rm -f conftest.er1
20981   cat conftest.err >&5
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); } && {
20984          test -z "$ac_c_werror_flag" ||
20985          test ! -s conftest.err
20986        } && test -s conftest.$ac_objext; then
20987   ac_hi=$ac_mid
20988 else
20989   echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20991
20992         ac_lo=`expr '(' $ac_mid ')' + 1`
20993 fi
20994
20995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 done
20997 case $ac_lo in
20998 ?*) res_hi=$ac_lo;;
20999 '') result=? ;;
21000 esac
21001 else
21002   cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008 #include <stddef.h>
21009 static long int longval () { return ~(size_t)0 / 10; }
21010 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21011 #include <stdio.h>
21012 #include <stdlib.h>
21013 int
21014 main ()
21015 {
21016
21017   FILE *f = fopen ("conftest.val", "w");
21018   if (! f)
21019     return 1;
21020   if ((~(size_t)0 / 10) < 0)
21021     {
21022       long int i = longval ();
21023       if (i != (~(size_t)0 / 10))
21024         return 1;
21025       fprintf (f, "%ld\n", i);
21026     }
21027   else
21028     {
21029       unsigned long int i = ulongval ();
21030       if (i != (~(size_t)0 / 10))
21031         return 1;
21032       fprintf (f, "%lu\n", i);
21033     }
21034   return ferror (f) || fclose (f) != 0;
21035
21036   ;
21037   return 0;
21038 }
21039 _ACEOF
21040 rm -f conftest$ac_exeext
21041 if { (ac_try="$ac_link"
21042 case "(($ac_try" in
21043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044   *) ac_try_echo=$ac_try;;
21045 esac
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047   (eval "$ac_link") 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21051   { (case "(($ac_try" in
21052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053   *) ac_try_echo=$ac_try;;
21054 esac
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056   (eval "$ac_try") 2>&5
21057   ac_status=$?
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); }; }; then
21060   res_hi=`cat conftest.val`
21061 else
21062   echo "$as_me: program exited with status $ac_status" >&5
21063 echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21065
21066 ( exit $ac_status )
21067 result=?
21068 fi
21069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21070 fi
21071 rm -f conftest.val
21072
21073     if test "$cross_compiling" = yes; then
21074   # Depending upon the size, compute the lo and hi bounds.
21075 cat >conftest.$ac_ext <<_ACEOF
21076 /* confdefs.h.  */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h.  */
21081 #include <stddef.h>
21082 int
21083 main ()
21084 {
21085 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21086 test_array [0] = 0
21087
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 rm -f conftest.$ac_objext
21093 if { (ac_try="$ac_compile"
21094 case "(($ac_try" in
21095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096   *) ac_try_echo=$ac_try;;
21097 esac
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099   (eval "$ac_compile") 2>conftest.er1
21100   ac_status=$?
21101   grep -v '^ *+' conftest.er1 >conftest.err
21102   rm -f conftest.er1
21103   cat conftest.err >&5
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); } && {
21106          test -z "$ac_c_werror_flag" ||
21107          test ! -s conftest.err
21108        } && test -s conftest.$ac_objext; then
21109   ac_lo=0 ac_mid=0
21110   while :; do
21111     cat >conftest.$ac_ext <<_ACEOF
21112 /* confdefs.h.  */
21113 _ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h.  */
21117 #include <stddef.h>
21118 int
21119 main ()
21120 {
21121 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21122 test_array [0] = 0
21123
21124   ;
21125   return 0;
21126 }
21127 _ACEOF
21128 rm -f conftest.$ac_objext
21129 if { (ac_try="$ac_compile"
21130 case "(($ac_try" in
21131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132   *) ac_try_echo=$ac_try;;
21133 esac
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135   (eval "$ac_compile") 2>conftest.er1
21136   ac_status=$?
21137   grep -v '^ *+' conftest.er1 >conftest.err
21138   rm -f conftest.er1
21139   cat conftest.err >&5
21140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141   (exit $ac_status); } && {
21142          test -z "$ac_c_werror_flag" ||
21143          test ! -s conftest.err
21144        } && test -s conftest.$ac_objext; then
21145   ac_hi=$ac_mid; break
21146 else
21147   echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150         ac_lo=`expr $ac_mid + 1`
21151                         if test $ac_lo -le $ac_mid; then
21152                           ac_lo= ac_hi=
21153                           break
21154                         fi
21155                         ac_mid=`expr 2 '*' $ac_mid + 1`
21156 fi
21157
21158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21159   done
21160 else
21161   echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21163
21164         cat >conftest.$ac_ext <<_ACEOF
21165 /* confdefs.h.  */
21166 _ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h.  */
21170 #include <stddef.h>
21171 int
21172 main ()
21173 {
21174 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21175 test_array [0] = 0
21176
21177   ;
21178   return 0;
21179 }
21180 _ACEOF
21181 rm -f conftest.$ac_objext
21182 if { (ac_try="$ac_compile"
21183 case "(($ac_try" in
21184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185   *) ac_try_echo=$ac_try;;
21186 esac
21187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188   (eval "$ac_compile") 2>conftest.er1
21189   ac_status=$?
21190   grep -v '^ *+' conftest.er1 >conftest.err
21191   rm -f conftest.er1
21192   cat conftest.err >&5
21193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194   (exit $ac_status); } && {
21195          test -z "$ac_c_werror_flag" ||
21196          test ! -s conftest.err
21197        } && test -s conftest.$ac_objext; then
21198   ac_hi=-1 ac_mid=-1
21199   while :; do
21200     cat >conftest.$ac_ext <<_ACEOF
21201 /* confdefs.h.  */
21202 _ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h.  */
21206 #include <stddef.h>
21207 int
21208 main ()
21209 {
21210 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21211 test_array [0] = 0
21212
21213   ;
21214   return 0;
21215 }
21216 _ACEOF
21217 rm -f conftest.$ac_objext
21218 if { (ac_try="$ac_compile"
21219 case "(($ac_try" in
21220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221   *) ac_try_echo=$ac_try;;
21222 esac
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224   (eval "$ac_compile") 2>conftest.er1
21225   ac_status=$?
21226   grep -v '^ *+' conftest.er1 >conftest.err
21227   rm -f conftest.er1
21228   cat conftest.err >&5
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); } && {
21231          test -z "$ac_c_werror_flag" ||
21232          test ! -s conftest.err
21233        } && test -s conftest.$ac_objext; then
21234   ac_lo=$ac_mid; break
21235 else
21236   echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239         ac_hi=`expr '(' $ac_mid ')' - 1`
21240                         if test $ac_mid -le $ac_hi; then
21241                           ac_lo= ac_hi=
21242                           break
21243                         fi
21244                         ac_mid=`expr 2 '*' $ac_mid`
21245 fi
21246
21247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21248   done
21249 else
21250   echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21252
21253         ac_lo= ac_hi=
21254 fi
21255
21256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 fi
21258
21259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 # Binary search between lo and hi bounds.
21261 while test "x$ac_lo" != "x$ac_hi"; do
21262   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21263   cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h.  */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h.  */
21269 #include <stddef.h>
21270 int
21271 main ()
21272 {
21273 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21274 test_array [0] = 0
21275
21276   ;
21277   return 0;
21278 }
21279 _ACEOF
21280 rm -f conftest.$ac_objext
21281 if { (ac_try="$ac_compile"
21282 case "(($ac_try" in
21283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284   *) ac_try_echo=$ac_try;;
21285 esac
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287   (eval "$ac_compile") 2>conftest.er1
21288   ac_status=$?
21289   grep -v '^ *+' conftest.er1 >conftest.err
21290   rm -f conftest.er1
21291   cat conftest.err >&5
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); } && {
21294          test -z "$ac_c_werror_flag" ||
21295          test ! -s conftest.err
21296        } && test -s conftest.$ac_objext; then
21297   ac_hi=$ac_mid
21298 else
21299   echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302         ac_lo=`expr '(' $ac_mid ')' + 1`
21303 fi
21304
21305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306 done
21307 case $ac_lo in
21308 ?*) res_lo=$ac_lo;;
21309 '') result=? ;;
21310 esac
21311 else
21312   cat >conftest.$ac_ext <<_ACEOF
21313 /* confdefs.h.  */
21314 _ACEOF
21315 cat confdefs.h >>conftest.$ac_ext
21316 cat >>conftest.$ac_ext <<_ACEOF
21317 /* end confdefs.h.  */
21318 #include <stddef.h>
21319 static long int longval () { return ~(size_t)0 % 10; }
21320 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21321 #include <stdio.h>
21322 #include <stdlib.h>
21323 int
21324 main ()
21325 {
21326
21327   FILE *f = fopen ("conftest.val", "w");
21328   if (! f)
21329     return 1;
21330   if ((~(size_t)0 % 10) < 0)
21331     {
21332       long int i = longval ();
21333       if (i != (~(size_t)0 % 10))
21334         return 1;
21335       fprintf (f, "%ld\n", i);
21336     }
21337   else
21338     {
21339       unsigned long int i = ulongval ();
21340       if (i != (~(size_t)0 % 10))
21341         return 1;
21342       fprintf (f, "%lu\n", i);
21343     }
21344   return ferror (f) || fclose (f) != 0;
21345
21346   ;
21347   return 0;
21348 }
21349 _ACEOF
21350 rm -f conftest$ac_exeext
21351 if { (ac_try="$ac_link"
21352 case "(($ac_try" in
21353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354   *) ac_try_echo=$ac_try;;
21355 esac
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357   (eval "$ac_link") 2>&5
21358   ac_status=$?
21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21361   { (case "(($ac_try" in
21362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363   *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366   (eval "$ac_try") 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); }; }; then
21370   res_lo=`cat conftest.val`
21371 else
21372   echo "$as_me: program exited with status $ac_status" >&5
21373 echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21375
21376 ( exit $ac_status )
21377 result=?
21378 fi
21379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21380 fi
21381 rm -f conftest.val
21382
21383     if test "$cross_compiling" = yes; then
21384   # Depending upon the size, compute the lo and hi bounds.
21385 cat >conftest.$ac_ext <<_ACEOF
21386 /* confdefs.h.  */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h.  */
21391 #include <stddef.h>
21392 int
21393 main ()
21394 {
21395 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21396 test_array [0] = 0
21397
21398   ;
21399   return 0;
21400 }
21401 _ACEOF
21402 rm -f conftest.$ac_objext
21403 if { (ac_try="$ac_compile"
21404 case "(($ac_try" in
21405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406   *) ac_try_echo=$ac_try;;
21407 esac
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409   (eval "$ac_compile") 2>conftest.er1
21410   ac_status=$?
21411   grep -v '^ *+' conftest.er1 >conftest.err
21412   rm -f conftest.er1
21413   cat conftest.err >&5
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); } && {
21416          test -z "$ac_c_werror_flag" ||
21417          test ! -s conftest.err
21418        } && test -s conftest.$ac_objext; then
21419   ac_lo=0 ac_mid=0
21420   while :; do
21421     cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h.  */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h.  */
21427 #include <stddef.h>
21428 int
21429 main ()
21430 {
21431 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21432 test_array [0] = 0
21433
21434   ;
21435   return 0;
21436 }
21437 _ACEOF
21438 rm -f conftest.$ac_objext
21439 if { (ac_try="$ac_compile"
21440 case "(($ac_try" in
21441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442   *) ac_try_echo=$ac_try;;
21443 esac
21444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445   (eval "$ac_compile") 2>conftest.er1
21446   ac_status=$?
21447   grep -v '^ *+' conftest.er1 >conftest.err
21448   rm -f conftest.er1
21449   cat conftest.err >&5
21450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451   (exit $ac_status); } && {
21452          test -z "$ac_c_werror_flag" ||
21453          test ! -s conftest.err
21454        } && test -s conftest.$ac_objext; then
21455   ac_hi=$ac_mid; break
21456 else
21457   echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21459
21460         ac_lo=`expr $ac_mid + 1`
21461                         if test $ac_lo -le $ac_mid; then
21462                           ac_lo= ac_hi=
21463                           break
21464                         fi
21465                         ac_mid=`expr 2 '*' $ac_mid + 1`
21466 fi
21467
21468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21469   done
21470 else
21471   echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474         cat >conftest.$ac_ext <<_ACEOF
21475 /* confdefs.h.  */
21476 _ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h.  */
21480 #include <stddef.h>
21481 int
21482 main ()
21483 {
21484 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21485 test_array [0] = 0
21486
21487   ;
21488   return 0;
21489 }
21490 _ACEOF
21491 rm -f conftest.$ac_objext
21492 if { (ac_try="$ac_compile"
21493 case "(($ac_try" in
21494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495   *) ac_try_echo=$ac_try;;
21496 esac
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498   (eval "$ac_compile") 2>conftest.er1
21499   ac_status=$?
21500   grep -v '^ *+' conftest.er1 >conftest.err
21501   rm -f conftest.er1
21502   cat conftest.err >&5
21503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504   (exit $ac_status); } && {
21505          test -z "$ac_c_werror_flag" ||
21506          test ! -s conftest.err
21507        } && test -s conftest.$ac_objext; then
21508   ac_hi=-1 ac_mid=-1
21509   while :; do
21510     cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h.  */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h.  */
21516 #include <stddef.h>
21517 int
21518 main ()
21519 {
21520 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21521 test_array [0] = 0
21522
21523   ;
21524   return 0;
21525 }
21526 _ACEOF
21527 rm -f conftest.$ac_objext
21528 if { (ac_try="$ac_compile"
21529 case "(($ac_try" in
21530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531   *) ac_try_echo=$ac_try;;
21532 esac
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534   (eval "$ac_compile") 2>conftest.er1
21535   ac_status=$?
21536   grep -v '^ *+' conftest.er1 >conftest.err
21537   rm -f conftest.er1
21538   cat conftest.err >&5
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); } && {
21541          test -z "$ac_c_werror_flag" ||
21542          test ! -s conftest.err
21543        } && test -s conftest.$ac_objext; then
21544   ac_lo=$ac_mid; break
21545 else
21546   echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21548
21549         ac_hi=`expr '(' $ac_mid ')' - 1`
21550                         if test $ac_mid -le $ac_hi; then
21551                           ac_lo= ac_hi=
21552                           break
21553                         fi
21554                         ac_mid=`expr 2 '*' $ac_mid`
21555 fi
21556
21557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21558   done
21559 else
21560   echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21562
21563         ac_lo= ac_hi=
21564 fi
21565
21566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567 fi
21568
21569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21570 # Binary search between lo and hi bounds.
21571 while test "x$ac_lo" != "x$ac_hi"; do
21572   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21573   cat >conftest.$ac_ext <<_ACEOF
21574 /* confdefs.h.  */
21575 _ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h.  */
21579 #include <stddef.h>
21580 int
21581 main ()
21582 {
21583 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21584 test_array [0] = 0
21585
21586   ;
21587   return 0;
21588 }
21589 _ACEOF
21590 rm -f conftest.$ac_objext
21591 if { (ac_try="$ac_compile"
21592 case "(($ac_try" in
21593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594   *) ac_try_echo=$ac_try;;
21595 esac
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597   (eval "$ac_compile") 2>conftest.er1
21598   ac_status=$?
21599   grep -v '^ *+' conftest.er1 >conftest.err
21600   rm -f conftest.er1
21601   cat conftest.err >&5
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); } && {
21604          test -z "$ac_c_werror_flag" ||
21605          test ! -s conftest.err
21606        } && test -s conftest.$ac_objext; then
21607   ac_hi=$ac_mid
21608 else
21609   echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21611
21612         ac_lo=`expr '(' $ac_mid ')' + 1`
21613 fi
21614
21615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 done
21617 case $ac_lo in
21618 ?*) fits_in_uint=$ac_lo;;
21619 '') result=? ;;
21620 esac
21621 else
21622   cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h.  */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h.  */
21628 #include <stddef.h>
21629 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21630 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21631 #include <stdio.h>
21632 #include <stdlib.h>
21633 int
21634 main ()
21635 {
21636
21637   FILE *f = fopen ("conftest.val", "w");
21638   if (! f)
21639     return 1;
21640   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21641     {
21642       long int i = longval ();
21643       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21644         return 1;
21645       fprintf (f, "%ld\n", i);
21646     }
21647   else
21648     {
21649       unsigned long int i = ulongval ();
21650       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21651         return 1;
21652       fprintf (f, "%lu\n", i);
21653     }
21654   return ferror (f) || fclose (f) != 0;
21655
21656   ;
21657   return 0;
21658 }
21659 _ACEOF
21660 rm -f conftest$ac_exeext
21661 if { (ac_try="$ac_link"
21662 case "(($ac_try" in
21663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664   *) ac_try_echo=$ac_try;;
21665 esac
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667   (eval "$ac_link") 2>&5
21668   ac_status=$?
21669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21671   { (case "(($ac_try" in
21672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673   *) ac_try_echo=$ac_try;;
21674 esac
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676   (eval "$ac_try") 2>&5
21677   ac_status=$?
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); }; }; then
21680   fits_in_uint=`cat conftest.val`
21681 else
21682   echo "$as_me: program exited with status $ac_status" >&5
21683 echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21685
21686 ( exit $ac_status )
21687 result=?
21688 fi
21689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21690 fi
21691 rm -f conftest.val
21692
21693     if test "$fits_in_uint" = 1; then
21694                   cat >conftest.$ac_ext <<_ACEOF
21695 /* confdefs.h.  */
21696 _ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h.  */
21700 #include <stddef.h>
21701         extern size_t foo;
21702         extern unsigned long foo;
21703
21704 int
21705 main ()
21706 {
21707
21708   ;
21709   return 0;
21710 }
21711 _ACEOF
21712 rm -f conftest.$ac_objext
21713 if { (ac_try="$ac_compile"
21714 case "(($ac_try" in
21715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716   *) ac_try_echo=$ac_try;;
21717 esac
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719   (eval "$ac_compile") 2>conftest.er1
21720   ac_status=$?
21721   grep -v '^ *+' conftest.er1 >conftest.err
21722   rm -f conftest.er1
21723   cat conftest.err >&5
21724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725   (exit $ac_status); } && {
21726          test -z "$ac_c_werror_flag" ||
21727          test ! -s conftest.err
21728        } && test -s conftest.$ac_objext; then
21729   fits_in_uint=0
21730 else
21731   echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21733
21734
21735 fi
21736
21737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21738     fi
21739     if test -z "$result"; then
21740       if test "$fits_in_uint" = 1; then
21741         result="$res_hi$res_lo"U
21742       else
21743         result="$res_hi$res_lo"UL
21744       fi
21745     else
21746             result='~(size_t)0'
21747     fi
21748   fi
21749   { echo "$as_me:$LINENO: result: $result" >&5
21750 echo "${ECHO_T}$result" >&6; }
21751   if test "$result" != yes; then
21752
21753 cat >>confdefs.h <<_ACEOF
21754 #define SIZE_MAX $result
21755 _ACEOF
21756
21757   fi
21758
21759
21760
21761
21762
21763 for ac_header in stdint.h
21764 do
21765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21767   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21770   echo $ECHO_N "(cached) $ECHO_C" >&6
21771 fi
21772 ac_res=`eval echo '${'$as_ac_Header'}'`
21773                { echo "$as_me:$LINENO: result: $ac_res" >&5
21774 echo "${ECHO_T}$ac_res" >&6; }
21775 else
21776   # Is the header compilable?
21777 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21779 cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h.  */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h.  */
21785 $ac_includes_default
21786 #include <$ac_header>
21787 _ACEOF
21788 rm -f conftest.$ac_objext
21789 if { (ac_try="$ac_compile"
21790 case "(($ac_try" in
21791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792   *) ac_try_echo=$ac_try;;
21793 esac
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795   (eval "$ac_compile") 2>conftest.er1
21796   ac_status=$?
21797   grep -v '^ *+' conftest.er1 >conftest.err
21798   rm -f conftest.er1
21799   cat conftest.err >&5
21800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801   (exit $ac_status); } && {
21802          test -z "$ac_c_werror_flag" ||
21803          test ! -s conftest.err
21804        } && test -s conftest.$ac_objext; then
21805   ac_header_compiler=yes
21806 else
21807   echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810         ac_header_compiler=no
21811 fi
21812
21813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21815 echo "${ECHO_T}$ac_header_compiler" >&6; }
21816
21817 # Is the header present?
21818 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21820 cat >conftest.$ac_ext <<_ACEOF
21821 /* confdefs.h.  */
21822 _ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h.  */
21826 #include <$ac_header>
21827 _ACEOF
21828 if { (ac_try="$ac_cpp conftest.$ac_ext"
21829 case "(($ac_try" in
21830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831   *) ac_try_echo=$ac_try;;
21832 esac
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21835   ac_status=$?
21836   grep -v '^ *+' conftest.er1 >conftest.err
21837   rm -f conftest.er1
21838   cat conftest.err >&5
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); } >/dev/null && {
21841          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21842          test ! -s conftest.err
21843        }; then
21844   ac_header_preproc=yes
21845 else
21846   echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21848
21849   ac_header_preproc=no
21850 fi
21851
21852 rm -f conftest.err conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21854 echo "${ECHO_T}$ac_header_preproc" >&6; }
21855
21856 # So?  What about this header?
21857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21858   yes:no: )
21859     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21863     ac_header_preproc=yes
21864     ;;
21865   no:yes:* )
21866     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21868     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21869 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21870     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21872     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21873 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21876     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21878
21879     ;;
21880 esac
21881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21884   echo $ECHO_N "(cached) $ECHO_C" >&6
21885 else
21886   eval "$as_ac_Header=\$ac_header_preproc"
21887 fi
21888 ac_res=`eval echo '${'$as_ac_Header'}'`
21889                { echo "$as_me:$LINENO: result: $ac_res" >&5
21890 echo "${ECHO_T}$ac_res" >&6; }
21891
21892 fi
21893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21894   cat >>confdefs.h <<_ACEOF
21895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21896 _ACEOF
21897
21898 fi
21899
21900 done
21901
21902
21903
21904
21905
21906
21907
21908
21909   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21910 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21911 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21912   echo $ECHO_N "(cached) $ECHO_C" >&6
21913 else
21914   cat >conftest.$ac_ext <<_ACEOF
21915 /* confdefs.h.  */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h.  */
21920 $ac_includes_default
21921 typedef ptrdiff_t ac__type_new_;
21922 int
21923 main ()
21924 {
21925 if ((ac__type_new_ *) 0)
21926   return 0;
21927 if (sizeof (ac__type_new_))
21928   return 0;
21929   ;
21930   return 0;
21931 }
21932 _ACEOF
21933 rm -f conftest.$ac_objext
21934 if { (ac_try="$ac_compile"
21935 case "(($ac_try" in
21936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937   *) ac_try_echo=$ac_try;;
21938 esac
21939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21940   (eval "$ac_compile") 2>conftest.er1
21941   ac_status=$?
21942   grep -v '^ *+' conftest.er1 >conftest.err
21943   rm -f conftest.er1
21944   cat conftest.err >&5
21945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946   (exit $ac_status); } && {
21947          test -z "$ac_c_werror_flag" ||
21948          test ! -s conftest.err
21949        } && test -s conftest.$ac_objext; then
21950   ac_cv_type_ptrdiff_t=yes
21951 else
21952   echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21954
21955         ac_cv_type_ptrdiff_t=no
21956 fi
21957
21958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21959 fi
21960 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21961 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21962 if test $ac_cv_type_ptrdiff_t = yes; then
21963   :
21964 else
21965
21966 cat >>confdefs.h <<\_ACEOF
21967 #define ptrdiff_t long
21968 _ACEOF
21969
21970
21971 fi
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21984 stdlib.h string.h unistd.h sys/param.h
21985 do
21986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21988   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21991   echo $ECHO_N "(cached) $ECHO_C" >&6
21992 fi
21993 ac_res=`eval echo '${'$as_ac_Header'}'`
21994                { echo "$as_me:$LINENO: result: $ac_res" >&5
21995 echo "${ECHO_T}$ac_res" >&6; }
21996 else
21997   # Is the header compilable?
21998 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22000 cat >conftest.$ac_ext <<_ACEOF
22001 /* confdefs.h.  */
22002 _ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h.  */
22006 $ac_includes_default
22007 #include <$ac_header>
22008 _ACEOF
22009 rm -f conftest.$ac_objext
22010 if { (ac_try="$ac_compile"
22011 case "(($ac_try" in
22012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013   *) ac_try_echo=$ac_try;;
22014 esac
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016   (eval "$ac_compile") 2>conftest.er1
22017   ac_status=$?
22018   grep -v '^ *+' conftest.er1 >conftest.err
22019   rm -f conftest.er1
22020   cat conftest.err >&5
22021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022   (exit $ac_status); } && {
22023          test -z "$ac_c_werror_flag" ||
22024          test ! -s conftest.err
22025        } && test -s conftest.$ac_objext; then
22026   ac_header_compiler=yes
22027 else
22028   echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22030
22031         ac_header_compiler=no
22032 fi
22033
22034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22036 echo "${ECHO_T}$ac_header_compiler" >&6; }
22037
22038 # Is the header present?
22039 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22041 cat >conftest.$ac_ext <<_ACEOF
22042 /* confdefs.h.  */
22043 _ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h.  */
22047 #include <$ac_header>
22048 _ACEOF
22049 if { (ac_try="$ac_cpp conftest.$ac_ext"
22050 case "(($ac_try" in
22051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052   *) ac_try_echo=$ac_try;;
22053 esac
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22056   ac_status=$?
22057   grep -v '^ *+' conftest.er1 >conftest.err
22058   rm -f conftest.er1
22059   cat conftest.err >&5
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); } >/dev/null && {
22062          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22063          test ! -s conftest.err
22064        }; then
22065   ac_header_preproc=yes
22066 else
22067   echo "$as_me: failed program was:" >&5
22068 sed 's/^/| /' conftest.$ac_ext >&5
22069
22070   ac_header_preproc=no
22071 fi
22072
22073 rm -f conftest.err conftest.$ac_ext
22074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22075 echo "${ECHO_T}$ac_header_preproc" >&6; }
22076
22077 # So?  What about this header?
22078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22079   yes:no: )
22080     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22084     ac_header_preproc=yes
22085     ;;
22086   no:yes:* )
22087     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22089     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22090 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22091     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22093     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22094 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22097     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22099
22100     ;;
22101 esac
22102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22105   echo $ECHO_N "(cached) $ECHO_C" >&6
22106 else
22107   eval "$as_ac_Header=\$ac_header_preproc"
22108 fi
22109 ac_res=`eval echo '${'$as_ac_Header'}'`
22110                { echo "$as_me:$LINENO: result: $ac_res" >&5
22111 echo "${ECHO_T}$ac_res" >&6; }
22112
22113 fi
22114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22115   cat >>confdefs.h <<_ACEOF
22116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22117 _ACEOF
22118
22119 fi
22120
22121 done
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22147 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22148 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22149 __fsetlocking
22150 do
22151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22155   echo $ECHO_N "(cached) $ECHO_C" >&6
22156 else
22157   cat >conftest.$ac_ext <<_ACEOF
22158 /* confdefs.h.  */
22159 _ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h.  */
22163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22165 #define $ac_func innocuous_$ac_func
22166
22167 /* System header to define __stub macros and hopefully few prototypes,
22168     which can conflict with char $ac_func (); below.
22169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22170     <limits.h> exists even on freestanding compilers.  */
22171
22172 #ifdef __STDC__
22173 # include <limits.h>
22174 #else
22175 # include <assert.h>
22176 #endif
22177
22178 #undef $ac_func
22179
22180 /* Override any GCC internal prototype to avoid an error.
22181    Use char because int might match the return type of a GCC
22182    builtin and then its argument prototype would still apply.  */
22183 #ifdef __cplusplus
22184 extern "C"
22185 #endif
22186 char $ac_func ();
22187 /* The GNU C library defines this for functions which it implements
22188     to always fail with ENOSYS.  Some functions are actually named
22189     something starting with __ and the normal name is an alias.  */
22190 #if defined __stub_$ac_func || defined __stub___$ac_func
22191 choke me
22192 #endif
22193
22194 int
22195 main ()
22196 {
22197 return $ac_func ();
22198   ;
22199   return 0;
22200 }
22201 _ACEOF
22202 rm -f conftest.$ac_objext conftest$ac_exeext
22203 if { (ac_try="$ac_link"
22204 case "(($ac_try" in
22205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22206   *) ac_try_echo=$ac_try;;
22207 esac
22208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22209   (eval "$ac_link") 2>conftest.er1
22210   ac_status=$?
22211   grep -v '^ *+' conftest.er1 >conftest.err
22212   rm -f conftest.er1
22213   cat conftest.err >&5
22214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215   (exit $ac_status); } && {
22216          test -z "$ac_c_werror_flag" ||
22217          test ! -s conftest.err
22218        } && test -s conftest$ac_exeext &&
22219        $as_test_x conftest$ac_exeext; then
22220   eval "$as_ac_var=yes"
22221 else
22222   echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.$ac_ext >&5
22224
22225         eval "$as_ac_var=no"
22226 fi
22227
22228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22229       conftest$ac_exeext conftest.$ac_ext
22230 fi
22231 ac_res=`eval echo '${'$as_ac_var'}'`
22232                { echo "$as_me:$LINENO: result: $ac_res" >&5
22233 echo "${ECHO_T}$ac_res" >&6; }
22234 if test `eval echo '${'$as_ac_var'}'` = yes; then
22235   cat >>confdefs.h <<_ACEOF
22236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22237 _ACEOF
22238
22239 fi
22240 done
22241
22242
22243
22244   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22245 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22246 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22247   echo $ECHO_N "(cached) $ECHO_C" >&6
22248 else
22249   cat >conftest.$ac_ext <<_ACEOF
22250 /* confdefs.h.  */
22251 _ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h.  */
22255 #include <stdio.h>
22256 int
22257 main ()
22258 {
22259
22260 #ifndef _snprintf
22261   char *p = (char *) _snprintf;
22262 #endif
22263
22264   ;
22265   return 0;
22266 }
22267 _ACEOF
22268 rm -f conftest.$ac_objext
22269 if { (ac_try="$ac_compile"
22270 case "(($ac_try" in
22271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22272   *) ac_try_echo=$ac_try;;
22273 esac
22274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22275   (eval "$ac_compile") 2>conftest.er1
22276   ac_status=$?
22277   grep -v '^ *+' conftest.er1 >conftest.err
22278   rm -f conftest.er1
22279   cat conftest.err >&5
22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281   (exit $ac_status); } && {
22282          test -z "$ac_c_werror_flag" ||
22283          test ! -s conftest.err
22284        } && test -s conftest.$ac_objext; then
22285   ac_cv_have_decl__snprintf=yes
22286 else
22287   echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22289
22290         ac_cv_have_decl__snprintf=no
22291 fi
22292
22293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22294 fi
22295 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22296 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22297   if test $ac_cv_have_decl__snprintf = yes; then
22298     gt_value=1
22299   else
22300     gt_value=0
22301   fi
22302
22303 cat >>confdefs.h <<_ACEOF
22304 #define HAVE_DECL__SNPRINTF $gt_value
22305 _ACEOF
22306
22307
22308
22309   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22310 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22311 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22312   echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314   cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h.  */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h.  */
22320 #include <stdio.h>
22321 int
22322 main ()
22323 {
22324
22325 #ifndef _snwprintf
22326   char *p = (char *) _snwprintf;
22327 #endif
22328
22329   ;
22330   return 0;
22331 }
22332 _ACEOF
22333 rm -f conftest.$ac_objext
22334 if { (ac_try="$ac_compile"
22335 case "(($ac_try" in
22336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22337   *) ac_try_echo=$ac_try;;
22338 esac
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340   (eval "$ac_compile") 2>conftest.er1
22341   ac_status=$?
22342   grep -v '^ *+' conftest.er1 >conftest.err
22343   rm -f conftest.er1
22344   cat conftest.err >&5
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); } && {
22347          test -z "$ac_c_werror_flag" ||
22348          test ! -s conftest.err
22349        } && test -s conftest.$ac_objext; then
22350   ac_cv_have_decl__snwprintf=yes
22351 else
22352   echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22354
22355         ac_cv_have_decl__snwprintf=no
22356 fi
22357
22358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22359 fi
22360 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22361 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22362   if test $ac_cv_have_decl__snwprintf = yes; then
22363     gt_value=1
22364   else
22365     gt_value=0
22366   fi
22367
22368 cat >>confdefs.h <<_ACEOF
22369 #define HAVE_DECL__SNWPRINTF $gt_value
22370 _ACEOF
22371
22372
22373
22374
22375   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22376 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22377 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22378   echo $ECHO_N "(cached) $ECHO_C" >&6
22379 else
22380   cat >conftest.$ac_ext <<_ACEOF
22381 /* confdefs.h.  */
22382 _ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h.  */
22386 #include <stdio.h>
22387 int
22388 main ()
22389 {
22390
22391 #ifndef feof_unlocked
22392   char *p = (char *) feof_unlocked;
22393 #endif
22394
22395   ;
22396   return 0;
22397 }
22398 _ACEOF
22399 rm -f conftest.$ac_objext
22400 if { (ac_try="$ac_compile"
22401 case "(($ac_try" in
22402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403   *) ac_try_echo=$ac_try;;
22404 esac
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406   (eval "$ac_compile") 2>conftest.er1
22407   ac_status=$?
22408   grep -v '^ *+' conftest.er1 >conftest.err
22409   rm -f conftest.er1
22410   cat conftest.err >&5
22411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); } && {
22413          test -z "$ac_c_werror_flag" ||
22414          test ! -s conftest.err
22415        } && test -s conftest.$ac_objext; then
22416   ac_cv_have_decl_feof_unlocked=yes
22417 else
22418   echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22420
22421         ac_cv_have_decl_feof_unlocked=no
22422 fi
22423
22424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22425 fi
22426 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22427 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22428   if test $ac_cv_have_decl_feof_unlocked = yes; then
22429     gt_value=1
22430   else
22431     gt_value=0
22432   fi
22433
22434 cat >>confdefs.h <<_ACEOF
22435 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22436 _ACEOF
22437
22438
22439
22440   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22441 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22442 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22443   echo $ECHO_N "(cached) $ECHO_C" >&6
22444 else
22445   cat >conftest.$ac_ext <<_ACEOF
22446 /* confdefs.h.  */
22447 _ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h.  */
22451 #include <stdio.h>
22452 int
22453 main ()
22454 {
22455
22456 #ifndef fgets_unlocked
22457   char *p = (char *) fgets_unlocked;
22458 #endif
22459
22460   ;
22461   return 0;
22462 }
22463 _ACEOF
22464 rm -f conftest.$ac_objext
22465 if { (ac_try="$ac_compile"
22466 case "(($ac_try" in
22467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468   *) ac_try_echo=$ac_try;;
22469 esac
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471   (eval "$ac_compile") 2>conftest.er1
22472   ac_status=$?
22473   grep -v '^ *+' conftest.er1 >conftest.err
22474   rm -f conftest.er1
22475   cat conftest.err >&5
22476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); } && {
22478          test -z "$ac_c_werror_flag" ||
22479          test ! -s conftest.err
22480        } && test -s conftest.$ac_objext; then
22481   ac_cv_have_decl_fgets_unlocked=yes
22482 else
22483   echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22485
22486         ac_cv_have_decl_fgets_unlocked=no
22487 fi
22488
22489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22490 fi
22491 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22492 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22493   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22494     gt_value=1
22495   else
22496     gt_value=0
22497   fi
22498
22499 cat >>confdefs.h <<_ACEOF
22500 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22501 _ACEOF
22502
22503
22504
22505   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22506 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22507 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22508   echo $ECHO_N "(cached) $ECHO_C" >&6
22509 else
22510   cat >conftest.$ac_ext <<_ACEOF
22511 /* confdefs.h.  */
22512 _ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h.  */
22516 #include <stdio.h>
22517 int
22518 main ()
22519 {
22520
22521 #ifndef getc_unlocked
22522   char *p = (char *) getc_unlocked;
22523 #endif
22524
22525   ;
22526   return 0;
22527 }
22528 _ACEOF
22529 rm -f conftest.$ac_objext
22530 if { (ac_try="$ac_compile"
22531 case "(($ac_try" in
22532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533   *) ac_try_echo=$ac_try;;
22534 esac
22535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536   (eval "$ac_compile") 2>conftest.er1
22537   ac_status=$?
22538   grep -v '^ *+' conftest.er1 >conftest.err
22539   rm -f conftest.er1
22540   cat conftest.err >&5
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); } && {
22543          test -z "$ac_c_werror_flag" ||
22544          test ! -s conftest.err
22545        } && test -s conftest.$ac_objext; then
22546   ac_cv_have_decl_getc_unlocked=yes
22547 else
22548   echo "$as_me: failed program was:" >&5
22549 sed 's/^/| /' conftest.$ac_ext >&5
22550
22551         ac_cv_have_decl_getc_unlocked=no
22552 fi
22553
22554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22555 fi
22556 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22557 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22558   if test $ac_cv_have_decl_getc_unlocked = yes; then
22559     gt_value=1
22560   else
22561     gt_value=0
22562   fi
22563
22564 cat >>confdefs.h <<_ACEOF
22565 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22566 _ACEOF
22567
22568
22569
22570   case $gt_cv_func_printf_posix in
22571     *yes) HAVE_POSIX_PRINTF=1 ;;
22572     *) HAVE_POSIX_PRINTF=0 ;;
22573   esac
22574
22575   if test "$ac_cv_func_asprintf" = yes; then
22576     HAVE_ASPRINTF=1
22577   else
22578     HAVE_ASPRINTF=0
22579   fi
22580
22581   if test "$ac_cv_func_snprintf" = yes; then
22582     HAVE_SNPRINTF=1
22583   else
22584     HAVE_SNPRINTF=0
22585   fi
22586
22587   if test "$ac_cv_func_wprintf" = yes; then
22588     HAVE_WPRINTF=1
22589   else
22590     HAVE_WPRINTF=0
22591   fi
22592
22593
22594
22595
22596
22597
22598
22599           am_save_CPPFLAGS="$CPPFLAGS"
22600
22601   for element in $INCICONV; do
22602     haveit=
22603     for x in $CPPFLAGS; do
22604
22605   acl_save_prefix="$prefix"
22606   prefix="$acl_final_prefix"
22607   acl_save_exec_prefix="$exec_prefix"
22608   exec_prefix="$acl_final_exec_prefix"
22609   eval x=\"$x\"
22610   exec_prefix="$acl_save_exec_prefix"
22611   prefix="$acl_save_prefix"
22612
22613       if test "X$x" = "X$element"; then
22614         haveit=yes
22615         break
22616       fi
22617     done
22618     if test -z "$haveit"; then
22619       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22620     fi
22621   done
22622
22623
22624   { echo "$as_me:$LINENO: checking for iconv" >&5
22625 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22626 if test "${am_cv_func_iconv+set}" = set; then
22627   echo $ECHO_N "(cached) $ECHO_C" >&6
22628 else
22629
22630     am_cv_func_iconv="no, consider installing GNU libiconv"
22631     am_cv_lib_iconv=no
22632     cat >conftest.$ac_ext <<_ACEOF
22633 /* confdefs.h.  */
22634 _ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h.  */
22638 #include <stdlib.h>
22639 #include <iconv.h>
22640 int
22641 main ()
22642 {
22643 iconv_t cd = iconv_open("","");
22644        iconv(cd,NULL,NULL,NULL,NULL);
22645        iconv_close(cd);
22646   ;
22647   return 0;
22648 }
22649 _ACEOF
22650 rm -f conftest.$ac_objext conftest$ac_exeext
22651 if { (ac_try="$ac_link"
22652 case "(($ac_try" in
22653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654   *) ac_try_echo=$ac_try;;
22655 esac
22656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657   (eval "$ac_link") 2>conftest.er1
22658   ac_status=$?
22659   grep -v '^ *+' conftest.er1 >conftest.err
22660   rm -f conftest.er1
22661   cat conftest.err >&5
22662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); } && {
22664          test -z "$ac_c_werror_flag" ||
22665          test ! -s conftest.err
22666        } && test -s conftest$ac_exeext &&
22667        $as_test_x conftest$ac_exeext; then
22668   am_cv_func_iconv=yes
22669 else
22670   echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22672
22673
22674 fi
22675
22676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22677       conftest$ac_exeext conftest.$ac_ext
22678     if test "$am_cv_func_iconv" != yes; then
22679       am_save_LIBS="$LIBS"
22680       LIBS="$LIBS $LIBICONV"
22681       cat >conftest.$ac_ext <<_ACEOF
22682 /* confdefs.h.  */
22683 _ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h.  */
22687 #include <stdlib.h>
22688 #include <iconv.h>
22689 int
22690 main ()
22691 {
22692 iconv_t cd = iconv_open("","");
22693          iconv(cd,NULL,NULL,NULL,NULL);
22694          iconv_close(cd);
22695   ;
22696   return 0;
22697 }
22698 _ACEOF
22699 rm -f conftest.$ac_objext conftest$ac_exeext
22700 if { (ac_try="$ac_link"
22701 case "(($ac_try" in
22702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22703   *) ac_try_echo=$ac_try;;
22704 esac
22705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22706   (eval "$ac_link") 2>conftest.er1
22707   ac_status=$?
22708   grep -v '^ *+' conftest.er1 >conftest.err
22709   rm -f conftest.er1
22710   cat conftest.err >&5
22711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712   (exit $ac_status); } && {
22713          test -z "$ac_c_werror_flag" ||
22714          test ! -s conftest.err
22715        } && test -s conftest$ac_exeext &&
22716        $as_test_x conftest$ac_exeext; then
22717   am_cv_lib_iconv=yes
22718         am_cv_func_iconv=yes
22719 else
22720   echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22722
22723
22724 fi
22725
22726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22727       conftest$ac_exeext conftest.$ac_ext
22728       LIBS="$am_save_LIBS"
22729     fi
22730
22731 fi
22732 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22733 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22734   if test "$am_cv_func_iconv" = yes; then
22735
22736 cat >>confdefs.h <<\_ACEOF
22737 #define HAVE_ICONV 1
22738 _ACEOF
22739
22740   fi
22741   if test "$am_cv_lib_iconv" = yes; then
22742     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22743 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22744     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22745 echo "${ECHO_T}$LIBICONV" >&6; }
22746   else
22747             CPPFLAGS="$am_save_CPPFLAGS"
22748     LIBICONV=
22749     LTLIBICONV=
22750   fi
22751
22752
22753
22754   if test "$am_cv_func_iconv" = yes; then
22755     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22756 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22757     if test "${am_cv_proto_iconv+set}" = set; then
22758   echo $ECHO_N "(cached) $ECHO_C" >&6
22759 else
22760
22761       cat >conftest.$ac_ext <<_ACEOF
22762 /* confdefs.h.  */
22763 _ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h.  */
22767
22768 #include <stdlib.h>
22769 #include <iconv.h>
22770 extern
22771 #ifdef __cplusplus
22772 "C"
22773 #endif
22774 #if defined(__STDC__) || defined(__cplusplus)
22775 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22776 #else
22777 size_t iconv();
22778 #endif
22779
22780 int
22781 main ()
22782 {
22783
22784   ;
22785   return 0;
22786 }
22787 _ACEOF
22788 rm -f conftest.$ac_objext
22789 if { (ac_try="$ac_compile"
22790 case "(($ac_try" in
22791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792   *) ac_try_echo=$ac_try;;
22793 esac
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795   (eval "$ac_compile") 2>conftest.er1
22796   ac_status=$?
22797   grep -v '^ *+' conftest.er1 >conftest.err
22798   rm -f conftest.er1
22799   cat conftest.err >&5
22800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801   (exit $ac_status); } && {
22802          test -z "$ac_c_werror_flag" ||
22803          test ! -s conftest.err
22804        } && test -s conftest.$ac_objext; then
22805   am_cv_proto_iconv_arg1=""
22806 else
22807   echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22809
22810         am_cv_proto_iconv_arg1="const"
22811 fi
22812
22813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22814       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);"
22815 fi
22816
22817     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22818     { echo "$as_me:$LINENO: result: ${ac_t:-
22819          }$am_cv_proto_iconv" >&5
22820 echo "${ECHO_T}${ac_t:-
22821          }$am_cv_proto_iconv" >&6; }
22822
22823 cat >>confdefs.h <<_ACEOF
22824 #define ICONV_CONST $am_cv_proto_iconv_arg1
22825 _ACEOF
22826
22827   fi
22828
22829
22830   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22831 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22832 if test "${am_cv_langinfo_codeset+set}" = set; then
22833   echo $ECHO_N "(cached) $ECHO_C" >&6
22834 else
22835   cat >conftest.$ac_ext <<_ACEOF
22836 /* confdefs.h.  */
22837 _ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h.  */
22841 #include <langinfo.h>
22842 int
22843 main ()
22844 {
22845 char* cs = nl_langinfo(CODESET);
22846   ;
22847   return 0;
22848 }
22849 _ACEOF
22850 rm -f conftest.$ac_objext conftest$ac_exeext
22851 if { (ac_try="$ac_link"
22852 case "(($ac_try" in
22853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854   *) ac_try_echo=$ac_try;;
22855 esac
22856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22857   (eval "$ac_link") 2>conftest.er1
22858   ac_status=$?
22859   grep -v '^ *+' conftest.er1 >conftest.err
22860   rm -f conftest.er1
22861   cat conftest.err >&5
22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); } && {
22864          test -z "$ac_c_werror_flag" ||
22865          test ! -s conftest.err
22866        } && test -s conftest$ac_exeext &&
22867        $as_test_x conftest$ac_exeext; then
22868   am_cv_langinfo_codeset=yes
22869 else
22870   echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22872
22873         am_cv_langinfo_codeset=no
22874 fi
22875
22876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22877       conftest$ac_exeext conftest.$ac_ext
22878
22879 fi
22880 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22881 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22882   if test $am_cv_langinfo_codeset = yes; then
22883
22884 cat >>confdefs.h <<\_ACEOF
22885 #define HAVE_LANGINFO_CODESET 1
22886 _ACEOF
22887
22888   fi
22889
22890   if test $ac_cv_header_locale_h = yes; then
22891
22892   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22893 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22894 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22895   echo $ECHO_N "(cached) $ECHO_C" >&6
22896 else
22897   cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h.  */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h.  */
22903 #include <locale.h>
22904 int
22905 main ()
22906 {
22907 return LC_MESSAGES
22908   ;
22909   return 0;
22910 }
22911 _ACEOF
22912 rm -f conftest.$ac_objext conftest$ac_exeext
22913 if { (ac_try="$ac_link"
22914 case "(($ac_try" in
22915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916   *) ac_try_echo=$ac_try;;
22917 esac
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919   (eval "$ac_link") 2>conftest.er1
22920   ac_status=$?
22921   grep -v '^ *+' conftest.er1 >conftest.err
22922   rm -f conftest.er1
22923   cat conftest.err >&5
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); } && {
22926          test -z "$ac_c_werror_flag" ||
22927          test ! -s conftest.err
22928        } && test -s conftest$ac_exeext &&
22929        $as_test_x conftest$ac_exeext; then
22930   gt_cv_val_LC_MESSAGES=yes
22931 else
22932   echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935         gt_cv_val_LC_MESSAGES=no
22936 fi
22937
22938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22939       conftest$ac_exeext conftest.$ac_ext
22940 fi
22941 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22942 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22943   if test $gt_cv_val_LC_MESSAGES = yes; then
22944
22945 cat >>confdefs.h <<\_ACEOF
22946 #define HAVE_LC_MESSAGES 1
22947 _ACEOF
22948
22949   fi
22950
22951   fi
22952
22953   if test -n "$INTL_MACOSX_LIBS"; then
22954     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22955   fi
22956
22957                       for ac_prog in bison
22958 do
22959   # Extract the first word of "$ac_prog", so it can be a program name with args.
22960 set dummy $ac_prog; ac_word=$2
22961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22963 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22964   echo $ECHO_N "(cached) $ECHO_C" >&6
22965 else
22966   if test -n "$INTLBISON"; then
22967   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22968 else
22969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22970 for as_dir in $PATH
22971 do
22972   IFS=$as_save_IFS
22973   test -z "$as_dir" && as_dir=.
22974   for ac_exec_ext in '' $ac_executable_extensions; do
22975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22976     ac_cv_prog_INTLBISON="$ac_prog"
22977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22978     break 2
22979   fi
22980 done
22981 done
22982 IFS=$as_save_IFS
22983
22984 fi
22985 fi
22986 INTLBISON=$ac_cv_prog_INTLBISON
22987 if test -n "$INTLBISON"; then
22988   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22989 echo "${ECHO_T}$INTLBISON" >&6; }
22990 else
22991   { echo "$as_me:$LINENO: result: no" >&5
22992 echo "${ECHO_T}no" >&6; }
22993 fi
22994
22995
22996   test -n "$INTLBISON" && break
22997 done
22998
22999   if test -z "$INTLBISON"; then
23000     ac_verc_fail=yes
23001   else
23002         { echo "$as_me:$LINENO: checking version of bison" >&5
23003 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23004     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23005     case $ac_prog_version in
23006       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23007       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23008          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23009       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23010     esac
23011     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23012 echo "${ECHO_T}$ac_prog_version" >&6; }
23013   fi
23014   if test $ac_verc_fail = yes; then
23015     INTLBISON=:
23016   fi
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23034 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23035 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23036   echo $ECHO_N "(cached) $ECHO_C" >&6
23037 else
23038   gt_save_CPPFLAGS="$CPPFLAGS"
23039      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23040      gt_save_LIBS="$LIBS"
23041      LIBS="$LIBS -framework CoreFoundation"
23042      cat >conftest.$ac_ext <<_ACEOF
23043 /* confdefs.h.  */
23044 _ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h.  */
23048 #include <CFPreferences.h>
23049 int
23050 main ()
23051 {
23052 CFPreferencesCopyAppValue(NULL, NULL)
23053   ;
23054   return 0;
23055 }
23056 _ACEOF
23057 rm -f conftest.$ac_objext conftest$ac_exeext
23058 if { (ac_try="$ac_link"
23059 case "(($ac_try" in
23060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061   *) ac_try_echo=$ac_try;;
23062 esac
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064   (eval "$ac_link") 2>conftest.er1
23065   ac_status=$?
23066   grep -v '^ *+' conftest.er1 >conftest.err
23067   rm -f conftest.er1
23068   cat conftest.err >&5
23069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070   (exit $ac_status); } && {
23071          test -z "$ac_c_werror_flag" ||
23072          test ! -s conftest.err
23073        } && test -s conftest$ac_exeext &&
23074        $as_test_x conftest$ac_exeext; then
23075   gt_cv_func_CFPreferencesCopyAppValue=yes
23076 else
23077   echo "$as_me: failed program was:" >&5
23078 sed 's/^/| /' conftest.$ac_ext >&5
23079
23080         gt_cv_func_CFPreferencesCopyAppValue=no
23081 fi
23082
23083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23084       conftest$ac_exeext conftest.$ac_ext
23085      CPPFLAGS="$gt_save_CPPFLAGS"
23086      LIBS="$gt_save_LIBS"
23087 fi
23088 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23089 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23090   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23091
23092 cat >>confdefs.h <<\_ACEOF
23093 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23094 _ACEOF
23095
23096   fi
23097     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23098 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23099 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23100   echo $ECHO_N "(cached) $ECHO_C" >&6
23101 else
23102   gt_save_CPPFLAGS="$CPPFLAGS"
23103      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23104      gt_save_LIBS="$LIBS"
23105      LIBS="$LIBS -framework CoreFoundation"
23106      cat >conftest.$ac_ext <<_ACEOF
23107 /* confdefs.h.  */
23108 _ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h.  */
23112 #include <CFLocale.h>
23113 int
23114 main ()
23115 {
23116 CFLocaleCopyCurrent();
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (ac_try="$ac_link"
23123 case "(($ac_try" in
23124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125   *) ac_try_echo=$ac_try;;
23126 esac
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128   (eval "$ac_link") 2>conftest.er1
23129   ac_status=$?
23130   grep -v '^ *+' conftest.er1 >conftest.err
23131   rm -f conftest.er1
23132   cat conftest.err >&5
23133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134   (exit $ac_status); } && {
23135          test -z "$ac_c_werror_flag" ||
23136          test ! -s conftest.err
23137        } && test -s conftest$ac_exeext &&
23138        $as_test_x conftest$ac_exeext; then
23139   gt_cv_func_CFLocaleCopyCurrent=yes
23140 else
23141   echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23143
23144         gt_cv_func_CFLocaleCopyCurrent=no
23145 fi
23146
23147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23148       conftest$ac_exeext conftest.$ac_ext
23149      CPPFLAGS="$gt_save_CPPFLAGS"
23150      LIBS="$gt_save_LIBS"
23151 fi
23152 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23153 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23154   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23155
23156 cat >>confdefs.h <<\_ACEOF
23157 #define HAVE_CFLOCALECOPYCURRENT 1
23158 _ACEOF
23159
23160   fi
23161   INTL_MACOSX_LIBS=
23162   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23163     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23164   fi
23165
23166
23167
23168
23169   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23170 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23171     # Check whether --enable-nls was given.
23172 if test "${enable_nls+set}" = set; then
23173   enableval=$enable_nls; USE_NLS=$enableval
23174 else
23175   USE_NLS=yes
23176 fi
23177
23178   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23179 echo "${ECHO_T}$USE_NLS" >&6; }
23180
23181
23182
23183
23184     BUILD_INCLUDED_LIBINTL=no
23185     USE_INCLUDED_LIBINTL=no
23186
23187   LIBINTL=
23188   LTLIBINTL=
23189   POSUB=
23190
23191     if test "$USE_NLS" = "yes"; then
23192     gt_use_preinstalled_gnugettext=no
23193
23194       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23195 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23196
23197 # Check whether --with-included-gettext was given.
23198 if test "${with_included_gettext+set}" = set; then
23199   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23200 else
23201   nls_cv_force_use_gnu_gettext=no
23202 fi
23203
23204       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23205 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23206
23207       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23208       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23209
23210
23211
23212
23213
23214
23215         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23216 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23217 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23218   echo $ECHO_N "(cached) $ECHO_C" >&6
23219 else
23220   cat >conftest.$ac_ext <<_ACEOF
23221 /* confdefs.h.  */
23222 _ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h.  */
23226 #include <libintl.h>
23227 extern int _nl_msg_cat_cntr;
23228 extern int *_nl_domain_bindings;
23229 int
23230 main ()
23231 {
23232 bindtextdomain ("", "");
23233 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23234   ;
23235   return 0;
23236 }
23237 _ACEOF
23238 rm -f conftest.$ac_objext conftest$ac_exeext
23239 if { (ac_try="$ac_link"
23240 case "(($ac_try" in
23241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242   *) ac_try_echo=$ac_try;;
23243 esac
23244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245   (eval "$ac_link") 2>conftest.er1
23246   ac_status=$?
23247   grep -v '^ *+' conftest.er1 >conftest.err
23248   rm -f conftest.er1
23249   cat conftest.err >&5
23250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251   (exit $ac_status); } && {
23252          test -z "$ac_c_werror_flag" ||
23253          test ! -s conftest.err
23254        } && test -s conftest$ac_exeext &&
23255        $as_test_x conftest$ac_exeext; then
23256   gt_cv_func_gnugettext1_libc=yes
23257 else
23258   echo "$as_me: failed program was:" >&5
23259 sed 's/^/| /' conftest.$ac_ext >&5
23260
23261         gt_cv_func_gnugettext1_libc=no
23262 fi
23263
23264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23265       conftest$ac_exeext conftest.$ac_ext
23266 fi
23267 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23268 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23269
23270         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23271
23272
23273
23274     use_additional=yes
23275
23276   acl_save_prefix="$prefix"
23277   prefix="$acl_final_prefix"
23278   acl_save_exec_prefix="$exec_prefix"
23279   exec_prefix="$acl_final_exec_prefix"
23280
23281     eval additional_includedir=\"$includedir\"
23282     eval additional_libdir=\"$libdir\"
23283
23284   exec_prefix="$acl_save_exec_prefix"
23285   prefix="$acl_save_prefix"
23286
23287
23288 # Check whether --with-libintl-prefix was given.
23289 if test "${with_libintl_prefix+set}" = set; then
23290   withval=$with_libintl_prefix;
23291     if test "X$withval" = "Xno"; then
23292       use_additional=no
23293     else
23294       if test "X$withval" = "X"; then
23295
23296   acl_save_prefix="$prefix"
23297   prefix="$acl_final_prefix"
23298   acl_save_exec_prefix="$exec_prefix"
23299   exec_prefix="$acl_final_exec_prefix"
23300
23301           eval additional_includedir=\"$includedir\"
23302           eval additional_libdir=\"$libdir\"
23303
23304   exec_prefix="$acl_save_exec_prefix"
23305   prefix="$acl_save_prefix"
23306
23307       else
23308         additional_includedir="$withval/include"
23309         additional_libdir="$withval/lib"
23310       fi
23311     fi
23312
23313 fi
23314
23315       LIBINTL=
23316   LTLIBINTL=
23317   INCINTL=
23318   rpathdirs=
23319   ltrpathdirs=
23320   names_already_handled=
23321   names_next_round='intl '
23322   while test -n "$names_next_round"; do
23323     names_this_round="$names_next_round"
23324     names_next_round=
23325     for name in $names_this_round; do
23326       already_handled=
23327       for n in $names_already_handled; do
23328         if test "$n" = "$name"; then
23329           already_handled=yes
23330           break
23331         fi
23332       done
23333       if test -z "$already_handled"; then
23334         names_already_handled="$names_already_handled $name"
23335                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23336         eval value=\"\$HAVE_LIB$uppername\"
23337         if test -n "$value"; then
23338           if test "$value" = yes; then
23339             eval value=\"\$LIB$uppername\"
23340             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23341             eval value=\"\$LTLIB$uppername\"
23342             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23343           else
23344                                     :
23345           fi
23346         else
23347                               found_dir=
23348           found_la=
23349           found_so=
23350           found_a=
23351           if test $use_additional = yes; then
23352             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23353               found_dir="$additional_libdir"
23354               found_so="$additional_libdir/lib$name.$shlibext"
23355               if test -f "$additional_libdir/lib$name.la"; then
23356                 found_la="$additional_libdir/lib$name.la"
23357               fi
23358             else
23359               if test -f "$additional_libdir/lib$name.$libext"; then
23360                 found_dir="$additional_libdir"
23361                 found_a="$additional_libdir/lib$name.$libext"
23362                 if test -f "$additional_libdir/lib$name.la"; then
23363                   found_la="$additional_libdir/lib$name.la"
23364                 fi
23365               fi
23366             fi
23367           fi
23368           if test "X$found_dir" = "X"; then
23369             for x in $LDFLAGS $LTLIBINTL; do
23370
23371   acl_save_prefix="$prefix"
23372   prefix="$acl_final_prefix"
23373   acl_save_exec_prefix="$exec_prefix"
23374   exec_prefix="$acl_final_exec_prefix"
23375   eval x=\"$x\"
23376   exec_prefix="$acl_save_exec_prefix"
23377   prefix="$acl_save_prefix"
23378
23379               case "$x" in
23380                 -L*)
23381                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23382                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23383                     found_dir="$dir"
23384                     found_so="$dir/lib$name.$shlibext"
23385                     if test -f "$dir/lib$name.la"; then
23386                       found_la="$dir/lib$name.la"
23387                     fi
23388                   else
23389                     if test -f "$dir/lib$name.$libext"; then
23390                       found_dir="$dir"
23391                       found_a="$dir/lib$name.$libext"
23392                       if test -f "$dir/lib$name.la"; then
23393                         found_la="$dir/lib$name.la"
23394                       fi
23395                     fi
23396                   fi
23397                   ;;
23398               esac
23399               if test "X$found_dir" != "X"; then
23400                 break
23401               fi
23402             done
23403           fi
23404           if test "X$found_dir" != "X"; then
23405                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23406             if test "X$found_so" != "X"; then
23407                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23408                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23409               else
23410                                                                                 haveit=
23411                 for x in $ltrpathdirs; do
23412                   if test "X$x" = "X$found_dir"; then
23413                     haveit=yes
23414                     break
23415                   fi
23416                 done
23417                 if test -z "$haveit"; then
23418                   ltrpathdirs="$ltrpathdirs $found_dir"
23419                 fi
23420                                 if test "$hardcode_direct" = yes; then
23421                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23422                 else
23423                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23424                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23425                                                             haveit=
23426                     for x in $rpathdirs; do
23427                       if test "X$x" = "X$found_dir"; then
23428                         haveit=yes
23429                         break
23430                       fi
23431                     done
23432                     if test -z "$haveit"; then
23433                       rpathdirs="$rpathdirs $found_dir"
23434                     fi
23435                   else
23436                                                                                 haveit=
23437                     for x in $LDFLAGS $LIBINTL; do
23438
23439   acl_save_prefix="$prefix"
23440   prefix="$acl_final_prefix"
23441   acl_save_exec_prefix="$exec_prefix"
23442   exec_prefix="$acl_final_exec_prefix"
23443   eval x=\"$x\"
23444   exec_prefix="$acl_save_exec_prefix"
23445   prefix="$acl_save_prefix"
23446
23447                       if test "X$x" = "X-L$found_dir"; then
23448                         haveit=yes
23449                         break
23450                       fi
23451                     done
23452                     if test -z "$haveit"; then
23453                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23454                     fi
23455                     if test "$hardcode_minus_L" != no; then
23456                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23457                     else
23458                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23459                     fi
23460                   fi
23461                 fi
23462               fi
23463             else
23464               if test "X$found_a" != "X"; then
23465                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23466               else
23467                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23468               fi
23469             fi
23470                         additional_includedir=
23471             case "$found_dir" in
23472               */lib | */lib/)
23473                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23474                 additional_includedir="$basedir/include"
23475                 ;;
23476             esac
23477             if test "X$additional_includedir" != "X"; then
23478                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23479                 haveit=
23480                 if test "X$additional_includedir" = "X/usr/local/include"; then
23481                   if test -n "$GCC"; then
23482                     case $host_os in
23483                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23484                     esac
23485                   fi
23486                 fi
23487                 if test -z "$haveit"; then
23488                   for x in $CPPFLAGS $INCINTL; do
23489
23490   acl_save_prefix="$prefix"
23491   prefix="$acl_final_prefix"
23492   acl_save_exec_prefix="$exec_prefix"
23493   exec_prefix="$acl_final_exec_prefix"
23494   eval x=\"$x\"
23495   exec_prefix="$acl_save_exec_prefix"
23496   prefix="$acl_save_prefix"
23497
23498                     if test "X$x" = "X-I$additional_includedir"; then
23499                       haveit=yes
23500                       break
23501                     fi
23502                   done
23503                   if test -z "$haveit"; then
23504                     if test -d "$additional_includedir"; then
23505                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23506                     fi
23507                   fi
23508                 fi
23509               fi
23510             fi
23511                         if test -n "$found_la"; then
23512                                                         save_libdir="$libdir"
23513               case "$found_la" in
23514                 */* | *\\*) . "$found_la" ;;
23515                 *) . "./$found_la" ;;
23516               esac
23517               libdir="$save_libdir"
23518                             for dep in $dependency_libs; do
23519                 case "$dep" in
23520                   -L*)
23521                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23522                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23523                       haveit=
23524                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23525                         if test -n "$GCC"; then
23526                           case $host_os in
23527                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23528                           esac
23529                         fi
23530                       fi
23531                       if test -z "$haveit"; then
23532                         haveit=
23533                         for x in $LDFLAGS $LIBINTL; do
23534
23535   acl_save_prefix="$prefix"
23536   prefix="$acl_final_prefix"
23537   acl_save_exec_prefix="$exec_prefix"
23538   exec_prefix="$acl_final_exec_prefix"
23539   eval x=\"$x\"
23540   exec_prefix="$acl_save_exec_prefix"
23541   prefix="$acl_save_prefix"
23542
23543                           if test "X$x" = "X-L$additional_libdir"; then
23544                             haveit=yes
23545                             break
23546                           fi
23547                         done
23548                         if test -z "$haveit"; then
23549                           if test -d "$additional_libdir"; then
23550                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23551                           fi
23552                         fi
23553                         haveit=
23554                         for x in $LDFLAGS $LTLIBINTL; do
23555
23556   acl_save_prefix="$prefix"
23557   prefix="$acl_final_prefix"
23558   acl_save_exec_prefix="$exec_prefix"
23559   exec_prefix="$acl_final_exec_prefix"
23560   eval x=\"$x\"
23561   exec_prefix="$acl_save_exec_prefix"
23562   prefix="$acl_save_prefix"
23563
23564                           if test "X$x" = "X-L$additional_libdir"; then
23565                             haveit=yes
23566                             break
23567                           fi
23568                         done
23569                         if test -z "$haveit"; then
23570                           if test -d "$additional_libdir"; then
23571                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23572                           fi
23573                         fi
23574                       fi
23575                     fi
23576                     ;;
23577                   -R*)
23578                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23579                     if test "$enable_rpath" != no; then
23580                                                                   haveit=
23581                       for x in $rpathdirs; do
23582                         if test "X$x" = "X$dir"; then
23583                           haveit=yes
23584                           break
23585                         fi
23586                       done
23587                       if test -z "$haveit"; then
23588                         rpathdirs="$rpathdirs $dir"
23589                       fi
23590                                                                   haveit=
23591                       for x in $ltrpathdirs; do
23592                         if test "X$x" = "X$dir"; then
23593                           haveit=yes
23594                           break
23595                         fi
23596                       done
23597                       if test -z "$haveit"; then
23598                         ltrpathdirs="$ltrpathdirs $dir"
23599                       fi
23600                     fi
23601                     ;;
23602                   -l*)
23603                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23604                     ;;
23605                   *.la)
23606                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23607                     ;;
23608                   *)
23609                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23610                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23611                     ;;
23612                 esac
23613               done
23614             fi
23615           else
23616                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23617             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23618           fi
23619         fi
23620       fi
23621     done
23622   done
23623   if test "X$rpathdirs" != "X"; then
23624     if test -n "$hardcode_libdir_separator"; then
23625                         alldirs=
23626       for found_dir in $rpathdirs; do
23627         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23628       done
23629             acl_save_libdir="$libdir"
23630       libdir="$alldirs"
23631       eval flag=\"$hardcode_libdir_flag_spec\"
23632       libdir="$acl_save_libdir"
23633       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23634     else
23635             for found_dir in $rpathdirs; do
23636         acl_save_libdir="$libdir"
23637         libdir="$found_dir"
23638         eval flag=\"$hardcode_libdir_flag_spec\"
23639         libdir="$acl_save_libdir"
23640         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23641       done
23642     fi
23643   fi
23644   if test "X$ltrpathdirs" != "X"; then
23645             for found_dir in $ltrpathdirs; do
23646       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23647     done
23648   fi
23649
23650           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23651 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23652 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23653   echo $ECHO_N "(cached) $ECHO_C" >&6
23654 else
23655   gt_save_CPPFLAGS="$CPPFLAGS"
23656             CPPFLAGS="$CPPFLAGS $INCINTL"
23657             gt_save_LIBS="$LIBS"
23658             LIBS="$LIBS $LIBINTL"
23659                         cat >conftest.$ac_ext <<_ACEOF
23660 /* confdefs.h.  */
23661 _ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h.  */
23665 #include <libintl.h>
23666 extern int _nl_msg_cat_cntr;
23667 extern
23668 #ifdef __cplusplus
23669 "C"
23670 #endif
23671 const char *_nl_expand_alias (const char *);
23672 int
23673 main ()
23674 {
23675 bindtextdomain ("", "");
23676 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23677   ;
23678   return 0;
23679 }
23680 _ACEOF
23681 rm -f conftest.$ac_objext conftest$ac_exeext
23682 if { (ac_try="$ac_link"
23683 case "(($ac_try" in
23684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685   *) ac_try_echo=$ac_try;;
23686 esac
23687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688   (eval "$ac_link") 2>conftest.er1
23689   ac_status=$?
23690   grep -v '^ *+' conftest.er1 >conftest.err
23691   rm -f conftest.er1
23692   cat conftest.err >&5
23693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694   (exit $ac_status); } && {
23695          test -z "$ac_c_werror_flag" ||
23696          test ! -s conftest.err
23697        } && test -s conftest$ac_exeext &&
23698        $as_test_x conftest$ac_exeext; then
23699   gt_cv_func_gnugettext1_libintl=yes
23700 else
23701   echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23703
23704         gt_cv_func_gnugettext1_libintl=no
23705 fi
23706
23707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23708       conftest$ac_exeext conftest.$ac_ext
23709                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23710               LIBS="$LIBS $LIBICONV"
23711               cat >conftest.$ac_ext <<_ACEOF
23712 /* confdefs.h.  */
23713 _ACEOF
23714 cat confdefs.h >>conftest.$ac_ext
23715 cat >>conftest.$ac_ext <<_ACEOF
23716 /* end confdefs.h.  */
23717 #include <libintl.h>
23718 extern int _nl_msg_cat_cntr;
23719 extern
23720 #ifdef __cplusplus
23721 "C"
23722 #endif
23723 const char *_nl_expand_alias (const char *);
23724 int
23725 main ()
23726 {
23727 bindtextdomain ("", "");
23728 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23729   ;
23730   return 0;
23731 }
23732 _ACEOF
23733 rm -f conftest.$ac_objext conftest$ac_exeext
23734 if { (ac_try="$ac_link"
23735 case "(($ac_try" in
23736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23737   *) ac_try_echo=$ac_try;;
23738 esac
23739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23740   (eval "$ac_link") 2>conftest.er1
23741   ac_status=$?
23742   grep -v '^ *+' conftest.er1 >conftest.err
23743   rm -f conftest.er1
23744   cat conftest.err >&5
23745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746   (exit $ac_status); } && {
23747          test -z "$ac_c_werror_flag" ||
23748          test ! -s conftest.err
23749        } && test -s conftest$ac_exeext &&
23750        $as_test_x conftest$ac_exeext; then
23751   LIBINTL="$LIBINTL $LIBICONV"
23752                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23753                 gt_cv_func_gnugettext1_libintl=yes
23754
23755 else
23756   echo "$as_me: failed program was:" >&5
23757 sed 's/^/| /' conftest.$ac_ext >&5
23758
23759
23760 fi
23761
23762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23763       conftest$ac_exeext conftest.$ac_ext
23764             fi
23765             CPPFLAGS="$gt_save_CPPFLAGS"
23766             LIBS="$gt_save_LIBS"
23767 fi
23768 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23769 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23770         fi
23771
23772                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23773            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23774                 && test "$PACKAGE" != gettext-runtime \
23775                 && test "$PACKAGE" != gettext-tools; }; then
23776           gt_use_preinstalled_gnugettext=yes
23777         else
23778                     LIBINTL=
23779           LTLIBINTL=
23780           INCINTL=
23781         fi
23782
23783
23784         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23785                               nls_cv_use_gnu_gettext=yes
23786         fi
23787       fi
23788
23789       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23790                 BUILD_INCLUDED_LIBINTL=yes
23791         USE_INCLUDED_LIBINTL=yes
23792         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23793         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23794         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23795       fi
23796
23797       CATOBJEXT=
23798       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23799          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23800                 CATOBJEXT=.gmo
23801       fi
23802
23803
23804     if test -n "$INTL_MACOSX_LIBS"; then
23805       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23806          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23807                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23808         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23809       fi
23810     fi
23811
23812     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23813        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23814
23815 cat >>confdefs.h <<\_ACEOF
23816 #define ENABLE_NLS 1
23817 _ACEOF
23818
23819     else
23820       USE_NLS=no
23821     fi
23822   fi
23823
23824   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23825 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23826   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23827 echo "${ECHO_T}$USE_NLS" >&6; }
23828   if test "$USE_NLS" = "yes"; then
23829     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23830 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23831     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23832       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23833         gt_source="external libintl"
23834       else
23835         gt_source="libc"
23836       fi
23837     else
23838       gt_source="included intl directory"
23839     fi
23840     { echo "$as_me:$LINENO: result: $gt_source" >&5
23841 echo "${ECHO_T}$gt_source" >&6; }
23842   fi
23843
23844   if test "$USE_NLS" = "yes"; then
23845
23846     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23847       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23848         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23849 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23850         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23851 echo "${ECHO_T}$LIBINTL" >&6; }
23852
23853   for element in $INCINTL; do
23854     haveit=
23855     for x in $CPPFLAGS; do
23856
23857   acl_save_prefix="$prefix"
23858   prefix="$acl_final_prefix"
23859   acl_save_exec_prefix="$exec_prefix"
23860   exec_prefix="$acl_final_exec_prefix"
23861   eval x=\"$x\"
23862   exec_prefix="$acl_save_exec_prefix"
23863   prefix="$acl_save_prefix"
23864
23865       if test "X$x" = "X$element"; then
23866         haveit=yes
23867         break
23868       fi
23869     done
23870     if test -z "$haveit"; then
23871       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23872     fi
23873   done
23874
23875       fi
23876
23877
23878 cat >>confdefs.h <<\_ACEOF
23879 #define HAVE_GETTEXT 1
23880 _ACEOF
23881
23882
23883 cat >>confdefs.h <<\_ACEOF
23884 #define HAVE_DCGETTEXT 1
23885 _ACEOF
23886
23887     fi
23888
23889         POSUB=po
23890   fi
23891
23892
23893             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23894       BUILD_INCLUDED_LIBINTL=yes
23895     fi
23896
23897
23898
23899
23900
23901         nls_cv_header_intl=
23902     nls_cv_header_libgt=
23903
23904         DATADIRNAME=share
23905
23906
23907         INSTOBJEXT=.mo
23908
23909
23910         GENCAT=gencat
23911
23912
23913         INTLOBJS=
23914     if test "$USE_INCLUDED_LIBINTL" = yes; then
23915       INTLOBJS="\$(GETTOBJS)"
23916     fi
23917
23918
23919         INTL_LIBTOOL_SUFFIX_PREFIX=
23920
23921
23922
23923     INTLLIBS="$LIBINTL"
23924
23925
23926
23927
23928
23929
23930 fi
23931
23932 support_mysql=no
23933 support_sqlite=no
23934 support_sqlite3=no
23935 support_postgresql=no
23936 support_dbi=no
23937 support_smartalloc=yes
23938 support_readline=yes
23939 support_conio=yes
23940 support_gnome=no
23941 support_bat=no
23942 support_wx_console=no
23943 support_tray_monitor=no
23944 support_tls=no
23945 support_crypto=no
23946 gnome_version=
23947 wx_version=
23948 support_static_tools=no
23949 support_static_fd=no
23950 support_static_sd=no
23951 support_static_dir=no
23952 support_static_cons=no
23953 support_python=no
23954 build_client_only=no
23955 build_dird=yes
23956 build_stored=yes
23957 cats=
23958 db_type=Internal
23959 DB_TYPE=bdb
23960
23961
23962 # Check whether --enable-gnome was given.
23963 if test "${enable_gnome+set}" = set; then
23964   enableval=$enable_gnome;
23965        if test x$enableval = xyes; then
23966           support_gnome=yes
23967        fi
23968
23969
23970 fi
23971
23972
23973 GNOME_DIR=
23974 if test x$support_gnome = xyes; then
23975    abc=`$PKGCONFIG --exists libgnomeui-2.0`
23976    pkg=$?
23977    if test $pkg = 0; then
23978       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23979       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23980       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23981       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23982
23983
23984
23985
23986       GNOME_DIR=src/gnome2-console
23987       gnome_version="Version 2.x"
23988    else
23989       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23990 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23991    { (exit 1); exit 1; }; }
23992    fi
23993 fi
23994
23995
23996 # Check whether --enable-bat was given.
23997 if test "${enable_bat+set}" = set; then
23998   enableval=$enable_bat;
23999        if test x$enableval = xyes; then
24000
24001 cat >>confdefs.h <<\_ACEOF
24002 #define HAVE_BAT 1
24003 _ACEOF
24004
24005           support_bat=yes
24006        fi
24007
24008
24009 fi
24010
24011
24012 BAT_DIR=
24013 if test x$support_bat = xyes; then
24014    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24015    pkg=$?
24016    if test $pkg = 0; then
24017       BAT_DIR=src/qt-console
24018    else
24019       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24020 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24021    { (exit 1); exit 1; }; }
24022    fi
24023 fi
24024
24025 got_qwt=no
24026 QWT_INC=
24027 QWT_LDFLAGS=
24028 QWT_LIB=
24029 QWT=
24030 no_qwt=no
24031 if test x$support_bat = xyes; then
24032    { echo "$as_me:$LINENO: checking for qwt support" >&5
24033 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24034
24035 # Check whether --with-qwt was given.
24036 if test "${with_qwt+set}" = set; then
24037   withval=$with_qwt;
24038           case "$with_qwt" in
24039           no)
24040              no_qwt=yes
24041              ;;
24042           yes|*)
24043              if test -f ${with_qwt}/include/qwt.h; then
24044                 QWT_INC="${with_qwt}/include"
24045                 QWT_LDFLAGS="-L${with_qwt}/lib"
24046                 QWT_LIB="-lqwt"
24047                 QWT="qwt"
24048              fi
24049              ;;
24050           esac
24051
24052
24053 fi
24054
24055
24056             if test $no_qwt = no; then
24057       if test x$QWT_INC = x; then
24058          for root in /usr /usr/local; do
24059             for ver in qwt qwt5 qwt-qt4; do
24060                if test -f ${root}/include/${ver}/qwt.h; then
24061                   QWT_INC="${root}/include/${ver}"
24062                   if test -d ${root}/lib64/; then
24063                      QWT_LDFLAGS="-L${root}/lib64"
24064                   elif test -d ${root}/lib/64/; then
24065                      QWT_LDFLAGS="-L${root}/64"
24066                   else
24067                      QWT_LDFLAGS="-L${root}/lib"
24068                   fi
24069                   QWT_LIB="-lqwt"
24070                   QWT="qwt"
24071                   got_qwt=yes
24072                   break;
24073                fi
24074             done
24075          done
24076       fi
24077    fi
24078    if test x$QWT_INC = x; then
24079       { echo "$as_me:$LINENO: result: no" >&5
24080 echo "${ECHO_T}no" >&6; }
24081    else
24082
24083 cat >>confdefs.h <<\_ACEOF
24084 #define HAVE_QWT 1
24085 _ACEOF
24086
24087       { echo "$as_me:$LINENO: result: yes" >&5
24088 echo "${ECHO_T}yes" >&6; }
24089    fi
24090 fi
24091
24092
24093
24094
24095
24096
24097
24098 # Check whether --enable-bwx-console was given.
24099 if test "${enable_bwx_console+set}" = set; then
24100   enableval=$enable_bwx_console;
24101        if test x$enableval = xyes; then
24102           support_wx_console=yes
24103        fi
24104
24105
24106 fi
24107
24108
24109 WX_DIR=
24110 if test x$support_wx_console = xyes; then
24111    abc=`$WXCONFIG $WXFLAGS --cppflags`
24112    pkg=$?
24113    if test $pkg = 0; then
24114       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24115       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24116       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24117
24118
24119
24120       WX_DIR=src/wx-console
24121    else
24122       echo " "
24123       echo "wx-config program not found. bwx-console disabled."
24124       echo " "
24125       support_wx_console=no
24126    fi
24127 fi
24128
24129
24130 # Check whether --enable-tray-monitor was given.
24131 if test "${enable_tray_monitor+set}" = set; then
24132   enableval=$enable_tray_monitor;
24133        if test x$enableval = xyes; then
24134           support_tray_monitor=yes
24135        fi
24136
24137
24138 fi
24139
24140
24141 TRAY_MONITOR_DIR=
24142 if test x$support_tray_monitor = xyes; then
24143    abc=`$PKGCONFIG --exists gtk+-2.0`
24144    pkg=$?
24145    if test $pkg = 0; then
24146       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24147       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24148
24149
24150       TRAY_MONITOR_DIR=src/tray-monitor
24151       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24152       pkg=$?
24153       if test $pkg = 0; then
24154
24155 cat >>confdefs.h <<\_ACEOF
24156 #define HAVE_GTK_2_4 1
24157 _ACEOF
24158
24159       fi
24160    fi
24161 fi
24162
24163
24164 # Check whether --enable-smartalloc was given.
24165 if test "${enable_smartalloc+set}" = set; then
24166   enableval=$enable_smartalloc;
24167        if test x$enableval = xno; then
24168           support_smartalloc=no
24169        fi
24170
24171
24172 fi
24173
24174
24175 if test x$support_smartalloc = xyes; then
24176
24177 cat >>confdefs.h <<\_ACEOF
24178 #define SMARTALLOC 1
24179 _ACEOF
24180
24181 fi
24182
24183 # Check whether --enable-static-tools was given.
24184 if test "${enable_static_tools+set}" = set; then
24185   enableval=$enable_static_tools;
24186        if test x$enableval = xyes; then
24187           support_static_tools=yes
24188        fi
24189
24190
24191 fi
24192
24193
24194 TTOOL_LDFLAGS=
24195 if test x$support_static_tools = xyes; then
24196    TTOOL_LDFLAGS="-static"
24197 fi
24198
24199
24200 # Check whether --enable-static-fd was given.
24201 if test "${enable_static_fd+set}" = set; then
24202   enableval=$enable_static_fd;
24203        if test x$enableval = xyes; then
24204           support_static_fd=yes
24205        fi
24206
24207
24208 fi
24209
24210
24211 STATIC_FD=
24212 if test x$support_static_fd = xyes; then
24213    STATIC_FD="static-bacula-fd"
24214 fi
24215
24216
24217 # Check whether --enable-static-sd was given.
24218 if test "${enable_static_sd+set}" = set; then
24219   enableval=$enable_static_sd;
24220        if test x$enableval = xyes; then
24221           support_static_sd=yes
24222        fi
24223
24224
24225 fi
24226
24227
24228 STATIC_SD=
24229 if test x$support_static_sd = xyes; then
24230    STATIC_SD="static-bacula-sd"
24231 fi
24232
24233
24234 # Check whether --enable-static-dir was given.
24235 if test "${enable_static_dir+set}" = set; then
24236   enableval=$enable_static_dir;
24237        if test x$enableval = xyes; then
24238           support_static_dir=yes
24239        fi
24240
24241
24242 fi
24243
24244
24245 STATIC_DIR=
24246 if test x$support_static_dir = xyes; then
24247    STATIC_DIR="static-bacula-dir"
24248 fi
24249
24250
24251 # Check whether --enable-static-cons was given.
24252 if test "${enable_static_cons+set}" = set; then
24253   enableval=$enable_static_cons;
24254        if test x$enableval = xyes; then
24255           support_static_cons=yes
24256        fi
24257
24258
24259 fi
24260
24261
24262 STATIC_CONS=
24263 STATIC_GNOME_CONS=
24264 STATIC_WX_CONS=
24265 if test x$support_static_cons = xyes; then
24266    STATIC_CONS="static-bconsole"
24267    STATIC_GNOME_CONS="static-bgnome-console"
24268    STATIC_WX_CONS="static-bwx-console"
24269 fi
24270
24271
24272
24273
24274 # Check whether --enable-client-only was given.
24275 if test "${enable_client_only+set}" = set; then
24276   enableval=$enable_client_only;
24277        if test x$enableval = xyes; then
24278           build_client_only=yes
24279           db_type=None
24280           DB_TYPE=none
24281        fi
24282
24283
24284 fi
24285
24286 if test x$build_client_only = xno; then
24287    ALL_DIRS="subdirs"
24288 else
24289    ALL_DIRS=""
24290 fi
24291
24292
24293 # Check whether --enable-build-dird was given.
24294 if test "${enable_build_dird+set}" = set; then
24295   enableval=$enable_build_dird;
24296        if test x$enableval = xno; then
24297           build_dird=no
24298        fi
24299
24300
24301 fi
24302
24303 if test x$build_dird = xyes; then
24304    DIRD_DIR="src/dird"
24305    DIR_TOOLS="DIRTOOLS"
24306 else
24307    DIRD_DIR=""
24308    DIR_TOOLS="NODIRTOOLS"
24309 fi
24310
24311
24312
24313 # Check whether --enable-build-stored was given.
24314 if test "${enable_build_stored+set}" = set; then
24315   enableval=$enable_build_stored;
24316       if test x$enableval = xno; then
24317          build_stored=no
24318       fi
24319
24320
24321 fi
24322
24323 if test x$build_stored = xyes; then
24324    STORED_DIR="src/stored"
24325 else
24326    STORED_DIR=""
24327 fi
24328
24329
24330 # Check whether --enable-conio was given.
24331 if test "${enable_conio+set}" = set; then
24332   enableval=$enable_conio;
24333        if test x$enableval = xno; then
24334           support_conio=no
24335        fi
24336
24337
24338 fi
24339
24340
24341
24342 support_ipv6=yes
24343 # Check whether --enable-ipv6 was given.
24344 if test "${enable_ipv6+set}" = set; then
24345   enableval=$enable_ipv6;
24346        if test x$enableval = xno; then
24347           support_ipv6=no
24348        fi
24349
24350
24351 fi
24352
24353
24354 if test x$support_ipv6 = xyes; then
24355     cat >conftest.$ac_ext <<_ACEOF
24356 /* confdefs.h.  */
24357 _ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h.  */
24361  #include <sys/types.h>
24362 #include <sys/socket.h>
24363 #include <netinet/in.h>
24364 int
24365 main ()
24366 {
24367 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24368   ;
24369   return 0;
24370 }
24371 _ACEOF
24372 rm -f conftest.$ac_objext conftest$ac_exeext
24373 if { (ac_try="$ac_link"
24374 case "(($ac_try" in
24375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376   *) ac_try_echo=$ac_try;;
24377 esac
24378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24379   (eval "$ac_link") 2>conftest.er1
24380   ac_status=$?
24381   grep -v '^ *+' conftest.er1 >conftest.err
24382   rm -f conftest.er1
24383   cat conftest.err >&5
24384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); } && {
24386          test -z "$ac_c_werror_flag" ||
24387          test ! -s conftest.err
24388        } && test -s conftest$ac_exeext &&
24389        $as_test_x conftest$ac_exeext; then
24390   support_ipv6=yes
24391 else
24392   echo "$as_me: failed program was:" >&5
24393 sed 's/^/| /' conftest.$ac_ext >&5
24394
24395         support_ipv6=no
24396 fi
24397
24398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24399       conftest$ac_exeext conftest.$ac_ext
24400 fi
24401
24402 if test x$support_ipv6 = xyes; then
24403
24404 cat >>confdefs.h <<\_ACEOF
24405 #define HAVE_IPV6 1
24406 _ACEOF
24407
24408 fi
24409
24410 got_conio="no"
24411 if test x$support_conio = xyes; then
24412    if test "${ac_cv_header_termcap_h+set}" = set; then
24413   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24414 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24415 if test "${ac_cv_header_termcap_h+set}" = set; then
24416   echo $ECHO_N "(cached) $ECHO_C" >&6
24417 fi
24418 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24419 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24420 else
24421   # Is the header compilable?
24422 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24423 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24424 cat >conftest.$ac_ext <<_ACEOF
24425 /* confdefs.h.  */
24426 _ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h.  */
24430 $ac_includes_default
24431 #include <termcap.h>
24432 _ACEOF
24433 rm -f conftest.$ac_objext
24434 if { (ac_try="$ac_compile"
24435 case "(($ac_try" in
24436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437   *) ac_try_echo=$ac_try;;
24438 esac
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440   (eval "$ac_compile") 2>conftest.er1
24441   ac_status=$?
24442   grep -v '^ *+' conftest.er1 >conftest.err
24443   rm -f conftest.er1
24444   cat conftest.err >&5
24445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446   (exit $ac_status); } && {
24447          test -z "$ac_c_werror_flag" ||
24448          test ! -s conftest.err
24449        } && test -s conftest.$ac_objext; then
24450   ac_header_compiler=yes
24451 else
24452   echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24454
24455         ac_header_compiler=no
24456 fi
24457
24458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24460 echo "${ECHO_T}$ac_header_compiler" >&6; }
24461
24462 # Is the header present?
24463 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24464 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24465 cat >conftest.$ac_ext <<_ACEOF
24466 /* confdefs.h.  */
24467 _ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h.  */
24471 #include <termcap.h>
24472 _ACEOF
24473 if { (ac_try="$ac_cpp conftest.$ac_ext"
24474 case "(($ac_try" in
24475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24476   *) ac_try_echo=$ac_try;;
24477 esac
24478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24480   ac_status=$?
24481   grep -v '^ *+' conftest.er1 >conftest.err
24482   rm -f conftest.er1
24483   cat conftest.err >&5
24484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485   (exit $ac_status); } >/dev/null && {
24486          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24487          test ! -s conftest.err
24488        }; then
24489   ac_header_preproc=yes
24490 else
24491   echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24493
24494   ac_header_preproc=no
24495 fi
24496
24497 rm -f conftest.err conftest.$ac_ext
24498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24499 echo "${ECHO_T}$ac_header_preproc" >&6; }
24500
24501 # So?  What about this header?
24502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24503   yes:no: )
24504     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24505 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24506     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24507 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24508     ac_header_preproc=yes
24509     ;;
24510   no:yes:* )
24511     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24512 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24513     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24514 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24515     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24516 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24517     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24518 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24519     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24520 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24521     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24522 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24523
24524     ;;
24525 esac
24526 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24527 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24528 if test "${ac_cv_header_termcap_h+set}" = set; then
24529   echo $ECHO_N "(cached) $ECHO_C" >&6
24530 else
24531   ac_cv_header_termcap_h=$ac_header_preproc
24532 fi
24533 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24534 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24535
24536 fi
24537 if test $ac_cv_header_termcap_h = yes; then
24538    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24539 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24540 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24541   echo $ECHO_N "(cached) $ECHO_C" >&6
24542 else
24543   ac_check_lib_save_LIBS=$LIBS
24544 LIBS="-ltermcap  $LIBS"
24545 cat >conftest.$ac_ext <<_ACEOF
24546 /* confdefs.h.  */
24547 _ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h.  */
24551
24552 /* Override any GCC internal prototype to avoid an error.
24553    Use char because int might match the return type of a GCC
24554    builtin and then its argument prototype would still apply.  */
24555 #ifdef __cplusplus
24556 extern "C"
24557 #endif
24558 char tgetent ();
24559 int
24560 main ()
24561 {
24562 return tgetent ();
24563   ;
24564   return 0;
24565 }
24566 _ACEOF
24567 rm -f conftest.$ac_objext conftest$ac_exeext
24568 if { (ac_try="$ac_link"
24569 case "(($ac_try" in
24570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571   *) ac_try_echo=$ac_try;;
24572 esac
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574   (eval "$ac_link") 2>conftest.er1
24575   ac_status=$?
24576   grep -v '^ *+' conftest.er1 >conftest.err
24577   rm -f conftest.er1
24578   cat conftest.err >&5
24579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580   (exit $ac_status); } && {
24581          test -z "$ac_c_werror_flag" ||
24582          test ! -s conftest.err
24583        } && test -s conftest$ac_exeext &&
24584        $as_test_x conftest$ac_exeext; then
24585   ac_cv_lib_termcap_tgetent=yes
24586 else
24587   echo "$as_me: failed program was:" >&5
24588 sed 's/^/| /' conftest.$ac_ext >&5
24589
24590         ac_cv_lib_termcap_tgetent=no
24591 fi
24592
24593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24594       conftest$ac_exeext conftest.$ac_ext
24595 LIBS=$ac_check_lib_save_LIBS
24596 fi
24597 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24598 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24599 if test $ac_cv_lib_termcap_tgetent = yes; then
24600    CONS_LIBS="-ltermcap"
24601     CONS_OBJ="conio.o"
24602     CONS_SRC="conio.c"
24603     got_conio="yes"
24604     support_readline=no
24605
24606 cat >>confdefs.h <<\_ACEOF
24607 #define HAVE_CONIO 1
24608 _ACEOF
24609
24610
24611 else
24612    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24613 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24614 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24615   echo $ECHO_N "(cached) $ECHO_C" >&6
24616 else
24617   ac_check_lib_save_LIBS=$LIBS
24618 LIBS="-lncurses  $LIBS"
24619 cat >conftest.$ac_ext <<_ACEOF
24620 /* confdefs.h.  */
24621 _ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h.  */
24625
24626 /* Override any GCC internal prototype to avoid an error.
24627    Use char because int might match the return type of a GCC
24628    builtin and then its argument prototype would still apply.  */
24629 #ifdef __cplusplus
24630 extern "C"
24631 #endif
24632 char tgetent ();
24633 int
24634 main ()
24635 {
24636 return tgetent ();
24637   ;
24638   return 0;
24639 }
24640 _ACEOF
24641 rm -f conftest.$ac_objext conftest$ac_exeext
24642 if { (ac_try="$ac_link"
24643 case "(($ac_try" in
24644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645   *) ac_try_echo=$ac_try;;
24646 esac
24647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648   (eval "$ac_link") 2>conftest.er1
24649   ac_status=$?
24650   grep -v '^ *+' conftest.er1 >conftest.err
24651   rm -f conftest.er1
24652   cat conftest.err >&5
24653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654   (exit $ac_status); } && {
24655          test -z "$ac_c_werror_flag" ||
24656          test ! -s conftest.err
24657        } && test -s conftest$ac_exeext &&
24658        $as_test_x conftest$ac_exeext; then
24659   ac_cv_lib_ncurses_tgetent=yes
24660 else
24661   echo "$as_me: failed program was:" >&5
24662 sed 's/^/| /' conftest.$ac_ext >&5
24663
24664         ac_cv_lib_ncurses_tgetent=no
24665 fi
24666
24667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24668       conftest$ac_exeext conftest.$ac_ext
24669 LIBS=$ac_check_lib_save_LIBS
24670 fi
24671 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24672 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24673 if test $ac_cv_lib_ncurses_tgetent = yes; then
24674    CONS_LIBS="-lncurses"
24675       CONS_OBJ="conio.o"
24676       CONS_SRC="conio.c"
24677       got_conio="yes"
24678       support_readline=no
24679
24680 cat >>confdefs.h <<\_ACEOF
24681 #define HAVE_CONIO 1
24682 _ACEOF
24683
24684
24685 fi
24686
24687
24688 fi
24689
24690
24691 else
24692
24693
24694 for ac_header in curses.h
24695 do
24696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24698   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24701   echo $ECHO_N "(cached) $ECHO_C" >&6
24702 fi
24703 ac_res=`eval echo '${'$as_ac_Header'}'`
24704                { echo "$as_me:$LINENO: result: $ac_res" >&5
24705 echo "${ECHO_T}$ac_res" >&6; }
24706 else
24707   # Is the header compilable?
24708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24710 cat >conftest.$ac_ext <<_ACEOF
24711 /* confdefs.h.  */
24712 _ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h.  */
24716 $ac_includes_default
24717 #include <$ac_header>
24718 _ACEOF
24719 rm -f conftest.$ac_objext
24720 if { (ac_try="$ac_compile"
24721 case "(($ac_try" in
24722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723   *) ac_try_echo=$ac_try;;
24724 esac
24725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24726   (eval "$ac_compile") 2>conftest.er1
24727   ac_status=$?
24728   grep -v '^ *+' conftest.er1 >conftest.err
24729   rm -f conftest.er1
24730   cat conftest.err >&5
24731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732   (exit $ac_status); } && {
24733          test -z "$ac_c_werror_flag" ||
24734          test ! -s conftest.err
24735        } && test -s conftest.$ac_objext; then
24736   ac_header_compiler=yes
24737 else
24738   echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24740
24741         ac_header_compiler=no
24742 fi
24743
24744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24746 echo "${ECHO_T}$ac_header_compiler" >&6; }
24747
24748 # Is the header present?
24749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24751 cat >conftest.$ac_ext <<_ACEOF
24752 /* confdefs.h.  */
24753 _ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h.  */
24757 #include <$ac_header>
24758 _ACEOF
24759 if { (ac_try="$ac_cpp conftest.$ac_ext"
24760 case "(($ac_try" in
24761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762   *) ac_try_echo=$ac_try;;
24763 esac
24764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24766   ac_status=$?
24767   grep -v '^ *+' conftest.er1 >conftest.err
24768   rm -f conftest.er1
24769   cat conftest.err >&5
24770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771   (exit $ac_status); } >/dev/null && {
24772          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24773          test ! -s conftest.err
24774        }; then
24775   ac_header_preproc=yes
24776 else
24777   echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24779
24780   ac_header_preproc=no
24781 fi
24782
24783 rm -f conftest.err conftest.$ac_ext
24784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24785 echo "${ECHO_T}$ac_header_preproc" >&6; }
24786
24787 # So?  What about this header?
24788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24789   yes:no: )
24790     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24794     ac_header_preproc=yes
24795     ;;
24796   no:yes:* )
24797     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24799     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24800 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24801     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24803     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24804 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24807     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24809
24810     ;;
24811 esac
24812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24815   echo $ECHO_N "(cached) $ECHO_C" >&6
24816 else
24817   eval "$as_ac_Header=\$ac_header_preproc"
24818 fi
24819 ac_res=`eval echo '${'$as_ac_Header'}'`
24820                { echo "$as_me:$LINENO: result: $ac_res" >&5
24821 echo "${ECHO_T}$ac_res" >&6; }
24822
24823 fi
24824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24825   cat >>confdefs.h <<_ACEOF
24826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24827 _ACEOF
24828
24829 fi
24830
24831 done
24832
24833     { echo "$as_me:$LINENO: checking for term.h" >&5
24834 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24835 if test "${ac_cv_header_term_h+set}" = set; then
24836   echo $ECHO_N "(cached) $ECHO_C" >&6
24837 else
24838   cat >conftest.$ac_ext <<_ACEOF
24839 /* confdefs.h.  */
24840 _ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h.  */
24844 #if HAVE_CURSES_H
24845 #include <curses.h>
24846 #endif
24847
24848
24849 #include <term.h>
24850 _ACEOF
24851 rm -f conftest.$ac_objext
24852 if { (ac_try="$ac_compile"
24853 case "(($ac_try" in
24854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24855   *) ac_try_echo=$ac_try;;
24856 esac
24857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24858   (eval "$ac_compile") 2>conftest.er1
24859   ac_status=$?
24860   grep -v '^ *+' conftest.er1 >conftest.err
24861   rm -f conftest.er1
24862   cat conftest.err >&5
24863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864   (exit $ac_status); } && {
24865          test -z "$ac_c_werror_flag" ||
24866          test ! -s conftest.err
24867        } && test -s conftest.$ac_objext; then
24868   ac_cv_header_term_h=yes
24869 else
24870   echo "$as_me: failed program was:" >&5
24871 sed 's/^/| /' conftest.$ac_ext >&5
24872
24873         ac_cv_header_term_h=no
24874 fi
24875
24876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24877 fi
24878 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24879 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24880 if test $ac_cv_header_term_h = yes; then
24881    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24882 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24883 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24884   echo $ECHO_N "(cached) $ECHO_C" >&6
24885 else
24886   ac_check_lib_save_LIBS=$LIBS
24887 LIBS="-lcurses  $LIBS"
24888 cat >conftest.$ac_ext <<_ACEOF
24889 /* confdefs.h.  */
24890 _ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h.  */
24894
24895 /* Override any GCC internal prototype to avoid an error.
24896    Use char because int might match the return type of a GCC
24897    builtin and then its argument prototype would still apply.  */
24898 #ifdef __cplusplus
24899 extern "C"
24900 #endif
24901 char tgetent ();
24902 int
24903 main ()
24904 {
24905 return tgetent ();
24906   ;
24907   return 0;
24908 }
24909 _ACEOF
24910 rm -f conftest.$ac_objext conftest$ac_exeext
24911 if { (ac_try="$ac_link"
24912 case "(($ac_try" in
24913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914   *) ac_try_echo=$ac_try;;
24915 esac
24916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24917   (eval "$ac_link") 2>conftest.er1
24918   ac_status=$?
24919   grep -v '^ *+' conftest.er1 >conftest.err
24920   rm -f conftest.er1
24921   cat conftest.err >&5
24922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923   (exit $ac_status); } && {
24924          test -z "$ac_c_werror_flag" ||
24925          test ! -s conftest.err
24926        } && test -s conftest$ac_exeext &&
24927        $as_test_x conftest$ac_exeext; then
24928   ac_cv_lib_curses_tgetent=yes
24929 else
24930   echo "$as_me: failed program was:" >&5
24931 sed 's/^/| /' conftest.$ac_ext >&5
24932
24933         ac_cv_lib_curses_tgetent=no
24934 fi
24935
24936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24937       conftest$ac_exeext conftest.$ac_ext
24938 LIBS=$ac_check_lib_save_LIBS
24939 fi
24940 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24941 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24942 if test $ac_cv_lib_curses_tgetent = yes; then
24943    CONS_LIBS="-lcurses"
24944          CONS_OBJ="conio.o"
24945          CONS_SRC="conio.c"
24946          got_conio="yes"
24947          support_readline=no
24948
24949 cat >>confdefs.h <<\_ACEOF
24950 #define HAVE_CONIO 1
24951 _ACEOF
24952
24953
24954 fi
24955
24956
24957 else
24958    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24959 fi
24960
24961
24962
24963 fi
24964
24965
24966 fi
24967
24968
24969 # Check whether --enable-readline was given.
24970 if test "${enable_readline+set}" = set; then
24971   enableval=$enable_readline;
24972        if test x$enableval = xno; then
24973           support_readline=no
24974        fi
24975
24976
24977 fi
24978
24979
24980 got_readline="no"
24981 READLINE_SRC=
24982 if test x$support_readline = xyes; then
24983
24984 # Check whether --with-readline was given.
24985 if test "${with_readline+set}" = set; then
24986   withval=$with_readline;
24987           case "$with_readline" in
24988           no)
24989              :
24990              ;;
24991           yes|*)
24992              if test -f ${with_readline}/readline.h; then
24993                 CONS_INC="-I${with_readline}"
24994                 CONS_LDFLAGS="-L$with_readline"
24995              elif test -f ${with_readline}/include/readline/readline.h; then
24996                 CONS_INC="-I${with_readline}/include/readline"
24997                 CONS_LDFLAGS="-L${with_readline}/lib"
24998                 with_readline="${with_readline}/include/readline"
24999              else
25000                 with_readline="/usr/include/readline"
25001              fi
25002
25003              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25005   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25006 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25008   echo $ECHO_N "(cached) $ECHO_C" >&6
25009 fi
25010 ac_res=`eval echo '${'$as_ac_Header'}'`
25011                { echo "$as_me:$LINENO: result: $ac_res" >&5
25012 echo "${ECHO_T}$ac_res" >&6; }
25013 else
25014   # Is the header compilable?
25015 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25016 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25017 cat >conftest.$ac_ext <<_ACEOF
25018 /* confdefs.h.  */
25019 _ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h.  */
25023 $ac_includes_default
25024 #include <${with_readline}/readline.h>
25025 _ACEOF
25026 rm -f conftest.$ac_objext
25027 if { (ac_try="$ac_compile"
25028 case "(($ac_try" in
25029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030   *) ac_try_echo=$ac_try;;
25031 esac
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033   (eval "$ac_compile") 2>conftest.er1
25034   ac_status=$?
25035   grep -v '^ *+' conftest.er1 >conftest.err
25036   rm -f conftest.er1
25037   cat conftest.err >&5
25038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039   (exit $ac_status); } && {
25040          test -z "$ac_c_werror_flag" ||
25041          test ! -s conftest.err
25042        } && test -s conftest.$ac_objext; then
25043   ac_header_compiler=yes
25044 else
25045   echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25047
25048         ac_header_compiler=no
25049 fi
25050
25051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25053 echo "${ECHO_T}$ac_header_compiler" >&6; }
25054
25055 # Is the header present?
25056 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25057 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25058 cat >conftest.$ac_ext <<_ACEOF
25059 /* confdefs.h.  */
25060 _ACEOF
25061 cat confdefs.h >>conftest.$ac_ext
25062 cat >>conftest.$ac_ext <<_ACEOF
25063 /* end confdefs.h.  */
25064 #include <${with_readline}/readline.h>
25065 _ACEOF
25066 if { (ac_try="$ac_cpp conftest.$ac_ext"
25067 case "(($ac_try" in
25068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069   *) ac_try_echo=$ac_try;;
25070 esac
25071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25073   ac_status=$?
25074   grep -v '^ *+' conftest.er1 >conftest.err
25075   rm -f conftest.er1
25076   cat conftest.err >&5
25077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078   (exit $ac_status); } >/dev/null && {
25079          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25080          test ! -s conftest.err
25081        }; then
25082   ac_header_preproc=yes
25083 else
25084   echo "$as_me: failed program was:" >&5
25085 sed 's/^/| /' conftest.$ac_ext >&5
25086
25087   ac_header_preproc=no
25088 fi
25089
25090 rm -f conftest.err conftest.$ac_ext
25091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25092 echo "${ECHO_T}$ac_header_preproc" >&6; }
25093
25094 # So?  What about this header?
25095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25096   yes:no: )
25097     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25098 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25099     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25100 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25101     ac_header_preproc=yes
25102     ;;
25103   no:yes:* )
25104     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25105 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25106     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25107 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25108     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25109 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25110     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25111 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25112     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25113 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25114     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25115 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25116
25117     ;;
25118 esac
25119 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25120 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25122   echo $ECHO_N "(cached) $ECHO_C" >&6
25123 else
25124   eval "$as_ac_Header=\$ac_header_preproc"
25125 fi
25126 ac_res=`eval echo '${'$as_ac_Header'}'`
25127                { echo "$as_me:$LINENO: result: $ac_res" >&5
25128 echo "${ECHO_T}$ac_res" >&6; }
25129
25130 fi
25131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25132
25133
25134 cat >>confdefs.h <<\_ACEOF
25135 #define HAVE_READLINE 1
25136 _ACEOF
25137
25138                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25139                     got_readline="yes"
25140
25141 else
25142
25143                     echo " "
25144                     echo "readline.h not found. readline turned off ..."
25145                     echo " "
25146
25147
25148 fi
25149
25150
25151              ;;
25152           esac
25153
25154 else
25155
25156                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25157   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25158 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25159 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25160   echo $ECHO_N "(cached) $ECHO_C" >&6
25161 fi
25162 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25163 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25164 else
25165   # Is the header compilable?
25166 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25167 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25168 cat >conftest.$ac_ext <<_ACEOF
25169 /* confdefs.h.  */
25170 _ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h.  */
25174 $ac_includes_default
25175 #include </usr/include/readline/readline.h>
25176 _ACEOF
25177 rm -f conftest.$ac_objext
25178 if { (ac_try="$ac_compile"
25179 case "(($ac_try" in
25180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25181   *) ac_try_echo=$ac_try;;
25182 esac
25183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25184   (eval "$ac_compile") 2>conftest.er1
25185   ac_status=$?
25186   grep -v '^ *+' conftest.er1 >conftest.err
25187   rm -f conftest.er1
25188   cat conftest.err >&5
25189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); } && {
25191          test -z "$ac_c_werror_flag" ||
25192          test ! -s conftest.err
25193        } && test -s conftest.$ac_objext; then
25194   ac_header_compiler=yes
25195 else
25196   echo "$as_me: failed program was:" >&5
25197 sed 's/^/| /' conftest.$ac_ext >&5
25198
25199         ac_header_compiler=no
25200 fi
25201
25202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25204 echo "${ECHO_T}$ac_header_compiler" >&6; }
25205
25206 # Is the header present?
25207 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25208 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25209 cat >conftest.$ac_ext <<_ACEOF
25210 /* confdefs.h.  */
25211 _ACEOF
25212 cat confdefs.h >>conftest.$ac_ext
25213 cat >>conftest.$ac_ext <<_ACEOF
25214 /* end confdefs.h.  */
25215 #include </usr/include/readline/readline.h>
25216 _ACEOF
25217 if { (ac_try="$ac_cpp conftest.$ac_ext"
25218 case "(($ac_try" in
25219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25220   *) ac_try_echo=$ac_try;;
25221 esac
25222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25224   ac_status=$?
25225   grep -v '^ *+' conftest.er1 >conftest.err
25226   rm -f conftest.er1
25227   cat conftest.err >&5
25228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229   (exit $ac_status); } >/dev/null && {
25230          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25231          test ! -s conftest.err
25232        }; then
25233   ac_header_preproc=yes
25234 else
25235   echo "$as_me: failed program was:" >&5
25236 sed 's/^/| /' conftest.$ac_ext >&5
25237
25238   ac_header_preproc=no
25239 fi
25240
25241 rm -f conftest.err conftest.$ac_ext
25242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25243 echo "${ECHO_T}$ac_header_preproc" >&6; }
25244
25245 # So?  What about this header?
25246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25247   yes:no: )
25248     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25249 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25250     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25251 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25252     ac_header_preproc=yes
25253     ;;
25254   no:yes:* )
25255     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25256 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25257     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25258 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25259     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25260 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25261     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25262 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25263     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25264 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25265     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25266 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25267
25268     ;;
25269 esac
25270 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25271 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25272 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25273   echo $ECHO_N "(cached) $ECHO_C" >&6
25274 else
25275   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25276 fi
25277 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25278 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25279
25280 fi
25281 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25282
25283
25284 cat >>confdefs.h <<\_ACEOF
25285 #define HAVE_READLINE 1
25286 _ACEOF
25287
25288                 got_readline="yes"
25289                 CONS_INC="-I/usr/include/readline"
25290                 CONS_LIBS="-lreadline -ltermcap"
25291
25292 else
25293
25294                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25296   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25297 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25299   echo $ECHO_N "(cached) $ECHO_C" >&6
25300 fi
25301 ac_res=`eval echo '${'$as_ac_Header'}'`
25302                { echo "$as_me:$LINENO: result: $ac_res" >&5
25303 echo "${ECHO_T}$ac_res" >&6; }
25304 else
25305   # Is the header compilable?
25306 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25307 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25308 cat >conftest.$ac_ext <<_ACEOF
25309 /* confdefs.h.  */
25310 _ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h.  */
25314 $ac_includes_default
25315 #include <${TOP_DIR}/depkgs/readline/readline.h>
25316 _ACEOF
25317 rm -f conftest.$ac_objext
25318 if { (ac_try="$ac_compile"
25319 case "(($ac_try" in
25320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25321   *) ac_try_echo=$ac_try;;
25322 esac
25323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25324   (eval "$ac_compile") 2>conftest.er1
25325   ac_status=$?
25326   grep -v '^ *+' conftest.er1 >conftest.err
25327   rm -f conftest.er1
25328   cat conftest.err >&5
25329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330   (exit $ac_status); } && {
25331          test -z "$ac_c_werror_flag" ||
25332          test ! -s conftest.err
25333        } && test -s conftest.$ac_objext; then
25334   ac_header_compiler=yes
25335 else
25336   echo "$as_me: failed program was:" >&5
25337 sed 's/^/| /' conftest.$ac_ext >&5
25338
25339         ac_header_compiler=no
25340 fi
25341
25342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25344 echo "${ECHO_T}$ac_header_compiler" >&6; }
25345
25346 # Is the header present?
25347 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25348 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25349 cat >conftest.$ac_ext <<_ACEOF
25350 /* confdefs.h.  */
25351 _ACEOF
25352 cat confdefs.h >>conftest.$ac_ext
25353 cat >>conftest.$ac_ext <<_ACEOF
25354 /* end confdefs.h.  */
25355 #include <${TOP_DIR}/depkgs/readline/readline.h>
25356 _ACEOF
25357 if { (ac_try="$ac_cpp conftest.$ac_ext"
25358 case "(($ac_try" in
25359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25360   *) ac_try_echo=$ac_try;;
25361 esac
25362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25364   ac_status=$?
25365   grep -v '^ *+' conftest.er1 >conftest.err
25366   rm -f conftest.er1
25367   cat conftest.err >&5
25368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369   (exit $ac_status); } >/dev/null && {
25370          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25371          test ! -s conftest.err
25372        }; then
25373   ac_header_preproc=yes
25374 else
25375   echo "$as_me: failed program was:" >&5
25376 sed 's/^/| /' conftest.$ac_ext >&5
25377
25378   ac_header_preproc=no
25379 fi
25380
25381 rm -f conftest.err conftest.$ac_ext
25382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25383 echo "${ECHO_T}$ac_header_preproc" >&6; }
25384
25385 # So?  What about this header?
25386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25387   yes:no: )
25388     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25389 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25390     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25391 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25392     ac_header_preproc=yes
25393     ;;
25394   no:yes:* )
25395     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25396 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25397     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25398 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25399     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25400 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25401     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25402 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25403     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25404 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25405     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25406 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25407
25408     ;;
25409 esac
25410 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25411 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25413   echo $ECHO_N "(cached) $ECHO_C" >&6
25414 else
25415   eval "$as_ac_Header=\$ac_header_preproc"
25416 fi
25417 ac_res=`eval echo '${'$as_ac_Header'}'`
25418                { echo "$as_me:$LINENO: result: $ac_res" >&5
25419 echo "${ECHO_T}$ac_res" >&6; }
25420
25421 fi
25422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25423
25424
25425 cat >>confdefs.h <<\_ACEOF
25426 #define HAVE_READLINE 1
25427 _ACEOF
25428
25429                         got_readline="yes"
25430                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25431                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25432                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25433                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25434
25435 else
25436
25437                         echo " "
25438                         echo "readline.h not found. readline turned off ..."
25439                         echo " "
25440
25441
25442 fi
25443
25444
25445
25446
25447 fi
25448
25449
25450
25451
25452 fi
25453
25454 fi
25455
25456
25457
25458
25459
25460
25461
25462
25463 MAKE_SHELL=/bin/sh
25464
25465 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25466 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25467 if test "${ac_cv_header_stat_broken+set}" = set; then
25468   echo $ECHO_N "(cached) $ECHO_C" >&6
25469 else
25470   cat >conftest.$ac_ext <<_ACEOF
25471 /* confdefs.h.  */
25472 _ACEOF
25473 cat confdefs.h >>conftest.$ac_ext
25474 cat >>conftest.$ac_ext <<_ACEOF
25475 /* end confdefs.h.  */
25476 #include <sys/types.h>
25477 #include <sys/stat.h>
25478
25479 #if defined S_ISBLK && defined S_IFDIR
25480 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25481 #endif
25482
25483 #if defined S_ISBLK && defined S_IFCHR
25484 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25485 #endif
25486
25487 #if defined S_ISLNK && defined S_IFREG
25488 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25489 #endif
25490
25491 #if defined S_ISSOCK && defined S_IFREG
25492 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25493 #endif
25494
25495 _ACEOF
25496 rm -f conftest.$ac_objext
25497 if { (ac_try="$ac_compile"
25498 case "(($ac_try" in
25499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25500   *) ac_try_echo=$ac_try;;
25501 esac
25502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25503   (eval "$ac_compile") 2>conftest.er1
25504   ac_status=$?
25505   grep -v '^ *+' conftest.er1 >conftest.err
25506   rm -f conftest.er1
25507   cat conftest.err >&5
25508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509   (exit $ac_status); } && {
25510          test -z "$ac_c_werror_flag" ||
25511          test ! -s conftest.err
25512        } && test -s conftest.$ac_objext; then
25513   ac_cv_header_stat_broken=no
25514 else
25515   echo "$as_me: failed program was:" >&5
25516 sed 's/^/| /' conftest.$ac_ext >&5
25517
25518         ac_cv_header_stat_broken=yes
25519 fi
25520
25521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25522 fi
25523 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25524 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25525 if test $ac_cv_header_stat_broken = yes; then
25526
25527 cat >>confdefs.h <<\_ACEOF
25528 #define STAT_MACROS_BROKEN 1
25529 _ACEOF
25530
25531 fi
25532
25533
25534
25535
25536
25537
25538 ac_header_dirent=no
25539 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25540   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25541 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25542 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25544   echo $ECHO_N "(cached) $ECHO_C" >&6
25545 else
25546   cat >conftest.$ac_ext <<_ACEOF
25547 /* confdefs.h.  */
25548 _ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h.  */
25552 #include <sys/types.h>
25553 #include <$ac_hdr>
25554
25555 int
25556 main ()
25557 {
25558 if ((DIR *) 0)
25559 return 0;
25560   ;
25561   return 0;
25562 }
25563 _ACEOF
25564 rm -f conftest.$ac_objext
25565 if { (ac_try="$ac_compile"
25566 case "(($ac_try" in
25567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25568   *) ac_try_echo=$ac_try;;
25569 esac
25570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25571   (eval "$ac_compile") 2>conftest.er1
25572   ac_status=$?
25573   grep -v '^ *+' conftest.er1 >conftest.err
25574   rm -f conftest.er1
25575   cat conftest.err >&5
25576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577   (exit $ac_status); } && {
25578          test -z "$ac_c_werror_flag" ||
25579          test ! -s conftest.err
25580        } && test -s conftest.$ac_objext; then
25581   eval "$as_ac_Header=yes"
25582 else
25583   echo "$as_me: failed program was:" >&5
25584 sed 's/^/| /' conftest.$ac_ext >&5
25585
25586         eval "$as_ac_Header=no"
25587 fi
25588
25589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25590 fi
25591 ac_res=`eval echo '${'$as_ac_Header'}'`
25592                { echo "$as_me:$LINENO: result: $ac_res" >&5
25593 echo "${ECHO_T}$ac_res" >&6; }
25594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25595   cat >>confdefs.h <<_ACEOF
25596 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25597 _ACEOF
25598
25599 ac_header_dirent=$ac_hdr; break
25600 fi
25601
25602 done
25603 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25604 if test $ac_header_dirent = dirent.h; then
25605   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25606 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25607 if test "${ac_cv_search_opendir+set}" = set; then
25608   echo $ECHO_N "(cached) $ECHO_C" >&6
25609 else
25610   ac_func_search_save_LIBS=$LIBS
25611 cat >conftest.$ac_ext <<_ACEOF
25612 /* confdefs.h.  */
25613 _ACEOF
25614 cat confdefs.h >>conftest.$ac_ext
25615 cat >>conftest.$ac_ext <<_ACEOF
25616 /* end confdefs.h.  */
25617
25618 /* Override any GCC internal prototype to avoid an error.
25619    Use char because int might match the return type of a GCC
25620    builtin and then its argument prototype would still apply.  */
25621 #ifdef __cplusplus
25622 extern "C"
25623 #endif
25624 char opendir ();
25625 int
25626 main ()
25627 {
25628 return opendir ();
25629   ;
25630   return 0;
25631 }
25632 _ACEOF
25633 for ac_lib in '' dir; do
25634   if test -z "$ac_lib"; then
25635     ac_res="none required"
25636   else
25637     ac_res=-l$ac_lib
25638     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25639   fi
25640   rm -f conftest.$ac_objext conftest$ac_exeext
25641 if { (ac_try="$ac_link"
25642 case "(($ac_try" in
25643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25644   *) ac_try_echo=$ac_try;;
25645 esac
25646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25647   (eval "$ac_link") 2>conftest.er1
25648   ac_status=$?
25649   grep -v '^ *+' conftest.er1 >conftest.err
25650   rm -f conftest.er1
25651   cat conftest.err >&5
25652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653   (exit $ac_status); } && {
25654          test -z "$ac_c_werror_flag" ||
25655          test ! -s conftest.err
25656        } && test -s conftest$ac_exeext &&
25657        $as_test_x conftest$ac_exeext; then
25658   ac_cv_search_opendir=$ac_res
25659 else
25660   echo "$as_me: failed program was:" >&5
25661 sed 's/^/| /' conftest.$ac_ext >&5
25662
25663
25664 fi
25665
25666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25667       conftest$ac_exeext
25668   if test "${ac_cv_search_opendir+set}" = set; then
25669   break
25670 fi
25671 done
25672 if test "${ac_cv_search_opendir+set}" = set; then
25673   :
25674 else
25675   ac_cv_search_opendir=no
25676 fi
25677 rm conftest.$ac_ext
25678 LIBS=$ac_func_search_save_LIBS
25679 fi
25680 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25681 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25682 ac_res=$ac_cv_search_opendir
25683 if test "$ac_res" != no; then
25684   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25685
25686 fi
25687
25688 else
25689   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25690 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25691 if test "${ac_cv_search_opendir+set}" = set; then
25692   echo $ECHO_N "(cached) $ECHO_C" >&6
25693 else
25694   ac_func_search_save_LIBS=$LIBS
25695 cat >conftest.$ac_ext <<_ACEOF
25696 /* confdefs.h.  */
25697 _ACEOF
25698 cat confdefs.h >>conftest.$ac_ext
25699 cat >>conftest.$ac_ext <<_ACEOF
25700 /* end confdefs.h.  */
25701
25702 /* Override any GCC internal prototype to avoid an error.
25703    Use char because int might match the return type of a GCC
25704    builtin and then its argument prototype would still apply.  */
25705 #ifdef __cplusplus
25706 extern "C"
25707 #endif
25708 char opendir ();
25709 int
25710 main ()
25711 {
25712 return opendir ();
25713   ;
25714   return 0;
25715 }
25716 _ACEOF
25717 for ac_lib in '' x; do
25718   if test -z "$ac_lib"; then
25719     ac_res="none required"
25720   else
25721     ac_res=-l$ac_lib
25722     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25723   fi
25724   rm -f conftest.$ac_objext conftest$ac_exeext
25725 if { (ac_try="$ac_link"
25726 case "(($ac_try" in
25727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728   *) ac_try_echo=$ac_try;;
25729 esac
25730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25731   (eval "$ac_link") 2>conftest.er1
25732   ac_status=$?
25733   grep -v '^ *+' conftest.er1 >conftest.err
25734   rm -f conftest.er1
25735   cat conftest.err >&5
25736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737   (exit $ac_status); } && {
25738          test -z "$ac_c_werror_flag" ||
25739          test ! -s conftest.err
25740        } && test -s conftest$ac_exeext &&
25741        $as_test_x conftest$ac_exeext; then
25742   ac_cv_search_opendir=$ac_res
25743 else
25744   echo "$as_me: failed program was:" >&5
25745 sed 's/^/| /' conftest.$ac_ext >&5
25746
25747
25748 fi
25749
25750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25751       conftest$ac_exeext
25752   if test "${ac_cv_search_opendir+set}" = set; then
25753   break
25754 fi
25755 done
25756 if test "${ac_cv_search_opendir+set}" = set; then
25757   :
25758 else
25759   ac_cv_search_opendir=no
25760 fi
25761 rm conftest.$ac_ext
25762 LIBS=$ac_func_search_save_LIBS
25763 fi
25764 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25765 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25766 ac_res=$ac_cv_search_opendir
25767 if test "$ac_res" != no; then
25768   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25769
25770 fi
25771
25772 fi
25773
25774
25775
25776
25777
25778
25779
25780
25781 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25782 do
25783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25787   echo $ECHO_N "(cached) $ECHO_C" >&6
25788 else
25789   cat >conftest.$ac_ext <<_ACEOF
25790 /* confdefs.h.  */
25791 _ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h.  */
25795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25797 #define $ac_func innocuous_$ac_func
25798
25799 /* System header to define __stub macros and hopefully few prototypes,
25800     which can conflict with char $ac_func (); below.
25801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25802     <limits.h> exists even on freestanding compilers.  */
25803
25804 #ifdef __STDC__
25805 # include <limits.h>
25806 #else
25807 # include <assert.h>
25808 #endif
25809
25810 #undef $ac_func
25811
25812 /* Override any GCC internal prototype to avoid an error.
25813    Use char because int might match the return type of a GCC
25814    builtin and then its argument prototype would still apply.  */
25815 #ifdef __cplusplus
25816 extern "C"
25817 #endif
25818 char $ac_func ();
25819 /* The GNU C library defines this for functions which it implements
25820     to always fail with ENOSYS.  Some functions are actually named
25821     something starting with __ and the normal name is an alias.  */
25822 #if defined __stub_$ac_func || defined __stub___$ac_func
25823 choke me
25824 #endif
25825
25826 int
25827 main ()
25828 {
25829 return $ac_func ();
25830   ;
25831   return 0;
25832 }
25833 _ACEOF
25834 rm -f conftest.$ac_objext conftest$ac_exeext
25835 if { (ac_try="$ac_link"
25836 case "(($ac_try" in
25837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25838   *) ac_try_echo=$ac_try;;
25839 esac
25840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25841   (eval "$ac_link") 2>conftest.er1
25842   ac_status=$?
25843   grep -v '^ *+' conftest.er1 >conftest.err
25844   rm -f conftest.er1
25845   cat conftest.err >&5
25846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847   (exit $ac_status); } && {
25848          test -z "$ac_c_werror_flag" ||
25849          test ! -s conftest.err
25850        } && test -s conftest$ac_exeext &&
25851        $as_test_x conftest$ac_exeext; then
25852   eval "$as_ac_var=yes"
25853 else
25854   echo "$as_me: failed program was:" >&5
25855 sed 's/^/| /' conftest.$ac_ext >&5
25856
25857         eval "$as_ac_var=no"
25858 fi
25859
25860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25861       conftest$ac_exeext conftest.$ac_ext
25862 fi
25863 ac_res=`eval echo '${'$as_ac_var'}'`
25864                { echo "$as_me:$LINENO: result: $ac_res" >&5
25865 echo "${ECHO_T}$ac_res" >&6; }
25866 if test `eval echo '${'$as_ac_var'}'` = yes; then
25867   cat >>confdefs.h <<_ACEOF
25868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25869 _ACEOF
25870
25871 fi
25872 done
25873
25874
25875
25876 for ac_func in nanosleep nl_langinfo
25877 do
25878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25882   echo $ECHO_N "(cached) $ECHO_C" >&6
25883 else
25884   cat >conftest.$ac_ext <<_ACEOF
25885 /* confdefs.h.  */
25886 _ACEOF
25887 cat confdefs.h >>conftest.$ac_ext
25888 cat >>conftest.$ac_ext <<_ACEOF
25889 /* end confdefs.h.  */
25890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25892 #define $ac_func innocuous_$ac_func
25893
25894 /* System header to define __stub macros and hopefully few prototypes,
25895     which can conflict with char $ac_func (); below.
25896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25897     <limits.h> exists even on freestanding compilers.  */
25898
25899 #ifdef __STDC__
25900 # include <limits.h>
25901 #else
25902 # include <assert.h>
25903 #endif
25904
25905 #undef $ac_func
25906
25907 /* Override any GCC internal prototype to avoid an error.
25908    Use char because int might match the return type of a GCC
25909    builtin and then its argument prototype would still apply.  */
25910 #ifdef __cplusplus
25911 extern "C"
25912 #endif
25913 char $ac_func ();
25914 /* The GNU C library defines this for functions which it implements
25915     to always fail with ENOSYS.  Some functions are actually named
25916     something starting with __ and the normal name is an alias.  */
25917 #if defined __stub_$ac_func || defined __stub___$ac_func
25918 choke me
25919 #endif
25920
25921 int
25922 main ()
25923 {
25924 return $ac_func ();
25925   ;
25926   return 0;
25927 }
25928 _ACEOF
25929 rm -f conftest.$ac_objext conftest$ac_exeext
25930 if { (ac_try="$ac_link"
25931 case "(($ac_try" in
25932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25933   *) ac_try_echo=$ac_try;;
25934 esac
25935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25936   (eval "$ac_link") 2>conftest.er1
25937   ac_status=$?
25938   grep -v '^ *+' conftest.er1 >conftest.err
25939   rm -f conftest.er1
25940   cat conftest.err >&5
25941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942   (exit $ac_status); } && {
25943          test -z "$ac_c_werror_flag" ||
25944          test ! -s conftest.err
25945        } && test -s conftest$ac_exeext &&
25946        $as_test_x conftest$ac_exeext; then
25947   eval "$as_ac_var=yes"
25948 else
25949   echo "$as_me: failed program was:" >&5
25950 sed 's/^/| /' conftest.$ac_ext >&5
25951
25952         eval "$as_ac_var=no"
25953 fi
25954
25955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25956       conftest$ac_exeext conftest.$ac_ext
25957 fi
25958 ac_res=`eval echo '${'$as_ac_var'}'`
25959                { echo "$as_me:$LINENO: result: $ac_res" >&5
25960 echo "${ECHO_T}$ac_res" >&6; }
25961 if test `eval echo '${'$as_ac_var'}'` = yes; then
25962   cat >>confdefs.h <<_ACEOF
25963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25964 _ACEOF
25965
25966 fi
25967 done
25968
25969
25970 for ac_header in varargs.h
25971 do
25972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25974   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25977   echo $ECHO_N "(cached) $ECHO_C" >&6
25978 fi
25979 ac_res=`eval echo '${'$as_ac_Header'}'`
25980                { echo "$as_me:$LINENO: result: $ac_res" >&5
25981 echo "${ECHO_T}$ac_res" >&6; }
25982 else
25983   # Is the header compilable?
25984 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25985 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25986 cat >conftest.$ac_ext <<_ACEOF
25987 /* confdefs.h.  */
25988 _ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h.  */
25992 $ac_includes_default
25993 #include <$ac_header>
25994 _ACEOF
25995 rm -f conftest.$ac_objext
25996 if { (ac_try="$ac_compile"
25997 case "(($ac_try" in
25998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25999   *) ac_try_echo=$ac_try;;
26000 esac
26001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26002   (eval "$ac_compile") 2>conftest.er1
26003   ac_status=$?
26004   grep -v '^ *+' conftest.er1 >conftest.err
26005   rm -f conftest.er1
26006   cat conftest.err >&5
26007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008   (exit $ac_status); } && {
26009          test -z "$ac_c_werror_flag" ||
26010          test ! -s conftest.err
26011        } && test -s conftest.$ac_objext; then
26012   ac_header_compiler=yes
26013 else
26014   echo "$as_me: failed program was:" >&5
26015 sed 's/^/| /' conftest.$ac_ext >&5
26016
26017         ac_header_compiler=no
26018 fi
26019
26020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26022 echo "${ECHO_T}$ac_header_compiler" >&6; }
26023
26024 # Is the header present?
26025 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26027 cat >conftest.$ac_ext <<_ACEOF
26028 /* confdefs.h.  */
26029 _ACEOF
26030 cat confdefs.h >>conftest.$ac_ext
26031 cat >>conftest.$ac_ext <<_ACEOF
26032 /* end confdefs.h.  */
26033 #include <$ac_header>
26034 _ACEOF
26035 if { (ac_try="$ac_cpp conftest.$ac_ext"
26036 case "(($ac_try" in
26037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26038   *) ac_try_echo=$ac_try;;
26039 esac
26040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26042   ac_status=$?
26043   grep -v '^ *+' conftest.er1 >conftest.err
26044   rm -f conftest.er1
26045   cat conftest.err >&5
26046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047   (exit $ac_status); } >/dev/null && {
26048          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26049          test ! -s conftest.err
26050        }; then
26051   ac_header_preproc=yes
26052 else
26053   echo "$as_me: failed program was:" >&5
26054 sed 's/^/| /' conftest.$ac_ext >&5
26055
26056   ac_header_preproc=no
26057 fi
26058
26059 rm -f conftest.err conftest.$ac_ext
26060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26061 echo "${ECHO_T}$ac_header_preproc" >&6; }
26062
26063 # So?  What about this header?
26064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26065   yes:no: )
26066     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26070     ac_header_preproc=yes
26071     ;;
26072   no:yes:* )
26073     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26075     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26076 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26077     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26079     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26080 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26083     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26085
26086     ;;
26087 esac
26088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26091   echo $ECHO_N "(cached) $ECHO_C" >&6
26092 else
26093   eval "$as_ac_Header=\$ac_header_preproc"
26094 fi
26095 ac_res=`eval echo '${'$as_ac_Header'}'`
26096                { echo "$as_me:$LINENO: result: $ac_res" >&5
26097 echo "${ECHO_T}$ac_res" >&6; }
26098
26099 fi
26100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26101   cat >>confdefs.h <<_ACEOF
26102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26103 _ACEOF
26104
26105 fi
26106
26107 done
26108
26109
26110
26111 { echo "$as_me:$LINENO: checking for Python support" >&5
26112 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26113
26114 # Check whether --with-python was given.
26115 if test "${with_python+set}" = set; then
26116   withval=$with_python;
26117        PYTHON_INCDIR=
26118        PYTHON_LIBS=
26119        if test "$withval" != "no"; then
26120           if test "$withval" = "yes"; then
26121              for python_root in /usr /usr/local /usr/sfw; do
26122                 for ver in python2.2 python2.3 python2.4 python2.5; do
26123                    if test -f $python_root/include/${ver}/Python.h; then
26124                       PYTHON_INCDIR=-I$python_root/include/${ver}
26125                       if test -d $python_root/lib64/${ver}/config; then
26126                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26127                       else
26128                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26129                       fi
26130                       break
26131                    fi
26132                 done
26133              done
26134
26135              if test x$PYTHON_INCDIR = x; then
26136                 if test -f $prefix/include/Python.h; then
26137                    PYTHON_INCDIR=-I$prefix/include
26138                    if test -d $prefix/lib64/config; then
26139                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26140                    else
26141                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26142                    fi
26143                 else
26144                    { echo "$as_me:$LINENO: result: no" >&5
26145 echo "${ECHO_T}no" >&6; }
26146                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26147 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26148    { (exit 1); exit 1; }; }
26149                 fi
26150              fi
26151           else
26152              if test -f $withval/Python.h; then
26153                 PYTHON_INCDIR=-I$withval
26154                 PYTHON_LIBS="-L$withval/config -lpython"
26155              elif test -f $withval/include/Python.h; then
26156                 PYTHON_INCDIR=-I$withval/include
26157                 if test -d $withval/lib64/config; then
26158                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26159                 else
26160                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26161                 fi
26162              elif test -f $withval/include/python/Python.h; then
26163                 PYTHON_INCDIR=-I$withval/include/python
26164                 if test -d $withval/lib64/python/config; then
26165                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26166                 else
26167                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26168                 fi
26169              else
26170                 { echo "$as_me:$LINENO: result: no" >&5
26171 echo "${ECHO_T}no" >&6; }
26172                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26173 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26174    { (exit 1); exit 1; }; }
26175              fi
26176           fi
26177
26178           cat >>confdefs.h <<\_ACEOF
26179 #define HAVE_PYTHON 1
26180 _ACEOF
26181
26182           { echo "$as_me:$LINENO: result: yes" >&5
26183 echo "${ECHO_T}yes" >&6; }
26184           support_python=yes
26185           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26186 echo "$as_me: checking for more Python libs" >&6;}
26187           saved_LIBS="$LIBS"; LIBS=
26188           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26189 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26190 if test "${ac_cv_search_shm_open+set}" = set; then
26191   echo $ECHO_N "(cached) $ECHO_C" >&6
26192 else
26193   ac_func_search_save_LIBS=$LIBS
26194 cat >conftest.$ac_ext <<_ACEOF
26195 /* confdefs.h.  */
26196 _ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h.  */
26200
26201 /* Override any GCC internal prototype to avoid an error.
26202    Use char because int might match the return type of a GCC
26203    builtin and then its argument prototype would still apply.  */
26204 #ifdef __cplusplus
26205 extern "C"
26206 #endif
26207 char shm_open ();
26208 int
26209 main ()
26210 {
26211 return shm_open ();
26212   ;
26213   return 0;
26214 }
26215 _ACEOF
26216 for ac_lib in '' rt; do
26217   if test -z "$ac_lib"; then
26218     ac_res="none required"
26219   else
26220     ac_res=-l$ac_lib
26221     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26222   fi
26223   rm -f conftest.$ac_objext conftest$ac_exeext
26224 if { (ac_try="$ac_link"
26225 case "(($ac_try" in
26226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26227   *) ac_try_echo=$ac_try;;
26228 esac
26229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26230   (eval "$ac_link") 2>conftest.er1
26231   ac_status=$?
26232   grep -v '^ *+' conftest.er1 >conftest.err
26233   rm -f conftest.er1
26234   cat conftest.err >&5
26235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236   (exit $ac_status); } && {
26237          test -z "$ac_c_werror_flag" ||
26238          test ! -s conftest.err
26239        } && test -s conftest$ac_exeext &&
26240        $as_test_x conftest$ac_exeext; then
26241   ac_cv_search_shm_open=$ac_res
26242 else
26243   echo "$as_me: failed program was:" >&5
26244 sed 's/^/| /' conftest.$ac_ext >&5
26245
26246
26247 fi
26248
26249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26250       conftest$ac_exeext
26251   if test "${ac_cv_search_shm_open+set}" = set; then
26252   break
26253 fi
26254 done
26255 if test "${ac_cv_search_shm_open+set}" = set; then
26256   :
26257 else
26258   ac_cv_search_shm_open=no
26259 fi
26260 rm conftest.$ac_ext
26261 LIBS=$ac_func_search_save_LIBS
26262 fi
26263 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26264 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26265 ac_res=$ac_cv_search_shm_open
26266 if test "$ac_res" != no; then
26267   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26268
26269 fi
26270
26271
26272 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26273 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26274 if test "${ac_cv_lib_util_openpty+set}" = set; then
26275   echo $ECHO_N "(cached) $ECHO_C" >&6
26276 else
26277   ac_check_lib_save_LIBS=$LIBS
26278 LIBS="-lutil  $LIBS"
26279 cat >conftest.$ac_ext <<_ACEOF
26280 /* confdefs.h.  */
26281 _ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h.  */
26285
26286 /* Override any GCC internal prototype to avoid an error.
26287    Use char because int might match the return type of a GCC
26288    builtin and then its argument prototype would still apply.  */
26289 #ifdef __cplusplus
26290 extern "C"
26291 #endif
26292 char openpty ();
26293 int
26294 main ()
26295 {
26296 return openpty ();
26297   ;
26298   return 0;
26299 }
26300 _ACEOF
26301 rm -f conftest.$ac_objext conftest$ac_exeext
26302 if { (ac_try="$ac_link"
26303 case "(($ac_try" in
26304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26305   *) ac_try_echo=$ac_try;;
26306 esac
26307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26308   (eval "$ac_link") 2>conftest.er1
26309   ac_status=$?
26310   grep -v '^ *+' conftest.er1 >conftest.err
26311   rm -f conftest.er1
26312   cat conftest.err >&5
26313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314   (exit $ac_status); } && {
26315          test -z "$ac_c_werror_flag" ||
26316          test ! -s conftest.err
26317        } && test -s conftest$ac_exeext &&
26318        $as_test_x conftest$ac_exeext; then
26319   ac_cv_lib_util_openpty=yes
26320 else
26321   echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26323
26324         ac_cv_lib_util_openpty=no
26325 fi
26326
26327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26328       conftest$ac_exeext conftest.$ac_ext
26329 LIBS=$ac_check_lib_save_LIBS
26330 fi
26331 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26332 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26333 if test $ac_cv_lib_util_openpty = yes; then
26334   cat >>confdefs.h <<_ACEOF
26335 #define HAVE_LIBUTIL 1
26336 _ACEOF
26337
26338   LIBS="-lutil $LIBS"
26339
26340 fi
26341
26342           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26343           LIBS="$saved_LIBS"
26344        else
26345           { echo "$as_me:$LINENO: result: no" >&5
26346 echo "${ECHO_T}no" >&6; }
26347        fi
26348
26349 else
26350
26351        { echo "$as_me:$LINENO: result: no" >&5
26352 echo "${ECHO_T}no" >&6; }
26353
26354
26355 fi
26356
26357
26358
26359
26360 { echo "$as_me:$LINENO: checking for socket" >&5
26361 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26362 if test "${ac_cv_func_socket+set}" = set; then
26363   echo $ECHO_N "(cached) $ECHO_C" >&6
26364 else
26365   cat >conftest.$ac_ext <<_ACEOF
26366 /* confdefs.h.  */
26367 _ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h.  */
26371 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26373 #define socket innocuous_socket
26374
26375 /* System header to define __stub macros and hopefully few prototypes,
26376     which can conflict with char socket (); below.
26377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26378     <limits.h> exists even on freestanding compilers.  */
26379
26380 #ifdef __STDC__
26381 # include <limits.h>
26382 #else
26383 # include <assert.h>
26384 #endif
26385
26386 #undef socket
26387
26388 /* Override any GCC internal prototype to avoid an error.
26389    Use char because int might match the return type of a GCC
26390    builtin and then its argument prototype would still apply.  */
26391 #ifdef __cplusplus
26392 extern "C"
26393 #endif
26394 char socket ();
26395 /* The GNU C library defines this for functions which it implements
26396     to always fail with ENOSYS.  Some functions are actually named
26397     something starting with __ and the normal name is an alias.  */
26398 #if defined __stub_socket || defined __stub___socket
26399 choke me
26400 #endif
26401
26402 int
26403 main ()
26404 {
26405 return socket ();
26406   ;
26407   return 0;
26408 }
26409 _ACEOF
26410 rm -f conftest.$ac_objext conftest$ac_exeext
26411 if { (ac_try="$ac_link"
26412 case "(($ac_try" in
26413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26414   *) ac_try_echo=$ac_try;;
26415 esac
26416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26417   (eval "$ac_link") 2>conftest.er1
26418   ac_status=$?
26419   grep -v '^ *+' conftest.er1 >conftest.err
26420   rm -f conftest.er1
26421   cat conftest.err >&5
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); } && {
26424          test -z "$ac_c_werror_flag" ||
26425          test ! -s conftest.err
26426        } && test -s conftest$ac_exeext &&
26427        $as_test_x conftest$ac_exeext; then
26428   ac_cv_func_socket=yes
26429 else
26430   echo "$as_me: failed program was:" >&5
26431 sed 's/^/| /' conftest.$ac_ext >&5
26432
26433         ac_cv_func_socket=no
26434 fi
26435
26436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26437       conftest$ac_exeext conftest.$ac_ext
26438 fi
26439 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26440 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26441 if test $ac_cv_func_socket = yes; then
26442   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26443 echo "${ECHO_T}using libc's socket" >&6; }
26444 else
26445
26446 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26447 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26448 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26449   echo $ECHO_N "(cached) $ECHO_C" >&6
26450 else
26451   ac_check_lib_save_LIBS=$LIBS
26452 LIBS="-lxnet  $LIBS"
26453 cat >conftest.$ac_ext <<_ACEOF
26454 /* confdefs.h.  */
26455 _ACEOF
26456 cat confdefs.h >>conftest.$ac_ext
26457 cat >>conftest.$ac_ext <<_ACEOF
26458 /* end confdefs.h.  */
26459
26460 /* Override any GCC internal prototype to avoid an error.
26461    Use char because int might match the return type of a GCC
26462    builtin and then its argument prototype would still apply.  */
26463 #ifdef __cplusplus
26464 extern "C"
26465 #endif
26466 char socket ();
26467 int
26468 main ()
26469 {
26470 return socket ();
26471   ;
26472   return 0;
26473 }
26474 _ACEOF
26475 rm -f conftest.$ac_objext conftest$ac_exeext
26476 if { (ac_try="$ac_link"
26477 case "(($ac_try" in
26478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26479   *) ac_try_echo=$ac_try;;
26480 esac
26481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26482   (eval "$ac_link") 2>conftest.er1
26483   ac_status=$?
26484   grep -v '^ *+' conftest.er1 >conftest.err
26485   rm -f conftest.er1
26486   cat conftest.err >&5
26487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488   (exit $ac_status); } && {
26489          test -z "$ac_c_werror_flag" ||
26490          test ! -s conftest.err
26491        } && test -s conftest$ac_exeext &&
26492        $as_test_x conftest$ac_exeext; then
26493   ac_cv_lib_xnet_socket=yes
26494 else
26495   echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26497
26498         ac_cv_lib_xnet_socket=no
26499 fi
26500
26501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26502       conftest$ac_exeext conftest.$ac_ext
26503 LIBS=$ac_check_lib_save_LIBS
26504 fi
26505 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26506 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26507 if test $ac_cv_lib_xnet_socket = yes; then
26508   cat >>confdefs.h <<_ACEOF
26509 #define HAVE_LIBXNET 1
26510 _ACEOF
26511
26512   LIBS="-lxnet $LIBS"
26513
26514 fi
26515
26516
26517 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26518 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26519 if test "${ac_cv_lib_socket_socket+set}" = set; then
26520   echo $ECHO_N "(cached) $ECHO_C" >&6
26521 else
26522   ac_check_lib_save_LIBS=$LIBS
26523 LIBS="-lsocket  $LIBS"
26524 cat >conftest.$ac_ext <<_ACEOF
26525 /* confdefs.h.  */
26526 _ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h.  */
26530
26531 /* Override any GCC internal prototype to avoid an error.
26532    Use char because int might match the return type of a GCC
26533    builtin and then its argument prototype would still apply.  */
26534 #ifdef __cplusplus
26535 extern "C"
26536 #endif
26537 char socket ();
26538 int
26539 main ()
26540 {
26541 return socket ();
26542   ;
26543   return 0;
26544 }
26545 _ACEOF
26546 rm -f conftest.$ac_objext conftest$ac_exeext
26547 if { (ac_try="$ac_link"
26548 case "(($ac_try" in
26549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550   *) ac_try_echo=$ac_try;;
26551 esac
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553   (eval "$ac_link") 2>conftest.er1
26554   ac_status=$?
26555   grep -v '^ *+' conftest.er1 >conftest.err
26556   rm -f conftest.er1
26557   cat conftest.err >&5
26558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559   (exit $ac_status); } && {
26560          test -z "$ac_c_werror_flag" ||
26561          test ! -s conftest.err
26562        } && test -s conftest$ac_exeext &&
26563        $as_test_x conftest$ac_exeext; then
26564   ac_cv_lib_socket_socket=yes
26565 else
26566   echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26568
26569         ac_cv_lib_socket_socket=no
26570 fi
26571
26572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26573       conftest$ac_exeext conftest.$ac_ext
26574 LIBS=$ac_check_lib_save_LIBS
26575 fi
26576 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26577 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26578 if test $ac_cv_lib_socket_socket = yes; then
26579   cat >>confdefs.h <<_ACEOF
26580 #define HAVE_LIBSOCKET 1
26581 _ACEOF
26582
26583   LIBS="-lsocket $LIBS"
26584
26585 fi
26586
26587
26588 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26589 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26590 if test "${ac_cv_lib_inet_socket+set}" = set; then
26591   echo $ECHO_N "(cached) $ECHO_C" >&6
26592 else
26593   ac_check_lib_save_LIBS=$LIBS
26594 LIBS="-linet  $LIBS"
26595 cat >conftest.$ac_ext <<_ACEOF
26596 /* confdefs.h.  */
26597 _ACEOF
26598 cat confdefs.h >>conftest.$ac_ext
26599 cat >>conftest.$ac_ext <<_ACEOF
26600 /* end confdefs.h.  */
26601
26602 /* Override any GCC internal prototype to avoid an error.
26603    Use char because int might match the return type of a GCC
26604    builtin and then its argument prototype would still apply.  */
26605 #ifdef __cplusplus
26606 extern "C"
26607 #endif
26608 char socket ();
26609 int
26610 main ()
26611 {
26612 return socket ();
26613   ;
26614   return 0;
26615 }
26616 _ACEOF
26617 rm -f conftest.$ac_objext conftest$ac_exeext
26618 if { (ac_try="$ac_link"
26619 case "(($ac_try" in
26620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26621   *) ac_try_echo=$ac_try;;
26622 esac
26623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26624   (eval "$ac_link") 2>conftest.er1
26625   ac_status=$?
26626   grep -v '^ *+' conftest.er1 >conftest.err
26627   rm -f conftest.er1
26628   cat conftest.err >&5
26629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630   (exit $ac_status); } && {
26631          test -z "$ac_c_werror_flag" ||
26632          test ! -s conftest.err
26633        } && test -s conftest$ac_exeext &&
26634        $as_test_x conftest$ac_exeext; then
26635   ac_cv_lib_inet_socket=yes
26636 else
26637   echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.$ac_ext >&5
26639
26640         ac_cv_lib_inet_socket=no
26641 fi
26642
26643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26644       conftest$ac_exeext conftest.$ac_ext
26645 LIBS=$ac_check_lib_save_LIBS
26646 fi
26647 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26648 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26649 if test $ac_cv_lib_inet_socket = yes; then
26650   cat >>confdefs.h <<_ACEOF
26651 #define HAVE_LIBINET 1
26652 _ACEOF
26653
26654   LIBS="-linet $LIBS"
26655
26656 fi
26657
26658 fi
26659
26660
26661 TCPW_MSG="no"
26662 WRAPLIBS=""
26663
26664 # Check whether --with-tcp-wrappers was given.
26665 if test "${with_tcp_wrappers+set}" = set; then
26666   withval=$with_tcp_wrappers;
26667        if test "x$withval" != "xno" ; then
26668           saved_LIBS="$LIBS"
26669           LIBS="$saved_LIBS -lwrap"
26670           { echo "$as_me:$LINENO: checking for libwrap" >&5
26671 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26672           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26673 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26674 if test "${ac_cv_search_nanosleep+set}" = set; then
26675   echo $ECHO_N "(cached) $ECHO_C" >&6
26676 else
26677   ac_func_search_save_LIBS=$LIBS
26678 cat >conftest.$ac_ext <<_ACEOF
26679 /* confdefs.h.  */
26680 _ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h.  */
26684
26685 /* Override any GCC internal prototype to avoid an error.
26686    Use char because int might match the return type of a GCC
26687    builtin and then its argument prototype would still apply.  */
26688 #ifdef __cplusplus
26689 extern "C"
26690 #endif
26691 char nanosleep ();
26692 int
26693 main ()
26694 {
26695 return nanosleep ();
26696   ;
26697   return 0;
26698 }
26699 _ACEOF
26700 for ac_lib in '' rt; do
26701   if test -z "$ac_lib"; then
26702     ac_res="none required"
26703   else
26704     ac_res=-l$ac_lib
26705     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26706   fi
26707   rm -f conftest.$ac_objext conftest$ac_exeext
26708 if { (ac_try="$ac_link"
26709 case "(($ac_try" in
26710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26711   *) ac_try_echo=$ac_try;;
26712 esac
26713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26714   (eval "$ac_link") 2>conftest.er1
26715   ac_status=$?
26716   grep -v '^ *+' conftest.er1 >conftest.err
26717   rm -f conftest.er1
26718   cat conftest.err >&5
26719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720   (exit $ac_status); } && {
26721          test -z "$ac_c_werror_flag" ||
26722          test ! -s conftest.err
26723        } && test -s conftest$ac_exeext &&
26724        $as_test_x conftest$ac_exeext; then
26725   ac_cv_search_nanosleep=$ac_res
26726 else
26727   echo "$as_me: failed program was:" >&5
26728 sed 's/^/| /' conftest.$ac_ext >&5
26729
26730
26731 fi
26732
26733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26734       conftest$ac_exeext
26735   if test "${ac_cv_search_nanosleep+set}" = set; then
26736   break
26737 fi
26738 done
26739 if test "${ac_cv_search_nanosleep+set}" = set; then
26740   :
26741 else
26742   ac_cv_search_nanosleep=no
26743 fi
26744 rm conftest.$ac_ext
26745 LIBS=$ac_func_search_save_LIBS
26746 fi
26747 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26748 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26749 ac_res=$ac_cv_search_nanosleep
26750 if test "$ac_res" != no; then
26751   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26752
26753 fi
26754
26755           cat >conftest.$ac_ext <<_ACEOF
26756 /* confdefs.h.  */
26757 _ACEOF
26758 cat confdefs.h >>conftest.$ac_ext
26759 cat >>conftest.$ac_ext <<_ACEOF
26760 /* end confdefs.h.  */
26761
26762                #include <sys/types.h>
26763                #include <tcpd.h>
26764                int deny_severity = 0;
26765                int allow_severity = 0;
26766                struct request_info *req;
26767
26768 int
26769 main ()
26770 {
26771
26772                 hosts_access(req);
26773
26774   ;
26775   return 0;
26776 }
26777 _ACEOF
26778 rm -f conftest.$ac_objext conftest$ac_exeext
26779 if { (ac_try="$ac_link"
26780 case "(($ac_try" in
26781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26782   *) ac_try_echo=$ac_try;;
26783 esac
26784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26785   (eval "$ac_link") 2>conftest.er1
26786   ac_status=$?
26787   grep -v '^ *+' conftest.er1 >conftest.err
26788   rm -f conftest.er1
26789   cat conftest.err >&5
26790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791   (exit $ac_status); } && {
26792          test -z "$ac_c_werror_flag" ||
26793          test ! -s conftest.err
26794        } && test -s conftest$ac_exeext &&
26795        $as_test_x conftest$ac_exeext; then
26796
26797                  { echo "$as_me:$LINENO: result: yes" >&5
26798 echo "${ECHO_T}yes" >&6; }
26799
26800 cat >>confdefs.h <<\_ACEOF
26801 #define HAVE_LIBWRAP 1
26802 _ACEOF
26803
26804                  TCPW_MSG="yes"
26805                  LIBS="$saved_LIBS"
26806                  WRAPLIBS="-lwrap"
26807
26808 else
26809   echo "$as_me: failed program was:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26811
26812
26813                  LIBS="$saved_LIBS -lwrap -lnsl"
26814                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26815                  cat >conftest.$ac_ext <<_ACEOF
26816 /* confdefs.h.  */
26817 _ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h.  */
26821
26822                        #include <sys/types.h>
26823                        #include <tcpd.h>
26824                        int deny_severity = 0;
26825                        int allow_severity = 0;
26826                        struct request_info *req;
26827
26828 int
26829 main ()
26830 {
26831
26832                        hosts_access(req);
26833
26834   ;
26835   return 0;
26836 }
26837 _ACEOF
26838 rm -f conftest.$ac_objext conftest$ac_exeext
26839 if { (ac_try="$ac_link"
26840 case "(($ac_try" in
26841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26842   *) ac_try_echo=$ac_try;;
26843 esac
26844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26845   (eval "$ac_link") 2>conftest.er1
26846   ac_status=$?
26847   grep -v '^ *+' conftest.er1 >conftest.err
26848   rm -f conftest.er1
26849   cat conftest.err >&5
26850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); } && {
26852          test -z "$ac_c_werror_flag" ||
26853          test ! -s conftest.err
26854        } && test -s conftest$ac_exeext &&
26855        $as_test_x conftest$ac_exeext; then
26856
26857                       { echo "$as_me:$LINENO: result: yes" >&5
26858 echo "${ECHO_T}yes" >&6; }
26859
26860 cat >>confdefs.h <<\_ACEOF
26861 #define HAVE_LIBWRAP 1
26862 _ACEOF
26863
26864                       TCPW_MSG="yes"
26865                       LIBS="$saved_LIBS"
26866                       WRAPLIBS="-lwrap"
26867
26868 else
26869   echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26871
26872
26873                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26874 echo "$as_me: error: *** libwrap missing" >&2;}
26875    { (exit 1); exit 1; }; }
26876
26877
26878 fi
26879
26880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26881       conftest$ac_exeext conftest.$ac_ext
26882
26883
26884 fi
26885
26886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26887       conftest$ac_exeext conftest.$ac_ext
26888        fi
26889
26890
26891 fi
26892
26893
26894 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26895 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26896
26897 # Check whether --with-openssl was given.
26898 if test "${with_openssl+set}" = set; then
26899   withval=$with_openssl;
26900         with_openssl_directory=${withval}
26901
26902
26903 fi
26904
26905
26906 if test "x$with_openssl_directory" != "xno"; then
26907    OPENSSL_LIBS="-lssl -lcrypto"
26908    OPENSSL_INC=""
26909
26910    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26911       #
26912       # Make sure the $with_openssl_directory also makes sense
26913       #
26914       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26915          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26916          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26917       fi
26918    fi
26919
26920    saved_LIBS="${LIBS}"
26921    saved_CFLAGS="${CFLAGS}"
26922    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26923    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26924
26925    cat >conftest.$ac_ext <<_ACEOF
26926 /* confdefs.h.  */
26927 _ACEOF
26928 cat confdefs.h >>conftest.$ac_ext
26929 cat >>conftest.$ac_ext <<_ACEOF
26930 /* end confdefs.h.  */
26931
26932           #include <openssl/ssl.h>
26933
26934 int
26935 main ()
26936 {
26937
26938            CRYPTO_set_id_callback(NULL);
26939
26940   ;
26941   return 0;
26942 }
26943 _ACEOF
26944 rm -f conftest.$ac_objext conftest$ac_exeext
26945 if { (ac_try="$ac_link"
26946 case "(($ac_try" in
26947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948   *) ac_try_echo=$ac_try;;
26949 esac
26950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951   (eval "$ac_link") 2>conftest.er1
26952   ac_status=$?
26953   grep -v '^ *+' conftest.er1 >conftest.err
26954   rm -f conftest.er1
26955   cat conftest.err >&5
26956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957   (exit $ac_status); } && {
26958          test -z "$ac_c_werror_flag" ||
26959          test ! -s conftest.err
26960        } && test -s conftest$ac_exeext &&
26961        $as_test_x conftest$ac_exeext; then
26962
26963           support_tls="yes"
26964           support_crypto="yes"
26965
26966 else
26967   echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26969
26970
26971           support_tls="no"
26972
26973
26974 fi
26975
26976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26977       conftest$ac_exeext conftest.$ac_ext
26978
26979    cat >conftest.$ac_ext <<_ACEOF
26980 /* confdefs.h.  */
26981 _ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h.  */
26985
26986           #include <openssl/evp.h>
26987
26988 int
26989 main ()
26990 {
26991
26992           EVP_sha512();
26993
26994   ;
26995   return 0;
26996 }
26997 _ACEOF
26998 rm -f conftest.$ac_objext conftest$ac_exeext
26999 if { (ac_try="$ac_link"
27000 case "(($ac_try" in
27001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27002   *) ac_try_echo=$ac_try;;
27003 esac
27004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27005   (eval "$ac_link") 2>conftest.er1
27006   ac_status=$?
27007   grep -v '^ *+' conftest.er1 >conftest.err
27008   rm -f conftest.er1
27009   cat conftest.err >&5
27010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011   (exit $ac_status); } && {
27012          test -z "$ac_c_werror_flag" ||
27013          test ! -s conftest.err
27014        } && test -s conftest$ac_exeext &&
27015        $as_test_x conftest$ac_exeext; then
27016
27017           ac_cv_openssl_sha2="yes"
27018
27019 else
27020   echo "$as_me: failed program was:" >&5
27021 sed 's/^/| /' conftest.$ac_ext >&5
27022
27023
27024           ac_cv_openssl_sha2="no"
27025
27026
27027 fi
27028
27029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27030       conftest$ac_exeext conftest.$ac_ext
27031
27032                cat >conftest.$ac_ext <<_ACEOF
27033 /* confdefs.h.  */
27034 _ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h.  */
27038
27039           #include <openssl/evp.h>
27040
27041 int
27042 main ()
27043 {
27044
27045           EVP_aes_192_cbc();
27046
27047   ;
27048   return 0;
27049 }
27050 _ACEOF
27051 rm -f conftest.$ac_objext conftest$ac_exeext
27052 if { (ac_try="$ac_link"
27053 case "(($ac_try" in
27054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055   *) ac_try_echo=$ac_try;;
27056 esac
27057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27058   (eval "$ac_link") 2>conftest.er1
27059   ac_status=$?
27060   grep -v '^ *+' conftest.er1 >conftest.err
27061   rm -f conftest.er1
27062   cat conftest.err >&5
27063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064   (exit $ac_status); } && {
27065          test -z "$ac_c_werror_flag" ||
27066          test ! -s conftest.err
27067        } && test -s conftest$ac_exeext &&
27068        $as_test_x conftest$ac_exeext; then
27069
27070           ac_cv_openssl_export="no"
27071
27072 else
27073   echo "$as_me: failed program was:" >&5
27074 sed 's/^/| /' conftest.$ac_ext >&5
27075
27076
27077           ac_cv_openssl_export="yes"
27078
27079
27080 fi
27081
27082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27083       conftest$ac_exeext conftest.$ac_ext
27084
27085    LIBS="${saved_LIBS}"
27086    CFLAGS="${saved_CFLAGS}"
27087
27088    if test "$support_tls" = "yes"; then
27089
27090 cat >>confdefs.h <<\_ACEOF
27091 #define HAVE_OPENSSL 1
27092 _ACEOF
27093
27094
27095 cat >>confdefs.h <<\_ACEOF
27096 #define HAVE_TLS 1
27097 _ACEOF
27098
27099
27100 cat >>confdefs.h <<\_ACEOF
27101 #define HAVE_CRYPTO 1
27102 _ACEOF
27103
27104    fi
27105
27106    if test "$ac_cv_openssl_sha2" = "yes"; then
27107
27108 cat >>confdefs.h <<\_ACEOF
27109 #define HAVE_SHA2 1
27110 _ACEOF
27111
27112    fi
27113
27114    if test "$ac_cv_openssl_export" = "yes"; then
27115
27116 cat >>confdefs.h <<\_ACEOF
27117 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27118 _ACEOF
27119
27120    fi
27121 else
27122    support_tls="no"
27123    support_crypto="no"
27124    OPENSSL_LIBS=""
27125    OPENSSL_INC=""
27126 fi
27127
27128 { echo "$as_me:$LINENO: result: $support_tls" >&5
27129 echo "${ECHO_T}$support_tls" >&6; }
27130
27131
27132
27133 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27134 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27135 if test "${ac_cv_search_dlopen+set}" = set; then
27136   echo $ECHO_N "(cached) $ECHO_C" >&6
27137 else
27138   ac_func_search_save_LIBS=$LIBS
27139 cat >conftest.$ac_ext <<_ACEOF
27140 /* confdefs.h.  */
27141 _ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h.  */
27145
27146 /* Override any GCC internal prototype to avoid an error.
27147    Use char because int might match the return type of a GCC
27148    builtin and then its argument prototype would still apply.  */
27149 #ifdef __cplusplus
27150 extern "C"
27151 #endif
27152 char dlopen ();
27153 int
27154 main ()
27155 {
27156 return dlopen ();
27157   ;
27158   return 0;
27159 }
27160 _ACEOF
27161 for ac_lib in '' dl; do
27162   if test -z "$ac_lib"; then
27163     ac_res="none required"
27164   else
27165     ac_res=-l$ac_lib
27166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27167   fi
27168   rm -f conftest.$ac_objext conftest$ac_exeext
27169 if { (ac_try="$ac_link"
27170 case "(($ac_try" in
27171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27172   *) ac_try_echo=$ac_try;;
27173 esac
27174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27175   (eval "$ac_link") 2>conftest.er1
27176   ac_status=$?
27177   grep -v '^ *+' conftest.er1 >conftest.err
27178   rm -f conftest.er1
27179   cat conftest.err >&5
27180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181   (exit $ac_status); } && {
27182          test -z "$ac_c_werror_flag" ||
27183          test ! -s conftest.err
27184        } && test -s conftest$ac_exeext &&
27185        $as_test_x conftest$ac_exeext; then
27186   ac_cv_search_dlopen=$ac_res
27187 else
27188   echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.$ac_ext >&5
27190
27191
27192 fi
27193
27194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27195       conftest$ac_exeext
27196   if test "${ac_cv_search_dlopen+set}" = set; then
27197   break
27198 fi
27199 done
27200 if test "${ac_cv_search_dlopen+set}" = set; then
27201   :
27202 else
27203   ac_cv_search_dlopen=no
27204 fi
27205 rm conftest.$ac_ext
27206 LIBS=$ac_func_search_save_LIBS
27207 fi
27208 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27209 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27210 ac_res=$ac_cv_search_dlopen
27211 if test "$ac_res" != no; then
27212   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27213
27214 fi
27215
27216
27217 working_dir=`eval echo ${prefix}/var/bacula/working`
27218
27219 # Check whether --with-working-dir was given.
27220 if test "${with_working_dir+set}" = set; then
27221   withval=$with_working_dir;
27222        if test "x$withval" != "xno" ; then
27223          working_dir=$withval
27224        fi
27225
27226
27227 fi
27228
27229
27230
27231
27232 archive_dir=/tmp
27233
27234 # Check whether --with-archivedir was given.
27235 if test "${with_archivedir+set}" = set; then
27236   withval=$with_archivedir;
27237        if test "x$withval" != "xno" ; then
27238           archivedir=$withval
27239        fi
27240
27241
27242 fi
27243
27244
27245
27246
27247 scriptdir=`eval echo ${sysconfdir}`
27248
27249 # Check whether --with-scriptdir was given.
27250 if test "${with_scriptdir+set}" = set; then
27251   withval=$with_scriptdir;
27252        if test "x$withval" != "xno" ; then
27253           scriptdir=$withval
27254        fi
27255
27256
27257 fi
27258
27259
27260
27261
27262 # ------------------------------------------
27263 # Where to place plugindir (plugin files)
27264 # ------------------------------------------
27265 plugindir=`eval echo ${sysconfdir}`
27266
27267 # Check whether --with-plugindir was given.
27268 if test "${with_plugindir+set}" = set; then
27269   withval=$with_plugindir;
27270        if test "x$withval" != "xno" ; then
27271           plugindir=$withval
27272        fi
27273
27274
27275 fi
27276
27277
27278
27279
27280 dump_email=root@localhost
27281
27282 # Check whether --with-dump-email was given.
27283 if test "${with_dump_email+set}" = set; then
27284   withval=$with_dump_email;
27285        if test "x$withval" != "xno" ; then
27286           dump_email=$withval
27287        fi
27288
27289
27290 fi
27291
27292
27293
27294
27295 job_email=root@localhost
27296
27297 # Check whether --with-job-email was given.
27298 if test "${with_job_email+set}" = set; then
27299   withval=$with_job_email;
27300        if test "x$withval" != "xno" ; then
27301           job_email=$withval
27302        fi
27303
27304
27305 fi
27306
27307
27308
27309
27310 smtp_host=localhost
27311
27312 # Check whether --with-smtp_host was given.
27313 if test "${with_smtp_host+set}" = set; then
27314   withval=$with_smtp_host;
27315        if test "x$withval" != "xno" ; then
27316           smtp_host=$withval
27317        fi
27318
27319
27320 fi
27321
27322
27323
27324
27325 piddir=/var/run
27326
27327 # Check whether --with-pid-dir was given.
27328 if test "${with_pid_dir+set}" = set; then
27329   withval=$with_pid_dir;
27330        if test "x$withval" != "xno" ; then
27331           piddir=$withval
27332        fi
27333
27334
27335 fi
27336
27337
27338 cat >>confdefs.h <<_ACEOF
27339 #define _PATH_BACULA_PIDDIR "$piddir"
27340 _ACEOF
27341
27342
27343
27344 subsysdir=/var/run/subsys
27345 if test -d /var/run/subsys; then
27346    subsysdir=/var/run/subsys
27347 elif test -d /var/lock/subsys; then
27348    subsysdir=/var/lock/subsys
27349 else
27350    subsysdir=/var/run/subsys
27351 fi
27352
27353 # Check whether --with-subsys-dir was given.
27354 if test "${with_subsys_dir+set}" = set; then
27355   withval=$with_subsys_dir;
27356        if test "x$withval" != "xno" ; then
27357           subsysdir=$withval
27358        fi
27359
27360
27361 fi
27362
27363
27364
27365
27366 baseport=9101
27367
27368 # Check whether --with-baseport was given.
27369 if test "${with_baseport+set}" = set; then
27370   withval=$with_baseport;
27371        if test "x$withval" != "xno" ; then
27372           baseport=$withval
27373        fi
27374
27375
27376 fi
27377
27378
27379
27380 dir_port=`expr $baseport`
27381 fd_port=`expr $baseport + 1`
27382 sd_port=`expr $fd_port + 1`
27383
27384
27385
27386
27387
27388 dir_password=
27389
27390 # Check whether --with-dir-password was given.
27391 if test "${with_dir_password+set}" = set; then
27392   withval=$with_dir_password;
27393        if test "x$withval" != "xno" ; then
27394           dir_password=$withval
27395        fi
27396
27397
27398 fi
27399
27400
27401 if test "x$dir_password" = "x" ; then
27402    if test "x$OPENSSL" = "xnone" ; then
27403       key=`autoconf/randpass 33`
27404    else
27405       key=`openssl rand -base64 33`
27406    fi
27407    dir_password=$key
27408 fi
27409
27410 fd_password=
27411
27412 # Check whether --with-fd-password was given.
27413 if test "${with_fd_password+set}" = set; then
27414   withval=$with_fd_password;
27415        if test "x$withval" != "xno" ; then
27416           fd_password=$withval
27417        fi
27418
27419
27420 fi
27421
27422
27423 if test "x$fd_password" = "x" ; then
27424    if test "x$OPENSSL" = "xnone" ; then
27425       key=`autoconf/randpass 37`
27426    else
27427       key=`openssl rand -base64 33`
27428    fi
27429    fd_password=$key
27430 fi
27431
27432 sd_password=
27433
27434 # Check whether --with-sd-password was given.
27435 if test "${with_sd_password+set}" = set; then
27436   withval=$with_sd_password;
27437        if test "x$withval" != "xno" ; then
27438           sd_password=$withval
27439        fi
27440
27441
27442 fi
27443
27444
27445 if test "x$sd_password" = "x" ; then
27446    if test "x$OPENSSL" = "xnone" ; then
27447       key=`autoconf/randpass 41`
27448    else
27449       key=`openssl rand -base64 33`
27450    fi
27451    sd_password=$key
27452 fi
27453
27454 mon_dir_password=
27455
27456 # Check whether --with-mon-dir-password was given.
27457 if test "${with_mon_dir_password+set}" = set; then
27458   withval=$with_mon_dir_password;
27459        if test "x$withval" != "xno" ; then
27460           mon_dir_password=$withval
27461        fi
27462
27463
27464 fi
27465
27466
27467 if test "x$mon_dir_password" = "x" ; then
27468    if test "x$OPENSSL" = "xnone" ; then
27469       key=`autoconf/randpass 33`
27470    else
27471       key=`openssl rand -base64 33`
27472    fi
27473    mon_dir_password=$key
27474 fi
27475
27476 mon_fd_password=
27477
27478 # Check whether --with-mon-fd-password was given.
27479 if test "${with_mon_fd_password+set}" = set; then
27480   withval=$with_mon_fd_password;
27481        if test "x$withval" != "xno" ; then
27482           mon_fd_password=$withval
27483        fi
27484
27485
27486 fi
27487
27488
27489 if test "x$mon_fd_password" = "x" ; then
27490    if test "x$OPENSSL" = "xnone" ; then
27491       key=`autoconf/randpass 37`
27492    else
27493       key=`openssl rand -base64 33`
27494    fi
27495    mon_fd_password=$key
27496 fi
27497
27498 mon_sd_password=
27499
27500 # Check whether --with-mon-sd-password was given.
27501 if test "${with_mon_sd_password+set}" = set; then
27502   withval=$with_mon_sd_password;
27503        if test "x$withval" != "xno" ; then
27504           mon_sd_password=$withval
27505        fi
27506
27507
27508 fi
27509
27510
27511 if test "x$mon_sd_password" = "x" ; then
27512    if test "x$OPENSSL" = "xnone" ; then
27513       key=`autoconf/randpass 41`
27514    else
27515       key=`openssl rand -base64 33`
27516    fi
27517    mon_sd_password=$key
27518 fi
27519
27520
27521
27522
27523
27524
27525
27526
27527 db_name=bacula
27528
27529 # Check whether --with-db_name was given.
27530 if test "${with_db_name+set}" = set; then
27531   withval=$with_db_name;
27532        if test "x$withval" != "x" ; then
27533           db_name=$withval
27534        fi
27535
27536
27537 fi
27538
27539
27540
27541 db_user=bacula
27542
27543 # Check whether --with-db_user was given.
27544 if test "${with_db_user+set}" = set; then
27545   withval=$with_db_user;
27546        if test "x$withval" != "x" ; then
27547           db_user=$withval
27548        fi
27549
27550
27551 fi
27552
27553
27554
27555 db_password=
27556
27557 # Check whether --with-db_password was given.
27558 if test "${with_db_password+set}" = set; then
27559   withval=$with_db_password;
27560        if test "x$withval" != "x" ; then
27561           db_password=$withval
27562        fi
27563
27564
27565 fi
27566
27567
27568
27569 db_port=" "
27570
27571 # Check whether --with-db_port was given.
27572 if test "${with_db_port+set}" = set; then
27573   withval=$with_db_port;
27574        if test "x$withval" != "x" ; then
27575           db_port=$withval
27576        fi
27577
27578
27579 fi
27580
27581
27582
27583 #
27584 # Handle users and groups for each daemon
27585 #
27586 dir_user=
27587
27588 # Check whether --with-dir_user was given.
27589 if test "${with_dir_user+set}" = set; then
27590   withval=$with_dir_user;
27591        if test "x$withval" != "x" ; then
27592            dir_user=$withval
27593        fi
27594
27595
27596 fi
27597
27598
27599 dir_group=
27600
27601 # Check whether --with-dir_group was given.
27602 if test "${with_dir_group+set}" = set; then
27603   withval=$with_dir_group;
27604        if test "x$withval" != "x" ; then
27605           dir_group=$withval
27606        fi
27607
27608
27609 fi
27610
27611
27612 sd_user=
27613
27614 # Check whether --with-sd_user was given.
27615 if test "${with_sd_user+set}" = set; then
27616   withval=$with_sd_user;
27617        if test "x$withval" != "x" ; then
27618           sd_user=$withval
27619        fi
27620
27621
27622 fi
27623
27624
27625 sd_group=
27626
27627 # Check whether --with-sd_group was given.
27628 if test "${with_sd_group+set}" = set; then
27629   withval=$with_sd_group;
27630        if test "x$withval" != "x" ; then
27631           sd_group=$withval
27632        fi
27633
27634
27635 fi
27636
27637
27638 fd_user=
27639
27640 # Check whether --with-fd_user was given.
27641 if test "${with_fd_user+set}" = set; then
27642   withval=$with_fd_user;
27643        if test "x$withval" != "x" ; then
27644           fd_user=$withval
27645        fi
27646
27647
27648 fi
27649
27650
27651 fd_group=
27652
27653 # Check whether --with-fd_group was given.
27654 if test "${with_fd_group+set}" = set; then
27655   withval=$with_fd_group;
27656        if test "x$withval" != "x" ; then
27657           fd_group=$withval
27658        fi
27659
27660
27661 fi
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671 SBINPERM=0754
27672
27673 # Check whether --with-sbin-perm was given.
27674 if test "${with_sbin_perm+set}" = set; then
27675   withval=$with_sbin_perm;
27676        if test "x$withval" != "x" ; then
27677           SBINPERM=$withval
27678        fi
27679
27680
27681 fi
27682
27683
27684
27685
27686 SQL_LIB=
27687
27688 db_found=no
27689 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27690 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27691
27692 # Check whether --with-postgresql was given.
27693 if test "${with_postgresql+set}" = set; then
27694   withval=$with_postgresql;
27695   if test "$withval" != "no"; then
27696       if test "$db_found" = "yes"; then
27697           { echo "$as_me:$LINENO: result: error" >&5
27698 echo "${ECHO_T}error" >&6; }
27699           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27700 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27701    { (exit 1); exit 1; }; };
27702       fi
27703       if test "$withval" = "yes"; then
27704           PG_CONFIG=`which pg_config`
27705           if test -n "$PG_CONFIG";then
27706               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27707               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27708               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27709           elif test -f /usr/local/include/libpq-fe.h; then
27710               POSTGRESQL_INCDIR=/usr/local/include
27711               if test -d /usr/local/lib64; then
27712                  POSTGRESQL_LIBDIR=/usr/local/lib64
27713               else
27714                  POSTGRESQL_LIBDIR=/usr/local/lib
27715               fi
27716               POSTGRESQL_BINDIR=/usr/local/bin
27717           elif test -f /usr/include/libpq-fe.h; then
27718               POSTGRESQL_INCDIR=/usr/include
27719               if test -d /usr/lib64; then
27720                  POSTGRESQL_LIBDIR=/usr/lib64
27721               else
27722                  POSTGRESQL_LIBDIR=/usr/lib
27723               fi
27724               POSTGRESQL_BINDIR=/usr/bin
27725           elif test -f /usr/include/pgsql/libpq-fe.h; then
27726               POSTGRESQL_INCDIR=/usr/include/pgsql
27727               if test -d /usr/lib64/pgsql; then
27728                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27729               else
27730                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27731               fi
27732               POSTGRESQL_BINDIR=/usr/bin
27733           elif test -f /usr/include/postgresql/libpq-fe.h; then
27734               POSTGRESQL_INCDIR=/usr/include/postgresql
27735               if test -d /usr/lib64/postgresql; then
27736                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27737               else
27738                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27739               fi
27740               POSTGRESQL_BINDIR=/usr/bin
27741           else
27742               { echo "$as_me:$LINENO: result: no" >&5
27743 echo "${ECHO_T}no" >&6; }
27744               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27745 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27746    { (exit 1); exit 1; }; }
27747           fi
27748       elif test -f $withval/include/libpq-fe.h; then
27749           POSTGRESQL_INCDIR=$withval/include
27750           POSTGRESQL_LIBDIR=$withval/lib
27751           POSTGRESQL_BINDIR=$withval/bin
27752       elif test -f $withval/include/postgresql/libpq-fe.h; then
27753           POSTGRESQL_INCDIR=$withval/include/postgresql
27754      if test -d $withval/lib64; then
27755          POSTGRESQL_LIBDIR=$withval/lib64
27756      else
27757          POSTGRESQL_LIBDIR=$withval/lib
27758      fi
27759           POSTGRESQL_BINDIR=$withval/bin
27760       else
27761           { echo "$as_me:$LINENO: result: no" >&5
27762 echo "${ECHO_T}no" >&6; }
27763           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27764 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27765    { (exit 1); exit 1; }; }
27766       fi
27767       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27768       { echo "$as_me:$LINENO: checking for crypt" >&5
27769 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27770 if test "${ac_cv_func_crypt+set}" = set; then
27771   echo $ECHO_N "(cached) $ECHO_C" >&6
27772 else
27773   cat >conftest.$ac_ext <<_ACEOF
27774 /* confdefs.h.  */
27775 _ACEOF
27776 cat confdefs.h >>conftest.$ac_ext
27777 cat >>conftest.$ac_ext <<_ACEOF
27778 /* end confdefs.h.  */
27779 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27781 #define crypt innocuous_crypt
27782
27783 /* System header to define __stub macros and hopefully few prototypes,
27784     which can conflict with char crypt (); below.
27785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27786     <limits.h> exists even on freestanding compilers.  */
27787
27788 #ifdef __STDC__
27789 # include <limits.h>
27790 #else
27791 # include <assert.h>
27792 #endif
27793
27794 #undef crypt
27795
27796 /* Override any GCC internal prototype to avoid an error.
27797    Use char because int might match the return type of a GCC
27798    builtin and then its argument prototype would still apply.  */
27799 #ifdef __cplusplus
27800 extern "C"
27801 #endif
27802 char crypt ();
27803 /* The GNU C library defines this for functions which it implements
27804     to always fail with ENOSYS.  Some functions are actually named
27805     something starting with __ and the normal name is an alias.  */
27806 #if defined __stub_crypt || defined __stub___crypt
27807 choke me
27808 #endif
27809
27810 int
27811 main ()
27812 {
27813 return crypt ();
27814   ;
27815   return 0;
27816 }
27817 _ACEOF
27818 rm -f conftest.$ac_objext conftest$ac_exeext
27819 if { (ac_try="$ac_link"
27820 case "(($ac_try" in
27821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822   *) ac_try_echo=$ac_try;;
27823 esac
27824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825   (eval "$ac_link") 2>conftest.er1
27826   ac_status=$?
27827   grep -v '^ *+' conftest.er1 >conftest.err
27828   rm -f conftest.er1
27829   cat conftest.err >&5
27830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831   (exit $ac_status); } && {
27832          test -z "$ac_c_werror_flag" ||
27833          test ! -s conftest.err
27834        } && test -s conftest$ac_exeext &&
27835        $as_test_x conftest$ac_exeext; then
27836   ac_cv_func_crypt=yes
27837 else
27838   echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27840
27841         ac_cv_func_crypt=no
27842 fi
27843
27844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27845       conftest$ac_exeext conftest.$ac_ext
27846 fi
27847 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27848 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27849 if test $ac_cv_func_crypt = yes; then
27850   :
27851 else
27852   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27853 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27854 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27855   echo $ECHO_N "(cached) $ECHO_C" >&6
27856 else
27857   ac_check_lib_save_LIBS=$LIBS
27858 LIBS="-lcrypt  $LIBS"
27859 cat >conftest.$ac_ext <<_ACEOF
27860 /* confdefs.h.  */
27861 _ACEOF
27862 cat confdefs.h >>conftest.$ac_ext
27863 cat >>conftest.$ac_ext <<_ACEOF
27864 /* end confdefs.h.  */
27865
27866 /* Override any GCC internal prototype to avoid an error.
27867    Use char because int might match the return type of a GCC
27868    builtin and then its argument prototype would still apply.  */
27869 #ifdef __cplusplus
27870 extern "C"
27871 #endif
27872 char crypt ();
27873 int
27874 main ()
27875 {
27876 return crypt ();
27877   ;
27878   return 0;
27879 }
27880 _ACEOF
27881 rm -f conftest.$ac_objext conftest$ac_exeext
27882 if { (ac_try="$ac_link"
27883 case "(($ac_try" in
27884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885   *) ac_try_echo=$ac_try;;
27886 esac
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888   (eval "$ac_link") 2>conftest.er1
27889   ac_status=$?
27890   grep -v '^ *+' conftest.er1 >conftest.err
27891   rm -f conftest.er1
27892   cat conftest.err >&5
27893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894   (exit $ac_status); } && {
27895          test -z "$ac_c_werror_flag" ||
27896          test ! -s conftest.err
27897        } && test -s conftest$ac_exeext &&
27898        $as_test_x conftest$ac_exeext; then
27899   ac_cv_lib_crypt_crypt=yes
27900 else
27901   echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27903
27904         ac_cv_lib_crypt_crypt=no
27905 fi
27906
27907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27908       conftest$ac_exeext conftest.$ac_ext
27909 LIBS=$ac_check_lib_save_LIBS
27910 fi
27911 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27912 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27913 if test $ac_cv_lib_crypt_crypt = yes; then
27914   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27915 fi
27916
27917 fi
27918
27919       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27920       SQL_LFLAGS=$POSTGRESQL_LFLAGS
27921       SQL_BINDIR=$POSTGRESQL_BINDIR
27922       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27923
27924       cat >>confdefs.h <<\_ACEOF
27925 #define HAVE_POSTGRESQL 1
27926 _ACEOF
27927
27928       { echo "$as_me:$LINENO: result: yes" >&5
27929 echo "${ECHO_T}yes" >&6; }
27930       db_found=yes
27931       support_postgresql=yes
27932       db_type=PostgreSQL
27933       DB_TYPE=postgresql
27934   else
27935       { echo "$as_me:$LINENO: result: no" >&5
27936 echo "${ECHO_T}no" >&6; }
27937   fi
27938
27939 else
27940
27941   { echo "$as_me:$LINENO: result: no" >&5
27942 echo "${ECHO_T}no" >&6; }
27943
27944 fi
27945
27946
27947
27948
27949
27950
27951
27952
27953 db_found=no
27954 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27955 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27956
27957 # Check whether --with-mysql was given.
27958 if test "${with_mysql+set}" = set; then
27959   withval=$with_mysql;
27960   if test "$withval" != "no"; then
27961         if test "$withval" = "yes"; then
27962            if test -f /usr/local/mysql/include/mysql/mysql.h; then
27963                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
27964                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27965                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27966                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27967                    else
27968                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27969                    fi
27970                    MYSQL_BINDIR=/usr/local/mysql/bin
27971            elif test -f /usr/include/mysql/mysql.h; then
27972                    MYSQL_INCDIR=/usr/include/mysql
27973                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27974                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27975                            MYSQL_LIBDIR=/usr/lib64/mysql
27976                    elif test -f /usr/lib64/libmysqlclient_r.a \
27977                         -o -f /usr/lib64/libmysqlclient_r.so; then
27978                            MYSQL_LIBDIR=/usr/lib64
27979                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27980                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27981                            MYSQL_LIBDIR=/usr/lib/mysql
27982                    else
27983                            MYSQL_LIBDIR=/usr/lib
27984                    fi
27985                    MYSQL_BINDIR=/usr/bin
27986            elif test -f /usr/include/mysql.h; then
27987                    MYSQL_INCDIR=/usr/include
27988                    if test -f /usr/lib64/libmysqlclient_r.a \
27989                         -o -f /usr/lib64/libmysqlclient_r.so; then
27990                            MYSQL_LIBDIR=/usr/lib64
27991                    else
27992                            MYSQL_LIBDIR=/usr/lib
27993                    fi
27994                    MYSQL_BINDIR=/usr/bin
27995            elif test -f /usr/local/include/mysql/mysql.h; then
27996                    MYSQL_INCDIR=/usr/local/include/mysql
27997                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27998                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27999                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28000                    else
28001                            MYSQL_LIBDIR=/usr/local/lib/mysql
28002                    fi
28003                    MYSQL_BINDIR=/usr/local/bin
28004            elif test -f /usr/local/include/mysql.h; then
28005                    MYSQL_INCDIR=/usr/local/include
28006                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28007                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28008                            MYSQL_LIBDIR=/usr/local/lib64
28009                    else
28010                            MYSQL_LIBDIR=/usr/local/lib
28011                    fi
28012                    MYSQL_BINDIR=/usr/local/bin
28013            else
28014               { echo "$as_me:$LINENO: result: no" >&5
28015 echo "${ECHO_T}no" >&6; }
28016               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28017 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28018    { (exit 1); exit 1; }; }
28019            fi
28020         else
28021            if test -f $withval/include/mysql/mysql.h; then
28022               MYSQL_INCDIR=$withval/include/mysql
28023               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28024                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28025                  MYSQL_LIBDIR=$withval/lib64/mysql
28026               elif test -f $withval/lib64/libmysqlclient_r.a \
28027                    -o -f $withval/lib64/libmysqlclient_r.so; then
28028                  MYSQL_LIBDIR=$withval/lib64
28029               elif test -f $withval/lib/libmysqlclient_r.a \
28030                    -o -f $withval/lib/libmysqlclient_r.so; then
28031                  MYSQL_LIBDIR=$withval/lib
28032               else
28033                  MYSQL_LIBDIR=$withval/lib/mysql
28034               fi
28035               MYSQL_BINDIR=$withval/bin
28036            elif test -f $withval/include/mysql.h; then
28037               MYSQL_INCDIR=$withval/include
28038               if test -f $withval/lib64/libmysqlclient_r.a \
28039                    -o -f $withval/lib64/libmysqlclient_r.so; then
28040                  MYSQL_LIBDIR=$withval/lib64
28041               else
28042                  MYSQL_LIBDIR=$withval/lib
28043               fi
28044               MYSQL_BINDIR=$withval/bin
28045            else
28046               { echo "$as_me:$LINENO: result: no" >&5
28047 echo "${ECHO_T}no" >&6; }
28048               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28049 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28050    { (exit 1); exit 1; }; }
28051            fi
28052         fi
28053     SQL_INCLUDE=-I$MYSQL_INCDIR
28054     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28055          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28056        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28057        cat >>confdefs.h <<\_ACEOF
28058 #define HAVE_THREAD_SAFE_MYSQL 1
28059 _ACEOF
28060
28061     fi
28062     SQL_BINDIR=$MYSQL_BINDIR
28063     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28064
28065     cat >>confdefs.h <<\_ACEOF
28066 #define HAVE_MYSQL 1
28067 _ACEOF
28068
28069     { echo "$as_me:$LINENO: result: yes" >&5
28070 echo "${ECHO_T}yes" >&6; }
28071     db_found=yes
28072     support_mysql=yes
28073     db_type=MySQL
28074     DB_TYPE=mysql
28075
28076   else
28077         { echo "$as_me:$LINENO: result: no" >&5
28078 echo "${ECHO_T}no" >&6; }
28079   fi
28080
28081
28082 fi
28083
28084
28085
28086 # Check whether --with-embedded-mysql was given.
28087 if test "${with_embedded_mysql+set}" = set; then
28088   withval=$with_embedded_mysql;
28089   if test "$withval" != "no"; then
28090         if test "$withval" = "yes"; then
28091                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28092                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28093                         if test -d /usr/local/mysql/lib64/mysql; then
28094                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28095                         else
28096                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28097                         fi
28098                         MYSQL_BINDIR=/usr/local/mysql/bin
28099                 elif test -f /usr/include/mysql/mysql.h; then
28100                         MYSQL_INCDIR=/usr/include/mysql
28101                         if test -d /usr/lib64/mysql; then
28102                                 MYSQL_LIBDIR=/usr/lib64/mysql
28103                         else
28104                                 MYSQL_LIBDIR=/usr/lib/mysql
28105                         fi
28106                         MYSQL_BINDIR=/usr/bin
28107                 elif test -f /usr/include/mysql.h; then
28108                         MYSQL_INCDIR=/usr/include
28109                         if test -d /usr/lib64; then
28110                                 MYSQL_LIBDIR=/usr/lib64
28111                         else
28112                                 MYSQL_LIBDIR=/usr/lib
28113                         fi
28114                         MYSQL_BINDIR=/usr/bin
28115                 elif test -f /usr/local/include/mysql/mysql.h; then
28116                         MYSQL_INCDIR=/usr/local/include/mysql
28117                         if test -d /usr/local/lib64/mysql; then
28118                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28119                         else
28120                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28121                         fi
28122                         MYSQL_BINDIR=/usr/local/bin
28123                 elif test -f /usr/local/include/mysql.h; then
28124                         MYSQL_INCDIR=/usr/local/include
28125                         if test -d /usr/local/lib64; then
28126                                 MYSQL_LIBDIR=/usr/local/lib64
28127                         else
28128                                 MYSQL_LIBDIR=/usr/local/lib
28129                         fi
28130                         MYSQL_BINDIR=/usr/local/bin
28131                 else
28132                    { echo "$as_me:$LINENO: result: no" >&5
28133 echo "${ECHO_T}no" >&6; }
28134                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28135 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28136    { (exit 1); exit 1; }; }
28137                 fi
28138         else
28139                 if test -f $withval/include/mysql/mysql.h; then
28140                         MYSQL_INCDIR=$withval/include/mysql
28141                         if test -d $withval/lib64/mysql; then
28142                                 MYSQL_LIBDIR=$withval/lib64/mysql
28143                         else
28144                                 MYSQL_LIBDIR=$withval/lib/mysql
28145                         fi
28146                         MYSQL_BINDIR=$withval/bin
28147                 elif test -f $withval/include/mysql.h; then
28148                         MYSQL_INCDIR=$withval/include
28149                         if test -d $withval/lib64; then
28150                                 MYSQL_LIBDIR=$withval/lib64
28151                         else
28152                                 MYSQL_LIBDIR=$withval/lib
28153                         fi
28154                         MYSQL_BINDIR=$withval/bin
28155                 else
28156                    { echo "$as_me:$LINENO: result: no" >&5
28157 echo "${ECHO_T}no" >&6; }
28158                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28159 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28160    { (exit 1); exit 1; }; }
28161                 fi
28162         fi
28163     SQL_INCLUDE=-I$MYSQL_INCDIR
28164     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28165     SQL_BINDIR=$MYSQL_BINDIR
28166     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28167
28168     cat >>confdefs.h <<\_ACEOF
28169 #define HAVE_MYSQL 1
28170 _ACEOF
28171
28172     cat >>confdefs.h <<\_ACEOF
28173 #define HAVE_EMBEDDED_MYSQL 1
28174 _ACEOF
28175
28176     { echo "$as_me:$LINENO: result: yes" >&5
28177 echo "${ECHO_T}yes" >&6; }
28178     db_found=yes
28179     support_mysql=yes
28180     db_type=MySQL
28181     DB_TYPE=mysql
28182
28183   else
28184         { echo "$as_me:$LINENO: result: no" >&5
28185 echo "${ECHO_T}no" >&6; }
28186   fi
28187
28188
28189 fi
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200 db_found=no
28201 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28202 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28203
28204 # Check whether --with-sqlite3 was given.
28205 if test "${with_sqlite3+set}" = set; then
28206   withval=$with_sqlite3;
28207   if test "$withval" != "no"; then
28208      if test "$withval" = "yes"; then
28209         if test -f /usr/local/include/sqlite3.h; then
28210            SQLITE_INCDIR=/usr/local/include
28211            if test -d /usr/local/lib64; then
28212               SQLITE_LIBDIR=/usr/local/lib64
28213            else
28214               SQLITE_LIBDIR=/usr/local/lib
28215            fi
28216            SQLITE_BINDIR=/usr/local/bin
28217         elif test -f /usr/include/sqlite3.h; then
28218            SQLITE_INCDIR=/usr/include
28219            if test -d /usr/lib64; then
28220               SQLITE_LIBDIR=/usr/lib64
28221            else
28222               SQLITE_LIBDIR=/usr/lib
28223            fi
28224            SQLITE_BINDIR=/usr/bin
28225         elif test -f $prefix/include/sqlite3.h; then
28226            SQLITE_INCDIR=$prefix/include
28227            if test -d $prefix/lib64; then
28228               SQLITE_LIBDIR=$prefix/lib64
28229            else
28230               SQLITE_LIBDIR=$prefix/lib
28231            fi
28232            SQLITE_BINDIR=$prefix/bin
28233         else
28234            { echo "$as_me:$LINENO: result: no" >&5
28235 echo "${ECHO_T}no" >&6; }
28236            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28237 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28238    { (exit 1); exit 1; }; }
28239         fi
28240      else
28241         if test -f $withval/sqlite3.h; then
28242            SQLITE_INCDIR=$withval
28243            SQLITE_LIBDIR=$withval
28244            SQLITE_BINDIR=$withval
28245         elif test -f $withval/include/sqlite3.h; then
28246            SQLITE_INCDIR=$withval/include
28247            if test -d $withval/lib64; then
28248               SQLITE_LIBDIR=$withval/lib64
28249            else
28250               SQLITE_LIBDIR=$withval/lib
28251            fi
28252            SQLITE_BINDIR=$withval/bin
28253         else
28254            { echo "$as_me:$LINENO: result: no" >&5
28255 echo "${ECHO_T}no" >&6; }
28256            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28257 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28258    { (exit 1); exit 1; }; }
28259         fi
28260      fi
28261      SQL_INCLUDE=-I$SQLITE_INCDIR
28262      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28263      SQL_BINDIR=$SQLITE_BINDIR
28264      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28265
28266      cat >>confdefs.h <<\_ACEOF
28267 #define HAVE_SQLITE3 1
28268 _ACEOF
28269
28270      { echo "$as_me:$LINENO: result: yes" >&5
28271 echo "${ECHO_T}yes" >&6; }
28272      db_found=yes
28273      support_sqlite3=yes
28274      db_type=SQLite3
28275      DB_TYPE=sqlite3
28276
28277   else
28278      { echo "$as_me:$LINENO: result: no" >&5
28279 echo "${ECHO_T}no" >&6; }
28280   fi
28281
28282 else
28283
28284   { echo "$as_me:$LINENO: result: no" >&5
28285 echo "${ECHO_T}no" >&6; }
28286
28287 fi
28288
28289
28290
28291
28292
28293
28294
28295
28296 db_found=no
28297 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28298 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28299
28300 # Check whether --with-sqlite was given.
28301 if test "${with_sqlite+set}" = set; then
28302   withval=$with_sqlite;
28303   if test "$withval" != "no"; then
28304      if test "$withval" = "yes"; then
28305         if test -f /usr/local/include/sqlite.h; then
28306            SQLITE_INCDIR=/usr/local/include
28307            if test -d /usr/local/lib64; then
28308               SQLITE_LIBDIR=/usr/local/lib64
28309            else
28310               SQLITE_LIBDIR=/usr/local/lib
28311            fi
28312            SQLITE_BINDIR=/usr/local/bin
28313         elif test -f /usr/include/sqlite.h; then
28314            SQLITE_INCDIR=/usr/include
28315            if test -d /usr/lib64; then
28316               SQLITE_LIBDIR=/usr/lib64
28317            else
28318               SQLITE_LIBDIR=/usr/lib
28319            fi
28320            SQLITE_BINDIR=/usr/bin
28321         elif test -f $prefix/include/sqlite.h; then
28322            SQLITE_INCDIR=$prefix/include
28323            if test -d $prefix/lib64; then
28324               SQLITE_LIBDIR=$prefix/lib64
28325            else
28326               SQLITE_LIBDIR=$prefix/lib
28327            fi
28328            SQLITE_BINDIR=$prefix/bin
28329         else
28330            { echo "$as_me:$LINENO: result: no" >&5
28331 echo "${ECHO_T}no" >&6; }
28332            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28333 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28334    { (exit 1); exit 1; }; }
28335         fi
28336      else
28337         if test -f $withval/sqlite.h; then
28338            SQLITE_INCDIR=$withval
28339            SQLITE_LIBDIR=$withval
28340            SQLITE_BINDIR=$withval
28341         elif test -f $withval/include/sqlite.h; then
28342            SQLITE_INCDIR=$withval/include
28343            if test -d $withval/lib64; then
28344               SQLITE_LIBDIR=$withval/lib64
28345            else
28346               SQLITE_LIBDIR=$withval/lib
28347            fi
28348            SQLITE_BINDIR=$withval/bin
28349         else
28350            { echo "$as_me:$LINENO: result: no" >&5
28351 echo "${ECHO_T}no" >&6; }
28352            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28353 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28354    { (exit 1); exit 1; }; }
28355         fi
28356      fi
28357      SQL_INCLUDE=-I$SQLITE_INCDIR
28358      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28359      SQL_BINDIR=$SQLITE_BINDIR
28360      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28361
28362      cat >>confdefs.h <<\_ACEOF
28363 #define HAVE_SQLITE 1
28364 _ACEOF
28365
28366      { echo "$as_me:$LINENO: result: yes" >&5
28367 echo "${ECHO_T}yes" >&6; }
28368      db_found=yes
28369      support_sqlite=yes
28370      db_type=SQLite
28371      DB_TYPE=sqlite
28372
28373   else
28374      { echo "$as_me:$LINENO: result: no" >&5
28375 echo "${ECHO_T}no" >&6; }
28376   fi
28377
28378 else
28379
28380   { echo "$as_me:$LINENO: result: no" >&5
28381 echo "${ECHO_T}no" >&6; }
28382
28383 fi
28384
28385
28386
28387
28388
28389
28390
28391
28392 db_found=no
28393 { echo "$as_me:$LINENO: checking for DBI support" >&5
28394 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28395
28396 # Check whether --with-dbi was given.
28397 if test "${with_dbi+set}" = set; then
28398   withval=$with_dbi;
28399   if test "$withval" != "no"; then
28400      if test "$withval" = "yes"; then
28401         if test -f /usr/local/include/dbi/dbi.h; then
28402            DBI_INCDIR=/usr/local/dbi/include
28403            if test -d /usr/local/lib64; then
28404               DBI_LIBDIR=/usr/local/lib64
28405            else
28406               DBI_LIBDIR=/usr/local/lib
28407            fi
28408            DBI_BINDIR=/usr/local/bin
28409         elif test -f /usr/include/dbi/dbi.h; then
28410            DBI_INCDIR=/usr/include
28411            if test -d /usr/lib64; then
28412               DBI_LIBDIR=/usr/lib64
28413            else
28414               DBI_LIBDIR=/usr/lib
28415            fi
28416            DBI_BINDIR=/usr/bin
28417         elif test -f $prefix/include/dbi/dbi.h; then
28418            DBI_INCDIR=$prefix/include
28419            if test -d $prefix/lib64; then
28420               DBI_LIBDIR=$prefix/lib64
28421            else
28422               DBI_LIBDIR=$prefix/lib
28423            fi
28424            DBI_BINDIR=$prefix/bin
28425         else
28426            { echo "$as_me:$LINENO: result: no" >&5
28427 echo "${ECHO_T}no" >&6; }
28428            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28429 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28430    { (exit 1); exit 1; }; }
28431         fi
28432         if test -d /usr/local/lib/dbd; then
28433            DRIVERDIR=/usr/local/lib/dbd
28434            if test -d /usr/local/lib64/dbd; then
28435               DRIVERDIR=/usr/local/lib64/dbd
28436            else
28437               DRIVERDIR=/usr/local/lib/dbd
28438            fi
28439         elif test -d /usr/lib/dbd; then
28440            DRIVERDIR=/usr/lib/dbd
28441            if test -d /usr/lib64/dbd; then
28442               DRIVERDIR=/usr/lib64/dbd
28443            else
28444               DRIVERDIR=/usr/lib/dbd
28445            fi
28446         elif test -d $prefix/lib/dbd; then
28447            if test -d $prefix/lib64/dbd; then
28448               DRIVERDIR=$prefix/lib64/dbd
28449            else
28450               DRIVERDIR=$prefix/lib/dbd
28451            fi
28452         else
28453            { echo "$as_me:$LINENO: result: no" >&5
28454 echo "${ECHO_T}no" >&6; }
28455            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28456 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28457    { (exit 1); exit 1; }; }
28458         fi
28459      else
28460         if test -f $withval/dbi.h; then
28461            DBI_INCDIR=$withval
28462            DBI_LIBDIR=$withval
28463            DBI_BINDIR=$withval
28464         elif test -f $withval/include/dbi/dbi.h; then
28465            DBI_INCDIR=$withval/include
28466            if test -d $withval/lib64; then
28467               DBI_LIBDIR=$withval/lib64
28468            else
28469               DBI_LIBDIR=$withval/lib
28470            fi
28471            DBI_BINDIR=$withval/bin
28472         else
28473            { echo "$as_me:$LINENO: result: no" >&5
28474 echo "${ECHO_T}no" >&6; }
28475            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28476 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28477    { (exit 1); exit 1; }; }
28478         fi
28479         if test -d $withval/dbd; then
28480            DRIVERDIR=$withval/dbd
28481         elif test -d $withval/lib/; then
28482            if test -d $withval/lib64/dbd; then
28483               DRIVERDIR=$withval/lib64/dbd
28484            else
28485               DRIVERDIR=$withval/lib/dbd
28486            fi
28487         else
28488            { echo "$as_me:$LINENO: result: no" >&5
28489 echo "${ECHO_T}no" >&6; }
28490            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28491 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28492    { (exit 1); exit 1; }; }
28493         fi
28494      fi
28495      SQL_INCLUDE=-I$DBI_INCDIR
28496      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28497      SQL_BINDIR=$DBI_BINDIR
28498      SQL_LIB=$DBI_LIBDIR/libdbi.a
28499      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28500
28501
28502 cat >>confdefs.h <<\_ACEOF
28503 #define HAVE_DBI 1
28504 _ACEOF
28505
28506      { echo "$as_me:$LINENO: result: yes" >&5
28507 echo "${ECHO_T}yes" >&6; }
28508      db_found=yes
28509      support_dbi=yes
28510      db_type=DBI
28511      DB_TYPE=dbi
28512      uncomment_dbi=" "
28513
28514   else
28515      { echo "$as_me:$LINENO: result: no" >&5
28516 echo "${ECHO_T}no" >&6; }
28517   fi
28518
28519 else
28520
28521   { echo "$as_me:$LINENO: result: no" >&5
28522 echo "${ECHO_T}no" >&6; }
28523
28524 fi
28525
28526
28527
28528
28529
28530
28531
28532
28533
28534
28535 db_found=no
28536 db_prog=no
28537 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28538 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28539
28540 # Check whether --with-dbi-driver was given.
28541 if test "${with_dbi_driver+set}" = set; then
28542   withval=$with_dbi_driver;
28543   if test "$withval" != "no"; then
28544      case $withval in
28545         "mysql")
28546            db_prog="mysql"
28547            if test -f /usr/local/mysql/bin/mysql; then
28548               SQL_BINDIR=/usr/local/mysql/bin
28549               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28550                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28551                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28552               else
28553                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28554               fi
28555            elif test -f /usr/bin/mysql; then
28556               SQL_BINDIR=/usr/bin
28557               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28558                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28559                   SQL_LIBDIR=/usr/lib64/mysql
28560               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28561                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28562                   SQL_LIBDIR=/usr/lib/mysql
28563               else
28564                   SQL_LIBDIR=/usr/lib
28565               fi
28566            elif test -f /usr/local/bin/mysql; then
28567               SQL_BINDIR=/usr/local/bin
28568               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28569                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28570                   SQL_LIBDIR=/usr/local/lib64/mysql
28571               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28572                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28573                   SQL_LIBDIR=/usr/local/lib/mysql
28574               else
28575                   SQL_LIBDIR=/usr/local/lib
28576               fi
28577            elif test -f $withval/bin/mysql; then
28578               SQL_BINDIR=$withval/bin
28579               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28580                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28581                   SQL_LIBDIR=$withval/lib64/mysql
28582               elif test -f $withval/lib64/libmysqlclient_r.a \
28583                   -o -f $withval/lib64/libmysqlclient_r.so; then
28584                   SQL_LIBDIR=$withval/lib64
28585               elif test -f $withval/lib/libmysqlclient_r.a \
28586                   -o -f $withval/lib/libmysqlclient_r.so; then
28587                   SQL_LIBDIR=$withval/lib/
28588               else
28589                   SQL_LIBDIR=$withval/lib/mysql
28590               fi
28591            else
28592               { echo "$as_me:$LINENO: result: no" >&5
28593 echo "${ECHO_T}no" >&6; }
28594               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28595 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28596    { (exit 1); exit 1; }; }
28597            fi
28598            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28599         ;;
28600         "postgresql")
28601            db_prog="postgresql"
28602            PG_CONFIG=`which pg_config`
28603            if test -n "$PG_CONFIG"; then
28604               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28605               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28606            elif test -f /usr/local/bin/psql; then
28607               SQL_BINDIR=/usr/local/bin
28608               if test -d /usr/local/lib64; then
28609                  SQL_LIBDIR=/usr/local/lib64
28610               else
28611                  SQL_LIBDIR=/usr/local/lib
28612               fi
28613            elif test -f /usr/bin/psql; then
28614               SQL_BINDIR=/usr/local/bin
28615               if test -d /usr/lib64/postgresql; then
28616                  SQL_LIBDIR=/usr/lib64/postgresql
28617               elif test -d /usr/lib/postgresql; then
28618                  SQL_LIBDIR=/usr/lib/postgresql
28619               elif test -d /usr/lib64; then
28620                  SQL_LIBDIR=/usr/lib64
28621               else
28622                  SQL_LIBDIR=/usr/lib
28623               fi
28624            elif test -f $withval/bin/psql; then
28625               SQL_BINDIR=$withval/bin
28626               if test -d $withval/lib64; then
28627                  SQL_LIBDIR=$withval/lib64
28628               else
28629                  SQL_LIBDIR=$withval/lib
28630               fi
28631            else
28632               { echo "$as_me:$LINENO: result: no" >&5
28633 echo "${ECHO_T}no" >&6; }
28634               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28635 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28636    { (exit 1); exit 1; }; }
28637            fi
28638            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28639         ;;
28640         "sqlite")
28641            db_prog="sqlite"
28642            if test -f /usr/local/bin/sqlite; then
28643               SQL_BINDIR=/usr/local/bin
28644               if test -d /usr/local/lib64; then
28645                  SQL_LIBDIR=/usr/local/lib64
28646               else
28647                  SQL_LIBDIR=/usr/local/lib
28648               fi
28649            elif test -f /usr/bin/sqlite; then
28650               SQL_BINDIR=/usr/bin
28651               if test -d /usr/lib64; then
28652                  SQL_LIBDIR=/usr/lib64
28653               else
28654                  SQL_LIBDIR=/usr/lib
28655               fi
28656            elif test -f $withval/bin/sqlite; then
28657               SQL_BINDIR=$withval/bin
28658               if test -d $withval/lib64; then
28659                  SQL_LIBDIR=$withval/lib64
28660               else
28661                  SQL_LIBDIR=$withval/lib
28662               fi
28663            else
28664               { echo "$as_me:$LINENO: result: no" >&5
28665 echo "${ECHO_T}no" >&6; }
28666               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28667 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28668    { (exit 1); exit 1; }; }
28669            fi
28670            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28671         ;;
28672         "sqlite3")
28673            db_prog="sqlite3"
28674            if test -f /usr/local/bin/sqlite3; then
28675               SQL_BINDIR=/usr/local/bin
28676               if test -d /usr/local/lib64; then
28677                  SQL_LIBDIR=/usr/local/lib64
28678               else
28679                  SQL_LIBDIR=/usr/local/lib
28680               fi
28681            elif test -f /usr/bin/sqlite3; then
28682               SQL_BINDIR=/usr/bin
28683               if test -d /usr/lib64; then
28684                  SQL_LIBDIR=/usr/lib64
28685               else
28686                  SQL_LIBDIR=/usr/lib
28687               fi
28688            elif test -f $withval/bin/sqlite3; then
28689               SQL_BINDIR=$withval/bin
28690               if test -d $withval/lib64; then
28691                  SQL_LIBDIR=$withval/lib64
28692               else
28693                  SQL_LIBDIR=$withval/lib
28694               fi
28695            else
28696               { echo "$as_me:$LINENO: result: no" >&5
28697 echo "${ECHO_T}no" >&6; }
28698               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28699 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28700    { (exit 1); exit 1; }; }
28701            fi
28702            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28703         ;;
28704         *)
28705            { echo "$as_me:$LINENO: result: no" >&5
28706 echo "${ECHO_T}no" >&6; }
28707            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28708 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28709    { (exit 1); exit 1; }; }
28710         ;;
28711      esac
28712
28713      { echo "$as_me:$LINENO: result: yes" >&5
28714 echo "${ECHO_T}yes" >&6; }
28715      DB_PROG=$db_prog
28716   else
28717      { echo "$as_me:$LINENO: result: no" >&5
28718 echo "${ECHO_T}no" >&6; }
28719   fi
28720
28721 else
28722
28723   { echo "$as_me:$LINENO: result: no" >&5
28724 echo "${ECHO_T}no" >&6; }
28725
28726 fi
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736
28737 support_batch_insert=no
28738 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28739 pkg=$?
28740 if test $pkg = 0; then
28741    support_batch_insert=yes
28742    # Check whether --enable-batch-insert was given.
28743 if test "${enable_batch_insert+set}" = set; then
28744   enableval=$enable_batch_insert;
28745           if test x$enableval = xno; then
28746              support_batch_insert=no
28747           else
28748              support_batch_insert=yes
28749           fi
28750
28751
28752 fi
28753
28754 fi
28755
28756 if test x$DB_TYPE = xpostgresql; then
28757    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28758    pkg=$?
28759    if test $pkg != 0; then
28760       support_batch_insert=no
28761    fi
28762 fi
28763
28764 if test x$DB_TYPE = xdbi; then
28765    DB_TYPE=$DB_PROG
28766    db_type=$DB_PROG
28767    pkg=1
28768       if test $DB_PROG = postgresql; then
28769       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28770       pkg=$?
28771    fi
28772
28773    if test $DB_PROG = mysql; then
28774       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28775       pkg=$?
28776    fi
28777
28778    if test $DB_PROG = sqlite3; then
28779       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28780       pkg=$?
28781    fi
28782
28783    if test $pkg = 0; then
28784       # Check whether --enable-batch-insert was given.
28785 if test "${enable_batch_insert+set}" = set; then
28786   enableval=$enable_batch_insert;
28787              if test x$enableval = xno; then
28788                 support_batch_insert=no
28789              else
28790                 support_batch_insert=yes
28791              fi
28792
28793
28794 fi
28795
28796    fi
28797 else
28798       uncomment_dbi="#"
28799 fi
28800
28801
28802
28803 if test $support_batch_insert = yes ; then
28804
28805 cat >>confdefs.h <<\_ACEOF
28806 #define HAVE_BATCH_FILE_INSERT 1
28807 _ACEOF
28808
28809 fi
28810
28811 cat >>confdefs.h <<\_ACEOF
28812 #define PROTOTYPES 1
28813 _ACEOF
28814
28815
28816 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28817    if test -z "$CCOPTS"; then
28818       CCOPTS='-g -O2 -Wall'
28819    fi
28820    CFLAGS="$CCOPTS"
28821 fi
28822
28823
28824
28825 largefile_support="no"
28826
28827    # Check whether --enable-largefile was given.
28828 if test "${enable_largefile+set}" = set; then
28829   enableval=$enable_largefile;
28830 fi
28831
28832    if test "$enable_largefile" != no; then
28833      if test -n "$ac_tool_prefix"; then
28834   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28835 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28838 if test "${ac_cv_prog_GETCONF+set}" = set; then
28839   echo $ECHO_N "(cached) $ECHO_C" >&6
28840 else
28841   if test -n "$GETCONF"; then
28842   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28843 else
28844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28845 for as_dir in $PATH
28846 do
28847   IFS=$as_save_IFS
28848   test -z "$as_dir" && as_dir=.
28849   for ac_exec_ext in '' $ac_executable_extensions; do
28850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28851     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28853     break 2
28854   fi
28855 done
28856 done
28857 IFS=$as_save_IFS
28858
28859 fi
28860 fi
28861 GETCONF=$ac_cv_prog_GETCONF
28862 if test -n "$GETCONF"; then
28863   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28864 echo "${ECHO_T}$GETCONF" >&6; }
28865 else
28866   { echo "$as_me:$LINENO: result: no" >&5
28867 echo "${ECHO_T}no" >&6; }
28868 fi
28869
28870
28871 fi
28872 if test -z "$ac_cv_prog_GETCONF"; then
28873   ac_ct_GETCONF=$GETCONF
28874   # Extract the first word of "getconf", so it can be a program name with args.
28875 set dummy getconf; ac_word=$2
28876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28878 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28879   echo $ECHO_N "(cached) $ECHO_C" >&6
28880 else
28881   if test -n "$ac_ct_GETCONF"; then
28882   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28883 else
28884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28885 for as_dir in $PATH
28886 do
28887   IFS=$as_save_IFS
28888   test -z "$as_dir" && as_dir=.
28889   for ac_exec_ext in '' $ac_executable_extensions; do
28890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28891     ac_cv_prog_ac_ct_GETCONF="getconf"
28892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28893     break 2
28894   fi
28895 done
28896 done
28897 IFS=$as_save_IFS
28898
28899 fi
28900 fi
28901 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28902 if test -n "$ac_ct_GETCONF"; then
28903   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28904 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28905 else
28906   { echo "$as_me:$LINENO: result: no" >&5
28907 echo "${ECHO_T}no" >&6; }
28908 fi
28909
28910   if test "x$ac_ct_GETCONF" = x; then
28911     GETCONF=""
28912   else
28913     case $cross_compiling:$ac_tool_warned in
28914 yes:)
28915 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28916 whose name does not start with the host triplet.  If you think this
28917 configuration is useful to you, please write to autoconf@gnu.org." >&5
28918 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28919 whose name does not start with the host triplet.  If you think this
28920 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28921 ac_tool_warned=yes ;;
28922 esac
28923     GETCONF=$ac_ct_GETCONF
28924   fi
28925 else
28926   GETCONF="$ac_cv_prog_GETCONF"
28927 fi
28928
28929      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28930 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28931 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28932   echo $ECHO_N "(cached) $ECHO_C" >&6
28933 else
28934   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28935         ac_cv_sys_largefile_CFLAGS=no
28936         case "$host_os" in
28937            # IRIX 6.2 and later require cc -n32.
28938            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28939              if test "$GCC" != yes; then
28940                ac_cv_sys_largefile_CFLAGS=-n32
28941              fi
28942              ac_save_CC="$CC"
28943              CC="$CC $ac_cv_sys_largefile_CFLAGS"
28944              cat >conftest.$ac_ext <<_ACEOF
28945 /* confdefs.h.  */
28946 _ACEOF
28947 cat confdefs.h >>conftest.$ac_ext
28948 cat >>conftest.$ac_ext <<_ACEOF
28949 /* end confdefs.h.  */
28950
28951 int
28952 main ()
28953 {
28954
28955   ;
28956   return 0;
28957 }
28958 _ACEOF
28959 rm -f conftest.$ac_objext conftest$ac_exeext
28960 if { (ac_try="$ac_link"
28961 case "(($ac_try" in
28962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963   *) ac_try_echo=$ac_try;;
28964 esac
28965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28966   (eval "$ac_link") 2>conftest.er1
28967   ac_status=$?
28968   grep -v '^ *+' conftest.er1 >conftest.err
28969   rm -f conftest.er1
28970   cat conftest.err >&5
28971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972   (exit $ac_status); } && {
28973          test -z "$ac_c_werror_flag" ||
28974          test ! -s conftest.err
28975        } && test -s conftest$ac_exeext &&
28976        $as_test_x conftest$ac_exeext; then
28977   :
28978 else
28979   echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.$ac_ext >&5
28981
28982         ac_cv_sys_largefile_CFLAGS=no
28983 fi
28984
28985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28986       conftest$ac_exeext conftest.$ac_ext
28987              CC="$ac_save_CC"
28988            esac
28989       }
28990 fi
28991 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28992 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28993      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28994 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28995 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28996   echo $ECHO_N "(cached) $ECHO_C" >&6
28997 else
28998   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28999         ac_cv_sys_largefile_LDFLAGS=no
29000
29001       }
29002 fi
29003 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29004 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29005      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29006 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29007 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29008   echo $ECHO_N "(cached) $ECHO_C" >&6
29009 else
29010   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29011         ac_cv_sys_largefile_LIBS=no
29012
29013       }
29014 fi
29015 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29016 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29017
29018      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29019        case "$ac_flag" in
29020        no) ;;
29021        -D_FILE_OFFSET_BITS=*) ;;
29022        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29023        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29024        -D?* | -I?*)
29025          case "$ac_flag" in
29026    no) ;;
29027    ?*)
29028      case "$CPPFLAGS" in
29029      '') CPPFLAGS="$ac_flag" ;;
29030      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29031      esac ;;
29032    esac ;;
29033        *)
29034          case "$ac_flag" in
29035    no) ;;
29036    ?*)
29037      case "$CFLAGS" in
29038      '') CFLAGS="$ac_flag" ;;
29039      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29040      esac ;;
29041    esac ;;
29042        esac
29043      done
29044      case "$ac_cv_sys_largefile_LDFLAGS" in
29045    no) ;;
29046    ?*)
29047      case "$LDFLAGS" in
29048      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29049      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29050      esac ;;
29051    esac
29052      case "$ac_cv_sys_largefile_LIBS" in
29053    no) ;;
29054    ?*)
29055      case "$LIBS" in
29056      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29057      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29058      esac ;;
29059    esac
29060      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29061 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29062 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29063   echo $ECHO_N "(cached) $ECHO_C" >&6
29064 else
29065   ac_cv_sys_file_offset_bits=no
29066       ac_cv_sys_file_offset_bits=64
29067       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29068         case "$ac_flag" in
29069         -D_FILE_OFFSET_BITS)
29070           ac_cv_sys_file_offset_bits=1 ;;
29071         -D_FILE_OFFSET_BITS=*)
29072           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29073         esac
29074       done
29075
29076 fi
29077 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29078 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29079    if test "$ac_cv_sys_file_offset_bits" != no; then
29080
29081 cat >>confdefs.h <<_ACEOF
29082 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29083 _ACEOF
29084
29085    fi
29086      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29087 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29088 if test "${ac_cv_sys_largefile_source+set}" = set; then
29089   echo $ECHO_N "(cached) $ECHO_C" >&6
29090 else
29091   ac_cv_sys_largefile_source=no
29092       ac_cv_sys_largefile_source=1
29093       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29094         case "$ac_flag" in
29095         -D_LARGEFILE_SOURCE)
29096           ac_cv_sys_largefile_source=1 ;;
29097         -D_LARGEFILE_SOURCE=*)
29098           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29099         esac
29100       done
29101
29102 fi
29103 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29104 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29105    if test "$ac_cv_sys_largefile_source" != no; then
29106
29107 cat >>confdefs.h <<_ACEOF
29108 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29109 _ACEOF
29110
29111    fi
29112      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29113 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29114 if test "${ac_cv_sys_large_files+set}" = set; then
29115   echo $ECHO_N "(cached) $ECHO_C" >&6
29116 else
29117   ac_cv_sys_large_files=no
29118       ac_cv_sys_large_files=1
29119       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29120         case "$ac_flag" in
29121         -D_LARGE_FILES)
29122           ac_cv_sys_large_files=1 ;;
29123         -D_LARGE_FILES=*)
29124           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29125         esac
29126       done
29127
29128 fi
29129 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29130 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29131    if test "$ac_cv_sys_large_files" != no; then
29132
29133 cat >>confdefs.h <<_ACEOF
29134 #define _LARGE_FILES $ac_cv_sys_large_files
29135 _ACEOF
29136
29137    fi
29138    fi
29139
29140
29141 { echo "$as_me:$LINENO: checking for X" >&5
29142 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29143
29144
29145 # Check whether --with-x was given.
29146 if test "${with_x+set}" = set; then
29147   withval=$with_x;
29148 fi
29149
29150 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29151 if test "x$with_x" = xno; then
29152   # The user explicitly disabled X.
29153   have_x=disabled
29154 else
29155   case $x_includes,$x_libraries in #(
29156     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29157 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29158    { (exit 1); exit 1; }; };; #(
29159     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29160   echo $ECHO_N "(cached) $ECHO_C" >&6
29161 else
29162   # One or both of the vars are not set, and there is no cached value.
29163 ac_x_includes=no ac_x_libraries=no
29164 rm -f -r conftest.dir
29165 if mkdir conftest.dir; then
29166   cd conftest.dir
29167   cat >Imakefile <<'_ACEOF'
29168 incroot:
29169         @echo incroot='${INCROOT}'
29170 usrlibdir:
29171         @echo usrlibdir='${USRLIBDIR}'
29172 libdir:
29173         @echo libdir='${LIBDIR}'
29174 _ACEOF
29175   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29176     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29177     for ac_var in incroot usrlibdir libdir; do
29178       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29179     done
29180     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29181     for ac_extension in a so sl; do
29182       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29183          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29184         ac_im_usrlibdir=$ac_im_libdir; break
29185       fi
29186     done
29187     # Screen out bogus values from the imake configuration.  They are
29188     # bogus both because they are the default anyway, and because
29189     # using them would break gcc on systems where it needs fixed includes.
29190     case $ac_im_incroot in
29191         /usr/include) ac_x_includes= ;;
29192         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29193     esac
29194     case $ac_im_usrlibdir in
29195         /usr/lib | /lib) ;;
29196         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29197     esac
29198   fi
29199   cd ..
29200   rm -f -r conftest.dir
29201 fi
29202
29203 # Standard set of common directories for X headers.
29204 # Check X11 before X11Rn because it is often a symlink to the current release.
29205 ac_x_header_dirs='
29206 /usr/X11/include
29207 /usr/X11R6/include
29208 /usr/X11R5/include
29209 /usr/X11R4/include
29210
29211 /usr/include/X11
29212 /usr/include/X11R6
29213 /usr/include/X11R5
29214 /usr/include/X11R4
29215
29216 /usr/local/X11/include
29217 /usr/local/X11R6/include
29218 /usr/local/X11R5/include
29219 /usr/local/X11R4/include
29220
29221 /usr/local/include/X11
29222 /usr/local/include/X11R6
29223 /usr/local/include/X11R5
29224 /usr/local/include/X11R4
29225
29226 /usr/X386/include
29227 /usr/x386/include
29228 /usr/XFree86/include/X11
29229
29230 /usr/include
29231 /usr/local/include
29232 /usr/unsupported/include
29233 /usr/athena/include
29234 /usr/local/x11r5/include
29235 /usr/lpp/Xamples/include
29236
29237 /usr/openwin/include
29238 /usr/openwin/share/include'
29239
29240 if test "$ac_x_includes" = no; then
29241   # Guess where to find include files, by looking for Xlib.h.
29242   # First, try using that file with no special directory specified.
29243   cat >conftest.$ac_ext <<_ACEOF
29244 /* confdefs.h.  */
29245 _ACEOF
29246 cat confdefs.h >>conftest.$ac_ext
29247 cat >>conftest.$ac_ext <<_ACEOF
29248 /* end confdefs.h.  */
29249 #include <X11/Xlib.h>
29250 _ACEOF
29251 if { (ac_try="$ac_cpp conftest.$ac_ext"
29252 case "(($ac_try" in
29253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29254   *) ac_try_echo=$ac_try;;
29255 esac
29256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29258   ac_status=$?
29259   grep -v '^ *+' conftest.er1 >conftest.err
29260   rm -f conftest.er1
29261   cat conftest.err >&5
29262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263   (exit $ac_status); } >/dev/null && {
29264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29265          test ! -s conftest.err
29266        }; then
29267   # We can compile using X headers with no special include directory.
29268 ac_x_includes=
29269 else
29270   echo "$as_me: failed program was:" >&5
29271 sed 's/^/| /' conftest.$ac_ext >&5
29272
29273   for ac_dir in $ac_x_header_dirs; do
29274   if test -r "$ac_dir/X11/Xlib.h"; then
29275     ac_x_includes=$ac_dir
29276     break
29277   fi
29278 done
29279 fi
29280
29281 rm -f conftest.err conftest.$ac_ext
29282 fi # $ac_x_includes = no
29283
29284 if test "$ac_x_libraries" = no; then
29285   # Check for the libraries.
29286   # See if we find them without any special options.
29287   # Don't add to $LIBS permanently.
29288   ac_save_LIBS=$LIBS
29289   LIBS="-lX11 $LIBS"
29290   cat >conftest.$ac_ext <<_ACEOF
29291 /* confdefs.h.  */
29292 _ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h.  */
29296 #include <X11/Xlib.h>
29297 int
29298 main ()
29299 {
29300 XrmInitialize ()
29301   ;
29302   return 0;
29303 }
29304 _ACEOF
29305 rm -f conftest.$ac_objext conftest$ac_exeext
29306 if { (ac_try="$ac_link"
29307 case "(($ac_try" in
29308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309   *) ac_try_echo=$ac_try;;
29310 esac
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312   (eval "$ac_link") 2>conftest.er1
29313   ac_status=$?
29314   grep -v '^ *+' conftest.er1 >conftest.err
29315   rm -f conftest.er1
29316   cat conftest.err >&5
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); } && {
29319          test -z "$ac_c_werror_flag" ||
29320          test ! -s conftest.err
29321        } && test -s conftest$ac_exeext &&
29322        $as_test_x conftest$ac_exeext; then
29323   LIBS=$ac_save_LIBS
29324 # We can link X programs with no special library path.
29325 ac_x_libraries=
29326 else
29327   echo "$as_me: failed program was:" >&5
29328 sed 's/^/| /' conftest.$ac_ext >&5
29329
29330         LIBS=$ac_save_LIBS
29331 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29332 do
29333   # Don't even attempt the hair of trying to link an X program!
29334   for ac_extension in a so sl; do
29335     if test -r "$ac_dir/libX11.$ac_extension"; then
29336       ac_x_libraries=$ac_dir
29337       break 2
29338     fi
29339   done
29340 done
29341 fi
29342
29343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29344       conftest$ac_exeext conftest.$ac_ext
29345 fi # $ac_x_libraries = no
29346
29347 case $ac_x_includes,$ac_x_libraries in #(
29348   no,* | *,no | *\'*)
29349     # Didn't find X, or a directory has "'" in its name.
29350     ac_cv_have_x="have_x=no";; #(
29351   *)
29352     # Record where we found X for the cache.
29353     ac_cv_have_x="have_x=yes\
29354         ac_x_includes='$ac_x_includes'\
29355         ac_x_libraries='$ac_x_libraries'"
29356 esac
29357 fi
29358 ;; #(
29359     *) have_x=yes;;
29360   esac
29361   eval "$ac_cv_have_x"
29362 fi # $with_x != no
29363
29364 if test "$have_x" != yes; then
29365   { echo "$as_me:$LINENO: result: $have_x" >&5
29366 echo "${ECHO_T}$have_x" >&6; }
29367   no_x=yes
29368 else
29369   # If each of the values was on the command line, it overrides each guess.
29370   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29371   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29372   # Update the cache value to reflect the command line values.
29373   ac_cv_have_x="have_x=yes\
29374         ac_x_includes='$x_includes'\
29375         ac_x_libraries='$x_libraries'"
29376   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29377 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29378 fi
29379
29380 if test "$no_x" = yes; then
29381   # Not all programs may use this symbol, but it does not hurt to define it.
29382
29383 cat >>confdefs.h <<\_ACEOF
29384 #define X_DISPLAY_MISSING 1
29385 _ACEOF
29386
29387   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29388 else
29389   if test -n "$x_includes"; then
29390     X_CFLAGS="$X_CFLAGS -I$x_includes"
29391   fi
29392
29393   # It would also be nice to do this for all -L options, not just this one.
29394   if test -n "$x_libraries"; then
29395     X_LIBS="$X_LIBS -L$x_libraries"
29396     # For Solaris; some versions of Sun CC require a space after -R and
29397     # others require no space.  Words are not sufficient . . . .
29398     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29399 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29400     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29401     ac_xsave_c_werror_flag=$ac_c_werror_flag
29402     ac_c_werror_flag=yes
29403     cat >conftest.$ac_ext <<_ACEOF
29404 /* confdefs.h.  */
29405 _ACEOF
29406 cat confdefs.h >>conftest.$ac_ext
29407 cat >>conftest.$ac_ext <<_ACEOF
29408 /* end confdefs.h.  */
29409
29410 int
29411 main ()
29412 {
29413
29414   ;
29415   return 0;
29416 }
29417 _ACEOF
29418 rm -f conftest.$ac_objext conftest$ac_exeext
29419 if { (ac_try="$ac_link"
29420 case "(($ac_try" in
29421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29422   *) ac_try_echo=$ac_try;;
29423 esac
29424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29425   (eval "$ac_link") 2>conftest.er1
29426   ac_status=$?
29427   grep -v '^ *+' conftest.er1 >conftest.err
29428   rm -f conftest.er1
29429   cat conftest.err >&5
29430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29431   (exit $ac_status); } && {
29432          test -z "$ac_c_werror_flag" ||
29433          test ! -s conftest.err
29434        } && test -s conftest$ac_exeext &&
29435        $as_test_x conftest$ac_exeext; then
29436   { echo "$as_me:$LINENO: result: no" >&5
29437 echo "${ECHO_T}no" >&6; }
29438        X_LIBS="$X_LIBS -R$x_libraries"
29439 else
29440   echo "$as_me: failed program was:" >&5
29441 sed 's/^/| /' conftest.$ac_ext >&5
29442
29443         LIBS="$ac_xsave_LIBS -R $x_libraries"
29444        cat >conftest.$ac_ext <<_ACEOF
29445 /* confdefs.h.  */
29446 _ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h.  */
29450
29451 int
29452 main ()
29453 {
29454
29455   ;
29456   return 0;
29457 }
29458 _ACEOF
29459 rm -f conftest.$ac_objext conftest$ac_exeext
29460 if { (ac_try="$ac_link"
29461 case "(($ac_try" in
29462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29463   *) ac_try_echo=$ac_try;;
29464 esac
29465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29466   (eval "$ac_link") 2>conftest.er1
29467   ac_status=$?
29468   grep -v '^ *+' conftest.er1 >conftest.err
29469   rm -f conftest.er1
29470   cat conftest.err >&5
29471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472   (exit $ac_status); } && {
29473          test -z "$ac_c_werror_flag" ||
29474          test ! -s conftest.err
29475        } && test -s conftest$ac_exeext &&
29476        $as_test_x conftest$ac_exeext; then
29477   { echo "$as_me:$LINENO: result: yes" >&5
29478 echo "${ECHO_T}yes" >&6; }
29479           X_LIBS="$X_LIBS -R $x_libraries"
29480 else
29481   echo "$as_me: failed program was:" >&5
29482 sed 's/^/| /' conftest.$ac_ext >&5
29483
29484         { echo "$as_me:$LINENO: result: neither works" >&5
29485 echo "${ECHO_T}neither works" >&6; }
29486 fi
29487
29488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29489       conftest$ac_exeext conftest.$ac_ext
29490 fi
29491
29492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29493       conftest$ac_exeext conftest.$ac_ext
29494     ac_c_werror_flag=$ac_xsave_c_werror_flag
29495     LIBS=$ac_xsave_LIBS
29496   fi
29497
29498   # Check for system-dependent libraries X programs must link with.
29499   # Do this before checking for the system-independent R6 libraries
29500   # (-lICE), since we may need -lsocket or whatever for X linking.
29501
29502   if test "$ISC" = yes; then
29503     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29504   else
29505     # Martyn Johnson says this is needed for Ultrix, if the X
29506     # libraries were built with DECnet support.  And Karl Berry says
29507     # the Alpha needs dnet_stub (dnet does not exist).
29508     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29509     cat >conftest.$ac_ext <<_ACEOF
29510 /* confdefs.h.  */
29511 _ACEOF
29512 cat confdefs.h >>conftest.$ac_ext
29513 cat >>conftest.$ac_ext <<_ACEOF
29514 /* end confdefs.h.  */
29515
29516 /* Override any GCC internal prototype to avoid an error.
29517    Use char because int might match the return type of a GCC
29518    builtin and then its argument prototype would still apply.  */
29519 #ifdef __cplusplus
29520 extern "C"
29521 #endif
29522 char XOpenDisplay ();
29523 int
29524 main ()
29525 {
29526 return XOpenDisplay ();
29527   ;
29528   return 0;
29529 }
29530 _ACEOF
29531 rm -f conftest.$ac_objext conftest$ac_exeext
29532 if { (ac_try="$ac_link"
29533 case "(($ac_try" in
29534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29535   *) ac_try_echo=$ac_try;;
29536 esac
29537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29538   (eval "$ac_link") 2>conftest.er1
29539   ac_status=$?
29540   grep -v '^ *+' conftest.er1 >conftest.err
29541   rm -f conftest.er1
29542   cat conftest.err >&5
29543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544   (exit $ac_status); } && {
29545          test -z "$ac_c_werror_flag" ||
29546          test ! -s conftest.err
29547        } && test -s conftest$ac_exeext &&
29548        $as_test_x conftest$ac_exeext; then
29549   :
29550 else
29551   echo "$as_me: failed program was:" >&5
29552 sed 's/^/| /' conftest.$ac_ext >&5
29553
29554         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29555 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29556 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29557   echo $ECHO_N "(cached) $ECHO_C" >&6
29558 else
29559   ac_check_lib_save_LIBS=$LIBS
29560 LIBS="-ldnet  $LIBS"
29561 cat >conftest.$ac_ext <<_ACEOF
29562 /* confdefs.h.  */
29563 _ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h.  */
29567
29568 /* Override any GCC internal prototype to avoid an error.
29569    Use char because int might match the return type of a GCC
29570    builtin and then its argument prototype would still apply.  */
29571 #ifdef __cplusplus
29572 extern "C"
29573 #endif
29574 char dnet_ntoa ();
29575 int
29576 main ()
29577 {
29578 return dnet_ntoa ();
29579   ;
29580   return 0;
29581 }
29582 _ACEOF
29583 rm -f conftest.$ac_objext conftest$ac_exeext
29584 if { (ac_try="$ac_link"
29585 case "(($ac_try" in
29586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587   *) ac_try_echo=$ac_try;;
29588 esac
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590   (eval "$ac_link") 2>conftest.er1
29591   ac_status=$?
29592   grep -v '^ *+' conftest.er1 >conftest.err
29593   rm -f conftest.er1
29594   cat conftest.err >&5
29595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596   (exit $ac_status); } && {
29597          test -z "$ac_c_werror_flag" ||
29598          test ! -s conftest.err
29599        } && test -s conftest$ac_exeext &&
29600        $as_test_x conftest$ac_exeext; then
29601   ac_cv_lib_dnet_dnet_ntoa=yes
29602 else
29603   echo "$as_me: failed program was:" >&5
29604 sed 's/^/| /' conftest.$ac_ext >&5
29605
29606         ac_cv_lib_dnet_dnet_ntoa=no
29607 fi
29608
29609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29610       conftest$ac_exeext conftest.$ac_ext
29611 LIBS=$ac_check_lib_save_LIBS
29612 fi
29613 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29614 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29615 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29616   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29617 fi
29618
29619     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29620       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29621 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29622 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29623   echo $ECHO_N "(cached) $ECHO_C" >&6
29624 else
29625   ac_check_lib_save_LIBS=$LIBS
29626 LIBS="-ldnet_stub  $LIBS"
29627 cat >conftest.$ac_ext <<_ACEOF
29628 /* confdefs.h.  */
29629 _ACEOF
29630 cat confdefs.h >>conftest.$ac_ext
29631 cat >>conftest.$ac_ext <<_ACEOF
29632 /* end confdefs.h.  */
29633
29634 /* Override any GCC internal prototype to avoid an error.
29635    Use char because int might match the return type of a GCC
29636    builtin and then its argument prototype would still apply.  */
29637 #ifdef __cplusplus
29638 extern "C"
29639 #endif
29640 char dnet_ntoa ();
29641 int
29642 main ()
29643 {
29644 return dnet_ntoa ();
29645   ;
29646   return 0;
29647 }
29648 _ACEOF
29649 rm -f conftest.$ac_objext conftest$ac_exeext
29650 if { (ac_try="$ac_link"
29651 case "(($ac_try" in
29652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29653   *) ac_try_echo=$ac_try;;
29654 esac
29655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29656   (eval "$ac_link") 2>conftest.er1
29657   ac_status=$?
29658   grep -v '^ *+' conftest.er1 >conftest.err
29659   rm -f conftest.er1
29660   cat conftest.err >&5
29661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662   (exit $ac_status); } && {
29663          test -z "$ac_c_werror_flag" ||
29664          test ! -s conftest.err
29665        } && test -s conftest$ac_exeext &&
29666        $as_test_x conftest$ac_exeext; then
29667   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29668 else
29669   echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29671
29672         ac_cv_lib_dnet_stub_dnet_ntoa=no
29673 fi
29674
29675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29676       conftest$ac_exeext conftest.$ac_ext
29677 LIBS=$ac_check_lib_save_LIBS
29678 fi
29679 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29680 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29681 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29682   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29683 fi
29684
29685     fi
29686 fi
29687
29688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29689       conftest$ac_exeext conftest.$ac_ext
29690     LIBS="$ac_xsave_LIBS"
29691
29692     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29693     # to get the SysV transport functions.
29694     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29695     # needs -lnsl.
29696     # The nsl library prevents programs from opening the X display
29697     # on Irix 5.2, according to T.E. Dickey.
29698     # The functions gethostbyname, getservbyname, and inet_addr are
29699     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29700     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29701 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29702 if test "${ac_cv_func_gethostbyname+set}" = set; then
29703   echo $ECHO_N "(cached) $ECHO_C" >&6
29704 else
29705   cat >conftest.$ac_ext <<_ACEOF
29706 /* confdefs.h.  */
29707 _ACEOF
29708 cat confdefs.h >>conftest.$ac_ext
29709 cat >>conftest.$ac_ext <<_ACEOF
29710 /* end confdefs.h.  */
29711 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29713 #define gethostbyname innocuous_gethostbyname
29714
29715 /* System header to define __stub macros and hopefully few prototypes,
29716     which can conflict with char gethostbyname (); below.
29717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29718     <limits.h> exists even on freestanding compilers.  */
29719
29720 #ifdef __STDC__
29721 # include <limits.h>
29722 #else
29723 # include <assert.h>
29724 #endif
29725
29726 #undef gethostbyname
29727
29728 /* Override any GCC internal prototype to avoid an error.
29729    Use char because int might match the return type of a GCC
29730    builtin and then its argument prototype would still apply.  */
29731 #ifdef __cplusplus
29732 extern "C"
29733 #endif
29734 char gethostbyname ();
29735 /* The GNU C library defines this for functions which it implements
29736     to always fail with ENOSYS.  Some functions are actually named
29737     something starting with __ and the normal name is an alias.  */
29738 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29739 choke me
29740 #endif
29741
29742 int
29743 main ()
29744 {
29745 return gethostbyname ();
29746   ;
29747   return 0;
29748 }
29749 _ACEOF
29750 rm -f conftest.$ac_objext conftest$ac_exeext
29751 if { (ac_try="$ac_link"
29752 case "(($ac_try" in
29753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754   *) ac_try_echo=$ac_try;;
29755 esac
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757   (eval "$ac_link") 2>conftest.er1
29758   ac_status=$?
29759   grep -v '^ *+' conftest.er1 >conftest.err
29760   rm -f conftest.er1
29761   cat conftest.err >&5
29762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763   (exit $ac_status); } && {
29764          test -z "$ac_c_werror_flag" ||
29765          test ! -s conftest.err
29766        } && test -s conftest$ac_exeext &&
29767        $as_test_x conftest$ac_exeext; then
29768   ac_cv_func_gethostbyname=yes
29769 else
29770   echo "$as_me: failed program was:" >&5
29771 sed 's/^/| /' conftest.$ac_ext >&5
29772
29773         ac_cv_func_gethostbyname=no
29774 fi
29775
29776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29777       conftest$ac_exeext conftest.$ac_ext
29778 fi
29779 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29780 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29781
29782     if test $ac_cv_func_gethostbyname = no; then
29783       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29784 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29785 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29786   echo $ECHO_N "(cached) $ECHO_C" >&6
29787 else
29788   ac_check_lib_save_LIBS=$LIBS
29789 LIBS="-lnsl  $LIBS"
29790 cat >conftest.$ac_ext <<_ACEOF
29791 /* confdefs.h.  */
29792 _ACEOF
29793 cat confdefs.h >>conftest.$ac_ext
29794 cat >>conftest.$ac_ext <<_ACEOF
29795 /* end confdefs.h.  */
29796
29797 /* Override any GCC internal prototype to avoid an error.
29798    Use char because int might match the return type of a GCC
29799    builtin and then its argument prototype would still apply.  */
29800 #ifdef __cplusplus
29801 extern "C"
29802 #endif
29803 char gethostbyname ();
29804 int
29805 main ()
29806 {
29807 return gethostbyname ();
29808   ;
29809   return 0;
29810 }
29811 _ACEOF
29812 rm -f conftest.$ac_objext conftest$ac_exeext
29813 if { (ac_try="$ac_link"
29814 case "(($ac_try" in
29815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816   *) ac_try_echo=$ac_try;;
29817 esac
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819   (eval "$ac_link") 2>conftest.er1
29820   ac_status=$?
29821   grep -v '^ *+' conftest.er1 >conftest.err
29822   rm -f conftest.er1
29823   cat conftest.err >&5
29824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825   (exit $ac_status); } && {
29826          test -z "$ac_c_werror_flag" ||
29827          test ! -s conftest.err
29828        } && test -s conftest$ac_exeext &&
29829        $as_test_x conftest$ac_exeext; then
29830   ac_cv_lib_nsl_gethostbyname=yes
29831 else
29832   echo "$as_me: failed program was:" >&5
29833 sed 's/^/| /' conftest.$ac_ext >&5
29834
29835         ac_cv_lib_nsl_gethostbyname=no
29836 fi
29837
29838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29839       conftest$ac_exeext conftest.$ac_ext
29840 LIBS=$ac_check_lib_save_LIBS
29841 fi
29842 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29843 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29844 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29845   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29846 fi
29847
29848       if test $ac_cv_lib_nsl_gethostbyname = no; then
29849         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29850 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29851 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29852   echo $ECHO_N "(cached) $ECHO_C" >&6
29853 else
29854   ac_check_lib_save_LIBS=$LIBS
29855 LIBS="-lbsd  $LIBS"
29856 cat >conftest.$ac_ext <<_ACEOF
29857 /* confdefs.h.  */
29858 _ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h.  */
29862
29863 /* Override any GCC internal prototype to avoid an error.
29864    Use char because int might match the return type of a GCC
29865    builtin and then its argument prototype would still apply.  */
29866 #ifdef __cplusplus
29867 extern "C"
29868 #endif
29869 char gethostbyname ();
29870 int
29871 main ()
29872 {
29873 return gethostbyname ();
29874   ;
29875   return 0;
29876 }
29877 _ACEOF
29878 rm -f conftest.$ac_objext conftest$ac_exeext
29879 if { (ac_try="$ac_link"
29880 case "(($ac_try" in
29881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882   *) ac_try_echo=$ac_try;;
29883 esac
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885   (eval "$ac_link") 2>conftest.er1
29886   ac_status=$?
29887   grep -v '^ *+' conftest.er1 >conftest.err
29888   rm -f conftest.er1
29889   cat conftest.err >&5
29890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891   (exit $ac_status); } && {
29892          test -z "$ac_c_werror_flag" ||
29893          test ! -s conftest.err
29894        } && test -s conftest$ac_exeext &&
29895        $as_test_x conftest$ac_exeext; then
29896   ac_cv_lib_bsd_gethostbyname=yes
29897 else
29898   echo "$as_me: failed program was:" >&5
29899 sed 's/^/| /' conftest.$ac_ext >&5
29900
29901         ac_cv_lib_bsd_gethostbyname=no
29902 fi
29903
29904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29905       conftest$ac_exeext conftest.$ac_ext
29906 LIBS=$ac_check_lib_save_LIBS
29907 fi
29908 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29909 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29910 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29911   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29912 fi
29913
29914       fi
29915     fi
29916
29917     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29918     # socket/setsockopt and other routines are undefined under SCO ODT
29919     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29920     # on later versions), says Simon Leinen: it contains gethostby*
29921     # variants that don't use the name server (or something).  -lsocket
29922     # must be given before -lnsl if both are needed.  We assume that
29923     # if connect needs -lnsl, so does gethostbyname.
29924     { echo "$as_me:$LINENO: checking for connect" >&5
29925 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29926 if test "${ac_cv_func_connect+set}" = set; then
29927   echo $ECHO_N "(cached) $ECHO_C" >&6
29928 else
29929   cat >conftest.$ac_ext <<_ACEOF
29930 /* confdefs.h.  */
29931 _ACEOF
29932 cat confdefs.h >>conftest.$ac_ext
29933 cat >>conftest.$ac_ext <<_ACEOF
29934 /* end confdefs.h.  */
29935 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29937 #define connect innocuous_connect
29938
29939 /* System header to define __stub macros and hopefully few prototypes,
29940     which can conflict with char connect (); below.
29941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29942     <limits.h> exists even on freestanding compilers.  */
29943
29944 #ifdef __STDC__
29945 # include <limits.h>
29946 #else
29947 # include <assert.h>
29948 #endif
29949
29950 #undef connect
29951
29952 /* Override any GCC internal prototype to avoid an error.
29953    Use char because int might match the return type of a GCC
29954    builtin and then its argument prototype would still apply.  */
29955 #ifdef __cplusplus
29956 extern "C"
29957 #endif
29958 char connect ();
29959 /* The GNU C library defines this for functions which it implements
29960     to always fail with ENOSYS.  Some functions are actually named
29961     something starting with __ and the normal name is an alias.  */
29962 #if defined __stub_connect || defined __stub___connect
29963 choke me
29964 #endif
29965
29966 int
29967 main ()
29968 {
29969 return connect ();
29970   ;
29971   return 0;
29972 }
29973 _ACEOF
29974 rm -f conftest.$ac_objext conftest$ac_exeext
29975 if { (ac_try="$ac_link"
29976 case "(($ac_try" in
29977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29978   *) ac_try_echo=$ac_try;;
29979 esac
29980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29981   (eval "$ac_link") 2>conftest.er1
29982   ac_status=$?
29983   grep -v '^ *+' conftest.er1 >conftest.err
29984   rm -f conftest.er1
29985   cat conftest.err >&5
29986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987   (exit $ac_status); } && {
29988          test -z "$ac_c_werror_flag" ||
29989          test ! -s conftest.err
29990        } && test -s conftest$ac_exeext &&
29991        $as_test_x conftest$ac_exeext; then
29992   ac_cv_func_connect=yes
29993 else
29994   echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29996
29997         ac_cv_func_connect=no
29998 fi
29999
30000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30001       conftest$ac_exeext conftest.$ac_ext
30002 fi
30003 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30004 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30005
30006     if test $ac_cv_func_connect = no; then
30007       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30008 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30009 if test "${ac_cv_lib_socket_connect+set}" = set; then
30010   echo $ECHO_N "(cached) $ECHO_C" >&6
30011 else
30012   ac_check_lib_save_LIBS=$LIBS
30013 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30014 cat >conftest.$ac_ext <<_ACEOF
30015 /* confdefs.h.  */
30016 _ACEOF
30017 cat confdefs.h >>conftest.$ac_ext
30018 cat >>conftest.$ac_ext <<_ACEOF
30019 /* end confdefs.h.  */
30020
30021 /* Override any GCC internal prototype to avoid an error.
30022    Use char because int might match the return type of a GCC
30023    builtin and then its argument prototype would still apply.  */
30024 #ifdef __cplusplus
30025 extern "C"
30026 #endif
30027 char connect ();
30028 int
30029 main ()
30030 {
30031 return connect ();
30032   ;
30033   return 0;
30034 }
30035 _ACEOF
30036 rm -f conftest.$ac_objext conftest$ac_exeext
30037 if { (ac_try="$ac_link"
30038 case "(($ac_try" in
30039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040   *) ac_try_echo=$ac_try;;
30041 esac
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043   (eval "$ac_link") 2>conftest.er1
30044   ac_status=$?
30045   grep -v '^ *+' conftest.er1 >conftest.err
30046   rm -f conftest.er1
30047   cat conftest.err >&5
30048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049   (exit $ac_status); } && {
30050          test -z "$ac_c_werror_flag" ||
30051          test ! -s conftest.err
30052        } && test -s conftest$ac_exeext &&
30053        $as_test_x conftest$ac_exeext; then
30054   ac_cv_lib_socket_connect=yes
30055 else
30056   echo "$as_me: failed program was:" >&5
30057 sed 's/^/| /' conftest.$ac_ext >&5
30058
30059         ac_cv_lib_socket_connect=no
30060 fi
30061
30062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30063       conftest$ac_exeext conftest.$ac_ext
30064 LIBS=$ac_check_lib_save_LIBS
30065 fi
30066 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30067 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30068 if test $ac_cv_lib_socket_connect = yes; then
30069   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30070 fi
30071
30072     fi
30073
30074     # Guillermo Gomez says -lposix is necessary on A/UX.
30075     { echo "$as_me:$LINENO: checking for remove" >&5
30076 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30077 if test "${ac_cv_func_remove+set}" = set; then
30078   echo $ECHO_N "(cached) $ECHO_C" >&6
30079 else
30080   cat >conftest.$ac_ext <<_ACEOF
30081 /* confdefs.h.  */
30082 _ACEOF
30083 cat confdefs.h >>conftest.$ac_ext
30084 cat >>conftest.$ac_ext <<_ACEOF
30085 /* end confdefs.h.  */
30086 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30088 #define remove innocuous_remove
30089
30090 /* System header to define __stub macros and hopefully few prototypes,
30091     which can conflict with char remove (); below.
30092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30093     <limits.h> exists even on freestanding compilers.  */
30094
30095 #ifdef __STDC__
30096 # include <limits.h>
30097 #else
30098 # include <assert.h>
30099 #endif
30100
30101 #undef remove
30102
30103 /* Override any GCC internal prototype to avoid an error.
30104    Use char because int might match the return type of a GCC
30105    builtin and then its argument prototype would still apply.  */
30106 #ifdef __cplusplus
30107 extern "C"
30108 #endif
30109 char remove ();
30110 /* The GNU C library defines this for functions which it implements
30111     to always fail with ENOSYS.  Some functions are actually named
30112     something starting with __ and the normal name is an alias.  */
30113 #if defined __stub_remove || defined __stub___remove
30114 choke me
30115 #endif
30116
30117 int
30118 main ()
30119 {
30120 return remove ();
30121   ;
30122   return 0;
30123 }
30124 _ACEOF
30125 rm -f conftest.$ac_objext conftest$ac_exeext
30126 if { (ac_try="$ac_link"
30127 case "(($ac_try" in
30128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30129   *) ac_try_echo=$ac_try;;
30130 esac
30131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30132   (eval "$ac_link") 2>conftest.er1
30133   ac_status=$?
30134   grep -v '^ *+' conftest.er1 >conftest.err
30135   rm -f conftest.er1
30136   cat conftest.err >&5
30137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138   (exit $ac_status); } && {
30139          test -z "$ac_c_werror_flag" ||
30140          test ! -s conftest.err
30141        } && test -s conftest$ac_exeext &&
30142        $as_test_x conftest$ac_exeext; then
30143   ac_cv_func_remove=yes
30144 else
30145   echo "$as_me: failed program was:" >&5
30146 sed 's/^/| /' conftest.$ac_ext >&5
30147
30148         ac_cv_func_remove=no
30149 fi
30150
30151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30152       conftest$ac_exeext conftest.$ac_ext
30153 fi
30154 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30155 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30156
30157     if test $ac_cv_func_remove = no; then
30158       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30159 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30160 if test "${ac_cv_lib_posix_remove+set}" = set; then
30161   echo $ECHO_N "(cached) $ECHO_C" >&6
30162 else
30163   ac_check_lib_save_LIBS=$LIBS
30164 LIBS="-lposix  $LIBS"
30165 cat >conftest.$ac_ext <<_ACEOF
30166 /* confdefs.h.  */
30167 _ACEOF
30168 cat confdefs.h >>conftest.$ac_ext
30169 cat >>conftest.$ac_ext <<_ACEOF
30170 /* end confdefs.h.  */
30171
30172 /* Override any GCC internal prototype to avoid an error.
30173    Use char because int might match the return type of a GCC
30174    builtin and then its argument prototype would still apply.  */
30175 #ifdef __cplusplus
30176 extern "C"
30177 #endif
30178 char remove ();
30179 int
30180 main ()
30181 {
30182 return remove ();
30183   ;
30184   return 0;
30185 }
30186 _ACEOF
30187 rm -f conftest.$ac_objext conftest$ac_exeext
30188 if { (ac_try="$ac_link"
30189 case "(($ac_try" in
30190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30191   *) ac_try_echo=$ac_try;;
30192 esac
30193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30194   (eval "$ac_link") 2>conftest.er1
30195   ac_status=$?
30196   grep -v '^ *+' conftest.er1 >conftest.err
30197   rm -f conftest.er1
30198   cat conftest.err >&5
30199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200   (exit $ac_status); } && {
30201          test -z "$ac_c_werror_flag" ||
30202          test ! -s conftest.err
30203        } && test -s conftest$ac_exeext &&
30204        $as_test_x conftest$ac_exeext; then
30205   ac_cv_lib_posix_remove=yes
30206 else
30207   echo "$as_me: failed program was:" >&5
30208 sed 's/^/| /' conftest.$ac_ext >&5
30209
30210         ac_cv_lib_posix_remove=no
30211 fi
30212
30213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30214       conftest$ac_exeext conftest.$ac_ext
30215 LIBS=$ac_check_lib_save_LIBS
30216 fi
30217 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30218 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30219 if test $ac_cv_lib_posix_remove = yes; then
30220   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30221 fi
30222
30223     fi
30224
30225     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30226     { echo "$as_me:$LINENO: checking for shmat" >&5
30227 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30228 if test "${ac_cv_func_shmat+set}" = set; then
30229   echo $ECHO_N "(cached) $ECHO_C" >&6
30230 else
30231   cat >conftest.$ac_ext <<_ACEOF
30232 /* confdefs.h.  */
30233 _ACEOF
30234 cat confdefs.h >>conftest.$ac_ext
30235 cat >>conftest.$ac_ext <<_ACEOF
30236 /* end confdefs.h.  */
30237 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30239 #define shmat innocuous_shmat
30240
30241 /* System header to define __stub macros and hopefully few prototypes,
30242     which can conflict with char shmat (); below.
30243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30244     <limits.h> exists even on freestanding compilers.  */
30245
30246 #ifdef __STDC__
30247 # include <limits.h>
30248 #else
30249 # include <assert.h>
30250 #endif
30251
30252 #undef shmat
30253
30254 /* Override any GCC internal prototype to avoid an error.
30255    Use char because int might match the return type of a GCC
30256    builtin and then its argument prototype would still apply.  */
30257 #ifdef __cplusplus
30258 extern "C"
30259 #endif
30260 char shmat ();
30261 /* The GNU C library defines this for functions which it implements
30262     to always fail with ENOSYS.  Some functions are actually named
30263     something starting with __ and the normal name is an alias.  */
30264 #if defined __stub_shmat || defined __stub___shmat
30265 choke me
30266 #endif
30267
30268 int
30269 main ()
30270 {
30271 return shmat ();
30272   ;
30273   return 0;
30274 }
30275 _ACEOF
30276 rm -f conftest.$ac_objext conftest$ac_exeext
30277 if { (ac_try="$ac_link"
30278 case "(($ac_try" in
30279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30280   *) ac_try_echo=$ac_try;;
30281 esac
30282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30283   (eval "$ac_link") 2>conftest.er1
30284   ac_status=$?
30285   grep -v '^ *+' conftest.er1 >conftest.err
30286   rm -f conftest.er1
30287   cat conftest.err >&5
30288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289   (exit $ac_status); } && {
30290          test -z "$ac_c_werror_flag" ||
30291          test ! -s conftest.err
30292        } && test -s conftest$ac_exeext &&
30293        $as_test_x conftest$ac_exeext; then
30294   ac_cv_func_shmat=yes
30295 else
30296   echo "$as_me: failed program was:" >&5
30297 sed 's/^/| /' conftest.$ac_ext >&5
30298
30299         ac_cv_func_shmat=no
30300 fi
30301
30302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30303       conftest$ac_exeext conftest.$ac_ext
30304 fi
30305 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30306 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30307
30308     if test $ac_cv_func_shmat = no; then
30309       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30310 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30311 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30312   echo $ECHO_N "(cached) $ECHO_C" >&6
30313 else
30314   ac_check_lib_save_LIBS=$LIBS
30315 LIBS="-lipc  $LIBS"
30316 cat >conftest.$ac_ext <<_ACEOF
30317 /* confdefs.h.  */
30318 _ACEOF
30319 cat confdefs.h >>conftest.$ac_ext
30320 cat >>conftest.$ac_ext <<_ACEOF
30321 /* end confdefs.h.  */
30322
30323 /* Override any GCC internal prototype to avoid an error.
30324    Use char because int might match the return type of a GCC
30325    builtin and then its argument prototype would still apply.  */
30326 #ifdef __cplusplus
30327 extern "C"
30328 #endif
30329 char shmat ();
30330 int
30331 main ()
30332 {
30333 return shmat ();
30334   ;
30335   return 0;
30336 }
30337 _ACEOF
30338 rm -f conftest.$ac_objext conftest$ac_exeext
30339 if { (ac_try="$ac_link"
30340 case "(($ac_try" in
30341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342   *) ac_try_echo=$ac_try;;
30343 esac
30344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345   (eval "$ac_link") 2>conftest.er1
30346   ac_status=$?
30347   grep -v '^ *+' conftest.er1 >conftest.err
30348   rm -f conftest.er1
30349   cat conftest.err >&5
30350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351   (exit $ac_status); } && {
30352          test -z "$ac_c_werror_flag" ||
30353          test ! -s conftest.err
30354        } && test -s conftest$ac_exeext &&
30355        $as_test_x conftest$ac_exeext; then
30356   ac_cv_lib_ipc_shmat=yes
30357 else
30358   echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30360
30361         ac_cv_lib_ipc_shmat=no
30362 fi
30363
30364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30365       conftest$ac_exeext conftest.$ac_ext
30366 LIBS=$ac_check_lib_save_LIBS
30367 fi
30368 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30369 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30370 if test $ac_cv_lib_ipc_shmat = yes; then
30371   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30372 fi
30373
30374     fi
30375   fi
30376
30377   # Check for libraries that X11R6 Xt/Xaw programs need.
30378   ac_save_LDFLAGS=$LDFLAGS
30379   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30380   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30381   # check for ICE first), but we must link in the order -lSM -lICE or
30382   # we get undefined symbols.  So assume we have SM if we have ICE.
30383   # These have to be linked with before -lX11, unlike the other
30384   # libraries we check for below, so use a different variable.
30385   # John Interrante, Karl Berry
30386   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30387 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30388 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30389   echo $ECHO_N "(cached) $ECHO_C" >&6
30390 else
30391   ac_check_lib_save_LIBS=$LIBS
30392 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30393 cat >conftest.$ac_ext <<_ACEOF
30394 /* confdefs.h.  */
30395 _ACEOF
30396 cat confdefs.h >>conftest.$ac_ext
30397 cat >>conftest.$ac_ext <<_ACEOF
30398 /* end confdefs.h.  */
30399
30400 /* Override any GCC internal prototype to avoid an error.
30401    Use char because int might match the return type of a GCC
30402    builtin and then its argument prototype would still apply.  */
30403 #ifdef __cplusplus
30404 extern "C"
30405 #endif
30406 char IceConnectionNumber ();
30407 int
30408 main ()
30409 {
30410 return IceConnectionNumber ();
30411   ;
30412   return 0;
30413 }
30414 _ACEOF
30415 rm -f conftest.$ac_objext conftest$ac_exeext
30416 if { (ac_try="$ac_link"
30417 case "(($ac_try" in
30418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30419   *) ac_try_echo=$ac_try;;
30420 esac
30421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30422   (eval "$ac_link") 2>conftest.er1
30423   ac_status=$?
30424   grep -v '^ *+' conftest.er1 >conftest.err
30425   rm -f conftest.er1
30426   cat conftest.err >&5
30427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428   (exit $ac_status); } && {
30429          test -z "$ac_c_werror_flag" ||
30430          test ! -s conftest.err
30431        } && test -s conftest$ac_exeext &&
30432        $as_test_x conftest$ac_exeext; then
30433   ac_cv_lib_ICE_IceConnectionNumber=yes
30434 else
30435   echo "$as_me: failed program was:" >&5
30436 sed 's/^/| /' conftest.$ac_ext >&5
30437
30438         ac_cv_lib_ICE_IceConnectionNumber=no
30439 fi
30440
30441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30442       conftest$ac_exeext conftest.$ac_ext
30443 LIBS=$ac_check_lib_save_LIBS
30444 fi
30445 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30446 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30447 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30448   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30449 fi
30450
30451   LDFLAGS=$ac_save_LDFLAGS
30452
30453 fi
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486 for ac_header in \
30487    assert.h \
30488    fcntl.h \
30489    grp.h \
30490    pwd.h \
30491    libc.h \
30492    limits.h \
30493    stdarg.h \
30494    stdlib.h \
30495    stdint.h \
30496    string.h \
30497    strings.h \
30498    termios.h \
30499    termcap.h \
30500    term.h \
30501    unistd.h \
30502    sys/bitypes.h \
30503    sys/byteorder.h \
30504    sys/ioctl.h \
30505    sys/select.h \
30506    sys/socket.h \
30507    sys/sockio.h \
30508    sys/stat.h \
30509    sys/time.h \
30510    sys/types.h \
30511    arpa/nameser.h \
30512    resolv.h \
30513    mtio.h \
30514    sys/mtio.h \
30515    sys/tape.h \
30516    regex.h \
30517
30518 do
30519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30521   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30524   echo $ECHO_N "(cached) $ECHO_C" >&6
30525 fi
30526 ac_res=`eval echo '${'$as_ac_Header'}'`
30527                { echo "$as_me:$LINENO: result: $ac_res" >&5
30528 echo "${ECHO_T}$ac_res" >&6; }
30529 else
30530   # Is the header compilable?
30531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30533 cat >conftest.$ac_ext <<_ACEOF
30534 /* confdefs.h.  */
30535 _ACEOF
30536 cat confdefs.h >>conftest.$ac_ext
30537 cat >>conftest.$ac_ext <<_ACEOF
30538 /* end confdefs.h.  */
30539 $ac_includes_default
30540 #include <$ac_header>
30541 _ACEOF
30542 rm -f conftest.$ac_objext
30543 if { (ac_try="$ac_compile"
30544 case "(($ac_try" in
30545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546   *) ac_try_echo=$ac_try;;
30547 esac
30548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549   (eval "$ac_compile") 2>conftest.er1
30550   ac_status=$?
30551   grep -v '^ *+' conftest.er1 >conftest.err
30552   rm -f conftest.er1
30553   cat conftest.err >&5
30554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555   (exit $ac_status); } && {
30556          test -z "$ac_c_werror_flag" ||
30557          test ! -s conftest.err
30558        } && test -s conftest.$ac_objext; then
30559   ac_header_compiler=yes
30560 else
30561   echo "$as_me: failed program was:" >&5
30562 sed 's/^/| /' conftest.$ac_ext >&5
30563
30564         ac_header_compiler=no
30565 fi
30566
30567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30569 echo "${ECHO_T}$ac_header_compiler" >&6; }
30570
30571 # Is the header present?
30572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30574 cat >conftest.$ac_ext <<_ACEOF
30575 /* confdefs.h.  */
30576 _ACEOF
30577 cat confdefs.h >>conftest.$ac_ext
30578 cat >>conftest.$ac_ext <<_ACEOF
30579 /* end confdefs.h.  */
30580 #include <$ac_header>
30581 _ACEOF
30582 if { (ac_try="$ac_cpp conftest.$ac_ext"
30583 case "(($ac_try" in
30584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585   *) ac_try_echo=$ac_try;;
30586 esac
30587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30589   ac_status=$?
30590   grep -v '^ *+' conftest.er1 >conftest.err
30591   rm -f conftest.er1
30592   cat conftest.err >&5
30593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594   (exit $ac_status); } >/dev/null && {
30595          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30596          test ! -s conftest.err
30597        }; then
30598   ac_header_preproc=yes
30599 else
30600   echo "$as_me: failed program was:" >&5
30601 sed 's/^/| /' conftest.$ac_ext >&5
30602
30603   ac_header_preproc=no
30604 fi
30605
30606 rm -f conftest.err conftest.$ac_ext
30607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30608 echo "${ECHO_T}$ac_header_preproc" >&6; }
30609
30610 # So?  What about this header?
30611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30612   yes:no: )
30613     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30617     ac_header_preproc=yes
30618     ;;
30619   no:yes:* )
30620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30622     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30623 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30624     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30626     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30627 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30630     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30632
30633     ;;
30634 esac
30635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30638   echo $ECHO_N "(cached) $ECHO_C" >&6
30639 else
30640   eval "$as_ac_Header=\$ac_header_preproc"
30641 fi
30642 ac_res=`eval echo '${'$as_ac_Header'}'`
30643                { echo "$as_me:$LINENO: result: $ac_res" >&5
30644 echo "${ECHO_T}$ac_res" >&6; }
30645
30646 fi
30647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30648   cat >>confdefs.h <<_ACEOF
30649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30650 _ACEOF
30651
30652 fi
30653
30654 done
30655
30656 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30657 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30658 if test "${ac_cv_header_stdc+set}" = set; then
30659   echo $ECHO_N "(cached) $ECHO_C" >&6
30660 else
30661   cat >conftest.$ac_ext <<_ACEOF
30662 /* confdefs.h.  */
30663 _ACEOF
30664 cat confdefs.h >>conftest.$ac_ext
30665 cat >>conftest.$ac_ext <<_ACEOF
30666 /* end confdefs.h.  */
30667 #include <stdlib.h>
30668 #include <stdarg.h>
30669 #include <string.h>
30670 #include <float.h>
30671
30672 int
30673 main ()
30674 {
30675
30676   ;
30677   return 0;
30678 }
30679 _ACEOF
30680 rm -f conftest.$ac_objext
30681 if { (ac_try="$ac_compile"
30682 case "(($ac_try" in
30683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684   *) ac_try_echo=$ac_try;;
30685 esac
30686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687   (eval "$ac_compile") 2>conftest.er1
30688   ac_status=$?
30689   grep -v '^ *+' conftest.er1 >conftest.err
30690   rm -f conftest.er1
30691   cat conftest.err >&5
30692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693   (exit $ac_status); } && {
30694          test -z "$ac_c_werror_flag" ||
30695          test ! -s conftest.err
30696        } && test -s conftest.$ac_objext; then
30697   ac_cv_header_stdc=yes
30698 else
30699   echo "$as_me: failed program was:" >&5
30700 sed 's/^/| /' conftest.$ac_ext >&5
30701
30702         ac_cv_header_stdc=no
30703 fi
30704
30705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30706
30707 if test $ac_cv_header_stdc = yes; then
30708   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30709   cat >conftest.$ac_ext <<_ACEOF
30710 /* confdefs.h.  */
30711 _ACEOF
30712 cat confdefs.h >>conftest.$ac_ext
30713 cat >>conftest.$ac_ext <<_ACEOF
30714 /* end confdefs.h.  */
30715 #include <string.h>
30716
30717 _ACEOF
30718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30719   $EGREP "memchr" >/dev/null 2>&1; then
30720   :
30721 else
30722   ac_cv_header_stdc=no
30723 fi
30724 rm -f conftest*
30725
30726 fi
30727
30728 if test $ac_cv_header_stdc = yes; then
30729   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30730   cat >conftest.$ac_ext <<_ACEOF
30731 /* confdefs.h.  */
30732 _ACEOF
30733 cat confdefs.h >>conftest.$ac_ext
30734 cat >>conftest.$ac_ext <<_ACEOF
30735 /* end confdefs.h.  */
30736 #include <stdlib.h>
30737
30738 _ACEOF
30739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30740   $EGREP "free" >/dev/null 2>&1; then
30741   :
30742 else
30743   ac_cv_header_stdc=no
30744 fi
30745 rm -f conftest*
30746
30747 fi
30748
30749 if test $ac_cv_header_stdc = yes; then
30750   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30751   if test "$cross_compiling" = yes; then
30752   :
30753 else
30754   cat >conftest.$ac_ext <<_ACEOF
30755 /* confdefs.h.  */
30756 _ACEOF
30757 cat confdefs.h >>conftest.$ac_ext
30758 cat >>conftest.$ac_ext <<_ACEOF
30759 /* end confdefs.h.  */
30760 #include <ctype.h>
30761 #include <stdlib.h>
30762 #if ((' ' & 0x0FF) == 0x020)
30763 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30764 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30765 #else
30766 # define ISLOWER(c) \
30767                    (('a' <= (c) && (c) <= 'i') \
30768                      || ('j' <= (c) && (c) <= 'r') \
30769                      || ('s' <= (c) && (c) <= 'z'))
30770 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30771 #endif
30772
30773 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30774 int
30775 main ()
30776 {
30777   int i;
30778   for (i = 0; i < 256; i++)
30779     if (XOR (islower (i), ISLOWER (i))
30780         || toupper (i) != TOUPPER (i))
30781       return 2;
30782   return 0;
30783 }
30784 _ACEOF
30785 rm -f conftest$ac_exeext
30786 if { (ac_try="$ac_link"
30787 case "(($ac_try" in
30788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789   *) ac_try_echo=$ac_try;;
30790 esac
30791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792   (eval "$ac_link") 2>&5
30793   ac_status=$?
30794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30796   { (case "(($ac_try" in
30797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30798   *) ac_try_echo=$ac_try;;
30799 esac
30800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30801   (eval "$ac_try") 2>&5
30802   ac_status=$?
30803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804   (exit $ac_status); }; }; then
30805   :
30806 else
30807   echo "$as_me: program exited with status $ac_status" >&5
30808 echo "$as_me: failed program was:" >&5
30809 sed 's/^/| /' conftest.$ac_ext >&5
30810
30811 ( exit $ac_status )
30812 ac_cv_header_stdc=no
30813 fi
30814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30815 fi
30816
30817
30818 fi
30819 fi
30820 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30821 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30822 if test $ac_cv_header_stdc = yes; then
30823
30824 cat >>confdefs.h <<\_ACEOF
30825 #define STDC_HEADERS 1
30826 _ACEOF
30827
30828 fi
30829
30830 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30831 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30832 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30833   echo $ECHO_N "(cached) $ECHO_C" >&6
30834 else
30835   cat >conftest.$ac_ext <<_ACEOF
30836 /* confdefs.h.  */
30837 _ACEOF
30838 cat confdefs.h >>conftest.$ac_ext
30839 cat >>conftest.$ac_ext <<_ACEOF
30840 /* end confdefs.h.  */
30841 #include <sys/types.h>
30842 int
30843 main ()
30844 {
30845 return makedev(0, 0);
30846   ;
30847   return 0;
30848 }
30849 _ACEOF
30850 rm -f conftest.$ac_objext conftest$ac_exeext
30851 if { (ac_try="$ac_link"
30852 case "(($ac_try" in
30853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30854   *) ac_try_echo=$ac_try;;
30855 esac
30856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30857   (eval "$ac_link") 2>conftest.er1
30858   ac_status=$?
30859   grep -v '^ *+' conftest.er1 >conftest.err
30860   rm -f conftest.er1
30861   cat conftest.err >&5
30862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863   (exit $ac_status); } && {
30864          test -z "$ac_c_werror_flag" ||
30865          test ! -s conftest.err
30866        } && test -s conftest$ac_exeext &&
30867        $as_test_x conftest$ac_exeext; then
30868   ac_cv_header_sys_types_h_makedev=yes
30869 else
30870   echo "$as_me: failed program was:" >&5
30871 sed 's/^/| /' conftest.$ac_ext >&5
30872
30873         ac_cv_header_sys_types_h_makedev=no
30874 fi
30875
30876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30877       conftest$ac_exeext conftest.$ac_ext
30878
30879 fi
30880 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30881 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30882
30883 if test $ac_cv_header_sys_types_h_makedev = no; then
30884 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30885   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30886 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30887 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30888   echo $ECHO_N "(cached) $ECHO_C" >&6
30889 fi
30890 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30891 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30892 else
30893   # Is the header compilable?
30894 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30895 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30896 cat >conftest.$ac_ext <<_ACEOF
30897 /* confdefs.h.  */
30898 _ACEOF
30899 cat confdefs.h >>conftest.$ac_ext
30900 cat >>conftest.$ac_ext <<_ACEOF
30901 /* end confdefs.h.  */
30902 $ac_includes_default
30903 #include <sys/mkdev.h>
30904 _ACEOF
30905 rm -f conftest.$ac_objext
30906 if { (ac_try="$ac_compile"
30907 case "(($ac_try" in
30908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30909   *) ac_try_echo=$ac_try;;
30910 esac
30911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30912   (eval "$ac_compile") 2>conftest.er1
30913   ac_status=$?
30914   grep -v '^ *+' conftest.er1 >conftest.err
30915   rm -f conftest.er1
30916   cat conftest.err >&5
30917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918   (exit $ac_status); } && {
30919          test -z "$ac_c_werror_flag" ||
30920          test ! -s conftest.err
30921        } && test -s conftest.$ac_objext; then
30922   ac_header_compiler=yes
30923 else
30924   echo "$as_me: failed program was:" >&5
30925 sed 's/^/| /' conftest.$ac_ext >&5
30926
30927         ac_header_compiler=no
30928 fi
30929
30930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30932 echo "${ECHO_T}$ac_header_compiler" >&6; }
30933
30934 # Is the header present?
30935 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30936 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30937 cat >conftest.$ac_ext <<_ACEOF
30938 /* confdefs.h.  */
30939 _ACEOF
30940 cat confdefs.h >>conftest.$ac_ext
30941 cat >>conftest.$ac_ext <<_ACEOF
30942 /* end confdefs.h.  */
30943 #include <sys/mkdev.h>
30944 _ACEOF
30945 if { (ac_try="$ac_cpp conftest.$ac_ext"
30946 case "(($ac_try" in
30947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948   *) ac_try_echo=$ac_try;;
30949 esac
30950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30952   ac_status=$?
30953   grep -v '^ *+' conftest.er1 >conftest.err
30954   rm -f conftest.er1
30955   cat conftest.err >&5
30956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957   (exit $ac_status); } >/dev/null && {
30958          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30959          test ! -s conftest.err
30960        }; then
30961   ac_header_preproc=yes
30962 else
30963   echo "$as_me: failed program was:" >&5
30964 sed 's/^/| /' conftest.$ac_ext >&5
30965
30966   ac_header_preproc=no
30967 fi
30968
30969 rm -f conftest.err conftest.$ac_ext
30970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30971 echo "${ECHO_T}$ac_header_preproc" >&6; }
30972
30973 # So?  What about this header?
30974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30975   yes:no: )
30976     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30977 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30978     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30979 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30980     ac_header_preproc=yes
30981     ;;
30982   no:yes:* )
30983     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30984 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30985     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
30986 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
30987     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30988 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30989     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
30990 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30991     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30992 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30993     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30994 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30995
30996     ;;
30997 esac
30998 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30999 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31000 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31001   echo $ECHO_N "(cached) $ECHO_C" >&6
31002 else
31003   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31004 fi
31005 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31006 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31007
31008 fi
31009 if test $ac_cv_header_sys_mkdev_h = yes; then
31010
31011 cat >>confdefs.h <<\_ACEOF
31012 #define MAJOR_IN_MKDEV 1
31013 _ACEOF
31014
31015 fi
31016
31017
31018
31019   if test $ac_cv_header_sys_mkdev_h = no; then
31020     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31021   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31022 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31023 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31024   echo $ECHO_N "(cached) $ECHO_C" >&6
31025 fi
31026 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31027 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31028 else
31029   # Is the header compilable?
31030 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31031 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31032 cat >conftest.$ac_ext <<_ACEOF
31033 /* confdefs.h.  */
31034 _ACEOF
31035 cat confdefs.h >>conftest.$ac_ext
31036 cat >>conftest.$ac_ext <<_ACEOF
31037 /* end confdefs.h.  */
31038 $ac_includes_default
31039 #include <sys/sysmacros.h>
31040 _ACEOF
31041 rm -f conftest.$ac_objext
31042 if { (ac_try="$ac_compile"
31043 case "(($ac_try" in
31044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31045   *) ac_try_echo=$ac_try;;
31046 esac
31047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31048   (eval "$ac_compile") 2>conftest.er1
31049   ac_status=$?
31050   grep -v '^ *+' conftest.er1 >conftest.err
31051   rm -f conftest.er1
31052   cat conftest.err >&5
31053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054   (exit $ac_status); } && {
31055          test -z "$ac_c_werror_flag" ||
31056          test ! -s conftest.err
31057        } && test -s conftest.$ac_objext; then
31058   ac_header_compiler=yes
31059 else
31060   echo "$as_me: failed program was:" >&5
31061 sed 's/^/| /' conftest.$ac_ext >&5
31062
31063         ac_header_compiler=no
31064 fi
31065
31066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31068 echo "${ECHO_T}$ac_header_compiler" >&6; }
31069
31070 # Is the header present?
31071 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31072 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31073 cat >conftest.$ac_ext <<_ACEOF
31074 /* confdefs.h.  */
31075 _ACEOF
31076 cat confdefs.h >>conftest.$ac_ext
31077 cat >>conftest.$ac_ext <<_ACEOF
31078 /* end confdefs.h.  */
31079 #include <sys/sysmacros.h>
31080 _ACEOF
31081 if { (ac_try="$ac_cpp conftest.$ac_ext"
31082 case "(($ac_try" in
31083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31084   *) ac_try_echo=$ac_try;;
31085 esac
31086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31088   ac_status=$?
31089   grep -v '^ *+' conftest.er1 >conftest.err
31090   rm -f conftest.er1
31091   cat conftest.err >&5
31092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093   (exit $ac_status); } >/dev/null && {
31094          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31095          test ! -s conftest.err
31096        }; then
31097   ac_header_preproc=yes
31098 else
31099   echo "$as_me: failed program was:" >&5
31100 sed 's/^/| /' conftest.$ac_ext >&5
31101
31102   ac_header_preproc=no
31103 fi
31104
31105 rm -f conftest.err conftest.$ac_ext
31106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31107 echo "${ECHO_T}$ac_header_preproc" >&6; }
31108
31109 # So?  What about this header?
31110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31111   yes:no: )
31112     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31113 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31114     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31115 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31116     ac_header_preproc=yes
31117     ;;
31118   no:yes:* )
31119     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31120 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31121     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31122 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31123     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31124 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31125     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31126 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31127     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31128 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31129     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31130 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31131
31132     ;;
31133 esac
31134 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31135 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31136 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31137   echo $ECHO_N "(cached) $ECHO_C" >&6
31138 else
31139   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31140 fi
31141 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31142 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31143
31144 fi
31145 if test $ac_cv_header_sys_sysmacros_h = yes; then
31146
31147 cat >>confdefs.h <<\_ACEOF
31148 #define MAJOR_IN_SYSMACROS 1
31149 _ACEOF
31150
31151 fi
31152
31153
31154   fi
31155 fi
31156
31157
31158
31159
31160
31161
31162 ac_header_dirent=no
31163 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31164   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31165 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31166 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31168   echo $ECHO_N "(cached) $ECHO_C" >&6
31169 else
31170   cat >conftest.$ac_ext <<_ACEOF
31171 /* confdefs.h.  */
31172 _ACEOF
31173 cat confdefs.h >>conftest.$ac_ext
31174 cat >>conftest.$ac_ext <<_ACEOF
31175 /* end confdefs.h.  */
31176 #include <sys/types.h>
31177 #include <$ac_hdr>
31178
31179 int
31180 main ()
31181 {
31182 if ((DIR *) 0)
31183 return 0;
31184   ;
31185   return 0;
31186 }
31187 _ACEOF
31188 rm -f conftest.$ac_objext
31189 if { (ac_try="$ac_compile"
31190 case "(($ac_try" in
31191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31192   *) ac_try_echo=$ac_try;;
31193 esac
31194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31195   (eval "$ac_compile") 2>conftest.er1
31196   ac_status=$?
31197   grep -v '^ *+' conftest.er1 >conftest.err
31198   rm -f conftest.er1
31199   cat conftest.err >&5
31200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201   (exit $ac_status); } && {
31202          test -z "$ac_c_werror_flag" ||
31203          test ! -s conftest.err
31204        } && test -s conftest.$ac_objext; then
31205   eval "$as_ac_Header=yes"
31206 else
31207   echo "$as_me: failed program was:" >&5
31208 sed 's/^/| /' conftest.$ac_ext >&5
31209
31210         eval "$as_ac_Header=no"
31211 fi
31212
31213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31214 fi
31215 ac_res=`eval echo '${'$as_ac_Header'}'`
31216                { echo "$as_me:$LINENO: result: $ac_res" >&5
31217 echo "${ECHO_T}$ac_res" >&6; }
31218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31219   cat >>confdefs.h <<_ACEOF
31220 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31221 _ACEOF
31222
31223 ac_header_dirent=$ac_hdr; break
31224 fi
31225
31226 done
31227 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31228 if test $ac_header_dirent = dirent.h; then
31229   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31230 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31231 if test "${ac_cv_search_opendir+set}" = set; then
31232   echo $ECHO_N "(cached) $ECHO_C" >&6
31233 else
31234   ac_func_search_save_LIBS=$LIBS
31235 cat >conftest.$ac_ext <<_ACEOF
31236 /* confdefs.h.  */
31237 _ACEOF
31238 cat confdefs.h >>conftest.$ac_ext
31239 cat >>conftest.$ac_ext <<_ACEOF
31240 /* end confdefs.h.  */
31241
31242 /* Override any GCC internal prototype to avoid an error.
31243    Use char because int might match the return type of a GCC
31244    builtin and then its argument prototype would still apply.  */
31245 #ifdef __cplusplus
31246 extern "C"
31247 #endif
31248 char opendir ();
31249 int
31250 main ()
31251 {
31252 return opendir ();
31253   ;
31254   return 0;
31255 }
31256 _ACEOF
31257 for ac_lib in '' dir; do
31258   if test -z "$ac_lib"; then
31259     ac_res="none required"
31260   else
31261     ac_res=-l$ac_lib
31262     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31263   fi
31264   rm -f conftest.$ac_objext conftest$ac_exeext
31265 if { (ac_try="$ac_link"
31266 case "(($ac_try" in
31267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31268   *) ac_try_echo=$ac_try;;
31269 esac
31270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31271   (eval "$ac_link") 2>conftest.er1
31272   ac_status=$?
31273   grep -v '^ *+' conftest.er1 >conftest.err
31274   rm -f conftest.er1
31275   cat conftest.err >&5
31276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277   (exit $ac_status); } && {
31278          test -z "$ac_c_werror_flag" ||
31279          test ! -s conftest.err
31280        } && test -s conftest$ac_exeext &&
31281        $as_test_x conftest$ac_exeext; then
31282   ac_cv_search_opendir=$ac_res
31283 else
31284   echo "$as_me: failed program was:" >&5
31285 sed 's/^/| /' conftest.$ac_ext >&5
31286
31287
31288 fi
31289
31290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31291       conftest$ac_exeext
31292   if test "${ac_cv_search_opendir+set}" = set; then
31293   break
31294 fi
31295 done
31296 if test "${ac_cv_search_opendir+set}" = set; then
31297   :
31298 else
31299   ac_cv_search_opendir=no
31300 fi
31301 rm conftest.$ac_ext
31302 LIBS=$ac_func_search_save_LIBS
31303 fi
31304 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31305 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31306 ac_res=$ac_cv_search_opendir
31307 if test "$ac_res" != no; then
31308   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31309
31310 fi
31311
31312 else
31313   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31314 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31315 if test "${ac_cv_search_opendir+set}" = set; then
31316   echo $ECHO_N "(cached) $ECHO_C" >&6
31317 else
31318   ac_func_search_save_LIBS=$LIBS
31319 cat >conftest.$ac_ext <<_ACEOF
31320 /* confdefs.h.  */
31321 _ACEOF
31322 cat confdefs.h >>conftest.$ac_ext
31323 cat >>conftest.$ac_ext <<_ACEOF
31324 /* end confdefs.h.  */
31325
31326 /* Override any GCC internal prototype to avoid an error.
31327    Use char because int might match the return type of a GCC
31328    builtin and then its argument prototype would still apply.  */
31329 #ifdef __cplusplus
31330 extern "C"
31331 #endif
31332 char opendir ();
31333 int
31334 main ()
31335 {
31336 return opendir ();
31337   ;
31338   return 0;
31339 }
31340 _ACEOF
31341 for ac_lib in '' x; do
31342   if test -z "$ac_lib"; then
31343     ac_res="none required"
31344   else
31345     ac_res=-l$ac_lib
31346     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31347   fi
31348   rm -f conftest.$ac_objext conftest$ac_exeext
31349 if { (ac_try="$ac_link"
31350 case "(($ac_try" in
31351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31352   *) ac_try_echo=$ac_try;;
31353 esac
31354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31355   (eval "$ac_link") 2>conftest.er1
31356   ac_status=$?
31357   grep -v '^ *+' conftest.er1 >conftest.err
31358   rm -f conftest.er1
31359   cat conftest.err >&5
31360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361   (exit $ac_status); } && {
31362          test -z "$ac_c_werror_flag" ||
31363          test ! -s conftest.err
31364        } && test -s conftest$ac_exeext &&
31365        $as_test_x conftest$ac_exeext; then
31366   ac_cv_search_opendir=$ac_res
31367 else
31368   echo "$as_me: failed program was:" >&5
31369 sed 's/^/| /' conftest.$ac_ext >&5
31370
31371
31372 fi
31373
31374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31375       conftest$ac_exeext
31376   if test "${ac_cv_search_opendir+set}" = set; then
31377   break
31378 fi
31379 done
31380 if test "${ac_cv_search_opendir+set}" = set; then
31381   :
31382 else
31383   ac_cv_search_opendir=no
31384 fi
31385 rm conftest.$ac_ext
31386 LIBS=$ac_func_search_save_LIBS
31387 fi
31388 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31389 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31390 ac_res=$ac_cv_search_opendir
31391 if test "$ac_res" != no; then
31392   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31393
31394 fi
31395
31396 fi
31397
31398 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31399 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31400 if test "${ac_cv_header_stat_broken+set}" = set; then
31401   echo $ECHO_N "(cached) $ECHO_C" >&6
31402 else
31403   cat >conftest.$ac_ext <<_ACEOF
31404 /* confdefs.h.  */
31405 _ACEOF
31406 cat confdefs.h >>conftest.$ac_ext
31407 cat >>conftest.$ac_ext <<_ACEOF
31408 /* end confdefs.h.  */
31409 #include <sys/types.h>
31410 #include <sys/stat.h>
31411
31412 #if defined S_ISBLK && defined S_IFDIR
31413 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31414 #endif
31415
31416 #if defined S_ISBLK && defined S_IFCHR
31417 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31418 #endif
31419
31420 #if defined S_ISLNK && defined S_IFREG
31421 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31422 #endif
31423
31424 #if defined S_ISSOCK && defined S_IFREG
31425 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31426 #endif
31427
31428 _ACEOF
31429 rm -f conftest.$ac_objext
31430 if { (ac_try="$ac_compile"
31431 case "(($ac_try" in
31432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433   *) ac_try_echo=$ac_try;;
31434 esac
31435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31436   (eval "$ac_compile") 2>conftest.er1
31437   ac_status=$?
31438   grep -v '^ *+' conftest.er1 >conftest.err
31439   rm -f conftest.er1
31440   cat conftest.err >&5
31441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442   (exit $ac_status); } && {
31443          test -z "$ac_c_werror_flag" ||
31444          test ! -s conftest.err
31445        } && test -s conftest.$ac_objext; then
31446   ac_cv_header_stat_broken=no
31447 else
31448   echo "$as_me: failed program was:" >&5
31449 sed 's/^/| /' conftest.$ac_ext >&5
31450
31451         ac_cv_header_stat_broken=yes
31452 fi
31453
31454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31455 fi
31456 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31457 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31458 if test $ac_cv_header_stat_broken = yes; then
31459
31460 cat >>confdefs.h <<\_ACEOF
31461 #define STAT_MACROS_BROKEN 1
31462 _ACEOF
31463
31464 fi
31465
31466 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31467 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31468 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31469   echo $ECHO_N "(cached) $ECHO_C" >&6
31470 else
31471   cat >conftest.$ac_ext <<_ACEOF
31472 /* confdefs.h.  */
31473 _ACEOF
31474 cat confdefs.h >>conftest.$ac_ext
31475 cat >>conftest.$ac_ext <<_ACEOF
31476 /* end confdefs.h.  */
31477 #include <sys/types.h>
31478 #include <sys/wait.h>
31479 #ifndef WEXITSTATUS
31480 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31481 #endif
31482 #ifndef WIFEXITED
31483 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31484 #endif
31485
31486 int
31487 main ()
31488 {
31489   int s;
31490   wait (&s);
31491   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31492   ;
31493   return 0;
31494 }
31495 _ACEOF
31496 rm -f conftest.$ac_objext
31497 if { (ac_try="$ac_compile"
31498 case "(($ac_try" in
31499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31500   *) ac_try_echo=$ac_try;;
31501 esac
31502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31503   (eval "$ac_compile") 2>conftest.er1
31504   ac_status=$?
31505   grep -v '^ *+' conftest.er1 >conftest.err
31506   rm -f conftest.er1
31507   cat conftest.err >&5
31508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509   (exit $ac_status); } && {
31510          test -z "$ac_c_werror_flag" ||
31511          test ! -s conftest.err
31512        } && test -s conftest.$ac_objext; then
31513   ac_cv_header_sys_wait_h=yes
31514 else
31515   echo "$as_me: failed program was:" >&5
31516 sed 's/^/| /' conftest.$ac_ext >&5
31517
31518         ac_cv_header_sys_wait_h=no
31519 fi
31520
31521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31522 fi
31523 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31524 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31525 if test $ac_cv_header_sys_wait_h = yes; then
31526
31527 cat >>confdefs.h <<\_ACEOF
31528 #define HAVE_SYS_WAIT_H 1
31529 _ACEOF
31530
31531 fi
31532
31533 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31534 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31535 if test "${ac_cv_header_time+set}" = set; then
31536   echo $ECHO_N "(cached) $ECHO_C" >&6
31537 else
31538   cat >conftest.$ac_ext <<_ACEOF
31539 /* confdefs.h.  */
31540 _ACEOF
31541 cat confdefs.h >>conftest.$ac_ext
31542 cat >>conftest.$ac_ext <<_ACEOF
31543 /* end confdefs.h.  */
31544 #include <sys/types.h>
31545 #include <sys/time.h>
31546 #include <time.h>
31547
31548 int
31549 main ()
31550 {
31551 if ((struct tm *) 0)
31552 return 0;
31553   ;
31554   return 0;
31555 }
31556 _ACEOF
31557 rm -f conftest.$ac_objext
31558 if { (ac_try="$ac_compile"
31559 case "(($ac_try" in
31560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561   *) ac_try_echo=$ac_try;;
31562 esac
31563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564   (eval "$ac_compile") 2>conftest.er1
31565   ac_status=$?
31566   grep -v '^ *+' conftest.er1 >conftest.err
31567   rm -f conftest.er1
31568   cat conftest.err >&5
31569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31570   (exit $ac_status); } && {
31571          test -z "$ac_c_werror_flag" ||
31572          test ! -s conftest.err
31573        } && test -s conftest.$ac_objext; then
31574   ac_cv_header_time=yes
31575 else
31576   echo "$as_me: failed program was:" >&5
31577 sed 's/^/| /' conftest.$ac_ext >&5
31578
31579         ac_cv_header_time=no
31580 fi
31581
31582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31583 fi
31584 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31585 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31586 if test $ac_cv_header_time = yes; then
31587
31588 cat >>confdefs.h <<\_ACEOF
31589 #define TIME_WITH_SYS_TIME 1
31590 _ACEOF
31591
31592 fi
31593
31594 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31595 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31596 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31597   echo $ECHO_N "(cached) $ECHO_C" >&6
31598 else
31599   cat >conftest.$ac_ext <<_ACEOF
31600 /* confdefs.h.  */
31601 _ACEOF
31602 cat confdefs.h >>conftest.$ac_ext
31603 cat >>conftest.$ac_ext <<_ACEOF
31604 /* end confdefs.h.  */
31605 $ac_includes_default
31606 int
31607 main ()
31608 {
31609 static struct stat ac_aggr;
31610 if (ac_aggr.st_blksize)
31611 return 0;
31612   ;
31613   return 0;
31614 }
31615 _ACEOF
31616 rm -f conftest.$ac_objext
31617 if { (ac_try="$ac_compile"
31618 case "(($ac_try" in
31619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31620   *) ac_try_echo=$ac_try;;
31621 esac
31622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623   (eval "$ac_compile") 2>conftest.er1
31624   ac_status=$?
31625   grep -v '^ *+' conftest.er1 >conftest.err
31626   rm -f conftest.er1
31627   cat conftest.err >&5
31628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629   (exit $ac_status); } && {
31630          test -z "$ac_c_werror_flag" ||
31631          test ! -s conftest.err
31632        } && test -s conftest.$ac_objext; then
31633   ac_cv_member_struct_stat_st_blksize=yes
31634 else
31635   echo "$as_me: failed program was:" >&5
31636 sed 's/^/| /' conftest.$ac_ext >&5
31637
31638         cat >conftest.$ac_ext <<_ACEOF
31639 /* confdefs.h.  */
31640 _ACEOF
31641 cat confdefs.h >>conftest.$ac_ext
31642 cat >>conftest.$ac_ext <<_ACEOF
31643 /* end confdefs.h.  */
31644 $ac_includes_default
31645 int
31646 main ()
31647 {
31648 static struct stat ac_aggr;
31649 if (sizeof ac_aggr.st_blksize)
31650 return 0;
31651   ;
31652   return 0;
31653 }
31654 _ACEOF
31655 rm -f conftest.$ac_objext
31656 if { (ac_try="$ac_compile"
31657 case "(($ac_try" in
31658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31659   *) ac_try_echo=$ac_try;;
31660 esac
31661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31662   (eval "$ac_compile") 2>conftest.er1
31663   ac_status=$?
31664   grep -v '^ *+' conftest.er1 >conftest.err
31665   rm -f conftest.er1
31666   cat conftest.err >&5
31667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668   (exit $ac_status); } && {
31669          test -z "$ac_c_werror_flag" ||
31670          test ! -s conftest.err
31671        } && test -s conftest.$ac_objext; then
31672   ac_cv_member_struct_stat_st_blksize=yes
31673 else
31674   echo "$as_me: failed program was:" >&5
31675 sed 's/^/| /' conftest.$ac_ext >&5
31676
31677         ac_cv_member_struct_stat_st_blksize=no
31678 fi
31679
31680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31681 fi
31682
31683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31684 fi
31685 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31686 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31687 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31688
31689 cat >>confdefs.h <<_ACEOF
31690 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31691 _ACEOF
31692
31693
31694 cat >>confdefs.h <<\_ACEOF
31695 #define HAVE_ST_BLKSIZE 1
31696 _ACEOF
31697
31698 fi
31699
31700
31701 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31702 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31703 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31704   echo $ECHO_N "(cached) $ECHO_C" >&6
31705 else
31706   cat >conftest.$ac_ext <<_ACEOF
31707 /* confdefs.h.  */
31708 _ACEOF
31709 cat confdefs.h >>conftest.$ac_ext
31710 cat >>conftest.$ac_ext <<_ACEOF
31711 /* end confdefs.h.  */
31712 $ac_includes_default
31713 int
31714 main ()
31715 {
31716 static struct stat ac_aggr;
31717 if (ac_aggr.st_blocks)
31718 return 0;
31719   ;
31720   return 0;
31721 }
31722 _ACEOF
31723 rm -f conftest.$ac_objext
31724 if { (ac_try="$ac_compile"
31725 case "(($ac_try" in
31726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31727   *) ac_try_echo=$ac_try;;
31728 esac
31729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31730   (eval "$ac_compile") 2>conftest.er1
31731   ac_status=$?
31732   grep -v '^ *+' conftest.er1 >conftest.err
31733   rm -f conftest.er1
31734   cat conftest.err >&5
31735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31736   (exit $ac_status); } && {
31737          test -z "$ac_c_werror_flag" ||
31738          test ! -s conftest.err
31739        } && test -s conftest.$ac_objext; then
31740   ac_cv_member_struct_stat_st_blocks=yes
31741 else
31742   echo "$as_me: failed program was:" >&5
31743 sed 's/^/| /' conftest.$ac_ext >&5
31744
31745         cat >conftest.$ac_ext <<_ACEOF
31746 /* confdefs.h.  */
31747 _ACEOF
31748 cat confdefs.h >>conftest.$ac_ext
31749 cat >>conftest.$ac_ext <<_ACEOF
31750 /* end confdefs.h.  */
31751 $ac_includes_default
31752 int
31753 main ()
31754 {
31755 static struct stat ac_aggr;
31756 if (sizeof ac_aggr.st_blocks)
31757 return 0;
31758   ;
31759   return 0;
31760 }
31761 _ACEOF
31762 rm -f conftest.$ac_objext
31763 if { (ac_try="$ac_compile"
31764 case "(($ac_try" in
31765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31766   *) ac_try_echo=$ac_try;;
31767 esac
31768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31769   (eval "$ac_compile") 2>conftest.er1
31770   ac_status=$?
31771   grep -v '^ *+' conftest.er1 >conftest.err
31772   rm -f conftest.er1
31773   cat conftest.err >&5
31774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775   (exit $ac_status); } && {
31776          test -z "$ac_c_werror_flag" ||
31777          test ! -s conftest.err
31778        } && test -s conftest.$ac_objext; then
31779   ac_cv_member_struct_stat_st_blocks=yes
31780 else
31781   echo "$as_me: failed program was:" >&5
31782 sed 's/^/| /' conftest.$ac_ext >&5
31783
31784         ac_cv_member_struct_stat_st_blocks=no
31785 fi
31786
31787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31788 fi
31789
31790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31791 fi
31792 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31793 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31794 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31795
31796 cat >>confdefs.h <<_ACEOF
31797 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31798 _ACEOF
31799
31800
31801 cat >>confdefs.h <<\_ACEOF
31802 #define HAVE_ST_BLOCKS 1
31803 _ACEOF
31804
31805 else
31806   case " $LIBOBJS " in
31807   *" fileblocks.$ac_objext "* ) ;;
31808   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31809  ;;
31810 esac
31811
31812 fi
31813
31814
31815 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31816 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31817 if test "${ac_cv_struct_tm+set}" = set; then
31818   echo $ECHO_N "(cached) $ECHO_C" >&6
31819 else
31820   cat >conftest.$ac_ext <<_ACEOF
31821 /* confdefs.h.  */
31822 _ACEOF
31823 cat confdefs.h >>conftest.$ac_ext
31824 cat >>conftest.$ac_ext <<_ACEOF
31825 /* end confdefs.h.  */
31826 #include <sys/types.h>
31827 #include <time.h>
31828
31829 int
31830 main ()
31831 {
31832 struct tm tm;
31833                                      int *p = &tm.tm_sec;
31834                                      return !p;
31835   ;
31836   return 0;
31837 }
31838 _ACEOF
31839 rm -f conftest.$ac_objext
31840 if { (ac_try="$ac_compile"
31841 case "(($ac_try" in
31842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843   *) ac_try_echo=$ac_try;;
31844 esac
31845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846   (eval "$ac_compile") 2>conftest.er1
31847   ac_status=$?
31848   grep -v '^ *+' conftest.er1 >conftest.err
31849   rm -f conftest.er1
31850   cat conftest.err >&5
31851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852   (exit $ac_status); } && {
31853          test -z "$ac_c_werror_flag" ||
31854          test ! -s conftest.err
31855        } && test -s conftest.$ac_objext; then
31856   ac_cv_struct_tm=time.h
31857 else
31858   echo "$as_me: failed program was:" >&5
31859 sed 's/^/| /' conftest.$ac_ext >&5
31860
31861         ac_cv_struct_tm=sys/time.h
31862 fi
31863
31864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31865 fi
31866 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31867 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31868 if test $ac_cv_struct_tm = sys/time.h; then
31869
31870 cat >>confdefs.h <<\_ACEOF
31871 #define TM_IN_SYS_TIME 1
31872 _ACEOF
31873
31874 fi
31875
31876 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31877 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31878 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31879   echo $ECHO_N "(cached) $ECHO_C" >&6
31880 else
31881   cat >conftest.$ac_ext <<_ACEOF
31882 /* confdefs.h.  */
31883 _ACEOF
31884 cat confdefs.h >>conftest.$ac_ext
31885 cat >>conftest.$ac_ext <<_ACEOF
31886 /* end confdefs.h.  */
31887 #include <sys/types.h>
31888 #include <$ac_cv_struct_tm>
31889
31890
31891 int
31892 main ()
31893 {
31894 static struct tm ac_aggr;
31895 if (ac_aggr.tm_zone)
31896 return 0;
31897   ;
31898   return 0;
31899 }
31900 _ACEOF
31901 rm -f conftest.$ac_objext
31902 if { (ac_try="$ac_compile"
31903 case "(($ac_try" in
31904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31905   *) ac_try_echo=$ac_try;;
31906 esac
31907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31908   (eval "$ac_compile") 2>conftest.er1
31909   ac_status=$?
31910   grep -v '^ *+' conftest.er1 >conftest.err
31911   rm -f conftest.er1
31912   cat conftest.err >&5
31913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914   (exit $ac_status); } && {
31915          test -z "$ac_c_werror_flag" ||
31916          test ! -s conftest.err
31917        } && test -s conftest.$ac_objext; then
31918   ac_cv_member_struct_tm_tm_zone=yes
31919 else
31920   echo "$as_me: failed program was:" >&5
31921 sed 's/^/| /' conftest.$ac_ext >&5
31922
31923         cat >conftest.$ac_ext <<_ACEOF
31924 /* confdefs.h.  */
31925 _ACEOF
31926 cat confdefs.h >>conftest.$ac_ext
31927 cat >>conftest.$ac_ext <<_ACEOF
31928 /* end confdefs.h.  */
31929 #include <sys/types.h>
31930 #include <$ac_cv_struct_tm>
31931
31932
31933 int
31934 main ()
31935 {
31936 static struct tm ac_aggr;
31937 if (sizeof ac_aggr.tm_zone)
31938 return 0;
31939   ;
31940   return 0;
31941 }
31942 _ACEOF
31943 rm -f conftest.$ac_objext
31944 if { (ac_try="$ac_compile"
31945 case "(($ac_try" in
31946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31947   *) ac_try_echo=$ac_try;;
31948 esac
31949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31950   (eval "$ac_compile") 2>conftest.er1
31951   ac_status=$?
31952   grep -v '^ *+' conftest.er1 >conftest.err
31953   rm -f conftest.er1
31954   cat conftest.err >&5
31955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956   (exit $ac_status); } && {
31957          test -z "$ac_c_werror_flag" ||
31958          test ! -s conftest.err
31959        } && test -s conftest.$ac_objext; then
31960   ac_cv_member_struct_tm_tm_zone=yes
31961 else
31962   echo "$as_me: failed program was:" >&5
31963 sed 's/^/| /' conftest.$ac_ext >&5
31964
31965         ac_cv_member_struct_tm_tm_zone=no
31966 fi
31967
31968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31969 fi
31970
31971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31972 fi
31973 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31974 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31975 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31976
31977 cat >>confdefs.h <<_ACEOF
31978 #define HAVE_STRUCT_TM_TM_ZONE 1
31979 _ACEOF
31980
31981
31982 fi
31983
31984 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31985
31986 cat >>confdefs.h <<\_ACEOF
31987 #define HAVE_TM_ZONE 1
31988 _ACEOF
31989
31990 else
31991   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31992 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31993 if test "${ac_cv_have_decl_tzname+set}" = set; then
31994   echo $ECHO_N "(cached) $ECHO_C" >&6
31995 else
31996   cat >conftest.$ac_ext <<_ACEOF
31997 /* confdefs.h.  */
31998 _ACEOF
31999 cat confdefs.h >>conftest.$ac_ext
32000 cat >>conftest.$ac_ext <<_ACEOF
32001 /* end confdefs.h.  */
32002 #include <time.h>
32003
32004 int
32005 main ()
32006 {
32007 #ifndef tzname
32008   (void) tzname;
32009 #endif
32010
32011   ;
32012   return 0;
32013 }
32014 _ACEOF
32015 rm -f conftest.$ac_objext
32016 if { (ac_try="$ac_compile"
32017 case "(($ac_try" in
32018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019   *) ac_try_echo=$ac_try;;
32020 esac
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022   (eval "$ac_compile") 2>conftest.er1
32023   ac_status=$?
32024   grep -v '^ *+' conftest.er1 >conftest.err
32025   rm -f conftest.er1
32026   cat conftest.err >&5
32027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028   (exit $ac_status); } && {
32029          test -z "$ac_c_werror_flag" ||
32030          test ! -s conftest.err
32031        } && test -s conftest.$ac_objext; then
32032   ac_cv_have_decl_tzname=yes
32033 else
32034   echo "$as_me: failed program was:" >&5
32035 sed 's/^/| /' conftest.$ac_ext >&5
32036
32037         ac_cv_have_decl_tzname=no
32038 fi
32039
32040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32041 fi
32042 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32043 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32044 if test $ac_cv_have_decl_tzname = yes; then
32045
32046 cat >>confdefs.h <<_ACEOF
32047 #define HAVE_DECL_TZNAME 1
32048 _ACEOF
32049
32050
32051 else
32052   cat >>confdefs.h <<_ACEOF
32053 #define HAVE_DECL_TZNAME 0
32054 _ACEOF
32055
32056
32057 fi
32058
32059
32060   { echo "$as_me:$LINENO: checking for tzname" >&5
32061 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32062 if test "${ac_cv_var_tzname+set}" = set; then
32063   echo $ECHO_N "(cached) $ECHO_C" >&6
32064 else
32065   cat >conftest.$ac_ext <<_ACEOF
32066 /* confdefs.h.  */
32067 _ACEOF
32068 cat confdefs.h >>conftest.$ac_ext
32069 cat >>conftest.$ac_ext <<_ACEOF
32070 /* end confdefs.h.  */
32071 #include <time.h>
32072 #if !HAVE_DECL_TZNAME
32073 extern char *tzname[];
32074 #endif
32075
32076 int
32077 main ()
32078 {
32079 return tzname[0][0];
32080   ;
32081   return 0;
32082 }
32083 _ACEOF
32084 rm -f conftest.$ac_objext conftest$ac_exeext
32085 if { (ac_try="$ac_link"
32086 case "(($ac_try" in
32087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32088   *) ac_try_echo=$ac_try;;
32089 esac
32090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32091   (eval "$ac_link") 2>conftest.er1
32092   ac_status=$?
32093   grep -v '^ *+' conftest.er1 >conftest.err
32094   rm -f conftest.er1
32095   cat conftest.err >&5
32096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097   (exit $ac_status); } && {
32098          test -z "$ac_c_werror_flag" ||
32099          test ! -s conftest.err
32100        } && test -s conftest$ac_exeext &&
32101        $as_test_x conftest$ac_exeext; then
32102   ac_cv_var_tzname=yes
32103 else
32104   echo "$as_me: failed program was:" >&5
32105 sed 's/^/| /' conftest.$ac_ext >&5
32106
32107         ac_cv_var_tzname=no
32108 fi
32109
32110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32111       conftest$ac_exeext conftest.$ac_ext
32112 fi
32113 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32114 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32115   if test $ac_cv_var_tzname = yes; then
32116
32117 cat >>confdefs.h <<\_ACEOF
32118 #define HAVE_TZNAME 1
32119 _ACEOF
32120
32121   fi
32122 fi
32123
32124
32125 { echo "$as_me:$LINENO: checking for utime.h" >&5
32126 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32127 if test "${ba_cv_header_utime_h+set}" = set; then
32128   echo $ECHO_N "(cached) $ECHO_C" >&6
32129 else
32130
32131        cat >conftest.$ac_ext <<_ACEOF
32132 /* confdefs.h.  */
32133 _ACEOF
32134 cat confdefs.h >>conftest.$ac_ext
32135 cat >>conftest.$ac_ext <<_ACEOF
32136 /* end confdefs.h.  */
32137
32138               #include <sys/types.h>
32139               #include <utime.h>
32140
32141 int
32142 main ()
32143 {
32144
32145               struct utimbuf foo
32146
32147   ;
32148   return 0;
32149 }
32150 _ACEOF
32151 rm -f conftest.$ac_objext
32152 if { (ac_try="$ac_compile"
32153 case "(($ac_try" in
32154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155   *) ac_try_echo=$ac_try;;
32156 esac
32157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32158   (eval "$ac_compile") 2>conftest.er1
32159   ac_status=$?
32160   grep -v '^ *+' conftest.er1 >conftest.err
32161   rm -f conftest.er1
32162   cat conftest.err >&5
32163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164   (exit $ac_status); } && {
32165          test -z "$ac_c_werror_flag" ||
32166          test ! -s conftest.err
32167        } && test -s conftest.$ac_objext; then
32168
32169               ba_cv_header_utime_h=yes
32170
32171 else
32172   echo "$as_me: failed program was:" >&5
32173 sed 's/^/| /' conftest.$ac_ext >&5
32174
32175
32176               ba_cv_header_utime_h=no
32177
32178
32179 fi
32180
32181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32182
32183
32184 fi
32185 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32186 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32187 test $ba_cv_header_utime_h = yes &&
32188 cat >>confdefs.h <<\_ACEOF
32189 #define HAVE_UTIME_H 1
32190 _ACEOF
32191
32192
32193 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32194 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32195 if test "${ba_cv_header_socklen_t+set}" = set; then
32196   echo $ECHO_N "(cached) $ECHO_C" >&6
32197 else
32198
32199        cat >conftest.$ac_ext <<_ACEOF
32200 /* confdefs.h.  */
32201 _ACEOF
32202 cat confdefs.h >>conftest.$ac_ext
32203 cat >>conftest.$ac_ext <<_ACEOF
32204 /* end confdefs.h.  */
32205
32206               #include <sys/types.h>
32207               #include <sys/socket.h>
32208
32209 int
32210 main ()
32211 {
32212
32213               socklen_t x
32214
32215   ;
32216   return 0;
32217 }
32218 _ACEOF
32219 rm -f conftest.$ac_objext
32220 if { (ac_try="$ac_compile"
32221 case "(($ac_try" in
32222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32223   *) ac_try_echo=$ac_try;;
32224 esac
32225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32226   (eval "$ac_compile") 2>conftest.er1
32227   ac_status=$?
32228   grep -v '^ *+' conftest.er1 >conftest.err
32229   rm -f conftest.er1
32230   cat conftest.err >&5
32231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232   (exit $ac_status); } && {
32233          test -z "$ac_c_werror_flag" ||
32234          test ! -s conftest.err
32235        } && test -s conftest.$ac_objext; then
32236
32237              ba_cv_header_socklen_t=yes
32238
32239 else
32240   echo "$as_me: failed program was:" >&5
32241 sed 's/^/| /' conftest.$ac_ext >&5
32242
32243
32244              ba_cv_header_socklen_t=no
32245
32246
32247 fi
32248
32249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32250
32251
32252 fi
32253 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32254 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32255 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32256 #define HAVE_SOCKLEN_T 1
32257 _ACEOF
32258
32259
32260 { echo "$as_me:$LINENO: checking for bigendian" >&5
32261 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32262 if test "${ba_cv_bigendian+set}" = set; then
32263   echo $ECHO_N "(cached) $ECHO_C" >&6
32264 else
32265
32266        if test "$cross_compiling" = yes; then
32267
32268              ba_cv_bigendian=no
32269
32270
32271 else
32272   cat >conftest.$ac_ext <<_ACEOF
32273 /* confdefs.h.  */
32274 _ACEOF
32275 cat confdefs.h >>conftest.$ac_ext
32276 cat >>conftest.$ac_ext <<_ACEOF
32277 /* end confdefs.h.  */
32278
32279               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32280
32281 _ACEOF
32282 rm -f conftest$ac_exeext
32283 if { (ac_try="$ac_link"
32284 case "(($ac_try" in
32285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32286   *) ac_try_echo=$ac_try;;
32287 esac
32288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32289   (eval "$ac_link") 2>&5
32290   ac_status=$?
32291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32293   { (case "(($ac_try" in
32294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32295   *) ac_try_echo=$ac_try;;
32296 esac
32297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32298   (eval "$ac_try") 2>&5
32299   ac_status=$?
32300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301   (exit $ac_status); }; }; then
32302
32303              ba_cv_bigendian=yes
32304
32305 else
32306   echo "$as_me: program exited with status $ac_status" >&5
32307 echo "$as_me: failed program was:" >&5
32308 sed 's/^/| /' conftest.$ac_ext >&5
32309
32310 ( exit $ac_status )
32311
32312              ba_cv_bigendian=no
32313
32314 fi
32315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32316 fi
32317
32318
32319
32320
32321 fi
32322 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32323 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32324 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32325 #define HAVE_BIGENDIAN 1
32326 _ACEOF
32327
32328
32329 ac_ext=cpp
32330 ac_cpp='$CXXCPP $CPPFLAGS'
32331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32334
32335 { echo "$as_me:$LINENO: checking for typeof" >&5
32336 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32337 if test "${ba_cv_have_typeof+set}" = set; then
32338   echo $ECHO_N "(cached) $ECHO_C" >&6
32339 else
32340
32341        if test "$cross_compiling" = yes; then
32342
32343               ba_cv_have_typeof=no
32344
32345
32346 else
32347   cat >conftest.$ac_ext <<_ACEOF
32348 /* confdefs.h.  */
32349 _ACEOF
32350 cat confdefs.h >>conftest.$ac_ext
32351 cat >>conftest.$ac_ext <<_ACEOF
32352 /* end confdefs.h.  */
32353
32354               main(){char *a = 0; a = (typeof a)a;}
32355
32356 _ACEOF
32357 rm -f conftest$ac_exeext
32358 if { (ac_try="$ac_link"
32359 case "(($ac_try" in
32360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361   *) ac_try_echo=$ac_try;;
32362 esac
32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364   (eval "$ac_link") 2>&5
32365   ac_status=$?
32366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32368   { (case "(($ac_try" in
32369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370   *) ac_try_echo=$ac_try;;
32371 esac
32372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373   (eval "$ac_try") 2>&5
32374   ac_status=$?
32375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376   (exit $ac_status); }; }; then
32377
32378               ba_cv_have_typeof=yes
32379
32380 else
32381   echo "$as_me: program exited with status $ac_status" >&5
32382 echo "$as_me: failed program was:" >&5
32383 sed 's/^/| /' conftest.$ac_ext >&5
32384
32385 ( exit $ac_status )
32386
32387               ba_cv_have_typeof=no
32388
32389 fi
32390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32391 fi
32392
32393
32394
32395
32396 fi
32397 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32398 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32399 test $ba_cv_have_typeof = yes &&
32400 cat >>confdefs.h <<\_ACEOF
32401 #define HAVE_TYPEOF 1
32402 _ACEOF
32403
32404 ac_ext=c
32405 ac_cpp='$CPP $CPPFLAGS'
32406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32409
32410
32411 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32412 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32413 if test "${ac_cv_c_const+set}" = set; then
32414   echo $ECHO_N "(cached) $ECHO_C" >&6
32415 else
32416   cat >conftest.$ac_ext <<_ACEOF
32417 /* confdefs.h.  */
32418 _ACEOF
32419 cat confdefs.h >>conftest.$ac_ext
32420 cat >>conftest.$ac_ext <<_ACEOF
32421 /* end confdefs.h.  */
32422
32423 int
32424 main ()
32425 {
32426 /* FIXME: Include the comments suggested by Paul. */
32427 #ifndef __cplusplus
32428   /* Ultrix mips cc rejects this.  */
32429   typedef int charset[2];
32430   const charset cs;
32431   /* SunOS 4.1.1 cc rejects this.  */
32432   char const *const *pcpcc;
32433   char **ppc;
32434   /* NEC SVR4.0.2 mips cc rejects this.  */
32435   struct point {int x, y;};
32436   static struct point const zero = {0,0};
32437   /* AIX XL C 1.02.0.0 rejects this.
32438      It does not let you subtract one const X* pointer from another in
32439      an arm of an if-expression whose if-part is not a constant
32440      expression */
32441   const char *g = "string";
32442   pcpcc = &g + (g ? g-g : 0);
32443   /* HPUX 7.0 cc rejects these. */
32444   ++pcpcc;
32445   ppc = (char**) pcpcc;
32446   pcpcc = (char const *const *) ppc;
32447   { /* SCO 3.2v4 cc rejects this.  */
32448     char *t;
32449     char const *s = 0 ? (char *) 0 : (char const *) 0;
32450
32451     *t++ = 0;
32452     if (s) return 0;
32453   }
32454   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32455     int x[] = {25, 17};
32456     const int *foo = &x[0];
32457     ++foo;
32458   }
32459   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32460     typedef const int *iptr;
32461     iptr p = 0;
32462     ++p;
32463   }
32464   { /* AIX XL C 1.02.0.0 rejects this saying
32465        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32466     struct s { int j; const int *ap[3]; };
32467     struct s *b; b->j = 5;
32468   }
32469   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32470     const int foo = 10;
32471     if (!foo) return 0;
32472   }
32473   return !cs[0] && !zero.x;
32474 #endif
32475
32476   ;
32477   return 0;
32478 }
32479 _ACEOF
32480 rm -f conftest.$ac_objext
32481 if { (ac_try="$ac_compile"
32482 case "(($ac_try" in
32483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32484   *) ac_try_echo=$ac_try;;
32485 esac
32486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32487   (eval "$ac_compile") 2>conftest.er1
32488   ac_status=$?
32489   grep -v '^ *+' conftest.er1 >conftest.err
32490   rm -f conftest.er1
32491   cat conftest.err >&5
32492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493   (exit $ac_status); } && {
32494          test -z "$ac_c_werror_flag" ||
32495          test ! -s conftest.err
32496        } && test -s conftest.$ac_objext; then
32497   ac_cv_c_const=yes
32498 else
32499   echo "$as_me: failed program was:" >&5
32500 sed 's/^/| /' conftest.$ac_ext >&5
32501
32502         ac_cv_c_const=no
32503 fi
32504
32505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32506 fi
32507 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32508 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32509 if test $ac_cv_c_const = no; then
32510
32511 cat >>confdefs.h <<\_ACEOF
32512 #define const
32513 _ACEOF
32514
32515 fi
32516
32517
32518 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32519 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32520 fstype=no
32521 # The order of these tests is important.
32522 cat >conftest.$ac_ext <<_ACEOF
32523 /* confdefs.h.  */
32524 _ACEOF
32525 cat confdefs.h >>conftest.$ac_ext
32526 cat >>conftest.$ac_ext <<_ACEOF
32527 /* end confdefs.h.  */
32528
32529        #include <sys/statvfs.h>
32530        #include <sys/fstyp.h>
32531
32532 _ACEOF
32533 if { (ac_try="$ac_cpp conftest.$ac_ext"
32534 case "(($ac_try" in
32535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32536   *) ac_try_echo=$ac_try;;
32537 esac
32538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32539   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32540   ac_status=$?
32541   grep -v '^ *+' conftest.er1 >conftest.err
32542   rm -f conftest.er1
32543   cat conftest.err >&5
32544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545   (exit $ac_status); } >/dev/null && {
32546          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32547          test ! -s conftest.err
32548        }; then
32549   cat >>confdefs.h <<\_ACEOF
32550 #define FSTYPE_STATVFS 1
32551 _ACEOF
32552  fstype=SVR4
32553
32554 else
32555   echo "$as_me: failed program was:" >&5
32556 sed 's/^/| /' conftest.$ac_ext >&5
32557
32558
32559 fi
32560
32561 rm -f conftest.err conftest.$ac_ext
32562 if test $fstype = no; then
32563    cat >conftest.$ac_ext <<_ACEOF
32564 /* confdefs.h.  */
32565 _ACEOF
32566 cat confdefs.h >>conftest.$ac_ext
32567 cat >>conftest.$ac_ext <<_ACEOF
32568 /* end confdefs.h.  */
32569
32570           #include <sys/statfs.h>
32571           #include <sys/fstyp.h>
32572
32573 _ACEOF
32574 if { (ac_try="$ac_cpp conftest.$ac_ext"
32575 case "(($ac_try" in
32576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32577   *) ac_try_echo=$ac_try;;
32578 esac
32579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32581   ac_status=$?
32582   grep -v '^ *+' conftest.er1 >conftest.err
32583   rm -f conftest.er1
32584   cat conftest.err >&5
32585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586   (exit $ac_status); } >/dev/null && {
32587          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32588          test ! -s conftest.err
32589        }; then
32590   cat >>confdefs.h <<\_ACEOF
32591 #define FSTYPE_USG_STATFS 1
32592 _ACEOF
32593  fstype=SVR3
32594
32595 else
32596   echo "$as_me: failed program was:" >&5
32597 sed 's/^/| /' conftest.$ac_ext >&5
32598
32599
32600 fi
32601
32602 rm -f conftest.err conftest.$ac_ext
32603 fi
32604 if test $fstype = no; then
32605    cat >conftest.$ac_ext <<_ACEOF
32606 /* confdefs.h.  */
32607 _ACEOF
32608 cat confdefs.h >>conftest.$ac_ext
32609 cat >>conftest.$ac_ext <<_ACEOF
32610 /* end confdefs.h.  */
32611
32612           #include <sys/statfs.h>
32613           #include <sys/vmount.h>
32614
32615 _ACEOF
32616 if { (ac_try="$ac_cpp conftest.$ac_ext"
32617 case "(($ac_try" in
32618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32619   *) ac_try_echo=$ac_try;;
32620 esac
32621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32622   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32623   ac_status=$?
32624   grep -v '^ *+' conftest.er1 >conftest.err
32625   rm -f conftest.er1
32626   cat conftest.err >&5
32627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628   (exit $ac_status); } >/dev/null && {
32629          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32630          test ! -s conftest.err
32631        }; then
32632   cat >>confdefs.h <<\_ACEOF
32633 #define FSTYPE_AIX_STATFS 1
32634 _ACEOF
32635  fstype=AIX
32636
32637 else
32638   echo "$as_me: failed program was:" >&5
32639 sed 's/^/| /' conftest.$ac_ext >&5
32640
32641
32642 fi
32643
32644 rm -f conftest.err conftest.$ac_ext
32645 fi
32646 if test $fstype = no; then
32647    cat >conftest.$ac_ext <<_ACEOF
32648 /* confdefs.h.  */
32649 _ACEOF
32650 cat confdefs.h >>conftest.$ac_ext
32651 cat >>conftest.$ac_ext <<_ACEOF
32652 /* end confdefs.h.  */
32653
32654           #include <mntent.h>
32655
32656 _ACEOF
32657 if { (ac_try="$ac_cpp conftest.$ac_ext"
32658 case "(($ac_try" in
32659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32660   *) ac_try_echo=$ac_try;;
32661 esac
32662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32663   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32664   ac_status=$?
32665   grep -v '^ *+' conftest.er1 >conftest.err
32666   rm -f conftest.er1
32667   cat conftest.err >&5
32668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669   (exit $ac_status); } >/dev/null && {
32670          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32671          test ! -s conftest.err
32672        }; then
32673   cat >>confdefs.h <<\_ACEOF
32674 #define FSTYPE_MNTENT 1
32675 _ACEOF
32676  fstype=4.3BSD
32677
32678 else
32679   echo "$as_me: failed program was:" >&5
32680 sed 's/^/| /' conftest.$ac_ext >&5
32681
32682
32683 fi
32684
32685 rm -f conftest.err conftest.$ac_ext
32686 fi
32687 if test $fstype = no; then
32688    cat >conftest.$ac_ext <<_ACEOF
32689 /* confdefs.h.  */
32690 _ACEOF
32691 cat confdefs.h >>conftest.$ac_ext
32692 cat >>conftest.$ac_ext <<_ACEOF
32693 /* end confdefs.h.  */
32694 #include <sys/mount.h>
32695
32696 _ACEOF
32697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32698   $EGREP "f_type;" >/dev/null 2>&1; then
32699   cat >>confdefs.h <<\_ACEOF
32700 #define FSTYPE_STATFS 1
32701 _ACEOF
32702  fstype=4.4BSD/OSF1
32703 fi
32704 rm -f conftest*
32705
32706 fi
32707 if test $fstype = no; then
32708    cat >conftest.$ac_ext <<_ACEOF
32709 /* confdefs.h.  */
32710 _ACEOF
32711 cat confdefs.h >>conftest.$ac_ext
32712 cat >>conftest.$ac_ext <<_ACEOF
32713 /* end confdefs.h.  */
32714
32715           #include <sys/mount.h>
32716           #include <sys/fs_types.h>
32717
32718 _ACEOF
32719 if { (ac_try="$ac_cpp conftest.$ac_ext"
32720 case "(($ac_try" in
32721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32722   *) ac_try_echo=$ac_try;;
32723 esac
32724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32726   ac_status=$?
32727   grep -v '^ *+' conftest.er1 >conftest.err
32728   rm -f conftest.er1
32729   cat conftest.err >&5
32730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731   (exit $ac_status); } >/dev/null && {
32732          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32733          test ! -s conftest.err
32734        }; then
32735   cat >>confdefs.h <<\_ACEOF
32736 #define FSTYPE_GETMNT 1
32737 _ACEOF
32738  fstype=Ultrix
32739
32740 else
32741   echo "$as_me: failed program was:" >&5
32742 sed 's/^/| /' conftest.$ac_ext >&5
32743
32744
32745 fi
32746
32747 rm -f conftest.err conftest.$ac_ext
32748 fi
32749 { echo "$as_me:$LINENO: result: $fstype" >&5
32750 echo "${ECHO_T}$fstype" >&6; }
32751
32752 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32753   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32754 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32755 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32756   echo $ECHO_N "(cached) $ECHO_C" >&6
32757 fi
32758 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32759 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32760 else
32761   # Is the header compilable?
32762 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32763 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32764 cat >conftest.$ac_ext <<_ACEOF
32765 /* confdefs.h.  */
32766 _ACEOF
32767 cat confdefs.h >>conftest.$ac_ext
32768 cat >>conftest.$ac_ext <<_ACEOF
32769 /* end confdefs.h.  */
32770 $ac_includes_default
32771 #include <sys/statvfs.h>
32772 _ACEOF
32773 rm -f conftest.$ac_objext
32774 if { (ac_try="$ac_compile"
32775 case "(($ac_try" in
32776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32777   *) ac_try_echo=$ac_try;;
32778 esac
32779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32780   (eval "$ac_compile") 2>conftest.er1
32781   ac_status=$?
32782   grep -v '^ *+' conftest.er1 >conftest.err
32783   rm -f conftest.er1
32784   cat conftest.err >&5
32785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786   (exit $ac_status); } && {
32787          test -z "$ac_c_werror_flag" ||
32788          test ! -s conftest.err
32789        } && test -s conftest.$ac_objext; then
32790   ac_header_compiler=yes
32791 else
32792   echo "$as_me: failed program was:" >&5
32793 sed 's/^/| /' conftest.$ac_ext >&5
32794
32795         ac_header_compiler=no
32796 fi
32797
32798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32800 echo "${ECHO_T}$ac_header_compiler" >&6; }
32801
32802 # Is the header present?
32803 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32804 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32805 cat >conftest.$ac_ext <<_ACEOF
32806 /* confdefs.h.  */
32807 _ACEOF
32808 cat confdefs.h >>conftest.$ac_ext
32809 cat >>conftest.$ac_ext <<_ACEOF
32810 /* end confdefs.h.  */
32811 #include <sys/statvfs.h>
32812 _ACEOF
32813 if { (ac_try="$ac_cpp conftest.$ac_ext"
32814 case "(($ac_try" in
32815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32816   *) ac_try_echo=$ac_try;;
32817 esac
32818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32820   ac_status=$?
32821   grep -v '^ *+' conftest.er1 >conftest.err
32822   rm -f conftest.er1
32823   cat conftest.err >&5
32824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825   (exit $ac_status); } >/dev/null && {
32826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32827          test ! -s conftest.err
32828        }; then
32829   ac_header_preproc=yes
32830 else
32831   echo "$as_me: failed program was:" >&5
32832 sed 's/^/| /' conftest.$ac_ext >&5
32833
32834   ac_header_preproc=no
32835 fi
32836
32837 rm -f conftest.err conftest.$ac_ext
32838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32839 echo "${ECHO_T}$ac_header_preproc" >&6; }
32840
32841 # So?  What about this header?
32842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32843   yes:no: )
32844     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32845 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32846     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32847 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32848     ac_header_preproc=yes
32849     ;;
32850   no:yes:* )
32851     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32852 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32853     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32854 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32855     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32856 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32857     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32858 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32859     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32860 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32861     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32862 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32863
32864     ;;
32865 esac
32866 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32867 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32868 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32869   echo $ECHO_N "(cached) $ECHO_C" >&6
32870 else
32871   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32872 fi
32873 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32874 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32875
32876 fi
32877 if test $ac_cv_header_sys_statvfs_h = yes; then
32878
32879 cat >>confdefs.h <<\_ACEOF
32880 #define HAVE_SYS_STATVFS_H 1
32881 _ACEOF
32882
32883 fi
32884
32885
32886
32887 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32888 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32889 if test "${ac_cv_type_signal+set}" = set; then
32890   echo $ECHO_N "(cached) $ECHO_C" >&6
32891 else
32892   cat >conftest.$ac_ext <<_ACEOF
32893 /* confdefs.h.  */
32894 _ACEOF
32895 cat confdefs.h >>conftest.$ac_ext
32896 cat >>conftest.$ac_ext <<_ACEOF
32897 /* end confdefs.h.  */
32898 #include <sys/types.h>
32899 #include <signal.h>
32900
32901 int
32902 main ()
32903 {
32904 return *(signal (0, 0)) (0) == 1;
32905   ;
32906   return 0;
32907 }
32908 _ACEOF
32909 rm -f conftest.$ac_objext
32910 if { (ac_try="$ac_compile"
32911 case "(($ac_try" in
32912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32913   *) ac_try_echo=$ac_try;;
32914 esac
32915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32916   (eval "$ac_compile") 2>conftest.er1
32917   ac_status=$?
32918   grep -v '^ *+' conftest.er1 >conftest.err
32919   rm -f conftest.er1
32920   cat conftest.err >&5
32921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922   (exit $ac_status); } && {
32923          test -z "$ac_c_werror_flag" ||
32924          test ! -s conftest.err
32925        } && test -s conftest.$ac_objext; then
32926   ac_cv_type_signal=int
32927 else
32928   echo "$as_me: failed program was:" >&5
32929 sed 's/^/| /' conftest.$ac_ext >&5
32930
32931         ac_cv_type_signal=void
32932 fi
32933
32934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32935 fi
32936 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32937 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32938
32939 cat >>confdefs.h <<_ACEOF
32940 #define RETSIGTYPE $ac_cv_type_signal
32941 _ACEOF
32942
32943
32944
32945   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32946 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32947   if test "${bash_cv_signal_vintage+set}" = set; then
32948   echo $ECHO_N "(cached) $ECHO_C" >&6
32949 else
32950
32951     cat >conftest.$ac_ext <<_ACEOF
32952 /* confdefs.h.  */
32953 _ACEOF
32954 cat confdefs.h >>conftest.$ac_ext
32955 cat >>conftest.$ac_ext <<_ACEOF
32956 /* end confdefs.h.  */
32957 #include <signal.h>
32958 int
32959 main ()
32960 {
32961
32962       sigset_t ss;
32963       struct sigaction sa;
32964       sigemptyset(&ss); sigsuspend(&ss);
32965       sigaction(SIGINT, &sa, (struct sigaction *) 0);
32966       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32967
32968   ;
32969   return 0;
32970 }
32971 _ACEOF
32972 rm -f conftest.$ac_objext conftest$ac_exeext
32973 if { (ac_try="$ac_link"
32974 case "(($ac_try" in
32975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32976   *) ac_try_echo=$ac_try;;
32977 esac
32978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32979   (eval "$ac_link") 2>conftest.er1
32980   ac_status=$?
32981   grep -v '^ *+' conftest.er1 >conftest.err
32982   rm -f conftest.er1
32983   cat conftest.err >&5
32984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985   (exit $ac_status); } && {
32986          test -z "$ac_c_werror_flag" ||
32987          test ! -s conftest.err
32988        } && test -s conftest$ac_exeext &&
32989        $as_test_x conftest$ac_exeext; then
32990   bash_cv_signal_vintage="posix"
32991 else
32992   echo "$as_me: failed program was:" >&5
32993 sed 's/^/| /' conftest.$ac_ext >&5
32994
32995
32996       cat >conftest.$ac_ext <<_ACEOF
32997 /* confdefs.h.  */
32998 _ACEOF
32999 cat confdefs.h >>conftest.$ac_ext
33000 cat >>conftest.$ac_ext <<_ACEOF
33001 /* end confdefs.h.  */
33002 #include <signal.h>
33003 int
33004 main ()
33005 {
33006
33007           int mask = sigmask(SIGINT);
33008           sigsetmask(mask); sigblock(mask); sigpause(mask);
33009
33010   ;
33011   return 0;
33012 }
33013 _ACEOF
33014 rm -f conftest.$ac_objext conftest$ac_exeext
33015 if { (ac_try="$ac_link"
33016 case "(($ac_try" in
33017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33018   *) ac_try_echo=$ac_try;;
33019 esac
33020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33021   (eval "$ac_link") 2>conftest.er1
33022   ac_status=$?
33023   grep -v '^ *+' conftest.er1 >conftest.err
33024   rm -f conftest.er1
33025   cat conftest.err >&5
33026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027   (exit $ac_status); } && {
33028          test -z "$ac_c_werror_flag" ||
33029          test ! -s conftest.err
33030        } && test -s conftest$ac_exeext &&
33031        $as_test_x conftest$ac_exeext; then
33032   bash_cv_signal_vintage="4.2bsd"
33033 else
33034   echo "$as_me: failed program was:" >&5
33035 sed 's/^/| /' conftest.$ac_ext >&5
33036
33037
33038         cat >conftest.$ac_ext <<_ACEOF
33039 /* confdefs.h.  */
33040 _ACEOF
33041 cat confdefs.h >>conftest.$ac_ext
33042 cat >>conftest.$ac_ext <<_ACEOF
33043 /* end confdefs.h.  */
33044
33045           #include <signal.h>
33046           RETSIGTYPE foo() { }
33047 int
33048 main ()
33049 {
33050
33051                   int mask = sigmask(SIGINT);
33052                   sigset(SIGINT, foo); sigrelse(SIGINT);
33053                   sighold(SIGINT); sigpause(SIGINT);
33054
33055   ;
33056   return 0;
33057 }
33058 _ACEOF
33059 rm -f conftest.$ac_objext conftest$ac_exeext
33060 if { (ac_try="$ac_link"
33061 case "(($ac_try" in
33062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063   *) ac_try_echo=$ac_try;;
33064 esac
33065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33066   (eval "$ac_link") 2>conftest.er1
33067   ac_status=$?
33068   grep -v '^ *+' conftest.er1 >conftest.err
33069   rm -f conftest.er1
33070   cat conftest.err >&5
33071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072   (exit $ac_status); } && {
33073          test -z "$ac_c_werror_flag" ||
33074          test ! -s conftest.err
33075        } && test -s conftest$ac_exeext &&
33076        $as_test_x conftest$ac_exeext; then
33077   bash_cv_signal_vintage="svr3"
33078 else
33079   echo "$as_me: failed program was:" >&5
33080 sed 's/^/| /' conftest.$ac_ext >&5
33081
33082         bash_cv_signal_vintage="v7"
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 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33092       conftest$ac_exeext conftest.$ac_ext
33093
33094 fi
33095
33096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33097       conftest$ac_exeext conftest.$ac_ext
33098
33099 fi
33100
33101   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33102 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33103   if test "$bash_cv_signal_vintage" = "posix"; then
33104     cat >>confdefs.h <<\_ACEOF
33105 #define HAVE_POSIX_SIGNALS 1
33106 _ACEOF
33107
33108   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33109     cat >>confdefs.h <<\_ACEOF
33110 #define HAVE_BSD_SIGNALS 1
33111 _ACEOF
33112
33113   elif test "$bash_cv_signal_vintage" = "svr3"; then
33114     cat >>confdefs.h <<\_ACEOF
33115 #define HAVE_USG_SIGHOLD 1
33116 _ACEOF
33117
33118   fi
33119
33120 { echo "$as_me:$LINENO: checking for mode_t" >&5
33121 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33122 if test "${ac_cv_type_mode_t+set}" = set; then
33123   echo $ECHO_N "(cached) $ECHO_C" >&6
33124 else
33125   cat >conftest.$ac_ext <<_ACEOF
33126 /* confdefs.h.  */
33127 _ACEOF
33128 cat confdefs.h >>conftest.$ac_ext
33129 cat >>conftest.$ac_ext <<_ACEOF
33130 /* end confdefs.h.  */
33131 $ac_includes_default
33132 typedef mode_t ac__type_new_;
33133 int
33134 main ()
33135 {
33136 if ((ac__type_new_ *) 0)
33137   return 0;
33138 if (sizeof (ac__type_new_))
33139   return 0;
33140   ;
33141   return 0;
33142 }
33143 _ACEOF
33144 rm -f conftest.$ac_objext
33145 if { (ac_try="$ac_compile"
33146 case "(($ac_try" in
33147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33148   *) ac_try_echo=$ac_try;;
33149 esac
33150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33151   (eval "$ac_compile") 2>conftest.er1
33152   ac_status=$?
33153   grep -v '^ *+' conftest.er1 >conftest.err
33154   rm -f conftest.er1
33155   cat conftest.err >&5
33156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157   (exit $ac_status); } && {
33158          test -z "$ac_c_werror_flag" ||
33159          test ! -s conftest.err
33160        } && test -s conftest.$ac_objext; then
33161   ac_cv_type_mode_t=yes
33162 else
33163   echo "$as_me: failed program was:" >&5
33164 sed 's/^/| /' conftest.$ac_ext >&5
33165
33166         ac_cv_type_mode_t=no
33167 fi
33168
33169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33170 fi
33171 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33172 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33173 if test $ac_cv_type_mode_t = yes; then
33174   :
33175 else
33176
33177 cat >>confdefs.h <<_ACEOF
33178 #define mode_t int
33179 _ACEOF
33180
33181 fi
33182
33183 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33184 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33185 if test "${ac_cv_type_uid_t+set}" = set; then
33186   echo $ECHO_N "(cached) $ECHO_C" >&6
33187 else
33188   cat >conftest.$ac_ext <<_ACEOF
33189 /* confdefs.h.  */
33190 _ACEOF
33191 cat confdefs.h >>conftest.$ac_ext
33192 cat >>conftest.$ac_ext <<_ACEOF
33193 /* end confdefs.h.  */
33194 #include <sys/types.h>
33195
33196 _ACEOF
33197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33198   $EGREP "uid_t" >/dev/null 2>&1; then
33199   ac_cv_type_uid_t=yes
33200 else
33201   ac_cv_type_uid_t=no
33202 fi
33203 rm -f conftest*
33204
33205 fi
33206 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33207 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33208 if test $ac_cv_type_uid_t = no; then
33209
33210 cat >>confdefs.h <<\_ACEOF
33211 #define uid_t int
33212 _ACEOF
33213
33214
33215 cat >>confdefs.h <<\_ACEOF
33216 #define gid_t int
33217 _ACEOF
33218
33219 fi
33220
33221 { echo "$as_me:$LINENO: checking for size_t" >&5
33222 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33223 if test "${ac_cv_type_size_t+set}" = set; then
33224   echo $ECHO_N "(cached) $ECHO_C" >&6
33225 else
33226   cat >conftest.$ac_ext <<_ACEOF
33227 /* confdefs.h.  */
33228 _ACEOF
33229 cat confdefs.h >>conftest.$ac_ext
33230 cat >>conftest.$ac_ext <<_ACEOF
33231 /* end confdefs.h.  */
33232 $ac_includes_default
33233 typedef size_t ac__type_new_;
33234 int
33235 main ()
33236 {
33237 if ((ac__type_new_ *) 0)
33238   return 0;
33239 if (sizeof (ac__type_new_))
33240   return 0;
33241   ;
33242   return 0;
33243 }
33244 _ACEOF
33245 rm -f conftest.$ac_objext
33246 if { (ac_try="$ac_compile"
33247 case "(($ac_try" in
33248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33249   *) ac_try_echo=$ac_try;;
33250 esac
33251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33252   (eval "$ac_compile") 2>conftest.er1
33253   ac_status=$?
33254   grep -v '^ *+' conftest.er1 >conftest.err
33255   rm -f conftest.er1
33256   cat conftest.err >&5
33257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258   (exit $ac_status); } && {
33259          test -z "$ac_c_werror_flag" ||
33260          test ! -s conftest.err
33261        } && test -s conftest.$ac_objext; then
33262   ac_cv_type_size_t=yes
33263 else
33264   echo "$as_me: failed program was:" >&5
33265 sed 's/^/| /' conftest.$ac_ext >&5
33266
33267         ac_cv_type_size_t=no
33268 fi
33269
33270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33271 fi
33272 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33273 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33274 if test $ac_cv_type_size_t = yes; then
33275   :
33276 else
33277
33278 cat >>confdefs.h <<_ACEOF
33279 #define size_t unsigned int
33280 _ACEOF
33281
33282 fi
33283
33284 { echo "$as_me:$LINENO: checking for pid_t" >&5
33285 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33286 if test "${ac_cv_type_pid_t+set}" = set; then
33287   echo $ECHO_N "(cached) $ECHO_C" >&6
33288 else
33289   cat >conftest.$ac_ext <<_ACEOF
33290 /* confdefs.h.  */
33291 _ACEOF
33292 cat confdefs.h >>conftest.$ac_ext
33293 cat >>conftest.$ac_ext <<_ACEOF
33294 /* end confdefs.h.  */
33295 $ac_includes_default
33296 typedef pid_t ac__type_new_;
33297 int
33298 main ()
33299 {
33300 if ((ac__type_new_ *) 0)
33301   return 0;
33302 if (sizeof (ac__type_new_))
33303   return 0;
33304   ;
33305   return 0;
33306 }
33307 _ACEOF
33308 rm -f conftest.$ac_objext
33309 if { (ac_try="$ac_compile"
33310 case "(($ac_try" in
33311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33312   *) ac_try_echo=$ac_try;;
33313 esac
33314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33315   (eval "$ac_compile") 2>conftest.er1
33316   ac_status=$?
33317   grep -v '^ *+' conftest.er1 >conftest.err
33318   rm -f conftest.er1
33319   cat conftest.err >&5
33320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321   (exit $ac_status); } && {
33322          test -z "$ac_c_werror_flag" ||
33323          test ! -s conftest.err
33324        } && test -s conftest.$ac_objext; then
33325   ac_cv_type_pid_t=yes
33326 else
33327   echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33329
33330         ac_cv_type_pid_t=no
33331 fi
33332
33333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33334 fi
33335 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33336 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33337 if test $ac_cv_type_pid_t = yes; then
33338   :
33339 else
33340
33341 cat >>confdefs.h <<_ACEOF
33342 #define pid_t int
33343 _ACEOF
33344
33345 fi
33346
33347 { echo "$as_me:$LINENO: checking for off_t" >&5
33348 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33349 if test "${ac_cv_type_off_t+set}" = set; then
33350   echo $ECHO_N "(cached) $ECHO_C" >&6
33351 else
33352   cat >conftest.$ac_ext <<_ACEOF
33353 /* confdefs.h.  */
33354 _ACEOF
33355 cat confdefs.h >>conftest.$ac_ext
33356 cat >>conftest.$ac_ext <<_ACEOF
33357 /* end confdefs.h.  */
33358 $ac_includes_default
33359 typedef off_t ac__type_new_;
33360 int
33361 main ()
33362 {
33363 if ((ac__type_new_ *) 0)
33364   return 0;
33365 if (sizeof (ac__type_new_))
33366   return 0;
33367   ;
33368   return 0;
33369 }
33370 _ACEOF
33371 rm -f conftest.$ac_objext
33372 if { (ac_try="$ac_compile"
33373 case "(($ac_try" in
33374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375   *) ac_try_echo=$ac_try;;
33376 esac
33377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378   (eval "$ac_compile") 2>conftest.er1
33379   ac_status=$?
33380   grep -v '^ *+' conftest.er1 >conftest.err
33381   rm -f conftest.er1
33382   cat conftest.err >&5
33383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384   (exit $ac_status); } && {
33385          test -z "$ac_c_werror_flag" ||
33386          test ! -s conftest.err
33387        } && test -s conftest.$ac_objext; then
33388   ac_cv_type_off_t=yes
33389 else
33390   echo "$as_me: failed program was:" >&5
33391 sed 's/^/| /' conftest.$ac_ext >&5
33392
33393         ac_cv_type_off_t=no
33394 fi
33395
33396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33397 fi
33398 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33399 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33400 if test $ac_cv_type_off_t = yes; then
33401   :
33402 else
33403
33404 cat >>confdefs.h <<_ACEOF
33405 #define off_t long int
33406 _ACEOF
33407
33408 fi
33409
33410 { echo "$as_me:$LINENO: checking for ino_t" >&5
33411 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33412 if test "${ac_cv_type_ino_t+set}" = set; then
33413   echo $ECHO_N "(cached) $ECHO_C" >&6
33414 else
33415   cat >conftest.$ac_ext <<_ACEOF
33416 /* confdefs.h.  */
33417 _ACEOF
33418 cat confdefs.h >>conftest.$ac_ext
33419 cat >>conftest.$ac_ext <<_ACEOF
33420 /* end confdefs.h.  */
33421 $ac_includes_default
33422 typedef ino_t ac__type_new_;
33423 int
33424 main ()
33425 {
33426 if ((ac__type_new_ *) 0)
33427   return 0;
33428 if (sizeof (ac__type_new_))
33429   return 0;
33430   ;
33431   return 0;
33432 }
33433 _ACEOF
33434 rm -f conftest.$ac_objext
33435 if { (ac_try="$ac_compile"
33436 case "(($ac_try" in
33437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438   *) ac_try_echo=$ac_try;;
33439 esac
33440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441   (eval "$ac_compile") 2>conftest.er1
33442   ac_status=$?
33443   grep -v '^ *+' conftest.er1 >conftest.err
33444   rm -f conftest.er1
33445   cat conftest.err >&5
33446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447   (exit $ac_status); } && {
33448          test -z "$ac_c_werror_flag" ||
33449          test ! -s conftest.err
33450        } && test -s conftest.$ac_objext; then
33451   ac_cv_type_ino_t=yes
33452 else
33453   echo "$as_me: failed program was:" >&5
33454 sed 's/^/| /' conftest.$ac_ext >&5
33455
33456         ac_cv_type_ino_t=no
33457 fi
33458
33459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33460 fi
33461 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33462 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33463 if test $ac_cv_type_ino_t = yes; then
33464   :
33465 else
33466
33467 cat >>confdefs.h <<_ACEOF
33468 #define ino_t unsigned long
33469 _ACEOF
33470
33471 fi
33472
33473 { echo "$as_me:$LINENO: checking for dev_t" >&5
33474 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33475 if test "${ac_cv_type_dev_t+set}" = set; then
33476   echo $ECHO_N "(cached) $ECHO_C" >&6
33477 else
33478   cat >conftest.$ac_ext <<_ACEOF
33479 /* confdefs.h.  */
33480 _ACEOF
33481 cat confdefs.h >>conftest.$ac_ext
33482 cat >>conftest.$ac_ext <<_ACEOF
33483 /* end confdefs.h.  */
33484 $ac_includes_default
33485 typedef dev_t ac__type_new_;
33486 int
33487 main ()
33488 {
33489 if ((ac__type_new_ *) 0)
33490   return 0;
33491 if (sizeof (ac__type_new_))
33492   return 0;
33493   ;
33494   return 0;
33495 }
33496 _ACEOF
33497 rm -f conftest.$ac_objext
33498 if { (ac_try="$ac_compile"
33499 case "(($ac_try" in
33500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33501   *) ac_try_echo=$ac_try;;
33502 esac
33503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33504   (eval "$ac_compile") 2>conftest.er1
33505   ac_status=$?
33506   grep -v '^ *+' conftest.er1 >conftest.err
33507   rm -f conftest.er1
33508   cat conftest.err >&5
33509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510   (exit $ac_status); } && {
33511          test -z "$ac_c_werror_flag" ||
33512          test ! -s conftest.err
33513        } && test -s conftest.$ac_objext; then
33514   ac_cv_type_dev_t=yes
33515 else
33516   echo "$as_me: failed program was:" >&5
33517 sed 's/^/| /' conftest.$ac_ext >&5
33518
33519         ac_cv_type_dev_t=no
33520 fi
33521
33522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33523 fi
33524 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33525 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33526 if test $ac_cv_type_dev_t = yes; then
33527   :
33528 else
33529
33530 cat >>confdefs.h <<_ACEOF
33531 #define dev_t unsigned long
33532 _ACEOF
33533
33534 fi
33535
33536 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33537 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33538 if test "${ac_cv_type_daddr_t+set}" = set; then
33539   echo $ECHO_N "(cached) $ECHO_C" >&6
33540 else
33541   cat >conftest.$ac_ext <<_ACEOF
33542 /* confdefs.h.  */
33543 _ACEOF
33544 cat confdefs.h >>conftest.$ac_ext
33545 cat >>conftest.$ac_ext <<_ACEOF
33546 /* end confdefs.h.  */
33547 $ac_includes_default
33548 typedef daddr_t ac__type_new_;
33549 int
33550 main ()
33551 {
33552 if ((ac__type_new_ *) 0)
33553   return 0;
33554 if (sizeof (ac__type_new_))
33555   return 0;
33556   ;
33557   return 0;
33558 }
33559 _ACEOF
33560 rm -f conftest.$ac_objext
33561 if { (ac_try="$ac_compile"
33562 case "(($ac_try" in
33563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33564   *) ac_try_echo=$ac_try;;
33565 esac
33566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33567   (eval "$ac_compile") 2>conftest.er1
33568   ac_status=$?
33569   grep -v '^ *+' conftest.er1 >conftest.err
33570   rm -f conftest.er1
33571   cat conftest.err >&5
33572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33573   (exit $ac_status); } && {
33574          test -z "$ac_c_werror_flag" ||
33575          test ! -s conftest.err
33576        } && test -s conftest.$ac_objext; then
33577   ac_cv_type_daddr_t=yes
33578 else
33579   echo "$as_me: failed program was:" >&5
33580 sed 's/^/| /' conftest.$ac_ext >&5
33581
33582         ac_cv_type_daddr_t=no
33583 fi
33584
33585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33586 fi
33587 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33588 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33589 if test $ac_cv_type_daddr_t = yes; then
33590   :
33591 else
33592
33593 cat >>confdefs.h <<_ACEOF
33594 #define daddr_t long
33595 _ACEOF
33596
33597 fi
33598
33599 { echo "$as_me:$LINENO: checking for major_t" >&5
33600 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33601 if test "${ac_cv_type_major_t+set}" = set; then
33602   echo $ECHO_N "(cached) $ECHO_C" >&6
33603 else
33604   cat >conftest.$ac_ext <<_ACEOF
33605 /* confdefs.h.  */
33606 _ACEOF
33607 cat confdefs.h >>conftest.$ac_ext
33608 cat >>conftest.$ac_ext <<_ACEOF
33609 /* end confdefs.h.  */
33610 $ac_includes_default
33611 typedef major_t ac__type_new_;
33612 int
33613 main ()
33614 {
33615 if ((ac__type_new_ *) 0)
33616   return 0;
33617 if (sizeof (ac__type_new_))
33618   return 0;
33619   ;
33620   return 0;
33621 }
33622 _ACEOF
33623 rm -f conftest.$ac_objext
33624 if { (ac_try="$ac_compile"
33625 case "(($ac_try" in
33626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627   *) ac_try_echo=$ac_try;;
33628 esac
33629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33630   (eval "$ac_compile") 2>conftest.er1
33631   ac_status=$?
33632   grep -v '^ *+' conftest.er1 >conftest.err
33633   rm -f conftest.er1
33634   cat conftest.err >&5
33635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636   (exit $ac_status); } && {
33637          test -z "$ac_c_werror_flag" ||
33638          test ! -s conftest.err
33639        } && test -s conftest.$ac_objext; then
33640   ac_cv_type_major_t=yes
33641 else
33642   echo "$as_me: failed program was:" >&5
33643 sed 's/^/| /' conftest.$ac_ext >&5
33644
33645         ac_cv_type_major_t=no
33646 fi
33647
33648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33649 fi
33650 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33651 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33652 if test $ac_cv_type_major_t = yes; then
33653   :
33654 else
33655
33656 cat >>confdefs.h <<_ACEOF
33657 #define major_t int
33658 _ACEOF
33659
33660 fi
33661
33662 { echo "$as_me:$LINENO: checking for minor_t" >&5
33663 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33664 if test "${ac_cv_type_minor_t+set}" = set; then
33665   echo $ECHO_N "(cached) $ECHO_C" >&6
33666 else
33667   cat >conftest.$ac_ext <<_ACEOF
33668 /* confdefs.h.  */
33669 _ACEOF
33670 cat confdefs.h >>conftest.$ac_ext
33671 cat >>conftest.$ac_ext <<_ACEOF
33672 /* end confdefs.h.  */
33673 $ac_includes_default
33674 typedef minor_t ac__type_new_;
33675 int
33676 main ()
33677 {
33678 if ((ac__type_new_ *) 0)
33679   return 0;
33680 if (sizeof (ac__type_new_))
33681   return 0;
33682   ;
33683   return 0;
33684 }
33685 _ACEOF
33686 rm -f conftest.$ac_objext
33687 if { (ac_try="$ac_compile"
33688 case "(($ac_try" in
33689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33690   *) ac_try_echo=$ac_try;;
33691 esac
33692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33693   (eval "$ac_compile") 2>conftest.er1
33694   ac_status=$?
33695   grep -v '^ *+' conftest.er1 >conftest.err
33696   rm -f conftest.er1
33697   cat conftest.err >&5
33698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699   (exit $ac_status); } && {
33700          test -z "$ac_c_werror_flag" ||
33701          test ! -s conftest.err
33702        } && test -s conftest.$ac_objext; then
33703   ac_cv_type_minor_t=yes
33704 else
33705   echo "$as_me: failed program was:" >&5
33706 sed 's/^/| /' conftest.$ac_ext >&5
33707
33708         ac_cv_type_minor_t=no
33709 fi
33710
33711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33712 fi
33713 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33714 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33715 if test $ac_cv_type_minor_t = yes; then
33716   :
33717 else
33718
33719 cat >>confdefs.h <<_ACEOF
33720 #define minor_t int
33721 _ACEOF
33722
33723 fi
33724
33725 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33726 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33727 if test "${ac_cv_type_ssize_t+set}" = set; then
33728   echo $ECHO_N "(cached) $ECHO_C" >&6
33729 else
33730   cat >conftest.$ac_ext <<_ACEOF
33731 /* confdefs.h.  */
33732 _ACEOF
33733 cat confdefs.h >>conftest.$ac_ext
33734 cat >>conftest.$ac_ext <<_ACEOF
33735 /* end confdefs.h.  */
33736 $ac_includes_default
33737 typedef ssize_t ac__type_new_;
33738 int
33739 main ()
33740 {
33741 if ((ac__type_new_ *) 0)
33742   return 0;
33743 if (sizeof (ac__type_new_))
33744   return 0;
33745   ;
33746   return 0;
33747 }
33748 _ACEOF
33749 rm -f conftest.$ac_objext
33750 if { (ac_try="$ac_compile"
33751 case "(($ac_try" in
33752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33753   *) ac_try_echo=$ac_try;;
33754 esac
33755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33756   (eval "$ac_compile") 2>conftest.er1
33757   ac_status=$?
33758   grep -v '^ *+' conftest.er1 >conftest.err
33759   rm -f conftest.er1
33760   cat conftest.err >&5
33761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762   (exit $ac_status); } && {
33763          test -z "$ac_c_werror_flag" ||
33764          test ! -s conftest.err
33765        } && test -s conftest.$ac_objext; then
33766   ac_cv_type_ssize_t=yes
33767 else
33768   echo "$as_me: failed program was:" >&5
33769 sed 's/^/| /' conftest.$ac_ext >&5
33770
33771         ac_cv_type_ssize_t=no
33772 fi
33773
33774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33775 fi
33776 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33777 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33778 if test $ac_cv_type_ssize_t = yes; then
33779   :
33780 else
33781
33782 cat >>confdefs.h <<_ACEOF
33783 #define ssize_t int
33784 _ACEOF
33785
33786 fi
33787
33788 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33789 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33790 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33791   echo $ECHO_N "(cached) $ECHO_C" >&6
33792 else
33793   cat >conftest.$ac_ext <<_ACEOF
33794 /* confdefs.h.  */
33795 _ACEOF
33796 cat confdefs.h >>conftest.$ac_ext
33797 cat >>conftest.$ac_ext <<_ACEOF
33798 /* end confdefs.h.  */
33799 $ac_includes_default
33800 int
33801 main ()
33802 {
33803 static struct stat ac_aggr;
33804 if (ac_aggr.st_blocks)
33805 return 0;
33806   ;
33807   return 0;
33808 }
33809 _ACEOF
33810 rm -f conftest.$ac_objext
33811 if { (ac_try="$ac_compile"
33812 case "(($ac_try" in
33813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33814   *) ac_try_echo=$ac_try;;
33815 esac
33816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33817   (eval "$ac_compile") 2>conftest.er1
33818   ac_status=$?
33819   grep -v '^ *+' conftest.er1 >conftest.err
33820   rm -f conftest.er1
33821   cat conftest.err >&5
33822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823   (exit $ac_status); } && {
33824          test -z "$ac_c_werror_flag" ||
33825          test ! -s conftest.err
33826        } && test -s conftest.$ac_objext; then
33827   ac_cv_member_struct_stat_st_blocks=yes
33828 else
33829   echo "$as_me: failed program was:" >&5
33830 sed 's/^/| /' conftest.$ac_ext >&5
33831
33832         cat >conftest.$ac_ext <<_ACEOF
33833 /* confdefs.h.  */
33834 _ACEOF
33835 cat confdefs.h >>conftest.$ac_ext
33836 cat >>conftest.$ac_ext <<_ACEOF
33837 /* end confdefs.h.  */
33838 $ac_includes_default
33839 int
33840 main ()
33841 {
33842 static struct stat ac_aggr;
33843 if (sizeof ac_aggr.st_blocks)
33844 return 0;
33845   ;
33846   return 0;
33847 }
33848 _ACEOF
33849 rm -f conftest.$ac_objext
33850 if { (ac_try="$ac_compile"
33851 case "(($ac_try" in
33852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33853   *) ac_try_echo=$ac_try;;
33854 esac
33855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33856   (eval "$ac_compile") 2>conftest.er1
33857   ac_status=$?
33858   grep -v '^ *+' conftest.er1 >conftest.err
33859   rm -f conftest.er1
33860   cat conftest.err >&5
33861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862   (exit $ac_status); } && {
33863          test -z "$ac_c_werror_flag" ||
33864          test ! -s conftest.err
33865        } && test -s conftest.$ac_objext; then
33866   ac_cv_member_struct_stat_st_blocks=yes
33867 else
33868   echo "$as_me: failed program was:" >&5
33869 sed 's/^/| /' conftest.$ac_ext >&5
33870
33871         ac_cv_member_struct_stat_st_blocks=no
33872 fi
33873
33874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33875 fi
33876
33877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33878 fi
33879 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33880 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33881 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33882
33883 cat >>confdefs.h <<_ACEOF
33884 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33885 _ACEOF
33886
33887
33888 cat >>confdefs.h <<\_ACEOF
33889 #define HAVE_ST_BLOCKS 1
33890 _ACEOF
33891
33892 else
33893   case " $LIBOBJS " in
33894   *" fileblocks.$ac_objext "* ) ;;
33895   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33896  ;;
33897 esac
33898
33899 fi
33900
33901
33902 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33903 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33904 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33905   echo $ECHO_N "(cached) $ECHO_C" >&6
33906 else
33907   cat >conftest.$ac_ext <<_ACEOF
33908 /* confdefs.h.  */
33909 _ACEOF
33910 cat confdefs.h >>conftest.$ac_ext
33911 cat >>conftest.$ac_ext <<_ACEOF
33912 /* end confdefs.h.  */
33913 $ac_includes_default
33914 int
33915 main ()
33916 {
33917 static struct stat ac_aggr;
33918 if (ac_aggr.st_rdev)
33919 return 0;
33920   ;
33921   return 0;
33922 }
33923 _ACEOF
33924 rm -f conftest.$ac_objext
33925 if { (ac_try="$ac_compile"
33926 case "(($ac_try" in
33927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33928   *) ac_try_echo=$ac_try;;
33929 esac
33930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33931   (eval "$ac_compile") 2>conftest.er1
33932   ac_status=$?
33933   grep -v '^ *+' conftest.er1 >conftest.err
33934   rm -f conftest.er1
33935   cat conftest.err >&5
33936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33937   (exit $ac_status); } && {
33938          test -z "$ac_c_werror_flag" ||
33939          test ! -s conftest.err
33940        } && test -s conftest.$ac_objext; then
33941   ac_cv_member_struct_stat_st_rdev=yes
33942 else
33943   echo "$as_me: failed program was:" >&5
33944 sed 's/^/| /' conftest.$ac_ext >&5
33945
33946         cat >conftest.$ac_ext <<_ACEOF
33947 /* confdefs.h.  */
33948 _ACEOF
33949 cat confdefs.h >>conftest.$ac_ext
33950 cat >>conftest.$ac_ext <<_ACEOF
33951 /* end confdefs.h.  */
33952 $ac_includes_default
33953 int
33954 main ()
33955 {
33956 static struct stat ac_aggr;
33957 if (sizeof ac_aggr.st_rdev)
33958 return 0;
33959   ;
33960   return 0;
33961 }
33962 _ACEOF
33963 rm -f conftest.$ac_objext
33964 if { (ac_try="$ac_compile"
33965 case "(($ac_try" in
33966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33967   *) ac_try_echo=$ac_try;;
33968 esac
33969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33970   (eval "$ac_compile") 2>conftest.er1
33971   ac_status=$?
33972   grep -v '^ *+' conftest.er1 >conftest.err
33973   rm -f conftest.er1
33974   cat conftest.err >&5
33975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976   (exit $ac_status); } && {
33977          test -z "$ac_c_werror_flag" ||
33978          test ! -s conftest.err
33979        } && test -s conftest.$ac_objext; then
33980   ac_cv_member_struct_stat_st_rdev=yes
33981 else
33982   echo "$as_me: failed program was:" >&5
33983 sed 's/^/| /' conftest.$ac_ext >&5
33984
33985         ac_cv_member_struct_stat_st_rdev=no
33986 fi
33987
33988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33989 fi
33990
33991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33992 fi
33993 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33994 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33995 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33996
33997 cat >>confdefs.h <<_ACEOF
33998 #define HAVE_STRUCT_STAT_ST_RDEV 1
33999 _ACEOF
34000
34001
34002 cat >>confdefs.h <<\_ACEOF
34003 #define HAVE_ST_RDEV 1
34004 _ACEOF
34005
34006 fi
34007
34008
34009 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34010 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34011 if test "${ac_cv_struct_tm+set}" = set; then
34012   echo $ECHO_N "(cached) $ECHO_C" >&6
34013 else
34014   cat >conftest.$ac_ext <<_ACEOF
34015 /* confdefs.h.  */
34016 _ACEOF
34017 cat confdefs.h >>conftest.$ac_ext
34018 cat >>conftest.$ac_ext <<_ACEOF
34019 /* end confdefs.h.  */
34020 #include <sys/types.h>
34021 #include <time.h>
34022
34023 int
34024 main ()
34025 {
34026 struct tm tm;
34027                                      int *p = &tm.tm_sec;
34028                                      return !p;
34029   ;
34030   return 0;
34031 }
34032 _ACEOF
34033 rm -f conftest.$ac_objext
34034 if { (ac_try="$ac_compile"
34035 case "(($ac_try" in
34036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34037   *) ac_try_echo=$ac_try;;
34038 esac
34039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34040   (eval "$ac_compile") 2>conftest.er1
34041   ac_status=$?
34042   grep -v '^ *+' conftest.er1 >conftest.err
34043   rm -f conftest.er1
34044   cat conftest.err >&5
34045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046   (exit $ac_status); } && {
34047          test -z "$ac_c_werror_flag" ||
34048          test ! -s conftest.err
34049        } && test -s conftest.$ac_objext; then
34050   ac_cv_struct_tm=time.h
34051 else
34052   echo "$as_me: failed program was:" >&5
34053 sed 's/^/| /' conftest.$ac_ext >&5
34054
34055         ac_cv_struct_tm=sys/time.h
34056 fi
34057
34058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34059 fi
34060 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34061 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34062 if test $ac_cv_struct_tm = sys/time.h; then
34063
34064 cat >>confdefs.h <<\_ACEOF
34065 #define TM_IN_SYS_TIME 1
34066 _ACEOF
34067
34068 fi
34069
34070 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34071 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34072 if test "${ac_cv_c_const+set}" = set; then
34073   echo $ECHO_N "(cached) $ECHO_C" >&6
34074 else
34075   cat >conftest.$ac_ext <<_ACEOF
34076 /* confdefs.h.  */
34077 _ACEOF
34078 cat confdefs.h >>conftest.$ac_ext
34079 cat >>conftest.$ac_ext <<_ACEOF
34080 /* end confdefs.h.  */
34081
34082 int
34083 main ()
34084 {
34085 /* FIXME: Include the comments suggested by Paul. */
34086 #ifndef __cplusplus
34087   /* Ultrix mips cc rejects this.  */
34088   typedef int charset[2];
34089   const charset cs;
34090   /* SunOS 4.1.1 cc rejects this.  */
34091   char const *const *pcpcc;
34092   char **ppc;
34093   /* NEC SVR4.0.2 mips cc rejects this.  */
34094   struct point {int x, y;};
34095   static struct point const zero = {0,0};
34096   /* AIX XL C 1.02.0.0 rejects this.
34097      It does not let you subtract one const X* pointer from another in
34098      an arm of an if-expression whose if-part is not a constant
34099      expression */
34100   const char *g = "string";
34101   pcpcc = &g + (g ? g-g : 0);
34102   /* HPUX 7.0 cc rejects these. */
34103   ++pcpcc;
34104   ppc = (char**) pcpcc;
34105   pcpcc = (char const *const *) ppc;
34106   { /* SCO 3.2v4 cc rejects this.  */
34107     char *t;
34108     char const *s = 0 ? (char *) 0 : (char const *) 0;
34109
34110     *t++ = 0;
34111     if (s) return 0;
34112   }
34113   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34114     int x[] = {25, 17};
34115     const int *foo = &x[0];
34116     ++foo;
34117   }
34118   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34119     typedef const int *iptr;
34120     iptr p = 0;
34121     ++p;
34122   }
34123   { /* AIX XL C 1.02.0.0 rejects this saying
34124        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34125     struct s { int j; const int *ap[3]; };
34126     struct s *b; b->j = 5;
34127   }
34128   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34129     const int foo = 10;
34130     if (!foo) return 0;
34131   }
34132   return !cs[0] && !zero.x;
34133 #endif
34134
34135   ;
34136   return 0;
34137 }
34138 _ACEOF
34139 rm -f conftest.$ac_objext
34140 if { (ac_try="$ac_compile"
34141 case "(($ac_try" in
34142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34143   *) ac_try_echo=$ac_try;;
34144 esac
34145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34146   (eval "$ac_compile") 2>conftest.er1
34147   ac_status=$?
34148   grep -v '^ *+' conftest.er1 >conftest.err
34149   rm -f conftest.er1
34150   cat conftest.err >&5
34151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152   (exit $ac_status); } && {
34153          test -z "$ac_c_werror_flag" ||
34154          test ! -s conftest.err
34155        } && test -s conftest.$ac_objext; then
34156   ac_cv_c_const=yes
34157 else
34158   echo "$as_me: failed program was:" >&5
34159 sed 's/^/| /' conftest.$ac_ext >&5
34160
34161         ac_cv_c_const=no
34162 fi
34163
34164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34165 fi
34166 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34167 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34168 if test $ac_cv_c_const = no; then
34169
34170 cat >>confdefs.h <<\_ACEOF
34171 #define const
34172 _ACEOF
34173
34174 fi
34175
34176
34177 { echo "$as_me:$LINENO: checking for char" >&5
34178 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34179 if test "${ac_cv_type_char+set}" = set; then
34180   echo $ECHO_N "(cached) $ECHO_C" >&6
34181 else
34182   cat >conftest.$ac_ext <<_ACEOF
34183 /* confdefs.h.  */
34184 _ACEOF
34185 cat confdefs.h >>conftest.$ac_ext
34186 cat >>conftest.$ac_ext <<_ACEOF
34187 /* end confdefs.h.  */
34188 $ac_includes_default
34189 typedef char ac__type_new_;
34190 int
34191 main ()
34192 {
34193 if ((ac__type_new_ *) 0)
34194   return 0;
34195 if (sizeof (ac__type_new_))
34196   return 0;
34197   ;
34198   return 0;
34199 }
34200 _ACEOF
34201 rm -f conftest.$ac_objext
34202 if { (ac_try="$ac_compile"
34203 case "(($ac_try" in
34204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34205   *) ac_try_echo=$ac_try;;
34206 esac
34207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34208   (eval "$ac_compile") 2>conftest.er1
34209   ac_status=$?
34210   grep -v '^ *+' conftest.er1 >conftest.err
34211   rm -f conftest.er1
34212   cat conftest.err >&5
34213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214   (exit $ac_status); } && {
34215          test -z "$ac_c_werror_flag" ||
34216          test ! -s conftest.err
34217        } && test -s conftest.$ac_objext; then
34218   ac_cv_type_char=yes
34219 else
34220   echo "$as_me: failed program was:" >&5
34221 sed 's/^/| /' conftest.$ac_ext >&5
34222
34223         ac_cv_type_char=no
34224 fi
34225
34226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34227 fi
34228 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34229 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34230
34231 # The cast to long int works around a bug in the HP C Compiler
34232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34234 # This bug is HP SR number 8606223364.
34235 { echo "$as_me:$LINENO: checking size of char" >&5
34236 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34237 if test "${ac_cv_sizeof_char+set}" = set; then
34238   echo $ECHO_N "(cached) $ECHO_C" >&6
34239 else
34240   if test "$cross_compiling" = yes; then
34241   # Depending upon the size, compute the lo and hi bounds.
34242 cat >conftest.$ac_ext <<_ACEOF
34243 /* confdefs.h.  */
34244 _ACEOF
34245 cat confdefs.h >>conftest.$ac_ext
34246 cat >>conftest.$ac_ext <<_ACEOF
34247 /* end confdefs.h.  */
34248 $ac_includes_default
34249    typedef char ac__type_sizeof_;
34250 int
34251 main ()
34252 {
34253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34254 test_array [0] = 0
34255
34256   ;
34257   return 0;
34258 }
34259 _ACEOF
34260 rm -f conftest.$ac_objext
34261 if { (ac_try="$ac_compile"
34262 case "(($ac_try" in
34263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34264   *) ac_try_echo=$ac_try;;
34265 esac
34266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34267   (eval "$ac_compile") 2>conftest.er1
34268   ac_status=$?
34269   grep -v '^ *+' conftest.er1 >conftest.err
34270   rm -f conftest.er1
34271   cat conftest.err >&5
34272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273   (exit $ac_status); } && {
34274          test -z "$ac_c_werror_flag" ||
34275          test ! -s conftest.err
34276        } && test -s conftest.$ac_objext; then
34277   ac_lo=0 ac_mid=0
34278   while :; do
34279     cat >conftest.$ac_ext <<_ACEOF
34280 /* confdefs.h.  */
34281 _ACEOF
34282 cat confdefs.h >>conftest.$ac_ext
34283 cat >>conftest.$ac_ext <<_ACEOF
34284 /* end confdefs.h.  */
34285 $ac_includes_default
34286    typedef char ac__type_sizeof_;
34287 int
34288 main ()
34289 {
34290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34291 test_array [0] = 0
34292
34293   ;
34294   return 0;
34295 }
34296 _ACEOF
34297 rm -f conftest.$ac_objext
34298 if { (ac_try="$ac_compile"
34299 case "(($ac_try" in
34300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34301   *) ac_try_echo=$ac_try;;
34302 esac
34303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34304   (eval "$ac_compile") 2>conftest.er1
34305   ac_status=$?
34306   grep -v '^ *+' conftest.er1 >conftest.err
34307   rm -f conftest.er1
34308   cat conftest.err >&5
34309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310   (exit $ac_status); } && {
34311          test -z "$ac_c_werror_flag" ||
34312          test ! -s conftest.err
34313        } && test -s conftest.$ac_objext; then
34314   ac_hi=$ac_mid; break
34315 else
34316   echo "$as_me: failed program was:" >&5
34317 sed 's/^/| /' conftest.$ac_ext >&5
34318
34319         ac_lo=`expr $ac_mid + 1`
34320                         if test $ac_lo -le $ac_mid; then
34321                           ac_lo= ac_hi=
34322                           break
34323                         fi
34324                         ac_mid=`expr 2 '*' $ac_mid + 1`
34325 fi
34326
34327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34328   done
34329 else
34330   echo "$as_me: failed program was:" >&5
34331 sed 's/^/| /' conftest.$ac_ext >&5
34332
34333         cat >conftest.$ac_ext <<_ACEOF
34334 /* confdefs.h.  */
34335 _ACEOF
34336 cat confdefs.h >>conftest.$ac_ext
34337 cat >>conftest.$ac_ext <<_ACEOF
34338 /* end confdefs.h.  */
34339 $ac_includes_default
34340    typedef char ac__type_sizeof_;
34341 int
34342 main ()
34343 {
34344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34345 test_array [0] = 0
34346
34347   ;
34348   return 0;
34349 }
34350 _ACEOF
34351 rm -f conftest.$ac_objext
34352 if { (ac_try="$ac_compile"
34353 case "(($ac_try" in
34354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34355   *) ac_try_echo=$ac_try;;
34356 esac
34357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34358   (eval "$ac_compile") 2>conftest.er1
34359   ac_status=$?
34360   grep -v '^ *+' conftest.er1 >conftest.err
34361   rm -f conftest.er1
34362   cat conftest.err >&5
34363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364   (exit $ac_status); } && {
34365          test -z "$ac_c_werror_flag" ||
34366          test ! -s conftest.err
34367        } && test -s conftest.$ac_objext; then
34368   ac_hi=-1 ac_mid=-1
34369   while :; do
34370     cat >conftest.$ac_ext <<_ACEOF
34371 /* confdefs.h.  */
34372 _ACEOF
34373 cat confdefs.h >>conftest.$ac_ext
34374 cat >>conftest.$ac_ext <<_ACEOF
34375 /* end confdefs.h.  */
34376 $ac_includes_default
34377    typedef char ac__type_sizeof_;
34378 int
34379 main ()
34380 {
34381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34382 test_array [0] = 0
34383
34384   ;
34385   return 0;
34386 }
34387 _ACEOF
34388 rm -f conftest.$ac_objext
34389 if { (ac_try="$ac_compile"
34390 case "(($ac_try" in
34391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34392   *) ac_try_echo=$ac_try;;
34393 esac
34394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34395   (eval "$ac_compile") 2>conftest.er1
34396   ac_status=$?
34397   grep -v '^ *+' conftest.er1 >conftest.err
34398   rm -f conftest.er1
34399   cat conftest.err >&5
34400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401   (exit $ac_status); } && {
34402          test -z "$ac_c_werror_flag" ||
34403          test ! -s conftest.err
34404        } && test -s conftest.$ac_objext; then
34405   ac_lo=$ac_mid; break
34406 else
34407   echo "$as_me: failed program was:" >&5
34408 sed 's/^/| /' conftest.$ac_ext >&5
34409
34410         ac_hi=`expr '(' $ac_mid ')' - 1`
34411                         if test $ac_mid -le $ac_hi; then
34412                           ac_lo= ac_hi=
34413                           break
34414                         fi
34415                         ac_mid=`expr 2 '*' $ac_mid`
34416 fi
34417
34418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34419   done
34420 else
34421   echo "$as_me: failed program was:" >&5
34422 sed 's/^/| /' conftest.$ac_ext >&5
34423
34424         ac_lo= ac_hi=
34425 fi
34426
34427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34428 fi
34429
34430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34431 # Binary search between lo and hi bounds.
34432 while test "x$ac_lo" != "x$ac_hi"; do
34433   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34434   cat >conftest.$ac_ext <<_ACEOF
34435 /* confdefs.h.  */
34436 _ACEOF
34437 cat confdefs.h >>conftest.$ac_ext
34438 cat >>conftest.$ac_ext <<_ACEOF
34439 /* end confdefs.h.  */
34440 $ac_includes_default
34441    typedef char ac__type_sizeof_;
34442 int
34443 main ()
34444 {
34445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34446 test_array [0] = 0
34447
34448   ;
34449   return 0;
34450 }
34451 _ACEOF
34452 rm -f conftest.$ac_objext
34453 if { (ac_try="$ac_compile"
34454 case "(($ac_try" in
34455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34456   *) ac_try_echo=$ac_try;;
34457 esac
34458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34459   (eval "$ac_compile") 2>conftest.er1
34460   ac_status=$?
34461   grep -v '^ *+' conftest.er1 >conftest.err
34462   rm -f conftest.er1
34463   cat conftest.err >&5
34464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465   (exit $ac_status); } && {
34466          test -z "$ac_c_werror_flag" ||
34467          test ! -s conftest.err
34468        } && test -s conftest.$ac_objext; then
34469   ac_hi=$ac_mid
34470 else
34471   echo "$as_me: failed program was:" >&5
34472 sed 's/^/| /' conftest.$ac_ext >&5
34473
34474         ac_lo=`expr '(' $ac_mid ')' + 1`
34475 fi
34476
34477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34478 done
34479 case $ac_lo in
34480 ?*) ac_cv_sizeof_char=$ac_lo;;
34481 '') if test "$ac_cv_type_char" = yes; then
34482      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34483 See \`config.log' for more details." >&5
34484 echo "$as_me: error: cannot compute sizeof (char)
34485 See \`config.log' for more details." >&2;}
34486    { (exit 77); exit 77; }; }
34487    else
34488      ac_cv_sizeof_char=0
34489    fi ;;
34490 esac
34491 else
34492   cat >conftest.$ac_ext <<_ACEOF
34493 /* confdefs.h.  */
34494 _ACEOF
34495 cat confdefs.h >>conftest.$ac_ext
34496 cat >>conftest.$ac_ext <<_ACEOF
34497 /* end confdefs.h.  */
34498 $ac_includes_default
34499    typedef char ac__type_sizeof_;
34500 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34501 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34502 #include <stdio.h>
34503 #include <stdlib.h>
34504 int
34505 main ()
34506 {
34507
34508   FILE *f = fopen ("conftest.val", "w");
34509   if (! f)
34510     return 1;
34511   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34512     {
34513       long int i = longval ();
34514       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34515         return 1;
34516       fprintf (f, "%ld\n", i);
34517     }
34518   else
34519     {
34520       unsigned long int i = ulongval ();
34521       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34522         return 1;
34523       fprintf (f, "%lu\n", i);
34524     }
34525   return ferror (f) || fclose (f) != 0;
34526
34527   ;
34528   return 0;
34529 }
34530 _ACEOF
34531 rm -f conftest$ac_exeext
34532 if { (ac_try="$ac_link"
34533 case "(($ac_try" in
34534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34535   *) ac_try_echo=$ac_try;;
34536 esac
34537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34538   (eval "$ac_link") 2>&5
34539   ac_status=$?
34540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34542   { (case "(($ac_try" in
34543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34544   *) ac_try_echo=$ac_try;;
34545 esac
34546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34547   (eval "$ac_try") 2>&5
34548   ac_status=$?
34549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550   (exit $ac_status); }; }; then
34551   ac_cv_sizeof_char=`cat conftest.val`
34552 else
34553   echo "$as_me: program exited with status $ac_status" >&5
34554 echo "$as_me: failed program was:" >&5
34555 sed 's/^/| /' conftest.$ac_ext >&5
34556
34557 ( exit $ac_status )
34558 if test "$ac_cv_type_char" = yes; then
34559      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34560 See \`config.log' for more details." >&5
34561 echo "$as_me: error: cannot compute sizeof (char)
34562 See \`config.log' for more details." >&2;}
34563    { (exit 77); exit 77; }; }
34564    else
34565      ac_cv_sizeof_char=0
34566    fi
34567 fi
34568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34569 fi
34570 rm -f conftest.val
34571 fi
34572 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34573 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34574
34575
34576
34577 cat >>confdefs.h <<_ACEOF
34578 #define SIZEOF_CHAR $ac_cv_sizeof_char
34579 _ACEOF
34580
34581
34582 { echo "$as_me:$LINENO: checking for short int" >&5
34583 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34584 if test "${ac_cv_type_short_int+set}" = set; then
34585   echo $ECHO_N "(cached) $ECHO_C" >&6
34586 else
34587   cat >conftest.$ac_ext <<_ACEOF
34588 /* confdefs.h.  */
34589 _ACEOF
34590 cat confdefs.h >>conftest.$ac_ext
34591 cat >>conftest.$ac_ext <<_ACEOF
34592 /* end confdefs.h.  */
34593 $ac_includes_default
34594 typedef short int ac__type_new_;
34595 int
34596 main ()
34597 {
34598 if ((ac__type_new_ *) 0)
34599   return 0;
34600 if (sizeof (ac__type_new_))
34601   return 0;
34602   ;
34603   return 0;
34604 }
34605 _ACEOF
34606 rm -f conftest.$ac_objext
34607 if { (ac_try="$ac_compile"
34608 case "(($ac_try" in
34609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34610   *) ac_try_echo=$ac_try;;
34611 esac
34612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34613   (eval "$ac_compile") 2>conftest.er1
34614   ac_status=$?
34615   grep -v '^ *+' conftest.er1 >conftest.err
34616   rm -f conftest.er1
34617   cat conftest.err >&5
34618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619   (exit $ac_status); } && {
34620          test -z "$ac_c_werror_flag" ||
34621          test ! -s conftest.err
34622        } && test -s conftest.$ac_objext; then
34623   ac_cv_type_short_int=yes
34624 else
34625   echo "$as_me: failed program was:" >&5
34626 sed 's/^/| /' conftest.$ac_ext >&5
34627
34628         ac_cv_type_short_int=no
34629 fi
34630
34631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34632 fi
34633 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34634 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34635
34636 # The cast to long int works around a bug in the HP C Compiler
34637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34639 # This bug is HP SR number 8606223364.
34640 { echo "$as_me:$LINENO: checking size of short int" >&5
34641 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34642 if test "${ac_cv_sizeof_short_int+set}" = set; then
34643   echo $ECHO_N "(cached) $ECHO_C" >&6
34644 else
34645   if test "$cross_compiling" = yes; then
34646   # Depending upon the size, compute the lo and hi bounds.
34647 cat >conftest.$ac_ext <<_ACEOF
34648 /* confdefs.h.  */
34649 _ACEOF
34650 cat confdefs.h >>conftest.$ac_ext
34651 cat >>conftest.$ac_ext <<_ACEOF
34652 /* end confdefs.h.  */
34653 $ac_includes_default
34654    typedef short int ac__type_sizeof_;
34655 int
34656 main ()
34657 {
34658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34659 test_array [0] = 0
34660
34661   ;
34662   return 0;
34663 }
34664 _ACEOF
34665 rm -f conftest.$ac_objext
34666 if { (ac_try="$ac_compile"
34667 case "(($ac_try" in
34668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34669   *) ac_try_echo=$ac_try;;
34670 esac
34671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34672   (eval "$ac_compile") 2>conftest.er1
34673   ac_status=$?
34674   grep -v '^ *+' conftest.er1 >conftest.err
34675   rm -f conftest.er1
34676   cat conftest.err >&5
34677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34678   (exit $ac_status); } && {
34679          test -z "$ac_c_werror_flag" ||
34680          test ! -s conftest.err
34681        } && test -s conftest.$ac_objext; then
34682   ac_lo=0 ac_mid=0
34683   while :; do
34684     cat >conftest.$ac_ext <<_ACEOF
34685 /* confdefs.h.  */
34686 _ACEOF
34687 cat confdefs.h >>conftest.$ac_ext
34688 cat >>conftest.$ac_ext <<_ACEOF
34689 /* end confdefs.h.  */
34690 $ac_includes_default
34691    typedef short int ac__type_sizeof_;
34692 int
34693 main ()
34694 {
34695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34696 test_array [0] = 0
34697
34698   ;
34699   return 0;
34700 }
34701 _ACEOF
34702 rm -f conftest.$ac_objext
34703 if { (ac_try="$ac_compile"
34704 case "(($ac_try" in
34705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34706   *) ac_try_echo=$ac_try;;
34707 esac
34708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34709   (eval "$ac_compile") 2>conftest.er1
34710   ac_status=$?
34711   grep -v '^ *+' conftest.er1 >conftest.err
34712   rm -f conftest.er1
34713   cat conftest.err >&5
34714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715   (exit $ac_status); } && {
34716          test -z "$ac_c_werror_flag" ||
34717          test ! -s conftest.err
34718        } && test -s conftest.$ac_objext; then
34719   ac_hi=$ac_mid; break
34720 else
34721   echo "$as_me: failed program was:" >&5
34722 sed 's/^/| /' conftest.$ac_ext >&5
34723
34724         ac_lo=`expr $ac_mid + 1`
34725                         if test $ac_lo -le $ac_mid; then
34726                           ac_lo= ac_hi=
34727                           break
34728                         fi
34729                         ac_mid=`expr 2 '*' $ac_mid + 1`
34730 fi
34731
34732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34733   done
34734 else
34735   echo "$as_me: failed program was:" >&5
34736 sed 's/^/| /' conftest.$ac_ext >&5
34737
34738         cat >conftest.$ac_ext <<_ACEOF
34739 /* confdefs.h.  */
34740 _ACEOF
34741 cat confdefs.h >>conftest.$ac_ext
34742 cat >>conftest.$ac_ext <<_ACEOF
34743 /* end confdefs.h.  */
34744 $ac_includes_default
34745    typedef short int ac__type_sizeof_;
34746 int
34747 main ()
34748 {
34749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34750 test_array [0] = 0
34751
34752   ;
34753   return 0;
34754 }
34755 _ACEOF
34756 rm -f conftest.$ac_objext
34757 if { (ac_try="$ac_compile"
34758 case "(($ac_try" in
34759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34760   *) ac_try_echo=$ac_try;;
34761 esac
34762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34763   (eval "$ac_compile") 2>conftest.er1
34764   ac_status=$?
34765   grep -v '^ *+' conftest.er1 >conftest.err
34766   rm -f conftest.er1
34767   cat conftest.err >&5
34768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769   (exit $ac_status); } && {
34770          test -z "$ac_c_werror_flag" ||
34771          test ! -s conftest.err
34772        } && test -s conftest.$ac_objext; then
34773   ac_hi=-1 ac_mid=-1
34774   while :; do
34775     cat >conftest.$ac_ext <<_ACEOF
34776 /* confdefs.h.  */
34777 _ACEOF
34778 cat confdefs.h >>conftest.$ac_ext
34779 cat >>conftest.$ac_ext <<_ACEOF
34780 /* end confdefs.h.  */
34781 $ac_includes_default
34782    typedef short int ac__type_sizeof_;
34783 int
34784 main ()
34785 {
34786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34787 test_array [0] = 0
34788
34789   ;
34790   return 0;
34791 }
34792 _ACEOF
34793 rm -f conftest.$ac_objext
34794 if { (ac_try="$ac_compile"
34795 case "(($ac_try" in
34796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34797   *) ac_try_echo=$ac_try;;
34798 esac
34799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34800   (eval "$ac_compile") 2>conftest.er1
34801   ac_status=$?
34802   grep -v '^ *+' conftest.er1 >conftest.err
34803   rm -f conftest.er1
34804   cat conftest.err >&5
34805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806   (exit $ac_status); } && {
34807          test -z "$ac_c_werror_flag" ||
34808          test ! -s conftest.err
34809        } && test -s conftest.$ac_objext; then
34810   ac_lo=$ac_mid; break
34811 else
34812   echo "$as_me: failed program was:" >&5
34813 sed 's/^/| /' conftest.$ac_ext >&5
34814
34815         ac_hi=`expr '(' $ac_mid ')' - 1`
34816                         if test $ac_mid -le $ac_hi; then
34817                           ac_lo= ac_hi=
34818                           break
34819                         fi
34820                         ac_mid=`expr 2 '*' $ac_mid`
34821 fi
34822
34823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34824   done
34825 else
34826   echo "$as_me: failed program was:" >&5
34827 sed 's/^/| /' conftest.$ac_ext >&5
34828
34829         ac_lo= ac_hi=
34830 fi
34831
34832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34833 fi
34834
34835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34836 # Binary search between lo and hi bounds.
34837 while test "x$ac_lo" != "x$ac_hi"; do
34838   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34839   cat >conftest.$ac_ext <<_ACEOF
34840 /* confdefs.h.  */
34841 _ACEOF
34842 cat confdefs.h >>conftest.$ac_ext
34843 cat >>conftest.$ac_ext <<_ACEOF
34844 /* end confdefs.h.  */
34845 $ac_includes_default
34846    typedef short int ac__type_sizeof_;
34847 int
34848 main ()
34849 {
34850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34851 test_array [0] = 0
34852
34853   ;
34854   return 0;
34855 }
34856 _ACEOF
34857 rm -f conftest.$ac_objext
34858 if { (ac_try="$ac_compile"
34859 case "(($ac_try" in
34860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34861   *) ac_try_echo=$ac_try;;
34862 esac
34863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34864   (eval "$ac_compile") 2>conftest.er1
34865   ac_status=$?
34866   grep -v '^ *+' conftest.er1 >conftest.err
34867   rm -f conftest.er1
34868   cat conftest.err >&5
34869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870   (exit $ac_status); } && {
34871          test -z "$ac_c_werror_flag" ||
34872          test ! -s conftest.err
34873        } && test -s conftest.$ac_objext; then
34874   ac_hi=$ac_mid
34875 else
34876   echo "$as_me: failed program was:" >&5
34877 sed 's/^/| /' conftest.$ac_ext >&5
34878
34879         ac_lo=`expr '(' $ac_mid ')' + 1`
34880 fi
34881
34882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34883 done
34884 case $ac_lo in
34885 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34886 '') if test "$ac_cv_type_short_int" = yes; then
34887      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34888 See \`config.log' for more details." >&5
34889 echo "$as_me: error: cannot compute sizeof (short int)
34890 See \`config.log' for more details." >&2;}
34891    { (exit 77); exit 77; }; }
34892    else
34893      ac_cv_sizeof_short_int=0
34894    fi ;;
34895 esac
34896 else
34897   cat >conftest.$ac_ext <<_ACEOF
34898 /* confdefs.h.  */
34899 _ACEOF
34900 cat confdefs.h >>conftest.$ac_ext
34901 cat >>conftest.$ac_ext <<_ACEOF
34902 /* end confdefs.h.  */
34903 $ac_includes_default
34904    typedef short int ac__type_sizeof_;
34905 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34906 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34907 #include <stdio.h>
34908 #include <stdlib.h>
34909 int
34910 main ()
34911 {
34912
34913   FILE *f = fopen ("conftest.val", "w");
34914   if (! f)
34915     return 1;
34916   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34917     {
34918       long int i = longval ();
34919       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34920         return 1;
34921       fprintf (f, "%ld\n", i);
34922     }
34923   else
34924     {
34925       unsigned long int i = ulongval ();
34926       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34927         return 1;
34928       fprintf (f, "%lu\n", i);
34929     }
34930   return ferror (f) || fclose (f) != 0;
34931
34932   ;
34933   return 0;
34934 }
34935 _ACEOF
34936 rm -f conftest$ac_exeext
34937 if { (ac_try="$ac_link"
34938 case "(($ac_try" in
34939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34940   *) ac_try_echo=$ac_try;;
34941 esac
34942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34943   (eval "$ac_link") 2>&5
34944   ac_status=$?
34945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34947   { (case "(($ac_try" in
34948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34949   *) ac_try_echo=$ac_try;;
34950 esac
34951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34952   (eval "$ac_try") 2>&5
34953   ac_status=$?
34954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955   (exit $ac_status); }; }; then
34956   ac_cv_sizeof_short_int=`cat conftest.val`
34957 else
34958   echo "$as_me: program exited with status $ac_status" >&5
34959 echo "$as_me: failed program was:" >&5
34960 sed 's/^/| /' conftest.$ac_ext >&5
34961
34962 ( exit $ac_status )
34963 if test "$ac_cv_type_short_int" = yes; then
34964      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34965 See \`config.log' for more details." >&5
34966 echo "$as_me: error: cannot compute sizeof (short int)
34967 See \`config.log' for more details." >&2;}
34968    { (exit 77); exit 77; }; }
34969    else
34970      ac_cv_sizeof_short_int=0
34971    fi
34972 fi
34973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34974 fi
34975 rm -f conftest.val
34976 fi
34977 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34978 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34979
34980
34981
34982 cat >>confdefs.h <<_ACEOF
34983 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34984 _ACEOF
34985
34986
34987 { echo "$as_me:$LINENO: checking for int" >&5
34988 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34989 if test "${ac_cv_type_int+set}" = set; then
34990   echo $ECHO_N "(cached) $ECHO_C" >&6
34991 else
34992   cat >conftest.$ac_ext <<_ACEOF
34993 /* confdefs.h.  */
34994 _ACEOF
34995 cat confdefs.h >>conftest.$ac_ext
34996 cat >>conftest.$ac_ext <<_ACEOF
34997 /* end confdefs.h.  */
34998 $ac_includes_default
34999 typedef int ac__type_new_;
35000 int
35001 main ()
35002 {
35003 if ((ac__type_new_ *) 0)
35004   return 0;
35005 if (sizeof (ac__type_new_))
35006   return 0;
35007   ;
35008   return 0;
35009 }
35010 _ACEOF
35011 rm -f conftest.$ac_objext
35012 if { (ac_try="$ac_compile"
35013 case "(($ac_try" in
35014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35015   *) ac_try_echo=$ac_try;;
35016 esac
35017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35018   (eval "$ac_compile") 2>conftest.er1
35019   ac_status=$?
35020   grep -v '^ *+' conftest.er1 >conftest.err
35021   rm -f conftest.er1
35022   cat conftest.err >&5
35023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024   (exit $ac_status); } && {
35025          test -z "$ac_c_werror_flag" ||
35026          test ! -s conftest.err
35027        } && test -s conftest.$ac_objext; then
35028   ac_cv_type_int=yes
35029 else
35030   echo "$as_me: failed program was:" >&5
35031 sed 's/^/| /' conftest.$ac_ext >&5
35032
35033         ac_cv_type_int=no
35034 fi
35035
35036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35037 fi
35038 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35039 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35040
35041 # The cast to long int works around a bug in the HP C Compiler
35042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35044 # This bug is HP SR number 8606223364.
35045 { echo "$as_me:$LINENO: checking size of int" >&5
35046 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35047 if test "${ac_cv_sizeof_int+set}" = set; then
35048   echo $ECHO_N "(cached) $ECHO_C" >&6
35049 else
35050   if test "$cross_compiling" = yes; then
35051   # Depending upon the size, compute the lo and hi bounds.
35052 cat >conftest.$ac_ext <<_ACEOF
35053 /* confdefs.h.  */
35054 _ACEOF
35055 cat confdefs.h >>conftest.$ac_ext
35056 cat >>conftest.$ac_ext <<_ACEOF
35057 /* end confdefs.h.  */
35058 $ac_includes_default
35059    typedef int ac__type_sizeof_;
35060 int
35061 main ()
35062 {
35063 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35064 test_array [0] = 0
35065
35066   ;
35067   return 0;
35068 }
35069 _ACEOF
35070 rm -f conftest.$ac_objext
35071 if { (ac_try="$ac_compile"
35072 case "(($ac_try" in
35073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35074   *) ac_try_echo=$ac_try;;
35075 esac
35076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35077   (eval "$ac_compile") 2>conftest.er1
35078   ac_status=$?
35079   grep -v '^ *+' conftest.er1 >conftest.err
35080   rm -f conftest.er1
35081   cat conftest.err >&5
35082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083   (exit $ac_status); } && {
35084          test -z "$ac_c_werror_flag" ||
35085          test ! -s conftest.err
35086        } && test -s conftest.$ac_objext; then
35087   ac_lo=0 ac_mid=0
35088   while :; do
35089     cat >conftest.$ac_ext <<_ACEOF
35090 /* confdefs.h.  */
35091 _ACEOF
35092 cat confdefs.h >>conftest.$ac_ext
35093 cat >>conftest.$ac_ext <<_ACEOF
35094 /* end confdefs.h.  */
35095 $ac_includes_default
35096    typedef int ac__type_sizeof_;
35097 int
35098 main ()
35099 {
35100 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35101 test_array [0] = 0
35102
35103   ;
35104   return 0;
35105 }
35106 _ACEOF
35107 rm -f conftest.$ac_objext
35108 if { (ac_try="$ac_compile"
35109 case "(($ac_try" in
35110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35111   *) ac_try_echo=$ac_try;;
35112 esac
35113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35114   (eval "$ac_compile") 2>conftest.er1
35115   ac_status=$?
35116   grep -v '^ *+' conftest.er1 >conftest.err
35117   rm -f conftest.er1
35118   cat conftest.err >&5
35119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120   (exit $ac_status); } && {
35121          test -z "$ac_c_werror_flag" ||
35122          test ! -s conftest.err
35123        } && test -s conftest.$ac_objext; then
35124   ac_hi=$ac_mid; break
35125 else
35126   echo "$as_me: failed program was:" >&5
35127 sed 's/^/| /' conftest.$ac_ext >&5
35128
35129         ac_lo=`expr $ac_mid + 1`
35130                         if test $ac_lo -le $ac_mid; then
35131                           ac_lo= ac_hi=
35132                           break
35133                         fi
35134                         ac_mid=`expr 2 '*' $ac_mid + 1`
35135 fi
35136
35137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35138   done
35139 else
35140   echo "$as_me: failed program was:" >&5
35141 sed 's/^/| /' conftest.$ac_ext >&5
35142
35143         cat >conftest.$ac_ext <<_ACEOF
35144 /* confdefs.h.  */
35145 _ACEOF
35146 cat confdefs.h >>conftest.$ac_ext
35147 cat >>conftest.$ac_ext <<_ACEOF
35148 /* end confdefs.h.  */
35149 $ac_includes_default
35150    typedef int ac__type_sizeof_;
35151 int
35152 main ()
35153 {
35154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35155 test_array [0] = 0
35156
35157   ;
35158   return 0;
35159 }
35160 _ACEOF
35161 rm -f conftest.$ac_objext
35162 if { (ac_try="$ac_compile"
35163 case "(($ac_try" in
35164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35165   *) ac_try_echo=$ac_try;;
35166 esac
35167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35168   (eval "$ac_compile") 2>conftest.er1
35169   ac_status=$?
35170   grep -v '^ *+' conftest.er1 >conftest.err
35171   rm -f conftest.er1
35172   cat conftest.err >&5
35173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174   (exit $ac_status); } && {
35175          test -z "$ac_c_werror_flag" ||
35176          test ! -s conftest.err
35177        } && test -s conftest.$ac_objext; then
35178   ac_hi=-1 ac_mid=-1
35179   while :; do
35180     cat >conftest.$ac_ext <<_ACEOF
35181 /* confdefs.h.  */
35182 _ACEOF
35183 cat confdefs.h >>conftest.$ac_ext
35184 cat >>conftest.$ac_ext <<_ACEOF
35185 /* end confdefs.h.  */
35186 $ac_includes_default
35187    typedef int ac__type_sizeof_;
35188 int
35189 main ()
35190 {
35191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35192 test_array [0] = 0
35193
35194   ;
35195   return 0;
35196 }
35197 _ACEOF
35198 rm -f conftest.$ac_objext
35199 if { (ac_try="$ac_compile"
35200 case "(($ac_try" in
35201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35202   *) ac_try_echo=$ac_try;;
35203 esac
35204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35205   (eval "$ac_compile") 2>conftest.er1
35206   ac_status=$?
35207   grep -v '^ *+' conftest.er1 >conftest.err
35208   rm -f conftest.er1
35209   cat conftest.err >&5
35210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211   (exit $ac_status); } && {
35212          test -z "$ac_c_werror_flag" ||
35213          test ! -s conftest.err
35214        } && test -s conftest.$ac_objext; then
35215   ac_lo=$ac_mid; break
35216 else
35217   echo "$as_me: failed program was:" >&5
35218 sed 's/^/| /' conftest.$ac_ext >&5
35219
35220         ac_hi=`expr '(' $ac_mid ')' - 1`
35221                         if test $ac_mid -le $ac_hi; then
35222                           ac_lo= ac_hi=
35223                           break
35224                         fi
35225                         ac_mid=`expr 2 '*' $ac_mid`
35226 fi
35227
35228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35229   done
35230 else
35231   echo "$as_me: failed program was:" >&5
35232 sed 's/^/| /' conftest.$ac_ext >&5
35233
35234         ac_lo= ac_hi=
35235 fi
35236
35237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35238 fi
35239
35240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35241 # Binary search between lo and hi bounds.
35242 while test "x$ac_lo" != "x$ac_hi"; do
35243   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35244   cat >conftest.$ac_ext <<_ACEOF
35245 /* confdefs.h.  */
35246 _ACEOF
35247 cat confdefs.h >>conftest.$ac_ext
35248 cat >>conftest.$ac_ext <<_ACEOF
35249 /* end confdefs.h.  */
35250 $ac_includes_default
35251    typedef int ac__type_sizeof_;
35252 int
35253 main ()
35254 {
35255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35256 test_array [0] = 0
35257
35258   ;
35259   return 0;
35260 }
35261 _ACEOF
35262 rm -f conftest.$ac_objext
35263 if { (ac_try="$ac_compile"
35264 case "(($ac_try" in
35265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35266   *) ac_try_echo=$ac_try;;
35267 esac
35268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35269   (eval "$ac_compile") 2>conftest.er1
35270   ac_status=$?
35271   grep -v '^ *+' conftest.er1 >conftest.err
35272   rm -f conftest.er1
35273   cat conftest.err >&5
35274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275   (exit $ac_status); } && {
35276          test -z "$ac_c_werror_flag" ||
35277          test ! -s conftest.err
35278        } && test -s conftest.$ac_objext; then
35279   ac_hi=$ac_mid
35280 else
35281   echo "$as_me: failed program was:" >&5
35282 sed 's/^/| /' conftest.$ac_ext >&5
35283
35284         ac_lo=`expr '(' $ac_mid ')' + 1`
35285 fi
35286
35287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35288 done
35289 case $ac_lo in
35290 ?*) ac_cv_sizeof_int=$ac_lo;;
35291 '') if test "$ac_cv_type_int" = yes; then
35292      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35293 See \`config.log' for more details." >&5
35294 echo "$as_me: error: cannot compute sizeof (int)
35295 See \`config.log' for more details." >&2;}
35296    { (exit 77); exit 77; }; }
35297    else
35298      ac_cv_sizeof_int=0
35299    fi ;;
35300 esac
35301 else
35302   cat >conftest.$ac_ext <<_ACEOF
35303 /* confdefs.h.  */
35304 _ACEOF
35305 cat confdefs.h >>conftest.$ac_ext
35306 cat >>conftest.$ac_ext <<_ACEOF
35307 /* end confdefs.h.  */
35308 $ac_includes_default
35309    typedef int ac__type_sizeof_;
35310 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35311 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35312 #include <stdio.h>
35313 #include <stdlib.h>
35314 int
35315 main ()
35316 {
35317
35318   FILE *f = fopen ("conftest.val", "w");
35319   if (! f)
35320     return 1;
35321   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35322     {
35323       long int i = longval ();
35324       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35325         return 1;
35326       fprintf (f, "%ld\n", i);
35327     }
35328   else
35329     {
35330       unsigned long int i = ulongval ();
35331       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35332         return 1;
35333       fprintf (f, "%lu\n", i);
35334     }
35335   return ferror (f) || fclose (f) != 0;
35336
35337   ;
35338   return 0;
35339 }
35340 _ACEOF
35341 rm -f conftest$ac_exeext
35342 if { (ac_try="$ac_link"
35343 case "(($ac_try" in
35344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35345   *) ac_try_echo=$ac_try;;
35346 esac
35347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35348   (eval "$ac_link") 2>&5
35349   ac_status=$?
35350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35352   { (case "(($ac_try" in
35353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35354   *) ac_try_echo=$ac_try;;
35355 esac
35356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35357   (eval "$ac_try") 2>&5
35358   ac_status=$?
35359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360   (exit $ac_status); }; }; then
35361   ac_cv_sizeof_int=`cat conftest.val`
35362 else
35363   echo "$as_me: program exited with status $ac_status" >&5
35364 echo "$as_me: failed program was:" >&5
35365 sed 's/^/| /' conftest.$ac_ext >&5
35366
35367 ( exit $ac_status )
35368 if test "$ac_cv_type_int" = yes; then
35369      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35370 See \`config.log' for more details." >&5
35371 echo "$as_me: error: cannot compute sizeof (int)
35372 See \`config.log' for more details." >&2;}
35373    { (exit 77); exit 77; }; }
35374    else
35375      ac_cv_sizeof_int=0
35376    fi
35377 fi
35378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35379 fi
35380 rm -f conftest.val
35381 fi
35382 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35383 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35384
35385
35386
35387 cat >>confdefs.h <<_ACEOF
35388 #define SIZEOF_INT $ac_cv_sizeof_int
35389 _ACEOF
35390
35391
35392 { echo "$as_me:$LINENO: checking for long int" >&5
35393 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35394 if test "${ac_cv_type_long_int+set}" = set; then
35395   echo $ECHO_N "(cached) $ECHO_C" >&6
35396 else
35397   cat >conftest.$ac_ext <<_ACEOF
35398 /* confdefs.h.  */
35399 _ACEOF
35400 cat confdefs.h >>conftest.$ac_ext
35401 cat >>conftest.$ac_ext <<_ACEOF
35402 /* end confdefs.h.  */
35403 $ac_includes_default
35404 typedef long int ac__type_new_;
35405 int
35406 main ()
35407 {
35408 if ((ac__type_new_ *) 0)
35409   return 0;
35410 if (sizeof (ac__type_new_))
35411   return 0;
35412   ;
35413   return 0;
35414 }
35415 _ACEOF
35416 rm -f conftest.$ac_objext
35417 if { (ac_try="$ac_compile"
35418 case "(($ac_try" in
35419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35420   *) ac_try_echo=$ac_try;;
35421 esac
35422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35423   (eval "$ac_compile") 2>conftest.er1
35424   ac_status=$?
35425   grep -v '^ *+' conftest.er1 >conftest.err
35426   rm -f conftest.er1
35427   cat conftest.err >&5
35428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429   (exit $ac_status); } && {
35430          test -z "$ac_c_werror_flag" ||
35431          test ! -s conftest.err
35432        } && test -s conftest.$ac_objext; then
35433   ac_cv_type_long_int=yes
35434 else
35435   echo "$as_me: failed program was:" >&5
35436 sed 's/^/| /' conftest.$ac_ext >&5
35437
35438         ac_cv_type_long_int=no
35439 fi
35440
35441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35442 fi
35443 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35444 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35445
35446 # The cast to long int works around a bug in the HP C Compiler
35447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35449 # This bug is HP SR number 8606223364.
35450 { echo "$as_me:$LINENO: checking size of long int" >&5
35451 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35452 if test "${ac_cv_sizeof_long_int+set}" = set; then
35453   echo $ECHO_N "(cached) $ECHO_C" >&6
35454 else
35455   if test "$cross_compiling" = yes; then
35456   # Depending upon the size, compute the lo and hi bounds.
35457 cat >conftest.$ac_ext <<_ACEOF
35458 /* confdefs.h.  */
35459 _ACEOF
35460 cat confdefs.h >>conftest.$ac_ext
35461 cat >>conftest.$ac_ext <<_ACEOF
35462 /* end confdefs.h.  */
35463 $ac_includes_default
35464    typedef long int ac__type_sizeof_;
35465 int
35466 main ()
35467 {
35468 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35469 test_array [0] = 0
35470
35471   ;
35472   return 0;
35473 }
35474 _ACEOF
35475 rm -f conftest.$ac_objext
35476 if { (ac_try="$ac_compile"
35477 case "(($ac_try" in
35478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35479   *) ac_try_echo=$ac_try;;
35480 esac
35481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35482   (eval "$ac_compile") 2>conftest.er1
35483   ac_status=$?
35484   grep -v '^ *+' conftest.er1 >conftest.err
35485   rm -f conftest.er1
35486   cat conftest.err >&5
35487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35488   (exit $ac_status); } && {
35489          test -z "$ac_c_werror_flag" ||
35490          test ! -s conftest.err
35491        } && test -s conftest.$ac_objext; then
35492   ac_lo=0 ac_mid=0
35493   while :; do
35494     cat >conftest.$ac_ext <<_ACEOF
35495 /* confdefs.h.  */
35496 _ACEOF
35497 cat confdefs.h >>conftest.$ac_ext
35498 cat >>conftest.$ac_ext <<_ACEOF
35499 /* end confdefs.h.  */
35500 $ac_includes_default
35501    typedef long int ac__type_sizeof_;
35502 int
35503 main ()
35504 {
35505 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35506 test_array [0] = 0
35507
35508   ;
35509   return 0;
35510 }
35511 _ACEOF
35512 rm -f conftest.$ac_objext
35513 if { (ac_try="$ac_compile"
35514 case "(($ac_try" in
35515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35516   *) ac_try_echo=$ac_try;;
35517 esac
35518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35519   (eval "$ac_compile") 2>conftest.er1
35520   ac_status=$?
35521   grep -v '^ *+' conftest.er1 >conftest.err
35522   rm -f conftest.er1
35523   cat conftest.err >&5
35524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35525   (exit $ac_status); } && {
35526          test -z "$ac_c_werror_flag" ||
35527          test ! -s conftest.err
35528        } && test -s conftest.$ac_objext; then
35529   ac_hi=$ac_mid; break
35530 else
35531   echo "$as_me: failed program was:" >&5
35532 sed 's/^/| /' conftest.$ac_ext >&5
35533
35534         ac_lo=`expr $ac_mid + 1`
35535                         if test $ac_lo -le $ac_mid; then
35536                           ac_lo= ac_hi=
35537                           break
35538                         fi
35539                         ac_mid=`expr 2 '*' $ac_mid + 1`
35540 fi
35541
35542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35543   done
35544 else
35545   echo "$as_me: failed program was:" >&5
35546 sed 's/^/| /' conftest.$ac_ext >&5
35547
35548         cat >conftest.$ac_ext <<_ACEOF
35549 /* confdefs.h.  */
35550 _ACEOF
35551 cat confdefs.h >>conftest.$ac_ext
35552 cat >>conftest.$ac_ext <<_ACEOF
35553 /* end confdefs.h.  */
35554 $ac_includes_default
35555    typedef long int ac__type_sizeof_;
35556 int
35557 main ()
35558 {
35559 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35560 test_array [0] = 0
35561
35562   ;
35563   return 0;
35564 }
35565 _ACEOF
35566 rm -f conftest.$ac_objext
35567 if { (ac_try="$ac_compile"
35568 case "(($ac_try" in
35569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35570   *) ac_try_echo=$ac_try;;
35571 esac
35572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35573   (eval "$ac_compile") 2>conftest.er1
35574   ac_status=$?
35575   grep -v '^ *+' conftest.er1 >conftest.err
35576   rm -f conftest.er1
35577   cat conftest.err >&5
35578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579   (exit $ac_status); } && {
35580          test -z "$ac_c_werror_flag" ||
35581          test ! -s conftest.err
35582        } && test -s conftest.$ac_objext; then
35583   ac_hi=-1 ac_mid=-1
35584   while :; do
35585     cat >conftest.$ac_ext <<_ACEOF
35586 /* confdefs.h.  */
35587 _ACEOF
35588 cat confdefs.h >>conftest.$ac_ext
35589 cat >>conftest.$ac_ext <<_ACEOF
35590 /* end confdefs.h.  */
35591 $ac_includes_default
35592    typedef long int ac__type_sizeof_;
35593 int
35594 main ()
35595 {
35596 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35597 test_array [0] = 0
35598
35599   ;
35600   return 0;
35601 }
35602 _ACEOF
35603 rm -f conftest.$ac_objext
35604 if { (ac_try="$ac_compile"
35605 case "(($ac_try" in
35606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35607   *) ac_try_echo=$ac_try;;
35608 esac
35609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35610   (eval "$ac_compile") 2>conftest.er1
35611   ac_status=$?
35612   grep -v '^ *+' conftest.er1 >conftest.err
35613   rm -f conftest.er1
35614   cat conftest.err >&5
35615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35616   (exit $ac_status); } && {
35617          test -z "$ac_c_werror_flag" ||
35618          test ! -s conftest.err
35619        } && test -s conftest.$ac_objext; then
35620   ac_lo=$ac_mid; break
35621 else
35622   echo "$as_me: failed program was:" >&5
35623 sed 's/^/| /' conftest.$ac_ext >&5
35624
35625         ac_hi=`expr '(' $ac_mid ')' - 1`
35626                         if test $ac_mid -le $ac_hi; then
35627                           ac_lo= ac_hi=
35628                           break
35629                         fi
35630                         ac_mid=`expr 2 '*' $ac_mid`
35631 fi
35632
35633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35634   done
35635 else
35636   echo "$as_me: failed program was:" >&5
35637 sed 's/^/| /' conftest.$ac_ext >&5
35638
35639         ac_lo= ac_hi=
35640 fi
35641
35642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35643 fi
35644
35645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35646 # Binary search between lo and hi bounds.
35647 while test "x$ac_lo" != "x$ac_hi"; do
35648   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35649   cat >conftest.$ac_ext <<_ACEOF
35650 /* confdefs.h.  */
35651 _ACEOF
35652 cat confdefs.h >>conftest.$ac_ext
35653 cat >>conftest.$ac_ext <<_ACEOF
35654 /* end confdefs.h.  */
35655 $ac_includes_default
35656    typedef long int ac__type_sizeof_;
35657 int
35658 main ()
35659 {
35660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35661 test_array [0] = 0
35662
35663   ;
35664   return 0;
35665 }
35666 _ACEOF
35667 rm -f conftest.$ac_objext
35668 if { (ac_try="$ac_compile"
35669 case "(($ac_try" in
35670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35671   *) ac_try_echo=$ac_try;;
35672 esac
35673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35674   (eval "$ac_compile") 2>conftest.er1
35675   ac_status=$?
35676   grep -v '^ *+' conftest.er1 >conftest.err
35677   rm -f conftest.er1
35678   cat conftest.err >&5
35679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680   (exit $ac_status); } && {
35681          test -z "$ac_c_werror_flag" ||
35682          test ! -s conftest.err
35683        } && test -s conftest.$ac_objext; then
35684   ac_hi=$ac_mid
35685 else
35686   echo "$as_me: failed program was:" >&5
35687 sed 's/^/| /' conftest.$ac_ext >&5
35688
35689         ac_lo=`expr '(' $ac_mid ')' + 1`
35690 fi
35691
35692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35693 done
35694 case $ac_lo in
35695 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35696 '') if test "$ac_cv_type_long_int" = yes; then
35697      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35698 See \`config.log' for more details." >&5
35699 echo "$as_me: error: cannot compute sizeof (long int)
35700 See \`config.log' for more details." >&2;}
35701    { (exit 77); exit 77; }; }
35702    else
35703      ac_cv_sizeof_long_int=0
35704    fi ;;
35705 esac
35706 else
35707   cat >conftest.$ac_ext <<_ACEOF
35708 /* confdefs.h.  */
35709 _ACEOF
35710 cat confdefs.h >>conftest.$ac_ext
35711 cat >>conftest.$ac_ext <<_ACEOF
35712 /* end confdefs.h.  */
35713 $ac_includes_default
35714    typedef long int ac__type_sizeof_;
35715 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35716 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35717 #include <stdio.h>
35718 #include <stdlib.h>
35719 int
35720 main ()
35721 {
35722
35723   FILE *f = fopen ("conftest.val", "w");
35724   if (! f)
35725     return 1;
35726   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35727     {
35728       long int i = longval ();
35729       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35730         return 1;
35731       fprintf (f, "%ld\n", i);
35732     }
35733   else
35734     {
35735       unsigned long int i = ulongval ();
35736       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35737         return 1;
35738       fprintf (f, "%lu\n", i);
35739     }
35740   return ferror (f) || fclose (f) != 0;
35741
35742   ;
35743   return 0;
35744 }
35745 _ACEOF
35746 rm -f conftest$ac_exeext
35747 if { (ac_try="$ac_link"
35748 case "(($ac_try" in
35749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35750   *) ac_try_echo=$ac_try;;
35751 esac
35752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35753   (eval "$ac_link") 2>&5
35754   ac_status=$?
35755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35757   { (case "(($ac_try" in
35758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35759   *) ac_try_echo=$ac_try;;
35760 esac
35761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35762   (eval "$ac_try") 2>&5
35763   ac_status=$?
35764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765   (exit $ac_status); }; }; then
35766   ac_cv_sizeof_long_int=`cat conftest.val`
35767 else
35768   echo "$as_me: program exited with status $ac_status" >&5
35769 echo "$as_me: failed program was:" >&5
35770 sed 's/^/| /' conftest.$ac_ext >&5
35771
35772 ( exit $ac_status )
35773 if test "$ac_cv_type_long_int" = yes; then
35774      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35775 See \`config.log' for more details." >&5
35776 echo "$as_me: error: cannot compute sizeof (long int)
35777 See \`config.log' for more details." >&2;}
35778    { (exit 77); exit 77; }; }
35779    else
35780      ac_cv_sizeof_long_int=0
35781    fi
35782 fi
35783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35784 fi
35785 rm -f conftest.val
35786 fi
35787 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35788 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35789
35790
35791
35792 cat >>confdefs.h <<_ACEOF
35793 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35794 _ACEOF
35795
35796
35797 { echo "$as_me:$LINENO: checking for long long int" >&5
35798 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35799 if test "${ac_cv_type_long_long_int+set}" = set; then
35800   echo $ECHO_N "(cached) $ECHO_C" >&6
35801 else
35802   cat >conftest.$ac_ext <<_ACEOF
35803 /* confdefs.h.  */
35804 _ACEOF
35805 cat confdefs.h >>conftest.$ac_ext
35806 cat >>conftest.$ac_ext <<_ACEOF
35807 /* end confdefs.h.  */
35808 $ac_includes_default
35809 typedef long long int ac__type_new_;
35810 int
35811 main ()
35812 {
35813 if ((ac__type_new_ *) 0)
35814   return 0;
35815 if (sizeof (ac__type_new_))
35816   return 0;
35817   ;
35818   return 0;
35819 }
35820 _ACEOF
35821 rm -f conftest.$ac_objext
35822 if { (ac_try="$ac_compile"
35823 case "(($ac_try" in
35824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35825   *) ac_try_echo=$ac_try;;
35826 esac
35827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35828   (eval "$ac_compile") 2>conftest.er1
35829   ac_status=$?
35830   grep -v '^ *+' conftest.er1 >conftest.err
35831   rm -f conftest.er1
35832   cat conftest.err >&5
35833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834   (exit $ac_status); } && {
35835          test -z "$ac_c_werror_flag" ||
35836          test ! -s conftest.err
35837        } && test -s conftest.$ac_objext; then
35838   ac_cv_type_long_long_int=yes
35839 else
35840   echo "$as_me: failed program was:" >&5
35841 sed 's/^/| /' conftest.$ac_ext >&5
35842
35843         ac_cv_type_long_long_int=no
35844 fi
35845
35846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35847 fi
35848 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35849 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35850
35851 # The cast to long int works around a bug in the HP C Compiler
35852 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35853 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35854 # This bug is HP SR number 8606223364.
35855 { echo "$as_me:$LINENO: checking size of long long int" >&5
35856 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35857 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35858   echo $ECHO_N "(cached) $ECHO_C" >&6
35859 else
35860   if test "$cross_compiling" = yes; then
35861   # Depending upon the size, compute the lo and hi bounds.
35862 cat >conftest.$ac_ext <<_ACEOF
35863 /* confdefs.h.  */
35864 _ACEOF
35865 cat confdefs.h >>conftest.$ac_ext
35866 cat >>conftest.$ac_ext <<_ACEOF
35867 /* end confdefs.h.  */
35868 $ac_includes_default
35869    typedef long long int ac__type_sizeof_;
35870 int
35871 main ()
35872 {
35873 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35874 test_array [0] = 0
35875
35876   ;
35877   return 0;
35878 }
35879 _ACEOF
35880 rm -f conftest.$ac_objext
35881 if { (ac_try="$ac_compile"
35882 case "(($ac_try" in
35883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35884   *) ac_try_echo=$ac_try;;
35885 esac
35886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35887   (eval "$ac_compile") 2>conftest.er1
35888   ac_status=$?
35889   grep -v '^ *+' conftest.er1 >conftest.err
35890   rm -f conftest.er1
35891   cat conftest.err >&5
35892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893   (exit $ac_status); } && {
35894          test -z "$ac_c_werror_flag" ||
35895          test ! -s conftest.err
35896        } && test -s conftest.$ac_objext; then
35897   ac_lo=0 ac_mid=0
35898   while :; do
35899     cat >conftest.$ac_ext <<_ACEOF
35900 /* confdefs.h.  */
35901 _ACEOF
35902 cat confdefs.h >>conftest.$ac_ext
35903 cat >>conftest.$ac_ext <<_ACEOF
35904 /* end confdefs.h.  */
35905 $ac_includes_default
35906    typedef long long int ac__type_sizeof_;
35907 int
35908 main ()
35909 {
35910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35911 test_array [0] = 0
35912
35913   ;
35914   return 0;
35915 }
35916 _ACEOF
35917 rm -f conftest.$ac_objext
35918 if { (ac_try="$ac_compile"
35919 case "(($ac_try" in
35920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35921   *) ac_try_echo=$ac_try;;
35922 esac
35923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35924   (eval "$ac_compile") 2>conftest.er1
35925   ac_status=$?
35926   grep -v '^ *+' conftest.er1 >conftest.err
35927   rm -f conftest.er1
35928   cat conftest.err >&5
35929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930   (exit $ac_status); } && {
35931          test -z "$ac_c_werror_flag" ||
35932          test ! -s conftest.err
35933        } && test -s conftest.$ac_objext; then
35934   ac_hi=$ac_mid; break
35935 else
35936   echo "$as_me: failed program was:" >&5
35937 sed 's/^/| /' conftest.$ac_ext >&5
35938
35939         ac_lo=`expr $ac_mid + 1`
35940                         if test $ac_lo -le $ac_mid; then
35941                           ac_lo= ac_hi=
35942                           break
35943                         fi
35944                         ac_mid=`expr 2 '*' $ac_mid + 1`
35945 fi
35946
35947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35948   done
35949 else
35950   echo "$as_me: failed program was:" >&5
35951 sed 's/^/| /' conftest.$ac_ext >&5
35952
35953         cat >conftest.$ac_ext <<_ACEOF
35954 /* confdefs.h.  */
35955 _ACEOF
35956 cat confdefs.h >>conftest.$ac_ext
35957 cat >>conftest.$ac_ext <<_ACEOF
35958 /* end confdefs.h.  */
35959 $ac_includes_default
35960    typedef long long int ac__type_sizeof_;
35961 int
35962 main ()
35963 {
35964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35965 test_array [0] = 0
35966
35967   ;
35968   return 0;
35969 }
35970 _ACEOF
35971 rm -f conftest.$ac_objext
35972 if { (ac_try="$ac_compile"
35973 case "(($ac_try" in
35974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35975   *) ac_try_echo=$ac_try;;
35976 esac
35977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35978   (eval "$ac_compile") 2>conftest.er1
35979   ac_status=$?
35980   grep -v '^ *+' conftest.er1 >conftest.err
35981   rm -f conftest.er1
35982   cat conftest.err >&5
35983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984   (exit $ac_status); } && {
35985          test -z "$ac_c_werror_flag" ||
35986          test ! -s conftest.err
35987        } && test -s conftest.$ac_objext; then
35988   ac_hi=-1 ac_mid=-1
35989   while :; do
35990     cat >conftest.$ac_ext <<_ACEOF
35991 /* confdefs.h.  */
35992 _ACEOF
35993 cat confdefs.h >>conftest.$ac_ext
35994 cat >>conftest.$ac_ext <<_ACEOF
35995 /* end confdefs.h.  */
35996 $ac_includes_default
35997    typedef long long int ac__type_sizeof_;
35998 int
35999 main ()
36000 {
36001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36002 test_array [0] = 0
36003
36004   ;
36005   return 0;
36006 }
36007 _ACEOF
36008 rm -f conftest.$ac_objext
36009 if { (ac_try="$ac_compile"
36010 case "(($ac_try" in
36011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36012   *) ac_try_echo=$ac_try;;
36013 esac
36014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36015   (eval "$ac_compile") 2>conftest.er1
36016   ac_status=$?
36017   grep -v '^ *+' conftest.er1 >conftest.err
36018   rm -f conftest.er1
36019   cat conftest.err >&5
36020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021   (exit $ac_status); } && {
36022          test -z "$ac_c_werror_flag" ||
36023          test ! -s conftest.err
36024        } && test -s conftest.$ac_objext; then
36025   ac_lo=$ac_mid; break
36026 else
36027   echo "$as_me: failed program was:" >&5
36028 sed 's/^/| /' conftest.$ac_ext >&5
36029
36030         ac_hi=`expr '(' $ac_mid ')' - 1`
36031                         if test $ac_mid -le $ac_hi; then
36032                           ac_lo= ac_hi=
36033                           break
36034                         fi
36035                         ac_mid=`expr 2 '*' $ac_mid`
36036 fi
36037
36038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36039   done
36040 else
36041   echo "$as_me: failed program was:" >&5
36042 sed 's/^/| /' conftest.$ac_ext >&5
36043
36044         ac_lo= ac_hi=
36045 fi
36046
36047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36048 fi
36049
36050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36051 # Binary search between lo and hi bounds.
36052 while test "x$ac_lo" != "x$ac_hi"; do
36053   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36054   cat >conftest.$ac_ext <<_ACEOF
36055 /* confdefs.h.  */
36056 _ACEOF
36057 cat confdefs.h >>conftest.$ac_ext
36058 cat >>conftest.$ac_ext <<_ACEOF
36059 /* end confdefs.h.  */
36060 $ac_includes_default
36061    typedef long long int ac__type_sizeof_;
36062 int
36063 main ()
36064 {
36065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36066 test_array [0] = 0
36067
36068   ;
36069   return 0;
36070 }
36071 _ACEOF
36072 rm -f conftest.$ac_objext
36073 if { (ac_try="$ac_compile"
36074 case "(($ac_try" in
36075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36076   *) ac_try_echo=$ac_try;;
36077 esac
36078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36079   (eval "$ac_compile") 2>conftest.er1
36080   ac_status=$?
36081   grep -v '^ *+' conftest.er1 >conftest.err
36082   rm -f conftest.er1
36083   cat conftest.err >&5
36084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36085   (exit $ac_status); } && {
36086          test -z "$ac_c_werror_flag" ||
36087          test ! -s conftest.err
36088        } && test -s conftest.$ac_objext; then
36089   ac_hi=$ac_mid
36090 else
36091   echo "$as_me: failed program was:" >&5
36092 sed 's/^/| /' conftest.$ac_ext >&5
36093
36094         ac_lo=`expr '(' $ac_mid ')' + 1`
36095 fi
36096
36097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36098 done
36099 case $ac_lo in
36100 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36101 '') if test "$ac_cv_type_long_long_int" = yes; then
36102      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36103 See \`config.log' for more details." >&5
36104 echo "$as_me: error: cannot compute sizeof (long long int)
36105 See \`config.log' for more details." >&2;}
36106    { (exit 77); exit 77; }; }
36107    else
36108      ac_cv_sizeof_long_long_int=0
36109    fi ;;
36110 esac
36111 else
36112   cat >conftest.$ac_ext <<_ACEOF
36113 /* confdefs.h.  */
36114 _ACEOF
36115 cat confdefs.h >>conftest.$ac_ext
36116 cat >>conftest.$ac_ext <<_ACEOF
36117 /* end confdefs.h.  */
36118 $ac_includes_default
36119    typedef long long int ac__type_sizeof_;
36120 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36121 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36122 #include <stdio.h>
36123 #include <stdlib.h>
36124 int
36125 main ()
36126 {
36127
36128   FILE *f = fopen ("conftest.val", "w");
36129   if (! f)
36130     return 1;
36131   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36132     {
36133       long int i = longval ();
36134       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36135         return 1;
36136       fprintf (f, "%ld\n", i);
36137     }
36138   else
36139     {
36140       unsigned long int i = ulongval ();
36141       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36142         return 1;
36143       fprintf (f, "%lu\n", i);
36144     }
36145   return ferror (f) || fclose (f) != 0;
36146
36147   ;
36148   return 0;
36149 }
36150 _ACEOF
36151 rm -f conftest$ac_exeext
36152 if { (ac_try="$ac_link"
36153 case "(($ac_try" in
36154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36155   *) ac_try_echo=$ac_try;;
36156 esac
36157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36158   (eval "$ac_link") 2>&5
36159   ac_status=$?
36160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36162   { (case "(($ac_try" in
36163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36164   *) ac_try_echo=$ac_try;;
36165 esac
36166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36167   (eval "$ac_try") 2>&5
36168   ac_status=$?
36169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36170   (exit $ac_status); }; }; then
36171   ac_cv_sizeof_long_long_int=`cat conftest.val`
36172 else
36173   echo "$as_me: program exited with status $ac_status" >&5
36174 echo "$as_me: failed program was:" >&5
36175 sed 's/^/| /' conftest.$ac_ext >&5
36176
36177 ( exit $ac_status )
36178 if test "$ac_cv_type_long_long_int" = yes; then
36179      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36180 See \`config.log' for more details." >&5
36181 echo "$as_me: error: cannot compute sizeof (long long int)
36182 See \`config.log' for more details." >&2;}
36183    { (exit 77); exit 77; }; }
36184    else
36185      ac_cv_sizeof_long_long_int=0
36186    fi
36187 fi
36188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36189 fi
36190 rm -f conftest.val
36191 fi
36192 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36193 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36194
36195
36196
36197 cat >>confdefs.h <<_ACEOF
36198 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36199 _ACEOF
36200
36201
36202 { echo "$as_me:$LINENO: checking for int *" >&5
36203 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36204 if test "${ac_cv_type_int_p+set}" = set; then
36205   echo $ECHO_N "(cached) $ECHO_C" >&6
36206 else
36207   cat >conftest.$ac_ext <<_ACEOF
36208 /* confdefs.h.  */
36209 _ACEOF
36210 cat confdefs.h >>conftest.$ac_ext
36211 cat >>conftest.$ac_ext <<_ACEOF
36212 /* end confdefs.h.  */
36213 $ac_includes_default
36214 typedef int * ac__type_new_;
36215 int
36216 main ()
36217 {
36218 if ((ac__type_new_ *) 0)
36219   return 0;
36220 if (sizeof (ac__type_new_))
36221   return 0;
36222   ;
36223   return 0;
36224 }
36225 _ACEOF
36226 rm -f conftest.$ac_objext
36227 if { (ac_try="$ac_compile"
36228 case "(($ac_try" in
36229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36230   *) ac_try_echo=$ac_try;;
36231 esac
36232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36233   (eval "$ac_compile") 2>conftest.er1
36234   ac_status=$?
36235   grep -v '^ *+' conftest.er1 >conftest.err
36236   rm -f conftest.er1
36237   cat conftest.err >&5
36238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239   (exit $ac_status); } && {
36240          test -z "$ac_c_werror_flag" ||
36241          test ! -s conftest.err
36242        } && test -s conftest.$ac_objext; then
36243   ac_cv_type_int_p=yes
36244 else
36245   echo "$as_me: failed program was:" >&5
36246 sed 's/^/| /' conftest.$ac_ext >&5
36247
36248         ac_cv_type_int_p=no
36249 fi
36250
36251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36252 fi
36253 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36254 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36255
36256 # The cast to long int works around a bug in the HP C Compiler
36257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36259 # This bug is HP SR number 8606223364.
36260 { echo "$as_me:$LINENO: checking size of int *" >&5
36261 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36262 if test "${ac_cv_sizeof_int_p+set}" = set; then
36263   echo $ECHO_N "(cached) $ECHO_C" >&6
36264 else
36265   if test "$cross_compiling" = yes; then
36266   # Depending upon the size, compute the lo and hi bounds.
36267 cat >conftest.$ac_ext <<_ACEOF
36268 /* confdefs.h.  */
36269 _ACEOF
36270 cat confdefs.h >>conftest.$ac_ext
36271 cat >>conftest.$ac_ext <<_ACEOF
36272 /* end confdefs.h.  */
36273 $ac_includes_default
36274    typedef int * ac__type_sizeof_;
36275 int
36276 main ()
36277 {
36278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36279 test_array [0] = 0
36280
36281   ;
36282   return 0;
36283 }
36284 _ACEOF
36285 rm -f conftest.$ac_objext
36286 if { (ac_try="$ac_compile"
36287 case "(($ac_try" in
36288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36289   *) ac_try_echo=$ac_try;;
36290 esac
36291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36292   (eval "$ac_compile") 2>conftest.er1
36293   ac_status=$?
36294   grep -v '^ *+' conftest.er1 >conftest.err
36295   rm -f conftest.er1
36296   cat conftest.err >&5
36297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36298   (exit $ac_status); } && {
36299          test -z "$ac_c_werror_flag" ||
36300          test ! -s conftest.err
36301        } && test -s conftest.$ac_objext; then
36302   ac_lo=0 ac_mid=0
36303   while :; do
36304     cat >conftest.$ac_ext <<_ACEOF
36305 /* confdefs.h.  */
36306 _ACEOF
36307 cat confdefs.h >>conftest.$ac_ext
36308 cat >>conftest.$ac_ext <<_ACEOF
36309 /* end confdefs.h.  */
36310 $ac_includes_default
36311    typedef int * ac__type_sizeof_;
36312 int
36313 main ()
36314 {
36315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36316 test_array [0] = 0
36317
36318   ;
36319   return 0;
36320 }
36321 _ACEOF
36322 rm -f conftest.$ac_objext
36323 if { (ac_try="$ac_compile"
36324 case "(($ac_try" in
36325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36326   *) ac_try_echo=$ac_try;;
36327 esac
36328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36329   (eval "$ac_compile") 2>conftest.er1
36330   ac_status=$?
36331   grep -v '^ *+' conftest.er1 >conftest.err
36332   rm -f conftest.er1
36333   cat conftest.err >&5
36334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36335   (exit $ac_status); } && {
36336          test -z "$ac_c_werror_flag" ||
36337          test ! -s conftest.err
36338        } && test -s conftest.$ac_objext; then
36339   ac_hi=$ac_mid; break
36340 else
36341   echo "$as_me: failed program was:" >&5
36342 sed 's/^/| /' conftest.$ac_ext >&5
36343
36344         ac_lo=`expr $ac_mid + 1`
36345                         if test $ac_lo -le $ac_mid; then
36346                           ac_lo= ac_hi=
36347                           break
36348                         fi
36349                         ac_mid=`expr 2 '*' $ac_mid + 1`
36350 fi
36351
36352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36353   done
36354 else
36355   echo "$as_me: failed program was:" >&5
36356 sed 's/^/| /' conftest.$ac_ext >&5
36357
36358         cat >conftest.$ac_ext <<_ACEOF
36359 /* confdefs.h.  */
36360 _ACEOF
36361 cat confdefs.h >>conftest.$ac_ext
36362 cat >>conftest.$ac_ext <<_ACEOF
36363 /* end confdefs.h.  */
36364 $ac_includes_default
36365    typedef int * ac__type_sizeof_;
36366 int
36367 main ()
36368 {
36369 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36370 test_array [0] = 0
36371
36372   ;
36373   return 0;
36374 }
36375 _ACEOF
36376 rm -f conftest.$ac_objext
36377 if { (ac_try="$ac_compile"
36378 case "(($ac_try" in
36379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36380   *) ac_try_echo=$ac_try;;
36381 esac
36382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36383   (eval "$ac_compile") 2>conftest.er1
36384   ac_status=$?
36385   grep -v '^ *+' conftest.er1 >conftest.err
36386   rm -f conftest.er1
36387   cat conftest.err >&5
36388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389   (exit $ac_status); } && {
36390          test -z "$ac_c_werror_flag" ||
36391          test ! -s conftest.err
36392        } && test -s conftest.$ac_objext; then
36393   ac_hi=-1 ac_mid=-1
36394   while :; do
36395     cat >conftest.$ac_ext <<_ACEOF
36396 /* confdefs.h.  */
36397 _ACEOF
36398 cat confdefs.h >>conftest.$ac_ext
36399 cat >>conftest.$ac_ext <<_ACEOF
36400 /* end confdefs.h.  */
36401 $ac_includes_default
36402    typedef int * ac__type_sizeof_;
36403 int
36404 main ()
36405 {
36406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36407 test_array [0] = 0
36408
36409   ;
36410   return 0;
36411 }
36412 _ACEOF
36413 rm -f conftest.$ac_objext
36414 if { (ac_try="$ac_compile"
36415 case "(($ac_try" in
36416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36417   *) ac_try_echo=$ac_try;;
36418 esac
36419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36420   (eval "$ac_compile") 2>conftest.er1
36421   ac_status=$?
36422   grep -v '^ *+' conftest.er1 >conftest.err
36423   rm -f conftest.er1
36424   cat conftest.err >&5
36425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426   (exit $ac_status); } && {
36427          test -z "$ac_c_werror_flag" ||
36428          test ! -s conftest.err
36429        } && test -s conftest.$ac_objext; then
36430   ac_lo=$ac_mid; break
36431 else
36432   echo "$as_me: failed program was:" >&5
36433 sed 's/^/| /' conftest.$ac_ext >&5
36434
36435         ac_hi=`expr '(' $ac_mid ')' - 1`
36436                         if test $ac_mid -le $ac_hi; then
36437                           ac_lo= ac_hi=
36438                           break
36439                         fi
36440                         ac_mid=`expr 2 '*' $ac_mid`
36441 fi
36442
36443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36444   done
36445 else
36446   echo "$as_me: failed program was:" >&5
36447 sed 's/^/| /' conftest.$ac_ext >&5
36448
36449         ac_lo= ac_hi=
36450 fi
36451
36452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36453 fi
36454
36455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36456 # Binary search between lo and hi bounds.
36457 while test "x$ac_lo" != "x$ac_hi"; do
36458   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36459   cat >conftest.$ac_ext <<_ACEOF
36460 /* confdefs.h.  */
36461 _ACEOF
36462 cat confdefs.h >>conftest.$ac_ext
36463 cat >>conftest.$ac_ext <<_ACEOF
36464 /* end confdefs.h.  */
36465 $ac_includes_default
36466    typedef int * ac__type_sizeof_;
36467 int
36468 main ()
36469 {
36470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36471 test_array [0] = 0
36472
36473   ;
36474   return 0;
36475 }
36476 _ACEOF
36477 rm -f conftest.$ac_objext
36478 if { (ac_try="$ac_compile"
36479 case "(($ac_try" in
36480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36481   *) ac_try_echo=$ac_try;;
36482 esac
36483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36484   (eval "$ac_compile") 2>conftest.er1
36485   ac_status=$?
36486   grep -v '^ *+' conftest.er1 >conftest.err
36487   rm -f conftest.er1
36488   cat conftest.err >&5
36489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490   (exit $ac_status); } && {
36491          test -z "$ac_c_werror_flag" ||
36492          test ! -s conftest.err
36493        } && test -s conftest.$ac_objext; then
36494   ac_hi=$ac_mid
36495 else
36496   echo "$as_me: failed program was:" >&5
36497 sed 's/^/| /' conftest.$ac_ext >&5
36498
36499         ac_lo=`expr '(' $ac_mid ')' + 1`
36500 fi
36501
36502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36503 done
36504 case $ac_lo in
36505 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36506 '') if test "$ac_cv_type_int_p" = yes; then
36507      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36508 See \`config.log' for more details." >&5
36509 echo "$as_me: error: cannot compute sizeof (int *)
36510 See \`config.log' for more details." >&2;}
36511    { (exit 77); exit 77; }; }
36512    else
36513      ac_cv_sizeof_int_p=0
36514    fi ;;
36515 esac
36516 else
36517   cat >conftest.$ac_ext <<_ACEOF
36518 /* confdefs.h.  */
36519 _ACEOF
36520 cat confdefs.h >>conftest.$ac_ext
36521 cat >>conftest.$ac_ext <<_ACEOF
36522 /* end confdefs.h.  */
36523 $ac_includes_default
36524    typedef int * ac__type_sizeof_;
36525 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36526 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36527 #include <stdio.h>
36528 #include <stdlib.h>
36529 int
36530 main ()
36531 {
36532
36533   FILE *f = fopen ("conftest.val", "w");
36534   if (! f)
36535     return 1;
36536   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36537     {
36538       long int i = longval ();
36539       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36540         return 1;
36541       fprintf (f, "%ld\n", i);
36542     }
36543   else
36544     {
36545       unsigned long int i = ulongval ();
36546       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36547         return 1;
36548       fprintf (f, "%lu\n", i);
36549     }
36550   return ferror (f) || fclose (f) != 0;
36551
36552   ;
36553   return 0;
36554 }
36555 _ACEOF
36556 rm -f conftest$ac_exeext
36557 if { (ac_try="$ac_link"
36558 case "(($ac_try" in
36559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36560   *) ac_try_echo=$ac_try;;
36561 esac
36562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36563   (eval "$ac_link") 2>&5
36564   ac_status=$?
36565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36567   { (case "(($ac_try" in
36568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36569   *) ac_try_echo=$ac_try;;
36570 esac
36571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36572   (eval "$ac_try") 2>&5
36573   ac_status=$?
36574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36575   (exit $ac_status); }; }; then
36576   ac_cv_sizeof_int_p=`cat conftest.val`
36577 else
36578   echo "$as_me: program exited with status $ac_status" >&5
36579 echo "$as_me: failed program was:" >&5
36580 sed 's/^/| /' conftest.$ac_ext >&5
36581
36582 ( exit $ac_status )
36583 if test "$ac_cv_type_int_p" = yes; then
36584      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36585 See \`config.log' for more details." >&5
36586 echo "$as_me: error: cannot compute sizeof (int *)
36587 See \`config.log' for more details." >&2;}
36588    { (exit 77); exit 77; }; }
36589    else
36590      ac_cv_sizeof_int_p=0
36591    fi
36592 fi
36593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36594 fi
36595 rm -f conftest.val
36596 fi
36597 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36598 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36599
36600
36601
36602 cat >>confdefs.h <<_ACEOF
36603 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36604 _ACEOF
36605
36606
36607
36608 { echo "$as_me:$LINENO: checking for u_int type" >&5
36609 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36610 if test "${ac_cv_have_u_int+set}" = set; then
36611   echo $ECHO_N "(cached) $ECHO_C" >&6
36612 else
36613
36614        cat >conftest.$ac_ext <<_ACEOF
36615 /* confdefs.h.  */
36616 _ACEOF
36617 cat confdefs.h >>conftest.$ac_ext
36618 cat >>conftest.$ac_ext <<_ACEOF
36619 /* end confdefs.h.  */
36620
36621               #include <sys/types.h>
36622
36623 int
36624 main ()
36625 {
36626
36627               u_int a; a = 1;
36628
36629   ;
36630   return 0;
36631 }
36632 _ACEOF
36633 rm -f conftest.$ac_objext
36634 if { (ac_try="$ac_compile"
36635 case "(($ac_try" in
36636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36637   *) ac_try_echo=$ac_try;;
36638 esac
36639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36640   (eval "$ac_compile") 2>conftest.er1
36641   ac_status=$?
36642   grep -v '^ *+' conftest.er1 >conftest.err
36643   rm -f conftest.er1
36644   cat conftest.err >&5
36645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646   (exit $ac_status); } && {
36647          test -z "$ac_c_werror_flag" ||
36648          test ! -s conftest.err
36649        } && test -s conftest.$ac_objext; then
36650
36651               ac_cv_have_u_int="yes"
36652
36653 else
36654   echo "$as_me: failed program was:" >&5
36655 sed 's/^/| /' conftest.$ac_ext >&5
36656
36657
36658               ac_cv_have_u_int="no"
36659
36660
36661 fi
36662
36663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36664
36665
36666 fi
36667 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36668 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36669 if test "x$ac_cv_have_u_int" = "xyes" ; then
36670    cat >>confdefs.h <<\_ACEOF
36671 #define HAVE_U_INT 1
36672 _ACEOF
36673
36674    have_u_int=1
36675 fi
36676
36677 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36678 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36679 if test "${ac_cv_have_intmax_t+set}" = set; then
36680   echo $ECHO_N "(cached) $ECHO_C" >&6
36681 else
36682
36683        cat >conftest.$ac_ext <<_ACEOF
36684 /* confdefs.h.  */
36685 _ACEOF
36686 cat confdefs.h >>conftest.$ac_ext
36687 cat >>conftest.$ac_ext <<_ACEOF
36688 /* end confdefs.h.  */
36689
36690               #include <sys/types.h>
36691
36692 int
36693 main ()
36694 {
36695
36696               intmax_t a; a = 1;
36697
36698   ;
36699   return 0;
36700 }
36701 _ACEOF
36702 rm -f conftest.$ac_objext
36703 if { (ac_try="$ac_compile"
36704 case "(($ac_try" in
36705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36706   *) ac_try_echo=$ac_try;;
36707 esac
36708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36709   (eval "$ac_compile") 2>conftest.er1
36710   ac_status=$?
36711   grep -v '^ *+' conftest.er1 >conftest.err
36712   rm -f conftest.er1
36713   cat conftest.err >&5
36714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715   (exit $ac_status); } && {
36716          test -z "$ac_c_werror_flag" ||
36717          test ! -s conftest.err
36718        } && test -s conftest.$ac_objext; then
36719
36720               ac_cv_have_intmax_t="yes"
36721
36722 else
36723   echo "$as_me: failed program was:" >&5
36724 sed 's/^/| /' conftest.$ac_ext >&5
36725
36726
36727               cat >conftest.$ac_ext <<_ACEOF
36728 /* confdefs.h.  */
36729 _ACEOF
36730 cat confdefs.h >>conftest.$ac_ext
36731 cat >>conftest.$ac_ext <<_ACEOF
36732 /* end confdefs.h.  */
36733
36734                      #include <stdint.h>
36735
36736 int
36737 main ()
36738 {
36739
36740                      intmax_t a; a = 1;
36741
36742   ;
36743   return 0;
36744 }
36745 _ACEOF
36746 rm -f conftest.$ac_objext
36747 if { (ac_try="$ac_compile"
36748 case "(($ac_try" in
36749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36750   *) ac_try_echo=$ac_try;;
36751 esac
36752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36753   (eval "$ac_compile") 2>conftest.er1
36754   ac_status=$?
36755   grep -v '^ *+' conftest.er1 >conftest.err
36756   rm -f conftest.er1
36757   cat conftest.err >&5
36758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759   (exit $ac_status); } && {
36760          test -z "$ac_c_werror_flag" ||
36761          test ! -s conftest.err
36762        } && test -s conftest.$ac_objext; then
36763
36764                      ac_cv_have_intmax_t="yes"
36765
36766 else
36767   echo "$as_me: failed program was:" >&5
36768 sed 's/^/| /' conftest.$ac_ext >&5
36769
36770
36771                      ac_cv_have_intmax_t="no"
36772
36773
36774 fi
36775
36776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36777
36778
36779 fi
36780
36781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36782
36783
36784 fi
36785 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36786 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36787 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36788    cat >>confdefs.h <<\_ACEOF
36789 #define HAVE_INTMAX_T 1
36790 _ACEOF
36791
36792    have_intmax_t=1
36793 fi
36794
36795 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36796 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36797 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36798   echo $ECHO_N "(cached) $ECHO_C" >&6
36799 else
36800
36801        cat >conftest.$ac_ext <<_ACEOF
36802 /* confdefs.h.  */
36803 _ACEOF
36804 cat confdefs.h >>conftest.$ac_ext
36805 cat >>conftest.$ac_ext <<_ACEOF
36806 /* end confdefs.h.  */
36807
36808               #include <sys/types.h>
36809
36810 int
36811 main ()
36812 {
36813
36814               u_intmax_t a; a = 1;
36815
36816   ;
36817   return 0;
36818 }
36819 _ACEOF
36820 rm -f conftest.$ac_objext
36821 if { (ac_try="$ac_compile"
36822 case "(($ac_try" in
36823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36824   *) ac_try_echo=$ac_try;;
36825 esac
36826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36827   (eval "$ac_compile") 2>conftest.er1
36828   ac_status=$?
36829   grep -v '^ *+' conftest.er1 >conftest.err
36830   rm -f conftest.er1
36831   cat conftest.err >&5
36832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36833   (exit $ac_status); } && {
36834          test -z "$ac_c_werror_flag" ||
36835          test ! -s conftest.err
36836        } && test -s conftest.$ac_objext; then
36837
36838               ac_cv_have_u_intmax_t="yes"
36839
36840 else
36841   echo "$as_me: failed program was:" >&5
36842 sed 's/^/| /' conftest.$ac_ext >&5
36843
36844
36845               cat >conftest.$ac_ext <<_ACEOF
36846 /* confdefs.h.  */
36847 _ACEOF
36848 cat confdefs.h >>conftest.$ac_ext
36849 cat >>conftest.$ac_ext <<_ACEOF
36850 /* end confdefs.h.  */
36851
36852                      #include <stdint.h>
36853
36854 int
36855 main ()
36856 {
36857
36858                     u_intmax_t a; a = 1;
36859
36860   ;
36861   return 0;
36862 }
36863 _ACEOF
36864 rm -f conftest.$ac_objext
36865 if { (ac_try="$ac_compile"
36866 case "(($ac_try" in
36867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36868   *) ac_try_echo=$ac_try;;
36869 esac
36870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36871   (eval "$ac_compile") 2>conftest.er1
36872   ac_status=$?
36873   grep -v '^ *+' conftest.er1 >conftest.err
36874   rm -f conftest.er1
36875   cat conftest.err >&5
36876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36877   (exit $ac_status); } && {
36878          test -z "$ac_c_werror_flag" ||
36879          test ! -s conftest.err
36880        } && test -s conftest.$ac_objext; then
36881
36882                     ac_cv_have_u_intmax_t="yes"
36883
36884 else
36885   echo "$as_me: failed program was:" >&5
36886 sed 's/^/| /' conftest.$ac_ext >&5
36887
36888
36889                     ac_cv_have_u_intmax_t="no"
36890
36891
36892 fi
36893
36894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36895
36896
36897 fi
36898
36899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36900
36901
36902 fi
36903 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36904 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36905 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36906    cat >>confdefs.h <<\_ACEOF
36907 #define HAVE_U_INTMAX_T 1
36908 _ACEOF
36909
36910    have_u_intmax_t=1
36911 fi
36912
36913 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36914 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36915 if test "${ac_cv_have_intxx_t+set}" = set; then
36916   echo $ECHO_N "(cached) $ECHO_C" >&6
36917 else
36918
36919        cat >conftest.$ac_ext <<_ACEOF
36920 /* confdefs.h.  */
36921 _ACEOF
36922 cat confdefs.h >>conftest.$ac_ext
36923 cat >>conftest.$ac_ext <<_ACEOF
36924 /* end confdefs.h.  */
36925
36926               #include <sys/types.h>
36927
36928 int
36929 main ()
36930 {
36931
36932               int8_t a; int16_t b; int32_t c; a = b = c = 1;
36933
36934   ;
36935   return 0;
36936 }
36937 _ACEOF
36938 rm -f conftest.$ac_objext
36939 if { (ac_try="$ac_compile"
36940 case "(($ac_try" in
36941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36942   *) ac_try_echo=$ac_try;;
36943 esac
36944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36945   (eval "$ac_compile") 2>conftest.er1
36946   ac_status=$?
36947   grep -v '^ *+' conftest.er1 >conftest.err
36948   rm -f conftest.er1
36949   cat conftest.err >&5
36950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36951   (exit $ac_status); } && {
36952          test -z "$ac_c_werror_flag" ||
36953          test ! -s conftest.err
36954        } && test -s conftest.$ac_objext; then
36955
36956               ac_cv_have_intxx_t="yes"
36957
36958 else
36959   echo "$as_me: failed program was:" >&5
36960 sed 's/^/| /' conftest.$ac_ext >&5
36961
36962
36963               ac_cv_have_intxx_t="no"
36964
36965
36966 fi
36967
36968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36969
36970
36971 fi
36972 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36973 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36974 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36975    cat >>confdefs.h <<\_ACEOF
36976 #define HAVE_INTXX_T 1
36977 _ACEOF
36978
36979    have_intxx_t=1
36980 fi
36981
36982 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36983 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36984 if test "${ac_cv_have_int64_t+set}" = set; then
36985   echo $ECHO_N "(cached) $ECHO_C" >&6
36986 else
36987
36988        cat >conftest.$ac_ext <<_ACEOF
36989 /* confdefs.h.  */
36990 _ACEOF
36991 cat confdefs.h >>conftest.$ac_ext
36992 cat >>conftest.$ac_ext <<_ACEOF
36993 /* end confdefs.h.  */
36994
36995               #include <sys/types.h>
36996
36997 int
36998 main ()
36999 {
37000
37001               int64_t a; a = 1;
37002
37003   ;
37004   return 0;
37005 }
37006 _ACEOF
37007 rm -f conftest.$ac_objext
37008 if { (ac_try="$ac_compile"
37009 case "(($ac_try" in
37010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37011   *) ac_try_echo=$ac_try;;
37012 esac
37013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37014   (eval "$ac_compile") 2>conftest.er1
37015   ac_status=$?
37016   grep -v '^ *+' conftest.er1 >conftest.err
37017   rm -f conftest.er1
37018   cat conftest.err >&5
37019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37020   (exit $ac_status); } && {
37021          test -z "$ac_c_werror_flag" ||
37022          test ! -s conftest.err
37023        } && test -s conftest.$ac_objext; then
37024
37025               ac_cv_have_int64_t="yes"
37026
37027 else
37028   echo "$as_me: failed program was:" >&5
37029 sed 's/^/| /' conftest.$ac_ext >&5
37030
37031
37032               ac_cv_have_int64_t="no"
37033
37034
37035 fi
37036
37037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37038
37039
37040 fi
37041 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37042 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37043 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37044    cat >>confdefs.h <<\_ACEOF
37045 #define HAVE_INT64_T 1
37046 _ACEOF
37047
37048    have_int64_t=1
37049 fi
37050
37051 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37052 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37053 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37054   echo $ECHO_N "(cached) $ECHO_C" >&6
37055 else
37056
37057        cat >conftest.$ac_ext <<_ACEOF
37058 /* confdefs.h.  */
37059 _ACEOF
37060 cat confdefs.h >>conftest.$ac_ext
37061 cat >>conftest.$ac_ext <<_ACEOF
37062 /* end confdefs.h.  */
37063
37064               #include <sys/types.h>
37065
37066 int
37067 main ()
37068 {
37069
37070               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37071
37072   ;
37073   return 0;
37074 }
37075 _ACEOF
37076 rm -f conftest.$ac_objext
37077 if { (ac_try="$ac_compile"
37078 case "(($ac_try" in
37079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37080   *) ac_try_echo=$ac_try;;
37081 esac
37082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37083   (eval "$ac_compile") 2>conftest.er1
37084   ac_status=$?
37085   grep -v '^ *+' conftest.er1 >conftest.err
37086   rm -f conftest.er1
37087   cat conftest.err >&5
37088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089   (exit $ac_status); } && {
37090          test -z "$ac_c_werror_flag" ||
37091          test ! -s conftest.err
37092        } && test -s conftest.$ac_objext; then
37093
37094              ac_cv_have_u_intxx_t="yes"
37095
37096 else
37097   echo "$as_me: failed program was:" >&5
37098 sed 's/^/| /' conftest.$ac_ext >&5
37099
37100
37101              ac_cv_have_u_intxx_t="no"
37102
37103
37104 fi
37105
37106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37107
37108
37109 fi
37110 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37111 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37112 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37113    cat >>confdefs.h <<\_ACEOF
37114 #define HAVE_U_INTXX_T 1
37115 _ACEOF
37116
37117    have_u_intxx_t=1
37118 fi
37119
37120 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37121 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37122 if test "${ac_cv_have_u_int64_t+set}" = set; then
37123   echo $ECHO_N "(cached) $ECHO_C" >&6
37124 else
37125
37126        cat >conftest.$ac_ext <<_ACEOF
37127 /* confdefs.h.  */
37128 _ACEOF
37129 cat confdefs.h >>conftest.$ac_ext
37130 cat >>conftest.$ac_ext <<_ACEOF
37131 /* end confdefs.h.  */
37132
37133               #include <sys/types.h>
37134
37135 int
37136 main ()
37137 {
37138
37139               u_int64_t a; a = 1;
37140
37141   ;
37142   return 0;
37143 }
37144 _ACEOF
37145 rm -f conftest.$ac_objext
37146 if { (ac_try="$ac_compile"
37147 case "(($ac_try" in
37148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37149   *) ac_try_echo=$ac_try;;
37150 esac
37151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37152   (eval "$ac_compile") 2>conftest.er1
37153   ac_status=$?
37154   grep -v '^ *+' conftest.er1 >conftest.err
37155   rm -f conftest.er1
37156   cat conftest.err >&5
37157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37158   (exit $ac_status); } && {
37159          test -z "$ac_c_werror_flag" ||
37160          test ! -s conftest.err
37161        } && test -s conftest.$ac_objext; then
37162
37163              ac_cv_have_u_int64_t="yes"
37164
37165 else
37166   echo "$as_me: failed program was:" >&5
37167 sed 's/^/| /' conftest.$ac_ext >&5
37168
37169
37170              ac_cv_have_u_int64_t="no"
37171
37172
37173 fi
37174
37175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37176
37177
37178 fi
37179 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37180 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37181 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37182    cat >>confdefs.h <<\_ACEOF
37183 #define HAVE_U_INT64_T 1
37184 _ACEOF
37185
37186    have_u_int64_t=1
37187 fi
37188
37189 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37190     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37191 then
37192    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37193 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37194    cat >conftest.$ac_ext <<_ACEOF
37195 /* confdefs.h.  */
37196 _ACEOF
37197 cat confdefs.h >>conftest.$ac_ext
37198 cat >>conftest.$ac_ext <<_ACEOF
37199 /* end confdefs.h.  */
37200
37201           #include <sys/bitypes.h>
37202
37203 int
37204 main ()
37205 {
37206
37207           int8_t a; int16_t b; int32_t c;
37208           u_int8_t e; u_int16_t f; u_int32_t g;
37209           a = b = c = e = f = g = 1;
37210
37211   ;
37212   return 0;
37213 }
37214 _ACEOF
37215 rm -f conftest.$ac_objext
37216 if { (ac_try="$ac_compile"
37217 case "(($ac_try" in
37218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37219   *) ac_try_echo=$ac_try;;
37220 esac
37221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37222   (eval "$ac_compile") 2>conftest.er1
37223   ac_status=$?
37224   grep -v '^ *+' conftest.er1 >conftest.err
37225   rm -f conftest.er1
37226   cat conftest.err >&5
37227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37228   (exit $ac_status); } && {
37229          test -z "$ac_c_werror_flag" ||
37230          test ! -s conftest.err
37231        } && test -s conftest.$ac_objext; then
37232
37233           cat >>confdefs.h <<\_ACEOF
37234 #define HAVE_U_INTXX_T 1
37235 _ACEOF
37236
37237           cat >>confdefs.h <<\_ACEOF
37238 #define HAVE_INTXX_T 1
37239 _ACEOF
37240
37241           cat >>confdefs.h <<\_ACEOF
37242 #define HAVE_SYS_BITYPES_H 1
37243 _ACEOF
37244
37245           { echo "$as_me:$LINENO: result: yes" >&5
37246 echo "${ECHO_T}yes" >&6; }
37247
37248 else
37249   echo "$as_me: failed program was:" >&5
37250 sed 's/^/| /' conftest.$ac_ext >&5
37251
37252
37253           { echo "$as_me:$LINENO: result: no" >&5
37254 echo "${ECHO_T}no" >&6; }
37255
37256
37257 fi
37258
37259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37260 fi
37261
37262 if test -z "$have_u_intxx_t" ; then
37263    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37264 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37265 if test "${ac_cv_have_uintxx_t+set}" = set; then
37266   echo $ECHO_N "(cached) $ECHO_C" >&6
37267 else
37268
37269           cat >conftest.$ac_ext <<_ACEOF
37270 /* confdefs.h.  */
37271 _ACEOF
37272 cat confdefs.h >>conftest.$ac_ext
37273 cat >>conftest.$ac_ext <<_ACEOF
37274 /* end confdefs.h.  */
37275
37276                  #include <sys/types.h>
37277
37278 int
37279 main ()
37280 {
37281
37282                  uint8_t a; uint16_t b;
37283                  uint32_t c; a = b = c = 1;
37284
37285   ;
37286   return 0;
37287 }
37288 _ACEOF
37289 rm -f conftest.$ac_objext
37290 if { (ac_try="$ac_compile"
37291 case "(($ac_try" in
37292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37293   *) ac_try_echo=$ac_try;;
37294 esac
37295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37296   (eval "$ac_compile") 2>conftest.er1
37297   ac_status=$?
37298   grep -v '^ *+' conftest.er1 >conftest.err
37299   rm -f conftest.er1
37300   cat conftest.err >&5
37301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37302   (exit $ac_status); } && {
37303          test -z "$ac_c_werror_flag" ||
37304          test ! -s conftest.err
37305        } && test -s conftest.$ac_objext; then
37306
37307                 ac_cv_have_uintxx_t="yes"
37308
37309 else
37310   echo "$as_me: failed program was:" >&5
37311 sed 's/^/| /' conftest.$ac_ext >&5
37312
37313
37314                 ac_cv_have_uintxx_t="no"
37315
37316
37317 fi
37318
37319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37320
37321
37322 fi
37323 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37324 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37325    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37326       cat >>confdefs.h <<\_ACEOF
37327 #define HAVE_UINTXX_T 1
37328 _ACEOF
37329
37330    fi
37331 fi
37332
37333 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37334     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37335 then
37336    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37337 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37338    cat >conftest.$ac_ext <<_ACEOF
37339 /* confdefs.h.  */
37340 _ACEOF
37341 cat confdefs.h >>conftest.$ac_ext
37342 cat >>conftest.$ac_ext <<_ACEOF
37343 /* end confdefs.h.  */
37344
37345           #include <sys/bitypes.h>
37346
37347 int
37348 main ()
37349 {
37350
37351           int64_t a; u_int64_t b;
37352           a = b = 1;
37353
37354   ;
37355   return 0;
37356 }
37357 _ACEOF
37358 rm -f conftest.$ac_objext
37359 if { (ac_try="$ac_compile"
37360 case "(($ac_try" in
37361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37362   *) ac_try_echo=$ac_try;;
37363 esac
37364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37365   (eval "$ac_compile") 2>conftest.er1
37366   ac_status=$?
37367   grep -v '^ *+' conftest.er1 >conftest.err
37368   rm -f conftest.er1
37369   cat conftest.err >&5
37370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37371   (exit $ac_status); } && {
37372          test -z "$ac_c_werror_flag" ||
37373          test ! -s conftest.err
37374        } && test -s conftest.$ac_objext; then
37375
37376           cat >>confdefs.h <<\_ACEOF
37377 #define HAVE_U_INT64_T 1
37378 _ACEOF
37379
37380           cat >>confdefs.h <<\_ACEOF
37381 #define HAVE_INT64_T 1
37382 _ACEOF
37383
37384           { echo "$as_me:$LINENO: result: yes" >&5
37385 echo "${ECHO_T}yes" >&6; }
37386
37387 else
37388   echo "$as_me: failed program was:" >&5
37389 sed 's/^/| /' conftest.$ac_ext >&5
37390
37391
37392           { echo "$as_me:$LINENO: result: no" >&5
37393 echo "${ECHO_T}no" >&6; }
37394
37395
37396 fi
37397
37398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37399 fi
37400
37401 if (test -z "$have_uintxx_t" && \
37402     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37403 then
37404    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37405 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37406    cat >conftest.$ac_ext <<_ACEOF
37407 /* confdefs.h.  */
37408 _ACEOF
37409 cat confdefs.h >>conftest.$ac_ext
37410 cat >>conftest.$ac_ext <<_ACEOF
37411 /* end confdefs.h.  */
37412
37413           #include <sys/bitypes.h>
37414
37415 int
37416 main ()
37417 {
37418
37419           uint8_t a; uint16_t b;
37420           uint32_t c; a = b = c = 1;
37421
37422   ;
37423   return 0;
37424 }
37425 _ACEOF
37426 rm -f conftest.$ac_objext
37427 if { (ac_try="$ac_compile"
37428 case "(($ac_try" in
37429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37430   *) ac_try_echo=$ac_try;;
37431 esac
37432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37433   (eval "$ac_compile") 2>conftest.er1
37434   ac_status=$?
37435   grep -v '^ *+' conftest.er1 >conftest.err
37436   rm -f conftest.er1
37437   cat conftest.err >&5
37438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37439   (exit $ac_status); } && {
37440          test -z "$ac_c_werror_flag" ||
37441          test ! -s conftest.err
37442        } && test -s conftest.$ac_objext; then
37443
37444           cat >>confdefs.h <<\_ACEOF
37445 #define HAVE_UINTXX_T 1
37446 _ACEOF
37447
37448           { echo "$as_me:$LINENO: result: yes" >&5
37449 echo "${ECHO_T}yes" >&6; }
37450
37451 else
37452   echo "$as_me: failed program was:" >&5
37453 sed 's/^/| /' conftest.$ac_ext >&5
37454
37455
37456           { echo "$as_me:$LINENO: result: no" >&5
37457 echo "${ECHO_T}no" >&6; }
37458
37459
37460 fi
37461
37462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37463 fi
37464
37465
37466
37467
37468
37469
37470
37471
37472
37473
37474
37475
37476
37477
37478 for ac_func in \
37479    fork \
37480    getcwd \
37481    gethostname \
37482    getpid \
37483    gettimeofday \
37484    setpgid \
37485    setpgrp \
37486    setsid \
37487    signal \
37488    strerror \
37489    strncmp \
37490    strncpy \
37491    vfprintf \
37492
37493 do
37494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37498   echo $ECHO_N "(cached) $ECHO_C" >&6
37499 else
37500   cat >conftest.$ac_ext <<_ACEOF
37501 /* confdefs.h.  */
37502 _ACEOF
37503 cat confdefs.h >>conftest.$ac_ext
37504 cat >>conftest.$ac_ext <<_ACEOF
37505 /* end confdefs.h.  */
37506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37508 #define $ac_func innocuous_$ac_func
37509
37510 /* System header to define __stub macros and hopefully few prototypes,
37511     which can conflict with char $ac_func (); below.
37512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37513     <limits.h> exists even on freestanding compilers.  */
37514
37515 #ifdef __STDC__
37516 # include <limits.h>
37517 #else
37518 # include <assert.h>
37519 #endif
37520
37521 #undef $ac_func
37522
37523 /* Override any GCC internal prototype to avoid an error.
37524    Use char because int might match the return type of a GCC
37525    builtin and then its argument prototype would still apply.  */
37526 #ifdef __cplusplus
37527 extern "C"
37528 #endif
37529 char $ac_func ();
37530 /* The GNU C library defines this for functions which it implements
37531     to always fail with ENOSYS.  Some functions are actually named
37532     something starting with __ and the normal name is an alias.  */
37533 #if defined __stub_$ac_func || defined __stub___$ac_func
37534 choke me
37535 #endif
37536
37537 int
37538 main ()
37539 {
37540 return $ac_func ();
37541   ;
37542   return 0;
37543 }
37544 _ACEOF
37545 rm -f conftest.$ac_objext conftest$ac_exeext
37546 if { (ac_try="$ac_link"
37547 case "(($ac_try" in
37548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37549   *) ac_try_echo=$ac_try;;
37550 esac
37551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37552   (eval "$ac_link") 2>conftest.er1
37553   ac_status=$?
37554   grep -v '^ *+' conftest.er1 >conftest.err
37555   rm -f conftest.er1
37556   cat conftest.err >&5
37557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558   (exit $ac_status); } && {
37559          test -z "$ac_c_werror_flag" ||
37560          test ! -s conftest.err
37561        } && test -s conftest$ac_exeext &&
37562        $as_test_x conftest$ac_exeext; then
37563   eval "$as_ac_var=yes"
37564 else
37565   echo "$as_me: failed program was:" >&5
37566 sed 's/^/| /' conftest.$ac_ext >&5
37567
37568         eval "$as_ac_var=no"
37569 fi
37570
37571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37572       conftest$ac_exeext conftest.$ac_ext
37573 fi
37574 ac_res=`eval echo '${'$as_ac_var'}'`
37575                { echo "$as_me:$LINENO: result: $ac_res" >&5
37576 echo "${ECHO_T}$ac_res" >&6; }
37577 if test `eval echo '${'$as_ac_var'}'` = yes; then
37578   cat >>confdefs.h <<_ACEOF
37579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37580 _ACEOF
37581
37582 else
37583   echo 'configure: cannot find needed function.'; exit 1
37584
37585 fi
37586 done
37587
37588
37589
37590 for ac_func in fchdir
37591 do
37592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37596   echo $ECHO_N "(cached) $ECHO_C" >&6
37597 else
37598   cat >conftest.$ac_ext <<_ACEOF
37599 /* confdefs.h.  */
37600 _ACEOF
37601 cat confdefs.h >>conftest.$ac_ext
37602 cat >>conftest.$ac_ext <<_ACEOF
37603 /* end confdefs.h.  */
37604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37606 #define $ac_func innocuous_$ac_func
37607
37608 /* System header to define __stub macros and hopefully few prototypes,
37609     which can conflict with char $ac_func (); below.
37610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37611     <limits.h> exists even on freestanding compilers.  */
37612
37613 #ifdef __STDC__
37614 # include <limits.h>
37615 #else
37616 # include <assert.h>
37617 #endif
37618
37619 #undef $ac_func
37620
37621 /* Override any GCC internal prototype to avoid an error.
37622    Use char because int might match the return type of a GCC
37623    builtin and then its argument prototype would still apply.  */
37624 #ifdef __cplusplus
37625 extern "C"
37626 #endif
37627 char $ac_func ();
37628 /* The GNU C library defines this for functions which it implements
37629     to always fail with ENOSYS.  Some functions are actually named
37630     something starting with __ and the normal name is an alias.  */
37631 #if defined __stub_$ac_func || defined __stub___$ac_func
37632 choke me
37633 #endif
37634
37635 int
37636 main ()
37637 {
37638 return $ac_func ();
37639   ;
37640   return 0;
37641 }
37642 _ACEOF
37643 rm -f conftest.$ac_objext conftest$ac_exeext
37644 if { (ac_try="$ac_link"
37645 case "(($ac_try" in
37646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37647   *) ac_try_echo=$ac_try;;
37648 esac
37649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37650   (eval "$ac_link") 2>conftest.er1
37651   ac_status=$?
37652   grep -v '^ *+' conftest.er1 >conftest.err
37653   rm -f conftest.er1
37654   cat conftest.err >&5
37655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656   (exit $ac_status); } && {
37657          test -z "$ac_c_werror_flag" ||
37658          test ! -s conftest.err
37659        } && test -s conftest$ac_exeext &&
37660        $as_test_x conftest$ac_exeext; then
37661   eval "$as_ac_var=yes"
37662 else
37663   echo "$as_me: failed program was:" >&5
37664 sed 's/^/| /' conftest.$ac_ext >&5
37665
37666         eval "$as_ac_var=no"
37667 fi
37668
37669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37670       conftest$ac_exeext conftest.$ac_ext
37671 fi
37672 ac_res=`eval echo '${'$as_ac_var'}'`
37673                { echo "$as_me:$LINENO: result: $ac_res" >&5
37674 echo "${ECHO_T}$ac_res" >&6; }
37675 if test `eval echo '${'$as_ac_var'}'` = yes; then
37676   cat >>confdefs.h <<_ACEOF
37677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37678 _ACEOF
37679  cat >>confdefs.h <<\_ACEOF
37680 #define HAVE_FCHDIR 1
37681 _ACEOF
37682
37683 fi
37684 done
37685
37686
37687 for ac_func in strtoll
37688 do
37689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37693   echo $ECHO_N "(cached) $ECHO_C" >&6
37694 else
37695   cat >conftest.$ac_ext <<_ACEOF
37696 /* confdefs.h.  */
37697 _ACEOF
37698 cat confdefs.h >>conftest.$ac_ext
37699 cat >>conftest.$ac_ext <<_ACEOF
37700 /* end confdefs.h.  */
37701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37703 #define $ac_func innocuous_$ac_func
37704
37705 /* System header to define __stub macros and hopefully few prototypes,
37706     which can conflict with char $ac_func (); below.
37707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37708     <limits.h> exists even on freestanding compilers.  */
37709
37710 #ifdef __STDC__
37711 # include <limits.h>
37712 #else
37713 # include <assert.h>
37714 #endif
37715
37716 #undef $ac_func
37717
37718 /* Override any GCC internal prototype to avoid an error.
37719    Use char because int might match the return type of a GCC
37720    builtin and then its argument prototype would still apply.  */
37721 #ifdef __cplusplus
37722 extern "C"
37723 #endif
37724 char $ac_func ();
37725 /* The GNU C library defines this for functions which it implements
37726     to always fail with ENOSYS.  Some functions are actually named
37727     something starting with __ and the normal name is an alias.  */
37728 #if defined __stub_$ac_func || defined __stub___$ac_func
37729 choke me
37730 #endif
37731
37732 int
37733 main ()
37734 {
37735 return $ac_func ();
37736   ;
37737   return 0;
37738 }
37739 _ACEOF
37740 rm -f conftest.$ac_objext conftest$ac_exeext
37741 if { (ac_try="$ac_link"
37742 case "(($ac_try" in
37743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37744   *) ac_try_echo=$ac_try;;
37745 esac
37746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37747   (eval "$ac_link") 2>conftest.er1
37748   ac_status=$?
37749   grep -v '^ *+' conftest.er1 >conftest.err
37750   rm -f conftest.er1
37751   cat conftest.err >&5
37752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37753   (exit $ac_status); } && {
37754          test -z "$ac_c_werror_flag" ||
37755          test ! -s conftest.err
37756        } && test -s conftest$ac_exeext &&
37757        $as_test_x conftest$ac_exeext; then
37758   eval "$as_ac_var=yes"
37759 else
37760   echo "$as_me: failed program was:" >&5
37761 sed 's/^/| /' conftest.$ac_ext >&5
37762
37763         eval "$as_ac_var=no"
37764 fi
37765
37766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37767       conftest$ac_exeext conftest.$ac_ext
37768 fi
37769 ac_res=`eval echo '${'$as_ac_var'}'`
37770                { echo "$as_me:$LINENO: result: $ac_res" >&5
37771 echo "${ECHO_T}$ac_res" >&6; }
37772 if test `eval echo '${'$as_ac_var'}'` = yes; then
37773   cat >>confdefs.h <<_ACEOF
37774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37775 _ACEOF
37776  cat >>confdefs.h <<\_ACEOF
37777 #define HAVE_STRTOLL 1
37778 _ACEOF
37779
37780 fi
37781 done
37782
37783
37784 for ac_func in posix_fadvise
37785 do
37786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37790   echo $ECHO_N "(cached) $ECHO_C" >&6
37791 else
37792   cat >conftest.$ac_ext <<_ACEOF
37793 /* confdefs.h.  */
37794 _ACEOF
37795 cat confdefs.h >>conftest.$ac_ext
37796 cat >>conftest.$ac_ext <<_ACEOF
37797 /* end confdefs.h.  */
37798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37800 #define $ac_func innocuous_$ac_func
37801
37802 /* System header to define __stub macros and hopefully few prototypes,
37803     which can conflict with char $ac_func (); below.
37804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37805     <limits.h> exists even on freestanding compilers.  */
37806
37807 #ifdef __STDC__
37808 # include <limits.h>
37809 #else
37810 # include <assert.h>
37811 #endif
37812
37813 #undef $ac_func
37814
37815 /* Override any GCC internal prototype to avoid an error.
37816    Use char because int might match the return type of a GCC
37817    builtin and then its argument prototype would still apply.  */
37818 #ifdef __cplusplus
37819 extern "C"
37820 #endif
37821 char $ac_func ();
37822 /* The GNU C library defines this for functions which it implements
37823     to always fail with ENOSYS.  Some functions are actually named
37824     something starting with __ and the normal name is an alias.  */
37825 #if defined __stub_$ac_func || defined __stub___$ac_func
37826 choke me
37827 #endif
37828
37829 int
37830 main ()
37831 {
37832 return $ac_func ();
37833   ;
37834   return 0;
37835 }
37836 _ACEOF
37837 rm -f conftest.$ac_objext conftest$ac_exeext
37838 if { (ac_try="$ac_link"
37839 case "(($ac_try" in
37840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37841   *) ac_try_echo=$ac_try;;
37842 esac
37843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37844   (eval "$ac_link") 2>conftest.er1
37845   ac_status=$?
37846   grep -v '^ *+' conftest.er1 >conftest.err
37847   rm -f conftest.er1
37848   cat conftest.err >&5
37849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37850   (exit $ac_status); } && {
37851          test -z "$ac_c_werror_flag" ||
37852          test ! -s conftest.err
37853        } && test -s conftest$ac_exeext &&
37854        $as_test_x conftest$ac_exeext; then
37855   eval "$as_ac_var=yes"
37856 else
37857   echo "$as_me: failed program was:" >&5
37858 sed 's/^/| /' conftest.$ac_ext >&5
37859
37860         eval "$as_ac_var=no"
37861 fi
37862
37863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37864       conftest$ac_exeext conftest.$ac_ext
37865 fi
37866 ac_res=`eval echo '${'$as_ac_var'}'`
37867                { echo "$as_me:$LINENO: result: $ac_res" >&5
37868 echo "${ECHO_T}$ac_res" >&6; }
37869 if test `eval echo '${'$as_ac_var'}'` = yes; then
37870   cat >>confdefs.h <<_ACEOF
37871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37872 _ACEOF
37873
37874 fi
37875 done
37876
37877
37878 for ac_func in fdatasync
37879 do
37880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37884   echo $ECHO_N "(cached) $ECHO_C" >&6
37885 else
37886   cat >conftest.$ac_ext <<_ACEOF
37887 /* confdefs.h.  */
37888 _ACEOF
37889 cat confdefs.h >>conftest.$ac_ext
37890 cat >>conftest.$ac_ext <<_ACEOF
37891 /* end confdefs.h.  */
37892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37894 #define $ac_func innocuous_$ac_func
37895
37896 /* System header to define __stub macros and hopefully few prototypes,
37897     which can conflict with char $ac_func (); below.
37898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37899     <limits.h> exists even on freestanding compilers.  */
37900
37901 #ifdef __STDC__
37902 # include <limits.h>
37903 #else
37904 # include <assert.h>
37905 #endif
37906
37907 #undef $ac_func
37908
37909 /* Override any GCC internal prototype to avoid an error.
37910    Use char because int might match the return type of a GCC
37911    builtin and then its argument prototype would still apply.  */
37912 #ifdef __cplusplus
37913 extern "C"
37914 #endif
37915 char $ac_func ();
37916 /* The GNU C library defines this for functions which it implements
37917     to always fail with ENOSYS.  Some functions are actually named
37918     something starting with __ and the normal name is an alias.  */
37919 #if defined __stub_$ac_func || defined __stub___$ac_func
37920 choke me
37921 #endif
37922
37923 int
37924 main ()
37925 {
37926 return $ac_func ();
37927   ;
37928   return 0;
37929 }
37930 _ACEOF
37931 rm -f conftest.$ac_objext conftest$ac_exeext
37932 if { (ac_try="$ac_link"
37933 case "(($ac_try" in
37934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37935   *) ac_try_echo=$ac_try;;
37936 esac
37937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37938   (eval "$ac_link") 2>conftest.er1
37939   ac_status=$?
37940   grep -v '^ *+' conftest.er1 >conftest.err
37941   rm -f conftest.er1
37942   cat conftest.err >&5
37943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944   (exit $ac_status); } && {
37945          test -z "$ac_c_werror_flag" ||
37946          test ! -s conftest.err
37947        } && test -s conftest$ac_exeext &&
37948        $as_test_x conftest$ac_exeext; then
37949   eval "$as_ac_var=yes"
37950 else
37951   echo "$as_me: failed program was:" >&5
37952 sed 's/^/| /' conftest.$ac_ext >&5
37953
37954         eval "$as_ac_var=no"
37955 fi
37956
37957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37958       conftest$ac_exeext conftest.$ac_ext
37959 fi
37960 ac_res=`eval echo '${'$as_ac_var'}'`
37961                { echo "$as_me:$LINENO: result: $ac_res" >&5
37962 echo "${ECHO_T}$ac_res" >&6; }
37963 if test `eval echo '${'$as_ac_var'}'` = yes; then
37964   cat >>confdefs.h <<_ACEOF
37965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37966 _ACEOF
37967
37968 fi
37969 done
37970
37971
37972
37973 for ac_func in chflags
37974 do
37975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37979   echo $ECHO_N "(cached) $ECHO_C" >&6
37980 else
37981   cat >conftest.$ac_ext <<_ACEOF
37982 /* confdefs.h.  */
37983 _ACEOF
37984 cat confdefs.h >>conftest.$ac_ext
37985 cat >>conftest.$ac_ext <<_ACEOF
37986 /* end confdefs.h.  */
37987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37989 #define $ac_func innocuous_$ac_func
37990
37991 /* System header to define __stub macros and hopefully few prototypes,
37992     which can conflict with char $ac_func (); below.
37993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37994     <limits.h> exists even on freestanding compilers.  */
37995
37996 #ifdef __STDC__
37997 # include <limits.h>
37998 #else
37999 # include <assert.h>
38000 #endif
38001
38002 #undef $ac_func
38003
38004 /* Override any GCC internal prototype to avoid an error.
38005    Use char because int might match the return type of a GCC
38006    builtin and then its argument prototype would still apply.  */
38007 #ifdef __cplusplus
38008 extern "C"
38009 #endif
38010 char $ac_func ();
38011 /* The GNU C library defines this for functions which it implements
38012     to always fail with ENOSYS.  Some functions are actually named
38013     something starting with __ and the normal name is an alias.  */
38014 #if defined __stub_$ac_func || defined __stub___$ac_func
38015 choke me
38016 #endif
38017
38018 int
38019 main ()
38020 {
38021 return $ac_func ();
38022   ;
38023   return 0;
38024 }
38025 _ACEOF
38026 rm -f conftest.$ac_objext conftest$ac_exeext
38027 if { (ac_try="$ac_link"
38028 case "(($ac_try" in
38029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38030   *) ac_try_echo=$ac_try;;
38031 esac
38032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38033   (eval "$ac_link") 2>conftest.er1
38034   ac_status=$?
38035   grep -v '^ *+' conftest.er1 >conftest.err
38036   rm -f conftest.er1
38037   cat conftest.err >&5
38038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38039   (exit $ac_status); } && {
38040          test -z "$ac_c_werror_flag" ||
38041          test ! -s conftest.err
38042        } && test -s conftest$ac_exeext &&
38043        $as_test_x conftest$ac_exeext; then
38044   eval "$as_ac_var=yes"
38045 else
38046   echo "$as_me: failed program was:" >&5
38047 sed 's/^/| /' conftest.$ac_ext >&5
38048
38049         eval "$as_ac_var=no"
38050 fi
38051
38052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38053       conftest$ac_exeext conftest.$ac_ext
38054 fi
38055 ac_res=`eval echo '${'$as_ac_var'}'`
38056                { echo "$as_me:$LINENO: result: $ac_res" >&5
38057 echo "${ECHO_T}$ac_res" >&6; }
38058 if test `eval echo '${'$as_ac_var'}'` = yes; then
38059   cat >>confdefs.h <<_ACEOF
38060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38061 _ACEOF
38062
38063 fi
38064 done
38065
38066
38067
38068
38069
38070
38071 for ac_func in snprintf vsnprintf gethostid fseeko
38072 do
38073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38077   echo $ECHO_N "(cached) $ECHO_C" >&6
38078 else
38079   cat >conftest.$ac_ext <<_ACEOF
38080 /* confdefs.h.  */
38081 _ACEOF
38082 cat confdefs.h >>conftest.$ac_ext
38083 cat >>conftest.$ac_ext <<_ACEOF
38084 /* end confdefs.h.  */
38085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38087 #define $ac_func innocuous_$ac_func
38088
38089 /* System header to define __stub macros and hopefully few prototypes,
38090     which can conflict with char $ac_func (); below.
38091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38092     <limits.h> exists even on freestanding compilers.  */
38093
38094 #ifdef __STDC__
38095 # include <limits.h>
38096 #else
38097 # include <assert.h>
38098 #endif
38099
38100 #undef $ac_func
38101
38102 /* Override any GCC internal prototype to avoid an error.
38103    Use char because int might match the return type of a GCC
38104    builtin and then its argument prototype would still apply.  */
38105 #ifdef __cplusplus
38106 extern "C"
38107 #endif
38108 char $ac_func ();
38109 /* The GNU C library defines this for functions which it implements
38110     to always fail with ENOSYS.  Some functions are actually named
38111     something starting with __ and the normal name is an alias.  */
38112 #if defined __stub_$ac_func || defined __stub___$ac_func
38113 choke me
38114 #endif
38115
38116 int
38117 main ()
38118 {
38119 return $ac_func ();
38120   ;
38121   return 0;
38122 }
38123 _ACEOF
38124 rm -f conftest.$ac_objext conftest$ac_exeext
38125 if { (ac_try="$ac_link"
38126 case "(($ac_try" in
38127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38128   *) ac_try_echo=$ac_try;;
38129 esac
38130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38131   (eval "$ac_link") 2>conftest.er1
38132   ac_status=$?
38133   grep -v '^ *+' conftest.er1 >conftest.err
38134   rm -f conftest.er1
38135   cat conftest.err >&5
38136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137   (exit $ac_status); } && {
38138          test -z "$ac_c_werror_flag" ||
38139          test ! -s conftest.err
38140        } && test -s conftest$ac_exeext &&
38141        $as_test_x conftest$ac_exeext; then
38142   eval "$as_ac_var=yes"
38143 else
38144   echo "$as_me: failed program was:" >&5
38145 sed 's/^/| /' conftest.$ac_ext >&5
38146
38147         eval "$as_ac_var=no"
38148 fi
38149
38150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38151       conftest$ac_exeext conftest.$ac_ext
38152 fi
38153 ac_res=`eval echo '${'$as_ac_var'}'`
38154                { echo "$as_me:$LINENO: result: $ac_res" >&5
38155 echo "${ECHO_T}$ac_res" >&6; }
38156 if test `eval echo '${'$as_ac_var'}'` = yes; then
38157   cat >>confdefs.h <<_ACEOF
38158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38159 _ACEOF
38160
38161 fi
38162 done
38163
38164
38165 { echo "$as_me:$LINENO: checking for va_copy" >&5
38166 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38167 if test "${ba_cv_va_copy+set}" = set; then
38168   echo $ECHO_N "(cached) $ECHO_C" >&6
38169 else
38170
38171        cat >conftest.$ac_ext <<_ACEOF
38172 /* confdefs.h.  */
38173 _ACEOF
38174 cat confdefs.h >>conftest.$ac_ext
38175 cat >>conftest.$ac_ext <<_ACEOF
38176 /* end confdefs.h.  */
38177
38178               #include <stdarg.h>
38179               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38180               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38181
38182 int
38183 main ()
38184 {
38185
38186               call_use_va_copy(1,2,3)
38187
38188   ;
38189   return 0;
38190 }
38191 _ACEOF
38192 rm -f conftest.$ac_objext conftest$ac_exeext
38193 if { (ac_try="$ac_link"
38194 case "(($ac_try" in
38195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38196   *) ac_try_echo=$ac_try;;
38197 esac
38198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38199   (eval "$ac_link") 2>conftest.er1
38200   ac_status=$?
38201   grep -v '^ *+' conftest.er1 >conftest.err
38202   rm -f conftest.er1
38203   cat conftest.err >&5
38204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38205   (exit $ac_status); } && {
38206          test -z "$ac_c_werror_flag" ||
38207          test ! -s conftest.err
38208        } && test -s conftest$ac_exeext &&
38209        $as_test_x conftest$ac_exeext; then
38210
38211               ba_cv_va_copy=yes,
38212
38213 else
38214   echo "$as_me: failed program was:" >&5
38215 sed 's/^/| /' conftest.$ac_ext >&5
38216
38217
38218               ba_cv_va_copy=no
38219
38220
38221 fi
38222
38223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38224       conftest$ac_exeext conftest.$ac_ext
38225
38226
38227 fi
38228 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38229 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38230 test $ba_cv_va_copy = yes &&
38231 cat >>confdefs.h <<\_ACEOF
38232 #define HAVE_VA_COPY 1
38233 _ACEOF
38234
38235
38236
38237
38238
38239
38240 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38241 do
38242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38246   echo $ECHO_N "(cached) $ECHO_C" >&6
38247 else
38248   cat >conftest.$ac_ext <<_ACEOF
38249 /* confdefs.h.  */
38250 _ACEOF
38251 cat confdefs.h >>conftest.$ac_ext
38252 cat >>conftest.$ac_ext <<_ACEOF
38253 /* end confdefs.h.  */
38254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38256 #define $ac_func innocuous_$ac_func
38257
38258 /* System header to define __stub macros and hopefully few prototypes,
38259     which can conflict with char $ac_func (); below.
38260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38261     <limits.h> exists even on freestanding compilers.  */
38262
38263 #ifdef __STDC__
38264 # include <limits.h>
38265 #else
38266 # include <assert.h>
38267 #endif
38268
38269 #undef $ac_func
38270
38271 /* Override any GCC internal prototype to avoid an error.
38272    Use char because int might match the return type of a GCC
38273    builtin and then its argument prototype would still apply.  */
38274 #ifdef __cplusplus
38275 extern "C"
38276 #endif
38277 char $ac_func ();
38278 /* The GNU C library defines this for functions which it implements
38279     to always fail with ENOSYS.  Some functions are actually named
38280     something starting with __ and the normal name is an alias.  */
38281 #if defined __stub_$ac_func || defined __stub___$ac_func
38282 choke me
38283 #endif
38284
38285 int
38286 main ()
38287 {
38288 return $ac_func ();
38289   ;
38290   return 0;
38291 }
38292 _ACEOF
38293 rm -f conftest.$ac_objext conftest$ac_exeext
38294 if { (ac_try="$ac_link"
38295 case "(($ac_try" in
38296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38297   *) ac_try_echo=$ac_try;;
38298 esac
38299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38300   (eval "$ac_link") 2>conftest.er1
38301   ac_status=$?
38302   grep -v '^ *+' conftest.er1 >conftest.err
38303   rm -f conftest.er1
38304   cat conftest.err >&5
38305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38306   (exit $ac_status); } && {
38307          test -z "$ac_c_werror_flag" ||
38308          test ! -s conftest.err
38309        } && test -s conftest$ac_exeext &&
38310        $as_test_x conftest$ac_exeext; then
38311   eval "$as_ac_var=yes"
38312 else
38313   echo "$as_me: failed program was:" >&5
38314 sed 's/^/| /' conftest.$ac_ext >&5
38315
38316         eval "$as_ac_var=no"
38317 fi
38318
38319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38320       conftest$ac_exeext conftest.$ac_ext
38321 fi
38322 ac_res=`eval echo '${'$as_ac_var'}'`
38323                { echo "$as_me:$LINENO: result: $ac_res" >&5
38324 echo "${ECHO_T}$ac_res" >&6; }
38325 if test `eval echo '${'$as_ac_var'}'` = yes; then
38326   cat >>confdefs.h <<_ACEOF
38327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38328 _ACEOF
38329
38330 fi
38331 done
38332
38333
38334 # If resolver functions are not in libc check for -lnsl or -lresolv.
38335 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38336 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38337 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38338   echo $ECHO_N "(cached) $ECHO_C" >&6
38339 else
38340   cat >conftest.$ac_ext <<_ACEOF
38341 /* confdefs.h.  */
38342 _ACEOF
38343 cat confdefs.h >>conftest.$ac_ext
38344 cat >>conftest.$ac_ext <<_ACEOF
38345 /* end confdefs.h.  */
38346 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38348 #define gethostbyname_r innocuous_gethostbyname_r
38349
38350 /* System header to define __stub macros and hopefully few prototypes,
38351     which can conflict with char gethostbyname_r (); below.
38352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38353     <limits.h> exists even on freestanding compilers.  */
38354
38355 #ifdef __STDC__
38356 # include <limits.h>
38357 #else
38358 # include <assert.h>
38359 #endif
38360
38361 #undef gethostbyname_r
38362
38363 /* Override any GCC internal prototype to avoid an error.
38364    Use char because int might match the return type of a GCC
38365    builtin and then its argument prototype would still apply.  */
38366 #ifdef __cplusplus
38367 extern "C"
38368 #endif
38369 char gethostbyname_r ();
38370 /* The GNU C library defines this for functions which it implements
38371     to always fail with ENOSYS.  Some functions are actually named
38372     something starting with __ and the normal name is an alias.  */
38373 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38374 choke me
38375 #endif
38376
38377 int
38378 main ()
38379 {
38380 return gethostbyname_r ();
38381   ;
38382   return 0;
38383 }
38384 _ACEOF
38385 rm -f conftest.$ac_objext conftest$ac_exeext
38386 if { (ac_try="$ac_link"
38387 case "(($ac_try" in
38388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38389   *) ac_try_echo=$ac_try;;
38390 esac
38391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38392   (eval "$ac_link") 2>conftest.er1
38393   ac_status=$?
38394   grep -v '^ *+' conftest.er1 >conftest.err
38395   rm -f conftest.er1
38396   cat conftest.err >&5
38397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38398   (exit $ac_status); } && {
38399          test -z "$ac_c_werror_flag" ||
38400          test ! -s conftest.err
38401        } && test -s conftest$ac_exeext &&
38402        $as_test_x conftest$ac_exeext; then
38403   ac_cv_func_gethostbyname_r=yes
38404 else
38405   echo "$as_me: failed program was:" >&5
38406 sed 's/^/| /' conftest.$ac_ext >&5
38407
38408         ac_cv_func_gethostbyname_r=no
38409 fi
38410
38411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38412       conftest$ac_exeext conftest.$ac_ext
38413 fi
38414 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38415 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38416 if test $ac_cv_func_gethostbyname_r = yes; then
38417   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38418 echo "${ECHO_T}using libc's resolver" >&6; }
38419 else
38420
38421 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38422 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38423 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38424   echo $ECHO_N "(cached) $ECHO_C" >&6
38425 else
38426   ac_check_lib_save_LIBS=$LIBS
38427 LIBS="-lnsl  $LIBS"
38428 cat >conftest.$ac_ext <<_ACEOF
38429 /* confdefs.h.  */
38430 _ACEOF
38431 cat confdefs.h >>conftest.$ac_ext
38432 cat >>conftest.$ac_ext <<_ACEOF
38433 /* end confdefs.h.  */
38434
38435 /* Override any GCC internal prototype to avoid an error.
38436    Use char because int might match the return type of a GCC
38437    builtin and then its argument prototype would still apply.  */
38438 #ifdef __cplusplus
38439 extern "C"
38440 #endif
38441 char gethostbyname_r ();
38442 int
38443 main ()
38444 {
38445 return gethostbyname_r ();
38446   ;
38447   return 0;
38448 }
38449 _ACEOF
38450 rm -f conftest.$ac_objext conftest$ac_exeext
38451 if { (ac_try="$ac_link"
38452 case "(($ac_try" in
38453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38454   *) ac_try_echo=$ac_try;;
38455 esac
38456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38457   (eval "$ac_link") 2>conftest.er1
38458   ac_status=$?
38459   grep -v '^ *+' conftest.er1 >conftest.err
38460   rm -f conftest.er1
38461   cat conftest.err >&5
38462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463   (exit $ac_status); } && {
38464          test -z "$ac_c_werror_flag" ||
38465          test ! -s conftest.err
38466        } && test -s conftest$ac_exeext &&
38467        $as_test_x conftest$ac_exeext; then
38468   ac_cv_lib_nsl_gethostbyname_r=yes
38469 else
38470   echo "$as_me: failed program was:" >&5
38471 sed 's/^/| /' conftest.$ac_ext >&5
38472
38473         ac_cv_lib_nsl_gethostbyname_r=no
38474 fi
38475
38476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38477       conftest$ac_exeext conftest.$ac_ext
38478 LIBS=$ac_check_lib_save_LIBS
38479 fi
38480 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38481 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38482 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38483   cat >>confdefs.h <<_ACEOF
38484 #define HAVE_LIBNSL 1
38485 _ACEOF
38486
38487   LIBS="-lnsl $LIBS"
38488
38489 fi
38490
38491
38492 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38493 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38494 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38495   echo $ECHO_N "(cached) $ECHO_C" >&6
38496 else
38497   ac_check_lib_save_LIBS=$LIBS
38498 LIBS="-lresolv  $LIBS"
38499 cat >conftest.$ac_ext <<_ACEOF
38500 /* confdefs.h.  */
38501 _ACEOF
38502 cat confdefs.h >>conftest.$ac_ext
38503 cat >>conftest.$ac_ext <<_ACEOF
38504 /* end confdefs.h.  */
38505
38506 /* Override any GCC internal prototype to avoid an error.
38507    Use char because int might match the return type of a GCC
38508    builtin and then its argument prototype would still apply.  */
38509 #ifdef __cplusplus
38510 extern "C"
38511 #endif
38512 char gethostbyname_r ();
38513 int
38514 main ()
38515 {
38516 return gethostbyname_r ();
38517   ;
38518   return 0;
38519 }
38520 _ACEOF
38521 rm -f conftest.$ac_objext conftest$ac_exeext
38522 if { (ac_try="$ac_link"
38523 case "(($ac_try" in
38524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38525   *) ac_try_echo=$ac_try;;
38526 esac
38527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38528   (eval "$ac_link") 2>conftest.er1
38529   ac_status=$?
38530   grep -v '^ *+' conftest.er1 >conftest.err
38531   rm -f conftest.er1
38532   cat conftest.err >&5
38533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38534   (exit $ac_status); } && {
38535          test -z "$ac_c_werror_flag" ||
38536          test ! -s conftest.err
38537        } && test -s conftest$ac_exeext &&
38538        $as_test_x conftest$ac_exeext; then
38539   ac_cv_lib_resolv_gethostbyname_r=yes
38540 else
38541   echo "$as_me: failed program was:" >&5
38542 sed 's/^/| /' conftest.$ac_ext >&5
38543
38544         ac_cv_lib_resolv_gethostbyname_r=no
38545 fi
38546
38547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38548       conftest$ac_exeext conftest.$ac_ext
38549 LIBS=$ac_check_lib_save_LIBS
38550 fi
38551 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38552 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38553 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38554   cat >>confdefs.h <<_ACEOF
38555 #define HAVE_LIBRESOLV 1
38556 _ACEOF
38557
38558   LIBS="-lresolv $LIBS"
38559
38560 fi
38561
38562 fi
38563
38564
38565
38566 for ac_func in inet_pton
38567 do
38568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38572   echo $ECHO_N "(cached) $ECHO_C" >&6
38573 else
38574   cat >conftest.$ac_ext <<_ACEOF
38575 /* confdefs.h.  */
38576 _ACEOF
38577 cat confdefs.h >>conftest.$ac_ext
38578 cat >>conftest.$ac_ext <<_ACEOF
38579 /* end confdefs.h.  */
38580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38582 #define $ac_func innocuous_$ac_func
38583
38584 /* System header to define __stub macros and hopefully few prototypes,
38585     which can conflict with char $ac_func (); below.
38586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38587     <limits.h> exists even on freestanding compilers.  */
38588
38589 #ifdef __STDC__
38590 # include <limits.h>
38591 #else
38592 # include <assert.h>
38593 #endif
38594
38595 #undef $ac_func
38596
38597 /* Override any GCC internal prototype to avoid an error.
38598    Use char because int might match the return type of a GCC
38599    builtin and then its argument prototype would still apply.  */
38600 #ifdef __cplusplus
38601 extern "C"
38602 #endif
38603 char $ac_func ();
38604 /* The GNU C library defines this for functions which it implements
38605     to always fail with ENOSYS.  Some functions are actually named
38606     something starting with __ and the normal name is an alias.  */
38607 #if defined __stub_$ac_func || defined __stub___$ac_func
38608 choke me
38609 #endif
38610
38611 int
38612 main ()
38613 {
38614 return $ac_func ();
38615   ;
38616   return 0;
38617 }
38618 _ACEOF
38619 rm -f conftest.$ac_objext conftest$ac_exeext
38620 if { (ac_try="$ac_link"
38621 case "(($ac_try" in
38622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38623   *) ac_try_echo=$ac_try;;
38624 esac
38625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38626   (eval "$ac_link") 2>conftest.er1
38627   ac_status=$?
38628   grep -v '^ *+' conftest.er1 >conftest.err
38629   rm -f conftest.er1
38630   cat conftest.err >&5
38631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38632   (exit $ac_status); } && {
38633          test -z "$ac_c_werror_flag" ||
38634          test ! -s conftest.err
38635        } && test -s conftest$ac_exeext &&
38636        $as_test_x conftest$ac_exeext; then
38637   eval "$as_ac_var=yes"
38638 else
38639   echo "$as_me: failed program was:" >&5
38640 sed 's/^/| /' conftest.$ac_ext >&5
38641
38642         eval "$as_ac_var=no"
38643 fi
38644
38645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38646       conftest$ac_exeext conftest.$ac_ext
38647 fi
38648 ac_res=`eval echo '${'$as_ac_var'}'`
38649                { echo "$as_me:$LINENO: result: $ac_res" >&5
38650 echo "${ECHO_T}$ac_res" >&6; }
38651 if test `eval echo '${'$as_ac_var'}'` = yes; then
38652   cat >>confdefs.h <<_ACEOF
38653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38654 _ACEOF
38655  cat >>confdefs.h <<\_ACEOF
38656 #define HAVE_INET_PTON 1
38657 _ACEOF
38658
38659 fi
38660 done
38661
38662
38663 for ac_func in inet_ntop
38664 do
38665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38669   echo $ECHO_N "(cached) $ECHO_C" >&6
38670 else
38671   cat >conftest.$ac_ext <<_ACEOF
38672 /* confdefs.h.  */
38673 _ACEOF
38674 cat confdefs.h >>conftest.$ac_ext
38675 cat >>conftest.$ac_ext <<_ACEOF
38676 /* end confdefs.h.  */
38677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38679 #define $ac_func innocuous_$ac_func
38680
38681 /* System header to define __stub macros and hopefully few prototypes,
38682     which can conflict with char $ac_func (); below.
38683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38684     <limits.h> exists even on freestanding compilers.  */
38685
38686 #ifdef __STDC__
38687 # include <limits.h>
38688 #else
38689 # include <assert.h>
38690 #endif
38691
38692 #undef $ac_func
38693
38694 /* Override any GCC internal prototype to avoid an error.
38695    Use char because int might match the return type of a GCC
38696    builtin and then its argument prototype would still apply.  */
38697 #ifdef __cplusplus
38698 extern "C"
38699 #endif
38700 char $ac_func ();
38701 /* The GNU C library defines this for functions which it implements
38702     to always fail with ENOSYS.  Some functions are actually named
38703     something starting with __ and the normal name is an alias.  */
38704 #if defined __stub_$ac_func || defined __stub___$ac_func
38705 choke me
38706 #endif
38707
38708 int
38709 main ()
38710 {
38711 return $ac_func ();
38712   ;
38713   return 0;
38714 }
38715 _ACEOF
38716 rm -f conftest.$ac_objext conftest$ac_exeext
38717 if { (ac_try="$ac_link"
38718 case "(($ac_try" in
38719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38720   *) ac_try_echo=$ac_try;;
38721 esac
38722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38723   (eval "$ac_link") 2>conftest.er1
38724   ac_status=$?
38725   grep -v '^ *+' conftest.er1 >conftest.err
38726   rm -f conftest.er1
38727   cat conftest.err >&5
38728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38729   (exit $ac_status); } && {
38730          test -z "$ac_c_werror_flag" ||
38731          test ! -s conftest.err
38732        } && test -s conftest$ac_exeext &&
38733        $as_test_x conftest$ac_exeext; then
38734   eval "$as_ac_var=yes"
38735 else
38736   echo "$as_me: failed program was:" >&5
38737 sed 's/^/| /' conftest.$ac_ext >&5
38738
38739         eval "$as_ac_var=no"
38740 fi
38741
38742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38743       conftest$ac_exeext conftest.$ac_ext
38744 fi
38745 ac_res=`eval echo '${'$as_ac_var'}'`
38746                { echo "$as_me:$LINENO: result: $ac_res" >&5
38747 echo "${ECHO_T}$ac_res" >&6; }
38748 if test `eval echo '${'$as_ac_var'}'` = yes; then
38749   cat >>confdefs.h <<_ACEOF
38750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38751 _ACEOF
38752  cat >>confdefs.h <<\_ACEOF
38753 #define HAVE_INET_NTOP 1
38754 _ACEOF
38755
38756 fi
38757 done
38758
38759
38760 for ac_func in gethostbyname2
38761 do
38762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38763 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38765 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38766   echo $ECHO_N "(cached) $ECHO_C" >&6
38767 else
38768   cat >conftest.$ac_ext <<_ACEOF
38769 /* confdefs.h.  */
38770 _ACEOF
38771 cat confdefs.h >>conftest.$ac_ext
38772 cat >>conftest.$ac_ext <<_ACEOF
38773 /* end confdefs.h.  */
38774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38776 #define $ac_func innocuous_$ac_func
38777
38778 /* System header to define __stub macros and hopefully few prototypes,
38779     which can conflict with char $ac_func (); below.
38780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38781     <limits.h> exists even on freestanding compilers.  */
38782
38783 #ifdef __STDC__
38784 # include <limits.h>
38785 #else
38786 # include <assert.h>
38787 #endif
38788
38789 #undef $ac_func
38790
38791 /* Override any GCC internal prototype to avoid an error.
38792    Use char because int might match the return type of a GCC
38793    builtin and then its argument prototype would still apply.  */
38794 #ifdef __cplusplus
38795 extern "C"
38796 #endif
38797 char $ac_func ();
38798 /* The GNU C library defines this for functions which it implements
38799     to always fail with ENOSYS.  Some functions are actually named
38800     something starting with __ and the normal name is an alias.  */
38801 #if defined __stub_$ac_func || defined __stub___$ac_func
38802 choke me
38803 #endif
38804
38805 int
38806 main ()
38807 {
38808 return $ac_func ();
38809   ;
38810   return 0;
38811 }
38812 _ACEOF
38813 rm -f conftest.$ac_objext conftest$ac_exeext
38814 if { (ac_try="$ac_link"
38815 case "(($ac_try" in
38816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38817   *) ac_try_echo=$ac_try;;
38818 esac
38819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38820   (eval "$ac_link") 2>conftest.er1
38821   ac_status=$?
38822   grep -v '^ *+' conftest.er1 >conftest.err
38823   rm -f conftest.er1
38824   cat conftest.err >&5
38825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38826   (exit $ac_status); } && {
38827          test -z "$ac_c_werror_flag" ||
38828          test ! -s conftest.err
38829        } && test -s conftest$ac_exeext &&
38830        $as_test_x conftest$ac_exeext; then
38831   eval "$as_ac_var=yes"
38832 else
38833   echo "$as_me: failed program was:" >&5
38834 sed 's/^/| /' conftest.$ac_ext >&5
38835
38836         eval "$as_ac_var=no"
38837 fi
38838
38839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38840       conftest$ac_exeext conftest.$ac_ext
38841 fi
38842 ac_res=`eval echo '${'$as_ac_var'}'`
38843                { echo "$as_me:$LINENO: result: $ac_res" >&5
38844 echo "${ECHO_T}$ac_res" >&6; }
38845 if test `eval echo '${'$as_ac_var'}'` = yes; then
38846   cat >>confdefs.h <<_ACEOF
38847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38848 _ACEOF
38849  cat >>confdefs.h <<\_ACEOF
38850 #define HAVE_GETHOSTBYNAME2 1
38851 _ACEOF
38852
38853 fi
38854 done
38855
38856
38857 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38858 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38859 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38860   echo $ECHO_N "(cached) $ECHO_C" >&6
38861 else
38862
38863        cat >conftest.$ac_ext <<_ACEOF
38864 /* confdefs.h.  */
38865 _ACEOF
38866 cat confdefs.h >>conftest.$ac_ext
38867 cat >>conftest.$ac_ext <<_ACEOF
38868 /* end confdefs.h.  */
38869
38870               #include <sys/socket.h>
38871
38872 int
38873 main ()
38874 {
38875
38876               struct sockaddr s; s.sa_len;
38877
38878   ;
38879   return 0;
38880 }
38881 _ACEOF
38882 rm -f conftest.$ac_objext
38883 if { (ac_try="$ac_compile"
38884 case "(($ac_try" in
38885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38886   *) ac_try_echo=$ac_try;;
38887 esac
38888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38889   (eval "$ac_compile") 2>conftest.er1
38890   ac_status=$?
38891   grep -v '^ *+' conftest.er1 >conftest.err
38892   rm -f conftest.er1
38893   cat conftest.err >&5
38894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38895   (exit $ac_status); } && {
38896          test -z "$ac_c_werror_flag" ||
38897          test ! -s conftest.err
38898        } && test -s conftest.$ac_objext; then
38899
38900              ac_cv_struct_sockaddr_sa_len=yes
38901
38902 else
38903   echo "$as_me: failed program was:" >&5
38904 sed 's/^/| /' conftest.$ac_ext >&5
38905
38906         ac_cv_struct_sockaddr_sa_len=no
38907
38908
38909 fi
38910
38911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38912
38913
38914 fi
38915 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38916 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38917
38918 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38919
38920 cat >>confdefs.h <<\_ACEOF
38921 #define HAVE_SA_LEN 1
38922 _ACEOF
38923
38924 fi
38925
38926
38927 for ac_func in strftime
38928 do
38929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38933   echo $ECHO_N "(cached) $ECHO_C" >&6
38934 else
38935   cat >conftest.$ac_ext <<_ACEOF
38936 /* confdefs.h.  */
38937 _ACEOF
38938 cat confdefs.h >>conftest.$ac_ext
38939 cat >>conftest.$ac_ext <<_ACEOF
38940 /* end confdefs.h.  */
38941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38943 #define $ac_func innocuous_$ac_func
38944
38945 /* System header to define __stub macros and hopefully few prototypes,
38946     which can conflict with char $ac_func (); below.
38947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38948     <limits.h> exists even on freestanding compilers.  */
38949
38950 #ifdef __STDC__
38951 # include <limits.h>
38952 #else
38953 # include <assert.h>
38954 #endif
38955
38956 #undef $ac_func
38957
38958 /* Override any GCC internal prototype to avoid an error.
38959    Use char because int might match the return type of a GCC
38960    builtin and then its argument prototype would still apply.  */
38961 #ifdef __cplusplus
38962 extern "C"
38963 #endif
38964 char $ac_func ();
38965 /* The GNU C library defines this for functions which it implements
38966     to always fail with ENOSYS.  Some functions are actually named
38967     something starting with __ and the normal name is an alias.  */
38968 #if defined __stub_$ac_func || defined __stub___$ac_func
38969 choke me
38970 #endif
38971
38972 int
38973 main ()
38974 {
38975 return $ac_func ();
38976   ;
38977   return 0;
38978 }
38979 _ACEOF
38980 rm -f conftest.$ac_objext conftest$ac_exeext
38981 if { (ac_try="$ac_link"
38982 case "(($ac_try" in
38983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38984   *) ac_try_echo=$ac_try;;
38985 esac
38986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38987   (eval "$ac_link") 2>conftest.er1
38988   ac_status=$?
38989   grep -v '^ *+' conftest.er1 >conftest.err
38990   rm -f conftest.er1
38991   cat conftest.err >&5
38992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38993   (exit $ac_status); } && {
38994          test -z "$ac_c_werror_flag" ||
38995          test ! -s conftest.err
38996        } && test -s conftest$ac_exeext &&
38997        $as_test_x conftest$ac_exeext; then
38998   eval "$as_ac_var=yes"
38999 else
39000   echo "$as_me: failed program was:" >&5
39001 sed 's/^/| /' conftest.$ac_ext >&5
39002
39003         eval "$as_ac_var=no"
39004 fi
39005
39006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39007       conftest$ac_exeext conftest.$ac_ext
39008 fi
39009 ac_res=`eval echo '${'$as_ac_var'}'`
39010                { echo "$as_me:$LINENO: result: $ac_res" >&5
39011 echo "${ECHO_T}$ac_res" >&6; }
39012 if test `eval echo '${'$as_ac_var'}'` = yes; then
39013   cat >>confdefs.h <<_ACEOF
39014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39015 _ACEOF
39016
39017 else
39018   # strftime is in -lintl on SCO UNIX.
39019 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39020 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39021 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39022   echo $ECHO_N "(cached) $ECHO_C" >&6
39023 else
39024   ac_check_lib_save_LIBS=$LIBS
39025 LIBS="-lintl  $LIBS"
39026 cat >conftest.$ac_ext <<_ACEOF
39027 /* confdefs.h.  */
39028 _ACEOF
39029 cat confdefs.h >>conftest.$ac_ext
39030 cat >>conftest.$ac_ext <<_ACEOF
39031 /* end confdefs.h.  */
39032
39033 /* Override any GCC internal prototype to avoid an error.
39034    Use char because int might match the return type of a GCC
39035    builtin and then its argument prototype would still apply.  */
39036 #ifdef __cplusplus
39037 extern "C"
39038 #endif
39039 char strftime ();
39040 int
39041 main ()
39042 {
39043 return strftime ();
39044   ;
39045   return 0;
39046 }
39047 _ACEOF
39048 rm -f conftest.$ac_objext conftest$ac_exeext
39049 if { (ac_try="$ac_link"
39050 case "(($ac_try" in
39051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39052   *) ac_try_echo=$ac_try;;
39053 esac
39054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39055   (eval "$ac_link") 2>conftest.er1
39056   ac_status=$?
39057   grep -v '^ *+' conftest.er1 >conftest.err
39058   rm -f conftest.er1
39059   cat conftest.err >&5
39060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39061   (exit $ac_status); } && {
39062          test -z "$ac_c_werror_flag" ||
39063          test ! -s conftest.err
39064        } && test -s conftest$ac_exeext &&
39065        $as_test_x conftest$ac_exeext; then
39066   ac_cv_lib_intl_strftime=yes
39067 else
39068   echo "$as_me: failed program was:" >&5
39069 sed 's/^/| /' conftest.$ac_ext >&5
39070
39071         ac_cv_lib_intl_strftime=no
39072 fi
39073
39074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39075       conftest$ac_exeext conftest.$ac_ext
39076 LIBS=$ac_check_lib_save_LIBS
39077 fi
39078 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39079 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39080 if test $ac_cv_lib_intl_strftime = yes; then
39081   cat >>confdefs.h <<\_ACEOF
39082 #define HAVE_STRFTIME 1
39083 _ACEOF
39084
39085 LIBS="-lintl $LIBS"
39086 fi
39087
39088 fi
39089 done
39090
39091
39092 for ac_func in vprintf
39093 do
39094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39098   echo $ECHO_N "(cached) $ECHO_C" >&6
39099 else
39100   cat >conftest.$ac_ext <<_ACEOF
39101 /* confdefs.h.  */
39102 _ACEOF
39103 cat confdefs.h >>conftest.$ac_ext
39104 cat >>conftest.$ac_ext <<_ACEOF
39105 /* end confdefs.h.  */
39106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39108 #define $ac_func innocuous_$ac_func
39109
39110 /* System header to define __stub macros and hopefully few prototypes,
39111     which can conflict with char $ac_func (); below.
39112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39113     <limits.h> exists even on freestanding compilers.  */
39114
39115 #ifdef __STDC__
39116 # include <limits.h>
39117 #else
39118 # include <assert.h>
39119 #endif
39120
39121 #undef $ac_func
39122
39123 /* Override any GCC internal prototype to avoid an error.
39124    Use char because int might match the return type of a GCC
39125    builtin and then its argument prototype would still apply.  */
39126 #ifdef __cplusplus
39127 extern "C"
39128 #endif
39129 char $ac_func ();
39130 /* The GNU C library defines this for functions which it implements
39131     to always fail with ENOSYS.  Some functions are actually named
39132     something starting with __ and the normal name is an alias.  */
39133 #if defined __stub_$ac_func || defined __stub___$ac_func
39134 choke me
39135 #endif
39136
39137 int
39138 main ()
39139 {
39140 return $ac_func ();
39141   ;
39142   return 0;
39143 }
39144 _ACEOF
39145 rm -f conftest.$ac_objext conftest$ac_exeext
39146 if { (ac_try="$ac_link"
39147 case "(($ac_try" in
39148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39149   *) ac_try_echo=$ac_try;;
39150 esac
39151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39152   (eval "$ac_link") 2>conftest.er1
39153   ac_status=$?
39154   grep -v '^ *+' conftest.er1 >conftest.err
39155   rm -f conftest.er1
39156   cat conftest.err >&5
39157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39158   (exit $ac_status); } && {
39159          test -z "$ac_c_werror_flag" ||
39160          test ! -s conftest.err
39161        } && test -s conftest$ac_exeext &&
39162        $as_test_x conftest$ac_exeext; then
39163   eval "$as_ac_var=yes"
39164 else
39165   echo "$as_me: failed program was:" >&5
39166 sed 's/^/| /' conftest.$ac_ext >&5
39167
39168         eval "$as_ac_var=no"
39169 fi
39170
39171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39172       conftest$ac_exeext conftest.$ac_ext
39173 fi
39174 ac_res=`eval echo '${'$as_ac_var'}'`
39175                { echo "$as_me:$LINENO: result: $ac_res" >&5
39176 echo "${ECHO_T}$ac_res" >&6; }
39177 if test `eval echo '${'$as_ac_var'}'` = yes; then
39178   cat >>confdefs.h <<_ACEOF
39179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39180 _ACEOF
39181
39182 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39183 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39184 if test "${ac_cv_func__doprnt+set}" = set; then
39185   echo $ECHO_N "(cached) $ECHO_C" >&6
39186 else
39187   cat >conftest.$ac_ext <<_ACEOF
39188 /* confdefs.h.  */
39189 _ACEOF
39190 cat confdefs.h >>conftest.$ac_ext
39191 cat >>conftest.$ac_ext <<_ACEOF
39192 /* end confdefs.h.  */
39193 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39194    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39195 #define _doprnt innocuous__doprnt
39196
39197 /* System header to define __stub macros and hopefully few prototypes,
39198     which can conflict with char _doprnt (); below.
39199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39200     <limits.h> exists even on freestanding compilers.  */
39201
39202 #ifdef __STDC__
39203 # include <limits.h>
39204 #else
39205 # include <assert.h>
39206 #endif
39207
39208 #undef _doprnt
39209
39210 /* Override any GCC internal prototype to avoid an error.
39211    Use char because int might match the return type of a GCC
39212    builtin and then its argument prototype would still apply.  */
39213 #ifdef __cplusplus
39214 extern "C"
39215 #endif
39216 char _doprnt ();
39217 /* The GNU C library defines this for functions which it implements
39218     to always fail with ENOSYS.  Some functions are actually named
39219     something starting with __ and the normal name is an alias.  */
39220 #if defined __stub__doprnt || defined __stub____doprnt
39221 choke me
39222 #endif
39223
39224 int
39225 main ()
39226 {
39227 return _doprnt ();
39228   ;
39229   return 0;
39230 }
39231 _ACEOF
39232 rm -f conftest.$ac_objext conftest$ac_exeext
39233 if { (ac_try="$ac_link"
39234 case "(($ac_try" in
39235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39236   *) ac_try_echo=$ac_try;;
39237 esac
39238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39239   (eval "$ac_link") 2>conftest.er1
39240   ac_status=$?
39241   grep -v '^ *+' conftest.er1 >conftest.err
39242   rm -f conftest.er1
39243   cat conftest.err >&5
39244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245   (exit $ac_status); } && {
39246          test -z "$ac_c_werror_flag" ||
39247          test ! -s conftest.err
39248        } && test -s conftest$ac_exeext &&
39249        $as_test_x conftest$ac_exeext; then
39250   ac_cv_func__doprnt=yes
39251 else
39252   echo "$as_me: failed program was:" >&5
39253 sed 's/^/| /' conftest.$ac_ext >&5
39254
39255         ac_cv_func__doprnt=no
39256 fi
39257
39258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39259       conftest$ac_exeext conftest.$ac_ext
39260 fi
39261 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39262 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39263 if test $ac_cv_func__doprnt = yes; then
39264
39265 cat >>confdefs.h <<\_ACEOF
39266 #define HAVE_DOPRNT 1
39267 _ACEOF
39268
39269 fi
39270
39271 fi
39272 done
39273
39274
39275 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39276 # for constant arguments.  Useless!
39277 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39278 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39279 if test "${ac_cv_working_alloca_h+set}" = set; then
39280   echo $ECHO_N "(cached) $ECHO_C" >&6
39281 else
39282   cat >conftest.$ac_ext <<_ACEOF
39283 /* confdefs.h.  */
39284 _ACEOF
39285 cat confdefs.h >>conftest.$ac_ext
39286 cat >>conftest.$ac_ext <<_ACEOF
39287 /* end confdefs.h.  */
39288 #include <alloca.h>
39289 int
39290 main ()
39291 {
39292 char *p = (char *) alloca (2 * sizeof (int));
39293                           if (p) return 0;
39294   ;
39295   return 0;
39296 }
39297 _ACEOF
39298 rm -f conftest.$ac_objext conftest$ac_exeext
39299 if { (ac_try="$ac_link"
39300 case "(($ac_try" in
39301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39302   *) ac_try_echo=$ac_try;;
39303 esac
39304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39305   (eval "$ac_link") 2>conftest.er1
39306   ac_status=$?
39307   grep -v '^ *+' conftest.er1 >conftest.err
39308   rm -f conftest.er1
39309   cat conftest.err >&5
39310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311   (exit $ac_status); } && {
39312          test -z "$ac_c_werror_flag" ||
39313          test ! -s conftest.err
39314        } && test -s conftest$ac_exeext &&
39315        $as_test_x conftest$ac_exeext; then
39316   ac_cv_working_alloca_h=yes
39317 else
39318   echo "$as_me: failed program was:" >&5
39319 sed 's/^/| /' conftest.$ac_ext >&5
39320
39321         ac_cv_working_alloca_h=no
39322 fi
39323
39324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39325       conftest$ac_exeext conftest.$ac_ext
39326 fi
39327 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39328 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39329 if test $ac_cv_working_alloca_h = yes; then
39330
39331 cat >>confdefs.h <<\_ACEOF
39332 #define HAVE_ALLOCA_H 1
39333 _ACEOF
39334
39335 fi
39336
39337 { echo "$as_me:$LINENO: checking for alloca" >&5
39338 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39339 if test "${ac_cv_func_alloca_works+set}" = set; then
39340   echo $ECHO_N "(cached) $ECHO_C" >&6
39341 else
39342   cat >conftest.$ac_ext <<_ACEOF
39343 /* confdefs.h.  */
39344 _ACEOF
39345 cat confdefs.h >>conftest.$ac_ext
39346 cat >>conftest.$ac_ext <<_ACEOF
39347 /* end confdefs.h.  */
39348 #ifdef __GNUC__
39349 # define alloca __builtin_alloca
39350 #else
39351 # ifdef _MSC_VER
39352 #  include <malloc.h>
39353 #  define alloca _alloca
39354 # else
39355 #  ifdef HAVE_ALLOCA_H
39356 #   include <alloca.h>
39357 #  else
39358 #   ifdef _AIX
39359  #pragma alloca
39360 #   else
39361 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39362 char *alloca ();
39363 #    endif
39364 #   endif
39365 #  endif
39366 # endif
39367 #endif
39368
39369 int
39370 main ()
39371 {
39372 char *p = (char *) alloca (1);
39373                                     if (p) return 0;
39374   ;
39375   return 0;
39376 }
39377 _ACEOF
39378 rm -f conftest.$ac_objext conftest$ac_exeext
39379 if { (ac_try="$ac_link"
39380 case "(($ac_try" in
39381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39382   *) ac_try_echo=$ac_try;;
39383 esac
39384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39385   (eval "$ac_link") 2>conftest.er1
39386   ac_status=$?
39387   grep -v '^ *+' conftest.er1 >conftest.err
39388   rm -f conftest.er1
39389   cat conftest.err >&5
39390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39391   (exit $ac_status); } && {
39392          test -z "$ac_c_werror_flag" ||
39393          test ! -s conftest.err
39394        } && test -s conftest$ac_exeext &&
39395        $as_test_x conftest$ac_exeext; then
39396   ac_cv_func_alloca_works=yes
39397 else
39398   echo "$as_me: failed program was:" >&5
39399 sed 's/^/| /' conftest.$ac_ext >&5
39400
39401         ac_cv_func_alloca_works=no
39402 fi
39403
39404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39405       conftest$ac_exeext conftest.$ac_ext
39406 fi
39407 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39408 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39409
39410 if test $ac_cv_func_alloca_works = yes; then
39411
39412 cat >>confdefs.h <<\_ACEOF
39413 #define HAVE_ALLOCA 1
39414 _ACEOF
39415
39416 else
39417   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39418 # that cause trouble.  Some versions do not even contain alloca or
39419 # contain a buggy version.  If you still want to use their alloca,
39420 # use ar to extract alloca.o from them instead of compiling alloca.c.
39421
39422 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39423
39424 cat >>confdefs.h <<\_ACEOF
39425 #define C_ALLOCA 1
39426 _ACEOF
39427
39428
39429 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39430 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39431 if test "${ac_cv_os_cray+set}" = set; then
39432   echo $ECHO_N "(cached) $ECHO_C" >&6
39433 else
39434   cat >conftest.$ac_ext <<_ACEOF
39435 /* confdefs.h.  */
39436 _ACEOF
39437 cat confdefs.h >>conftest.$ac_ext
39438 cat >>conftest.$ac_ext <<_ACEOF
39439 /* end confdefs.h.  */
39440 #if defined CRAY && ! defined CRAY2
39441 webecray
39442 #else
39443 wenotbecray
39444 #endif
39445
39446 _ACEOF
39447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39448   $EGREP "webecray" >/dev/null 2>&1; then
39449   ac_cv_os_cray=yes
39450 else
39451   ac_cv_os_cray=no
39452 fi
39453 rm -f conftest*
39454
39455 fi
39456 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39457 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39458 if test $ac_cv_os_cray = yes; then
39459   for ac_func in _getb67 GETB67 getb67; do
39460     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39464   echo $ECHO_N "(cached) $ECHO_C" >&6
39465 else
39466   cat >conftest.$ac_ext <<_ACEOF
39467 /* confdefs.h.  */
39468 _ACEOF
39469 cat confdefs.h >>conftest.$ac_ext
39470 cat >>conftest.$ac_ext <<_ACEOF
39471 /* end confdefs.h.  */
39472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39474 #define $ac_func innocuous_$ac_func
39475
39476 /* System header to define __stub macros and hopefully few prototypes,
39477     which can conflict with char $ac_func (); below.
39478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39479     <limits.h> exists even on freestanding compilers.  */
39480
39481 #ifdef __STDC__
39482 # include <limits.h>
39483 #else
39484 # include <assert.h>
39485 #endif
39486
39487 #undef $ac_func
39488
39489 /* Override any GCC internal prototype to avoid an error.
39490    Use char because int might match the return type of a GCC
39491    builtin and then its argument prototype would still apply.  */
39492 #ifdef __cplusplus
39493 extern "C"
39494 #endif
39495 char $ac_func ();
39496 /* The GNU C library defines this for functions which it implements
39497     to always fail with ENOSYS.  Some functions are actually named
39498     something starting with __ and the normal name is an alias.  */
39499 #if defined __stub_$ac_func || defined __stub___$ac_func
39500 choke me
39501 #endif
39502
39503 int
39504 main ()
39505 {
39506 return $ac_func ();
39507   ;
39508   return 0;
39509 }
39510 _ACEOF
39511 rm -f conftest.$ac_objext conftest$ac_exeext
39512 if { (ac_try="$ac_link"
39513 case "(($ac_try" in
39514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39515   *) ac_try_echo=$ac_try;;
39516 esac
39517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39518   (eval "$ac_link") 2>conftest.er1
39519   ac_status=$?
39520   grep -v '^ *+' conftest.er1 >conftest.err
39521   rm -f conftest.er1
39522   cat conftest.err >&5
39523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524   (exit $ac_status); } && {
39525          test -z "$ac_c_werror_flag" ||
39526          test ! -s conftest.err
39527        } && test -s conftest$ac_exeext &&
39528        $as_test_x conftest$ac_exeext; then
39529   eval "$as_ac_var=yes"
39530 else
39531   echo "$as_me: failed program was:" >&5
39532 sed 's/^/| /' conftest.$ac_ext >&5
39533
39534         eval "$as_ac_var=no"
39535 fi
39536
39537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39538       conftest$ac_exeext conftest.$ac_ext
39539 fi
39540 ac_res=`eval echo '${'$as_ac_var'}'`
39541                { echo "$as_me:$LINENO: result: $ac_res" >&5
39542 echo "${ECHO_T}$ac_res" >&6; }
39543 if test `eval echo '${'$as_ac_var'}'` = yes; then
39544
39545 cat >>confdefs.h <<_ACEOF
39546 #define CRAY_STACKSEG_END $ac_func
39547 _ACEOF
39548
39549     break
39550 fi
39551
39552   done
39553 fi
39554
39555 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39556 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39557 if test "${ac_cv_c_stack_direction+set}" = set; then
39558   echo $ECHO_N "(cached) $ECHO_C" >&6
39559 else
39560   if test "$cross_compiling" = yes; then
39561   ac_cv_c_stack_direction=0
39562 else
39563   cat >conftest.$ac_ext <<_ACEOF
39564 /* confdefs.h.  */
39565 _ACEOF
39566 cat confdefs.h >>conftest.$ac_ext
39567 cat >>conftest.$ac_ext <<_ACEOF
39568 /* end confdefs.h.  */
39569 $ac_includes_default
39570 int
39571 find_stack_direction ()
39572 {
39573   static char *addr = 0;
39574   auto char dummy;
39575   if (addr == 0)
39576     {
39577       addr = &dummy;
39578       return find_stack_direction ();
39579     }
39580   else
39581     return (&dummy > addr) ? 1 : -1;
39582 }
39583
39584 int
39585 main ()
39586 {
39587   return find_stack_direction () < 0;
39588 }
39589 _ACEOF
39590 rm -f conftest$ac_exeext
39591 if { (ac_try="$ac_link"
39592 case "(($ac_try" in
39593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39594   *) ac_try_echo=$ac_try;;
39595 esac
39596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39597   (eval "$ac_link") 2>&5
39598   ac_status=$?
39599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39601   { (case "(($ac_try" in
39602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39603   *) ac_try_echo=$ac_try;;
39604 esac
39605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39606   (eval "$ac_try") 2>&5
39607   ac_status=$?
39608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609   (exit $ac_status); }; }; then
39610   ac_cv_c_stack_direction=1
39611 else
39612   echo "$as_me: program exited with status $ac_status" >&5
39613 echo "$as_me: failed program was:" >&5
39614 sed 's/^/| /' conftest.$ac_ext >&5
39615
39616 ( exit $ac_status )
39617 ac_cv_c_stack_direction=-1
39618 fi
39619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39620 fi
39621
39622
39623 fi
39624 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39625 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39626
39627 cat >>confdefs.h <<_ACEOF
39628 #define STACK_DIRECTION $ac_cv_c_stack_direction
39629 _ACEOF
39630
39631
39632 fi
39633
39634 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39635 # -lseq on Dynix/PTX, -lgen on Unixware.
39636 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39637 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39638 if test "${ac_cv_search_getmntent+set}" = set; then
39639   echo $ECHO_N "(cached) $ECHO_C" >&6
39640 else
39641   ac_func_search_save_LIBS=$LIBS
39642 cat >conftest.$ac_ext <<_ACEOF
39643 /* confdefs.h.  */
39644 _ACEOF
39645 cat confdefs.h >>conftest.$ac_ext
39646 cat >>conftest.$ac_ext <<_ACEOF
39647 /* end confdefs.h.  */
39648
39649 /* Override any GCC internal prototype to avoid an error.
39650    Use char because int might match the return type of a GCC
39651    builtin and then its argument prototype would still apply.  */
39652 #ifdef __cplusplus
39653 extern "C"
39654 #endif
39655 char getmntent ();
39656 int
39657 main ()
39658 {
39659 return getmntent ();
39660   ;
39661   return 0;
39662 }
39663 _ACEOF
39664 for ac_lib in '' sun seq gen; do
39665   if test -z "$ac_lib"; then
39666     ac_res="none required"
39667   else
39668     ac_res=-l$ac_lib
39669     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39670   fi
39671   rm -f conftest.$ac_objext conftest$ac_exeext
39672 if { (ac_try="$ac_link"
39673 case "(($ac_try" in
39674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39675   *) ac_try_echo=$ac_try;;
39676 esac
39677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39678   (eval "$ac_link") 2>conftest.er1
39679   ac_status=$?
39680   grep -v '^ *+' conftest.er1 >conftest.err
39681   rm -f conftest.er1
39682   cat conftest.err >&5
39683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39684   (exit $ac_status); } && {
39685          test -z "$ac_c_werror_flag" ||
39686          test ! -s conftest.err
39687        } && test -s conftest$ac_exeext &&
39688        $as_test_x conftest$ac_exeext; then
39689   ac_cv_search_getmntent=$ac_res
39690 else
39691   echo "$as_me: failed program was:" >&5
39692 sed 's/^/| /' conftest.$ac_ext >&5
39693
39694
39695 fi
39696
39697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39698       conftest$ac_exeext
39699   if test "${ac_cv_search_getmntent+set}" = set; then
39700   break
39701 fi
39702 done
39703 if test "${ac_cv_search_getmntent+set}" = set; then
39704   :
39705 else
39706   ac_cv_search_getmntent=no
39707 fi
39708 rm conftest.$ac_ext
39709 LIBS=$ac_func_search_save_LIBS
39710 fi
39711 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39712 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39713 ac_res=$ac_cv_search_getmntent
39714 if test "$ac_res" != no; then
39715   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39716   ac_cv_func_getmntent=yes
39717
39718 cat >>confdefs.h <<\_ACEOF
39719 #define HAVE_GETMNTENT 1
39720 _ACEOF
39721
39722 else
39723   ac_cv_func_getmntent=no
39724 fi
39725
39726
39727 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39728 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39729 if test "${ac_cv_func_closedir_void+set}" = set; then
39730   echo $ECHO_N "(cached) $ECHO_C" >&6
39731 else
39732   if test "$cross_compiling" = yes; then
39733   ac_cv_func_closedir_void=yes
39734 else
39735   cat >conftest.$ac_ext <<_ACEOF
39736 /* confdefs.h.  */
39737 _ACEOF
39738 cat confdefs.h >>conftest.$ac_ext
39739 cat >>conftest.$ac_ext <<_ACEOF
39740 /* end confdefs.h.  */
39741 $ac_includes_default
39742 #include <$ac_header_dirent>
39743 #ifndef __cplusplus
39744 int closedir ();
39745 #endif
39746
39747 int
39748 main ()
39749 {
39750 return closedir (opendir (".")) != 0;
39751   ;
39752   return 0;
39753 }
39754 _ACEOF
39755 rm -f conftest$ac_exeext
39756 if { (ac_try="$ac_link"
39757 case "(($ac_try" in
39758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39759   *) ac_try_echo=$ac_try;;
39760 esac
39761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39762   (eval "$ac_link") 2>&5
39763   ac_status=$?
39764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39766   { (case "(($ac_try" in
39767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39768   *) ac_try_echo=$ac_try;;
39769 esac
39770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39771   (eval "$ac_try") 2>&5
39772   ac_status=$?
39773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774   (exit $ac_status); }; }; then
39775   ac_cv_func_closedir_void=no
39776 else
39777   echo "$as_me: program exited with status $ac_status" >&5
39778 echo "$as_me: failed program was:" >&5
39779 sed 's/^/| /' conftest.$ac_ext >&5
39780
39781 ( exit $ac_status )
39782 ac_cv_func_closedir_void=yes
39783 fi
39784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39785 fi
39786
39787
39788 fi
39789 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39790 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39791 if test $ac_cv_func_closedir_void = yes; then
39792
39793 cat >>confdefs.h <<\_ACEOF
39794 #define CLOSEDIR_VOID 1
39795 _ACEOF
39796
39797 fi
39798
39799 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39800 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39801 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39802   echo $ECHO_N "(cached) $ECHO_C" >&6
39803 else
39804   if test "$cross_compiling" = yes; then
39805   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39806 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39807    { (exit 1); exit 1; }; }
39808 else
39809   cat >conftest.$ac_ext <<_ACEOF
39810 /* confdefs.h.  */
39811 _ACEOF
39812 cat confdefs.h >>conftest.$ac_ext
39813 cat >>conftest.$ac_ext <<_ACEOF
39814 /* end confdefs.h.  */
39815 $ac_includes_default
39816 int
39817 main ()
39818 {
39819 /* If this system has a BSD-style setpgrp which takes arguments,
39820   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39821   exit successfully. */
39822   return setpgrp (1,1) != -1;
39823   ;
39824   return 0;
39825 }
39826 _ACEOF
39827 rm -f conftest$ac_exeext
39828 if { (ac_try="$ac_link"
39829 case "(($ac_try" in
39830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39831   *) ac_try_echo=$ac_try;;
39832 esac
39833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39834   (eval "$ac_link") 2>&5
39835   ac_status=$?
39836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39838   { (case "(($ac_try" in
39839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39840   *) ac_try_echo=$ac_try;;
39841 esac
39842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39843   (eval "$ac_try") 2>&5
39844   ac_status=$?
39845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39846   (exit $ac_status); }; }; then
39847   ac_cv_func_setpgrp_void=no
39848 else
39849   echo "$as_me: program exited with status $ac_status" >&5
39850 echo "$as_me: failed program was:" >&5
39851 sed 's/^/| /' conftest.$ac_ext >&5
39852
39853 ( exit $ac_status )
39854 ac_cv_func_setpgrp_void=yes
39855 fi
39856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39857 fi
39858
39859
39860 fi
39861 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39862 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39863 if test $ac_cv_func_setpgrp_void = yes; then
39864
39865 cat >>confdefs.h <<\_ACEOF
39866 #define SETPGRP_VOID 1
39867 _ACEOF
39868
39869 fi
39870             # AC_FUNC_FNMATCH    dnl use local version
39871
39872 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39873 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39874 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39875   echo $ECHO_N "(cached) $ECHO_C" >&6
39876 else
39877   ac_check_lib_save_LIBS=$LIBS
39878 LIBS="-lintl  $LIBS"
39879 cat >conftest.$ac_ext <<_ACEOF
39880 /* confdefs.h.  */
39881 _ACEOF
39882 cat confdefs.h >>conftest.$ac_ext
39883 cat >>conftest.$ac_ext <<_ACEOF
39884 /* end confdefs.h.  */
39885
39886 /* Override any GCC internal prototype to avoid an error.
39887    Use char because int might match the return type of a GCC
39888    builtin and then its argument prototype would still apply.  */
39889 #ifdef __cplusplus
39890 extern "C"
39891 #endif
39892 char gettext ();
39893 int
39894 main ()
39895 {
39896 return gettext ();
39897   ;
39898   return 0;
39899 }
39900 _ACEOF
39901 rm -f conftest.$ac_objext conftest$ac_exeext
39902 if { (ac_try="$ac_link"
39903 case "(($ac_try" in
39904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39905   *) ac_try_echo=$ac_try;;
39906 esac
39907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39908   (eval "$ac_link") 2>conftest.er1
39909   ac_status=$?
39910   grep -v '^ *+' conftest.er1 >conftest.err
39911   rm -f conftest.er1
39912   cat conftest.err >&5
39913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39914   (exit $ac_status); } && {
39915          test -z "$ac_c_werror_flag" ||
39916          test ! -s conftest.err
39917        } && test -s conftest$ac_exeext &&
39918        $as_test_x conftest$ac_exeext; then
39919   ac_cv_lib_intl_gettext=yes
39920 else
39921   echo "$as_me: failed program was:" >&5
39922 sed 's/^/| /' conftest.$ac_ext >&5
39923
39924         ac_cv_lib_intl_gettext=no
39925 fi
39926
39927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39928       conftest$ac_exeext conftest.$ac_ext
39929 LIBS=$ac_check_lib_save_LIBS
39930 fi
39931 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39932 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39933 if test $ac_cv_lib_intl_gettext = yes; then
39934   LIBS="$LIBS -lintl"
39935 fi
39936
39937
39938
39939 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39940 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39941 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39942   echo $ECHO_N "(cached) $ECHO_C" >&6
39943 else
39944   ac_check_lib_save_LIBS=$LIBS
39945 LIBS="-lsun  $LIBS"
39946 cat >conftest.$ac_ext <<_ACEOF
39947 /* confdefs.h.  */
39948 _ACEOF
39949 cat confdefs.h >>conftest.$ac_ext
39950 cat >>conftest.$ac_ext <<_ACEOF
39951 /* end confdefs.h.  */
39952
39953 /* Override any GCC internal prototype to avoid an error.
39954    Use char because int might match the return type of a GCC
39955    builtin and then its argument prototype would still apply.  */
39956 #ifdef __cplusplus
39957 extern "C"
39958 #endif
39959 char getpwnam ();
39960 int
39961 main ()
39962 {
39963 return getpwnam ();
39964   ;
39965   return 0;
39966 }
39967 _ACEOF
39968 rm -f conftest.$ac_objext conftest$ac_exeext
39969 if { (ac_try="$ac_link"
39970 case "(($ac_try" in
39971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39972   *) ac_try_echo=$ac_try;;
39973 esac
39974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39975   (eval "$ac_link") 2>conftest.er1
39976   ac_status=$?
39977   grep -v '^ *+' conftest.er1 >conftest.err
39978   rm -f conftest.er1
39979   cat conftest.err >&5
39980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39981   (exit $ac_status); } && {
39982          test -z "$ac_c_werror_flag" ||
39983          test ! -s conftest.err
39984        } && test -s conftest$ac_exeext &&
39985        $as_test_x conftest$ac_exeext; then
39986   ac_cv_lib_sun_getpwnam=yes
39987 else
39988   echo "$as_me: failed program was:" >&5
39989 sed 's/^/| /' conftest.$ac_ext >&5
39990
39991         ac_cv_lib_sun_getpwnam=no
39992 fi
39993
39994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39995       conftest$ac_exeext conftest.$ac_ext
39996 LIBS=$ac_check_lib_save_LIBS
39997 fi
39998 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39999 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40000 if test $ac_cv_lib_sun_getpwnam = yes; then
40001   cat >>confdefs.h <<_ACEOF
40002 #define HAVE_LIBSUN 1
40003 _ACEOF
40004
40005   LIBS="-lsun $LIBS"
40006
40007 fi
40008
40009
40010
40011 for ac_header in zlib.h
40012 do
40013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40015   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40018   echo $ECHO_N "(cached) $ECHO_C" >&6
40019 fi
40020 ac_res=`eval echo '${'$as_ac_Header'}'`
40021                { echo "$as_me:$LINENO: result: $ac_res" >&5
40022 echo "${ECHO_T}$ac_res" >&6; }
40023 else
40024   # Is the header compilable?
40025 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40027 cat >conftest.$ac_ext <<_ACEOF
40028 /* confdefs.h.  */
40029 _ACEOF
40030 cat confdefs.h >>conftest.$ac_ext
40031 cat >>conftest.$ac_ext <<_ACEOF
40032 /* end confdefs.h.  */
40033 $ac_includes_default
40034 #include <$ac_header>
40035 _ACEOF
40036 rm -f conftest.$ac_objext
40037 if { (ac_try="$ac_compile"
40038 case "(($ac_try" in
40039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40040   *) ac_try_echo=$ac_try;;
40041 esac
40042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40043   (eval "$ac_compile") 2>conftest.er1
40044   ac_status=$?
40045   grep -v '^ *+' conftest.er1 >conftest.err
40046   rm -f conftest.er1
40047   cat conftest.err >&5
40048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40049   (exit $ac_status); } && {
40050          test -z "$ac_c_werror_flag" ||
40051          test ! -s conftest.err
40052        } && test -s conftest.$ac_objext; then
40053   ac_header_compiler=yes
40054 else
40055   echo "$as_me: failed program was:" >&5
40056 sed 's/^/| /' conftest.$ac_ext >&5
40057
40058         ac_header_compiler=no
40059 fi
40060
40061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40062 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40063 echo "${ECHO_T}$ac_header_compiler" >&6; }
40064
40065 # Is the header present?
40066 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40068 cat >conftest.$ac_ext <<_ACEOF
40069 /* confdefs.h.  */
40070 _ACEOF
40071 cat confdefs.h >>conftest.$ac_ext
40072 cat >>conftest.$ac_ext <<_ACEOF
40073 /* end confdefs.h.  */
40074 #include <$ac_header>
40075 _ACEOF
40076 if { (ac_try="$ac_cpp conftest.$ac_ext"
40077 case "(($ac_try" in
40078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40079   *) ac_try_echo=$ac_try;;
40080 esac
40081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40082   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40083   ac_status=$?
40084   grep -v '^ *+' conftest.er1 >conftest.err
40085   rm -f conftest.er1
40086   cat conftest.err >&5
40087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40088   (exit $ac_status); } >/dev/null && {
40089          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40090          test ! -s conftest.err
40091        }; then
40092   ac_header_preproc=yes
40093 else
40094   echo "$as_me: failed program was:" >&5
40095 sed 's/^/| /' conftest.$ac_ext >&5
40096
40097   ac_header_preproc=no
40098 fi
40099
40100 rm -f conftest.err conftest.$ac_ext
40101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40102 echo "${ECHO_T}$ac_header_preproc" >&6; }
40103
40104 # So?  What about this header?
40105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40106   yes:no: )
40107     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40111     ac_header_preproc=yes
40112     ;;
40113   no:yes:* )
40114     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40116     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40117 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40118     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40120     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40121 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40124     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40126
40127     ;;
40128 esac
40129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40132   echo $ECHO_N "(cached) $ECHO_C" >&6
40133 else
40134   eval "$as_ac_Header=\$ac_header_preproc"
40135 fi
40136 ac_res=`eval echo '${'$as_ac_Header'}'`
40137                { echo "$as_me:$LINENO: result: $ac_res" >&5
40138 echo "${ECHO_T}$ac_res" >&6; }
40139
40140 fi
40141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40142   cat >>confdefs.h <<_ACEOF
40143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40144 _ACEOF
40145
40146 fi
40147
40148 done
40149
40150 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40151 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40152 if test "${ac_cv_lib_z_deflate+set}" = set; then
40153   echo $ECHO_N "(cached) $ECHO_C" >&6
40154 else
40155   ac_check_lib_save_LIBS=$LIBS
40156 LIBS="-lz  $LIBS"
40157 cat >conftest.$ac_ext <<_ACEOF
40158 /* confdefs.h.  */
40159 _ACEOF
40160 cat confdefs.h >>conftest.$ac_ext
40161 cat >>conftest.$ac_ext <<_ACEOF
40162 /* end confdefs.h.  */
40163
40164 /* Override any GCC internal prototype to avoid an error.
40165    Use char because int might match the return type of a GCC
40166    builtin and then its argument prototype would still apply.  */
40167 #ifdef __cplusplus
40168 extern "C"
40169 #endif
40170 char deflate ();
40171 int
40172 main ()
40173 {
40174 return deflate ();
40175   ;
40176   return 0;
40177 }
40178 _ACEOF
40179 rm -f conftest.$ac_objext conftest$ac_exeext
40180 if { (ac_try="$ac_link"
40181 case "(($ac_try" in
40182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40183   *) ac_try_echo=$ac_try;;
40184 esac
40185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40186   (eval "$ac_link") 2>conftest.er1
40187   ac_status=$?
40188   grep -v '^ *+' conftest.er1 >conftest.err
40189   rm -f conftest.er1
40190   cat conftest.err >&5
40191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40192   (exit $ac_status); } && {
40193          test -z "$ac_c_werror_flag" ||
40194          test ! -s conftest.err
40195        } && test -s conftest$ac_exeext &&
40196        $as_test_x conftest$ac_exeext; then
40197   ac_cv_lib_z_deflate=yes
40198 else
40199   echo "$as_me: failed program was:" >&5
40200 sed 's/^/| /' conftest.$ac_ext >&5
40201
40202         ac_cv_lib_z_deflate=no
40203 fi
40204
40205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40206       conftest$ac_exeext conftest.$ac_ext
40207 LIBS=$ac_check_lib_save_LIBS
40208 fi
40209 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40210 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40211 if test $ac_cv_lib_z_deflate = yes; then
40212   FDLIBS="-lz"
40213 fi
40214
40215 have_zlib=no
40216 if test x$FDLIBS = x-lz; then
40217    cat >>confdefs.h <<\_ACEOF
40218 #define HAVE_LIBZ 1
40219 _ACEOF
40220
40221    have_zlib=yes
40222 fi
40223
40224 support_acl=yes
40225 # Check whether --enable-acl was given.
40226 if test "${enable_acl+set}" = set; then
40227   enableval=$enable_acl;
40228        if test x$enableval = xno; then
40229           support_acl=no
40230        fi
40231
40232
40233 fi
40234
40235
40236 have_acl=no
40237 have_extended_acl=no
40238 if test x$support_acl = xyes; then
40239    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40240   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40241 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40242 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40243   echo $ECHO_N "(cached) $ECHO_C" >&6
40244 fi
40245 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40246 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40247 else
40248   # Is the header compilable?
40249 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40250 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40251 cat >conftest.$ac_ext <<_ACEOF
40252 /* confdefs.h.  */
40253 _ACEOF
40254 cat confdefs.h >>conftest.$ac_ext
40255 cat >>conftest.$ac_ext <<_ACEOF
40256 /* end confdefs.h.  */
40257 $ac_includes_default
40258 #include <sys/acl.h>
40259 _ACEOF
40260 rm -f conftest.$ac_objext
40261 if { (ac_try="$ac_compile"
40262 case "(($ac_try" in
40263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40264   *) ac_try_echo=$ac_try;;
40265 esac
40266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40267   (eval "$ac_compile") 2>conftest.er1
40268   ac_status=$?
40269   grep -v '^ *+' conftest.er1 >conftest.err
40270   rm -f conftest.er1
40271   cat conftest.err >&5
40272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40273   (exit $ac_status); } && {
40274          test -z "$ac_c_werror_flag" ||
40275          test ! -s conftest.err
40276        } && test -s conftest.$ac_objext; then
40277   ac_header_compiler=yes
40278 else
40279   echo "$as_me: failed program was:" >&5
40280 sed 's/^/| /' conftest.$ac_ext >&5
40281
40282         ac_header_compiler=no
40283 fi
40284
40285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40287 echo "${ECHO_T}$ac_header_compiler" >&6; }
40288
40289 # Is the header present?
40290 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40291 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40292 cat >conftest.$ac_ext <<_ACEOF
40293 /* confdefs.h.  */
40294 _ACEOF
40295 cat confdefs.h >>conftest.$ac_ext
40296 cat >>conftest.$ac_ext <<_ACEOF
40297 /* end confdefs.h.  */
40298 #include <sys/acl.h>
40299 _ACEOF
40300 if { (ac_try="$ac_cpp conftest.$ac_ext"
40301 case "(($ac_try" in
40302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40303   *) ac_try_echo=$ac_try;;
40304 esac
40305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40306   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40307   ac_status=$?
40308   grep -v '^ *+' conftest.er1 >conftest.err
40309   rm -f conftest.er1
40310   cat conftest.err >&5
40311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40312   (exit $ac_status); } >/dev/null && {
40313          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40314          test ! -s conftest.err
40315        }; then
40316   ac_header_preproc=yes
40317 else
40318   echo "$as_me: failed program was:" >&5
40319 sed 's/^/| /' conftest.$ac_ext >&5
40320
40321   ac_header_preproc=no
40322 fi
40323
40324 rm -f conftest.err conftest.$ac_ext
40325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40326 echo "${ECHO_T}$ac_header_preproc" >&6; }
40327
40328 # So?  What about this header?
40329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40330   yes:no: )
40331     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40332 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40333     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40334 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40335     ac_header_preproc=yes
40336     ;;
40337   no:yes:* )
40338     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40339 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40340     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40341 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40342     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40343 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40344     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40345 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40346     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40347 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40348     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40349 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40350
40351     ;;
40352 esac
40353 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40354 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40355 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40356   echo $ECHO_N "(cached) $ECHO_C" >&6
40357 else
40358   ac_cv_header_sys_acl_h=$ac_header_preproc
40359 fi
40360 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40361 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40362
40363 fi
40364 if test $ac_cv_header_sys_acl_h = yes; then
40365
40366 cat >>confdefs.h <<\_ACEOF
40367 #define HAVE_SYS_ACL_H 1
40368 _ACEOF
40369
40370 fi
40371
40372
40373    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40374 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40375 if test "${ac_cv_func_acl_get_file+set}" = set; then
40376   echo $ECHO_N "(cached) $ECHO_C" >&6
40377 else
40378   cat >conftest.$ac_ext <<_ACEOF
40379 /* confdefs.h.  */
40380 _ACEOF
40381 cat confdefs.h >>conftest.$ac_ext
40382 cat >>conftest.$ac_ext <<_ACEOF
40383 /* end confdefs.h.  */
40384 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40386 #define acl_get_file innocuous_acl_get_file
40387
40388 /* System header to define __stub macros and hopefully few prototypes,
40389     which can conflict with char acl_get_file (); below.
40390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40391     <limits.h> exists even on freestanding compilers.  */
40392
40393 #ifdef __STDC__
40394 # include <limits.h>
40395 #else
40396 # include <assert.h>
40397 #endif
40398
40399 #undef acl_get_file
40400
40401 /* Override any GCC internal prototype to avoid an error.
40402    Use char because int might match the return type of a GCC
40403    builtin and then its argument prototype would still apply.  */
40404 #ifdef __cplusplus
40405 extern "C"
40406 #endif
40407 char acl_get_file ();
40408 /* The GNU C library defines this for functions which it implements
40409     to always fail with ENOSYS.  Some functions are actually named
40410     something starting with __ and the normal name is an alias.  */
40411 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40412 choke me
40413 #endif
40414
40415 int
40416 main ()
40417 {
40418 return acl_get_file ();
40419   ;
40420   return 0;
40421 }
40422 _ACEOF
40423 rm -f conftest.$ac_objext conftest$ac_exeext
40424 if { (ac_try="$ac_link"
40425 case "(($ac_try" in
40426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40427   *) ac_try_echo=$ac_try;;
40428 esac
40429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40430   (eval "$ac_link") 2>conftest.er1
40431   ac_status=$?
40432   grep -v '^ *+' conftest.er1 >conftest.err
40433   rm -f conftest.er1
40434   cat conftest.err >&5
40435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40436   (exit $ac_status); } && {
40437          test -z "$ac_c_werror_flag" ||
40438          test ! -s conftest.err
40439        } && test -s conftest$ac_exeext &&
40440        $as_test_x conftest$ac_exeext; then
40441   ac_cv_func_acl_get_file=yes
40442 else
40443   echo "$as_me: failed program was:" >&5
40444 sed 's/^/| /' conftest.$ac_ext >&5
40445
40446         ac_cv_func_acl_get_file=no
40447 fi
40448
40449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40450       conftest$ac_exeext conftest.$ac_ext
40451 fi
40452 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40453 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40454 if test $ac_cv_func_acl_get_file = yes; then
40455
40456           have_acl=yes
40457
40458 else
40459
40460           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40461 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40462 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40463   echo $ECHO_N "(cached) $ECHO_C" >&6
40464 else
40465   ac_check_lib_save_LIBS=$LIBS
40466 LIBS="-lacl  $LIBS"
40467 cat >conftest.$ac_ext <<_ACEOF
40468 /* confdefs.h.  */
40469 _ACEOF
40470 cat confdefs.h >>conftest.$ac_ext
40471 cat >>conftest.$ac_ext <<_ACEOF
40472 /* end confdefs.h.  */
40473
40474 /* Override any GCC internal prototype to avoid an error.
40475    Use char because int might match the return type of a GCC
40476    builtin and then its argument prototype would still apply.  */
40477 #ifdef __cplusplus
40478 extern "C"
40479 #endif
40480 char acl_get_file ();
40481 int
40482 main ()
40483 {
40484 return acl_get_file ();
40485   ;
40486   return 0;
40487 }
40488 _ACEOF
40489 rm -f conftest.$ac_objext conftest$ac_exeext
40490 if { (ac_try="$ac_link"
40491 case "(($ac_try" in
40492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40493   *) ac_try_echo=$ac_try;;
40494 esac
40495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40496   (eval "$ac_link") 2>conftest.er1
40497   ac_status=$?
40498   grep -v '^ *+' conftest.er1 >conftest.err
40499   rm -f conftest.er1
40500   cat conftest.err >&5
40501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40502   (exit $ac_status); } && {
40503          test -z "$ac_c_werror_flag" ||
40504          test ! -s conftest.err
40505        } && test -s conftest$ac_exeext &&
40506        $as_test_x conftest$ac_exeext; then
40507   ac_cv_lib_acl_acl_get_file=yes
40508 else
40509   echo "$as_me: failed program was:" >&5
40510 sed 's/^/| /' conftest.$ac_ext >&5
40511
40512         ac_cv_lib_acl_acl_get_file=no
40513 fi
40514
40515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40516       conftest$ac_exeext conftest.$ac_ext
40517 LIBS=$ac_check_lib_save_LIBS
40518 fi
40519 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40520 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40521 if test $ac_cv_lib_acl_acl_get_file = yes; then
40522
40523                  have_acl=yes;
40524                  FDLIBS="-lacl $FDLIBS"
40525
40526 else
40527
40528                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40529 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40530 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40531   echo $ECHO_N "(cached) $ECHO_C" >&6
40532 else
40533   ac_check_lib_save_LIBS=$LIBS
40534 LIBS="-lpacl  $LIBS"
40535 cat >conftest.$ac_ext <<_ACEOF
40536 /* confdefs.h.  */
40537 _ACEOF
40538 cat confdefs.h >>conftest.$ac_ext
40539 cat >>conftest.$ac_ext <<_ACEOF
40540 /* end confdefs.h.  */
40541
40542 /* Override any GCC internal prototype to avoid an error.
40543    Use char because int might match the return type of a GCC
40544    builtin and then its argument prototype would still apply.  */
40545 #ifdef __cplusplus
40546 extern "C"
40547 #endif
40548 char acl_get_file ();
40549 int
40550 main ()
40551 {
40552 return acl_get_file ();
40553   ;
40554   return 0;
40555 }
40556 _ACEOF
40557 rm -f conftest.$ac_objext conftest$ac_exeext
40558 if { (ac_try="$ac_link"
40559 case "(($ac_try" in
40560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40561   *) ac_try_echo=$ac_try;;
40562 esac
40563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40564   (eval "$ac_link") 2>conftest.er1
40565   ac_status=$?
40566   grep -v '^ *+' conftest.er1 >conftest.err
40567   rm -f conftest.er1
40568   cat conftest.err >&5
40569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570   (exit $ac_status); } && {
40571          test -z "$ac_c_werror_flag" ||
40572          test ! -s conftest.err
40573        } && test -s conftest$ac_exeext &&
40574        $as_test_x conftest$ac_exeext; then
40575   ac_cv_lib_pacl_acl_get_file=yes
40576 else
40577   echo "$as_me: failed program was:" >&5
40578 sed 's/^/| /' conftest.$ac_ext >&5
40579
40580         ac_cv_lib_pacl_acl_get_file=no
40581 fi
40582
40583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40584       conftest$ac_exeext conftest.$ac_ext
40585 LIBS=$ac_check_lib_save_LIBS
40586 fi
40587 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40588 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40589 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40590
40591                         have_acl=yes;
40592                         FDLIBS="-lpacl $FDLIBS"
40593
40594 else
40595
40596                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40597 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40598 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40599   echo $ECHO_N "(cached) $ECHO_C" >&6
40600 else
40601   ac_check_lib_save_LIBS=$LIBS
40602 LIBS="-lsec  $LIBS"
40603 cat >conftest.$ac_ext <<_ACEOF
40604 /* confdefs.h.  */
40605 _ACEOF
40606 cat confdefs.h >>conftest.$ac_ext
40607 cat >>conftest.$ac_ext <<_ACEOF
40608 /* end confdefs.h.  */
40609
40610 /* Override any GCC internal prototype to avoid an error.
40611    Use char because int might match the return type of a GCC
40612    builtin and then its argument prototype would still apply.  */
40613 #ifdef __cplusplus
40614 extern "C"
40615 #endif
40616 char acltotext ();
40617 int
40618 main ()
40619 {
40620 return acltotext ();
40621   ;
40622   return 0;
40623 }
40624 _ACEOF
40625 rm -f conftest.$ac_objext conftest$ac_exeext
40626 if { (ac_try="$ac_link"
40627 case "(($ac_try" in
40628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40629   *) ac_try_echo=$ac_try;;
40630 esac
40631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40632   (eval "$ac_link") 2>conftest.er1
40633   ac_status=$?
40634   grep -v '^ *+' conftest.er1 >conftest.err
40635   rm -f conftest.er1
40636   cat conftest.err >&5
40637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40638   (exit $ac_status); } && {
40639          test -z "$ac_c_werror_flag" ||
40640          test ! -s conftest.err
40641        } && test -s conftest$ac_exeext &&
40642        $as_test_x conftest$ac_exeext; then
40643   ac_cv_lib_sec_acltotext=yes
40644 else
40645   echo "$as_me: failed program was:" >&5
40646 sed 's/^/| /' conftest.$ac_ext >&5
40647
40648         ac_cv_lib_sec_acltotext=no
40649 fi
40650
40651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40652       conftest$ac_exeext conftest.$ac_ext
40653 LIBS=$ac_check_lib_save_LIBS
40654 fi
40655 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40656 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40657 if test $ac_cv_lib_sec_acltotext = yes; then
40658
40659                                have_acl=yes;
40660                                FDLIBS="-lsec $FDLIBS"
40661
40662                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40663 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40664 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40665   echo $ECHO_N "(cached) $ECHO_C" >&6
40666 else
40667   ac_check_lib_save_LIBS=$LIBS
40668 LIBS="-lsec  $LIBS"
40669 cat >conftest.$ac_ext <<_ACEOF
40670 /* confdefs.h.  */
40671 _ACEOF
40672 cat confdefs.h >>conftest.$ac_ext
40673 cat >>conftest.$ac_ext <<_ACEOF
40674 /* end confdefs.h.  */
40675
40676 /* Override any GCC internal prototype to avoid an error.
40677    Use char because int might match the return type of a GCC
40678    builtin and then its argument prototype would still apply.  */
40679 #ifdef __cplusplus
40680 extern "C"
40681 #endif
40682 char acl_totext ();
40683 int
40684 main ()
40685 {
40686 return acl_totext ();
40687   ;
40688   return 0;
40689 }
40690 _ACEOF
40691 rm -f conftest.$ac_objext conftest$ac_exeext
40692 if { (ac_try="$ac_link"
40693 case "(($ac_try" in
40694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40695   *) ac_try_echo=$ac_try;;
40696 esac
40697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40698   (eval "$ac_link") 2>conftest.er1
40699   ac_status=$?
40700   grep -v '^ *+' conftest.er1 >conftest.err
40701   rm -f conftest.er1
40702   cat conftest.err >&5
40703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40704   (exit $ac_status); } && {
40705          test -z "$ac_c_werror_flag" ||
40706          test ! -s conftest.err
40707        } && test -s conftest$ac_exeext &&
40708        $as_test_x conftest$ac_exeext; then
40709   ac_cv_lib_sec_acl_totext=yes
40710 else
40711   echo "$as_me: failed program was:" >&5
40712 sed 's/^/| /' conftest.$ac_ext >&5
40713
40714         ac_cv_lib_sec_acl_totext=no
40715 fi
40716
40717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40718       conftest$ac_exeext conftest.$ac_ext
40719 LIBS=$ac_check_lib_save_LIBS
40720 fi
40721 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
40722 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
40723 if test $ac_cv_lib_sec_acl_totext = yes; then
40724
40725                                       have_extended_acl=yes
40726
40727
40728 fi
40729
40730
40731
40732 fi
40733
40734
40735
40736 fi
40737
40738
40739
40740 fi
40741
40742
40743
40744 fi
40745
40746    if test $have_acl = yes; then
40747       cat >>confdefs.h <<\_ACEOF
40748 #define HAVE_ACL 1
40749 _ACEOF
40750
40751    fi
40752
40753    if test $have_extended_acl = yes; then
40754       cat >>confdefs.h <<\_ACEOF
40755 #define HAVE_EXTENDED_ACL 1
40756 _ACEOF
40757
40758    fi
40759 fi
40760
40761 support_xattr=yes
40762 # Check whether --enable-xattr was given.
40763 if test "${enable_xattr+set}" = set; then
40764   enableval=$enable_xattr;
40765        if test x$enableval = xno; then
40766           support_acl=no
40767        fi
40768
40769
40770 fi
40771
40772
40773 have_xattr=no
40774 if test x$support_xattr = xyes; then
40775    if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40776   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40777 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40778 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40779   echo $ECHO_N "(cached) $ECHO_C" >&6
40780 fi
40781 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40782 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40783 else
40784   # Is the header compilable?
40785 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
40786 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
40787 cat >conftest.$ac_ext <<_ACEOF
40788 /* confdefs.h.  */
40789 _ACEOF
40790 cat confdefs.h >>conftest.$ac_ext
40791 cat >>conftest.$ac_ext <<_ACEOF
40792 /* end confdefs.h.  */
40793 $ac_includes_default
40794 #include <sys/xattr.h>
40795 _ACEOF
40796 rm -f conftest.$ac_objext
40797 if { (ac_try="$ac_compile"
40798 case "(($ac_try" in
40799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40800   *) ac_try_echo=$ac_try;;
40801 esac
40802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40803   (eval "$ac_compile") 2>conftest.er1
40804   ac_status=$?
40805   grep -v '^ *+' conftest.er1 >conftest.err
40806   rm -f conftest.er1
40807   cat conftest.err >&5
40808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809   (exit $ac_status); } && {
40810          test -z "$ac_c_werror_flag" ||
40811          test ! -s conftest.err
40812        } && test -s conftest.$ac_objext; then
40813   ac_header_compiler=yes
40814 else
40815   echo "$as_me: failed program was:" >&5
40816 sed 's/^/| /' conftest.$ac_ext >&5
40817
40818         ac_header_compiler=no
40819 fi
40820
40821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40823 echo "${ECHO_T}$ac_header_compiler" >&6; }
40824
40825 # Is the header present?
40826 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
40827 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
40828 cat >conftest.$ac_ext <<_ACEOF
40829 /* confdefs.h.  */
40830 _ACEOF
40831 cat confdefs.h >>conftest.$ac_ext
40832 cat >>conftest.$ac_ext <<_ACEOF
40833 /* end confdefs.h.  */
40834 #include <sys/xattr.h>
40835 _ACEOF
40836 if { (ac_try="$ac_cpp conftest.$ac_ext"
40837 case "(($ac_try" in
40838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40839   *) ac_try_echo=$ac_try;;
40840 esac
40841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40843   ac_status=$?
40844   grep -v '^ *+' conftest.er1 >conftest.err
40845   rm -f conftest.er1
40846   cat conftest.err >&5
40847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848   (exit $ac_status); } >/dev/null && {
40849          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40850          test ! -s conftest.err
40851        }; then
40852   ac_header_preproc=yes
40853 else
40854   echo "$as_me: failed program was:" >&5
40855 sed 's/^/| /' conftest.$ac_ext >&5
40856
40857   ac_header_preproc=no
40858 fi
40859
40860 rm -f conftest.err conftest.$ac_ext
40861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40862 echo "${ECHO_T}$ac_header_preproc" >&6; }
40863
40864 # So?  What about this header?
40865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40866   yes:no: )
40867     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
40868 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40869     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
40870 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
40871     ac_header_preproc=yes
40872     ;;
40873   no:yes:* )
40874     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
40875 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
40876     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
40877 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
40878     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
40879 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
40880     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
40881 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40882     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
40883 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
40884     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
40885 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
40886
40887     ;;
40888 esac
40889 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40890 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40891 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40892   echo $ECHO_N "(cached) $ECHO_C" >&6
40893 else
40894   ac_cv_header_sys_xattr_h=$ac_header_preproc
40895 fi
40896 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40897 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40898
40899 fi
40900 if test $ac_cv_header_sys_xattr_h = yes; then
40901
40902 cat >>confdefs.h <<\_ACEOF
40903 #define HAVE_SYS_XATTR_H 1
40904 _ACEOF
40905
40906 fi
40907
40908
40909
40910
40911
40912 for ac_func in llistxattr lgetxattr lsetxattr
40913 do
40914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40918   echo $ECHO_N "(cached) $ECHO_C" >&6
40919 else
40920   cat >conftest.$ac_ext <<_ACEOF
40921 /* confdefs.h.  */
40922 _ACEOF
40923 cat confdefs.h >>conftest.$ac_ext
40924 cat >>conftest.$ac_ext <<_ACEOF
40925 /* end confdefs.h.  */
40926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40928 #define $ac_func innocuous_$ac_func
40929
40930 /* System header to define __stub macros and hopefully few prototypes,
40931     which can conflict with char $ac_func (); below.
40932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40933     <limits.h> exists even on freestanding compilers.  */
40934
40935 #ifdef __STDC__
40936 # include <limits.h>
40937 #else
40938 # include <assert.h>
40939 #endif
40940
40941 #undef $ac_func
40942
40943 /* Override any GCC internal prototype to avoid an error.
40944    Use char because int might match the return type of a GCC
40945    builtin and then its argument prototype would still apply.  */
40946 #ifdef __cplusplus
40947 extern "C"
40948 #endif
40949 char $ac_func ();
40950 /* The GNU C library defines this for functions which it implements
40951     to always fail with ENOSYS.  Some functions are actually named
40952     something starting with __ and the normal name is an alias.  */
40953 #if defined __stub_$ac_func || defined __stub___$ac_func
40954 choke me
40955 #endif
40956
40957 int
40958 main ()
40959 {
40960 return $ac_func ();
40961   ;
40962   return 0;
40963 }
40964 _ACEOF
40965 rm -f conftest.$ac_objext conftest$ac_exeext
40966 if { (ac_try="$ac_link"
40967 case "(($ac_try" in
40968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40969   *) ac_try_echo=$ac_try;;
40970 esac
40971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40972   (eval "$ac_link") 2>conftest.er1
40973   ac_status=$?
40974   grep -v '^ *+' conftest.er1 >conftest.err
40975   rm -f conftest.er1
40976   cat conftest.err >&5
40977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40978   (exit $ac_status); } && {
40979          test -z "$ac_c_werror_flag" ||
40980          test ! -s conftest.err
40981        } && test -s conftest$ac_exeext &&
40982        $as_test_x conftest$ac_exeext; then
40983   eval "$as_ac_var=yes"
40984 else
40985   echo "$as_me: failed program was:" >&5
40986 sed 's/^/| /' conftest.$ac_ext >&5
40987
40988         eval "$as_ac_var=no"
40989 fi
40990
40991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40992       conftest$ac_exeext conftest.$ac_ext
40993 fi
40994 ac_res=`eval echo '${'$as_ac_var'}'`
40995                { echo "$as_me:$LINENO: result: $ac_res" >&5
40996 echo "${ECHO_T}$ac_res" >&6; }
40997 if test `eval echo '${'$as_ac_var'}'` = yes; then
40998   cat >>confdefs.h <<_ACEOF
40999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41000 _ACEOF
41001
41002           have_xattr=yes
41003           cat >>confdefs.h <<\_ACEOF
41004 #define HAVE_LLISTXATTR 1
41005 _ACEOF
41006
41007           cat >>confdefs.h <<\_ACEOF
41008 #define HAVE_LGETXATTR 1
41009 _ACEOF
41010
41011           cat >>confdefs.h <<\_ACEOF
41012 #define HAVE_LSETXATTR 1
41013 _ACEOF
41014
41015
41016 else
41017
41018
41019
41020
41021 for ac_func in listxattr getxattr setxattr
41022 do
41023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41027   echo $ECHO_N "(cached) $ECHO_C" >&6
41028 else
41029   cat >conftest.$ac_ext <<_ACEOF
41030 /* confdefs.h.  */
41031 _ACEOF
41032 cat confdefs.h >>conftest.$ac_ext
41033 cat >>conftest.$ac_ext <<_ACEOF
41034 /* end confdefs.h.  */
41035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41037 #define $ac_func innocuous_$ac_func
41038
41039 /* System header to define __stub macros and hopefully few prototypes,
41040     which can conflict with char $ac_func (); below.
41041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41042     <limits.h> exists even on freestanding compilers.  */
41043
41044 #ifdef __STDC__
41045 # include <limits.h>
41046 #else
41047 # include <assert.h>
41048 #endif
41049
41050 #undef $ac_func
41051
41052 /* Override any GCC internal prototype to avoid an error.
41053    Use char because int might match the return type of a GCC
41054    builtin and then its argument prototype would still apply.  */
41055 #ifdef __cplusplus
41056 extern "C"
41057 #endif
41058 char $ac_func ();
41059 /* The GNU C library defines this for functions which it implements
41060     to always fail with ENOSYS.  Some functions are actually named
41061     something starting with __ and the normal name is an alias.  */
41062 #if defined __stub_$ac_func || defined __stub___$ac_func
41063 choke me
41064 #endif
41065
41066 int
41067 main ()
41068 {
41069 return $ac_func ();
41070   ;
41071   return 0;
41072 }
41073 _ACEOF
41074 rm -f conftest.$ac_objext conftest$ac_exeext
41075 if { (ac_try="$ac_link"
41076 case "(($ac_try" in
41077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41078   *) ac_try_echo=$ac_try;;
41079 esac
41080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41081   (eval "$ac_link") 2>conftest.er1
41082   ac_status=$?
41083   grep -v '^ *+' conftest.er1 >conftest.err
41084   rm -f conftest.er1
41085   cat conftest.err >&5
41086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087   (exit $ac_status); } && {
41088          test -z "$ac_c_werror_flag" ||
41089          test ! -s conftest.err
41090        } && test -s conftest$ac_exeext &&
41091        $as_test_x conftest$ac_exeext; then
41092   eval "$as_ac_var=yes"
41093 else
41094   echo "$as_me: failed program was:" >&5
41095 sed 's/^/| /' conftest.$ac_ext >&5
41096
41097         eval "$as_ac_var=no"
41098 fi
41099
41100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41101       conftest$ac_exeext conftest.$ac_ext
41102 fi
41103 ac_res=`eval echo '${'$as_ac_var'}'`
41104                { echo "$as_me:$LINENO: result: $ac_res" >&5
41105 echo "${ECHO_T}$ac_res" >&6; }
41106 if test `eval echo '${'$as_ac_var'}'` = yes; then
41107   cat >>confdefs.h <<_ACEOF
41108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41109 _ACEOF
41110
41111                   have_xattr=yes
41112                   cat >>confdefs.h <<\_ACEOF
41113 #define HAVE_LISTXATTR 1
41114 _ACEOF
41115
41116                   cat >>confdefs.h <<\_ACEOF
41117 #define HAVE_GETXATTR 1
41118 _ACEOF
41119
41120                   cat >>confdefs.h <<\_ACEOF
41121 #define HAVE_SETXATTR 1
41122 _ACEOF
41123
41124
41125
41126 fi
41127 done
41128
41129
41130
41131 fi
41132 done
41133
41134
41135    if test $have_xattr = yes; then
41136       cat >>confdefs.h <<\_ACEOF
41137 #define HAVE_XATTR 1
41138 _ACEOF
41139
41140    fi
41141 fi
41142
41143 PTHREAD_LIB=""
41144 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
41145 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
41146 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
41147   echo $ECHO_N "(cached) $ECHO_C" >&6
41148 else
41149   ac_check_lib_save_LIBS=$LIBS
41150 LIBS="-lpthread  $LIBS"
41151 cat >conftest.$ac_ext <<_ACEOF
41152 /* confdefs.h.  */
41153 _ACEOF
41154 cat confdefs.h >>conftest.$ac_ext
41155 cat >>conftest.$ac_ext <<_ACEOF
41156 /* end confdefs.h.  */
41157
41158 /* Override any GCC internal prototype to avoid an error.
41159    Use char because int might match the return type of a GCC
41160    builtin and then its argument prototype would still apply.  */
41161 #ifdef __cplusplus
41162 extern "C"
41163 #endif
41164 char pthread_create ();
41165 int
41166 main ()
41167 {
41168 return pthread_create ();
41169   ;
41170   return 0;
41171 }
41172 _ACEOF
41173 rm -f conftest.$ac_objext conftest$ac_exeext
41174 if { (ac_try="$ac_link"
41175 case "(($ac_try" in
41176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41177   *) ac_try_echo=$ac_try;;
41178 esac
41179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41180   (eval "$ac_link") 2>conftest.er1
41181   ac_status=$?
41182   grep -v '^ *+' conftest.er1 >conftest.err
41183   rm -f conftest.er1
41184   cat conftest.err >&5
41185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41186   (exit $ac_status); } && {
41187          test -z "$ac_c_werror_flag" ||
41188          test ! -s conftest.err
41189        } && test -s conftest$ac_exeext &&
41190        $as_test_x conftest$ac_exeext; then
41191   ac_cv_lib_pthread_pthread_create=yes
41192 else
41193   echo "$as_me: failed program was:" >&5
41194 sed 's/^/| /' conftest.$ac_ext >&5
41195
41196         ac_cv_lib_pthread_pthread_create=no
41197 fi
41198
41199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41200       conftest$ac_exeext conftest.$ac_ext
41201 LIBS=$ac_check_lib_save_LIBS
41202 fi
41203 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
41204 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
41205 if test $ac_cv_lib_pthread_pthread_create = yes; then
41206   PTHREAD_LIB="-lpthread"
41207 else
41208
41209        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
41210 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
41211 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
41212   echo $ECHO_N "(cached) $ECHO_C" >&6
41213 else
41214   ac_check_lib_save_LIBS=$LIBS
41215 LIBS="-lpthreads  $LIBS"
41216 cat >conftest.$ac_ext <<_ACEOF
41217 /* confdefs.h.  */
41218 _ACEOF
41219 cat confdefs.h >>conftest.$ac_ext
41220 cat >>conftest.$ac_ext <<_ACEOF
41221 /* end confdefs.h.  */
41222
41223 /* Override any GCC internal prototype to avoid an error.
41224    Use char because int might match the return type of a GCC
41225    builtin and then its argument prototype would still apply.  */
41226 #ifdef __cplusplus
41227 extern "C"
41228 #endif
41229 char pthread_create ();
41230 int
41231 main ()
41232 {
41233 return pthread_create ();
41234   ;
41235   return 0;
41236 }
41237 _ACEOF
41238 rm -f conftest.$ac_objext conftest$ac_exeext
41239 if { (ac_try="$ac_link"
41240 case "(($ac_try" in
41241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41242   *) ac_try_echo=$ac_try;;
41243 esac
41244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41245   (eval "$ac_link") 2>conftest.er1
41246   ac_status=$?
41247   grep -v '^ *+' conftest.er1 >conftest.err
41248   rm -f conftest.er1
41249   cat conftest.err >&5
41250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41251   (exit $ac_status); } && {
41252          test -z "$ac_c_werror_flag" ||
41253          test ! -s conftest.err
41254        } && test -s conftest$ac_exeext &&
41255        $as_test_x conftest$ac_exeext; then
41256   ac_cv_lib_pthreads_pthread_create=yes
41257 else
41258   echo "$as_me: failed program was:" >&5
41259 sed 's/^/| /' conftest.$ac_ext >&5
41260
41261         ac_cv_lib_pthreads_pthread_create=no
41262 fi
41263
41264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41265       conftest$ac_exeext conftest.$ac_ext
41266 LIBS=$ac_check_lib_save_LIBS
41267 fi
41268 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
41269 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
41270 if test $ac_cv_lib_pthreads_pthread_create = yes; then
41271   PTHREAD_LIB="-lpthreads"
41272 else
41273
41274               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
41275 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
41276 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
41277   echo $ECHO_N "(cached) $ECHO_C" >&6
41278 else
41279   ac_check_lib_save_LIBS=$LIBS
41280 LIBS="-lc_r  $LIBS"
41281 cat >conftest.$ac_ext <<_ACEOF
41282 /* confdefs.h.  */
41283 _ACEOF
41284 cat confdefs.h >>conftest.$ac_ext
41285 cat >>conftest.$ac_ext <<_ACEOF
41286 /* end confdefs.h.  */
41287
41288 /* Override any GCC internal prototype to avoid an error.
41289    Use char because int might match the return type of a GCC
41290    builtin and then its argument prototype would still apply.  */
41291 #ifdef __cplusplus
41292 extern "C"
41293 #endif
41294 char pthread_create ();
41295 int
41296 main ()
41297 {
41298 return pthread_create ();
41299   ;
41300   return 0;
41301 }
41302 _ACEOF
41303 rm -f conftest.$ac_objext conftest$ac_exeext
41304 if { (ac_try="$ac_link"
41305 case "(($ac_try" in
41306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41307   *) ac_try_echo=$ac_try;;
41308 esac
41309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41310   (eval "$ac_link") 2>conftest.er1
41311   ac_status=$?
41312   grep -v '^ *+' conftest.er1 >conftest.err
41313   rm -f conftest.er1
41314   cat conftest.err >&5
41315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41316   (exit $ac_status); } && {
41317          test -z "$ac_c_werror_flag" ||
41318          test ! -s conftest.err
41319        } && test -s conftest$ac_exeext &&
41320        $as_test_x conftest$ac_exeext; then
41321   ac_cv_lib_c_r_pthread_create=yes
41322 else
41323   echo "$as_me: failed program was:" >&5
41324 sed 's/^/| /' conftest.$ac_ext >&5
41325
41326         ac_cv_lib_c_r_pthread_create=no
41327 fi
41328
41329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41330       conftest$ac_exeext conftest.$ac_ext
41331 LIBS=$ac_check_lib_save_LIBS
41332 fi
41333 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
41334 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
41335 if test $ac_cv_lib_c_r_pthread_create = yes; then
41336   PTHREAD_LIB="-lc_r"
41337 else
41338
41339                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
41340 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
41341 if test "${ac_cv_func_pthread_create+set}" = set; then
41342   echo $ECHO_N "(cached) $ECHO_C" >&6
41343 else
41344   cat >conftest.$ac_ext <<_ACEOF
41345 /* confdefs.h.  */
41346 _ACEOF
41347 cat confdefs.h >>conftest.$ac_ext
41348 cat >>conftest.$ac_ext <<_ACEOF
41349 /* end confdefs.h.  */
41350 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
41351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41352 #define pthread_create innocuous_pthread_create
41353
41354 /* System header to define __stub macros and hopefully few prototypes,
41355     which can conflict with char pthread_create (); below.
41356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41357     <limits.h> exists even on freestanding compilers.  */
41358
41359 #ifdef __STDC__
41360 # include <limits.h>
41361 #else
41362 # include <assert.h>
41363 #endif
41364
41365 #undef pthread_create
41366
41367 /* Override any GCC internal prototype to avoid an error.
41368    Use char because int might match the return type of a GCC
41369    builtin and then its argument prototype would still apply.  */
41370 #ifdef __cplusplus
41371 extern "C"
41372 #endif
41373 char pthread_create ();
41374 /* The GNU C library defines this for functions which it implements
41375     to always fail with ENOSYS.  Some functions are actually named
41376     something starting with __ and the normal name is an alias.  */
41377 #if defined __stub_pthread_create || defined __stub___pthread_create
41378 choke me
41379 #endif
41380
41381 int
41382 main ()
41383 {
41384 return pthread_create ();
41385   ;
41386   return 0;
41387 }
41388 _ACEOF
41389 rm -f conftest.$ac_objext conftest$ac_exeext
41390 if { (ac_try="$ac_link"
41391 case "(($ac_try" in
41392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41393   *) ac_try_echo=$ac_try;;
41394 esac
41395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41396   (eval "$ac_link") 2>conftest.er1
41397   ac_status=$?
41398   grep -v '^ *+' conftest.er1 >conftest.err
41399   rm -f conftest.er1
41400   cat conftest.err >&5
41401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41402   (exit $ac_status); } && {
41403          test -z "$ac_c_werror_flag" ||
41404          test ! -s conftest.err
41405        } && test -s conftest$ac_exeext &&
41406        $as_test_x conftest$ac_exeext; then
41407   ac_cv_func_pthread_create=yes
41408 else
41409   echo "$as_me: failed program was:" >&5
41410 sed 's/^/| /' conftest.$ac_ext >&5
41411
41412         ac_cv_func_pthread_create=no
41413 fi
41414
41415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41416       conftest$ac_exeext conftest.$ac_ext
41417 fi
41418 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
41419 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
41420
41421
41422
41423 fi
41424
41425
41426
41427 fi
41428
41429
41430
41431 fi
41432
41433
41434
41435 cat >>confdefs.h <<\_ACEOF
41436 #define FDLIBS 1
41437 _ACEOF
41438
41439
41440 CFLAGS=${CFLAGS--O}
41441
41442 if test x$have_gcc = xyes ; then
41443    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41444    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41445 fi
41446 LDFLAGS=${LDFLAGS--O}
41447 DB_LIBS="${SQL_LFLAGS}"
41448 CPPFLAGS="$CPPFLAGS"
41449 CFLAGS="$CFLAGS"
41450
41451
41452
41453
41454
41455
41456
41457
41458
41459
41460
41461
41462
41463
41464
41465
41466 OBJLIST=
41467
41468
41469 lld="lld"
41470 llu="llu"
41471
41472 WCFLAGS=
41473 WLDFLAGS=
41474
41475 PFILES="platforms/Makefile"
41476 PSCMD="ps -e"
41477 WIN32=
41478 MACOSX=
41479 hostname=`uname -n | cut -d '.' -f 1`
41480 if test x${hostname} = x ; then
41481    hostname="localhost"
41482 fi
41483 case "$DISTNAME" in
41484 aix)
41485    DISTVER=`uname -r`
41486    PSCMD="ps -e -o pid,comm"
41487    PFILES="${PFILES} \
41488       platforms/aix/Makefile"
41489    TAPEDRIVE="/dev/rmt0.1"
41490   ;;
41491 alpha)
41492    DISTVER=`uname -r`
41493    PTHREAD_LIB="-lpthread -lexc"
41494    if test "${CC}" = "gcc" ; then
41495       lld="lld"
41496       llu="llu"
41497    else
41498       lld="ld"
41499       llu="lu"
41500    fi
41501    TAPEDRIVE="/dev/nrmt0"
41502   ;;
41503 bsdi)
41504    DISTVER=`uname -a |awk '{print $3}'`
41505    TAPEDRIVE="/dev/nrmt0"
41506    PTHREAD_LIB="-pthread"
41507    CFLAGS="${CFLAGS} -pthread"
41508    PSCMD="ps -ax -o pid,command"
41509    lld="qd"
41510    llu="qu"
41511    PFILES="${PFILES} \
41512        platforms/bsdi/Makefile \
41513        platforms/bsdi/bacula-fd \
41514        platforms/bsdi/bacula-sd \
41515        platforms/bsdi/bacula-dir"
41516    largefile_support="yes"
41517   ;;
41518 cygwin)
41519    DISTVER=`uname -a |awk '{print $3}'`
41520    TAPEDRIVE="/dev/nrst0"
41521    WIN32=win32
41522    WCFLAGS="-mwindows"
41523    WLDFLAGS="-mwindows"
41524   ;;
41525 darwin)
41526    DISTVER=`uname -r`
41527    TAPEDRIVE="/dev/nst0"
41528    PSCMD="ps -e -o pid,command"
41529    MACOSX=macosx
41530    PFILES="${PFILES} \
41531       platforms/darwin/Makefile"
41532   ;;
41533 debian)
41534       ping -c 1 $hostname 2>&1 1>/dev/null
41535    if test ! $? = 0; then
41536       hostname="localhost"
41537    fi
41538    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
41539       DISTNAME="ubuntu"
41540    fi
41541    DISTVER=`cat /etc/debian_version`
41542    if test -f /etc/lsb-release ; then
41543       . /etc/lsb-release
41544       if test "x$DISTRIB_ID" != "x" ; then
41545          DISTNAME=$DISTRIB_ID
41546       fi
41547       if test "x$DISTRIB_RELEASE" != "x" ; then
41548          DISTVER=$DISTRIB_RELEASE
41549       fi
41550    fi
41551    if test "$DISTNAME" = "Ubuntu" ; then
41552       DISTNAME="ubuntu"
41553    fi
41554    TAPEDRIVE="/dev/nst0"
41555    PSCMD="ps -e -o pid,command"
41556    if test "$DISTNAME" = "ubuntu" ; then
41557       PFILES="${PFILES} \
41558          platforms/ubuntu/Makefile \
41559          platforms/ubuntu/bacula-fd \
41560          platforms/ubuntu/bacula-sd \
41561          platforms/ubuntu/bacula-dir"
41562    else
41563       PFILES="${PFILES} \
41564          platforms/debian/Makefile \
41565          platforms/debian/bacula-fd \
41566          platforms/debian/bacula-sd \
41567          platforms/debian/bacula-dir"
41568    fi
41569   ;;
41570 freebsd)
41571       ping -c 1 $hostname 2>&1 1>/dev/null
41572    if test ! $? = 0; then
41573       hostname="localhost"
41574    fi
41575    DISTVER=`uname -a |awk '{print $3}'`
41576    VER=`echo $DISTVER | cut -c 1`
41577    if test x$VER = x4 ; then
41578       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41579       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41580    fi
41581    lld="qd"
41582    llu="qu"
41583    TAPEDRIVE="/dev/nrsa0"
41584    PSCMD="ps -ax -o pid,command"
41585    PFILES="${PFILES} \
41586        platforms/freebsd/Makefile \
41587        platforms/freebsd/bacula-fd \
41588        platforms/freebsd/bacula-sd \
41589        platforms/freebsd/bacula-dir"
41590    largefile_support="yes"
41591   ;;
41592 hpux)
41593    PSCMD="UNIX95=1; ps -e -o pid,comm"
41594    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41595    DISTVER=`uname -r`
41596    TAPEDRIVE="/dev/rmt/0hnb"
41597    PTHREAD_LIB="-lpthread"
41598    cat >>confdefs.h <<\_ACEOF
41599 #define _INCLUDE_LONGLONG 1
41600 _ACEOF
41601
41602   ;;
41603 irix)
41604    DISTVER=`uname -r`
41605    TAPEDRIVE="/dev/rmt/0cbn"
41606    PSCMD="ps -e -o pid,comm"
41607    PFILES="${PFILES} \
41608        platforms/irix/Makefile \
41609        platforms/irix/bacula-fd \
41610        platforms/irix/bacula-sd \
41611        platforms/irix/bacula-dir"
41612   ;;
41613 netbsd)
41614    DISTVER=`uname -a |awk '{print $3}'`
41615    lld="qd"
41616    llu="qu"
41617    TAPEDRIVE="/dev/nrst0"
41618    PSCMD="ps -ax -o pid,command"
41619    PTHREAD_LIB="-pthread"
41620    CFLAGS="${CFLAGS} -pthread"
41621   ;;
41622 openbsd)
41623    DISTVER=`uname -a |awk '{print $3}'`
41624    lld="qd"
41625    llu="qu"
41626    TAPEDRIVE="/dev/nrst0"
41627    PSCMD="ps -ax -o pid,command"
41628    PTHREAD_LIB="-pthread"
41629    CFLAGS="${CFLAGS} -pthread"
41630    PFILES="${PFILES} \
41631        platforms/openbsd/Makefile \
41632        platforms/openbsd/bacula-fd \
41633        platforms/openbsd/bacula-sd \
41634        platforms/openbsd/bacula-dir"
41635   ;;
41636 redhat)
41637       ping -c 1 $hostname 2>&1 1>/dev/null
41638    if test ! $? = 0; then
41639       hostname="localhost"
41640    fi
41641    if test -f /etc/whitebox-release ; then
41642       f=/etc/whitebox-release
41643    else
41644       f=/etc/redhat-release
41645    fi
41646    if test `cat $f | grep release |\
41647          cut -f 3 -d ' '`x = "Enterprise"x ; then
41648       DISTVER="Enterprise "`cat $f | grep release |\
41649           cut -f 6 -d ' '`
41650    else
41651        DISTVER=`cat /etc/redhat-release | grep release |\
41652            cut -f 5 -d ' '`
41653    fi
41654    TAPEDRIVE="/dev/nst0"
41655    PSCMD="ps -e -o pid,command"
41656    PFILES="${PFILES} \
41657        platforms/redhat/Makefile \
41658        platforms/redhat/bacula-fd \
41659        platforms/redhat/bacula-sd \
41660        platforms/redhat/bacula-dir \
41661        platforms/redhat/bacula.spec \
41662        "
41663   ;;
41664 mandrake)
41665       ping -c 1 $hostname 2>&1 1>/dev/null
41666    if test ! $? = 0; then
41667       hostname="localhost"
41668    fi
41669    DISTVER=`cat /etc/mandrake-release | grep release |\
41670       cut -f 5 -d ' '`
41671    TAPEDRIVE="/dev/nst0"
41672    PSCMD="ps -e -o pid,command"
41673    PFILES="${PFILES} \
41674        platforms/mandrake/Makefile \
41675        platforms/mandrake/bacula-fd \
41676        platforms/mandrake/bacula-sd \
41677        platforms/mandrake/bacula-dir \
41678        platforms/mandrake/bacula.spec \
41679        "
41680   ;;
41681 gentoo)
41682       ping -c 1 $hostname 2>&1 1>/dev/null
41683    if test ! $? = 0; then
41684       hostname="localhost"
41685    fi
41686    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41687    TAPEDRIVE="/dev/nst0"
41688    PSCMD="ps -e -o pid,command"
41689    PFILES="${PFILES} \
41690        platforms/gentoo/Makefile \
41691     platforms/gentoo/bacula-init \
41692        platforms/gentoo/bacula-fd \
41693        platforms/gentoo/bacula-sd \
41694        platforms/gentoo/bacula-dir"
41695   ;;
41696 slackware)
41697       ping -c 1 $hostname 2>&1 1>/dev/null
41698    if test ! $? = 0; then
41699       hostname="localhost"
41700    fi
41701    DISTVER=`cat /etc/slackware-version`
41702    TAPEDRIVE="/dev/nst0"
41703    PSCMD="ps -e -o pid,command"
41704    PFILES="${PFILES} \
41705        platforms/slackware/Makefile \
41706        platforms/slackware/rc.bacula-fd \
41707        platforms/slackware/rc.bacula-sd \
41708        platforms/slackware/rc.bacula-dir\
41709        platforms/slackware/functions.bacula"
41710   ;;
41711 solaris)
41712    DISTVER=`uname -r`
41713    TAPEDRIVE="/dev/rmt/0cbn"
41714    PSCMD="ps -e -o pid,comm"
41715    PFILES="${PFILES} \
41716        platforms/solaris/Makefile \
41717        platforms/solaris/bacula-fd \
41718        platforms/solaris/bacula-sd \
41719        platforms/solaris/bacula-dir"
41720    if test x$DISTVER = x5.6 ; then
41721        cat >>confdefs.h <<\_ACEOF
41722 #define HAVE_OLD_SOCKOPT 1
41723 _ACEOF
41724
41725    fi
41726    LIBS="$LIBS -lresolv"
41727   ;;
41728 suse)
41729       ping -c 1 $hostname 2>&1 1>/dev/null
41730    if test ! $? = 0; then
41731       hostname="localhost"
41732    fi
41733    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41734        cut -f 3 -d ' '`
41735    TAPEDRIVE="/dev/nst0"
41736    PSCMD="ps -e -o pid,command"
41737    PFILES="${PFILES} \
41738        platforms/suse/Makefile \
41739        platforms/suse/bacula-fd \
41740        platforms/suse/bacula-sd \
41741        platforms/suse/bacula-dir \
41742        platforms/suse/bacula \
41743        platforms/suse/bacula.spec"
41744   ;;
41745 suse5)
41746       ping -c 1 $hostname 2>&1 1>/dev/null
41747    if test ! $? = 0; then
41748       hostname="localhost"
41749    fi
41750    DISTNAME=suse
41751    DISTVER=5.x
41752    TAPEDRIVE="/dev/nst0"
41753    PSCMD="ps -e -o pid,command"
41754    PFILES="${PFILES} \
41755        platforms/suse/Makefile \
41756        platforms/suse/bacula-fd \
41757        platforms/suse/bacula-sd \
41758        platforms/suse/bacula-dir"
41759   ;;
41760 unknown)
41761    DISTVER=unknown
41762    TAPEDRIVE="/dev/nst0"
41763   ;;
41764 *)
41765   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41766   ;;
41767 esac
41768
41769
41770
41771 LIBS="$PTHREAD_LIB $LIBS"
41772
41773 cat >>confdefs.h <<_ACEOF
41774 #define lld "$lld"
41775 _ACEOF
41776
41777 cat >>confdefs.h <<_ACEOF
41778 #define llu "$llu"
41779 _ACEOF
41780
41781
41782
41783
41784
41785
41786
41787
41788 MCOMMON=./autoconf/Make.common
41789
41790
41791 if test "x${subsysdir}" = "x${sbindir}" ; then
41792    echo " "
41793    echo " "
41794    echo "You have set both --sbindir and --with-subsys-dir"
41795    echo "  equal to: ${subsysdir} "
41796    echo "This is not permitted. Please reconfigure."
41797    echo " "
41798    echo "Aborting configuration ..."
41799    echo " "
41800    echo " "
41801    exit 1
41802 fi
41803
41804 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile 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"
41805
41806 ac_config_commands="$ac_config_commands default"
41807
41808 cat >confcache <<\_ACEOF
41809 # This file is a shell script that caches the results of configure
41810 # tests run on this system so they can be shared between configure
41811 # scripts and configure runs, see configure's option --config-cache.
41812 # It is not useful on other systems.  If it contains results you don't
41813 # want to keep, you may remove or edit it.
41814 #
41815 # config.status only pays attention to the cache file if you give it
41816 # the --recheck option to rerun configure.
41817 #
41818 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41819 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41820 # following values.
41821
41822 _ACEOF
41823
41824 # The following way of writing the cache mishandles newlines in values,
41825 # but we know of no workaround that is simple, portable, and efficient.
41826 # So, we kill variables containing newlines.
41827 # Ultrix sh set writes to stderr and can't be redirected directly,
41828 # and sets the high bit in the cache file unless we assign to the vars.
41829 (
41830   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41831     eval ac_val=\$$ac_var
41832     case $ac_val in #(
41833     *${as_nl}*)
41834       case $ac_var in #(
41835       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41836 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41837       esac
41838       case $ac_var in #(
41839       _ | IFS | as_nl) ;; #(
41840       *) $as_unset $ac_var ;;
41841       esac ;;
41842     esac
41843   done
41844
41845   (set) 2>&1 |
41846     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41847     *${as_nl}ac_space=\ *)
41848       # `set' does not quote correctly, so add quotes (double-quote
41849       # substitution turns \\\\ into \\, and sed turns \\ into \).
41850       sed -n \
41851         "s/'/'\\\\''/g;
41852           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41853       ;; #(
41854     *)
41855       # `set' quotes correctly as required by POSIX, so do not add quotes.
41856       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41857       ;;
41858     esac |
41859     sort
41860 ) |
41861   sed '
41862      /^ac_cv_env_/b end
41863      t clear
41864      :clear
41865      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41866      t end
41867      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41868      :end' >>confcache
41869 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41870   if test -w "$cache_file"; then
41871     test "x$cache_file" != "x/dev/null" &&
41872       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41873 echo "$as_me: updating cache $cache_file" >&6;}
41874     cat confcache >$cache_file
41875   else
41876     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41877 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41878   fi
41879 fi
41880 rm -f confcache
41881
41882 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41883 # Let make expand exec_prefix.
41884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41885
41886 DEFS=-DHAVE_CONFIG_H
41887
41888 ac_libobjs=
41889 ac_ltlibobjs=
41890 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41891   # 1. Remove the extension, and $U if already installed.
41892   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41893   ac_i=`echo "$ac_i" | sed "$ac_script"`
41894   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41895   #    will be set to the directory where LIBOBJS objects are built.
41896   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41897   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41898 done
41899 LIBOBJS=$ac_libobjs
41900
41901 LTLIBOBJS=$ac_ltlibobjs
41902
41903
41904
41905 : ${CONFIG_STATUS=./config.status}
41906 ac_clean_files_save=$ac_clean_files
41907 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41908 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41909 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41910 cat >$CONFIG_STATUS <<_ACEOF
41911 #! $SHELL
41912 # Generated by $as_me.
41913 # Run this file to recreate the current configuration.
41914 # Compiler output produced by configure, useful for debugging
41915 # configure, is in config.log if it exists.
41916
41917 debug=false
41918 ac_cs_recheck=false
41919 ac_cs_silent=false
41920 SHELL=\${CONFIG_SHELL-$SHELL}
41921 _ACEOF
41922
41923 cat >>$CONFIG_STATUS <<\_ACEOF
41924 ## --------------------- ##
41925 ## M4sh Initialization.  ##
41926 ## --------------------- ##
41927
41928 # Be more Bourne compatible
41929 DUALCASE=1; export DUALCASE # for MKS sh
41930 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41931   emulate sh
41932   NULLCMD=:
41933   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41934   # is contrary to our usage.  Disable this feature.
41935   alias -g '${1+"$@"}'='"$@"'
41936   setopt NO_GLOB_SUBST
41937 else
41938   case `(set -o) 2>/dev/null` in
41939   *posix*) set -o posix ;;
41940 esac
41941
41942 fi
41943
41944
41945
41946
41947 # PATH needs CR
41948 # Avoid depending upon Character Ranges.
41949 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41950 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41951 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41952 as_cr_digits='0123456789'
41953 as_cr_alnum=$as_cr_Letters$as_cr_digits
41954
41955 # The user is always right.
41956 if test "${PATH_SEPARATOR+set}" != set; then
41957   echo "#! /bin/sh" >conf$$.sh
41958   echo  "exit 0"   >>conf$$.sh
41959   chmod +x conf$$.sh
41960   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41961     PATH_SEPARATOR=';'
41962   else
41963     PATH_SEPARATOR=:
41964   fi
41965   rm -f conf$$.sh
41966 fi
41967
41968 # Support unset when possible.
41969 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41970   as_unset=unset
41971 else
41972   as_unset=false
41973 fi
41974
41975
41976 # IFS
41977 # We need space, tab and new line, in precisely that order.  Quoting is
41978 # there to prevent editors from complaining about space-tab.
41979 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41980 # splitting by setting IFS to empty value.)
41981 as_nl='
41982 '
41983 IFS=" ""        $as_nl"
41984
41985 # Find who we are.  Look in the path if we contain no directory separator.
41986 case $0 in
41987   *[\\/]* ) as_myself=$0 ;;
41988   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41989 for as_dir in $PATH
41990 do
41991   IFS=$as_save_IFS
41992   test -z "$as_dir" && as_dir=.
41993   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41994 done
41995 IFS=$as_save_IFS
41996
41997      ;;
41998 esac
41999 # We did not find ourselves, most probably we were run as `sh COMMAND'
42000 # in which case we are not to be found in the path.
42001 if test "x$as_myself" = x; then
42002   as_myself=$0
42003 fi
42004 if test ! -f "$as_myself"; then
42005   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42006   { (exit 1); exit 1; }
42007 fi
42008
42009 # Work around bugs in pre-3.0 UWIN ksh.
42010 for as_var in ENV MAIL MAILPATH
42011 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42012 done
42013 PS1='$ '
42014 PS2='> '
42015 PS4='+ '
42016
42017 # NLS nuisances.
42018 for as_var in \
42019   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42020   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42021   LC_TELEPHONE LC_TIME
42022 do
42023   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42024     eval $as_var=C; export $as_var
42025   else
42026     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42027   fi
42028 done
42029
42030 # Required to use basename.
42031 if expr a : '\(a\)' >/dev/null 2>&1 &&
42032    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42033   as_expr=expr
42034 else
42035   as_expr=false
42036 fi
42037
42038 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42039   as_basename=basename
42040 else
42041   as_basename=false
42042 fi
42043
42044
42045 # Name of the executable.
42046 as_me=`$as_basename -- "$0" ||
42047 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42048          X"$0" : 'X\(//\)$' \| \
42049          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42050 echo X/"$0" |
42051     sed '/^.*\/\([^/][^/]*\)\/*$/{
42052             s//\1/
42053             q
42054           }
42055           /^X\/\(\/\/\)$/{
42056             s//\1/
42057             q
42058           }
42059           /^X\/\(\/\).*/{
42060             s//\1/
42061             q
42062           }
42063           s/.*/./; q'`
42064
42065 # CDPATH.
42066 $as_unset CDPATH
42067
42068
42069
42070   as_lineno_1=$LINENO
42071   as_lineno_2=$LINENO
42072   test "x$as_lineno_1" != "x$as_lineno_2" &&
42073   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
42074
42075   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42076   # uniformly replaced by the line number.  The first 'sed' inserts a
42077   # line-number line after each line using $LINENO; the second 'sed'
42078   # does the real work.  The second script uses 'N' to pair each
42079   # line-number line with the line containing $LINENO, and appends
42080   # trailing '-' during substitution so that $LINENO is not a special
42081   # case at line end.
42082   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42083   # scripts with optimization help from Paolo Bonzini.  Blame Lee
42084   # E. McMahon (1931-1989) for sed's syntax.  :-)
42085   sed -n '
42086     p
42087     /[$]LINENO/=
42088   ' <$as_myself |
42089     sed '
42090       s/[$]LINENO.*/&-/
42091       t lineno
42092       b
42093       :lineno
42094       N
42095       :loop
42096       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42097       t loop
42098       s/-\n.*//
42099     ' >$as_me.lineno &&
42100   chmod +x "$as_me.lineno" ||
42101     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
42102    { (exit 1); exit 1; }; }
42103
42104   # Don't try to exec as it changes $[0], causing all sort of problems
42105   # (the dirname of $[0] is not the place where we might find the
42106   # original and so on.  Autoconf is especially sensitive to this).
42107   . "./$as_me.lineno"
42108   # Exit status is that of the last command.
42109   exit
42110 }
42111
42112
42113 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42114   as_dirname=dirname
42115 else
42116   as_dirname=false
42117 fi
42118
42119 ECHO_C= ECHO_N= ECHO_T=
42120 case `echo -n x` in
42121 -n*)
42122   case `echo 'x\c'` in
42123   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
42124   *)   ECHO_C='\c';;
42125   esac;;
42126 *)
42127   ECHO_N='-n';;
42128 esac
42129
42130 if expr a : '\(a\)' >/dev/null 2>&1 &&
42131    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42132   as_expr=expr
42133 else
42134   as_expr=false
42135 fi
42136
42137 rm -f conf$$ conf$$.exe conf$$.file
42138 if test -d conf$$.dir; then
42139   rm -f conf$$.dir/conf$$.file
42140 else
42141   rm -f conf$$.dir
42142   mkdir conf$$.dir
42143 fi
42144 echo >conf$$.file
42145 if ln -s conf$$.file conf$$ 2>/dev/null; then
42146   as_ln_s='ln -s'
42147   # ... but there are two gotchas:
42148   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42149   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42150   # In both cases, we have to default to `cp -p'.
42151   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42152     as_ln_s='cp -p'
42153 elif ln conf$$.file conf$$ 2>/dev/null; then
42154   as_ln_s=ln
42155 else
42156   as_ln_s='cp -p'
42157 fi
42158 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42159 rmdir conf$$.dir 2>/dev/null
42160
42161 if mkdir -p . 2>/dev/null; then
42162   as_mkdir_p=:
42163 else
42164   test -d ./-p && rmdir ./-p
42165   as_mkdir_p=false
42166 fi
42167
42168 if test -x / >/dev/null 2>&1; then
42169   as_test_x='test -x'
42170 else
42171   if ls -dL / >/dev/null 2>&1; then
42172     as_ls_L_option=L
42173   else
42174     as_ls_L_option=
42175   fi
42176   as_test_x='
42177     eval sh -c '\''
42178       if test -d "$1"; then
42179         test -d "$1/.";
42180       else
42181         case $1 in
42182         -*)set "./$1";;
42183         esac;
42184         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
42185         ???[sx]*):;;*)false;;esac;fi
42186     '\'' sh
42187   '
42188 fi
42189 as_executable_p=$as_test_x
42190
42191 # Sed expression to map a string onto a valid CPP name.
42192 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42193
42194 # Sed expression to map a string onto a valid variable name.
42195 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42196
42197
42198 exec 6>&1
42199
42200 # Save the log message, to keep $[0] and so on meaningful, and to
42201 # report actual input values of CONFIG_FILES etc. instead of their
42202 # values after options handling.
42203 ac_log="
42204 This file was extended by $as_me, which was
42205 generated by GNU Autoconf 2.61.  Invocation command line was
42206
42207   CONFIG_FILES    = $CONFIG_FILES
42208   CONFIG_HEADERS  = $CONFIG_HEADERS
42209   CONFIG_LINKS    = $CONFIG_LINKS
42210   CONFIG_COMMANDS = $CONFIG_COMMANDS
42211   $ $0 $@
42212
42213 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42214 "
42215
42216 _ACEOF
42217
42218 cat >>$CONFIG_STATUS <<_ACEOF
42219 # Files that config.status was made for.
42220 config_files="$ac_config_files"
42221 config_headers="$ac_config_headers"
42222 config_commands="$ac_config_commands"
42223
42224 _ACEOF
42225
42226 cat >>$CONFIG_STATUS <<\_ACEOF
42227 ac_cs_usage="\
42228 \`$as_me' instantiates files from templates according to the
42229 current configuration.
42230
42231 Usage: $0 [OPTIONS] [FILE]...
42232
42233   -h, --help       print this help, then exit
42234   -V, --version    print version number and configuration settings, then exit
42235   -q, --quiet      do not print progress messages
42236   -d, --debug      don't remove temporary files
42237       --recheck    update $as_me by reconfiguring in the same conditions
42238   --file=FILE[:TEMPLATE]
42239                    instantiate the configuration file FILE
42240   --header=FILE[:TEMPLATE]
42241                    instantiate the configuration header FILE
42242
42243 Configuration files:
42244 $config_files
42245
42246 Configuration headers:
42247 $config_headers
42248
42249 Configuration commands:
42250 $config_commands
42251
42252 Report bugs to <bug-autoconf@gnu.org>."
42253
42254 _ACEOF
42255 cat >>$CONFIG_STATUS <<_ACEOF
42256 ac_cs_version="\\
42257 config.status
42258 configured by $0, generated by GNU Autoconf 2.61,
42259   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42260
42261 Copyright (C) 2006 Free Software Foundation, Inc.
42262 This config.status script is free software; the Free Software Foundation
42263 gives unlimited permission to copy, distribute and modify it."
42264
42265 ac_pwd='$ac_pwd'
42266 srcdir='$srcdir'
42267 INSTALL='$INSTALL'
42268 _ACEOF
42269
42270 cat >>$CONFIG_STATUS <<\_ACEOF
42271 # If no file are specified by the user, then we need to provide default
42272 # value.  By we need to know if files were specified by the user.
42273 ac_need_defaults=:
42274 while test $# != 0
42275 do
42276   case $1 in
42277   --*=*)
42278     ac_option=`expr "X$1" : 'X\([^=]*\)='`
42279     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42280     ac_shift=:
42281     ;;
42282   *)
42283     ac_option=$1
42284     ac_optarg=$2
42285     ac_shift=shift
42286     ;;
42287   esac
42288
42289   case $ac_option in
42290   # Handling of the options.
42291   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42292     ac_cs_recheck=: ;;
42293   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42294     echo "$ac_cs_version"; exit ;;
42295   --debug | --debu | --deb | --de | --d | -d )
42296     debug=: ;;
42297   --file | --fil | --fi | --f )
42298     $ac_shift
42299     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42300     ac_need_defaults=false;;
42301   --header | --heade | --head | --hea )
42302     $ac_shift
42303     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42304     ac_need_defaults=false;;
42305   --he | --h)
42306     # Conflict between --help and --header
42307     { echo "$as_me: error: ambiguous option: $1
42308 Try \`$0 --help' for more information." >&2
42309    { (exit 1); exit 1; }; };;
42310   --help | --hel | -h )
42311     echo "$ac_cs_usage"; exit ;;
42312   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42313   | -silent | --silent | --silen | --sile | --sil | --si | --s)
42314     ac_cs_silent=: ;;
42315
42316   # This is an error.
42317   -*) { echo "$as_me: error: unrecognized option: $1
42318 Try \`$0 --help' for more information." >&2
42319    { (exit 1); exit 1; }; } ;;
42320
42321   *) ac_config_targets="$ac_config_targets $1"
42322      ac_need_defaults=false ;;
42323
42324   esac
42325   shift
42326 done
42327
42328 ac_configure_extra_args=
42329
42330 if $ac_cs_silent; then
42331   exec 6>/dev/null
42332   ac_configure_extra_args="$ac_configure_extra_args --silent"
42333 fi
42334
42335 _ACEOF
42336 cat >>$CONFIG_STATUS <<_ACEOF
42337 if \$ac_cs_recheck; then
42338   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42339   CONFIG_SHELL=$SHELL
42340   export CONFIG_SHELL
42341   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42342 fi
42343
42344 _ACEOF
42345 cat >>$CONFIG_STATUS <<\_ACEOF
42346 exec 5>>config.log
42347 {
42348   echo
42349   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42350 ## Running $as_me. ##
42351 _ASBOX
42352   echo "$ac_log"
42353 } >&5
42354
42355 _ACEOF
42356 cat >>$CONFIG_STATUS <<_ACEOF
42357 #
42358 # INIT-COMMANDS
42359 #
42360
42361
42362 # The HP-UX ksh and POSIX shell print the target directory to stdout
42363 # if CDPATH is set.
42364 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42365
42366 sed_quote_subst='$sed_quote_subst'
42367 double_quote_subst='$double_quote_subst'
42368 delay_variable_subst='$delay_variable_subst'
42369 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
42370 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
42371 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
42372 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
42373 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
42374 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
42375 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
42376 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
42377 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
42378 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
42379 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
42380 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
42381 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
42382 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
42383 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
42384 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
42385 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
42386 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
42387 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
42388 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
42389 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
42390 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
42391 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
42392 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
42393 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
42394 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
42395 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
42396 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42397 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
42398 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
42399 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
42400 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
42401 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42402 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
42403 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
42404 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42405 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42406 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42407 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
42408 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42409 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
42410 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
42411 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
42412 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
42413 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"`'
42414 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"`'
42415 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
42416 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
42417 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
42418 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
42419 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
42420 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
42421 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
42422 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
42423 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
42424 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
42425 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
42426 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
42427 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
42428 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
42429 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
42430 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
42431 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42432 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42433 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
42434 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
42435 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42436 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42437 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
42438 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42439 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42440 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42441 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42442 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42443 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42444 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
42445 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42446 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42447 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42448 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
42449 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
42450 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
42451 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
42452 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
42453 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42454 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
42455 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
42456 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
42457 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
42458 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
42459 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42460 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42461 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42462 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42463 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
42464 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
42465 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
42466 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
42467 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
42468 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42469 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42470 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
42471 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42472 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
42473 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42474 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42475 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42476 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42477 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
42478 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
42479 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42480 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42481 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
42482 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
42483 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
42484 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
42485 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
42486 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
42487 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
42488 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42489 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42490 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
42491 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
42492 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
42493 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42494 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42495 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42496 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42497 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42498 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42499 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42500 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42501 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42502 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42503 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42504 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42505 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42506 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42507 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42508 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42509 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42510 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42511 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42512 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42513 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42514 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42515 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42516 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42517 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42518 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42519 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42520 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42521 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42522 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42523 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42524 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42525 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42526 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42527 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42528 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42529 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42530 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42531 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42532 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42533 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42534 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42535 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42536 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42537 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42538 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42539 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42540
42541 LTCC='$LTCC'
42542 LTCFLAGS='$LTCFLAGS'
42543 compiler='$compiler_DEFAULT'
42544
42545 # Quote evaled strings.
42546 for var in SED \
42547 GREP \
42548 EGREP \
42549 FGREP \
42550 LD \
42551 NM \
42552 LN_S \
42553 lt_SP2NL \
42554 lt_NL2SP \
42555 reload_flag \
42556 OBJDUMP \
42557 deplibs_check_method \
42558 file_magic_cmd \
42559 AR \
42560 AR_FLAGS \
42561 STRIP \
42562 RANLIB \
42563 CC \
42564 CFLAGS \
42565 compiler \
42566 lt_cv_sys_global_symbol_pipe \
42567 lt_cv_sys_global_symbol_to_cdecl \
42568 lt_cv_sys_global_symbol_to_c_name_address \
42569 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42570 SHELL \
42571 ECHO \
42572 lt_prog_compiler_no_builtin_flag \
42573 lt_prog_compiler_wl \
42574 lt_prog_compiler_pic \
42575 lt_prog_compiler_static \
42576 lt_cv_prog_compiler_c_o \
42577 need_locks \
42578 DSYMUTIL \
42579 NMEDIT \
42580 LIPO \
42581 OTOOL \
42582 OTOOL64 \
42583 shrext_cmds \
42584 export_dynamic_flag_spec \
42585 whole_archive_flag_spec \
42586 compiler_needs_object \
42587 with_gnu_ld \
42588 allow_undefined_flag \
42589 no_undefined_flag \
42590 hardcode_libdir_flag_spec \
42591 hardcode_libdir_flag_spec_ld \
42592 hardcode_libdir_separator \
42593 fix_srcfile_path \
42594 exclude_expsyms \
42595 include_expsyms \
42596 file_list_spec \
42597 variables_saved_for_relink \
42598 libname_spec \
42599 library_names_spec \
42600 soname_spec \
42601 finish_eval \
42602 old_striplib \
42603 striplib \
42604 compiler_lib_search_dirs \
42605 predep_objects \
42606 postdep_objects \
42607 predeps \
42608 postdeps \
42609 compiler_lib_search_path \
42610 LD_CXX \
42611 compiler_CXX \
42612 lt_prog_compiler_no_builtin_flag_CXX \
42613 lt_prog_compiler_wl_CXX \
42614 lt_prog_compiler_pic_CXX \
42615 lt_prog_compiler_static_CXX \
42616 lt_cv_prog_compiler_c_o_CXX \
42617 export_dynamic_flag_spec_CXX \
42618 whole_archive_flag_spec_CXX \
42619 compiler_needs_object_CXX \
42620 with_gnu_ld_CXX \
42621 allow_undefined_flag_CXX \
42622 no_undefined_flag_CXX \
42623 hardcode_libdir_flag_spec_CXX \
42624 hardcode_libdir_flag_spec_ld_CXX \
42625 hardcode_libdir_separator_CXX \
42626 fix_srcfile_path_CXX \
42627 exclude_expsyms_CXX \
42628 include_expsyms_CXX \
42629 file_list_spec_CXX \
42630 compiler_lib_search_dirs_CXX \
42631 predep_objects_CXX \
42632 postdep_objects_CXX \
42633 predeps_CXX \
42634 postdeps_CXX \
42635 compiler_lib_search_path_CXX; do
42636     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42637     *[\\\\\\\`\\"\\\$]*)
42638       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42639       ;;
42640     *)
42641       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42642       ;;
42643     esac
42644 done
42645
42646 # Double-quote double-evaled strings.
42647 for var in reload_cmds \
42648 old_postinstall_cmds \
42649 old_postuninstall_cmds \
42650 old_archive_cmds \
42651 extract_expsyms_cmds \
42652 old_archive_from_new_cmds \
42653 old_archive_from_expsyms_cmds \
42654 archive_cmds \
42655 archive_expsym_cmds \
42656 module_cmds \
42657 module_expsym_cmds \
42658 export_symbols_cmds \
42659 prelink_cmds \
42660 postinstall_cmds \
42661 postuninstall_cmds \
42662 finish_cmds \
42663 sys_lib_search_path_spec \
42664 sys_lib_dlsearch_path_spec \
42665 old_archive_cmds_CXX \
42666 old_archive_from_new_cmds_CXX \
42667 old_archive_from_expsyms_cmds_CXX \
42668 archive_cmds_CXX \
42669 archive_expsym_cmds_CXX \
42670 module_cmds_CXX \
42671 module_expsym_cmds_CXX \
42672 export_symbols_cmds_CXX \
42673 prelink_cmds_CXX; do
42674     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42675     *[\\\\\\\`\\"\\\$]*)
42676       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42677       ;;
42678     *)
42679       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42680       ;;
42681     esac
42682 done
42683
42684 # Fix-up fallback echo if it was mangled by the above quoting rules.
42685 case \$lt_ECHO in
42686 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42687   ;;
42688 esac
42689
42690 ac_aux_dir='$ac_aux_dir'
42691 xsi_shell='$xsi_shell'
42692 lt_shell_append='$lt_shell_append'
42693
42694 # See if we are running on zsh, and set the options which allow our
42695 # commands through without removal of \ escapes INIT.
42696 if test -n "\${ZSH_VERSION+set}" ; then
42697    setopt NO_GLOB_SUBST
42698 fi
42699
42700
42701     PACKAGE='$PACKAGE'
42702     VERSION='$VERSION'
42703     TIMESTAMP='$TIMESTAMP'
42704     RM='$RM'
42705     ofile='$ofile'
42706
42707
42708
42709
42710
42711 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42712     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42713     # from automake.
42714     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42715     # Capture the value of LINGUAS because we need it to compute CATALOGS.
42716     LINGUAS="${LINGUAS-%UNSET%}"
42717
42718
42719 _ACEOF
42720
42721 cat >>$CONFIG_STATUS <<\_ACEOF
42722
42723 # Handling of arguments.
42724 for ac_config_target in $ac_config_targets
42725 do
42726   case $ac_config_target in
42727     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42728     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42729     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42730     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42731     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42732     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42733     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42734     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42735     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42736     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42737     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42738     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42739     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42740     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42741     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42742     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42743     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42744     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42745     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42746     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42747     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42748     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42749     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42750     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42751     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42752     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42753     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42754     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42755     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42756     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42757     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42758     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42759     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42760     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42761     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42762     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42763     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42764     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42765     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42766     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42767     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42768     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42769     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42770     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42771     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42772     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42773     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42774     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42775     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42776     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42777     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42778     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42779     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42780     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42781     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42782     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42783     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42784     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42785     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42786     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42787     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42788     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42789     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42790     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42791     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42792     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42793     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42794     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42795     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42796     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42797     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42798     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42799     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42800     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42801     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42802     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42803     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42804     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42805     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42806     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42807     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42808     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42809     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42810     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42811     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42812     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42813     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42814     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42815     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42816     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42817     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42818     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42819     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42820     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42821     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42822     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42823     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42824     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42825     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42826     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42827     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42828     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42829     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42830     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42831     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42832     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42833     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
42834     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
42835     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42836     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42837     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42838     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42839     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42840     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42841     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42842
42843   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42844 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42845    { (exit 1); exit 1; }; };;
42846   esac
42847 done
42848
42849
42850 # If the user did not use the arguments to specify the items to instantiate,
42851 # then the envvar interface is used.  Set only those that are not.
42852 # We use the long form for the default assignment because of an extremely
42853 # bizarre bug on SunOS 4.1.3.
42854 if $ac_need_defaults; then
42855   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42856   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42857   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42858 fi
42859
42860 # Have a temporary directory for convenience.  Make it in the build tree
42861 # simply because there is no reason against having it here, and in addition,
42862 # creating and moving files from /tmp can sometimes cause problems.
42863 # Hook for its removal unless debugging.
42864 # Note that there is a small window in which the directory will not be cleaned:
42865 # after its creation but before its name has been assigned to `$tmp'.
42866 $debug ||
42867 {
42868   tmp=
42869   trap 'exit_status=$?
42870   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42871 ' 0
42872   trap '{ (exit 1); exit 1; }' 1 2 13 15
42873 }
42874 # Create a (secure) tmp directory for tmp files.
42875
42876 {
42877   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42878   test -n "$tmp" && test -d "$tmp"
42879 }  ||
42880 {
42881   tmp=./conf$$-$RANDOM
42882   (umask 077 && mkdir "$tmp")
42883 } ||
42884 {
42885    echo "$me: cannot create a temporary directory in ." >&2
42886    { (exit 1); exit 1; }
42887 }
42888
42889 #
42890 # Set up the sed scripts for CONFIG_FILES section.
42891 #
42892
42893 # No need to generate the scripts if there are no CONFIG_FILES.
42894 # This happens for instance when ./config.status config.h
42895 if test -n "$CONFIG_FILES"; then
42896
42897 _ACEOF
42898
42899 # Create sed commands to just substitute file output variables.
42900
42901 # Remaining file output variables are in a fragment that also has non-file
42902 # output varibles.
42903
42904
42905
42906 ac_delim='%!_!# '
42907 for ac_last_try in false false false false false :; do
42908   cat >conf$$subs.sed <<_ACEOF
42909 SHELL!$SHELL$ac_delim
42910 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42911 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42912 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42913 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42914 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42915 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42916 exec_prefix!$exec_prefix$ac_delim
42917 prefix!$prefix$ac_delim
42918 program_transform_name!$program_transform_name$ac_delim
42919 bindir!$bindir$ac_delim
42920 sbindir!$sbindir$ac_delim
42921 libexecdir!$libexecdir$ac_delim
42922 datarootdir!$datarootdir$ac_delim
42923 datadir!$datadir$ac_delim
42924 sysconfdir!$sysconfdir$ac_delim
42925 sharedstatedir!$sharedstatedir$ac_delim
42926 localstatedir!$localstatedir$ac_delim
42927 includedir!$includedir$ac_delim
42928 oldincludedir!$oldincludedir$ac_delim
42929 docdir!$docdir$ac_delim
42930 infodir!$infodir$ac_delim
42931 htmldir!$htmldir$ac_delim
42932 dvidir!$dvidir$ac_delim
42933 pdfdir!$pdfdir$ac_delim
42934 psdir!$psdir$ac_delim
42935 libdir!$libdir$ac_delim
42936 localedir!$localedir$ac_delim
42937 mandir!$mandir$ac_delim
42938 DEFS!$DEFS$ac_delim
42939 ECHO_C!$ECHO_C$ac_delim
42940 ECHO_N!$ECHO_N$ac_delim
42941 ECHO_T!$ECHO_T$ac_delim
42942 LIBS!$LIBS$ac_delim
42943 build_alias!$build_alias$ac_delim
42944 host_alias!$host_alias$ac_delim
42945 target_alias!$target_alias$ac_delim
42946 BUILD_DIR!$BUILD_DIR$ac_delim
42947 TOP_DIR!$TOP_DIR$ac_delim
42948 TRUEPRG!$TRUEPRG$ac_delim
42949 FALSEPRG!$FALSEPRG$ac_delim
42950 VERSION!$VERSION$ac_delim
42951 DATE!$DATE$ac_delim
42952 LSMDATE!$LSMDATE$ac_delim
42953 BACULA!$BACULA$ac_delim
42954 post_host!$post_host$ac_delim
42955 CC!$CC$ac_delim
42956 CFLAGS!$CFLAGS$ac_delim
42957 LDFLAGS!$LDFLAGS$ac_delim
42958 CPPFLAGS!$CPPFLAGS$ac_delim
42959 ac_ct_CC!$ac_ct_CC$ac_delim
42960 EXEEXT!$EXEEXT$ac_delim
42961 OBJEXT!$OBJEXT$ac_delim
42962 CXX!$CXX$ac_delim
42963 CXXFLAGS!$CXXFLAGS$ac_delim
42964 ac_ct_CXX!$ac_ct_CXX$ac_delim
42965 CPP!$CPP$ac_delim
42966 GREP!$GREP$ac_delim
42967 EGREP!$EGREP$ac_delim
42968 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42969 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42970 INSTALL_DATA!$INSTALL_DATA$ac_delim
42971 MV!$MV$ac_delim
42972 REMOVE!$REMOVE$ac_delim
42973 CP!$CP$ac_delim
42974 SED!$SED$ac_delim
42975 ECHO!$ECHO$ac_delim
42976 CMP!$CMP$ac_delim
42977 TBL!$TBL$ac_delim
42978 AR!$AR$ac_delim
42979 OPENSSL!$OPENSSL$ac_delim
42980 MTX!$MTX$ac_delim
42981 DD!$DD$ac_delim
42982 MKISOFS!$MKISOFS$ac_delim
42983 PYTHON!$PYTHON$ac_delim
42984 GROWISOFS!$GROWISOFS$ac_delim
42985 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42986 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42987 PKGCONFIG!$PKGCONFIG$ac_delim
42988 QMAKE!$QMAKE$ac_delim
42989 QMAKEQT4!$QMAKEQT4$ac_delim
42990 WXCONFIG!$WXCONFIG$ac_delim
42991 WXFLAGS!$WXFLAGS$ac_delim
42992 CDRECORD!$CDRECORD$ac_delim
42993 PIDOF!$PIDOF$ac_delim
42994 AWK!$AWK$ac_delim
42995 ARFLAGS!$ARFLAGS$ac_delim
42996 MAKE_SHELL!$MAKE_SHELL$ac_delim
42997 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42998 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42999 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
43000 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
43001 LIBTOOL!$LIBTOOL$ac_delim
43002 build!$build$ac_delim
43003 _ACEOF
43004
43005   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
43006     break
43007   elif $ac_last_try; then
43008     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43009 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43010    { (exit 1); exit 1; }; }
43011   else
43012     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43013   fi
43014 done
43015
43016 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43017 if test -n "$ac_eof"; then
43018   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43019   ac_eof=`expr $ac_eof + 1`
43020 fi
43021
43022 cat >>$CONFIG_STATUS <<_ACEOF
43023 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43025 /^[      ]*@MCOMMON@[    ]*$/{
43026 r $MCOMMON
43027 d
43028 }
43029 _ACEOF
43030 sed '
43031 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43032 s/^/s,@/; s/!/@,|#_!!_#|/
43033 :n
43034 t n
43035 s/'"$ac_delim"'$/,g/; t
43036 s/$/\\/; p
43037 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43038 ' >>$CONFIG_STATUS <conf$$subs.sed
43039 rm -f conf$$subs.sed
43040 cat >>$CONFIG_STATUS <<_ACEOF
43041 CEOF$ac_eof
43042 _ACEOF
43043
43044
43045 ac_delim='%!_!# '
43046 for ac_last_try in false false false false false :; do
43047   cat >conf$$subs.sed <<_ACEOF
43048 build_cpu!$build_cpu$ac_delim
43049 build_vendor!$build_vendor$ac_delim
43050 build_os!$build_os$ac_delim
43051 host!$host$ac_delim
43052 host_cpu!$host_cpu$ac_delim
43053 host_vendor!$host_vendor$ac_delim
43054 host_os!$host_os$ac_delim
43055 FGREP!$FGREP$ac_delim
43056 LD!$LD$ac_delim
43057 DUMPBIN!$DUMPBIN$ac_delim
43058 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
43059 NM!$NM$ac_delim
43060 LN_S!$LN_S$ac_delim
43061 OBJDUMP!$OBJDUMP$ac_delim
43062 STRIP!$STRIP$ac_delim
43063 RANLIB!$RANLIB$ac_delim
43064 lt_ECHO!$lt_ECHO$ac_delim
43065 DSYMUTIL!$DSYMUTIL$ac_delim
43066 NMEDIT!$NMEDIT$ac_delim
43067 LIPO!$LIPO$ac_delim
43068 OTOOL!$OTOOL$ac_delim
43069 OTOOL64!$OTOOL64$ac_delim
43070 CXXCPP!$CXXCPP$ac_delim
43071 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
43072 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
43073 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
43074 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
43075 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
43076 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
43077 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
43078 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
43079 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
43080 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
43081 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
43082 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
43083 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
43084 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
43085 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
43086 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
43087 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
43088 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
43089 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
43090 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
43091 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
43092 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
43093 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
43094 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
43095 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
43096 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
43097 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
43098 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
43099 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
43100 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
43101 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
43102 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
43103 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
43104 SET_MAKE!$SET_MAKE$ac_delim
43105 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
43106 USE_NLS!$USE_NLS$ac_delim
43107 MSGFMT!$MSGFMT$ac_delim
43108 GMSGFMT!$GMSGFMT$ac_delim
43109 XGETTEXT!$XGETTEXT$ac_delim
43110 MSGMERGE!$MSGMERGE$ac_delim
43111 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
43112 LIBICONV!$LIBICONV$ac_delim
43113 LTLIBICONV!$LTLIBICONV$ac_delim
43114 INTLLIBS!$INTLLIBS$ac_delim
43115 LIBINTL!$LIBINTL$ac_delim
43116 LTLIBINTL!$LTLIBINTL$ac_delim
43117 POSUB!$POSUB$ac_delim
43118 GLIBC2!$GLIBC2$ac_delim
43119 ALLOCA!$ALLOCA$ac_delim
43120 GLIBC21!$GLIBC21$ac_delim
43121 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
43122 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
43123 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
43124 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
43125 INTLBISON!$INTLBISON$ac_delim
43126 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
43127 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
43128 CATOBJEXT!$CATOBJEXT$ac_delim
43129 DATADIRNAME!$DATADIRNAME$ac_delim
43130 INSTOBJEXT!$INSTOBJEXT$ac_delim
43131 GENCAT!$GENCAT$ac_delim
43132 INTLOBJS!$INTLOBJS$ac_delim
43133 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
43134 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
43135 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
43136 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
43137 GNOME_LIBS!$GNOME_LIBS$ac_delim
43138 GNOME_DIR!$GNOME_DIR$ac_delim
43139 BAT_DIR!$BAT_DIR$ac_delim
43140 QWT_INC!$QWT_INC$ac_delim
43141 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
43142 QWT_LIB!$QWT_LIB$ac_delim
43143 QWT!$QWT$ac_delim
43144 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
43145 _ACEOF
43146
43147   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43148     break
43149   elif $ac_last_try; then
43150     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43151 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43152    { (exit 1); exit 1; }; }
43153   else
43154     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43155   fi
43156 done
43157
43158 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43159 if test -n "$ac_eof"; then
43160   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43161   ac_eof=`expr $ac_eof + 1`
43162 fi
43163
43164 cat >>$CONFIG_STATUS <<_ACEOF
43165 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43167 _ACEOF
43168 sed '
43169 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43170 s/^/s,@/; s/!/@,|#_!!_#|/
43171 :n
43172 t n
43173 s/'"$ac_delim"'$/,g/; t
43174 s/$/\\/; p
43175 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43176 ' >>$CONFIG_STATUS <conf$$subs.sed
43177 rm -f conf$$subs.sed
43178 cat >>$CONFIG_STATUS <<_ACEOF
43179 CEOF$ac_eof
43180 _ACEOF
43181
43182
43183 ac_delim='%!_!# '
43184 for ac_last_try in false false false false false :; do
43185   cat >conf$$subs.sed <<_ACEOF
43186 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
43187 WX_DIR!$WX_DIR$ac_delim
43188 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
43189 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
43190 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
43191 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
43192 STATIC_FD!$STATIC_FD$ac_delim
43193 STATIC_SD!$STATIC_SD$ac_delim
43194 STATIC_DIR!$STATIC_DIR$ac_delim
43195 STATIC_CONS!$STATIC_CONS$ac_delim
43196 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
43197 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
43198 ALL_DIRS!$ALL_DIRS$ac_delim
43199 DIRD_DIR!$DIRD_DIR$ac_delim
43200 DIR_TOOLS!$DIR_TOOLS$ac_delim
43201 STORED_DIR!$STORED_DIR$ac_delim
43202 CONS_INC!$CONS_INC$ac_delim
43203 CONS_OBJ!$CONS_OBJ$ac_delim
43204 CONS_SRC!$CONS_SRC$ac_delim
43205 CONS_LIBS!$CONS_LIBS$ac_delim
43206 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
43207 READLINE_SRC!$READLINE_SRC$ac_delim
43208 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
43209 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
43210 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
43211 OPENSSL_INC!$OPENSSL_INC$ac_delim
43212 working_dir!$working_dir$ac_delim
43213 archivedir!$archivedir$ac_delim
43214 scriptdir!$scriptdir$ac_delim
43215 plugindir!$plugindir$ac_delim
43216 dump_email!$dump_email$ac_delim
43217 job_email!$job_email$ac_delim
43218 smtp_host!$smtp_host$ac_delim
43219 piddir!$piddir$ac_delim
43220 subsysdir!$subsysdir$ac_delim
43221 baseport!$baseport$ac_delim
43222 dir_port!$dir_port$ac_delim
43223 fd_port!$fd_port$ac_delim
43224 sd_port!$sd_port$ac_delim
43225 dir_password!$dir_password$ac_delim
43226 fd_password!$fd_password$ac_delim
43227 sd_password!$sd_password$ac_delim
43228 mon_dir_password!$mon_dir_password$ac_delim
43229 mon_fd_password!$mon_fd_password$ac_delim
43230 mon_sd_password!$mon_sd_password$ac_delim
43231 db_name!$db_name$ac_delim
43232 db_user!$db_user$ac_delim
43233 db_password!$db_password$ac_delim
43234 db_port!$db_port$ac_delim
43235 dir_user!$dir_user$ac_delim
43236 dir_group!$dir_group$ac_delim
43237 sd_user!$sd_user$ac_delim
43238 sd_group!$sd_group$ac_delim
43239 fd_user!$fd_user$ac_delim
43240 fd_group!$fd_group$ac_delim
43241 SBINPERM!$SBINPERM$ac_delim
43242 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
43243 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
43244 SQL_BINDIR!$SQL_BINDIR$ac_delim
43245 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
43246 uncomment_dbi!$uncomment_dbi$ac_delim
43247 DB_PROG!$DB_PROG$ac_delim
43248 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
43249 cats!$cats$ac_delim
43250 DB_TYPE!$DB_TYPE$ac_delim
43251 GETCONF!$GETCONF$ac_delim
43252 XMKMF!$XMKMF$ac_delim
43253 X_CFLAGS!$X_CFLAGS$ac_delim
43254 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
43255 X_LIBS!$X_LIBS$ac_delim
43256 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
43257 LIBOBJS!$LIBOBJS$ac_delim
43258 FDLIBS!$FDLIBS$ac_delim
43259 DEBUG!$DEBUG$ac_delim
43260 DINCLUDE!$DINCLUDE$ac_delim
43261 DLIB!$DLIB$ac_delim
43262 DB_LIBS!$DB_LIBS$ac_delim
43263 WCFLAGS!$WCFLAGS$ac_delim
43264 WLDFLAGS!$WLDFLAGS$ac_delim
43265 WRAPLIBS!$WRAPLIBS$ac_delim
43266 OBJLIST!$OBJLIST$ac_delim
43267 hostname!$hostname$ac_delim
43268 TAPEDRIVE!$TAPEDRIVE$ac_delim
43269 PSCMD!$PSCMD$ac_delim
43270 WIN32!$WIN32$ac_delim
43271 MACOSX!$MACOSX$ac_delim
43272 DISTNAME!$DISTNAME$ac_delim
43273 DISTVER!$DISTVER$ac_delim
43274 LTLIBOBJS!$LTLIBOBJS$ac_delim
43275 _ACEOF
43276
43277   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
43278     break
43279   elif $ac_last_try; then
43280     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43281 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43282    { (exit 1); exit 1; }; }
43283   else
43284     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43285   fi
43286 done
43287
43288 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43289 if test -n "$ac_eof"; then
43290   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43291   ac_eof=`expr $ac_eof + 1`
43292 fi
43293
43294 cat >>$CONFIG_STATUS <<_ACEOF
43295 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
43296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43297 _ACEOF
43298 sed '
43299 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43300 s/^/s,@/; s/!/@,|#_!!_#|/
43301 :n
43302 t n
43303 s/'"$ac_delim"'$/,g/; t
43304 s/$/\\/; p
43305 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43306 ' >>$CONFIG_STATUS <conf$$subs.sed
43307 rm -f conf$$subs.sed
43308 cat >>$CONFIG_STATUS <<_ACEOF
43309 :end
43310 s/|#_!!_#|//g
43311 CEOF$ac_eof
43312 _ACEOF
43313
43314
43315 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43316 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43317 # trailing colons and then remove the whole line if VPATH becomes empty
43318 # (actually we leave an empty line to preserve line numbers).
43319 if test "x$srcdir" = x.; then
43320   ac_vpsub='/^[  ]*VPATH[        ]*=/{
43321 s/:*\$(srcdir):*/:/
43322 s/:*\${srcdir}:*/:/
43323 s/:*@srcdir@:*/:/
43324 s/^\([^=]*=[     ]*\):*/\1/
43325 s/:*$//
43326 s/^[^=]*=[       ]*$//
43327 }'
43328 fi
43329
43330 cat >>$CONFIG_STATUS <<\_ACEOF
43331 fi # test -n "$CONFIG_FILES"
43332
43333
43334 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
43335 do
43336   case $ac_tag in
43337   :[FHLC]) ac_mode=$ac_tag; continue;;
43338   esac
43339   case $ac_mode$ac_tag in
43340   :[FHL]*:*);;
43341   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43342 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43343    { (exit 1); exit 1; }; };;
43344   :[FH]-) ac_tag=-:-;;
43345   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43346   esac
43347   ac_save_IFS=$IFS
43348   IFS=:
43349   set x $ac_tag
43350   IFS=$ac_save_IFS
43351   shift
43352   ac_file=$1
43353   shift
43354
43355   case $ac_mode in
43356   :L) ac_source=$1;;
43357   :[FH])
43358     ac_file_inputs=
43359     for ac_f
43360     do
43361       case $ac_f in
43362       -) ac_f="$tmp/stdin";;
43363       *) # Look for the file first in the build tree, then in the source tree
43364          # (if the path is not absolute).  The absolute path cannot be DOS-style,
43365          # because $ac_f cannot contain `:'.
43366          test -f "$ac_f" ||
43367            case $ac_f in
43368            [\\/$]*) false;;
43369            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43370            esac ||
43371            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43372 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43373    { (exit 1); exit 1; }; };;
43374       esac
43375       ac_file_inputs="$ac_file_inputs $ac_f"
43376     done
43377
43378     # Let's still pretend it is `configure' which instantiates (i.e., don't
43379     # use $as_me), people would be surprised to read:
43380     #    /* config.h.  Generated by config.status.  */
43381     configure_input="Generated from "`IFS=:
43382           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
43383     if test x"$ac_file" != x-; then
43384       configure_input="$ac_file.  $configure_input"
43385       { echo "$as_me:$LINENO: creating $ac_file" >&5
43386 echo "$as_me: creating $ac_file" >&6;}
43387     fi
43388
43389     case $ac_tag in
43390     *:-:* | *:-) cat >"$tmp/stdin";;
43391     esac
43392     ;;
43393   esac
43394
43395   ac_dir=`$as_dirname -- "$ac_file" ||
43396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43397          X"$ac_file" : 'X\(//\)[^/]' \| \
43398          X"$ac_file" : 'X\(//\)$' \| \
43399          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43400 echo X"$ac_file" |
43401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43402             s//\1/
43403             q
43404           }
43405           /^X\(\/\/\)[^/].*/{
43406             s//\1/
43407             q
43408           }
43409           /^X\(\/\/\)$/{
43410             s//\1/
43411             q
43412           }
43413           /^X\(\/\).*/{
43414             s//\1/
43415             q
43416           }
43417           s/.*/./; q'`
43418   { as_dir="$ac_dir"
43419   case $as_dir in #(
43420   -*) as_dir=./$as_dir;;
43421   esac
43422   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43423     as_dirs=
43424     while :; do
43425       case $as_dir in #(
43426       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
43427       *) as_qdir=$as_dir;;
43428       esac
43429       as_dirs="'$as_qdir' $as_dirs"
43430       as_dir=`$as_dirname -- "$as_dir" ||
43431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43432          X"$as_dir" : 'X\(//\)[^/]' \| \
43433          X"$as_dir" : 'X\(//\)$' \| \
43434          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43435 echo X"$as_dir" |
43436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43437             s//\1/
43438             q
43439           }
43440           /^X\(\/\/\)[^/].*/{
43441             s//\1/
43442             q
43443           }
43444           /^X\(\/\/\)$/{
43445             s//\1/
43446             q
43447           }
43448           /^X\(\/\).*/{
43449             s//\1/
43450             q
43451           }
43452           s/.*/./; q'`
43453       test -d "$as_dir" && break
43454     done
43455     test -z "$as_dirs" || eval "mkdir $as_dirs"
43456   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43457 echo "$as_me: error: cannot create directory $as_dir" >&2;}
43458    { (exit 1); exit 1; }; }; }
43459   ac_builddir=.
43460
43461 case "$ac_dir" in
43462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43463 *)
43464   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43465   # A ".." for each directory in $ac_dir_suffix.
43466   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
43467   case $ac_top_builddir_sub in
43468   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43469   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43470   esac ;;
43471 esac
43472 ac_abs_top_builddir=$ac_pwd
43473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43474 # for backward compatibility:
43475 ac_top_builddir=$ac_top_build_prefix
43476
43477 case $srcdir in
43478   .)  # We are building in place.
43479     ac_srcdir=.
43480     ac_top_srcdir=$ac_top_builddir_sub
43481     ac_abs_top_srcdir=$ac_pwd ;;
43482   [\\/]* | ?:[\\/]* )  # Absolute name.
43483     ac_srcdir=$srcdir$ac_dir_suffix;
43484     ac_top_srcdir=$srcdir
43485     ac_abs_top_srcdir=$srcdir ;;
43486   *) # Relative name.
43487     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43488     ac_top_srcdir=$ac_top_build_prefix$srcdir
43489     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43490 esac
43491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43492
43493
43494   case $ac_mode in
43495   :F)
43496   #
43497   # CONFIG_FILE
43498   #
43499
43500   case $INSTALL in
43501   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43502   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43503   esac
43504 _ACEOF
43505
43506 cat >>$CONFIG_STATUS <<\_ACEOF
43507 # If the template does not know about datarootdir, expand it.
43508 # FIXME: This hack should be removed a few years after 2.60.
43509 ac_datarootdir_hack=; ac_datarootdir_seen=
43510
43511 case `sed -n '/datarootdir/ {
43512   p
43513   q
43514 }
43515 /@datadir@/p
43516 /@docdir@/p
43517 /@infodir@/p
43518 /@localedir@/p
43519 /@mandir@/p
43520 ' $ac_file_inputs` in
43521 *datarootdir*) ac_datarootdir_seen=yes;;
43522 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43523   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43524 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43525 _ACEOF
43526 cat >>$CONFIG_STATUS <<_ACEOF
43527   ac_datarootdir_hack='
43528   s&@datadir@&$datadir&g
43529   s&@docdir@&$docdir&g
43530   s&@infodir@&$infodir&g
43531   s&@localedir@&$localedir&g
43532   s&@mandir@&$mandir&g
43533     s&\\\${datarootdir}&$datarootdir&g' ;;
43534 esac
43535 _ACEOF
43536
43537 # Neutralize VPATH when `$srcdir' = `.'.
43538 # Shell code in configure.ac might set extrasub.
43539 # FIXME: do we really want to maintain this feature?
43540 cat >>$CONFIG_STATUS <<_ACEOF
43541   sed "$ac_vpsub
43542 $extrasub
43543 _ACEOF
43544 cat >>$CONFIG_STATUS <<\_ACEOF
43545 :t
43546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43547 s&@configure_input@&$configure_input&;t t
43548 s&@top_builddir@&$ac_top_builddir_sub&;t t
43549 s&@srcdir@&$ac_srcdir&;t t
43550 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43551 s&@top_srcdir@&$ac_top_srcdir&;t t
43552 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43553 s&@builddir@&$ac_builddir&;t t
43554 s&@abs_builddir@&$ac_abs_builddir&;t t
43555 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43556 s&@INSTALL@&$ac_INSTALL&;t t
43557 $ac_datarootdir_hack
43558 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
43559
43560 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43561   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43562   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43563   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43564 which seems to be undefined.  Please make sure it is defined." >&5
43565 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43566 which seems to be undefined.  Please make sure it is defined." >&2;}
43567
43568   rm -f "$tmp/stdin"
43569   case $ac_file in
43570   -) cat "$tmp/out"; rm -f "$tmp/out";;
43571   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43572   esac
43573  ;;
43574   :H)
43575   #
43576   # CONFIG_HEADER
43577   #
43578 _ACEOF
43579
43580 # Transform confdefs.h into a sed script `conftest.defines', that
43581 # substitutes the proper values into config.h.in to produce config.h.
43582 rm -f conftest.defines conftest.tail
43583 # First, append a space to every undef/define line, to ease matching.
43584 echo 's/$/ /' >conftest.defines
43585 # Then, protect against being on the right side of a sed subst, or in
43586 # an unquoted here document, in config.status.  If some macros were
43587 # called several times there might be several #defines for the same
43588 # symbol, which is useless.  But do not sort them, since the last
43589 # AC_DEFINE must be honored.
43590 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43591 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43592 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43593 # PARAMS is the parameter list in the macro definition--in most cases, it's
43594 # just an empty string.
43595 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
43596 ac_dB='\\)[      (].*,\\1define\\2'
43597 ac_dC=' '
43598 ac_dD=' ,'
43599
43600 uniq confdefs.h |
43601   sed -n '
43602         t rset
43603         :rset
43604         s/^[     ]*#[    ]*define[       ][      ]*//
43605         t ok
43606         d
43607         :ok
43608         s/[\\&,]/\\&/g
43609         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43610         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43611   ' >>conftest.defines
43612
43613 # Remove the space that was appended to ease matching.
43614 # Then replace #undef with comments.  This is necessary, for
43615 # example, in the case of _POSIX_SOURCE, which is predefined and required
43616 # on some systems where configure will not decide to define it.
43617 # (The regexp can be short, since the line contains either #define or #undef.)
43618 echo 's/ $//
43619 s,^[     #]*u.*,/* & */,' >>conftest.defines
43620
43621 # Break up conftest.defines:
43622 ac_max_sed_lines=50
43623
43624 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43625 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43626 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43627 # et cetera.
43628 ac_in='$ac_file_inputs'
43629 ac_out='"$tmp/out1"'
43630 ac_nxt='"$tmp/out2"'
43631
43632 while :
43633 do
43634   # Write a here document:
43635     cat >>$CONFIG_STATUS <<_ACEOF
43636     # First, check the format of the line:
43637     cat >"\$tmp/defines.sed" <<\\CEOF
43638 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
43639 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
43640 b
43641 :def
43642 _ACEOF
43643   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43644   echo 'CEOF
43645     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43646   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43647   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43648   grep . conftest.tail >/dev/null || break
43649   rm -f conftest.defines
43650   mv conftest.tail conftest.defines
43651 done
43652 rm -f conftest.defines conftest.tail
43653
43654 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43655 cat >>$CONFIG_STATUS <<\_ACEOF
43656   if test x"$ac_file" != x-; then
43657     echo "/* $configure_input  */" >"$tmp/config.h"
43658     cat "$ac_result" >>"$tmp/config.h"
43659     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43660       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43661 echo "$as_me: $ac_file is unchanged" >&6;}
43662     else
43663       rm -f $ac_file
43664       mv "$tmp/config.h" $ac_file
43665     fi
43666   else
43667     echo "/* $configure_input  */"
43668     cat "$ac_result"
43669   fi
43670   rm -f "$tmp/out12"
43671  ;;
43672
43673   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43674 echo "$as_me: executing $ac_file commands" >&6;}
43675  ;;
43676   esac
43677
43678
43679   case $ac_file$ac_mode in
43680     "libtool":C)
43681
43682     # See if we are running on zsh, and set the options which allow our
43683     # commands through without removal of \ escapes.
43684     if test -n "${ZSH_VERSION+set}" ; then
43685       setopt NO_GLOB_SUBST
43686     fi
43687
43688     cfgfile="${ofile}T"
43689     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43690     $RM "$cfgfile"
43691
43692     cat <<_LT_EOF >> "$cfgfile"
43693 #! $SHELL
43694
43695 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43696 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43698 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43699 #
43700 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43701 #                 2006, 2007, 2008 Free Software Foundation, Inc.
43702 #   Written by Gordon Matzigkeit, 1996
43703 #
43704 #   This file is part of GNU Libtool.
43705 #
43706 # GNU Libtool is free software; you can redistribute it and/or
43707 # modify it under the terms of the GNU General Public License as
43708 # published by the Free Software Foundation; either version 2 of
43709 # the License, or (at your option) any later version.
43710 #
43711 # As a special exception to the GNU General Public License,
43712 # if you distribute this file as part of a program or library that
43713 # is built using GNU Libtool, you may include this file under the
43714 # same distribution terms that you use for the rest of that program.
43715 #
43716 # GNU Libtool is distributed in the hope that it will be useful,
43717 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43718 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43719 # GNU General Public License for more details.
43720 #
43721 # You should have received a copy of the GNU General Public License
43722 # along with GNU Libtool; see the file COPYING.  If not, a copy
43723 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43724 # obtained by writing to the Free Software Foundation, Inc.,
43725 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43726
43727
43728 # The names of the tagged configurations supported by this script.
43729 available_tags="CXX "
43730
43731 # ### BEGIN LIBTOOL CONFIG
43732
43733 # Which release of libtool.m4 was used?
43734 macro_version=$macro_version
43735 macro_revision=$macro_revision
43736
43737 # Whether or not to build shared libraries.
43738 build_libtool_libs=$enable_shared
43739
43740 # Whether or not to build static libraries.
43741 build_old_libs=$enable_static
43742
43743 # What type of objects to build.
43744 pic_mode=$pic_mode
43745
43746 # Whether or not to optimize for fast installation.
43747 fast_install=$enable_fast_install
43748
43749 # The host system.
43750 host_alias=$host_alias
43751 host=$host
43752 host_os=$host_os
43753
43754 # The build system.
43755 build_alias=$build_alias
43756 build=$build
43757 build_os=$build_os
43758
43759 # A sed program that does not truncate output.
43760 SED=$lt_SED
43761
43762 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43763 Xsed="\$SED -e 1s/^X//"
43764
43765 # A grep program that handles long lines.
43766 GREP=$lt_GREP
43767
43768 # An ERE matcher.
43769 EGREP=$lt_EGREP
43770
43771 # A literal string matcher.
43772 FGREP=$lt_FGREP
43773
43774 # A BSD- or MS-compatible name lister.
43775 NM=$lt_NM
43776
43777 # Whether we need soft or hard links.
43778 LN_S=$lt_LN_S
43779
43780 # What is the maximum length of a command?
43781 max_cmd_len=$max_cmd_len
43782
43783 # Object file suffix (normally "o").
43784 objext=$ac_objext
43785
43786 # Executable file suffix (normally "").
43787 exeext=$exeext
43788
43789 # whether the shell understands "unset".
43790 lt_unset=$lt_unset
43791
43792 # turn spaces into newlines.
43793 SP2NL=$lt_lt_SP2NL
43794
43795 # turn newlines into spaces.
43796 NL2SP=$lt_lt_NL2SP
43797
43798 # How to create reloadable object files.
43799 reload_flag=$lt_reload_flag
43800 reload_cmds=$lt_reload_cmds
43801
43802 # An object symbol dumper.
43803 OBJDUMP=$lt_OBJDUMP
43804
43805 # Method to check whether dependent libraries are shared objects.
43806 deplibs_check_method=$lt_deplibs_check_method
43807
43808 # Command to use when deplibs_check_method == "file_magic".
43809 file_magic_cmd=$lt_file_magic_cmd
43810
43811 # The archiver.
43812 AR=$lt_AR
43813 AR_FLAGS=$lt_AR_FLAGS
43814
43815 # A symbol stripping program.
43816 STRIP=$lt_STRIP
43817
43818 # Commands used to install an old-style archive.
43819 RANLIB=$lt_RANLIB
43820 old_postinstall_cmds=$lt_old_postinstall_cmds
43821 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43822
43823 # A C compiler.
43824 LTCC=$lt_CC
43825
43826 # LTCC compiler flags.
43827 LTCFLAGS=$lt_CFLAGS
43828
43829 # Take the output of nm and produce a listing of raw symbols and C names.
43830 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43831
43832 # Transform the output of nm in a proper C declaration.
43833 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43834
43835 # Transform the output of nm in a C name address pair.
43836 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43837
43838 # Transform the output of nm in a C name address pair when lib prefix is needed.
43839 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43840
43841 # The name of the directory that contains temporary libtool files.
43842 objdir=$objdir
43843
43844 # Shell to use when invoking shell scripts.
43845 SHELL=$lt_SHELL
43846
43847 # An echo program that does not interpret backslashes.
43848 ECHO=$lt_ECHO
43849
43850 # Used to examine libraries when file_magic_cmd begins with "file".
43851 MAGIC_CMD=$MAGIC_CMD
43852
43853 # Must we lock files when doing compilation?
43854 need_locks=$lt_need_locks
43855
43856 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43857 DSYMUTIL=$lt_DSYMUTIL
43858
43859 # Tool to change global to local symbols on Mac OS X.
43860 NMEDIT=$lt_NMEDIT
43861
43862 # Tool to manipulate fat objects and archives on Mac OS X.
43863 LIPO=$lt_LIPO
43864
43865 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43866 OTOOL=$lt_OTOOL
43867
43868 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43869 OTOOL64=$lt_OTOOL64
43870
43871 # Old archive suffix (normally "a").
43872 libext=$libext
43873
43874 # Shared library suffix (normally ".so").
43875 shrext_cmds=$lt_shrext_cmds
43876
43877 # The commands to extract the exported symbol list from a shared archive.
43878 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43879
43880 # Variables whose values should be saved in libtool wrapper scripts and
43881 # restored at link time.
43882 variables_saved_for_relink=$lt_variables_saved_for_relink
43883
43884 # Do we need the "lib" prefix for modules?
43885 need_lib_prefix=$need_lib_prefix
43886
43887 # Do we need a version for libraries?
43888 need_version=$need_version
43889
43890 # Library versioning type.
43891 version_type=$version_type
43892
43893 # Shared library runtime path variable.
43894 runpath_var=$runpath_var
43895
43896 # Shared library path variable.
43897 shlibpath_var=$shlibpath_var
43898
43899 # Is shlibpath searched before the hard-coded library search path?
43900 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43901
43902 # Format of library name prefix.
43903 libname_spec=$lt_libname_spec
43904
43905 # List of archive names.  First name is the real one, the rest are links.
43906 # The last name is the one that the linker finds with -lNAME
43907 library_names_spec=$lt_library_names_spec
43908
43909 # The coded name of the library, if different from the real name.
43910 soname_spec=$lt_soname_spec
43911
43912 # Command to use after installation of a shared archive.
43913 postinstall_cmds=$lt_postinstall_cmds
43914
43915 # Command to use after uninstallation of a shared archive.
43916 postuninstall_cmds=$lt_postuninstall_cmds
43917
43918 # Commands used to finish a libtool library installation in a directory.
43919 finish_cmds=$lt_finish_cmds
43920
43921 # As "finish_cmds", except a single script fragment to be evaled but
43922 # not shown.
43923 finish_eval=$lt_finish_eval
43924
43925 # Whether we should hardcode library paths into libraries.
43926 hardcode_into_libs=$hardcode_into_libs
43927
43928 # Compile-time system search path for libraries.
43929 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43930
43931 # Run-time system search path for libraries.
43932 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43933
43934 # Whether dlopen is supported.
43935 dlopen_support=$enable_dlopen
43936
43937 # Whether dlopen of programs is supported.
43938 dlopen_self=$enable_dlopen_self
43939
43940 # Whether dlopen of statically linked programs is supported.
43941 dlopen_self_static=$enable_dlopen_self_static
43942
43943 # Commands to strip libraries.
43944 old_striplib=$lt_old_striplib
43945 striplib=$lt_striplib
43946
43947
43948 # The linker used to build libraries.
43949 LD=$lt_LD
43950
43951 # Commands used to build an old-style archive.
43952 old_archive_cmds=$lt_old_archive_cmds
43953
43954 # A language specific compiler.
43955 CC=$lt_compiler
43956
43957 # Is the compiler the GNU compiler?
43958 with_gcc=$GCC
43959
43960 # Compiler flag to turn off builtin functions.
43961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43962
43963 # How to pass a linker flag through the compiler.
43964 wl=$lt_lt_prog_compiler_wl
43965
43966 # Additional compiler flags for building library objects.
43967 pic_flag=$lt_lt_prog_compiler_pic
43968
43969 # Compiler flag to prevent dynamic linking.
43970 link_static_flag=$lt_lt_prog_compiler_static
43971
43972 # Does compiler simultaneously support -c and -o options?
43973 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43974
43975 # Whether or not to add -lc for building shared libraries.
43976 build_libtool_need_lc=$archive_cmds_need_lc
43977
43978 # Whether or not to disallow shared libs when runtime libs are static.
43979 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43980
43981 # Compiler flag to allow reflexive dlopens.
43982 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43983
43984 # Compiler flag to generate shared objects directly from archives.
43985 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43986
43987 # Whether the compiler copes with passing no objects directly.
43988 compiler_needs_object=$lt_compiler_needs_object
43989
43990 # Create an old-style archive from a shared archive.
43991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43992
43993 # Create a temporary old-style archive to link instead of a shared archive.
43994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43995
43996 # Commands used to build a shared archive.
43997 archive_cmds=$lt_archive_cmds
43998 archive_expsym_cmds=$lt_archive_expsym_cmds
43999
44000 # Commands used to build a loadable module if different from building
44001 # a shared archive.
44002 module_cmds=$lt_module_cmds
44003 module_expsym_cmds=$lt_module_expsym_cmds
44004
44005 # Whether we are building with GNU ld or not.
44006 with_gnu_ld=$lt_with_gnu_ld
44007
44008 # Flag that allows shared libraries with undefined symbols to be built.
44009 allow_undefined_flag=$lt_allow_undefined_flag
44010
44011 # Flag that enforces no undefined symbols.
44012 no_undefined_flag=$lt_no_undefined_flag
44013
44014 # Flag to hardcode \$libdir into a binary during linking.
44015 # This must work even if \$libdir does not exist
44016 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44017
44018 # If ld is used when linking, flag to hardcode \$libdir into a binary
44019 # during linking.  This must work even if \$libdir does not exist.
44020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
44021
44022 # Whether we need a single "-rpath" flag with a separated argument.
44023 hardcode_libdir_separator=$lt_hardcode_libdir_separator
44024
44025 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44026 # DIR into the resulting binary.
44027 hardcode_direct=$hardcode_direct
44028
44029 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44030 # DIR into the resulting binary and the resulting library dependency is
44031 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44032 # library is relocated.
44033 hardcode_direct_absolute=$hardcode_direct_absolute
44034
44035 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44036 # into the resulting binary.
44037 hardcode_minus_L=$hardcode_minus_L
44038
44039 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44040 # into the resulting binary.
44041 hardcode_shlibpath_var=$hardcode_shlibpath_var
44042
44043 # Set to "yes" if building a shared library automatically hardcodes DIR
44044 # into the library and all subsequent libraries and executables linked
44045 # against it.
44046 hardcode_automatic=$hardcode_automatic
44047
44048 # Set to yes if linker adds runtime paths of dependent libraries
44049 # to runtime path list.
44050 inherit_rpath=$inherit_rpath
44051
44052 # Whether libtool must link a program against all its dependency libraries.
44053 link_all_deplibs=$link_all_deplibs
44054
44055 # Fix the shell variable \$srcfile for the compiler.
44056 fix_srcfile_path=$lt_fix_srcfile_path
44057
44058 # Set to "yes" if exported symbols are required.
44059 always_export_symbols=$always_export_symbols
44060
44061 # The commands to list exported symbols.
44062 export_symbols_cmds=$lt_export_symbols_cmds
44063
44064 # Symbols that should not be listed in the preloaded symbols.
44065 exclude_expsyms=$lt_exclude_expsyms
44066
44067 # Symbols that must always be exported.
44068 include_expsyms=$lt_include_expsyms
44069
44070 # Commands necessary for linking programs (against libraries) with templates.
44071 prelink_cmds=$lt_prelink_cmds
44072
44073 # Specify filename containing input files.
44074 file_list_spec=$lt_file_list_spec
44075
44076 # How to hardcode a shared library path into an executable.
44077 hardcode_action=$hardcode_action
44078
44079 # The directories searched by this compiler when creating a shared library.
44080 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
44081
44082 # Dependencies to place before and after the objects being linked to
44083 # create a shared library.
44084 predep_objects=$lt_predep_objects
44085 postdep_objects=$lt_postdep_objects
44086 predeps=$lt_predeps
44087 postdeps=$lt_postdeps
44088
44089 # The library search path used internally by the compiler when linking
44090 # a shared library.
44091 compiler_lib_search_path=$lt_compiler_lib_search_path
44092
44093 # ### END LIBTOOL CONFIG
44094
44095 _LT_EOF
44096
44097   case $host_os in
44098   aix3*)
44099     cat <<\_LT_EOF >> "$cfgfile"
44100 # AIX sometimes has problems with the GCC collect2 program.  For some
44101 # reason, if we set the COLLECT_NAMES environment variable, the problems
44102 # vanish in a puff of smoke.
44103 if test "X${COLLECT_NAMES+set}" != Xset; then
44104   COLLECT_NAMES=
44105   export COLLECT_NAMES
44106 fi
44107 _LT_EOF
44108     ;;
44109   esac
44110
44111
44112 ltmain="$ac_aux_dir/ltmain.sh"
44113
44114
44115   # We use sed instead of cat because bash on DJGPP gets confused if
44116   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
44117   # text mode, it properly converts lines to CR/LF.  This bash problem
44118   # is reportedly fixed, but why not run on old versions too?
44119   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
44120     || (rm -f "$cfgfile"; exit 1)
44121
44122   case $xsi_shell in
44123   yes)
44124     cat << \_LT_EOF >> "$cfgfile"
44125
44126 # func_dirname file append nondir_replacement
44127 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
44128 # otherwise set result to NONDIR_REPLACEMENT.
44129 func_dirname ()
44130 {
44131   case ${1} in
44132     */*) func_dirname_result="${1%/*}${2}" ;;
44133     *  ) func_dirname_result="${3}" ;;
44134   esac
44135 }
44136
44137 # func_basename file
44138 func_basename ()
44139 {
44140   func_basename_result="${1##*/}"
44141 }
44142
44143 # func_dirname_and_basename file append nondir_replacement
44144 # perform func_basename and func_dirname in a single function
44145 # call:
44146 #   dirname:  Compute the dirname of FILE.  If nonempty,
44147 #             add APPEND to the result, otherwise set result
44148 #             to NONDIR_REPLACEMENT.
44149 #             value returned in "$func_dirname_result"
44150 #   basename: Compute filename of FILE.
44151 #             value retuned in "$func_basename_result"
44152 # Implementation must be kept synchronized with func_dirname
44153 # and func_basename. For efficiency, we do not delegate to
44154 # those functions but instead duplicate the functionality here.
44155 func_dirname_and_basename ()
44156 {
44157   case ${1} in
44158     */*) func_dirname_result="${1%/*}${2}" ;;
44159     *  ) func_dirname_result="${3}" ;;
44160   esac
44161   func_basename_result="${1##*/}"
44162 }
44163
44164 # func_stripname prefix suffix name
44165 # strip PREFIX and SUFFIX off of NAME.
44166 # PREFIX and SUFFIX must not contain globbing or regex special
44167 # characters, hashes, percent signs, but SUFFIX may contain a leading
44168 # dot (in which case that matches only a dot).
44169 func_stripname ()
44170 {
44171   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
44172   # positional parameters, so assign one to ordinary parameter first.
44173   func_stripname_result=${3}
44174   func_stripname_result=${func_stripname_result#"${1}"}
44175   func_stripname_result=${func_stripname_result%"${2}"}
44176 }
44177
44178 # func_opt_split
44179 func_opt_split ()
44180 {
44181   func_opt_split_opt=${1%%=*}
44182   func_opt_split_arg=${1#*=}
44183 }
44184
44185 # func_lo2o object
44186 func_lo2o ()
44187 {
44188   case ${1} in
44189     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
44190     *)    func_lo2o_result=${1} ;;
44191   esac
44192 }
44193
44194 # func_xform libobj-or-source
44195 func_xform ()
44196 {
44197   func_xform_result=${1%.*}.lo
44198 }
44199
44200 # func_arith arithmetic-term...
44201 func_arith ()
44202 {
44203   func_arith_result=$(( $* ))
44204 }
44205
44206 # func_len string
44207 # STRING may not start with a hyphen.
44208 func_len ()
44209 {
44210   func_len_result=${#1}
44211 }
44212
44213 _LT_EOF
44214     ;;
44215   *) # Bourne compatible functions.
44216     cat << \_LT_EOF >> "$cfgfile"
44217
44218 # func_dirname file append nondir_replacement
44219 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
44220 # otherwise set result to NONDIR_REPLACEMENT.
44221 func_dirname ()
44222 {
44223   # Extract subdirectory from the argument.
44224   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
44225   if test "X$func_dirname_result" = "X${1}"; then
44226     func_dirname_result="${3}"
44227   else
44228     func_dirname_result="$func_dirname_result${2}"
44229   fi
44230 }
44231
44232 # func_basename file
44233 func_basename ()
44234 {
44235   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
44236 }
44237
44238
44239 # func_stripname prefix suffix name
44240 # strip PREFIX and SUFFIX off of NAME.
44241 # PREFIX and SUFFIX must not contain globbing or regex special
44242 # characters, hashes, percent signs, but SUFFIX may contain a leading
44243 # dot (in which case that matches only a dot).
44244 # func_strip_suffix prefix name
44245 func_stripname ()
44246 {
44247   case ${2} in
44248     .*) func_stripname_result=`$ECHO "X${3}" \
44249            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
44250     *)  func_stripname_result=`$ECHO "X${3}" \
44251            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
44252   esac
44253 }
44254
44255 # sed scripts:
44256 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
44257 my_sed_long_arg='1s/^-[^=]*=//'
44258
44259 # func_opt_split
44260 func_opt_split ()
44261 {
44262   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
44263   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
44264 }
44265
44266 # func_lo2o object
44267 func_lo2o ()
44268 {
44269   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
44270 }
44271
44272 # func_xform libobj-or-source
44273 func_xform ()
44274 {
44275   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
44276 }
44277
44278 # func_arith arithmetic-term...
44279 func_arith ()
44280 {
44281   func_arith_result=`expr "$@"`
44282 }
44283
44284 # func_len string
44285 # STRING may not start with a hyphen.
44286 func_len ()
44287 {
44288   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
44289 }
44290
44291 _LT_EOF
44292 esac
44293
44294 case $lt_shell_append in
44295   yes)
44296     cat << \_LT_EOF >> "$cfgfile"
44297
44298 # func_append var value
44299 # Append VALUE to the end of shell variable VAR.
44300 func_append ()
44301 {
44302   eval "$1+=\$2"
44303 }
44304 _LT_EOF
44305     ;;
44306   *)
44307     cat << \_LT_EOF >> "$cfgfile"
44308
44309 # func_append var value
44310 # Append VALUE to the end of shell variable VAR.
44311 func_append ()
44312 {
44313   eval "$1=\$$1\$2"
44314 }
44315
44316 _LT_EOF
44317     ;;
44318   esac
44319
44320
44321   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
44322     || (rm -f "$cfgfile"; exit 1)
44323
44324   mv -f "$cfgfile" "$ofile" ||
44325     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44326   chmod +x "$ofile"
44327
44328
44329     cat <<_LT_EOF >> "$ofile"
44330
44331 # ### BEGIN LIBTOOL TAG CONFIG: CXX
44332
44333 # The linker used to build libraries.
44334 LD=$lt_LD_CXX
44335
44336 # Commands used to build an old-style archive.
44337 old_archive_cmds=$lt_old_archive_cmds_CXX
44338
44339 # A language specific compiler.
44340 CC=$lt_compiler_CXX
44341
44342 # Is the compiler the GNU compiler?
44343 with_gcc=$GCC_CXX
44344
44345 # Compiler flag to turn off builtin functions.
44346 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
44347
44348 # How to pass a linker flag through the compiler.
44349 wl=$lt_lt_prog_compiler_wl_CXX
44350
44351 # Additional compiler flags for building library objects.
44352 pic_flag=$lt_lt_prog_compiler_pic_CXX
44353
44354 # Compiler flag to prevent dynamic linking.
44355 link_static_flag=$lt_lt_prog_compiler_static_CXX
44356
44357 # Does compiler simultaneously support -c and -o options?
44358 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
44359
44360 # Whether or not to add -lc for building shared libraries.
44361 build_libtool_need_lc=$archive_cmds_need_lc_CXX
44362
44363 # Whether or not to disallow shared libs when runtime libs are static.
44364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
44365
44366 # Compiler flag to allow reflexive dlopens.
44367 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
44368
44369 # Compiler flag to generate shared objects directly from archives.
44370 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
44371
44372 # Whether the compiler copes with passing no objects directly.
44373 compiler_needs_object=$lt_compiler_needs_object_CXX
44374
44375 # Create an old-style archive from a shared archive.
44376 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
44377
44378 # Create a temporary old-style archive to link instead of a shared archive.
44379 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
44380
44381 # Commands used to build a shared archive.
44382 archive_cmds=$lt_archive_cmds_CXX
44383 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
44384
44385 # Commands used to build a loadable module if different from building
44386 # a shared archive.
44387 module_cmds=$lt_module_cmds_CXX
44388 module_expsym_cmds=$lt_module_expsym_cmds_CXX
44389
44390 # Whether we are building with GNU ld or not.
44391 with_gnu_ld=$lt_with_gnu_ld_CXX
44392
44393 # Flag that allows shared libraries with undefined symbols to be built.
44394 allow_undefined_flag=$lt_allow_undefined_flag_CXX
44395
44396 # Flag that enforces no undefined symbols.
44397 no_undefined_flag=$lt_no_undefined_flag_CXX
44398
44399 # Flag to hardcode \$libdir into a binary during linking.
44400 # This must work even if \$libdir does not exist
44401 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
44402
44403 # If ld is used when linking, flag to hardcode \$libdir into a binary
44404 # during linking.  This must work even if \$libdir does not exist.
44405 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
44406
44407 # Whether we need a single "-rpath" flag with a separated argument.
44408 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
44409
44410 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44411 # DIR into the resulting binary.
44412 hardcode_direct=$hardcode_direct_CXX
44413
44414 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44415 # DIR into the resulting binary and the resulting library dependency is
44416 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44417 # library is relocated.
44418 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
44419
44420 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44421 # into the resulting binary.
44422 hardcode_minus_L=$hardcode_minus_L_CXX
44423
44424 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44425 # into the resulting binary.
44426 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
44427
44428 # Set to "yes" if building a shared library automatically hardcodes DIR
44429 # into the library and all subsequent libraries and executables linked
44430 # against it.
44431 hardcode_automatic=$hardcode_automatic_CXX
44432
44433 # Set to yes if linker adds runtime paths of dependent libraries
44434 # to runtime path list.
44435 inherit_rpath=$inherit_rpath_CXX
44436
44437 # Whether libtool must link a program against all its dependency libraries.
44438 link_all_deplibs=$link_all_deplibs_CXX
44439
44440 # Fix the shell variable \$srcfile for the compiler.
44441 fix_srcfile_path=$lt_fix_srcfile_path_CXX
44442
44443 # Set to "yes" if exported symbols are required.
44444 always_export_symbols=$always_export_symbols_CXX
44445
44446 # The commands to list exported symbols.
44447 export_symbols_cmds=$lt_export_symbols_cmds_CXX
44448
44449 # Symbols that should not be listed in the preloaded symbols.
44450 exclude_expsyms=$lt_exclude_expsyms_CXX
44451
44452 # Symbols that must always be exported.
44453 include_expsyms=$lt_include_expsyms_CXX
44454
44455 # Commands necessary for linking programs (against libraries) with templates.
44456 prelink_cmds=$lt_prelink_cmds_CXX
44457
44458 # Specify filename containing input files.
44459 file_list_spec=$lt_file_list_spec_CXX
44460
44461 # How to hardcode a shared library path into an executable.
44462 hardcode_action=$hardcode_action_CXX
44463
44464 # The directories searched by this compiler when creating a shared library.
44465 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
44466
44467 # Dependencies to place before and after the objects being linked to
44468 # create a shared library.
44469 predep_objects=$lt_predep_objects_CXX
44470 postdep_objects=$lt_postdep_objects_CXX
44471 predeps=$lt_predeps_CXX
44472 postdeps=$lt_postdeps_CXX
44473
44474 # The library search path used internally by the compiler when linking
44475 # a shared library.
44476 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
44477
44478 # ### END LIBTOOL TAG CONFIG: CXX
44479 _LT_EOF
44480
44481  ;;
44482     "default-1":C)
44483     for ac_file in $CONFIG_FILES; do
44484       # Support "outfile[:infile[:infile...]]"
44485       case "$ac_file" in
44486         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44487       esac
44488       # PO directories have a Makefile.in generated from Makefile.in.in.
44489       case "$ac_file" in */Makefile.in)
44490         # Adjust a relative srcdir.
44491         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44492         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44493         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44494         # In autoconf-2.13 it is called $ac_given_srcdir.
44495         # In autoconf-2.50 it is called $srcdir.
44496         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44497         case "$ac_given_srcdir" in
44498           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44499           /*) top_srcdir="$ac_given_srcdir" ;;
44500           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
44501         esac
44502         # Treat a directory as a PO directory if and only if it has a
44503         # POTFILES.in file. This allows packages to have multiple PO
44504         # directories under different names or in different locations.
44505         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44506           rm -f "$ac_dir/POTFILES"
44507           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44508           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44509           POMAKEFILEDEPS="POTFILES.in"
44510           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44511           # on $ac_dir but don't depend on user-specified configuration
44512           # parameters.
44513           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44514             # The LINGUAS file contains the set of available languages.
44515             if test -n "$OBSOLETE_ALL_LINGUAS"; then
44516               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44517             fi
44518             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44519             # Hide the ALL_LINGUAS assigment from automake.
44520             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44521             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44522           else
44523             # The set of available languages was given in configure.in.
44524             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44525           fi
44526           # Compute POFILES
44527           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44528           # Compute UPDATEPOFILES
44529           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44530           # Compute DUMMYPOFILES
44531           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44532           # Compute GMOFILES
44533           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44534           case "$ac_given_srcdir" in
44535             .) srcdirpre= ;;
44536             *) srcdirpre='$(srcdir)/' ;;
44537           esac
44538           POFILES=
44539           UPDATEPOFILES=
44540           DUMMYPOFILES=
44541           GMOFILES=
44542           for lang in $ALL_LINGUAS; do
44543             POFILES="$POFILES $srcdirpre$lang.po"
44544             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44545             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44546             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44547           done
44548           # CATALOGS depends on both $ac_dir and the user's LINGUAS
44549           # environment variable.
44550           INST_LINGUAS=
44551           if test -n "$ALL_LINGUAS"; then
44552             for presentlang in $ALL_LINGUAS; do
44553               useit=no
44554               if test "%UNSET%" != "$LINGUAS"; then
44555                 desiredlanguages="$LINGUAS"
44556               else
44557                 desiredlanguages="$ALL_LINGUAS"
44558               fi
44559               for desiredlang in $desiredlanguages; do
44560                 # Use the presentlang catalog if desiredlang is
44561                 #   a. equal to presentlang, or
44562                 #   b. a variant of presentlang (because in this case,
44563                 #      presentlang can be used as a fallback for messages
44564                 #      which are not translated in the desiredlang catalog).
44565                 case "$desiredlang" in
44566                   "$presentlang"*) useit=yes;;
44567                 esac
44568               done
44569               if test $useit = yes; then
44570                 INST_LINGUAS="$INST_LINGUAS $presentlang"
44571               fi
44572             done
44573           fi
44574           CATALOGS=
44575           if test -n "$INST_LINGUAS"; then
44576             for lang in $INST_LINGUAS; do
44577               CATALOGS="$CATALOGS $lang.gmo"
44578             done
44579           fi
44580           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44581           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"
44582           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44583             if test -f "$f"; then
44584               case "$f" in
44585                 *.orig | *.bak | *~) ;;
44586                 *) cat "$f" >> "$ac_dir/Makefile" ;;
44587               esac
44588             fi
44589           done
44590         fi
44591         ;;
44592       esac
44593     done ;;
44594     "default":C)
44595  ;;
44596
44597   esac
44598 done # for ac_tag
44599
44600
44601 { (exit 0); exit 0; }
44602 _ACEOF
44603 chmod +x $CONFIG_STATUS
44604 ac_clean_files=$ac_clean_files_save
44605
44606
44607 # configure is writing to config.log, and then calls config.status.
44608 # config.status does its own redirection, appending to config.log.
44609 # Unfortunately, on DOS this fails, as config.log is still kept open
44610 # by configure, so config.status won't be able to write to it; its
44611 # output is simply discarded.  So we exec the FD to /dev/null,
44612 # effectively closing config.log, so it can be properly (re)opened and
44613 # appended to by config.status.  When coming back to configure, we
44614 # need to make the FD available again.
44615 if test "$no_create" != yes; then
44616   ac_cs_success=:
44617   ac_config_status_args=
44618   test "$silent" = yes &&
44619     ac_config_status_args="$ac_config_status_args --quiet"
44620   exec 5>/dev/null
44621   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44622   exec 5>>config.log
44623   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44624   # would make configure fail if this is the last instruction.
44625   $ac_cs_success || { (exit 1); exit 1; }
44626 fi
44627
44628
44629 if test "${support_bat}" = "yes" ; then
44630    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44631       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44632       exit 1
44633    fi
44634
44635    QMAKEBIN="qmake"
44636
44637    if test "x$QMAKEQT4" != "xnone"; then
44638        QMAKEBIN=qmake-qt4
44639    fi
44640
44641    cd src/qt-console
44642    chmod 755 install_conf_file build-depkgs-qt-console
44643    echo "Creating bat Makefile"
44644    $QMAKEBIN
44645    make clean
44646    cd ${BUILD_DIR}
44647 fi
44648
44649 if test X"$GCC" = "Xyes" ; then
44650   echo "Doing make of dependencies"
44651   ${MAKE:-make} depend
44652 fi
44653
44654 cd scripts
44655 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44656 chmod 755 dvd-handler dvd-simulator
44657 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44658 cd ..
44659
44660 c=updatedb
44661 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
44662 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
44663
44664 c=src/cats
44665
44666 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
44667 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
44668
44669 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
44670 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
44671
44672 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
44673 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
44674
44675 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
44676 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
44677
44678 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
44679 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
44680
44681 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
44682 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
44683
44684 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44685 chmod 755 $c/sqlite
44686 chmod 755 $c/mysql
44687
44688 chmod 755 src/win32/build-depkgs-mingw32
44689
44690 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44691    largefile_support="yes"
44692 fi
44693
44694 if test X"$GCC" = "Xyes" ; then
44695                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44696    if test "x${CCVERSION}" = "x" ; then
44697       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44698    fi
44699    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44700    if test x"${CXXVERSION}" = x ; then
44701       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44702    fi
44703 fi
44704
44705 # clean up any old junk
44706 echo " "
44707 echo "Cleaning up"
44708 echo " "
44709 make clean
44710
44711 if test "x${db_type}" = "xInternal" ; then
44712    echo " "
44713    echo " "
44714    echo "You have not specified either --enable-client-only or one of the"
44715    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44716    echo "  This is not permitted. Please reconfigure."
44717    echo " "
44718    echo "Aborting the configuration ..."
44719    echo " "
44720    echo " "
44721    exit 1
44722 fi
44723
44724 echo "
44725 Configuration on `date`:
44726
44727    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44728    Bacula version:          ${BACULA} ${VERSION} (${DATE})
44729    Source code location:    ${srcdir}
44730    Install binaries:        ${sbindir}
44731    Install libraries:       ${libdir}
44732    Install config files:    ${sysconfdir}
44733    Scripts directory:       ${scriptdir}
44734    Archive directory:       ${archivedir}
44735    Working directory:       ${working_dir}
44736    PID directory:           ${piddir}
44737    Subsys directory:        ${subsysdir}
44738    Man directory:           ${mandir}
44739    Data directory:          ${datarootdir}
44740    Plugin directory:        ${plugindir}
44741    C Compiler:              ${CC} ${CCVERSION}
44742    C++ Compiler:            ${CXX} ${CXXVERSION}
44743    Compiler flags:          ${WCFLAGS} ${CFLAGS}
44744    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
44745    Libraries:               ${LIBS}
44746    Statically Linked Tools: ${support_static_tools}
44747    Statically Linked FD:    ${support_static_fd}
44748    Statically Linked SD:    ${support_static_sd}
44749    Statically Linked DIR:   ${support_static_dir}
44750    Statically Linked CONS:  ${support_static_cons}
44751    Database type:           ${db_type}
44752    Database port:           ${db_port}
44753    Database lib:            ${DB_LIBS}
44754    Database name:           ${db_name}
44755    Database user:           ${db_user}
44756
44757    Job Output Email:        ${job_email}
44758    Traceback Email:         ${dump_email}
44759    SMTP Host Address:       ${smtp_host}
44760
44761    Director Port:           ${dir_port}
44762    File daemon Port:        ${fd_port}
44763    Storage daemon Port:     ${sd_port}
44764
44765    Director User:           ${dir_user}
44766    Director Group:          ${dir_group}
44767    Storage Daemon User:     ${sd_user}
44768    Storage DaemonGroup:     ${sd_group}
44769    File Daemon User:        ${fd_user}
44770    File Daemon Group:       ${fd_group}
44771
44772    SQL binaries Directory   ${SQL_BINDIR}
44773
44774    Large file support:      $largefile_support
44775    Bacula conio support:    ${got_conio} ${CONS_LIBS}
44776    readline support:        ${got_readline} ${PRTREADLINE_SRC}
44777    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
44778    TLS support:             ${support_tls}
44779    Encryption support:      ${support_crypto}
44780    ZLIB support:            ${have_zlib}
44781    enable-smartalloc:       ${support_smartalloc}
44782    bat support:             ${support_bat} ${QWT_LDFLAGS}
44783    enable-gnome:            ${support_gnome} ${gnome_version}
44784    enable-bwx-console:      ${support_wx_console} ${wx_version}
44785    enable-tray-monitor:     ${support_tray_monitor}
44786    client-only:             ${build_client_only}
44787    build-dird:              ${build_dird}
44788    build-stored:            ${build_stored}
44789    ACL support:             ${have_acl}
44790    XATTR support:           ${have_xattr}
44791    Python support:          ${support_python} ${PYTHON_LIBS}
44792    Batch insert enabled:    ${support_batch_insert}
44793
44794   " > config.out
44795
44796 cat config.out