]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
250ae1e9ba11e8722f4c3d092674b71931029865
[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
1668 Optional Packages:
1669   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1670   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1671   --with-pic              try to use only PIC/non-PIC objects [default=use
1672                           both]
1673   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1674   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1675   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1676   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1677   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1678   --without-libintl-prefix     don't search for libintl in includedir and libdir
1679   --with-included-gettext use the GNU gettext library included here
1680   --with-qwt[=DIR]        specify qwt library directory
1681   --with-readline[=DIR]   specify readline library directory
1682   --with-python[=DIR]     Include Python support. DIR is the Python base
1683                           install directory, default is to search through a
1684                           number of common places for the Python files.
1685   --with-tcp-wrappers[=DIR]
1686                           enable tcpwrappers support
1687   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1688   --with-working-dir=PATH specify path of Bacula working directory
1689   --with-archivedir=PATH  specify path of SD archive directory
1690   --with-scriptdir=PATH   specify path of Bacula scripts directory
1691   --with-plugindir=PATH   specify path of Bacula plugins directory
1692   --with-dump-email=EMAIL dump email address
1693   --with-job-email=EMAIL  job output email address
1694   --with-smtp-host=HOST   SMTP mail host address
1695   --with-pid-dir=PATH     specify location of Bacula pid files
1696   --with-subsys-dir=PATH  specify location of Bacula subsys file
1697   --with-baseport=PORT    specify base port address for daemons
1698   --with-dir-password=PASSWORD
1699                           specify Director's password
1700   --with-fd-password=PASSWORD
1701                           specify Client's password
1702   --with-sd-password=PASSWORD
1703                           specify Storage daemon's password
1704   --with-mon-dir-password=PASSWORD
1705                           specify Director's password used by the monitor
1706   --with-mon-fd-password=PASSWORD
1707                           specify Client's password used by the monitor
1708   --with-mon-sd-password=PASSWORD
1709                           specify Storage daemon's password used by the
1710                           monitor
1711   --with-db-name=DBNAME   specify database name [default=bacula]
1712   --with-db-user=UNAME    specify database user [default=bacula]
1713   --with-db-password=PWD  specify database password [default=*none*]
1714   --with-db-port=DBPORT   specify a database port [default=null]
1715   --with-dir-user=USER    specify user for Director daemon
1716   --with-dir-group=GROUP  specify group for Director daemon
1717   --with-sd-user=USER     specify user for Storage daemon
1718   --with-sd-group=GROUP   specify group for Storage daemon
1719   --with-fd-user=USER     specify user for File daemon
1720   --with-fd-group=GROUP   specify group for File daemon
1721   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1722   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1723                           base install directory, [default=/usr/local/pgsql]
1724   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1725                           directory, default is to search through a number of
1726                           common places for the MySQL files.
1727   --with-embedded-mysql[=DIR]
1728                           Include MySQL support. DIR is the MySQL base install
1729                           directory, default is to search through a number of
1730                           common places for the MySQL files.
1731   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1732                           install directory, default is to search through a
1733                           number of common places for the SQLite3 files.
1734   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1735                           install directory, default is to search through a
1736                           number of common places for the SQLite files.
1737   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1738                           directory, default is to search through a number of
1739                           common places for the DBI files.
1740   --with-dbi-driver[=DRIVER]
1741                           Suport for DBI driver. DRIVER is the one DBI driver
1742                           like Mysql, Postgresql, others. Default is to not
1743                           configure any driver.
1744   --with-x                use the X Window System
1745
1746 Some influential environment variables:
1747   CC          C compiler command
1748   CFLAGS      C compiler flags
1749   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1750               nonstandard directory <lib dir>
1751   LIBS        libraries to pass to the linker, e.g. -l<library>
1752   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1753               you have headers in a nonstandard directory <include dir>
1754   CXX         C++ compiler command
1755   CXXFLAGS    C++ compiler flags
1756   CPP         C preprocessor
1757   WXCONFIG    wx-config command. On some systems, you must set it to
1758               wx-config-2.6 to use wxWidgets 2.6.
1759   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1760   CXXCPP      C++ preprocessor
1761   XMKMF       Path to xmkmf, Makefile generator for X Window System
1762
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1765
1766 _ACEOF
1767 ac_status=$?
1768 fi
1769
1770 if test "$ac_init_help" = "recursive"; then
1771   # If there are subdirs, report their specific --help.
1772   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1773     test -d "$ac_dir" || continue
1774     ac_builddir=.
1775
1776 case "$ac_dir" in
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1778 *)
1779   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1780   # A ".." for each directory in $ac_dir_suffix.
1781   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1782   case $ac_top_builddir_sub in
1783   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785   esac ;;
1786 esac
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1791
1792 case $srcdir in
1793   .)  # We are building in place.
1794     ac_srcdir=.
1795     ac_top_srcdir=$ac_top_builddir_sub
1796     ac_abs_top_srcdir=$ac_pwd ;;
1797   [\\/]* | ?:[\\/]* )  # Absolute name.
1798     ac_srcdir=$srcdir$ac_dir_suffix;
1799     ac_top_srcdir=$srcdir
1800     ac_abs_top_srcdir=$srcdir ;;
1801   *) # Relative name.
1802     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803     ac_top_srcdir=$ac_top_build_prefix$srcdir
1804     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1805 esac
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1807
1808     cd "$ac_dir" || { ac_status=$?; continue; }
1809     # Check for guested configure.
1810     if test -f "$ac_srcdir/configure.gnu"; then
1811       echo &&
1812       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813     elif test -f "$ac_srcdir/configure"; then
1814       echo &&
1815       $SHELL "$ac_srcdir/configure" --help=recursive
1816     else
1817       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818     fi || ac_status=$?
1819     cd "$ac_pwd" || { ac_status=$?; break; }
1820   done
1821 fi
1822
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1825   cat <<\_ACEOF
1826 configure
1827 generated by GNU Autoconf 2.61
1828
1829 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1830 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1831 This configure script is free software; the Free Software Foundation
1832 gives unlimited permission to copy, distribute and modify it.
1833 _ACEOF
1834   exit
1835 fi
1836 cat >config.log <<_ACEOF
1837 This file contains any messages produced by compilers while
1838 running configure, to aid debugging if configure makes a mistake.
1839
1840 It was created by $as_me, which was
1841 generated by GNU Autoconf 2.61.  Invocation command line was
1842
1843   $ $0 $@
1844
1845 _ACEOF
1846 exec 5>>config.log
1847 {
1848 cat <<_ASUNAME
1849 ## --------- ##
1850 ## Platform. ##
1851 ## --------- ##
1852
1853 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1858
1859 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1861
1862 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1863 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1864 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1866 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1867 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1868 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1869
1870 _ASUNAME
1871
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875   IFS=$as_save_IFS
1876   test -z "$as_dir" && as_dir=.
1877   echo "PATH: $as_dir"
1878 done
1879 IFS=$as_save_IFS
1880
1881 } >&5
1882
1883 cat >&5 <<_ACEOF
1884
1885
1886 ## ----------- ##
1887 ## Core tests. ##
1888 ## ----------- ##
1889
1890 _ACEOF
1891
1892
1893 # Keep a trace of the command line.
1894 # Strip out --no-create and --no-recursion so they do not pile up.
1895 # Strip out --silent because we don't want to record it for future runs.
1896 # Also quote any args containing shell meta-characters.
1897 # Make two passes to allow for proper duplicate-argument suppression.
1898 ac_configure_args=
1899 ac_configure_args0=
1900 ac_configure_args1=
1901 ac_must_keep_next=false
1902 for ac_pass in 1 2
1903 do
1904   for ac_arg
1905   do
1906     case $ac_arg in
1907     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909     | -silent | --silent | --silen | --sile | --sil)
1910       continue ;;
1911     *\'*)
1912       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1913     esac
1914     case $ac_pass in
1915     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1916     2)
1917       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1918       if test $ac_must_keep_next = true; then
1919         ac_must_keep_next=false # Got value, back to normal.
1920       else
1921         case $ac_arg in
1922           *=* | --config-cache | -C | -disable-* | --disable-* \
1923           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925           | -with-* | --with-* | -without-* | --without-* | --x)
1926             case "$ac_configure_args0 " in
1927               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1928             esac
1929             ;;
1930           -* ) ac_must_keep_next=true ;;
1931         esac
1932       fi
1933       ac_configure_args="$ac_configure_args '$ac_arg'"
1934       ;;
1935     esac
1936   done
1937 done
1938 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1939 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1940
1941 # When interrupted or exit'd, cleanup temporary files, and complete
1942 # config.log.  We remove comments because anyway the quotes in there
1943 # would cause problems or look ugly.
1944 # WARNING: Use '\'' to represent an apostrophe within the trap.
1945 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946 trap 'exit_status=$?
1947   # Save into config.log some information that might help in debugging.
1948   {
1949     echo
1950
1951     cat <<\_ASBOX
1952 ## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##
1955 _ASBOX
1956     echo
1957     # The following way of writing the cache mishandles newlines in values,
1958 (
1959   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960     eval ac_val=\$$ac_var
1961     case $ac_val in #(
1962     *${as_nl}*)
1963       case $ac_var in #(
1964       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1965 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1966       esac
1967       case $ac_var in #(
1968       _ | IFS | as_nl) ;; #(
1969       *) $as_unset $ac_var ;;
1970       esac ;;
1971     esac
1972   done
1973   (set) 2>&1 |
1974     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975     *${as_nl}ac_space=\ *)
1976       sed -n \
1977         "s/'\''/'\''\\\\'\'''\''/g;
1978           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979       ;; #(
1980     *)
1981       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1982       ;;
1983     esac |
1984     sort
1985 )
1986     echo
1987
1988     cat <<\_ASBOX
1989 ## ----------------- ##
1990 ## Output variables. ##
1991 ## ----------------- ##
1992 _ASBOX
1993     echo
1994     for ac_var in $ac_subst_vars
1995     do
1996       eval ac_val=\$$ac_var
1997       case $ac_val in
1998       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999       esac
2000       echo "$ac_var='\''$ac_val'\''"
2001     done | sort
2002     echo
2003
2004     if test -n "$ac_subst_files"; then
2005       cat <<\_ASBOX
2006 ## ------------------- ##
2007 ## File substitutions. ##
2008 ## ------------------- ##
2009 _ASBOX
2010       echo
2011       for ac_var in $ac_subst_files
2012       do
2013         eval ac_val=\$$ac_var
2014         case $ac_val in
2015         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2016         esac
2017         echo "$ac_var='\''$ac_val'\''"
2018       done | sort
2019       echo
2020     fi
2021
2022     if test -s confdefs.h; then
2023       cat <<\_ASBOX
2024 ## ----------- ##
2025 ## confdefs.h. ##
2026 ## ----------- ##
2027 _ASBOX
2028       echo
2029       cat confdefs.h
2030       echo
2031     fi
2032     test "$ac_signal" != 0 &&
2033       echo "$as_me: caught signal $ac_signal"
2034     echo "$as_me: exit $exit_status"
2035   } >&5
2036   rm -f core *.core core.conftest.* &&
2037     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2038     exit $exit_status
2039 ' 0
2040 for ac_signal in 1 2 13 15; do
2041   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2042 done
2043 ac_signal=0
2044
2045 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2046 rm -f -r conftest* confdefs.h
2047
2048 # Predefined preprocessor variables.
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_NAME "$PACKAGE_NAME"
2052 _ACEOF
2053
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2057 _ACEOF
2058
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2062 _ACEOF
2063
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_STRING "$PACKAGE_STRING"
2067 _ACEOF
2068
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2072 _ACEOF
2073
2074
2075 # Let the site file select an alternate cache file if it wants to.
2076 # Prefer explicitly selected file to automatically selected ones.
2077 if test -n "$CONFIG_SITE"; then
2078   set x "$CONFIG_SITE"
2079 elif test "x$prefix" != xNONE; then
2080   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2081 else
2082   set x "$ac_default_prefix/share/config.site" \
2083         "$ac_default_prefix/etc/config.site"
2084 fi
2085 shift
2086 for ac_site_file
2087 do
2088   if test -r "$ac_site_file"; then
2089     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2090 echo "$as_me: loading site script $ac_site_file" >&6;}
2091     sed 's/^/| /' "$ac_site_file" >&5
2092     . "$ac_site_file"
2093   fi
2094 done
2095
2096 if test -r "$cache_file"; then
2097   # Some versions of bash will fail to source /dev/null (special
2098   # files actually), so we avoid doing that.
2099   if test -f "$cache_file"; then
2100     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2101 echo "$as_me: loading cache $cache_file" >&6;}
2102     case $cache_file in
2103       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104       *)                      . "./$cache_file";;
2105     esac
2106   fi
2107 else
2108   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2109 echo "$as_me: creating cache $cache_file" >&6;}
2110   >$cache_file
2111 fi
2112
2113 # Check that the precious variables saved in the cache have kept the same
2114 # value.
2115 ac_cache_corrupted=false
2116 for ac_var in $ac_precious_vars; do
2117   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2118   eval ac_new_set=\$ac_env_${ac_var}_set
2119   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2120   eval ac_new_val=\$ac_env_${ac_var}_value
2121   case $ac_old_set,$ac_new_set in
2122     set,)
2123       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2124 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2125       ac_cache_corrupted=: ;;
2126     ,set)
2127       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2128 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2129       ac_cache_corrupted=: ;;
2130     ,);;
2131     *)
2132       if test "x$ac_old_val" != "x$ac_new_val"; then
2133         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2134 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2135         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2136 echo "$as_me:   former value:  $ac_old_val" >&2;}
2137         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2138 echo "$as_me:   current value: $ac_new_val" >&2;}
2139         ac_cache_corrupted=:
2140       fi;;
2141   esac
2142   # Pass precious variables to config.status.
2143   if test "$ac_new_set" = set; then
2144     case $ac_new_val in
2145     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2146     *) ac_arg=$ac_var=$ac_new_val ;;
2147     esac
2148     case " $ac_configure_args " in
2149       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2150       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2151     esac
2152   fi
2153 done
2154 if $ac_cache_corrupted; then
2155   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2156 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2158 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2159    { (exit 1); exit 1; }; }
2160 fi
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178 ac_ext=c
2179 ac_cpp='$CPP $CPPFLAGS'
2180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2183
2184
2185 BUILD_DIR=`pwd`
2186 cd ..
2187 TOP_DIR=`pwd`
2188 cd ${BUILD_DIR}
2189
2190
2191 ac_aux_dir=
2192 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2193   if test -f "$ac_dir/install-sh"; then
2194     ac_aux_dir=$ac_dir
2195     ac_install_sh="$ac_aux_dir/install-sh -c"
2196     break
2197   elif test -f "$ac_dir/install.sh"; then
2198     ac_aux_dir=$ac_dir
2199     ac_install_sh="$ac_aux_dir/install.sh -c"
2200     break
2201   elif test -f "$ac_dir/shtool"; then
2202     ac_aux_dir=$ac_dir
2203     ac_install_sh="$ac_aux_dir/shtool install -c"
2204     break
2205   fi
2206 done
2207 if test -z "$ac_aux_dir"; then
2208   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2209 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2210    { (exit 1); exit 1; }; }
2211 fi
2212
2213 # These three variables are undocumented and unsupported,
2214 # and are intended to be withdrawn in a future Autoconf release.
2215 # They can cause serious problems if a builder's source tree is in a directory
2216 # whose full name contains unusual characters.
2217 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2218 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2219 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2220
2221
2222 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2223
2224
2225
2226
2227
2228 for ac_prog in true
2229 do
2230   # Extract the first word of "$ac_prog", so it can be a program name with args.
2231 set dummy $ac_prog; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   case $TRUEPRG in
2238   [\\/]* | ?:[\\/]*)
2239   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2240   ;;
2241   *)
2242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2244 do
2245   IFS=$as_save_IFS
2246   test -z "$as_dir" && as_dir=.
2247   for ac_exec_ext in '' $ac_executable_extensions; do
2248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251     break 2
2252   fi
2253 done
2254 done
2255 IFS=$as_save_IFS
2256
2257   ;;
2258 esac
2259 fi
2260 TRUEPRG=$ac_cv_path_TRUEPRG
2261 if test -n "$TRUEPRG"; then
2262   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2263 echo "${ECHO_T}$TRUEPRG" >&6; }
2264 else
2265   { echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6; }
2267 fi
2268
2269
2270   test -n "$TRUEPRG" && break
2271 done
2272 test -n "$TRUEPRG" || TRUEPRG=":"
2273
2274 for ac_prog in false
2275 do
2276   # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2281   echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283   case $FALSEPRG in
2284   [\\/]* | ?:[\\/]*)
2285   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2286   ;;
2287   *)
2288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   for ac_exec_ext in '' $ac_executable_extensions; do
2294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297     break 2
2298   fi
2299 done
2300 done
2301 IFS=$as_save_IFS
2302
2303   ;;
2304 esac
2305 fi
2306 FALSEPRG=$ac_cv_path_FALSEPRG
2307 if test -n "$FALSEPRG"; then
2308   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2309 echo "${ECHO_T}$FALSEPRG" >&6; }
2310 else
2311   { echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6; }
2313 fi
2314
2315
2316   test -n "$FALSEPRG" && break
2317 done
2318 test -n "$FALSEPRG" || FALSEPRG=":"
2319
2320
2321
2322 post_host=
2323 if test "x$BACULA" != x; then
2324    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2325 fi
2326 BACULA=${BACULA-Bacula}
2327 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2328 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2329 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2330 echo "configuring for ${BACULA} $VERSION ($DATE)"
2331
2332
2333 ac_ext=c
2334 ac_cpp='$CPP $CPPFLAGS'
2335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 if test -n "$ac_tool_prefix"; then
2339   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2340 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346   if test -n "$CC"; then
2347   ac_cv_prog_CC="$CC" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352   IFS=$as_save_IFS
2353   test -z "$as_dir" && as_dir=.
2354   for ac_exec_ext in '' $ac_executable_extensions; do
2355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358     break 2
2359   fi
2360 done
2361 done
2362 IFS=$as_save_IFS
2363
2364 fi
2365 fi
2366 CC=$ac_cv_prog_CC
2367 if test -n "$CC"; then
2368   { echo "$as_me:$LINENO: result: $CC" >&5
2369 echo "${ECHO_T}$CC" >&6; }
2370 else
2371   { echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6; }
2373 fi
2374
2375
2376 fi
2377 if test -z "$ac_cv_prog_CC"; then
2378   ac_ct_CC=$CC
2379   # Extract the first word of "gcc", so it can be a program name with args.
2380 set dummy gcc; ac_word=$2
2381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2384   echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386   if test -n "$ac_ct_CC"; then
2387   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2388 else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392   IFS=$as_save_IFS
2393   test -z "$as_dir" && as_dir=.
2394   for ac_exec_ext in '' $ac_executable_extensions; do
2395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396     ac_cv_prog_ac_ct_CC="gcc"
2397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398     break 2
2399   fi
2400 done
2401 done
2402 IFS=$as_save_IFS
2403
2404 fi
2405 fi
2406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2407 if test -n "$ac_ct_CC"; then
2408   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2409 echo "${ECHO_T}$ac_ct_CC" >&6; }
2410 else
2411   { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2413 fi
2414
2415   if test "x$ac_ct_CC" = x; then
2416     CC=""
2417   else
2418     case $cross_compiling:$ac_tool_warned in
2419 yes:)
2420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet.  If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&5
2423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet.  If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2426 ac_tool_warned=yes ;;
2427 esac
2428     CC=$ac_ct_CC
2429   fi
2430 else
2431   CC="$ac_cv_prog_CC"
2432 fi
2433
2434 if test -z "$CC"; then
2435           if test -n "$ac_tool_prefix"; then
2436     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}cc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   if test -n "$CC"; then
2444   ac_cv_prog_CC="$CC" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   for ac_exec_ext in '' $ac_executable_extensions; do
2452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453     ac_cv_prog_CC="${ac_tool_prefix}cc"
2454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455     break 2
2456   fi
2457 done
2458 done
2459 IFS=$as_save_IFS
2460
2461 fi
2462 fi
2463 CC=$ac_cv_prog_CC
2464 if test -n "$CC"; then
2465   { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2467 else
2468   { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2470 fi
2471
2472
2473   fi
2474 fi
2475 if test -z "$CC"; then
2476   # Extract the first word of "cc", so it can be a program name with args.
2477 set dummy cc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_CC+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   if test -n "$CC"; then
2484   ac_cv_prog_CC="$CC" # Let the user override the test.
2485 else
2486   ac_prog_rejected=no
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490   IFS=$as_save_IFS
2491   test -z "$as_dir" && as_dir=.
2492   for ac_exec_ext in '' $ac_executable_extensions; do
2493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2495        ac_prog_rejected=yes
2496        continue
2497      fi
2498     ac_cv_prog_CC="cc"
2499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500     break 2
2501   fi
2502 done
2503 done
2504 IFS=$as_save_IFS
2505
2506 if test $ac_prog_rejected = yes; then
2507   # We found a bogon in the path, so make sure we never use it.
2508   set dummy $ac_cv_prog_CC
2509   shift
2510   if test $# != 0; then
2511     # We chose a different compiler from the bogus one.
2512     # However, it has the same basename, so the bogon will be chosen
2513     # first if we set CC to just the basename; use the full file name.
2514     shift
2515     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2516   fi
2517 fi
2518 fi
2519 fi
2520 CC=$ac_cv_prog_CC
2521 if test -n "$CC"; then
2522   { echo "$as_me:$LINENO: result: $CC" >&5
2523 echo "${ECHO_T}$CC" >&6; }
2524 else
2525   { echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6; }
2527 fi
2528
2529
2530 fi
2531 if test -z "$CC"; then
2532   if test -n "$ac_tool_prefix"; then
2533   for ac_prog in cl.exe
2534   do
2535     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   if test -n "$CC"; then
2543   ac_cv_prog_CC="$CC" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550   for ac_exec_ext in '' $ac_executable_extensions; do
2551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554     break 2
2555   fi
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 fi
2561 fi
2562 CC=$ac_cv_prog_CC
2563 if test -n "$CC"; then
2564   { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2566 else
2567   { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2569 fi
2570
2571
2572     test -n "$CC" && break
2573   done
2574 fi
2575 if test -z "$CC"; then
2576   ac_ct_CC=$CC
2577   for ac_prog in cl.exe
2578 do
2579   # Extract the first word of "$ac_prog", so it can be a program name with args.
2580 set dummy $ac_prog; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2584   echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586   if test -n "$ac_ct_CC"; then
2587   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592   IFS=$as_save_IFS
2593   test -z "$as_dir" && as_dir=.
2594   for ac_exec_ext in '' $ac_executable_extensions; do
2595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596     ac_cv_prog_ac_ct_CC="$ac_prog"
2597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598     break 2
2599   fi
2600 done
2601 done
2602 IFS=$as_save_IFS
2603
2604 fi
2605 fi
2606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2607 if test -n "$ac_ct_CC"; then
2608   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2609 echo "${ECHO_T}$ac_ct_CC" >&6; }
2610 else
2611   { echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6; }
2613 fi
2614
2615
2616   test -n "$ac_ct_CC" && break
2617 done
2618
2619   if test "x$ac_ct_CC" = x; then
2620     CC=""
2621   else
2622     case $cross_compiling:$ac_tool_warned in
2623 yes:)
2624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2625 whose name does not start with the host triplet.  If you think this
2626 configuration is useful to you, please write to autoconf@gnu.org." >&5
2627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2628 whose name does not start with the host triplet.  If you think this
2629 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2630 ac_tool_warned=yes ;;
2631 esac
2632     CC=$ac_ct_CC
2633   fi
2634 fi
2635
2636 fi
2637
2638
2639 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: no acceptable C compiler found in \$PATH
2642 See \`config.log' for more details." >&2;}
2643    { (exit 1); exit 1; }; }
2644
2645 # Provide some information about the compiler.
2646 echo "$as_me:$LINENO: checking for C compiler version" >&5
2647 ac_compiler=`set X $ac_compile; echo $2`
2648 { (ac_try="$ac_compiler --version >&5"
2649 case "(($ac_try" in
2650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651   *) ac_try_echo=$ac_try;;
2652 esac
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654   (eval "$ac_compiler --version >&5") 2>&5
2655   ac_status=$?
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); }
2658 { (ac_try="$ac_compiler -v >&5"
2659 case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_compiler -v >&5") 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }
2668 { (ac_try="$ac_compiler -V >&5"
2669 case "(($ac_try" in
2670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671   *) ac_try_echo=$ac_try;;
2672 esac
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674   (eval "$ac_compiler -V >&5") 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); }
2678
2679 cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h.  */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h.  */
2685
2686 int
2687 main ()
2688 {
2689
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 ac_clean_files_save=$ac_clean_files
2695 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2696 # Try to create an executable without -o first, disregard a.out.
2697 # It will help us diagnose broken compilers, and finding out an intuition
2698 # of exeext.
2699 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2700 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2701 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2702 #
2703 # List of possible output files, starting from the most likely.
2704 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2705 # only as a last resort.  b.out is created by i960 compilers.
2706 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2707 #
2708 # The IRIX 6 linker writes into existing files which may not be
2709 # executable, retaining their permissions.  Remove them first so a
2710 # subsequent execution test works.
2711 ac_rmfiles=
2712 for ac_file in $ac_files
2713 do
2714   case $ac_file in
2715     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2716     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2717   esac
2718 done
2719 rm -f $ac_rmfiles
2720
2721 if { (ac_try="$ac_link_default"
2722 case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_link_default") 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; then
2731   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2732 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2733 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2734 # so that the user can short-circuit this test for compilers unknown to
2735 # Autoconf.
2736 for ac_file in $ac_files ''
2737 do
2738   test -f "$ac_file" || continue
2739   case $ac_file in
2740     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2741         ;;
2742     [ab].out )
2743         # We found the default executable, but exeext='' is most
2744         # certainly right.
2745         break;;
2746     *.* )
2747         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2748         then :; else
2749            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2750         fi
2751         # We set ac_cv_exeext here because the later test for it is not
2752         # safe: cross compilers may not add the suffix if given an `-o'
2753         # argument, so we may need to know it at that point already.
2754         # Even if this section looks crufty: it has the advantage of
2755         # actually working.
2756         break;;
2757     * )
2758         break;;
2759   esac
2760 done
2761 test "$ac_cv_exeext" = no && ac_cv_exeext=
2762
2763 else
2764   ac_file=''
2765 fi
2766
2767 { echo "$as_me:$LINENO: result: $ac_file" >&5
2768 echo "${ECHO_T}$ac_file" >&6; }
2769 if test -z "$ac_file"; then
2770   echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2772
2773 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2774 See \`config.log' for more details." >&5
2775 echo "$as_me: error: C compiler cannot create executables
2776 See \`config.log' for more details." >&2;}
2777    { (exit 77); exit 77; }; }
2778 fi
2779
2780 ac_exeext=$ac_cv_exeext
2781
2782 # Check that the compiler produces executables we can run.  If not, either
2783 # the compiler is broken, or we cross compile.
2784 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2785 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2786 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2787 # If not cross compiling, check that we can run a simple program.
2788 if test "$cross_compiling" != yes; then
2789   if { ac_try='./$ac_file'
2790   { (case "(($ac_try" in
2791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792   *) ac_try_echo=$ac_try;;
2793 esac
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795   (eval "$ac_try") 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; }; then
2799     cross_compiling=no
2800   else
2801     if test "$cross_compiling" = maybe; then
2802         cross_compiling=yes
2803     else
2804         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2805 If you meant to cross compile, use \`--host'.
2806 See \`config.log' for more details." >&5
2807 echo "$as_me: error: cannot run C compiled programs.
2808 If you meant to cross compile, use \`--host'.
2809 See \`config.log' for more details." >&2;}
2810    { (exit 1); exit 1; }; }
2811     fi
2812   fi
2813 fi
2814 { echo "$as_me:$LINENO: result: yes" >&5
2815 echo "${ECHO_T}yes" >&6; }
2816
2817 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2818 ac_clean_files=$ac_clean_files_save
2819 # Check that the compiler produces executables we can run.  If not, either
2820 # the compiler is broken, or we cross compile.
2821 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2822 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2823 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2824 echo "${ECHO_T}$cross_compiling" >&6; }
2825
2826 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2827 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2828 if { (ac_try="$ac_link"
2829 case "(($ac_try" in
2830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831   *) ac_try_echo=$ac_try;;
2832 esac
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834   (eval "$ac_link") 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }; then
2838   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2839 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2840 # work properly (i.e., refer to `conftest.exe'), while it won't with
2841 # `rm'.
2842 for ac_file in conftest.exe conftest conftest.*; do
2843   test -f "$ac_file" || continue
2844   case $ac_file in
2845     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2846     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847           break;;
2848     * ) break;;
2849   esac
2850 done
2851 else
2852   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2853 See \`config.log' for more details." >&5
2854 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2855 See \`config.log' for more details." >&2;}
2856    { (exit 1); exit 1; }; }
2857 fi
2858
2859 rm -f conftest$ac_cv_exeext
2860 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2861 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2862
2863 rm -f conftest.$ac_ext
2864 EXEEXT=$ac_cv_exeext
2865 ac_exeext=$EXEEXT
2866 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2867 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2868 if test "${ac_cv_objext+set}" = set; then
2869   echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871   cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h.  */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h.  */
2877
2878 int
2879 main ()
2880 {
2881
2882   ;
2883   return 0;
2884 }
2885 _ACEOF
2886 rm -f conftest.o conftest.obj
2887 if { (ac_try="$ac_compile"
2888 case "(($ac_try" in
2889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890   *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893   (eval "$ac_compile") 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }; then
2897   for ac_file in conftest.o conftest.obj conftest.*; do
2898   test -f "$ac_file" || continue;
2899   case $ac_file in
2900     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2901     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2902        break;;
2903   esac
2904 done
2905 else
2906   echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2910 See \`config.log' for more details." >&5
2911 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2912 See \`config.log' for more details." >&2;}
2913    { (exit 1); exit 1; }; }
2914 fi
2915
2916 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2917 fi
2918 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2919 echo "${ECHO_T}$ac_cv_objext" >&6; }
2920 OBJEXT=$ac_cv_objext
2921 ac_objext=$OBJEXT
2922 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2924 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933
2934 int
2935 main ()
2936 {
2937 #ifndef __GNUC__
2938        choke me
2939 #endif
2940
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 rm -f conftest.$ac_objext
2946 if { (ac_try="$ac_compile"
2947 case "(($ac_try" in
2948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949   *) ac_try_echo=$ac_try;;
2950 esac
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952   (eval "$ac_compile") 2>conftest.er1
2953   ac_status=$?
2954   grep -v '^ *+' conftest.er1 >conftest.err
2955   rm -f conftest.er1
2956   cat conftest.err >&5
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); } && {
2959          test -z "$ac_c_werror_flag" ||
2960          test ! -s conftest.err
2961        } && test -s conftest.$ac_objext; then
2962   ac_compiler_gnu=yes
2963 else
2964   echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2966
2967         ac_compiler_gnu=no
2968 fi
2969
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2972
2973 fi
2974 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2975 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2976 GCC=`test $ac_compiler_gnu = yes && echo yes`
2977 ac_test_CFLAGS=${CFLAGS+set}
2978 ac_save_CFLAGS=$CFLAGS
2979 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2980 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_cc_g+set}" = set; then
2982   echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984   ac_save_c_werror_flag=$ac_c_werror_flag
2985    ac_c_werror_flag=yes
2986    ac_cv_prog_cc_g=no
2987    CFLAGS="-g"
2988    cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h.  */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h.  */
2994
2995 int
2996 main ()
2997 {
2998
2999   ;
3000   return 0;
3001 }
3002 _ACEOF
3003 rm -f conftest.$ac_objext
3004 if { (ac_try="$ac_compile"
3005 case "(($ac_try" in
3006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007   *) ac_try_echo=$ac_try;;
3008 esac
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010   (eval "$ac_compile") 2>conftest.er1
3011   ac_status=$?
3012   grep -v '^ *+' conftest.er1 >conftest.err
3013   rm -f conftest.er1
3014   cat conftest.err >&5
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); } && {
3017          test -z "$ac_c_werror_flag" ||
3018          test ! -s conftest.err
3019        } && test -s conftest.$ac_objext; then
3020   ac_cv_prog_cc_g=yes
3021 else
3022   echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3024
3025         CFLAGS=""
3026       cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h.  */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h.  */
3032
3033 int
3034 main ()
3035 {
3036
3037   ;
3038   return 0;
3039 }
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3043 case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_compile") 2>conftest.er1
3049   ac_status=$?
3050   grep -v '^ *+' conftest.er1 >conftest.err
3051   rm -f conftest.er1
3052   cat conftest.err >&5
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } && {
3055          test -z "$ac_c_werror_flag" ||
3056          test ! -s conftest.err
3057        } && test -s conftest.$ac_objext; then
3058   :
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3062
3063         ac_c_werror_flag=$ac_save_c_werror_flag
3064          CFLAGS="-g"
3065          cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h.  */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h.  */
3071
3072 int
3073 main ()
3074 {
3075
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_compile") 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } && {
3094          test -z "$ac_c_werror_flag" ||
3095          test ! -s conftest.err
3096        } && test -s conftest.$ac_objext; then
3097   ac_cv_prog_cc_g=yes
3098 else
3099   echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102
3103 fi
3104
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 fi
3107
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 fi
3110
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112    ac_c_werror_flag=$ac_save_c_werror_flag
3113 fi
3114 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3116 if test "$ac_test_CFLAGS" = set; then
3117   CFLAGS=$ac_save_CFLAGS
3118 elif test $ac_cv_prog_cc_g = yes; then
3119   if test "$GCC" = yes; then
3120     CFLAGS="-g -O2"
3121   else
3122     CFLAGS="-g"
3123   fi
3124 else
3125   if test "$GCC" = yes; then
3126     CFLAGS="-O2"
3127   else
3128     CFLAGS=
3129   fi
3130 fi
3131 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3132 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3133 if test "${ac_cv_prog_cc_c89+set}" = set; then
3134   echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136   ac_cv_prog_cc_c89=no
3137 ac_save_CC=$CC
3138 cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h.  */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h.  */
3144 #include <stdarg.h>
3145 #include <stdio.h>
3146 #include <sys/types.h>
3147 #include <sys/stat.h>
3148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3149 struct buf { int x; };
3150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3151 static char *e (p, i)
3152      char **p;
3153      int i;
3154 {
3155   return p[i];
3156 }
3157 static char *f (char * (*g) (char **, int), char **p, ...)
3158 {
3159   char *s;
3160   va_list v;
3161   va_start (v,p);
3162   s = g (p, va_arg (v,int));
3163   va_end (v);
3164   return s;
3165 }
3166
3167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3168    function prototypes and stuff, but not '\xHH' hex character constants.
3169    These don't provoke an error unfortunately, instead are silently treated
3170    as 'x'.  The following induces an error, until -std is added to get
3171    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3172    array size at least.  It's necessary to write '\x00'==0 to get something
3173    that's true only with -std.  */
3174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3175
3176 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3177    inside strings and character constants.  */
3178 #define FOO(x) 'x'
3179 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3180
3181 int test (int i, double x);
3182 struct s1 {int (*f) (int a);};
3183 struct s2 {int (*f) (double a);};
3184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3185 int argc;
3186 char **argv;
3187 int
3188 main ()
3189 {
3190 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3196         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3197 do
3198   CC="$ac_save_CC $ac_arg"
3199   rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3201 case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206   (eval "$ac_compile") 2>conftest.er1
3207   ac_status=$?
3208   grep -v '^ *+' conftest.er1 >conftest.err
3209   rm -f conftest.er1
3210   cat conftest.err >&5
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); } && {
3213          test -z "$ac_c_werror_flag" ||
3214          test ! -s conftest.err
3215        } && test -s conftest.$ac_objext; then
3216   ac_cv_prog_cc_c89=$ac_arg
3217 else
3218   echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3220
3221
3222 fi
3223
3224 rm -f core conftest.err conftest.$ac_objext
3225   test "x$ac_cv_prog_cc_c89" != "xno" && break
3226 done
3227 rm -f conftest.$ac_ext
3228 CC=$ac_save_CC
3229
3230 fi
3231 # AC_CACHE_VAL
3232 case "x$ac_cv_prog_cc_c89" in
3233   x)
3234     { echo "$as_me:$LINENO: result: none needed" >&5
3235 echo "${ECHO_T}none needed" >&6; } ;;
3236   xno)
3237     { echo "$as_me:$LINENO: result: unsupported" >&5
3238 echo "${ECHO_T}unsupported" >&6; } ;;
3239   *)
3240     CC="$CC $ac_cv_prog_cc_c89"
3241     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3242 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3243 esac
3244
3245
3246 ac_ext=c
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251
3252 ac_ext=cpp
3253 ac_cpp='$CXXCPP $CPPFLAGS'
3254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3257 if test -z "$CXX"; then
3258   if test -n "$CCC"; then
3259     CXX=$CCC
3260   else
3261     if test -n "$ac_tool_prefix"; then
3262   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3263   do
3264     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3268 if test "${ac_cv_prog_CXX+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   if test -n "$CXX"; then
3272   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277   IFS=$as_save_IFS
3278   test -z "$as_dir" && as_dir=.
3279   for ac_exec_ext in '' $ac_executable_extensions; do
3280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283     break 2
3284   fi
3285 done
3286 done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 CXX=$ac_cv_prog_CXX
3292 if test -n "$CXX"; then
3293   { echo "$as_me:$LINENO: result: $CXX" >&5
3294 echo "${ECHO_T}$CXX" >&6; }
3295 else
3296   { echo "$as_me:$LINENO: result: no" >&5
3297 echo "${ECHO_T}no" >&6; }
3298 fi
3299
3300
3301     test -n "$CXX" && break
3302   done
3303 fi
3304 if test -z "$CXX"; then
3305   ac_ct_CXX=$CXX
3306   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3307 do
3308   # Extract the first word of "$ac_prog", so it can be a program name with args.
3309 set dummy $ac_prog; ac_word=$2
3310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3312 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   if test -n "$ac_ct_CXX"; then
3316   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321   IFS=$as_save_IFS
3322   test -z "$as_dir" && as_dir=.
3323   for ac_exec_ext in '' $ac_executable_extensions; do
3324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325     ac_cv_prog_ac_ct_CXX="$ac_prog"
3326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327     break 2
3328   fi
3329 done
3330 done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3336 if test -n "$ac_ct_CXX"; then
3337   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3338 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3339 else
3340   { echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6; }
3342 fi
3343
3344
3345   test -n "$ac_ct_CXX" && break
3346 done
3347
3348   if test "x$ac_ct_CXX" = x; then
3349     CXX="g++"
3350   else
3351     case $cross_compiling:$ac_tool_warned in
3352 yes:)
3353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3354 whose name does not start with the host triplet.  If you think this
3355 configuration is useful to you, please write to autoconf@gnu.org." >&5
3356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3357 whose name does not start with the host triplet.  If you think this
3358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3359 ac_tool_warned=yes ;;
3360 esac
3361     CXX=$ac_ct_CXX
3362   fi
3363 fi
3364
3365   fi
3366 fi
3367 # Provide some information about the compiler.
3368 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3369 ac_compiler=`set X $ac_compile; echo $2`
3370 { (ac_try="$ac_compiler --version >&5"
3371 case "(($ac_try" in
3372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373   *) ac_try_echo=$ac_try;;
3374 esac
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376   (eval "$ac_compiler --version >&5") 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); }
3380 { (ac_try="$ac_compiler -v >&5"
3381 case "(($ac_try" in
3382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383   *) ac_try_echo=$ac_try;;
3384 esac
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386   (eval "$ac_compiler -v >&5") 2>&5
3387   ac_status=$?
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); }
3390 { (ac_try="$ac_compiler -V >&5"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_compiler -V >&5") 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }
3400
3401 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3402 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3403 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3404   echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406   cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412
3413 int
3414 main ()
3415 {
3416 #ifndef __GNUC__
3417        choke me
3418 #endif
3419
3420   ;
3421   return 0;
3422 }
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_compile") 2>conftest.er1
3432   ac_status=$?
3433   grep -v '^ *+' conftest.er1 >conftest.err
3434   rm -f conftest.er1
3435   cat conftest.err >&5
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); } && {
3438          test -z "$ac_cxx_werror_flag" ||
3439          test ! -s conftest.err
3440        } && test -s conftest.$ac_objext; then
3441   ac_compiler_gnu=yes
3442 else
3443   echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3445
3446         ac_compiler_gnu=no
3447 fi
3448
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3451
3452 fi
3453 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3454 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3455 GXX=`test $ac_compiler_gnu = yes && echo yes`
3456 ac_test_CXXFLAGS=${CXXFLAGS+set}
3457 ac_save_CXXFLAGS=$CXXFLAGS
3458 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3459 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3460 if test "${ac_cv_prog_cxx_g+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3464    ac_cxx_werror_flag=yes
3465    ac_cv_prog_cxx_g=no
3466    CXXFLAGS="-g"
3467    cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h.  */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h.  */
3473
3474 int
3475 main ()
3476 {
3477
3478   ;
3479   return 0;
3480 }
3481 _ACEOF
3482 rm -f conftest.$ac_objext
3483 if { (ac_try="$ac_compile"
3484 case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489   (eval "$ac_compile") 2>conftest.er1
3490   ac_status=$?
3491   grep -v '^ *+' conftest.er1 >conftest.err
3492   rm -f conftest.er1
3493   cat conftest.err >&5
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); } && {
3496          test -z "$ac_cxx_werror_flag" ||
3497          test ! -s conftest.err
3498        } && test -s conftest.$ac_objext; then
3499   ac_cv_prog_cxx_g=yes
3500 else
3501   echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504         CXXFLAGS=""
3505       cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511
3512 int
3513 main ()
3514 {
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527   (eval "$ac_compile") 2>conftest.er1
3528   ac_status=$?
3529   grep -v '^ *+' conftest.er1 >conftest.err
3530   rm -f conftest.er1
3531   cat conftest.err >&5
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); } && {
3534          test -z "$ac_cxx_werror_flag" ||
3535          test ! -s conftest.err
3536        } && test -s conftest.$ac_objext; then
3537   :
3538 else
3539   echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3543          CXXFLAGS="-g"
3544          cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h.  */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h.  */
3550
3551 int
3552 main ()
3553 {
3554
3555   ;
3556   return 0;
3557 }
3558 _ACEOF
3559 rm -f conftest.$ac_objext
3560 if { (ac_try="$ac_compile"
3561 case "(($ac_try" in
3562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563   *) ac_try_echo=$ac_try;;
3564 esac
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566   (eval "$ac_compile") 2>conftest.er1
3567   ac_status=$?
3568   grep -v '^ *+' conftest.er1 >conftest.err
3569   rm -f conftest.er1
3570   cat conftest.err >&5
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); } && {
3573          test -z "$ac_cxx_werror_flag" ||
3574          test ! -s conftest.err
3575        } && test -s conftest.$ac_objext; then
3576   ac_cv_prog_cxx_g=yes
3577 else
3578   echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3580
3581
3582 fi
3583
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 fi
3586
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 fi
3589
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3592 fi
3593 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3594 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3595 if test "$ac_test_CXXFLAGS" = set; then
3596   CXXFLAGS=$ac_save_CXXFLAGS
3597 elif test $ac_cv_prog_cxx_g = yes; then
3598   if test "$GXX" = yes; then
3599     CXXFLAGS="-g -O2"
3600   else
3601     CXXFLAGS="-g"
3602   fi
3603 else
3604   if test "$GXX" = yes; then
3605     CXXFLAGS="-O2"
3606   else
3607     CXXFLAGS=
3608   fi
3609 fi
3610 ac_ext=c
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615
3616 if test "x$CC" != xcc; then
3617   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3618 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3619 else
3620   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3621 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3622 fi
3623 set dummy $CC; ac_cc=`echo $2 |
3624                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3625 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3626   echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628   cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h.  */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h.  */
3634
3635 int
3636 main ()
3637 {
3638
3639   ;
3640   return 0;
3641 }
3642 _ACEOF
3643 # Make sure it works both with $CC and with simple cc.
3644 # We do the test twice because some compilers refuse to overwrite an
3645 # existing .o file with -o, though they will create one.
3646 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3647 rm -f conftest2.*
3648 if { (case "(($ac_try" in
3649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650   *) ac_try_echo=$ac_try;;
3651 esac
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653   (eval "$ac_try") 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); } &&
3657    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659   *) ac_try_echo=$ac_try;;
3660 esac
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662   (eval "$ac_try") 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); };
3666 then
3667   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3668   if test "x$CC" != xcc; then
3669     # Test first that cc exists at all.
3670     if { ac_try='cc -c conftest.$ac_ext >&5'
3671   { (case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676   (eval "$ac_try") 2>&5
3677   ac_status=$?
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); }; }; then
3680       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3681       rm -f conftest2.*
3682       if { (case "(($ac_try" in
3683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684   *) ac_try_echo=$ac_try;;
3685 esac
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687   (eval "$ac_try") 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); } &&
3691          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693   *) ac_try_echo=$ac_try;;
3694 esac
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696   (eval "$ac_try") 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); };
3700       then
3701         # cc works too.
3702         :
3703       else
3704         # cc exists but doesn't like -o.
3705         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3706       fi
3707     fi
3708   fi
3709 else
3710   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3711 fi
3712 rm -f core conftest*
3713
3714 fi
3715 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3716   { echo "$as_me:$LINENO: result: yes" >&5
3717 echo "${ECHO_T}yes" >&6; }
3718 else
3719   { echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6; }
3721
3722 cat >>confdefs.h <<\_ACEOF
3723 #define NO_MINUS_C_MINUS_O 1
3724 _ACEOF
3725
3726 fi
3727
3728 ac_ext=c
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3734 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3735 # On Suns, sometimes $CPP names a directory.
3736 if test -n "$CPP" && test -d "$CPP"; then
3737   CPP=
3738 fi
3739 if test -z "$CPP"; then
3740   if test "${ac_cv_prog_CPP+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743       # Double quotes because CPP needs to be expanded
3744     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3745     do
3746       ac_preproc_ok=false
3747 for ac_c_preproc_warn_flag in '' yes
3748 do
3749   # Use a header file that comes with gcc, so configuring glibc
3750   # with a fresh cross-compiler works.
3751   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3752   # <limits.h> exists even on freestanding compilers.
3753   # On the NeXT, cc -E runs the code through the compiler's parser,
3754   # not just through cpp. "Syntax error" is here to catch this case.
3755   cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h.  */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h.  */
3761 #ifdef __STDC__
3762 # include <limits.h>
3763 #else
3764 # include <assert.h>
3765 #endif
3766                      Syntax error
3767 _ACEOF
3768 if { (ac_try="$ac_cpp conftest.$ac_ext"
3769 case "(($ac_try" in
3770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771   *) ac_try_echo=$ac_try;;
3772 esac
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3775   ac_status=$?
3776   grep -v '^ *+' conftest.er1 >conftest.err
3777   rm -f conftest.er1
3778   cat conftest.err >&5
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); } >/dev/null && {
3781          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3782          test ! -s conftest.err
3783        }; then
3784   :
3785 else
3786   echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3788
3789   # Broken: fails on valid input.
3790 continue
3791 fi
3792
3793 rm -f conftest.err conftest.$ac_ext
3794
3795   # OK, works on sane cases.  Now check whether nonexistent headers
3796   # can be detected and how.
3797   cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h.  */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h.  */
3803 #include <ac_nonexistent.h>
3804 _ACEOF
3805 if { (ac_try="$ac_cpp conftest.$ac_ext"
3806 case "(($ac_try" in
3807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808   *) ac_try_echo=$ac_try;;
3809 esac
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3812   ac_status=$?
3813   grep -v '^ *+' conftest.er1 >conftest.err
3814   rm -f conftest.er1
3815   cat conftest.err >&5
3816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); } >/dev/null && {
3818          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3819          test ! -s conftest.err
3820        }; then
3821   # Broken: success on invalid input.
3822 continue
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827   # Passes both tests.
3828 ac_preproc_ok=:
3829 break
3830 fi
3831
3832 rm -f conftest.err conftest.$ac_ext
3833
3834 done
3835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836 rm -f conftest.err conftest.$ac_ext
3837 if $ac_preproc_ok; then
3838   break
3839 fi
3840
3841     done
3842     ac_cv_prog_CPP=$CPP
3843
3844 fi
3845   CPP=$ac_cv_prog_CPP
3846 else
3847   ac_cv_prog_CPP=$CPP
3848 fi
3849 { echo "$as_me:$LINENO: result: $CPP" >&5
3850 echo "${ECHO_T}$CPP" >&6; }
3851 ac_preproc_ok=false
3852 for ac_c_preproc_warn_flag in '' yes
3853 do
3854   # Use a header file that comes with gcc, so configuring glibc
3855   # with a fresh cross-compiler works.
3856   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3857   # <limits.h> exists even on freestanding compilers.
3858   # On the NeXT, cc -E runs the code through the compiler's parser,
3859   # not just through cpp. "Syntax error" is here to catch this case.
3860   cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h.  */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h.  */
3866 #ifdef __STDC__
3867 # include <limits.h>
3868 #else
3869 # include <assert.h>
3870 #endif
3871                      Syntax error
3872 _ACEOF
3873 if { (ac_try="$ac_cpp conftest.$ac_ext"
3874 case "(($ac_try" in
3875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876   *) ac_try_echo=$ac_try;;
3877 esac
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3880   ac_status=$?
3881   grep -v '^ *+' conftest.er1 >conftest.err
3882   rm -f conftest.er1
3883   cat conftest.err >&5
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); } >/dev/null && {
3886          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3887          test ! -s conftest.err
3888        }; then
3889   :
3890 else
3891   echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3893
3894   # Broken: fails on valid input.
3895 continue
3896 fi
3897
3898 rm -f conftest.err conftest.$ac_ext
3899
3900   # OK, works on sane cases.  Now check whether nonexistent headers
3901   # can be detected and how.
3902   cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908 #include <ac_nonexistent.h>
3909 _ACEOF
3910 if { (ac_try="$ac_cpp conftest.$ac_ext"
3911 case "(($ac_try" in
3912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913   *) ac_try_echo=$ac_try;;
3914 esac
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3917   ac_status=$?
3918   grep -v '^ *+' conftest.er1 >conftest.err
3919   rm -f conftest.er1
3920   cat conftest.err >&5
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); } >/dev/null && {
3923          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924          test ! -s conftest.err
3925        }; then
3926   # Broken: success on invalid input.
3927 continue
3928 else
3929   echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3931
3932   # Passes both tests.
3933 ac_preproc_ok=:
3934 break
3935 fi
3936
3937 rm -f conftest.err conftest.$ac_ext
3938
3939 done
3940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3941 rm -f conftest.err conftest.$ac_ext
3942 if $ac_preproc_ok; then
3943   :
3944 else
3945   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3946 See \`config.log' for more details." >&5
3947 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3948 See \`config.log' for more details." >&2;}
3949    { (exit 1); exit 1; }; }
3950 fi
3951
3952 ac_ext=c
3953 ac_cpp='$CPP $CPPFLAGS'
3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957
3958
3959 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3960 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3961 if test "${ac_cv_path_GREP+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   # Extract the first word of "grep ggrep" to use in msg output
3965 if test -z "$GREP"; then
3966 set dummy grep ggrep; ac_prog_name=$2
3967 if test "${ac_cv_path_GREP+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   ac_path_GREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 do
3975   IFS=$as_save_IFS
3976   test -z "$as_dir" && as_dir=.
3977   for ac_prog in grep ggrep; do
3978   for ac_exec_ext in '' $ac_executable_extensions; do
3979     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3980     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3981     # Check for GNU ac_path_GREP and select it if it is found.
3982   # Check for GNU $ac_path_GREP
3983 case `"$ac_path_GREP" --version 2>&1` in
3984 *GNU*)
3985   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3986 *)
3987   ac_count=0
3988   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989   while :
3990   do
3991     cat "conftest.in" "conftest.in" >"conftest.tmp"
3992     mv "conftest.tmp" "conftest.in"
3993     cp "conftest.in" "conftest.nl"
3994     echo 'GREP' >> "conftest.nl"
3995     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997     ac_count=`expr $ac_count + 1`
3998     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3999       # Best one so far, save it but keep looking for a better one
4000       ac_cv_path_GREP="$ac_path_GREP"
4001       ac_path_GREP_max=$ac_count
4002     fi
4003     # 10*(2^10) chars as input seems more than enough
4004     test $ac_count -gt 10 && break
4005   done
4006   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007 esac
4008
4009
4010     $ac_path_GREP_found && break 3
4011   done
4012 done
4013
4014 done
4015 IFS=$as_save_IFS
4016
4017
4018 fi
4019
4020 GREP="$ac_cv_path_GREP"
4021 if test -z "$GREP"; then
4022   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024    { (exit 1); exit 1; }; }
4025 fi
4026
4027 else
4028   ac_cv_path_GREP=$GREP
4029 fi
4030
4031
4032 fi
4033 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4034 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4035  GREP="$ac_cv_path_GREP"
4036
4037
4038 { echo "$as_me:$LINENO: checking for egrep" >&5
4039 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4040 if test "${ac_cv_path_EGREP+set}" = set; then
4041   echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4044    then ac_cv_path_EGREP="$GREP -E"
4045    else
4046      # Extract the first word of "egrep" to use in msg output
4047 if test -z "$EGREP"; then
4048 set dummy egrep; ac_prog_name=$2
4049 if test "${ac_cv_path_EGREP+set}" = set; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   ac_path_EGREP_found=false
4053 # Loop through the user's path and test for each of PROGNAME-LIST
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056 do
4057   IFS=$as_save_IFS
4058   test -z "$as_dir" && as_dir=.
4059   for ac_prog in egrep; do
4060   for ac_exec_ext in '' $ac_executable_extensions; do
4061     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4062     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4063     # Check for GNU ac_path_EGREP and select it if it is found.
4064   # Check for GNU $ac_path_EGREP
4065 case `"$ac_path_EGREP" --version 2>&1` in
4066 *GNU*)
4067   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4068 *)
4069   ac_count=0
4070   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4071   while :
4072   do
4073     cat "conftest.in" "conftest.in" >"conftest.tmp"
4074     mv "conftest.tmp" "conftest.in"
4075     cp "conftest.in" "conftest.nl"
4076     echo 'EGREP' >> "conftest.nl"
4077     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079     ac_count=`expr $ac_count + 1`
4080     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4081       # Best one so far, save it but keep looking for a better one
4082       ac_cv_path_EGREP="$ac_path_EGREP"
4083       ac_path_EGREP_max=$ac_count
4084     fi
4085     # 10*(2^10) chars as input seems more than enough
4086     test $ac_count -gt 10 && break
4087   done
4088   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089 esac
4090
4091
4092     $ac_path_EGREP_found && break 3
4093   done
4094 done
4095
4096 done
4097 IFS=$as_save_IFS
4098
4099
4100 fi
4101
4102 EGREP="$ac_cv_path_EGREP"
4103 if test -z "$EGREP"; then
4104   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4105 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4106    { (exit 1); exit 1; }; }
4107 fi
4108
4109 else
4110   ac_cv_path_EGREP=$EGREP
4111 fi
4112
4113
4114    fi
4115 fi
4116 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4117 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4118  EGREP="$ac_cv_path_EGREP"
4119
4120
4121 if test $ac_cv_c_compiler_gnu = yes; then
4122     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4123 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4124 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127     ac_pattern="Autoconf.*'x'"
4128   cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h.  */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h.  */
4134 #include <sgtty.h>
4135 Autoconf TIOCGETP
4136 _ACEOF
4137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4138   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4139   ac_cv_prog_gcc_traditional=yes
4140 else
4141   ac_cv_prog_gcc_traditional=no
4142 fi
4143 rm -f conftest*
4144
4145
4146   if test $ac_cv_prog_gcc_traditional = no; then
4147     cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h.  */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h.  */
4153 #include <termio.h>
4154 Autoconf TCGETA
4155 _ACEOF
4156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4157   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4158   ac_cv_prog_gcc_traditional=yes
4159 fi
4160 rm -f conftest*
4161
4162   fi
4163 fi
4164 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4165 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4166   if test $ac_cv_prog_gcc_traditional = yes; then
4167     CC="$CC -traditional"
4168   fi
4169 fi
4170
4171 BASECC=`basename $CC`
4172 have_gcc=no
4173 if test "x$BASECC" = xgcc; then
4174    cat >>confdefs.h <<\_ACEOF
4175 #define HAVE_GCC 1
4176 _ACEOF
4177
4178    have_gcc=yes
4179 fi
4180 # Extract the first word of "$CXX", so it can be a program name with args.
4181 set dummy $CXX; ac_word=$2
4182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4184 if test "${ac_cv_path_CXX+set}" = set; then
4185   echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187   case $CXX in
4188   [\\/]* | ?:[\\/]*)
4189   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4190   ;;
4191   *)
4192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195   IFS=$as_save_IFS
4196   test -z "$as_dir" && as_dir=.
4197   for ac_exec_ext in '' $ac_executable_extensions; do
4198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4199     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4201     break 2
4202   fi
4203 done
4204 done
4205 IFS=$as_save_IFS
4206
4207   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4208   ;;
4209 esac
4210 fi
4211 CXX=$ac_cv_path_CXX
4212 if test -n "$CXX"; then
4213   { echo "$as_me:$LINENO: result: $CXX" >&5
4214 echo "${ECHO_T}$CXX" >&6; }
4215 else
4216   { echo "$as_me:$LINENO: result: no" >&5
4217 echo "${ECHO_T}no" >&6; }
4218 fi
4219
4220
4221 if test ! -e $CXX; then
4222    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4223 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4224    { (exit 1); exit 1; }; }
4225 fi
4226
4227 # Find a good install program.  We prefer a C program (faster),
4228 # so one script is as good as another.  But avoid the broken or
4229 # incompatible versions:
4230 # SysV /etc/install, /usr/sbin/install
4231 # SunOS /usr/etc/install
4232 # IRIX /sbin/install
4233 # AIX /bin/install
4234 # AmigaOS /C/install, which installs bootblocks on floppy discs
4235 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4236 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4237 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4238 # OS/2's system install, which has a completely different semantic
4239 # ./install, which can be erroneously created by make from ./install.sh.
4240 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4241 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4242 if test -z "$INSTALL"; then
4243 if test "${ac_cv_path_install+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251   # Account for people who put trailing slashes in PATH elements.
4252 case $as_dir/ in
4253   ./ | .// | /cC/* | \
4254   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4255   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4256   /usr/ucb/* ) ;;
4257   *)
4258     # OSF1 and SCO ODT 3.0 have their own names for install.
4259     # Don't use installbsd from OSF since it installs stuff as root
4260     # by default.
4261     for ac_prog in ginstall scoinst install; do
4262       for ac_exec_ext in '' $ac_executable_extensions; do
4263         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4264           if test $ac_prog = install &&
4265             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4266             # AIX install.  It has an incompatible calling convention.
4267             :
4268           elif test $ac_prog = install &&
4269             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4270             # program-specific install script used by HP pwplus--don't use.
4271             :
4272           else
4273             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4274             break 3
4275           fi
4276         fi
4277       done
4278     done
4279     ;;
4280 esac
4281 done
4282 IFS=$as_save_IFS
4283
4284
4285 fi
4286   if test "${ac_cv_path_install+set}" = set; then
4287     INSTALL=$ac_cv_path_install
4288   else
4289     # As a last resort, use the slow shell script.  Don't cache a
4290     # value for INSTALL within a source directory, because that will
4291     # break other packages using the cache if that directory is
4292     # removed, or if the value is a relative name.
4293     INSTALL=$ac_install_sh
4294   fi
4295 fi
4296 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4297 echo "${ECHO_T}$INSTALL" >&6; }
4298
4299 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4300 # It thinks the first close brace ends the variable substitution.
4301 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4302
4303 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4304
4305 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4306
4307 # Extract the first word of "mv", so it can be a program name with args.
4308 set dummy mv; ac_word=$2
4309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4311 if test "${ac_cv_path_MV+set}" = set; then
4312   echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314   case $MV in
4315   [\\/]* | ?:[\\/]*)
4316   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4317   ;;
4318   *)
4319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324   for ac_exec_ext in '' $ac_executable_extensions; do
4325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4335   ;;
4336 esac
4337 fi
4338 MV=$ac_cv_path_MV
4339 if test -n "$MV"; then
4340   { echo "$as_me:$LINENO: result: $MV" >&5
4341 echo "${ECHO_T}$MV" >&6; }
4342 else
4343   { echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6; }
4345 fi
4346
4347
4348 # Extract the first word of "rm", so it can be a program name with args.
4349 set dummy rm; ac_word=$2
4350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4352 if test "${ac_cv_path_REMOVE+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355   case $REMOVE in
4356   [\\/]* | ?:[\\/]*)
4357   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4358   ;;
4359   *)
4360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363   IFS=$as_save_IFS
4364   test -z "$as_dir" && as_dir=.
4365   for ac_exec_ext in '' $ac_executable_extensions; do
4366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369     break 2
4370   fi
4371 done
4372 done
4373 IFS=$as_save_IFS
4374
4375   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4376   ;;
4377 esac
4378 fi
4379 REMOVE=$ac_cv_path_REMOVE
4380 if test -n "$REMOVE"; then
4381   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4382 echo "${ECHO_T}$REMOVE" >&6; }
4383 else
4384   { echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6; }
4386 fi
4387
4388
4389 # Extract the first word of "cp", so it can be a program name with args.
4390 set dummy cp; ac_word=$2
4391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393 if test "${ac_cv_path_CP+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   case $CP in
4397   [\\/]* | ?:[\\/]*)
4398   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4399   ;;
4400   *)
4401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404   IFS=$as_save_IFS
4405   test -z "$as_dir" && as_dir=.
4406   for ac_exec_ext in '' $ac_executable_extensions; do
4407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410     break 2
4411   fi
4412 done
4413 done
4414 IFS=$as_save_IFS
4415
4416   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4417   ;;
4418 esac
4419 fi
4420 CP=$ac_cv_path_CP
4421 if test -n "$CP"; then
4422   { echo "$as_me:$LINENO: result: $CP" >&5
4423 echo "${ECHO_T}$CP" >&6; }
4424 else
4425   { echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6; }
4427 fi
4428
4429
4430 # Extract the first word of "sed", so it can be a program name with args.
4431 set dummy sed; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_path_SED+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   case $SED in
4438   [\\/]* | ?:[\\/]*)
4439   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4440   ;;
4441   *)
4442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445   IFS=$as_save_IFS
4446   test -z "$as_dir" && as_dir=.
4447   for ac_exec_ext in '' $ac_executable_extensions; do
4448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451     break 2
4452   fi
4453 done
4454 done
4455 IFS=$as_save_IFS
4456
4457   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4458   ;;
4459 esac
4460 fi
4461 SED=$ac_cv_path_SED
4462 if test -n "$SED"; then
4463   { echo "$as_me:$LINENO: result: $SED" >&5
4464 echo "${ECHO_T}$SED" >&6; }
4465 else
4466   { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4468 fi
4469
4470
4471 # Extract the first word of "echo", so it can be a program name with args.
4472 set dummy echo; ac_word=$2
4473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4475 if test "${ac_cv_path_ECHO+set}" = set; then
4476   echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478   case $ECHO in
4479   [\\/]* | ?:[\\/]*)
4480   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4481   ;;
4482   *)
4483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486   IFS=$as_save_IFS
4487   test -z "$as_dir" && as_dir=.
4488   for ac_exec_ext in '' $ac_executable_extensions; do
4489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492     break 2
4493   fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4499   ;;
4500 esac
4501 fi
4502 ECHO=$ac_cv_path_ECHO
4503 if test -n "$ECHO"; then
4504   { echo "$as_me:$LINENO: result: $ECHO" >&5
4505 echo "${ECHO_T}$ECHO" >&6; }
4506 else
4507   { echo "$as_me:$LINENO: result: no" >&5
4508 echo "${ECHO_T}no" >&6; }
4509 fi
4510
4511
4512 # Extract the first word of "cmp", so it can be a program name with args.
4513 set dummy cmp; ac_word=$2
4514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516 if test "${ac_cv_path_CMP+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   case $CMP in
4520   [\\/]* | ?:[\\/]*)
4521   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4522   ;;
4523   *)
4524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527   IFS=$as_save_IFS
4528   test -z "$as_dir" && as_dir=.
4529   for ac_exec_ext in '' $ac_executable_extensions; do
4530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533     break 2
4534   fi
4535 done
4536 done
4537 IFS=$as_save_IFS
4538
4539   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4540   ;;
4541 esac
4542 fi
4543 CMP=$ac_cv_path_CMP
4544 if test -n "$CMP"; then
4545   { echo "$as_me:$LINENO: result: $CMP" >&5
4546 echo "${ECHO_T}$CMP" >&6; }
4547 else
4548   { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4550 fi
4551
4552
4553 # Extract the first word of "tbl", so it can be a program name with args.
4554 set dummy tbl; ac_word=$2
4555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4557 if test "${ac_cv_path_TBL+set}" = set; then
4558   echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560   case $TBL in
4561   [\\/]* | ?:[\\/]*)
4562   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4563   ;;
4564   *)
4565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568   IFS=$as_save_IFS
4569   test -z "$as_dir" && as_dir=.
4570   for ac_exec_ext in '' $ac_executable_extensions; do
4571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574     break 2
4575   fi
4576 done
4577 done
4578 IFS=$as_save_IFS
4579
4580   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4581   ;;
4582 esac
4583 fi
4584 TBL=$ac_cv_path_TBL
4585 if test -n "$TBL"; then
4586   { echo "$as_me:$LINENO: result: $TBL" >&5
4587 echo "${ECHO_T}$TBL" >&6; }
4588 else
4589   { echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6; }
4591 fi
4592
4593
4594 # Extract the first word of "ar", so it can be a program name with args.
4595 set dummy ar; ac_word=$2
4596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598 if test "${ac_cv_path_AR+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   case $AR in
4602   [\\/]* | ?:[\\/]*)
4603   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4604   ;;
4605   *)
4606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609   IFS=$as_save_IFS
4610   test -z "$as_dir" && as_dir=.
4611   for ac_exec_ext in '' $ac_executable_extensions; do
4612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615     break 2
4616   fi
4617 done
4618 done
4619 IFS=$as_save_IFS
4620
4621   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4622   ;;
4623 esac
4624 fi
4625 AR=$ac_cv_path_AR
4626 if test -n "$AR"; then
4627   { echo "$as_me:$LINENO: result: $AR" >&5
4628 echo "${ECHO_T}$AR" >&6; }
4629 else
4630   { echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6; }
4632 fi
4633
4634
4635 # Extract the first word of "openssl", so it can be a program name with args.
4636 set dummy openssl; ac_word=$2
4637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4639 if test "${ac_cv_path_OPENSSL+set}" = set; then
4640   echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642   case $OPENSSL in
4643   [\\/]* | ?:[\\/]*)
4644   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4645   ;;
4646   *)
4647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652   for ac_exec_ext in '' $ac_executable_extensions; do
4653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4663   ;;
4664 esac
4665 fi
4666 OPENSSL=$ac_cv_path_OPENSSL
4667 if test -n "$OPENSSL"; then
4668   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4669 echo "${ECHO_T}$OPENSSL" >&6; }
4670 else
4671   { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4673 fi
4674
4675
4676 # Extract the first word of "mtx", so it can be a program name with args.
4677 set dummy mtx; ac_word=$2
4678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4680 if test "${ac_cv_path_MTX+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   case $MTX in
4684   [\\/]* | ?:[\\/]*)
4685   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4686   ;;
4687   *)
4688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691   IFS=$as_save_IFS
4692   test -z "$as_dir" && as_dir=.
4693   for ac_exec_ext in '' $ac_executable_extensions; do
4694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697     break 2
4698   fi
4699 done
4700 done
4701 IFS=$as_save_IFS
4702
4703   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4704   ;;
4705 esac
4706 fi
4707 MTX=$ac_cv_path_MTX
4708 if test -n "$MTX"; then
4709   { echo "$as_me:$LINENO: result: $MTX" >&5
4710 echo "${ECHO_T}$MTX" >&6; }
4711 else
4712   { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4714 fi
4715
4716
4717 # Extract the first word of "dd", so it can be a program name with args.
4718 set dummy dd; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_path_DD+set}" = set; then
4722   echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724   case $DD in
4725   [\\/]* | ?:[\\/]*)
4726   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4727   ;;
4728   *)
4729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732   IFS=$as_save_IFS
4733   test -z "$as_dir" && as_dir=.
4734   for ac_exec_ext in '' $ac_executable_extensions; do
4735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738     break 2
4739   fi
4740 done
4741 done
4742 IFS=$as_save_IFS
4743
4744   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4745   ;;
4746 esac
4747 fi
4748 DD=$ac_cv_path_DD
4749 if test -n "$DD"; then
4750   { echo "$as_me:$LINENO: result: $DD" >&5
4751 echo "${ECHO_T}$DD" >&6; }
4752 else
4753   { echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6; }
4755 fi
4756
4757
4758 # Extract the first word of "mkisofs", so it can be a program name with args.
4759 set dummy mkisofs; ac_word=$2
4760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4762 if test "${ac_cv_path_MKISOFS+set}" = set; then
4763   echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765   case $MKISOFS in
4766   [\\/]* | ?:[\\/]*)
4767   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4768   ;;
4769   *)
4770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775   for ac_exec_ext in '' $ac_executable_extensions; do
4776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779     break 2
4780   fi
4781 done
4782 done
4783 IFS=$as_save_IFS
4784
4785   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4786   ;;
4787 esac
4788 fi
4789 MKISOFS=$ac_cv_path_MKISOFS
4790 if test -n "$MKISOFS"; then
4791   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4792 echo "${ECHO_T}$MKISOFS" >&6; }
4793 else
4794   { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4796 fi
4797
4798
4799 # Extract the first word of "python", so it can be a program name with args.
4800 set dummy python; ac_word=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_path_PYTHON+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   case $PYTHON in
4807   [\\/]* | ?:[\\/]*)
4808   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4809   ;;
4810   *)
4811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814   IFS=$as_save_IFS
4815   test -z "$as_dir" && as_dir=.
4816   for ac_exec_ext in '' $ac_executable_extensions; do
4817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820     break 2
4821   fi
4822 done
4823 done
4824 IFS=$as_save_IFS
4825
4826   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4827   ;;
4828 esac
4829 fi
4830 PYTHON=$ac_cv_path_PYTHON
4831 if test -n "$PYTHON"; then
4832   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4833 echo "${ECHO_T}$PYTHON" >&6; }
4834 else
4835   { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4837 fi
4838
4839
4840 # Extract the first word of "growisofs", so it can be a program name with args.
4841 set dummy growisofs; ac_word=$2
4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4845   echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847   case $GROWISOFS in
4848   [\\/]* | ?:[\\/]*)
4849   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4850   ;;
4851   *)
4852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857   for ac_exec_ext in '' $ac_executable_extensions; do
4858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864 done
4865 IFS=$as_save_IFS
4866
4867   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4868   ;;
4869 esac
4870 fi
4871 GROWISOFS=$ac_cv_path_GROWISOFS
4872 if test -n "$GROWISOFS"; then
4873   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4874 echo "${ECHO_T}$GROWISOFS" >&6; }
4875 else
4876   { echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6; }
4878 fi
4879
4880
4881 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4882 set dummy dvd+rw-mediainfo; ac_word=$2
4883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4885 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4886   echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888   case $DVDRWMEDIAINFO in
4889   [\\/]* | ?:[\\/]*)
4890   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4891   ;;
4892   *)
4893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896   IFS=$as_save_IFS
4897   test -z "$as_dir" && as_dir=.
4898   for ac_exec_ext in '' $ac_executable_extensions; do
4899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4902     break 2
4903   fi
4904 done
4905 done
4906 IFS=$as_save_IFS
4907
4908   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4909   ;;
4910 esac
4911 fi
4912 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4913 if test -n "$DVDRWMEDIAINFO"; then
4914   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4915 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4916 else
4917   { echo "$as_me:$LINENO: result: no" >&5
4918 echo "${ECHO_T}no" >&6; }
4919 fi
4920
4921
4922 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4923 set dummy dvd+rw-format; ac_word=$2
4924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4926 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4927   echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929   case $DVDRWFORMAT in
4930   [\\/]* | ?:[\\/]*)
4931   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4932   ;;
4933   *)
4934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937   IFS=$as_save_IFS
4938   test -z "$as_dir" && as_dir=.
4939   for ac_exec_ext in '' $ac_executable_extensions; do
4940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943     break 2
4944   fi
4945 done
4946 done
4947 IFS=$as_save_IFS
4948
4949   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4950   ;;
4951 esac
4952 fi
4953 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4954 if test -n "$DVDRWFORMAT"; then
4955   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4956 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4957 else
4958   { echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6; }
4960 fi
4961
4962
4963 # Extract the first word of "pkg-config", so it can be a program name with args.
4964 set dummy pkg-config; ac_word=$2
4965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4967 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4968   echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970   case $PKGCONFIG in
4971   [\\/]* | ?:[\\/]*)
4972   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4973   ;;
4974   *)
4975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978   IFS=$as_save_IFS
4979   test -z "$as_dir" && as_dir=.
4980   for ac_exec_ext in '' $ac_executable_extensions; do
4981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984     break 2
4985   fi
4986 done
4987 done
4988 IFS=$as_save_IFS
4989
4990   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4991   ;;
4992 esac
4993 fi
4994 PKGCONFIG=$ac_cv_path_PKGCONFIG
4995 if test -n "$PKGCONFIG"; then
4996   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4997 echo "${ECHO_T}$PKGCONFIG" >&6; }
4998 else
4999   { echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6; }
5001 fi
5002
5003
5004 # Extract the first word of "qmake", so it can be a program name with args.
5005 set dummy qmake; ac_word=$2
5006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5008 if test "${ac_cv_path_QMAKE+set}" = set; then
5009   echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011   case $QMAKE in
5012   [\\/]* | ?:[\\/]*)
5013   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5014   ;;
5015   *)
5016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5018 do
5019   IFS=$as_save_IFS
5020   test -z "$as_dir" && as_dir=.
5021   for ac_exec_ext in '' $ac_executable_extensions; do
5022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025     break 2
5026   fi
5027 done
5028 done
5029 IFS=$as_save_IFS
5030
5031   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5032   ;;
5033 esac
5034 fi
5035 QMAKE=$ac_cv_path_QMAKE
5036 if test -n "$QMAKE"; then
5037   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5038 echo "${ECHO_T}$QMAKE" >&6; }
5039 else
5040   { echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6; }
5042 fi
5043
5044
5045 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5046 set dummy qmake-qt4; ac_word=$2
5047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5049 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5050   echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052   case $QMAKEQT4 in
5053   [\\/]* | ?:[\\/]*)
5054   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5055   ;;
5056   *)
5057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062   for ac_exec_ext in '' $ac_executable_extensions; do
5063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066     break 2
5067   fi
5068 done
5069 done
5070 IFS=$as_save_IFS
5071
5072   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5073   ;;
5074 esac
5075 fi
5076 QMAKEQT4=$ac_cv_path_QMAKEQT4
5077 if test -n "$QMAKEQT4"; then
5078   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5079 echo "${ECHO_T}$QMAKEQT4" >&6; }
5080 else
5081   { echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6; }
5083 fi
5084
5085
5086
5087 if test "x$WXCONFIG" = x; then
5088    WXCONFIG=wx-config
5089 fi
5090 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5091 set dummy ${WXCONFIG}; ac_word=$2
5092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5094 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5095   echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097   case $WXCONFIG in
5098   [\\/]* | ?:[\\/]*)
5099   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5100   ;;
5101   *)
5102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5104 do
5105   IFS=$as_save_IFS
5106   test -z "$as_dir" && as_dir=.
5107   for ac_exec_ext in '' $ac_executable_extensions; do
5108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5109     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5111     break 2
5112   fi
5113 done
5114 done
5115 IFS=$as_save_IFS
5116
5117   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5118   ;;
5119 esac
5120 fi
5121 WXCONFIG=$ac_cv_path_WXCONFIG
5122 if test -n "$WXCONFIG"; then
5123   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5124 echo "${ECHO_T}$WXCONFIG" >&6; }
5125 else
5126   { echo "$as_me:$LINENO: result: no" >&5
5127 echo "${ECHO_T}no" >&6; }
5128 fi
5129
5130
5131
5132 # Extract the first word of "cdrecord", so it can be a program name with args.
5133 set dummy cdrecord; ac_word=$2
5134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5136 if test "${ac_cv_path_CDRECORD+set}" = set; then
5137   echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139   case $CDRECORD in
5140   [\\/]* | ?:[\\/]*)
5141   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5142   ;;
5143   *)
5144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147   IFS=$as_save_IFS
5148   test -z "$as_dir" && as_dir=.
5149   for ac_exec_ext in '' $ac_executable_extensions; do
5150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153     break 2
5154   fi
5155 done
5156 done
5157 IFS=$as_save_IFS
5158
5159   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5160   ;;
5161 esac
5162 fi
5163 CDRECORD=$ac_cv_path_CDRECORD
5164 if test -n "$CDRECORD"; then
5165   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5166 echo "${ECHO_T}$CDRECORD" >&6; }
5167 else
5168   { echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6; }
5170 fi
5171
5172
5173 # Extract the first word of "pidof", so it can be a program name with args.
5174 set dummy pidof; ac_word=$2
5175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5177 if test "${ac_cv_path_PIDOF+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180   case $PIDOF in
5181   [\\/]* | ?:[\\/]*)
5182   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5183   ;;
5184   *)
5185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188   IFS=$as_save_IFS
5189   test -z "$as_dir" && as_dir=.
5190   for ac_exec_ext in '' $ac_executable_extensions; do
5191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194     break 2
5195   fi
5196 done
5197 done
5198 IFS=$as_save_IFS
5199
5200   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5201   ;;
5202 esac
5203 fi
5204 PIDOF=$ac_cv_path_PIDOF
5205 if test -n "$PIDOF"; then
5206   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5207 echo "${ECHO_T}$PIDOF" >&6; }
5208 else
5209   { echo "$as_me:$LINENO: result: no" >&5
5210 echo "${ECHO_T}no" >&6; }
5211 fi
5212
5213
5214 for ac_prog in gawk mawk nawk awk
5215 do
5216   # Extract the first word of "$ac_prog", so it can be a program name with args.
5217 set dummy $ac_prog; ac_word=$2
5218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5220 if test "${ac_cv_prog_AWK+set}" = set; then
5221   echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223   if test -n "$AWK"; then
5224   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229   IFS=$as_save_IFS
5230   test -z "$as_dir" && as_dir=.
5231   for ac_exec_ext in '' $ac_executable_extensions; do
5232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233     ac_cv_prog_AWK="$ac_prog"
5234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235     break 2
5236   fi
5237 done
5238 done
5239 IFS=$as_save_IFS
5240
5241 fi
5242 fi
5243 AWK=$ac_cv_prog_AWK
5244 if test -n "$AWK"; then
5245   { echo "$as_me:$LINENO: result: $AWK" >&5
5246 echo "${ECHO_T}$AWK" >&6; }
5247 else
5248   { echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6; }
5250 fi
5251
5252
5253   test -n "$AWK" && break
5254 done
5255
5256 # Some AWK programs fail, so test it and warn the user
5257 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5258       { if ((prog == $2) || (("(" prog ")") == $2) ||
5259       (("" prog "") == $2) ||
5260       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5261 else
5262   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5263    The regex engine of $AWK is too broken to be used you
5264    might want to install GNU AWK.
5265    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5266 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5267    The regex engine of $AWK is too broken to be used you
5268    might want to install GNU AWK.
5269    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5270    { (exit 1); exit 1; }; }
5271 fi
5272 THE_AWK=$AWK
5273 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5274 set dummy $THE_AWK; ac_word=$2
5275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5277 if test "${ac_cv_path_AWK+set}" = set; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280   case $AWK in
5281   [\\/]* | ?:[\\/]*)
5282   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5283   ;;
5284   *)
5285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288   IFS=$as_save_IFS
5289   test -z "$as_dir" && as_dir=.
5290   for ac_exec_ext in '' $ac_executable_extensions; do
5291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294     break 2
5295   fi
5296 done
5297 done
5298 IFS=$as_save_IFS
5299
5300   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5301   ;;
5302 esac
5303 fi
5304 AWK=$ac_cv_path_AWK
5305 if test -n "$AWK"; then
5306   { echo "$as_me:$LINENO: result: $AWK" >&5
5307 echo "${ECHO_T}$AWK" >&6; }
5308 else
5309   { echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6; }
5311 fi
5312
5313
5314
5315
5316 test -n "$ARFLAG" || ARFLAGS="cr"
5317
5318
5319 MAKE_SHELL=/bin/sh
5320
5321
5322
5323
5324
5325
5326
5327 # Check whether --enable-libtool was given.
5328 if test "${enable_libtool+set}" = set; then
5329   enableval=$enable_libtool;
5330        if test x$enableval = xno; then
5331           use_libtool=no
5332        fi
5333
5334
5335 fi
5336
5337 case `pwd` in
5338   *\ * | *\     *)
5339     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5340 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5341 esac
5342
5343
5344
5345 macro_version='2.2.6'
5346 macro_revision='1.3012'
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360 ltmain="$ac_aux_dir/ltmain.sh"
5361
5362 # Make sure we can run config.sub.
5363 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5364   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5365 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5366    { (exit 1); exit 1; }; }
5367
5368 { echo "$as_me:$LINENO: checking build system type" >&5
5369 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5370 if test "${ac_cv_build+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   ac_build_alias=$build_alias
5374 test "x$ac_build_alias" = x &&
5375   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5376 test "x$ac_build_alias" = x &&
5377   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5378 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5379    { (exit 1); exit 1; }; }
5380 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5381   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5382 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5383    { (exit 1); exit 1; }; }
5384
5385 fi
5386 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5387 echo "${ECHO_T}$ac_cv_build" >&6; }
5388 case $ac_cv_build in
5389 *-*-*) ;;
5390 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5391 echo "$as_me: error: invalid value of canonical build" >&2;}
5392    { (exit 1); exit 1; }; };;
5393 esac
5394 build=$ac_cv_build
5395 ac_save_IFS=$IFS; IFS='-'
5396 set x $ac_cv_build
5397 shift
5398 build_cpu=$1
5399 build_vendor=$2
5400 shift; shift
5401 # Remember, the first character of IFS is used to create $*,
5402 # except with old shells:
5403 build_os=$*
5404 IFS=$ac_save_IFS
5405 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5406
5407
5408 { echo "$as_me:$LINENO: checking host system type" >&5
5409 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5410 if test "${ac_cv_host+set}" = set; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413   if test "x$host_alias" = x; then
5414   ac_cv_host=$ac_cv_build
5415 else
5416   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5417     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5418 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5419    { (exit 1); exit 1; }; }
5420 fi
5421
5422 fi
5423 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5424 echo "${ECHO_T}$ac_cv_host" >&6; }
5425 case $ac_cv_host in
5426 *-*-*) ;;
5427 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5428 echo "$as_me: error: invalid value of canonical host" >&2;}
5429    { (exit 1); exit 1; }; };;
5430 esac
5431 host=$ac_cv_host
5432 ac_save_IFS=$IFS; IFS='-'
5433 set x $ac_cv_host
5434 shift
5435 host_cpu=$1
5436 host_vendor=$2
5437 shift; shift
5438 # Remember, the first character of IFS is used to create $*,
5439 # except with old shells:
5440 host_os=$*
5441 IFS=$ac_save_IFS
5442 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5443
5444
5445 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5446 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5447 if test "${ac_cv_path_SED+set}" = set; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5451      for ac_i in 1 2 3 4 5 6 7; do
5452        ac_script="$ac_script$as_nl$ac_script"
5453      done
5454      echo "$ac_script" | sed 99q >conftest.sed
5455      $as_unset ac_script || ac_script=
5456      # Extract the first word of "sed gsed" to use in msg output
5457 if test -z "$SED"; then
5458 set dummy sed gsed; ac_prog_name=$2
5459 if test "${ac_cv_path_SED+set}" = set; then
5460   echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462   ac_path_SED_found=false
5463 # Loop through the user's path and test for each of PROGNAME-LIST
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467   IFS=$as_save_IFS
5468   test -z "$as_dir" && as_dir=.
5469   for ac_prog in sed gsed; do
5470   for ac_exec_ext in '' $ac_executable_extensions; do
5471     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5472     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5473     # Check for GNU ac_path_SED and select it if it is found.
5474   # Check for GNU $ac_path_SED
5475 case `"$ac_path_SED" --version 2>&1` in
5476 *GNU*)
5477   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5478 *)
5479   ac_count=0
5480   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5481   while :
5482   do
5483     cat "conftest.in" "conftest.in" >"conftest.tmp"
5484     mv "conftest.tmp" "conftest.in"
5485     cp "conftest.in" "conftest.nl"
5486     echo '' >> "conftest.nl"
5487     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5488     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5489     ac_count=`expr $ac_count + 1`
5490     if test $ac_count -gt ${ac_path_SED_max-0}; then
5491       # Best one so far, save it but keep looking for a better one
5492       ac_cv_path_SED="$ac_path_SED"
5493       ac_path_SED_max=$ac_count
5494     fi
5495     # 10*(2^10) chars as input seems more than enough
5496     test $ac_count -gt 10 && break
5497   done
5498   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5499 esac
5500
5501
5502     $ac_path_SED_found && break 3
5503   done
5504 done
5505
5506 done
5507 IFS=$as_save_IFS
5508
5509
5510 fi
5511
5512 SED="$ac_cv_path_SED"
5513 if test -z "$SED"; then
5514   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5515 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5516    { (exit 1); exit 1; }; }
5517 fi
5518
5519 else
5520   ac_cv_path_SED=$SED
5521 fi
5522
5523 fi
5524 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5525 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5526  SED="$ac_cv_path_SED"
5527   rm -f conftest.sed
5528
5529 test -z "$SED" && SED=sed
5530 Xsed="$SED -e 1s/^X//"
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542 { echo "$as_me:$LINENO: checking for fgrep" >&5
5543 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5544 if test "${ac_cv_path_FGREP+set}" = set; then
5545   echo $ECHO_N "(cached) $ECHO_C" >&6
5546 else
5547   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5548    then ac_cv_path_FGREP="$GREP -F"
5549    else
5550      # Extract the first word of "fgrep" to use in msg output
5551 if test -z "$FGREP"; then
5552 set dummy fgrep; ac_prog_name=$2
5553 if test "${ac_cv_path_FGREP+set}" = set; then
5554   echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556   ac_path_FGREP_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560 do
5561   IFS=$as_save_IFS
5562   test -z "$as_dir" && as_dir=.
5563   for ac_prog in fgrep; do
5564   for ac_exec_ext in '' $ac_executable_extensions; do
5565     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5566     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5567     # Check for GNU ac_path_FGREP and select it if it is found.
5568   # Check for GNU $ac_path_FGREP
5569 case `"$ac_path_FGREP" --version 2>&1` in
5570 *GNU*)
5571   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5572 *)
5573   ac_count=0
5574   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5575   while :
5576   do
5577     cat "conftest.in" "conftest.in" >"conftest.tmp"
5578     mv "conftest.tmp" "conftest.in"
5579     cp "conftest.in" "conftest.nl"
5580     echo 'FGREP' >> "conftest.nl"
5581     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583     ac_count=`expr $ac_count + 1`
5584     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5585       # Best one so far, save it but keep looking for a better one
5586       ac_cv_path_FGREP="$ac_path_FGREP"
5587       ac_path_FGREP_max=$ac_count
5588     fi
5589     # 10*(2^10) chars as input seems more than enough
5590     test $ac_count -gt 10 && break
5591   done
5592   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5593 esac
5594
5595
5596     $ac_path_FGREP_found && break 3
5597   done
5598 done
5599
5600 done
5601 IFS=$as_save_IFS
5602
5603
5604 fi
5605
5606 FGREP="$ac_cv_path_FGREP"
5607 if test -z "$FGREP"; then
5608   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5609 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5610    { (exit 1); exit 1; }; }
5611 fi
5612
5613 else
5614   ac_cv_path_FGREP=$FGREP
5615 fi
5616
5617
5618    fi
5619 fi
5620 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5621 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5622  FGREP="$ac_cv_path_FGREP"
5623
5624
5625 test -z "$GREP" && GREP=grep
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645 # Check whether --with-gnu-ld was given.
5646 if test "${with_gnu_ld+set}" = set; then
5647   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5648 else
5649   with_gnu_ld=no
5650 fi
5651
5652 ac_prog=ld
5653 if test "$GCC" = yes; then
5654   # Check if gcc -print-prog-name=ld gives a path.
5655   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5656 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5657   case $host in
5658   *-*-mingw*)
5659     # gcc leaves a trailing carriage return which upsets mingw
5660     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5661   *)
5662     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5663   esac
5664   case $ac_prog in
5665     # Accept absolute paths.
5666     [\\/]* | ?:[\\/]*)
5667       re_direlt='/[^/][^/]*/\.\./'
5668       # Canonicalize the pathname of ld
5669       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5670       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5671         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5672       done
5673       test -z "$LD" && LD="$ac_prog"
5674       ;;
5675   "")
5676     # If it fails, then pretend we aren't using GCC.
5677     ac_prog=ld
5678     ;;
5679   *)
5680     # If it is relative, then search for the first ld in PATH.
5681     with_gnu_ld=unknown
5682     ;;
5683   esac
5684 elif test "$with_gnu_ld" = yes; then
5685   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5686 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5687 else
5688   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5689 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5690 fi
5691 if test "${lt_cv_path_LD+set}" = set; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   if test -z "$LD"; then
5695   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5696   for ac_dir in $PATH; do
5697     IFS="$lt_save_ifs"
5698     test -z "$ac_dir" && ac_dir=.
5699     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5700       lt_cv_path_LD="$ac_dir/$ac_prog"
5701       # Check to see if the program is GNU ld.  I'd rather use --version,
5702       # but apparently some variants of GNU ld only accept -v.
5703       # Break only if it was the GNU/non-GNU ld that we prefer.
5704       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5705       *GNU* | *'with BFD'*)
5706         test "$with_gnu_ld" != no && break
5707         ;;
5708       *)
5709         test "$with_gnu_ld" != yes && break
5710         ;;
5711       esac
5712     fi
5713   done
5714   IFS="$lt_save_ifs"
5715 else
5716   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5717 fi
5718 fi
5719
5720 LD="$lt_cv_path_LD"
5721 if test -n "$LD"; then
5722   { echo "$as_me:$LINENO: result: $LD" >&5
5723 echo "${ECHO_T}$LD" >&6; }
5724 else
5725   { echo "$as_me:$LINENO: result: no" >&5
5726 echo "${ECHO_T}no" >&6; }
5727 fi
5728 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5729 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5730    { (exit 1); exit 1; }; }
5731 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5732 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5733 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5737 case `$LD -v 2>&1 </dev/null` in
5738 *GNU* | *'with BFD'*)
5739   lt_cv_prog_gnu_ld=yes
5740   ;;
5741 *)
5742   lt_cv_prog_gnu_ld=no
5743   ;;
5744 esac
5745 fi
5746 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5747 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5748 with_gnu_ld=$lt_cv_prog_gnu_ld
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5759 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5760 if test "${lt_cv_path_NM+set}" = set; then
5761   echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763   if test -n "$NM"; then
5764   # Let the user override the test.
5765   lt_cv_path_NM="$NM"
5766 else
5767   lt_nm_to_check="${ac_tool_prefix}nm"
5768   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5769     lt_nm_to_check="$lt_nm_to_check nm"
5770   fi
5771   for lt_tmp_nm in $lt_nm_to_check; do
5772     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5773     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5774       IFS="$lt_save_ifs"
5775       test -z "$ac_dir" && ac_dir=.
5776       tmp_nm="$ac_dir/$lt_tmp_nm"
5777       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5778         # Check to see if the nm accepts a BSD-compat flag.
5779         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5780         #   nm: unknown option "B" ignored
5781         # Tru64's nm complains that /dev/null is an invalid object file
5782         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5783         */dev/null* | *'Invalid file or object type'*)
5784           lt_cv_path_NM="$tmp_nm -B"
5785           break
5786           ;;
5787         *)
5788           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5789           */dev/null*)
5790             lt_cv_path_NM="$tmp_nm -p"
5791             break
5792             ;;
5793           *)
5794             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5795             continue # so that we can try to find one that supports BSD flags
5796             ;;
5797           esac
5798           ;;
5799         esac
5800       fi
5801     done
5802     IFS="$lt_save_ifs"
5803   done
5804   : ${lt_cv_path_NM=no}
5805 fi
5806 fi
5807 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5808 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5809 if test "$lt_cv_path_NM" != "no"; then
5810   NM="$lt_cv_path_NM"
5811 else
5812   # Didn't find any BSD compatible name lister, look for dumpbin.
5813   if test -n "$ac_tool_prefix"; then
5814   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5815   do
5816     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5820 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   if test -n "$DUMPBIN"; then
5824   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5828 do
5829   IFS=$as_save_IFS
5830   test -z "$as_dir" && as_dir=.
5831   for ac_exec_ext in '' $ac_executable_extensions; do
5832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835     break 2
5836   fi
5837 done
5838 done
5839 IFS=$as_save_IFS
5840
5841 fi
5842 fi
5843 DUMPBIN=$ac_cv_prog_DUMPBIN
5844 if test -n "$DUMPBIN"; then
5845   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5846 echo "${ECHO_T}$DUMPBIN" >&6; }
5847 else
5848   { echo "$as_me:$LINENO: result: no" >&5
5849 echo "${ECHO_T}no" >&6; }
5850 fi
5851
5852
5853     test -n "$DUMPBIN" && break
5854   done
5855 fi
5856 if test -z "$DUMPBIN"; then
5857   ac_ct_DUMPBIN=$DUMPBIN
5858   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5859 do
5860   # Extract the first word of "$ac_prog", so it can be a program name with args.
5861 set dummy $ac_prog; ac_word=$2
5862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5865   echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867   if test -n "$ac_ct_DUMPBIN"; then
5868   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875   for ac_exec_ext in '' $ac_executable_extensions; do
5876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882 done
5883 IFS=$as_save_IFS
5884
5885 fi
5886 fi
5887 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5888 if test -n "$ac_ct_DUMPBIN"; then
5889   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5890 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5891 else
5892   { echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6; }
5894 fi
5895
5896
5897   test -n "$ac_ct_DUMPBIN" && break
5898 done
5899
5900   if test "x$ac_ct_DUMPBIN" = x; then
5901     DUMPBIN=":"
5902   else
5903     case $cross_compiling:$ac_tool_warned in
5904 yes:)
5905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5906 whose name does not start with the host triplet.  If you think this
5907 configuration is useful to you, please write to autoconf@gnu.org." >&5
5908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5909 whose name does not start with the host triplet.  If you think this
5910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5911 ac_tool_warned=yes ;;
5912 esac
5913     DUMPBIN=$ac_ct_DUMPBIN
5914   fi
5915 fi
5916
5917
5918   if test "$DUMPBIN" != ":"; then
5919     NM="$DUMPBIN"
5920   fi
5921 fi
5922 test -z "$NM" && NM=nm
5923
5924
5925
5926
5927
5928
5929 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5930 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5931 if test "${lt_cv_nm_interface+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   lt_cv_nm_interface="BSD nm"
5935   echo "int some_variable = 0;" > conftest.$ac_ext
5936   (eval echo "\"\$as_me:5936: $ac_compile\"" >&5)
5937   (eval "$ac_compile" 2>conftest.err)
5938   cat conftest.err >&5
5939   (eval echo "\"\$as_me:5939: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5940   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5941   cat conftest.err >&5
5942   (eval echo "\"\$as_me:5942: output\"" >&5)
5943   cat conftest.out >&5
5944   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5945     lt_cv_nm_interface="MS dumpbin"
5946   fi
5947   rm -f conftest*
5948 fi
5949 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5950 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5951
5952 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5953 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5954 LN_S=$as_ln_s
5955 if test "$LN_S" = "ln -s"; then
5956   { echo "$as_me:$LINENO: result: yes" >&5
5957 echo "${ECHO_T}yes" >&6; }
5958 else
5959   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5960 echo "${ECHO_T}no, using $LN_S" >&6; }
5961 fi
5962
5963 # find the maximum length of command line arguments
5964 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5965 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5966 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969     i=0
5970   teststring="ABCD"
5971
5972   case $build_os in
5973   msdosdjgpp*)
5974     # On DJGPP, this test can blow up pretty badly due to problems in libc
5975     # (any single argument exceeding 2000 bytes causes a buffer overrun
5976     # during glob expansion).  Even if it were fixed, the result of this
5977     # check would be larger than it should be.
5978     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5979     ;;
5980
5981   gnu*)
5982     # Under GNU Hurd, this test is not required because there is
5983     # no limit to the length of command line arguments.
5984     # Libtool will interpret -1 as no limit whatsoever
5985     lt_cv_sys_max_cmd_len=-1;
5986     ;;
5987
5988   cygwin* | mingw* | cegcc*)
5989     # On Win9x/ME, this test blows up -- it succeeds, but takes
5990     # about 5 minutes as the teststring grows exponentially.
5991     # Worse, since 9x/ME are not pre-emptively multitasking,
5992     # you end up with a "frozen" computer, even though with patience
5993     # the test eventually succeeds (with a max line length of 256k).
5994     # Instead, let's just punt: use the minimum linelength reported by
5995     # all of the supported platforms: 8192 (on NT/2K/XP).
5996     lt_cv_sys_max_cmd_len=8192;
5997     ;;
5998
5999   amigaos*)
6000     # On AmigaOS with pdksh, this test takes hours, literally.
6001     # So we just punt and use a minimum line length of 8192.
6002     lt_cv_sys_max_cmd_len=8192;
6003     ;;
6004
6005   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6006     # This has been around since 386BSD, at least.  Likely further.
6007     if test -x /sbin/sysctl; then
6008       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6009     elif test -x /usr/sbin/sysctl; then
6010       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6011     else
6012       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6013     fi
6014     # And add a safety zone
6015     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6016     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6017     ;;
6018
6019   interix*)
6020     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6021     lt_cv_sys_max_cmd_len=196608
6022     ;;
6023
6024   osf*)
6025     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6026     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6027     # nice to cause kernel panics so lets avoid the loop below.
6028     # First set a reasonable default.
6029     lt_cv_sys_max_cmd_len=16384
6030     #
6031     if test -x /sbin/sysconfig; then
6032       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6033         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6034       esac
6035     fi
6036     ;;
6037   sco3.2v5*)
6038     lt_cv_sys_max_cmd_len=102400
6039     ;;
6040   sysv5* | sco5v6* | sysv4.2uw2*)
6041     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6042     if test -n "$kargmax"; then
6043       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6044     else
6045       lt_cv_sys_max_cmd_len=32768
6046     fi
6047     ;;
6048   *)
6049     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6050     if test -n "$lt_cv_sys_max_cmd_len"; then
6051       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6052       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6053     else
6054       # Make teststring a little bigger before we do anything with it.
6055       # a 1K string should be a reasonable start.
6056       for i in 1 2 3 4 5 6 7 8 ; do
6057         teststring=$teststring$teststring
6058       done
6059       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6060       # If test is not a shell built-in, we'll probably end up computing a
6061       # maximum length that is only half of the actual maximum length, but
6062       # we can't tell.
6063       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6064                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6065               test $i != 17 # 1/2 MB should be enough
6066       do
6067         i=`expr $i + 1`
6068         teststring=$teststring$teststring
6069       done
6070       # Only check the string length outside the loop.
6071       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6072       teststring=
6073       # Add a significant safety factor because C++ compilers can tack on
6074       # massive amounts of additional arguments before passing them to the
6075       # linker.  It appears as though 1/2 is a usable value.
6076       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6077     fi
6078     ;;
6079   esac
6080
6081 fi
6082
6083 if test -n $lt_cv_sys_max_cmd_len ; then
6084   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6085 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6086 else
6087   { echo "$as_me:$LINENO: result: none" >&5
6088 echo "${ECHO_T}none" >&6; }
6089 fi
6090 max_cmd_len=$lt_cv_sys_max_cmd_len
6091
6092
6093
6094
6095
6096
6097 : ${CP="cp -f"}
6098 : ${MV="mv -f"}
6099 : ${RM="rm -f"}
6100
6101 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6102 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6103 # Try some XSI features
6104 xsi_shell=no
6105 ( _lt_dummy="a/b/c"
6106   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6107       = c,a/b,, \
6108     && eval 'test $(( 1 + 1 )) -eq 2 \
6109     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6110   && xsi_shell=yes
6111 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6112 echo "${ECHO_T}$xsi_shell" >&6; }
6113
6114
6115 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6116 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6117 lt_shell_append=no
6118 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6119     >/dev/null 2>&1 \
6120   && lt_shell_append=yes
6121 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6122 echo "${ECHO_T}$lt_shell_append" >&6; }
6123
6124
6125 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6126   lt_unset=unset
6127 else
6128   lt_unset=false
6129 fi
6130
6131
6132
6133
6134
6135 # test EBCDIC or ASCII
6136 case `echo X|tr X '\101'` in
6137  A) # ASCII based system
6138     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6139   lt_SP2NL='tr \040 \012'
6140   lt_NL2SP='tr \015\012 \040\040'
6141   ;;
6142  *) # EBCDIC based system
6143   lt_SP2NL='tr \100 \n'
6144   lt_NL2SP='tr \r\n \100\100'
6145   ;;
6146 esac
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6157 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6158 if test "${lt_cv_ld_reload_flag+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   lt_cv_ld_reload_flag='-r'
6162 fi
6163 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6164 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6165 reload_flag=$lt_cv_ld_reload_flag
6166 case $reload_flag in
6167 "" | " "*) ;;
6168 *) reload_flag=" $reload_flag" ;;
6169 esac
6170 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6171 case $host_os in
6172   darwin*)
6173     if test "$GCC" = yes; then
6174       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6175     else
6176       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6177     fi
6178     ;;
6179 esac
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189 if test -n "$ac_tool_prefix"; then
6190   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6191 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   if test -n "$OBJDUMP"; then
6198   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203   IFS=$as_save_IFS
6204   test -z "$as_dir" && as_dir=.
6205   for ac_exec_ext in '' $ac_executable_extensions; do
6206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209     break 2
6210   fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215 fi
6216 fi
6217 OBJDUMP=$ac_cv_prog_OBJDUMP
6218 if test -n "$OBJDUMP"; then
6219   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6220 echo "${ECHO_T}$OBJDUMP" >&6; }
6221 else
6222   { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6224 fi
6225
6226
6227 fi
6228 if test -z "$ac_cv_prog_OBJDUMP"; then
6229   ac_ct_OBJDUMP=$OBJDUMP
6230   # Extract the first word of "objdump", so it can be a program name with args.
6231 set dummy objdump; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   if test -n "$ac_ct_OBJDUMP"; then
6238   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245   for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6258 if test -n "$ac_ct_OBJDUMP"; then
6259   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6260 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6261 else
6262   { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6264 fi
6265
6266   if test "x$ac_ct_OBJDUMP" = x; then
6267     OBJDUMP="false"
6268   else
6269     case $cross_compiling:$ac_tool_warned in
6270 yes:)
6271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6272 whose name does not start with the host triplet.  If you think this
6273 configuration is useful to you, please write to autoconf@gnu.org." >&5
6274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet.  If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6277 ac_tool_warned=yes ;;
6278 esac
6279     OBJDUMP=$ac_ct_OBJDUMP
6280   fi
6281 else
6282   OBJDUMP="$ac_cv_prog_OBJDUMP"
6283 fi
6284
6285 test -z "$OBJDUMP" && OBJDUMP=objdump
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6296 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6297 if test "${lt_cv_deplibs_check_method+set}" = set; then
6298   echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300   lt_cv_file_magic_cmd='$MAGIC_CMD'
6301 lt_cv_file_magic_test_file=
6302 lt_cv_deplibs_check_method='unknown'
6303 # Need to set the preceding variable on all platforms that support
6304 # interlibrary dependencies.
6305 # 'none' -- dependencies not supported.
6306 # `unknown' -- same as none, but documents that we really don't know.
6307 # 'pass_all' -- all dependencies passed with no checks.
6308 # 'test_compile' -- check by making test program.
6309 # 'file_magic [[regex]]' -- check by looking for files in library path
6310 # which responds to the $file_magic_cmd with a given extended regex.
6311 # If you have `file' or equivalent on your system and you're not sure
6312 # whether `pass_all' will *always* work, you probably want this one.
6313
6314 case $host_os in
6315 aix[4-9]*)
6316   lt_cv_deplibs_check_method=pass_all
6317   ;;
6318
6319 beos*)
6320   lt_cv_deplibs_check_method=pass_all
6321   ;;
6322
6323 bsdi[45]*)
6324   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6325   lt_cv_file_magic_cmd='/usr/bin/file -L'
6326   lt_cv_file_magic_test_file=/shlib/libc.so
6327   ;;
6328
6329 cygwin*)
6330   # func_win32_libid is a shell function defined in ltmain.sh
6331   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6332   lt_cv_file_magic_cmd='func_win32_libid'
6333   ;;
6334
6335 mingw* | pw32*)
6336   # Base MSYS/MinGW do not provide the 'file' command needed by
6337   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6338   # unless we find 'file', for example because we are cross-compiling.
6339   if ( file / ) >/dev/null 2>&1; then
6340     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6341     lt_cv_file_magic_cmd='func_win32_libid'
6342   else
6343     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6344     lt_cv_file_magic_cmd='$OBJDUMP -f'
6345   fi
6346   ;;
6347
6348 cegcc)
6349   # use the weaker test based on 'objdump'. See mingw*.
6350   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6351   lt_cv_file_magic_cmd='$OBJDUMP -f'
6352   ;;
6353
6354 darwin* | rhapsody*)
6355   lt_cv_deplibs_check_method=pass_all
6356   ;;
6357
6358 freebsd* | dragonfly*)
6359   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6360     case $host_cpu in
6361     i*86 )
6362       # Not sure whether the presence of OpenBSD here was a mistake.
6363       # Let's accept both of them until this is cleared up.
6364       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6365       lt_cv_file_magic_cmd=/usr/bin/file
6366       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6367       ;;
6368     esac
6369   else
6370     lt_cv_deplibs_check_method=pass_all
6371   fi
6372   ;;
6373
6374 gnu*)
6375   lt_cv_deplibs_check_method=pass_all
6376   ;;
6377
6378 hpux10.20* | hpux11*)
6379   lt_cv_file_magic_cmd=/usr/bin/file
6380   case $host_cpu in
6381   ia64*)
6382     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6383     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6384     ;;
6385   hppa*64*)
6386     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]'
6387     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6388     ;;
6389   *)
6390     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6391     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6392     ;;
6393   esac
6394   ;;
6395
6396 interix[3-9]*)
6397   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6398   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6399   ;;
6400
6401 irix5* | irix6* | nonstopux*)
6402   case $LD in
6403   *-32|*"-32 ") libmagic=32-bit;;
6404   *-n32|*"-n32 ") libmagic=N32;;
6405   *-64|*"-64 ") libmagic=64-bit;;
6406   *) libmagic=never-match;;
6407   esac
6408   lt_cv_deplibs_check_method=pass_all
6409   ;;
6410
6411 # This must be Linux ELF.
6412 linux* | k*bsd*-gnu)
6413   lt_cv_deplibs_check_method=pass_all
6414   ;;
6415
6416 netbsd*)
6417   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6418     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6419   else
6420     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6421   fi
6422   ;;
6423
6424 newos6*)
6425   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6426   lt_cv_file_magic_cmd=/usr/bin/file
6427   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6428   ;;
6429
6430 *nto* | *qnx*)
6431   lt_cv_deplibs_check_method=pass_all
6432   ;;
6433
6434 openbsd*)
6435   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6436     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6437   else
6438     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6439   fi
6440   ;;
6441
6442 osf3* | osf4* | osf5*)
6443   lt_cv_deplibs_check_method=pass_all
6444   ;;
6445
6446 rdos*)
6447   lt_cv_deplibs_check_method=pass_all
6448   ;;
6449
6450 solaris*)
6451   lt_cv_deplibs_check_method=pass_all
6452   ;;
6453
6454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6455   lt_cv_deplibs_check_method=pass_all
6456   ;;
6457
6458 sysv4 | sysv4.3*)
6459   case $host_vendor in
6460   motorola)
6461     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]'
6462     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6463     ;;
6464   ncr)
6465     lt_cv_deplibs_check_method=pass_all
6466     ;;
6467   sequent)
6468     lt_cv_file_magic_cmd='/bin/file'
6469     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6470     ;;
6471   sni)
6472     lt_cv_file_magic_cmd='/bin/file'
6473     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6474     lt_cv_file_magic_test_file=/lib/libc.so
6475     ;;
6476   siemens)
6477     lt_cv_deplibs_check_method=pass_all
6478     ;;
6479   pc)
6480     lt_cv_deplibs_check_method=pass_all
6481     ;;
6482   esac
6483   ;;
6484
6485 tpf*)
6486   lt_cv_deplibs_check_method=pass_all
6487   ;;
6488 esac
6489
6490 fi
6491 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6492 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6493 file_magic_cmd=$lt_cv_file_magic_cmd
6494 deplibs_check_method=$lt_cv_deplibs_check_method
6495 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 if test -n "$ac_tool_prefix"; then
6509   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}ar; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_prog_AR+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516   if test -n "$AR"; then
6517   ac_cv_prog_AR="$AR" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522   IFS=$as_save_IFS
6523   test -z "$as_dir" && as_dir=.
6524   for ac_exec_ext in '' $ac_executable_extensions; do
6525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526     ac_cv_prog_AR="${ac_tool_prefix}ar"
6527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528     break 2
6529   fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 AR=$ac_cv_prog_AR
6537 if test -n "$AR"; then
6538   { echo "$as_me:$LINENO: result: $AR" >&5
6539 echo "${ECHO_T}$AR" >&6; }
6540 else
6541   { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6543 fi
6544
6545
6546 fi
6547 if test -z "$ac_cv_prog_AR"; then
6548   ac_ct_AR=$AR
6549   # Extract the first word of "ar", so it can be a program name with args.
6550 set dummy ar; ac_word=$2
6551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6553 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6554   echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556   if test -n "$ac_ct_AR"; then
6557   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562   IFS=$as_save_IFS
6563   test -z "$as_dir" && as_dir=.
6564   for ac_exec_ext in '' $ac_executable_extensions; do
6565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566     ac_cv_prog_ac_ct_AR="ar"
6567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568     break 2
6569   fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6577 if test -n "$ac_ct_AR"; then
6578   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6579 echo "${ECHO_T}$ac_ct_AR" >&6; }
6580 else
6581   { echo "$as_me:$LINENO: result: no" >&5
6582 echo "${ECHO_T}no" >&6; }
6583 fi
6584
6585   if test "x$ac_ct_AR" = x; then
6586     AR="false"
6587   else
6588     case $cross_compiling:$ac_tool_warned in
6589 yes:)
6590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6591 whose name does not start with the host triplet.  If you think this
6592 configuration is useful to you, please write to autoconf@gnu.org." >&5
6593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6594 whose name does not start with the host triplet.  If you think this
6595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6596 ac_tool_warned=yes ;;
6597 esac
6598     AR=$ac_ct_AR
6599   fi
6600 else
6601   AR="$ac_cv_prog_AR"
6602 fi
6603
6604 test -z "$AR" && AR=ar
6605 test -z "$AR_FLAGS" && AR_FLAGS=cru
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617 if test -n "$ac_tool_prefix"; then
6618   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6619 set dummy ${ac_tool_prefix}strip; ac_word=$2
6620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6622 if test "${ac_cv_prog_STRIP+set}" = set; then
6623   echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625   if test -n "$STRIP"; then
6626   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6627 else
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633   for ac_exec_ext in '' $ac_executable_extensions; do
6634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6635     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637     break 2
6638   fi
6639 done
6640 done
6641 IFS=$as_save_IFS
6642
6643 fi
6644 fi
6645 STRIP=$ac_cv_prog_STRIP
6646 if test -n "$STRIP"; then
6647   { echo "$as_me:$LINENO: result: $STRIP" >&5
6648 echo "${ECHO_T}$STRIP" >&6; }
6649 else
6650   { echo "$as_me:$LINENO: result: no" >&5
6651 echo "${ECHO_T}no" >&6; }
6652 fi
6653
6654
6655 fi
6656 if test -z "$ac_cv_prog_STRIP"; then
6657   ac_ct_STRIP=$STRIP
6658   # Extract the first word of "strip", so it can be a program name with args.
6659 set dummy strip; ac_word=$2
6660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   if test -n "$ac_ct_STRIP"; then
6666   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6667 else
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 for as_dir in $PATH
6670 do
6671   IFS=$as_save_IFS
6672   test -z "$as_dir" && as_dir=.
6673   for ac_exec_ext in '' $ac_executable_extensions; do
6674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6675     ac_cv_prog_ac_ct_STRIP="strip"
6676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677     break 2
6678   fi
6679 done
6680 done
6681 IFS=$as_save_IFS
6682
6683 fi
6684 fi
6685 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6686 if test -n "$ac_ct_STRIP"; then
6687   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6688 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6689 else
6690   { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6692 fi
6693
6694   if test "x$ac_ct_STRIP" = x; then
6695     STRIP=":"
6696   else
6697     case $cross_compiling:$ac_tool_warned in
6698 yes:)
6699 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6700 whose name does not start with the host triplet.  If you think this
6701 configuration is useful to you, please write to autoconf@gnu.org." >&5
6702 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6703 whose name does not start with the host triplet.  If you think this
6704 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6705 ac_tool_warned=yes ;;
6706 esac
6707     STRIP=$ac_ct_STRIP
6708   fi
6709 else
6710   STRIP="$ac_cv_prog_STRIP"
6711 fi
6712
6713 test -z "$STRIP" && STRIP=:
6714
6715
6716
6717
6718
6719
6720 if test -n "$ac_tool_prefix"; then
6721   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_prog_RANLIB+set}" = set; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   if test -n "$RANLIB"; then
6729   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734   IFS=$as_save_IFS
6735   test -z "$as_dir" && as_dir=.
6736   for ac_exec_ext in '' $ac_executable_extensions; do
6737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740     break 2
6741   fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 RANLIB=$ac_cv_prog_RANLIB
6749 if test -n "$RANLIB"; then
6750   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6751 echo "${ECHO_T}$RANLIB" >&6; }
6752 else
6753   { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6755 fi
6756
6757
6758 fi
6759 if test -z "$ac_cv_prog_RANLIB"; then
6760   ac_ct_RANLIB=$RANLIB
6761   # Extract the first word of "ranlib", so it can be a program name with args.
6762 set dummy ranlib; ac_word=$2
6763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768   if test -n "$ac_ct_RANLIB"; then
6769   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774   IFS=$as_save_IFS
6775   test -z "$as_dir" && as_dir=.
6776   for ac_exec_ext in '' $ac_executable_extensions; do
6777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778     ac_cv_prog_ac_ct_RANLIB="ranlib"
6779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780     break 2
6781   fi
6782 done
6783 done
6784 IFS=$as_save_IFS
6785
6786 fi
6787 fi
6788 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6789 if test -n "$ac_ct_RANLIB"; then
6790   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6791 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6792 else
6793   { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6795 fi
6796
6797   if test "x$ac_ct_RANLIB" = x; then
6798     RANLIB=":"
6799   else
6800     case $cross_compiling:$ac_tool_warned in
6801 yes:)
6802 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet.  If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&5
6805 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6806 whose name does not start with the host triplet.  If you think this
6807 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6808 ac_tool_warned=yes ;;
6809 esac
6810     RANLIB=$ac_ct_RANLIB
6811   fi
6812 else
6813   RANLIB="$ac_cv_prog_RANLIB"
6814 fi
6815
6816 test -z "$RANLIB" && RANLIB=:
6817
6818
6819
6820
6821
6822
6823 # Determine commands to create old-style static archives.
6824 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6825 old_postinstall_cmds='chmod 644 $oldlib'
6826 old_postuninstall_cmds=
6827
6828 if test -n "$RANLIB"; then
6829   case $host_os in
6830   openbsd*)
6831     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6832     ;;
6833   *)
6834     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6835     ;;
6836   esac
6837   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6838 fi
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873 # If no C compiler was specified, use CC.
6874 LTCC=${LTCC-"$CC"}
6875
6876 # If no C compiler flags were specified, use CFLAGS.
6877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6878
6879 # Allow CC to be a program name with arguments.
6880 compiler=$CC
6881
6882
6883 # Check for command to grab the raw symbol name followed by C symbol from nm.
6884 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6885 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6886 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6887   echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889
6890 # These are sane defaults that work on at least a few old systems.
6891 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6892
6893 # Character class describing NM global symbol codes.
6894 symcode='[BCDEGRST]'
6895
6896 # Regexp to match symbols that can be accessed directly from C.
6897 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6898
6899 # Define system-specific variables.
6900 case $host_os in
6901 aix*)
6902   symcode='[BCDT]'
6903   ;;
6904 cygwin* | mingw* | pw32* | cegcc*)
6905   symcode='[ABCDGISTW]'
6906   ;;
6907 hpux*)
6908   if test "$host_cpu" = ia64; then
6909     symcode='[ABCDEGRST]'
6910   fi
6911   ;;
6912 irix* | nonstopux*)
6913   symcode='[BCDEGRST]'
6914   ;;
6915 osf*)
6916   symcode='[BCDEGQRST]'
6917   ;;
6918 solaris*)
6919   symcode='[BDRT]'
6920   ;;
6921 sco3.2v5*)
6922   symcode='[DT]'
6923   ;;
6924 sysv4.2uw2*)
6925   symcode='[DT]'
6926   ;;
6927 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6928   symcode='[ABDT]'
6929   ;;
6930 sysv4)
6931   symcode='[DFNSTU]'
6932   ;;
6933 esac
6934
6935 # If we're using GNU nm, then use its standard symbol codes.
6936 case `$NM -V 2>&1` in
6937 *GNU* | *'with BFD'*)
6938   symcode='[ABCDGIRSTW]' ;;
6939 esac
6940
6941 # Transform an extracted symbol line into a proper C declaration.
6942 # Some systems (esp. on ia64) link data and code symbols differently,
6943 # so use this general approach.
6944 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6945
6946 # Transform an extracted symbol line into symbol name and symbol address
6947 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6948 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'"
6949
6950 # Handle CRLF in mingw tool chain
6951 opt_cr=
6952 case $build_os in
6953 mingw*)
6954   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6955   ;;
6956 esac
6957
6958 # Try without a prefix underscore, then with it.
6959 for ac_symprfx in "" "_"; do
6960
6961   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6962   symxfrm="\\1 $ac_symprfx\\2 \\2"
6963
6964   # Write the raw and C identifiers.
6965   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6966     # Fake it for dumpbin and say T for any non-static function
6967     # and D for any global variable.
6968     # Also find C++ and __fastcall symbols from MSVC++,
6969     # which start with @ or ?.
6970     lt_cv_sys_global_symbol_pipe="$AWK '"\
6971 "     {last_section=section; section=\$ 3};"\
6972 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6973 "     \$ 0!~/External *\|/{next};"\
6974 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6975 "     {if(hide[section]) next};"\
6976 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6977 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6978 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6979 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6980 "     ' prfx=^$ac_symprfx"
6981   else
6982     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6983   fi
6984
6985   # Check to see that the pipe works correctly.
6986   pipe_works=no
6987
6988   rm -f conftest*
6989   cat > conftest.$ac_ext <<_LT_EOF
6990 #ifdef __cplusplus
6991 extern "C" {
6992 #endif
6993 char nm_test_var;
6994 void nm_test_func(void);
6995 void nm_test_func(void){}
6996 #ifdef __cplusplus
6997 }
6998 #endif
6999 int main(){nm_test_var='a';nm_test_func();return(0);}
7000 _LT_EOF
7001
7002   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7003   (eval $ac_compile) 2>&5
7004   ac_status=$?
7005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006   (exit $ac_status); }; then
7007     # Now try to grab the symbols.
7008     nlist=conftest.nm
7009     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7010   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7011   ac_status=$?
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); } && test -s "$nlist"; then
7014       # Try sorting and uniquifying the output.
7015       if sort "$nlist" | uniq > "$nlist"T; then
7016         mv -f "$nlist"T "$nlist"
7017       else
7018         rm -f "$nlist"T
7019       fi
7020
7021       # Make sure that we snagged all the symbols we need.
7022       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7023         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7024           cat <<_LT_EOF > conftest.$ac_ext
7025 #ifdef __cplusplus
7026 extern "C" {
7027 #endif
7028
7029 _LT_EOF
7030           # Now generate the symbol file.
7031           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7032
7033           cat <<_LT_EOF >> conftest.$ac_ext
7034
7035 /* The mapping between symbol names and symbols.  */
7036 const struct {
7037   const char *name;
7038   void       *address;
7039 }
7040 lt__PROGRAM__LTX_preloaded_symbols[] =
7041 {
7042   { "@PROGRAM@", (void *) 0 },
7043 _LT_EOF
7044           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7045           cat <<\_LT_EOF >> conftest.$ac_ext
7046   {0, (void *) 0}
7047 };
7048
7049 /* This works around a problem in FreeBSD linker */
7050 #ifdef FREEBSD_WORKAROUND
7051 static const void *lt_preloaded_setup() {
7052   return lt__PROGRAM__LTX_preloaded_symbols;
7053 }
7054 #endif
7055
7056 #ifdef __cplusplus
7057 }
7058 #endif
7059 _LT_EOF
7060           # Now try linking the two files.
7061           mv conftest.$ac_objext conftstm.$ac_objext
7062           lt_save_LIBS="$LIBS"
7063           lt_save_CFLAGS="$CFLAGS"
7064           LIBS="conftstm.$ac_objext"
7065           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7066           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7067   (eval $ac_link) 2>&5
7068   ac_status=$?
7069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7071             pipe_works=yes
7072           fi
7073           LIBS="$lt_save_LIBS"
7074           CFLAGS="$lt_save_CFLAGS"
7075         else
7076           echo "cannot find nm_test_func in $nlist" >&5
7077         fi
7078       else
7079         echo "cannot find nm_test_var in $nlist" >&5
7080       fi
7081     else
7082       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7083     fi
7084   else
7085     echo "$progname: failed program was:" >&5
7086     cat conftest.$ac_ext >&5
7087   fi
7088   rm -rf conftest* conftst*
7089
7090   # Do not use the global_symbol_pipe unless it works.
7091   if test "$pipe_works" = yes; then
7092     break
7093   else
7094     lt_cv_sys_global_symbol_pipe=
7095   fi
7096 done
7097
7098 fi
7099
7100 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7101   lt_cv_sys_global_symbol_to_cdecl=
7102 fi
7103 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7104   { echo "$as_me:$LINENO: result: failed" >&5
7105 echo "${ECHO_T}failed" >&6; }
7106 else
7107   { echo "$as_me:$LINENO: result: ok" >&5
7108 echo "${ECHO_T}ok" >&6; }
7109 fi
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132 # Check whether --enable-libtool-lock was given.
7133 if test "${enable_libtool_lock+set}" = set; then
7134   enableval=$enable_libtool_lock;
7135 fi
7136
7137 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7138
7139 # Some flags need to be propagated to the compiler or linker for good
7140 # libtool support.
7141 case $host in
7142 ia64-*-hpux*)
7143   # Find out which ABI we are using.
7144   echo 'int i;' > conftest.$ac_ext
7145   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146   (eval $ac_compile) 2>&5
7147   ac_status=$?
7148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149   (exit $ac_status); }; then
7150     case `/usr/bin/file conftest.$ac_objext` in
7151       *ELF-32*)
7152         HPUX_IA64_MODE="32"
7153         ;;
7154       *ELF-64*)
7155         HPUX_IA64_MODE="64"
7156         ;;
7157     esac
7158   fi
7159   rm -rf conftest*
7160   ;;
7161 *-*-irix6*)
7162   # Find out which ABI we are using.
7163   echo '#line 7163 "configure"' > conftest.$ac_ext
7164   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165   (eval $ac_compile) 2>&5
7166   ac_status=$?
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); }; then
7169     if test "$lt_cv_prog_gnu_ld" = yes; then
7170       case `/usr/bin/file conftest.$ac_objext` in
7171         *32-bit*)
7172           LD="${LD-ld} -melf32bsmip"
7173           ;;
7174         *N32*)
7175           LD="${LD-ld} -melf32bmipn32"
7176           ;;
7177         *64-bit*)
7178           LD="${LD-ld} -melf64bmip"
7179         ;;
7180       esac
7181     else
7182       case `/usr/bin/file conftest.$ac_objext` in
7183         *32-bit*)
7184           LD="${LD-ld} -32"
7185           ;;
7186         *N32*)
7187           LD="${LD-ld} -n32"
7188           ;;
7189         *64-bit*)
7190           LD="${LD-ld} -64"
7191           ;;
7192       esac
7193     fi
7194   fi
7195   rm -rf conftest*
7196   ;;
7197
7198 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7199 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7200   # Find out which ABI we are using.
7201   echo 'int i;' > conftest.$ac_ext
7202   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7203   (eval $ac_compile) 2>&5
7204   ac_status=$?
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); }; then
7207     case `/usr/bin/file conftest.o` in
7208       *32-bit*)
7209         case $host in
7210           x86_64-*kfreebsd*-gnu)
7211             LD="${LD-ld} -m elf_i386_fbsd"
7212             ;;
7213           x86_64-*linux*)
7214             LD="${LD-ld} -m elf_i386"
7215             ;;
7216           ppc64-*linux*|powerpc64-*linux*)
7217             LD="${LD-ld} -m elf32ppclinux"
7218             ;;
7219           s390x-*linux*)
7220             LD="${LD-ld} -m elf_s390"
7221             ;;
7222           sparc64-*linux*)
7223             LD="${LD-ld} -m elf32_sparc"
7224             ;;
7225         esac
7226         ;;
7227       *64-bit*)
7228         case $host in
7229           x86_64-*kfreebsd*-gnu)
7230             LD="${LD-ld} -m elf_x86_64_fbsd"
7231             ;;
7232           x86_64-*linux*)
7233             LD="${LD-ld} -m elf_x86_64"
7234             ;;
7235           ppc*-*linux*|powerpc*-*linux*)
7236             LD="${LD-ld} -m elf64ppc"
7237             ;;
7238           s390*-*linux*|s390*-*tpf*)
7239             LD="${LD-ld} -m elf64_s390"
7240             ;;
7241           sparc*-*linux*)
7242             LD="${LD-ld} -m elf64_sparc"
7243             ;;
7244         esac
7245         ;;
7246     esac
7247   fi
7248   rm -rf conftest*
7249   ;;
7250
7251 *-*-sco3.2v5*)
7252   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7253   SAVE_CFLAGS="$CFLAGS"
7254   CFLAGS="$CFLAGS -belf"
7255   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7256 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7257 if test "${lt_cv_cc_needs_belf+set}" = set; then
7258   echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260   ac_ext=c
7261 ac_cpp='$CPP $CPPFLAGS'
7262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7265
7266      cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h.  */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h.  */
7272
7273 int
7274 main ()
7275 {
7276
7277   ;
7278   return 0;
7279 }
7280 _ACEOF
7281 rm -f conftest.$ac_objext conftest$ac_exeext
7282 if { (ac_try="$ac_link"
7283 case "(($ac_try" in
7284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285   *) ac_try_echo=$ac_try;;
7286 esac
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288   (eval "$ac_link") 2>conftest.er1
7289   ac_status=$?
7290   grep -v '^ *+' conftest.er1 >conftest.err
7291   rm -f conftest.er1
7292   cat conftest.err >&5
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); } && {
7295          test -z "$ac_c_werror_flag" ||
7296          test ! -s conftest.err
7297        } && test -s conftest$ac_exeext &&
7298        $as_test_x conftest$ac_exeext; then
7299   lt_cv_cc_needs_belf=yes
7300 else
7301   echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7303
7304         lt_cv_cc_needs_belf=no
7305 fi
7306
7307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7308       conftest$ac_exeext conftest.$ac_ext
7309      ac_ext=c
7310 ac_cpp='$CPP $CPPFLAGS'
7311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7314
7315 fi
7316 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7317 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7318   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7319     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7320     CFLAGS="$SAVE_CFLAGS"
7321   fi
7322   ;;
7323 sparc*-*solaris*)
7324   # Find out which ABI we are using.
7325   echo 'int i;' > conftest.$ac_ext
7326   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7327   (eval $ac_compile) 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); }; then
7331     case `/usr/bin/file conftest.o` in
7332     *64-bit*)
7333       case $lt_cv_prog_gnu_ld in
7334       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7335       *)
7336         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7337           LD="${LD-ld} -64"
7338         fi
7339         ;;
7340       esac
7341       ;;
7342     esac
7343   fi
7344   rm -rf conftest*
7345   ;;
7346 esac
7347
7348 need_locks="$enable_libtool_lock"
7349
7350
7351   case $host_os in
7352     rhapsody* | darwin*)
7353     if test -n "$ac_tool_prefix"; then
7354   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7355 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7358 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7359   echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361   if test -n "$DSYMUTIL"; then
7362   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367   IFS=$as_save_IFS
7368   test -z "$as_dir" && as_dir=.
7369   for ac_exec_ext in '' $ac_executable_extensions; do
7370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373     break 2
7374   fi
7375 done
7376 done
7377 IFS=$as_save_IFS
7378
7379 fi
7380 fi
7381 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7382 if test -n "$DSYMUTIL"; then
7383   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7384 echo "${ECHO_T}$DSYMUTIL" >&6; }
7385 else
7386   { echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6; }
7388 fi
7389
7390
7391 fi
7392 if test -z "$ac_cv_prog_DSYMUTIL"; then
7393   ac_ct_DSYMUTIL=$DSYMUTIL
7394   # Extract the first word of "dsymutil", so it can be a program name with args.
7395 set dummy dsymutil; ac_word=$2
7396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7398 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7399   echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401   if test -n "$ac_ct_DSYMUTIL"; then
7402   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409   for ac_exec_ext in '' $ac_executable_extensions; do
7410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413     break 2
7414   fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7422 if test -n "$ac_ct_DSYMUTIL"; then
7423   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7424 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7425 else
7426   { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7428 fi
7429
7430   if test "x$ac_ct_DSYMUTIL" = x; then
7431     DSYMUTIL=":"
7432   else
7433     case $cross_compiling:$ac_tool_warned in
7434 yes:)
7435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7436 whose name does not start with the host triplet.  If you think this
7437 configuration is useful to you, please write to autoconf@gnu.org." >&5
7438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7439 whose name does not start with the host triplet.  If you think this
7440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7441 ac_tool_warned=yes ;;
7442 esac
7443     DSYMUTIL=$ac_ct_DSYMUTIL
7444   fi
7445 else
7446   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7447 fi
7448
7449     if test -n "$ac_tool_prefix"; then
7450   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7451 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   if test -n "$NMEDIT"; then
7458   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463   IFS=$as_save_IFS
7464   test -z "$as_dir" && as_dir=.
7465   for ac_exec_ext in '' $ac_executable_extensions; do
7466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469     break 2
7470   fi
7471 done
7472 done
7473 IFS=$as_save_IFS
7474
7475 fi
7476 fi
7477 NMEDIT=$ac_cv_prog_NMEDIT
7478 if test -n "$NMEDIT"; then
7479   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7480 echo "${ECHO_T}$NMEDIT" >&6; }
7481 else
7482   { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7484 fi
7485
7486
7487 fi
7488 if test -z "$ac_cv_prog_NMEDIT"; then
7489   ac_ct_NMEDIT=$NMEDIT
7490   # Extract the first word of "nmedit", so it can be a program name with args.
7491 set dummy nmedit; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   if test -n "$ac_ct_NMEDIT"; then
7498   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503   IFS=$as_save_IFS
7504   test -z "$as_dir" && as_dir=.
7505   for ac_exec_ext in '' $ac_executable_extensions; do
7506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7518 if test -n "$ac_ct_NMEDIT"; then
7519   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7520 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7521 else
7522   { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7524 fi
7525
7526   if test "x$ac_ct_NMEDIT" = x; then
7527     NMEDIT=":"
7528   else
7529     case $cross_compiling:$ac_tool_warned in
7530 yes:)
7531 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7532 whose name does not start with the host triplet.  If you think this
7533 configuration is useful to you, please write to autoconf@gnu.org." >&5
7534 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7535 whose name does not start with the host triplet.  If you think this
7536 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7537 ac_tool_warned=yes ;;
7538 esac
7539     NMEDIT=$ac_ct_NMEDIT
7540   fi
7541 else
7542   NMEDIT="$ac_cv_prog_NMEDIT"
7543 fi
7544
7545     if test -n "$ac_tool_prefix"; then
7546   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7547 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7550 if test "${ac_cv_prog_LIPO+set}" = set; then
7551   echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553   if test -n "$LIPO"; then
7554   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561   for ac_exec_ext in '' $ac_executable_extensions; do
7562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 LIPO=$ac_cv_prog_LIPO
7574 if test -n "$LIPO"; then
7575   { echo "$as_me:$LINENO: result: $LIPO" >&5
7576 echo "${ECHO_T}$LIPO" >&6; }
7577 else
7578   { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7580 fi
7581
7582
7583 fi
7584 if test -z "$ac_cv_prog_LIPO"; then
7585   ac_ct_LIPO=$LIPO
7586   # Extract the first word of "lipo", so it can be a program name with args.
7587 set dummy lipo; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593   if test -n "$ac_ct_LIPO"; then
7594   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601   for ac_exec_ext in '' $ac_executable_extensions; do
7602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603     ac_cv_prog_ac_ct_LIPO="lipo"
7604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605     break 2
7606   fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7614 if test -n "$ac_ct_LIPO"; then
7615   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7616 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7617 else
7618   { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7620 fi
7621
7622   if test "x$ac_ct_LIPO" = x; then
7623     LIPO=":"
7624   else
7625     case $cross_compiling:$ac_tool_warned in
7626 yes:)
7627 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7628 whose name does not start with the host triplet.  If you think this
7629 configuration is useful to you, please write to autoconf@gnu.org." >&5
7630 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7631 whose name does not start with the host triplet.  If you think this
7632 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7633 ac_tool_warned=yes ;;
7634 esac
7635     LIPO=$ac_ct_LIPO
7636   fi
7637 else
7638   LIPO="$ac_cv_prog_LIPO"
7639 fi
7640
7641     if test -n "$ac_tool_prefix"; then
7642   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7643 set dummy ${ac_tool_prefix}otool; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_prog_OTOOL+set}" = set; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649   if test -n "$OTOOL"; then
7650   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7651 else
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7654 do
7655   IFS=$as_save_IFS
7656   test -z "$as_dir" && as_dir=.
7657   for ac_exec_ext in '' $ac_executable_extensions; do
7658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7659     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661     break 2
7662   fi
7663 done
7664 done
7665 IFS=$as_save_IFS
7666
7667 fi
7668 fi
7669 OTOOL=$ac_cv_prog_OTOOL
7670 if test -n "$OTOOL"; then
7671   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7672 echo "${ECHO_T}$OTOOL" >&6; }
7673 else
7674   { echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6; }
7676 fi
7677
7678
7679 fi
7680 if test -z "$ac_cv_prog_OTOOL"; then
7681   ac_ct_OTOOL=$OTOOL
7682   # Extract the first word of "otool", so it can be a program name with args.
7683 set dummy otool; ac_word=$2
7684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7686 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7687   echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689   if test -n "$ac_ct_OTOOL"; then
7690   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7691 else
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695   IFS=$as_save_IFS
7696   test -z "$as_dir" && as_dir=.
7697   for ac_exec_ext in '' $ac_executable_extensions; do
7698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699     ac_cv_prog_ac_ct_OTOOL="otool"
7700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701     break 2
7702   fi
7703 done
7704 done
7705 IFS=$as_save_IFS
7706
7707 fi
7708 fi
7709 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7710 if test -n "$ac_ct_OTOOL"; then
7711   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7712 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7713 else
7714   { echo "$as_me:$LINENO: result: no" >&5
7715 echo "${ECHO_T}no" >&6; }
7716 fi
7717
7718   if test "x$ac_ct_OTOOL" = x; then
7719     OTOOL=":"
7720   else
7721     case $cross_compiling:$ac_tool_warned in
7722 yes:)
7723 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7724 whose name does not start with the host triplet.  If you think this
7725 configuration is useful to you, please write to autoconf@gnu.org." >&5
7726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7727 whose name does not start with the host triplet.  If you think this
7728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7729 ac_tool_warned=yes ;;
7730 esac
7731     OTOOL=$ac_ct_OTOOL
7732   fi
7733 else
7734   OTOOL="$ac_cv_prog_OTOOL"
7735 fi
7736
7737     if test -n "$ac_tool_prefix"; then
7738   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7739 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7742 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7743   echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745   if test -n "$OTOOL64"; then
7746   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753   for ac_exec_ext in '' $ac_executable_extensions; do
7754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760 done
7761 IFS=$as_save_IFS
7762
7763 fi
7764 fi
7765 OTOOL64=$ac_cv_prog_OTOOL64
7766 if test -n "$OTOOL64"; then
7767   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7768 echo "${ECHO_T}$OTOOL64" >&6; }
7769 else
7770   { echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6; }
7772 fi
7773
7774
7775 fi
7776 if test -z "$ac_cv_prog_OTOOL64"; then
7777   ac_ct_OTOOL64=$OTOOL64
7778   # Extract the first word of "otool64", so it can be a program name with args.
7779 set dummy otool64; ac_word=$2
7780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7782 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7783   echo $ECHO_N "(cached) $ECHO_C" >&6
7784 else
7785   if test -n "$ac_ct_OTOOL64"; then
7786   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791   IFS=$as_save_IFS
7792   test -z "$as_dir" && as_dir=.
7793   for ac_exec_ext in '' $ac_executable_extensions; do
7794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795     ac_cv_prog_ac_ct_OTOOL64="otool64"
7796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797     break 2
7798   fi
7799 done
7800 done
7801 IFS=$as_save_IFS
7802
7803 fi
7804 fi
7805 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7806 if test -n "$ac_ct_OTOOL64"; then
7807   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7808 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7809 else
7810   { echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6; }
7812 fi
7813
7814   if test "x$ac_ct_OTOOL64" = x; then
7815     OTOOL64=":"
7816   else
7817     case $cross_compiling:$ac_tool_warned in
7818 yes:)
7819 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7820 whose name does not start with the host triplet.  If you think this
7821 configuration is useful to you, please write to autoconf@gnu.org." >&5
7822 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7823 whose name does not start with the host triplet.  If you think this
7824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7825 ac_tool_warned=yes ;;
7826 esac
7827     OTOOL64=$ac_ct_OTOOL64
7828   fi
7829 else
7830   OTOOL64="$ac_cv_prog_OTOOL64"
7831 fi
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7860 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7861 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7862   echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864   lt_cv_apple_cc_single_mod=no
7865       if test -z "${LT_MULTI_MODULE}"; then
7866         # By default we will add the -single_module flag. You can override
7867         # by either setting the environment variable LT_MULTI_MODULE
7868         # non-empty at configure time, or by adding -multi_module to the
7869         # link flags.
7870         rm -rf libconftest.dylib*
7871         echo "int foo(void){return 1;}" > conftest.c
7872         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7873 -dynamiclib -Wl,-single_module conftest.c" >&5
7874         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7875           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7876         _lt_result=$?
7877         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7878           lt_cv_apple_cc_single_mod=yes
7879         else
7880           cat conftest.err >&5
7881         fi
7882         rm -rf libconftest.dylib*
7883         rm -f conftest.*
7884       fi
7885 fi
7886 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7887 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7888     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7889 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7890 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7891   echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893   lt_cv_ld_exported_symbols_list=no
7894       save_LDFLAGS=$LDFLAGS
7895       echo "_main" > conftest.sym
7896       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7897       cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h.  */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h.  */
7903
7904 int
7905 main ()
7906 {
7907
7908   ;
7909   return 0;
7910 }
7911 _ACEOF
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (ac_try="$ac_link"
7914 case "(($ac_try" in
7915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916   *) ac_try_echo=$ac_try;;
7917 esac
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919   (eval "$ac_link") 2>conftest.er1
7920   ac_status=$?
7921   grep -v '^ *+' conftest.er1 >conftest.err
7922   rm -f conftest.er1
7923   cat conftest.err >&5
7924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925   (exit $ac_status); } && {
7926          test -z "$ac_c_werror_flag" ||
7927          test ! -s conftest.err
7928        } && test -s conftest$ac_exeext &&
7929        $as_test_x conftest$ac_exeext; then
7930   lt_cv_ld_exported_symbols_list=yes
7931 else
7932   echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935         lt_cv_ld_exported_symbols_list=no
7936 fi
7937
7938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7939       conftest$ac_exeext conftest.$ac_ext
7940         LDFLAGS="$save_LDFLAGS"
7941
7942 fi
7943 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7944 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7945     case $host_os in
7946     rhapsody* | darwin1.[012])
7947       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7948     darwin1.*)
7949       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7950     darwin*) # darwin 5.x on
7951       # if running on 10.5 or later, the deployment target defaults
7952       # to the OS version, if on x86, and 10.4, the deployment
7953       # target defaults to 10.4. Don't you love it?
7954       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7955         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7956           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7957         10.[012]*)
7958           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7959         10.*)
7960           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7961       esac
7962     ;;
7963   esac
7964     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7965       _lt_dar_single_mod='$single_module'
7966     fi
7967     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7968       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7969     else
7970       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7971     fi
7972     if test "$DSYMUTIL" != ":"; then
7973       _lt_dsymutil='~$DSYMUTIL $lib || :'
7974     else
7975       _lt_dsymutil=
7976     fi
7977     ;;
7978   esac
7979
7980 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7982 if test "${ac_cv_header_stdc+set}" = set; then
7983   echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985   cat >conftest.$ac_ext <<_ACEOF
7986 /* confdefs.h.  */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h.  */
7991 #include <stdlib.h>
7992 #include <stdarg.h>
7993 #include <string.h>
7994 #include <float.h>
7995
7996 int
7997 main ()
7998 {
7999
8000   ;
8001   return 0;
8002 }
8003 _ACEOF
8004 rm -f conftest.$ac_objext
8005 if { (ac_try="$ac_compile"
8006 case "(($ac_try" in
8007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008   *) ac_try_echo=$ac_try;;
8009 esac
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011   (eval "$ac_compile") 2>conftest.er1
8012   ac_status=$?
8013   grep -v '^ *+' conftest.er1 >conftest.err
8014   rm -f conftest.er1
8015   cat conftest.err >&5
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); } && {
8018          test -z "$ac_c_werror_flag" ||
8019          test ! -s conftest.err
8020        } && test -s conftest.$ac_objext; then
8021   ac_cv_header_stdc=yes
8022 else
8023   echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8025
8026         ac_cv_header_stdc=no
8027 fi
8028
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030
8031 if test $ac_cv_header_stdc = yes; then
8032   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8033   cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h.  */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h.  */
8039 #include <string.h>
8040
8041 _ACEOF
8042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8043   $EGREP "memchr" >/dev/null 2>&1; then
8044   :
8045 else
8046   ac_cv_header_stdc=no
8047 fi
8048 rm -f conftest*
8049
8050 fi
8051
8052 if test $ac_cv_header_stdc = yes; then
8053   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8054   cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060 #include <stdlib.h>
8061
8062 _ACEOF
8063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8064   $EGREP "free" >/dev/null 2>&1; then
8065   :
8066 else
8067   ac_cv_header_stdc=no
8068 fi
8069 rm -f conftest*
8070
8071 fi
8072
8073 if test $ac_cv_header_stdc = yes; then
8074   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8075   if test "$cross_compiling" = yes; then
8076   :
8077 else
8078   cat >conftest.$ac_ext <<_ACEOF
8079 /* confdefs.h.  */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h.  */
8084 #include <ctype.h>
8085 #include <stdlib.h>
8086 #if ((' ' & 0x0FF) == 0x020)
8087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8089 #else
8090 # define ISLOWER(c) \
8091                    (('a' <= (c) && (c) <= 'i') \
8092                      || ('j' <= (c) && (c) <= 'r') \
8093                      || ('s' <= (c) && (c) <= 'z'))
8094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8095 #endif
8096
8097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8098 int
8099 main ()
8100 {
8101   int i;
8102   for (i = 0; i < 256; i++)
8103     if (XOR (islower (i), ISLOWER (i))
8104         || toupper (i) != TOUPPER (i))
8105       return 2;
8106   return 0;
8107 }
8108 _ACEOF
8109 rm -f conftest$ac_exeext
8110 if { (ac_try="$ac_link"
8111 case "(($ac_try" in
8112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113   *) ac_try_echo=$ac_try;;
8114 esac
8115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8116   (eval "$ac_link") 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8120   { (case "(($ac_try" in
8121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122   *) ac_try_echo=$ac_try;;
8123 esac
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125   (eval "$ac_try") 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); }; }; then
8129   :
8130 else
8131   echo "$as_me: program exited with status $ac_status" >&5
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135 ( exit $ac_status )
8136 ac_cv_header_stdc=no
8137 fi
8138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8139 fi
8140
8141
8142 fi
8143 fi
8144 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8145 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8146 if test $ac_cv_header_stdc = yes; then
8147
8148 cat >>confdefs.h <<\_ACEOF
8149 #define STDC_HEADERS 1
8150 _ACEOF
8151
8152 fi
8153
8154 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8165                   inttypes.h stdint.h unistd.h
8166 do
8167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8171   echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173   cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h.  */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h.  */
8179 $ac_includes_default
8180
8181 #include <$ac_header>
8182 _ACEOF
8183 rm -f conftest.$ac_objext
8184 if { (ac_try="$ac_compile"
8185 case "(($ac_try" in
8186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187   *) ac_try_echo=$ac_try;;
8188 esac
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190   (eval "$ac_compile") 2>conftest.er1
8191   ac_status=$?
8192   grep -v '^ *+' conftest.er1 >conftest.err
8193   rm -f conftest.er1
8194   cat conftest.err >&5
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } && {
8197          test -z "$ac_c_werror_flag" ||
8198          test ! -s conftest.err
8199        } && test -s conftest.$ac_objext; then
8200   eval "$as_ac_Header=yes"
8201 else
8202   echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8204
8205         eval "$as_ac_Header=no"
8206 fi
8207
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209 fi
8210 ac_res=`eval echo '${'$as_ac_Header'}'`
8211                { echo "$as_me:$LINENO: result: $ac_res" >&5
8212 echo "${ECHO_T}$ac_res" >&6; }
8213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8214   cat >>confdefs.h <<_ACEOF
8215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8216 _ACEOF
8217
8218 fi
8219
8220 done
8221
8222
8223
8224 for ac_header in dlfcn.h
8225 do
8226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h.  */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h.  */
8238 $ac_includes_default
8239
8240 #include <$ac_header>
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8244 case "(($ac_try" in
8245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246   *) ac_try_echo=$ac_try;;
8247 esac
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249   (eval "$ac_compile") 2>conftest.er1
8250   ac_status=$?
8251   grep -v '^ *+' conftest.er1 >conftest.err
8252   rm -f conftest.er1
8253   cat conftest.err >&5
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); } && {
8256          test -z "$ac_c_werror_flag" ||
8257          test ! -s conftest.err
8258        } && test -s conftest.$ac_objext; then
8259   eval "$as_ac_Header=yes"
8260 else
8261   echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8263
8264         eval "$as_ac_Header=no"
8265 fi
8266
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 fi
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270                { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273   cat >>confdefs.h <<_ACEOF
8274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8275 _ACEOF
8276
8277 fi
8278
8279 done
8280
8281
8282
8283 ac_ext=cpp
8284 ac_cpp='$CXXCPP $CPPFLAGS'
8285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8288 if test -z "$CXX"; then
8289   if test -n "$CCC"; then
8290     CXX=$CCC
8291   else
8292     if test -n "$ac_tool_prefix"; then
8293   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8294   do
8295     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8299 if test "${ac_cv_prog_CXX+set}" = set; then
8300   echo $ECHO_N "(cached) $ECHO_C" >&6
8301 else
8302   if test -n "$CXX"; then
8303   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8304 else
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8307 do
8308   IFS=$as_save_IFS
8309   test -z "$as_dir" && as_dir=.
8310   for ac_exec_ext in '' $ac_executable_extensions; do
8311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8314     break 2
8315   fi
8316 done
8317 done
8318 IFS=$as_save_IFS
8319
8320 fi
8321 fi
8322 CXX=$ac_cv_prog_CXX
8323 if test -n "$CXX"; then
8324   { echo "$as_me:$LINENO: result: $CXX" >&5
8325 echo "${ECHO_T}$CXX" >&6; }
8326 else
8327   { echo "$as_me:$LINENO: result: no" >&5
8328 echo "${ECHO_T}no" >&6; }
8329 fi
8330
8331
8332     test -n "$CXX" && break
8333   done
8334 fi
8335 if test -z "$CXX"; then
8336   ac_ct_CXX=$CXX
8337   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8338 do
8339   # Extract the first word of "$ac_prog", so it can be a program name with args.
8340 set dummy $ac_prog; ac_word=$2
8341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8343 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346   if test -n "$ac_ct_CXX"; then
8347   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352   IFS=$as_save_IFS
8353   test -z "$as_dir" && as_dir=.
8354   for ac_exec_ext in '' $ac_executable_extensions; do
8355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356     ac_cv_prog_ac_ct_CXX="$ac_prog"
8357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8358     break 2
8359   fi
8360 done
8361 done
8362 IFS=$as_save_IFS
8363
8364 fi
8365 fi
8366 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8367 if test -n "$ac_ct_CXX"; then
8368   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8369 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8370 else
8371   { echo "$as_me:$LINENO: result: no" >&5
8372 echo "${ECHO_T}no" >&6; }
8373 fi
8374
8375
8376   test -n "$ac_ct_CXX" && break
8377 done
8378
8379   if test "x$ac_ct_CXX" = x; then
8380     CXX="g++"
8381   else
8382     case $cross_compiling:$ac_tool_warned in
8383 yes:)
8384 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8385 whose name does not start with the host triplet.  If you think this
8386 configuration is useful to you, please write to autoconf@gnu.org." >&5
8387 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8388 whose name does not start with the host triplet.  If you think this
8389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8390 ac_tool_warned=yes ;;
8391 esac
8392     CXX=$ac_ct_CXX
8393   fi
8394 fi
8395
8396   fi
8397 fi
8398 # Provide some information about the compiler.
8399 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8400 ac_compiler=`set X $ac_compile; echo $2`
8401 { (ac_try="$ac_compiler --version >&5"
8402 case "(($ac_try" in
8403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404   *) ac_try_echo=$ac_try;;
8405 esac
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407   (eval "$ac_compiler --version >&5") 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }
8411 { (ac_try="$ac_compiler -v >&5"
8412 case "(($ac_try" in
8413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414   *) ac_try_echo=$ac_try;;
8415 esac
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417   (eval "$ac_compiler -v >&5") 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); }
8421 { (ac_try="$ac_compiler -V >&5"
8422 case "(($ac_try" in
8423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424   *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427   (eval "$ac_compiler -V >&5") 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); }
8431
8432 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8433 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8434 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8435   echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437   cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h.  */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h.  */
8443
8444 int
8445 main ()
8446 {
8447 #ifndef __GNUC__
8448        choke me
8449 #endif
8450
8451   ;
8452   return 0;
8453 }
8454 _ACEOF
8455 rm -f conftest.$ac_objext
8456 if { (ac_try="$ac_compile"
8457 case "(($ac_try" in
8458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459   *) ac_try_echo=$ac_try;;
8460 esac
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462   (eval "$ac_compile") 2>conftest.er1
8463   ac_status=$?
8464   grep -v '^ *+' conftest.er1 >conftest.err
8465   rm -f conftest.er1
8466   cat conftest.err >&5
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); } && {
8469          test -z "$ac_cxx_werror_flag" ||
8470          test ! -s conftest.err
8471        } && test -s conftest.$ac_objext; then
8472   ac_compiler_gnu=yes
8473 else
8474   echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477         ac_compiler_gnu=no
8478 fi
8479
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8482
8483 fi
8484 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8485 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8486 GXX=`test $ac_compiler_gnu = yes && echo yes`
8487 ac_test_CXXFLAGS=${CXXFLAGS+set}
8488 ac_save_CXXFLAGS=$CXXFLAGS
8489 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8490 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8491 if test "${ac_cv_prog_cxx_g+set}" = set; then
8492   echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8495    ac_cxx_werror_flag=yes
8496    ac_cv_prog_cxx_g=no
8497    CXXFLAGS="-g"
8498    cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h.  */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h.  */
8504
8505 int
8506 main ()
8507 {
8508
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8515 case "(($ac_try" in
8516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517   *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520   (eval "$ac_compile") 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } && {
8527          test -z "$ac_cxx_werror_flag" ||
8528          test ! -s conftest.err
8529        } && test -s conftest.$ac_objext; then
8530   ac_cv_prog_cxx_g=yes
8531 else
8532   echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535         CXXFLAGS=""
8536       cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h.  */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h.  */
8542
8543 int
8544 main ()
8545 {
8546
8547   ;
8548   return 0;
8549 }
8550 _ACEOF
8551 rm -f conftest.$ac_objext
8552 if { (ac_try="$ac_compile"
8553 case "(($ac_try" in
8554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555   *) ac_try_echo=$ac_try;;
8556 esac
8557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558   (eval "$ac_compile") 2>conftest.er1
8559   ac_status=$?
8560   grep -v '^ *+' conftest.er1 >conftest.err
8561   rm -f conftest.er1
8562   cat conftest.err >&5
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); } && {
8565          test -z "$ac_cxx_werror_flag" ||
8566          test ! -s conftest.err
8567        } && test -s conftest.$ac_objext; then
8568   :
8569 else
8570   echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8572
8573         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8574          CXXFLAGS="-g"
8575          cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h.  */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h.  */
8581
8582 int
8583 main ()
8584 {
8585
8586   ;
8587   return 0;
8588 }
8589 _ACEOF
8590 rm -f conftest.$ac_objext
8591 if { (ac_try="$ac_compile"
8592 case "(($ac_try" in
8593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594   *) ac_try_echo=$ac_try;;
8595 esac
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597   (eval "$ac_compile") 2>conftest.er1
8598   ac_status=$?
8599   grep -v '^ *+' conftest.er1 >conftest.err
8600   rm -f conftest.er1
8601   cat conftest.err >&5
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); } && {
8604          test -z "$ac_cxx_werror_flag" ||
8605          test ! -s conftest.err
8606        } && test -s conftest.$ac_objext; then
8607   ac_cv_prog_cxx_g=yes
8608 else
8609   echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8611
8612
8613 fi
8614
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 fi
8617
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 fi
8620
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8623 fi
8624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8625 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8626 if test "$ac_test_CXXFLAGS" = set; then
8627   CXXFLAGS=$ac_save_CXXFLAGS
8628 elif test $ac_cv_prog_cxx_g = yes; then
8629   if test "$GXX" = yes; then
8630     CXXFLAGS="-g -O2"
8631   else
8632     CXXFLAGS="-g"
8633   fi
8634 else
8635   if test "$GXX" = yes; then
8636     CXXFLAGS="-O2"
8637   else
8638     CXXFLAGS=
8639   fi
8640 fi
8641 ac_ext=c
8642 ac_cpp='$CPP $CPPFLAGS'
8643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8646
8647 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8648     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8649     (test "X$CXX" != "Xg++"))) ; then
8650   ac_ext=cpp
8651 ac_cpp='$CXXCPP $CPPFLAGS'
8652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8655 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8656 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8657 if test -z "$CXXCPP"; then
8658   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8659   echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661       # Double quotes because CXXCPP needs to be expanded
8662     for CXXCPP in "$CXX -E" "/lib/cpp"
8663     do
8664       ac_preproc_ok=false
8665 for ac_cxx_preproc_warn_flag in '' yes
8666 do
8667   # Use a header file that comes with gcc, so configuring glibc
8668   # with a fresh cross-compiler works.
8669   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8670   # <limits.h> exists even on freestanding compilers.
8671   # On the NeXT, cc -E runs the code through the compiler's parser,
8672   # not just through cpp. "Syntax error" is here to catch this case.
8673   cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h.  */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h.  */
8679 #ifdef __STDC__
8680 # include <limits.h>
8681 #else
8682 # include <assert.h>
8683 #endif
8684                      Syntax error
8685 _ACEOF
8686 if { (ac_try="$ac_cpp conftest.$ac_ext"
8687 case "(($ac_try" in
8688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8689   *) ac_try_echo=$ac_try;;
8690 esac
8691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8693   ac_status=$?
8694   grep -v '^ *+' conftest.er1 >conftest.err
8695   rm -f conftest.er1
8696   cat conftest.err >&5
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); } >/dev/null && {
8699          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8700          test ! -s conftest.err
8701        }; then
8702   :
8703 else
8704   echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8706
8707   # Broken: fails on valid input.
8708 continue
8709 fi
8710
8711 rm -f conftest.err conftest.$ac_ext
8712
8713   # OK, works on sane cases.  Now check whether nonexistent headers
8714   # can be detected and how.
8715   cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h.  */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h.  */
8721 #include <ac_nonexistent.h>
8722 _ACEOF
8723 if { (ac_try="$ac_cpp conftest.$ac_ext"
8724 case "(($ac_try" in
8725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726   *) ac_try_echo=$ac_try;;
8727 esac
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8730   ac_status=$?
8731   grep -v '^ *+' conftest.er1 >conftest.err
8732   rm -f conftest.er1
8733   cat conftest.err >&5
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); } >/dev/null && {
8736          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8737          test ! -s conftest.err
8738        }; then
8739   # Broken: success on invalid input.
8740 continue
8741 else
8742   echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745   # Passes both tests.
8746 ac_preproc_ok=:
8747 break
8748 fi
8749
8750 rm -f conftest.err conftest.$ac_ext
8751
8752 done
8753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8754 rm -f conftest.err conftest.$ac_ext
8755 if $ac_preproc_ok; then
8756   break
8757 fi
8758
8759     done
8760     ac_cv_prog_CXXCPP=$CXXCPP
8761
8762 fi
8763   CXXCPP=$ac_cv_prog_CXXCPP
8764 else
8765   ac_cv_prog_CXXCPP=$CXXCPP
8766 fi
8767 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8768 echo "${ECHO_T}$CXXCPP" >&6; }
8769 ac_preproc_ok=false
8770 for ac_cxx_preproc_warn_flag in '' yes
8771 do
8772   # Use a header file that comes with gcc, so configuring glibc
8773   # with a fresh cross-compiler works.
8774   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8775   # <limits.h> exists even on freestanding compilers.
8776   # On the NeXT, cc -E runs the code through the compiler's parser,
8777   # not just through cpp. "Syntax error" is here to catch this case.
8778   cat >conftest.$ac_ext <<_ACEOF
8779 /* confdefs.h.  */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h.  */
8784 #ifdef __STDC__
8785 # include <limits.h>
8786 #else
8787 # include <assert.h>
8788 #endif
8789                      Syntax error
8790 _ACEOF
8791 if { (ac_try="$ac_cpp conftest.$ac_ext"
8792 case "(($ac_try" in
8793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794   *) ac_try_echo=$ac_try;;
8795 esac
8796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8798   ac_status=$?
8799   grep -v '^ *+' conftest.er1 >conftest.err
8800   rm -f conftest.er1
8801   cat conftest.err >&5
8802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803   (exit $ac_status); } >/dev/null && {
8804          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8805          test ! -s conftest.err
8806        }; then
8807   :
8808 else
8809   echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8811
8812   # Broken: fails on valid input.
8813 continue
8814 fi
8815
8816 rm -f conftest.err conftest.$ac_ext
8817
8818   # OK, works on sane cases.  Now check whether nonexistent headers
8819   # can be detected and how.
8820   cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h.  */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h.  */
8826 #include <ac_nonexistent.h>
8827 _ACEOF
8828 if { (ac_try="$ac_cpp conftest.$ac_ext"
8829 case "(($ac_try" in
8830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831   *) ac_try_echo=$ac_try;;
8832 esac
8833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8835   ac_status=$?
8836   grep -v '^ *+' conftest.er1 >conftest.err
8837   rm -f conftest.er1
8838   cat conftest.err >&5
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); } >/dev/null && {
8841          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8842          test ! -s conftest.err
8843        }; then
8844   # Broken: success on invalid input.
8845 continue
8846 else
8847   echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850   # Passes both tests.
8851 ac_preproc_ok=:
8852 break
8853 fi
8854
8855 rm -f conftest.err conftest.$ac_ext
8856
8857 done
8858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8859 rm -f conftest.err conftest.$ac_ext
8860 if $ac_preproc_ok; then
8861   :
8862 else
8863   _lt_caught_CXX_error=yes
8864 fi
8865
8866 ac_ext=c
8867 ac_cpp='$CPP $CPPFLAGS'
8868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871
8872 else
8873   _lt_caught_CXX_error=yes
8874 fi
8875
8876
8877
8878
8879
8880 # Set options
8881 # Check whether --enable-shared was given.
8882 if test "${enable_shared+set}" = set; then
8883   enableval=$enable_shared; p=${PACKAGE-default}
8884     case $enableval in
8885     yes) enable_shared=yes ;;
8886     no) enable_shared=no ;;
8887     *)
8888       enable_shared=no
8889       # Look at the argument we got.  We use all the common list separators.
8890       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8891       for pkg in $enableval; do
8892         IFS="$lt_save_ifs"
8893         if test "X$pkg" = "X$p"; then
8894           enable_shared=yes
8895         fi
8896       done
8897       IFS="$lt_save_ifs"
8898       ;;
8899     esac
8900 else
8901   enable_shared=yes
8902 fi
8903
8904
8905
8906
8907
8908
8909
8910 # Check whether --enable-static was given.
8911 if test "${enable_static+set}" = set; then
8912   enableval=$enable_static; p=${PACKAGE-default}
8913     case $enableval in
8914     yes) enable_static=yes ;;
8915     no) enable_static=no ;;
8916     *)
8917      enable_static=no
8918       # Look at the argument we got.  We use all the common list separators.
8919       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8920       for pkg in $enableval; do
8921         IFS="$lt_save_ifs"
8922         if test "X$pkg" = "X$p"; then
8923           enable_static=yes
8924         fi
8925       done
8926       IFS="$lt_save_ifs"
8927       ;;
8928     esac
8929 else
8930   enable_static=no
8931 fi
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942         enable_dlopen=no
8943
8944
8945   enable_win32_dll=no
8946
8947
8948
8949
8950
8951 # Check whether --with-pic was given.
8952 if test "${with_pic+set}" = set; then
8953   withval=$with_pic; pic_mode="$withval"
8954 else
8955   pic_mode=default
8956 fi
8957
8958
8959 test -z "$pic_mode" && pic_mode=default
8960
8961
8962
8963
8964
8965
8966
8967   # Check whether --enable-fast-install was given.
8968 if test "${enable_fast_install+set}" = set; then
8969   enableval=$enable_fast_install; p=${PACKAGE-default}
8970     case $enableval in
8971     yes) enable_fast_install=yes ;;
8972     no) enable_fast_install=no ;;
8973     *)
8974       enable_fast_install=no
8975       # Look at the argument we got.  We use all the common list separators.
8976       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8977       for pkg in $enableval; do
8978         IFS="$lt_save_ifs"
8979         if test "X$pkg" = "X$p"; then
8980           enable_fast_install=yes
8981         fi
8982       done
8983       IFS="$lt_save_ifs"
8984       ;;
8985     esac
8986 else
8987   enable_fast_install=yes
8988 fi
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000 # This can be used to rebuild libtool when needed
9001 LIBTOOL_DEPS="$ltmain"
9002
9003 # Always use our own libtool.
9004 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030 test -z "$LN_S" && LN_S="ln -s"
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045 if test -n "${ZSH_VERSION+set}" ; then
9046    setopt NO_GLOB_SUBST
9047 fi
9048
9049 { echo "$as_me:$LINENO: checking for objdir" >&5
9050 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9051 if test "${lt_cv_objdir+set}" = set; then
9052   echo $ECHO_N "(cached) $ECHO_C" >&6
9053 else
9054   rm -f .libs 2>/dev/null
9055 mkdir .libs 2>/dev/null
9056 if test -d .libs; then
9057   lt_cv_objdir=.libs
9058 else
9059   # MS-DOS does not allow filenames that begin with a dot.
9060   lt_cv_objdir=_libs
9061 fi
9062 rmdir .libs 2>/dev/null
9063 fi
9064 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9065 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9066 objdir=$lt_cv_objdir
9067
9068
9069
9070
9071
9072 cat >>confdefs.h <<_ACEOF
9073 #define LT_OBJDIR "$lt_cv_objdir/"
9074 _ACEOF
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092 case $host_os in
9093 aix3*)
9094   # AIX sometimes has problems with the GCC collect2 program.  For some
9095   # reason, if we set the COLLECT_NAMES environment variable, the problems
9096   # vanish in a puff of smoke.
9097   if test "X${COLLECT_NAMES+set}" != Xset; then
9098     COLLECT_NAMES=
9099     export COLLECT_NAMES
9100   fi
9101   ;;
9102 esac
9103
9104 # Sed substitution that helps us do robust quoting.  It backslashifies
9105 # metacharacters that are still active within double-quoted strings.
9106 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9107
9108 # Same as above, but do not quote variable references.
9109 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9110
9111 # Sed substitution to delay expansion of an escaped shell variable in a
9112 # double_quote_subst'ed string.
9113 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9114
9115 # Sed substitution to delay expansion of an escaped single quote.
9116 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9117
9118 # Sed substitution to avoid accidental globbing in evaled expressions
9119 no_glob_subst='s/\*/\\\*/g'
9120
9121 # Global variables:
9122 ofile=libtool
9123 can_build_shared=yes
9124
9125 # All known linkers require a `.a' archive for static linking (except MSVC,
9126 # which needs '.lib').
9127 libext=a
9128
9129 with_gnu_ld="$lt_cv_prog_gnu_ld"
9130
9131 old_CC="$CC"
9132 old_CFLAGS="$CFLAGS"
9133
9134 # Set sane defaults for various variables
9135 test -z "$CC" && CC=cc
9136 test -z "$LTCC" && LTCC=$CC
9137 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9138 test -z "$LD" && LD=ld
9139 test -z "$ac_objext" && ac_objext=o
9140
9141 for cc_temp in $compiler""; do
9142   case $cc_temp in
9143     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9144     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9145     \-*) ;;
9146     *) break;;
9147   esac
9148 done
9149 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9150
9151
9152 # Only perform the check for file, if the check method requires it
9153 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9154 case $deplibs_check_method in
9155 file_magic*)
9156   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9157     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9158 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9159 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9160   echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162   case $MAGIC_CMD in
9163 [\\/*] |  ?:[\\/]*)
9164   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9165   ;;
9166 *)
9167   lt_save_MAGIC_CMD="$MAGIC_CMD"
9168   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9169   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9170   for ac_dir in $ac_dummy; do
9171     IFS="$lt_save_ifs"
9172     test -z "$ac_dir" && ac_dir=.
9173     if test -f $ac_dir/${ac_tool_prefix}file; then
9174       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9175       if test -n "$file_magic_test_file"; then
9176         case $deplibs_check_method in
9177         "file_magic "*)
9178           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9179           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9180           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9181             $EGREP "$file_magic_regex" > /dev/null; then
9182             :
9183           else
9184             cat <<_LT_EOF 1>&2
9185
9186 *** Warning: the command libtool uses to detect shared libraries,
9187 *** $file_magic_cmd, produces output that libtool cannot recognize.
9188 *** The result is that libtool may fail to recognize shared libraries
9189 *** as such.  This will affect the creation of libtool libraries that
9190 *** depend on shared libraries, but programs linked with such libtool
9191 *** libraries will work regardless of this problem.  Nevertheless, you
9192 *** may want to report the problem to your system manager and/or to
9193 *** bug-libtool@gnu.org
9194
9195 _LT_EOF
9196           fi ;;
9197         esac
9198       fi
9199       break
9200     fi
9201   done
9202   IFS="$lt_save_ifs"
9203   MAGIC_CMD="$lt_save_MAGIC_CMD"
9204   ;;
9205 esac
9206 fi
9207
9208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9209 if test -n "$MAGIC_CMD"; then
9210   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9211 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9212 else
9213   { echo "$as_me:$LINENO: result: no" >&5
9214 echo "${ECHO_T}no" >&6; }
9215 fi
9216
9217
9218
9219
9220
9221 if test -z "$lt_cv_path_MAGIC_CMD"; then
9222   if test -n "$ac_tool_prefix"; then
9223     { echo "$as_me:$LINENO: checking for file" >&5
9224 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9225 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9226   echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228   case $MAGIC_CMD in
9229 [\\/*] |  ?:[\\/]*)
9230   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9231   ;;
9232 *)
9233   lt_save_MAGIC_CMD="$MAGIC_CMD"
9234   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9235   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9236   for ac_dir in $ac_dummy; do
9237     IFS="$lt_save_ifs"
9238     test -z "$ac_dir" && ac_dir=.
9239     if test -f $ac_dir/file; then
9240       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9241       if test -n "$file_magic_test_file"; then
9242         case $deplibs_check_method in
9243         "file_magic "*)
9244           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9245           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9246           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9247             $EGREP "$file_magic_regex" > /dev/null; then
9248             :
9249           else
9250             cat <<_LT_EOF 1>&2
9251
9252 *** Warning: the command libtool uses to detect shared libraries,
9253 *** $file_magic_cmd, produces output that libtool cannot recognize.
9254 *** The result is that libtool may fail to recognize shared libraries
9255 *** as such.  This will affect the creation of libtool libraries that
9256 *** depend on shared libraries, but programs linked with such libtool
9257 *** libraries will work regardless of this problem.  Nevertheless, you
9258 *** may want to report the problem to your system manager and/or to
9259 *** bug-libtool@gnu.org
9260
9261 _LT_EOF
9262           fi ;;
9263         esac
9264       fi
9265       break
9266     fi
9267   done
9268   IFS="$lt_save_ifs"
9269   MAGIC_CMD="$lt_save_MAGIC_CMD"
9270   ;;
9271 esac
9272 fi
9273
9274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9275 if test -n "$MAGIC_CMD"; then
9276   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9277 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9278 else
9279   { echo "$as_me:$LINENO: result: no" >&5
9280 echo "${ECHO_T}no" >&6; }
9281 fi
9282
9283
9284   else
9285     MAGIC_CMD=:
9286   fi
9287 fi
9288
9289   fi
9290   ;;
9291 esac
9292
9293 # Use C for the default configuration in the libtool script
9294
9295 lt_save_CC="$CC"
9296 ac_ext=c
9297 ac_cpp='$CPP $CPPFLAGS'
9298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9301
9302
9303 # Source file extension for C test sources.
9304 ac_ext=c
9305
9306 # Object file extension for compiled C test sources.
9307 objext=o
9308 objext=$objext
9309
9310 # Code to be used in simple compile tests
9311 lt_simple_compile_test_code="int some_variable = 0;"
9312
9313 # Code to be used in simple link tests
9314 lt_simple_link_test_code='int main(){return(0);}'
9315
9316
9317
9318
9319
9320
9321
9322 # If no C compiler was specified, use CC.
9323 LTCC=${LTCC-"$CC"}
9324
9325 # If no C compiler flags were specified, use CFLAGS.
9326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9327
9328 # Allow CC to be a program name with arguments.
9329 compiler=$CC
9330
9331 # Save the default compiler, since it gets overwritten when the other
9332 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9333 compiler_DEFAULT=$CC
9334
9335 # save warnings/boilerplate of simple test code
9336 ac_outfile=conftest.$ac_objext
9337 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9338 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9339 _lt_compiler_boilerplate=`cat conftest.err`
9340 $RM conftest*
9341
9342 ac_outfile=conftest.$ac_objext
9343 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9344 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9345 _lt_linker_boilerplate=`cat conftest.err`
9346 $RM -r conftest*
9347
9348
9349 ## CAVEAT EMPTOR:
9350 ## There is no encapsulation within the following macros, do not change
9351 ## the running order or otherwise move them around unless you know exactly
9352 ## what you are doing...
9353 if test -n "$compiler"; then
9354
9355 lt_prog_compiler_no_builtin_flag=
9356
9357 if test "$GCC" = yes; then
9358   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9359
9360   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9361 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9362 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9363   echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365   lt_cv_prog_compiler_rtti_exceptions=no
9366    ac_outfile=conftest.$ac_objext
9367    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9368    lt_compiler_flag="-fno-rtti -fno-exceptions"
9369    # Insert the option either (1) after the last *FLAGS variable, or
9370    # (2) before a word containing "conftest.", or (3) at the end.
9371    # Note that $ac_compile itself does not contain backslashes and begins
9372    # with a dollar sign (not a hyphen), so the echo should work correctly.
9373    # The option is referenced via a variable to avoid confusing sed.
9374    lt_compile=`echo "$ac_compile" | $SED \
9375    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9376    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9377    -e 's:$: $lt_compiler_flag:'`
9378    (eval echo "\"\$as_me:9378: $lt_compile\"" >&5)
9379    (eval "$lt_compile" 2>conftest.err)
9380    ac_status=$?
9381    cat conftest.err >&5
9382    echo "$as_me:9382: \$? = $ac_status" >&5
9383    if (exit $ac_status) && test -s "$ac_outfile"; then
9384      # The compiler can only warn and ignore the option if not recognized
9385      # So say no if there are warnings other than the usual output.
9386      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9387      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9389        lt_cv_prog_compiler_rtti_exceptions=yes
9390      fi
9391    fi
9392    $RM conftest*
9393
9394 fi
9395 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9396 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9397
9398 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9399     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9400 else
9401     :
9402 fi
9403
9404 fi
9405
9406
9407
9408
9409
9410
9411   lt_prog_compiler_wl=
9412 lt_prog_compiler_pic=
9413 lt_prog_compiler_static=
9414
9415 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9416 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9417
9418   if test "$GCC" = yes; then
9419     lt_prog_compiler_wl='-Wl,'
9420     lt_prog_compiler_static='-static'
9421
9422     case $host_os in
9423       aix*)
9424       # All AIX code is PIC.
9425       if test "$host_cpu" = ia64; then
9426         # AIX 5 now supports IA64 processor
9427         lt_prog_compiler_static='-Bstatic'
9428       fi
9429       ;;
9430
9431     amigaos*)
9432       case $host_cpu in
9433       powerpc)
9434             # see comment about AmigaOS4 .so support
9435             lt_prog_compiler_pic='-fPIC'
9436         ;;
9437       m68k)
9438             # FIXME: we need at least 68020 code to build shared libraries, but
9439             # adding the `-m68020' flag to GCC prevents building anything better,
9440             # like `-m68040'.
9441             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9442         ;;
9443       esac
9444       ;;
9445
9446     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9447       # PIC is the default for these OSes.
9448       ;;
9449
9450     mingw* | cygwin* | pw32* | os2* | cegcc*)
9451       # This hack is so that the source file can tell whether it is being
9452       # built for inclusion in a dll (and should export symbols for example).
9453       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9454       # (--disable-auto-import) libraries
9455       lt_prog_compiler_pic='-DDLL_EXPORT'
9456       ;;
9457
9458     darwin* | rhapsody*)
9459       # PIC is the default on this platform
9460       # Common symbols not allowed in MH_DYLIB files
9461       lt_prog_compiler_pic='-fno-common'
9462       ;;
9463
9464     hpux*)
9465       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9466       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9467       # sets the default TLS model and affects inlining.
9468       case $host_cpu in
9469       hppa*64*)
9470         # +Z the default
9471         ;;
9472       *)
9473         lt_prog_compiler_pic='-fPIC'
9474         ;;
9475       esac
9476       ;;
9477
9478     interix[3-9]*)
9479       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9480       # Instead, we relocate shared libraries at runtime.
9481       ;;
9482
9483     msdosdjgpp*)
9484       # Just because we use GCC doesn't mean we suddenly get shared libraries
9485       # on systems that don't support them.
9486       lt_prog_compiler_can_build_shared=no
9487       enable_shared=no
9488       ;;
9489
9490     *nto* | *qnx*)
9491       # QNX uses GNU C++, but need to define -shared option too, otherwise
9492       # it will coredump.
9493       lt_prog_compiler_pic='-fPIC -shared'
9494       ;;
9495
9496     sysv4*MP*)
9497       if test -d /usr/nec; then
9498         lt_prog_compiler_pic=-Kconform_pic
9499       fi
9500       ;;
9501
9502     *)
9503       lt_prog_compiler_pic='-fPIC'
9504       ;;
9505     esac
9506   else
9507     # PORTME Check for flag to pass linker flags through the system compiler.
9508     case $host_os in
9509     aix*)
9510       lt_prog_compiler_wl='-Wl,'
9511       if test "$host_cpu" = ia64; then
9512         # AIX 5 now supports IA64 processor
9513         lt_prog_compiler_static='-Bstatic'
9514       else
9515         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9516       fi
9517       ;;
9518
9519     mingw* | cygwin* | pw32* | os2* | cegcc*)
9520       # This hack is so that the source file can tell whether it is being
9521       # built for inclusion in a dll (and should export symbols for example).
9522       lt_prog_compiler_pic='-DDLL_EXPORT'
9523       ;;
9524
9525     hpux9* | hpux10* | hpux11*)
9526       lt_prog_compiler_wl='-Wl,'
9527       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9528       # not for PA HP-UX.
9529       case $host_cpu in
9530       hppa*64*|ia64*)
9531         # +Z the default
9532         ;;
9533       *)
9534         lt_prog_compiler_pic='+Z'
9535         ;;
9536       esac
9537       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9538       lt_prog_compiler_static='${wl}-a ${wl}archive'
9539       ;;
9540
9541     irix5* | irix6* | nonstopux*)
9542       lt_prog_compiler_wl='-Wl,'
9543       # PIC (with -KPIC) is the default.
9544       lt_prog_compiler_static='-non_shared'
9545       ;;
9546
9547     linux* | k*bsd*-gnu)
9548       case $cc_basename in
9549       # old Intel for x86_64 which still supported -KPIC.
9550       ecc*)
9551         lt_prog_compiler_wl='-Wl,'
9552         lt_prog_compiler_pic='-KPIC'
9553         lt_prog_compiler_static='-static'
9554         ;;
9555       # icc used to be incompatible with GCC.
9556       # ICC 10 doesn't accept -KPIC any more.
9557       icc* | ifort*)
9558         lt_prog_compiler_wl='-Wl,'
9559         lt_prog_compiler_pic='-fPIC'
9560         lt_prog_compiler_static='-static'
9561         ;;
9562       # Lahey Fortran 8.1.
9563       lf95*)
9564         lt_prog_compiler_wl='-Wl,'
9565         lt_prog_compiler_pic='--shared'
9566         lt_prog_compiler_static='--static'
9567         ;;
9568       pgcc* | pgf77* | pgf90* | pgf95*)
9569         # Portland Group compilers (*not* the Pentium gcc compiler,
9570         # which looks to be a dead project)
9571         lt_prog_compiler_wl='-Wl,'
9572         lt_prog_compiler_pic='-fpic'
9573         lt_prog_compiler_static='-Bstatic'
9574         ;;
9575       ccc*)
9576         lt_prog_compiler_wl='-Wl,'
9577         # All Alpha code is PIC.
9578         lt_prog_compiler_static='-non_shared'
9579         ;;
9580       xl*)
9581         # IBM XL C 8.0/Fortran 10.1 on PPC
9582         lt_prog_compiler_wl='-Wl,'
9583         lt_prog_compiler_pic='-qpic'
9584         lt_prog_compiler_static='-qstaticlink'
9585         ;;
9586       *)
9587         case `$CC -V 2>&1 | sed 5q` in
9588         *Sun\ C*)
9589           # Sun C 5.9
9590           lt_prog_compiler_pic='-KPIC'
9591           lt_prog_compiler_static='-Bstatic'
9592           lt_prog_compiler_wl='-Wl,'
9593           ;;
9594         *Sun\ F*)
9595           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9596           lt_prog_compiler_pic='-KPIC'
9597           lt_prog_compiler_static='-Bstatic'
9598           lt_prog_compiler_wl=''
9599           ;;
9600         esac
9601         ;;
9602       esac
9603       ;;
9604
9605     newsos6)
9606       lt_prog_compiler_pic='-KPIC'
9607       lt_prog_compiler_static='-Bstatic'
9608       ;;
9609
9610     *nto* | *qnx*)
9611       # QNX uses GNU C++, but need to define -shared option too, otherwise
9612       # it will coredump.
9613       lt_prog_compiler_pic='-fPIC -shared'
9614       ;;
9615
9616     osf3* | osf4* | osf5*)
9617       lt_prog_compiler_wl='-Wl,'
9618       # All OSF/1 code is PIC.
9619       lt_prog_compiler_static='-non_shared'
9620       ;;
9621
9622     rdos*)
9623       lt_prog_compiler_static='-non_shared'
9624       ;;
9625
9626     solaris*)
9627       lt_prog_compiler_pic='-KPIC'
9628       lt_prog_compiler_static='-Bstatic'
9629       case $cc_basename in
9630       f77* | f90* | f95*)
9631         lt_prog_compiler_wl='-Qoption ld ';;
9632       *)
9633         lt_prog_compiler_wl='-Wl,';;
9634       esac
9635       ;;
9636
9637     sunos4*)
9638       lt_prog_compiler_wl='-Qoption ld '
9639       lt_prog_compiler_pic='-PIC'
9640       lt_prog_compiler_static='-Bstatic'
9641       ;;
9642
9643     sysv4 | sysv4.2uw2* | sysv4.3*)
9644       lt_prog_compiler_wl='-Wl,'
9645       lt_prog_compiler_pic='-KPIC'
9646       lt_prog_compiler_static='-Bstatic'
9647       ;;
9648
9649     sysv4*MP*)
9650       if test -d /usr/nec ;then
9651         lt_prog_compiler_pic='-Kconform_pic'
9652         lt_prog_compiler_static='-Bstatic'
9653       fi
9654       ;;
9655
9656     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9657       lt_prog_compiler_wl='-Wl,'
9658       lt_prog_compiler_pic='-KPIC'
9659       lt_prog_compiler_static='-Bstatic'
9660       ;;
9661
9662     unicos*)
9663       lt_prog_compiler_wl='-Wl,'
9664       lt_prog_compiler_can_build_shared=no
9665       ;;
9666
9667     uts4*)
9668       lt_prog_compiler_pic='-pic'
9669       lt_prog_compiler_static='-Bstatic'
9670       ;;
9671
9672     *)
9673       lt_prog_compiler_can_build_shared=no
9674       ;;
9675     esac
9676   fi
9677
9678 case $host_os in
9679   # For platforms which do not support PIC, -DPIC is meaningless:
9680   *djgpp*)
9681     lt_prog_compiler_pic=
9682     ;;
9683   *)
9684     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9685     ;;
9686 esac
9687 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9688 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9689
9690
9691
9692
9693
9694
9695 #
9696 # Check to make sure the PIC flag actually works.
9697 #
9698 if test -n "$lt_prog_compiler_pic"; then
9699   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9700 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9701 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9702   echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704   lt_cv_prog_compiler_pic_works=no
9705    ac_outfile=conftest.$ac_objext
9706    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9707    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9708    # Insert the option either (1) after the last *FLAGS variable, or
9709    # (2) before a word containing "conftest.", or (3) at the end.
9710    # Note that $ac_compile itself does not contain backslashes and begins
9711    # with a dollar sign (not a hyphen), so the echo should work correctly.
9712    # The option is referenced via a variable to avoid confusing sed.
9713    lt_compile=`echo "$ac_compile" | $SED \
9714    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9715    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9716    -e 's:$: $lt_compiler_flag:'`
9717    (eval echo "\"\$as_me:9717: $lt_compile\"" >&5)
9718    (eval "$lt_compile" 2>conftest.err)
9719    ac_status=$?
9720    cat conftest.err >&5
9721    echo "$as_me:9721: \$? = $ac_status" >&5
9722    if (exit $ac_status) && test -s "$ac_outfile"; then
9723      # The compiler can only warn and ignore the option if not recognized
9724      # So say no if there are warnings other than the usual output.
9725      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9726      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9727      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9728        lt_cv_prog_compiler_pic_works=yes
9729      fi
9730    fi
9731    $RM conftest*
9732
9733 fi
9734 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9735 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9736
9737 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9738     case $lt_prog_compiler_pic in
9739      "" | " "*) ;;
9740      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9741      esac
9742 else
9743     lt_prog_compiler_pic=
9744      lt_prog_compiler_can_build_shared=no
9745 fi
9746
9747 fi
9748
9749
9750
9751
9752
9753
9754 #
9755 # Check to make sure the static flag actually works.
9756 #
9757 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9758 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9759 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9760 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9761   echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763   lt_cv_prog_compiler_static_works=no
9764    save_LDFLAGS="$LDFLAGS"
9765    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9766    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9767    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9768      # The linker can only warn and ignore the option if not recognized
9769      # So say no if there are warnings
9770      if test -s conftest.err; then
9771        # Append any errors to the config.log.
9772        cat conftest.err 1>&5
9773        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9774        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9775        if diff conftest.exp conftest.er2 >/dev/null; then
9776          lt_cv_prog_compiler_static_works=yes
9777        fi
9778      else
9779        lt_cv_prog_compiler_static_works=yes
9780      fi
9781    fi
9782    $RM -r conftest*
9783    LDFLAGS="$save_LDFLAGS"
9784
9785 fi
9786 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9787 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9788
9789 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9790     :
9791 else
9792     lt_prog_compiler_static=
9793 fi
9794
9795
9796
9797
9798
9799
9800
9801   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9802 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9803 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9804   echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806   lt_cv_prog_compiler_c_o=no
9807    $RM -r conftest 2>/dev/null
9808    mkdir conftest
9809    cd conftest
9810    mkdir out
9811    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9812
9813    lt_compiler_flag="-o out/conftest2.$ac_objext"
9814    # Insert the option either (1) after the last *FLAGS variable, or
9815    # (2) before a word containing "conftest.", or (3) at the end.
9816    # Note that $ac_compile itself does not contain backslashes and begins
9817    # with a dollar sign (not a hyphen), so the echo should work correctly.
9818    lt_compile=`echo "$ac_compile" | $SED \
9819    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9820    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9821    -e 's:$: $lt_compiler_flag:'`
9822    (eval echo "\"\$as_me:9822: $lt_compile\"" >&5)
9823    (eval "$lt_compile" 2>out/conftest.err)
9824    ac_status=$?
9825    cat out/conftest.err >&5
9826    echo "$as_me:9826: \$? = $ac_status" >&5
9827    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9828    then
9829      # The compiler can only warn and ignore the option if not recognized
9830      # So say no if there are warnings
9831      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9832      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9833      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9834        lt_cv_prog_compiler_c_o=yes
9835      fi
9836    fi
9837    chmod u+w . 2>&5
9838    $RM conftest*
9839    # SGI C++ compiler will create directory out/ii_files/ for
9840    # template instantiation
9841    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9842    $RM out/* && rmdir out
9843    cd ..
9844    $RM -r conftest
9845    $RM conftest*
9846
9847 fi
9848 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9849 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9850
9851
9852
9853
9854
9855
9856   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9857 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9858 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   lt_cv_prog_compiler_c_o=no
9862    $RM -r conftest 2>/dev/null
9863    mkdir conftest
9864    cd conftest
9865    mkdir out
9866    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9867
9868    lt_compiler_flag="-o out/conftest2.$ac_objext"
9869    # Insert the option either (1) after the last *FLAGS variable, or
9870    # (2) before a word containing "conftest.", or (3) at the end.
9871    # Note that $ac_compile itself does not contain backslashes and begins
9872    # with a dollar sign (not a hyphen), so the echo should work correctly.
9873    lt_compile=`echo "$ac_compile" | $SED \
9874    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9875    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9876    -e 's:$: $lt_compiler_flag:'`
9877    (eval echo "\"\$as_me:9877: $lt_compile\"" >&5)
9878    (eval "$lt_compile" 2>out/conftest.err)
9879    ac_status=$?
9880    cat out/conftest.err >&5
9881    echo "$as_me:9881: \$? = $ac_status" >&5
9882    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9883    then
9884      # The compiler can only warn and ignore the option if not recognized
9885      # So say no if there are warnings
9886      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9887      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9888      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9889        lt_cv_prog_compiler_c_o=yes
9890      fi
9891    fi
9892    chmod u+w . 2>&5
9893    $RM conftest*
9894    # SGI C++ compiler will create directory out/ii_files/ for
9895    # template instantiation
9896    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9897    $RM out/* && rmdir out
9898    cd ..
9899    $RM -r conftest
9900    $RM conftest*
9901
9902 fi
9903 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9905
9906
9907
9908
9909 hard_links="nottested"
9910 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9911   # do not overwrite the value of need_locks provided by the user
9912   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9913 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9914   hard_links=yes
9915   $RM conftest*
9916   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9917   touch conftest.a
9918   ln conftest.a conftest.b 2>&5 || hard_links=no
9919   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9920   { echo "$as_me:$LINENO: result: $hard_links" >&5
9921 echo "${ECHO_T}$hard_links" >&6; }
9922   if test "$hard_links" = no; then
9923     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9924 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9925     need_locks=warn
9926   fi
9927 else
9928   need_locks=no
9929 fi
9930
9931
9932
9933
9934
9935
9936   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9937 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9938
9939   runpath_var=
9940   allow_undefined_flag=
9941   always_export_symbols=no
9942   archive_cmds=
9943   archive_expsym_cmds=
9944   compiler_needs_object=no
9945   enable_shared_with_static_runtimes=no
9946   export_dynamic_flag_spec=
9947   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9948   hardcode_automatic=no
9949   hardcode_direct=no
9950   hardcode_direct_absolute=no
9951   hardcode_libdir_flag_spec=
9952   hardcode_libdir_flag_spec_ld=
9953   hardcode_libdir_separator=
9954   hardcode_minus_L=no
9955   hardcode_shlibpath_var=unsupported
9956   inherit_rpath=no
9957   link_all_deplibs=unknown
9958   module_cmds=
9959   module_expsym_cmds=
9960   old_archive_from_new_cmds=
9961   old_archive_from_expsyms_cmds=
9962   thread_safe_flag_spec=
9963   whole_archive_flag_spec=
9964   # include_expsyms should be a list of space-separated symbols to be *always*
9965   # included in the symbol list
9966   include_expsyms=
9967   # exclude_expsyms can be an extended regexp of symbols to exclude
9968   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9969   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9970   # as well as any symbol that contains `d'.
9971   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9972   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9973   # platforms (ab)use it in PIC code, but their linkers get confused if
9974   # the symbol is explicitly referenced.  Since portable code cannot
9975   # rely on this symbol name, it's probably fine to never include it in
9976   # preloaded symbol tables.
9977   # Exclude shared library initialization/finalization symbols.
9978   extract_expsyms_cmds=
9979
9980   case $host_os in
9981   cygwin* | mingw* | pw32* | cegcc*)
9982     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9983     # When not using gcc, we currently assume that we are using
9984     # Microsoft Visual C++.
9985     if test "$GCC" != yes; then
9986       with_gnu_ld=no
9987     fi
9988     ;;
9989   interix*)
9990     # we just hope/assume this is gcc and not c89 (= MSVC++)
9991     with_gnu_ld=yes
9992     ;;
9993   openbsd*)
9994     with_gnu_ld=no
9995     ;;
9996   esac
9997
9998   ld_shlibs=yes
9999   if test "$with_gnu_ld" = yes; then
10000     # If archive_cmds runs LD, not CC, wlarc should be empty
10001     wlarc='${wl}'
10002
10003     # Set some defaults for GNU ld with shared library support. These
10004     # are reset later if shared libraries are not supported. Putting them
10005     # here allows them to be overridden if necessary.
10006     runpath_var=LD_RUN_PATH
10007     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10008     export_dynamic_flag_spec='${wl}--export-dynamic'
10009     # ancient GNU ld didn't support --whole-archive et. al.
10010     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10011       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10012     else
10013       whole_archive_flag_spec=
10014     fi
10015     supports_anon_versioning=no
10016     case `$LD -v 2>&1` in
10017       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10018       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10019       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10020       *\ 2.11.*) ;; # other 2.11 versions
10021       *) supports_anon_versioning=yes ;;
10022     esac
10023
10024     # See if GNU ld supports shared libraries.
10025     case $host_os in
10026     aix[3-9]*)
10027       # On AIX/PPC, the GNU linker is very broken
10028       if test "$host_cpu" != ia64; then
10029         ld_shlibs=no
10030         cat <<_LT_EOF 1>&2
10031
10032 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10033 *** to be unable to reliably create shared libraries on AIX.
10034 *** Therefore, libtool is disabling shared libraries support.  If you
10035 *** really care for shared libraries, you may want to modify your PATH
10036 *** so that a non-GNU linker is found, and then restart.
10037
10038 _LT_EOF
10039       fi
10040       ;;
10041
10042     amigaos*)
10043       case $host_cpu in
10044       powerpc)
10045             # see comment about AmigaOS4 .so support
10046             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10047             archive_expsym_cmds=''
10048         ;;
10049       m68k)
10050             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)'
10051             hardcode_libdir_flag_spec='-L$libdir'
10052             hardcode_minus_L=yes
10053         ;;
10054       esac
10055       ;;
10056
10057     beos*)
10058       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10059         allow_undefined_flag=unsupported
10060         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10061         # support --undefined.  This deserves some investigation.  FIXME
10062         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10063       else
10064         ld_shlibs=no
10065       fi
10066       ;;
10067
10068     cygwin* | mingw* | pw32* | cegcc*)
10069       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10070       # as there is no search path for DLLs.
10071       hardcode_libdir_flag_spec='-L$libdir'
10072       allow_undefined_flag=unsupported
10073       always_export_symbols=no
10074       enable_shared_with_static_runtimes=yes
10075       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10076
10077       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10078         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10079         # If the export-symbols file already is a .def file (1st line
10080         # is EXPORTS), use it as is; otherwise, prepend...
10081         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10082           cp $export_symbols $output_objdir/$soname.def;
10083         else
10084           echo EXPORTS > $output_objdir/$soname.def;
10085           cat $export_symbols >> $output_objdir/$soname.def;
10086         fi~
10087         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10088       else
10089         ld_shlibs=no
10090       fi
10091       ;;
10092
10093     interix[3-9]*)
10094       hardcode_direct=no
10095       hardcode_shlibpath_var=no
10096       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10097       export_dynamic_flag_spec='${wl}-E'
10098       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10099       # Instead, shared libraries are loaded at an image base (0x10000000 by
10100       # default) and relocated if they conflict, which is a slow very memory
10101       # consuming and fragmenting process.  To avoid this, we pick a random,
10102       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10103       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10104       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10105       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'
10106       ;;
10107
10108     gnu* | linux* | tpf* | k*bsd*-gnu)
10109       tmp_diet=no
10110       if test "$host_os" = linux-dietlibc; then
10111         case $cc_basename in
10112           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10113         esac
10114       fi
10115       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10116          && test "$tmp_diet" = no
10117       then
10118         tmp_addflag=
10119         tmp_sharedflag='-shared'
10120         case $cc_basename,$host_cpu in
10121         pgcc*)                          # Portland Group C compiler
10122           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'
10123           tmp_addflag=' $pic_flag'
10124           ;;
10125         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10126           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'
10127           tmp_addflag=' $pic_flag -Mnomain' ;;
10128         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10129           tmp_addflag=' -i_dynamic' ;;
10130         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10131           tmp_addflag=' -i_dynamic -nofor_main' ;;
10132         ifc* | ifort*)                  # Intel Fortran compiler
10133           tmp_addflag=' -nofor_main' ;;
10134         lf95*)                          # Lahey Fortran 8.1
10135           whole_archive_flag_spec=
10136           tmp_sharedflag='--shared' ;;
10137         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10138           tmp_sharedflag='-qmkshrobj'
10139           tmp_addflag= ;;
10140         esac
10141         case `$CC -V 2>&1 | sed 5q` in
10142         *Sun\ C*)                       # Sun C 5.9
10143           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'
10144           compiler_needs_object=yes
10145           tmp_sharedflag='-G' ;;
10146         *Sun\ F*)                       # Sun Fortran 8.3
10147           tmp_sharedflag='-G' ;;
10148         esac
10149         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10150
10151         if test "x$supports_anon_versioning" = xyes; then
10152           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10153             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10154             echo "local: *; };" >> $output_objdir/$libname.ver~
10155             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10156         fi
10157
10158         case $cc_basename in
10159         xlf*)
10160           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10161           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10162           hardcode_libdir_flag_spec=
10163           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10164           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10165           if test "x$supports_anon_versioning" = xyes; then
10166             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10167               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10168               echo "local: *; };" >> $output_objdir/$libname.ver~
10169               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10170           fi
10171           ;;
10172         esac
10173       else
10174         ld_shlibs=no
10175       fi
10176       ;;
10177
10178     netbsd*)
10179       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10180         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10181         wlarc=
10182       else
10183         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10184         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10185       fi
10186       ;;
10187
10188     solaris*)
10189       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10190         ld_shlibs=no
10191         cat <<_LT_EOF 1>&2
10192
10193 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10194 *** create shared libraries on Solaris systems.  Therefore, libtool
10195 *** is disabling shared libraries support.  We urge you to upgrade GNU
10196 *** binutils to release 2.9.1 or newer.  Another option is to modify
10197 *** your PATH or compiler configuration so that the native linker is
10198 *** used, and then restart.
10199
10200 _LT_EOF
10201       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10202         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10203         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10204       else
10205         ld_shlibs=no
10206       fi
10207       ;;
10208
10209     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10210       case `$LD -v 2>&1` in
10211         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10212         ld_shlibs=no
10213         cat <<_LT_EOF 1>&2
10214
10215 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10216 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10217 *** is disabling shared libraries support.  We urge you to upgrade GNU
10218 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10219 *** your PATH or compiler configuration so that the native linker is
10220 *** used, and then restart.
10221
10222 _LT_EOF
10223         ;;
10224         *)
10225           # For security reasons, it is highly recommended that you always
10226           # use absolute paths for naming shared libraries, and exclude the
10227           # DT_RUNPATH tag from executables and libraries.  But doing so
10228           # requires that you compile everything twice, which is a pain.
10229           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10230             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10231             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10232             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10233           else
10234             ld_shlibs=no
10235           fi
10236         ;;
10237       esac
10238       ;;
10239
10240     sunos4*)
10241       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10242       wlarc=
10243       hardcode_direct=yes
10244       hardcode_shlibpath_var=no
10245       ;;
10246
10247     *)
10248       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10249         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10250         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10251       else
10252         ld_shlibs=no
10253       fi
10254       ;;
10255     esac
10256
10257     if test "$ld_shlibs" = no; then
10258       runpath_var=
10259       hardcode_libdir_flag_spec=
10260       export_dynamic_flag_spec=
10261       whole_archive_flag_spec=
10262     fi
10263   else
10264     # PORTME fill in a description of your system's linker (not GNU ld)
10265     case $host_os in
10266     aix3*)
10267       allow_undefined_flag=unsupported
10268       always_export_symbols=yes
10269       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'
10270       # Note: this linker hardcodes the directories in LIBPATH if there
10271       # are no directories specified by -L.
10272       hardcode_minus_L=yes
10273       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10274         # Neither direct hardcoding nor static linking is supported with a
10275         # broken collect2.
10276         hardcode_direct=unsupported
10277       fi
10278       ;;
10279
10280     aix[4-9]*)
10281       if test "$host_cpu" = ia64; then
10282         # On IA64, the linker does run time linking by default, so we don't
10283         # have to do anything special.
10284         aix_use_runtimelinking=no
10285         exp_sym_flag='-Bexport'
10286         no_entry_flag=""
10287       else
10288         # If we're using GNU nm, then we don't want the "-C" option.
10289         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10290         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10291           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'
10292         else
10293           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'
10294         fi
10295         aix_use_runtimelinking=no
10296
10297         # Test if we are trying to use run time linking or normal
10298         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10299         # need to do runtime linking.
10300         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10301           for ld_flag in $LDFLAGS; do
10302           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10303             aix_use_runtimelinking=yes
10304             break
10305           fi
10306           done
10307           ;;
10308         esac
10309
10310         exp_sym_flag='-bexport'
10311         no_entry_flag='-bnoentry'
10312       fi
10313
10314       # When large executables or shared objects are built, AIX ld can
10315       # have problems creating the table of contents.  If linking a library
10316       # or program results in "error TOC overflow" add -mminimal-toc to
10317       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10318       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10319
10320       archive_cmds=''
10321       hardcode_direct=yes
10322       hardcode_direct_absolute=yes
10323       hardcode_libdir_separator=':'
10324       link_all_deplibs=yes
10325       file_list_spec='${wl}-f,'
10326
10327       if test "$GCC" = yes; then
10328         case $host_os in aix4.[012]|aix4.[012].*)
10329         # We only want to do this on AIX 4.2 and lower, the check
10330         # below for broken collect2 doesn't work under 4.3+
10331           collect2name=`${CC} -print-prog-name=collect2`
10332           if test -f "$collect2name" &&
10333            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10334           then
10335           # We have reworked collect2
10336           :
10337           else
10338           # We have old collect2
10339           hardcode_direct=unsupported
10340           # It fails to find uninstalled libraries when the uninstalled
10341           # path is not listed in the libpath.  Setting hardcode_minus_L
10342           # to unsupported forces relinking
10343           hardcode_minus_L=yes
10344           hardcode_libdir_flag_spec='-L$libdir'
10345           hardcode_libdir_separator=
10346           fi
10347           ;;
10348         esac
10349         shared_flag='-shared'
10350         if test "$aix_use_runtimelinking" = yes; then
10351           shared_flag="$shared_flag "'${wl}-G'
10352         fi
10353       else
10354         # not using gcc
10355         if test "$host_cpu" = ia64; then
10356         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10357         # chokes on -Wl,-G. The following line is correct:
10358           shared_flag='-G'
10359         else
10360           if test "$aix_use_runtimelinking" = yes; then
10361             shared_flag='${wl}-G'
10362           else
10363             shared_flag='${wl}-bM:SRE'
10364           fi
10365         fi
10366       fi
10367
10368       export_dynamic_flag_spec='${wl}-bexpall'
10369       # It seems that -bexpall does not export symbols beginning with
10370       # underscore (_), so it is better to generate a list of symbols to export.
10371       always_export_symbols=yes
10372       if test "$aix_use_runtimelinking" = yes; then
10373         # Warning - without using the other runtime loading flags (-brtl),
10374         # -berok will link without error, but may produce a broken library.
10375         allow_undefined_flag='-berok'
10376         # Determine the default libpath from the value encoded in an
10377         # empty executable.
10378         cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h.  */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h.  */
10384
10385 int
10386 main ()
10387 {
10388
10389   ;
10390   return 0;
10391 }
10392 _ACEOF
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (ac_try="$ac_link"
10395 case "(($ac_try" in
10396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397   *) ac_try_echo=$ac_try;;
10398 esac
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400   (eval "$ac_link") 2>conftest.er1
10401   ac_status=$?
10402   grep -v '^ *+' conftest.er1 >conftest.err
10403   rm -f conftest.er1
10404   cat conftest.err >&5
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); } && {
10407          test -z "$ac_c_werror_flag" ||
10408          test ! -s conftest.err
10409        } && test -s conftest$ac_exeext &&
10410        $as_test_x conftest$ac_exeext; then
10411
10412 lt_aix_libpath_sed='
10413     /Import File Strings/,/^$/ {
10414         /^0/ {
10415             s/^0  *\(.*\)$/\1/
10416             p
10417         }
10418     }'
10419 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10420 # Check for a 64-bit object if we didn't find anything.
10421 if test -z "$aix_libpath"; then
10422   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10423 fi
10424 else
10425   echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10427
10428
10429 fi
10430
10431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10432       conftest$ac_exeext conftest.$ac_ext
10433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10434
10435         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10436         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"
10437       else
10438         if test "$host_cpu" = ia64; then
10439           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10440           allow_undefined_flag="-z nodefs"
10441           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"
10442         else
10443          # Determine the default libpath from the value encoded in an
10444          # empty executable.
10445          cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h.  */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h.  */
10451
10452 int
10453 main ()
10454 {
10455
10456   ;
10457   return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (ac_try="$ac_link"
10462 case "(($ac_try" in
10463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464   *) ac_try_echo=$ac_try;;
10465 esac
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467   (eval "$ac_link") 2>conftest.er1
10468   ac_status=$?
10469   grep -v '^ *+' conftest.er1 >conftest.err
10470   rm -f conftest.er1
10471   cat conftest.err >&5
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); } && {
10474          test -z "$ac_c_werror_flag" ||
10475          test ! -s conftest.err
10476        } && test -s conftest$ac_exeext &&
10477        $as_test_x conftest$ac_exeext; then
10478
10479 lt_aix_libpath_sed='
10480     /Import File Strings/,/^$/ {
10481         /^0/ {
10482             s/^0  *\(.*\)$/\1/
10483             p
10484         }
10485     }'
10486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10487 # Check for a 64-bit object if we didn't find anything.
10488 if test -z "$aix_libpath"; then
10489   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490 fi
10491 else
10492   echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495
10496 fi
10497
10498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10499       conftest$ac_exeext conftest.$ac_ext
10500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10501
10502          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10503           # Warning - without using the other run time loading flags,
10504           # -berok will link without error, but may produce a broken library.
10505           no_undefined_flag=' ${wl}-bernotok'
10506           allow_undefined_flag=' ${wl}-berok'
10507           # Exported symbols can be pulled into shared objects from archives
10508           whole_archive_flag_spec='$convenience'
10509           archive_cmds_need_lc=yes
10510           # This is similar to how AIX traditionally builds its shared libraries.
10511           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'
10512         fi
10513       fi
10514       ;;
10515
10516     amigaos*)
10517       case $host_cpu in
10518       powerpc)
10519             # see comment about AmigaOS4 .so support
10520             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10521             archive_expsym_cmds=''
10522         ;;
10523       m68k)
10524             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)'
10525             hardcode_libdir_flag_spec='-L$libdir'
10526             hardcode_minus_L=yes
10527         ;;
10528       esac
10529       ;;
10530
10531     bsdi[45]*)
10532       export_dynamic_flag_spec=-rdynamic
10533       ;;
10534
10535     cygwin* | mingw* | pw32* | cegcc*)
10536       # When not using gcc, we currently assume that we are using
10537       # Microsoft Visual C++.
10538       # hardcode_libdir_flag_spec is actually meaningless, as there is
10539       # no search path for DLLs.
10540       hardcode_libdir_flag_spec=' '
10541       allow_undefined_flag=unsupported
10542       # Tell ltmain to make .lib files, not .a files.
10543       libext=lib
10544       # Tell ltmain to make .dll files, not .so files.
10545       shrext_cmds=".dll"
10546       # FIXME: Setting linknames here is a bad hack.
10547       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10548       # The linker will automatically build a .lib file if we build a DLL.
10549       old_archive_from_new_cmds='true'
10550       # FIXME: Should let the user specify the lib program.
10551       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10552       fix_srcfile_path='`cygpath -w "$srcfile"`'
10553       enable_shared_with_static_runtimes=yes
10554       ;;
10555
10556     darwin* | rhapsody*)
10557
10558
10559   archive_cmds_need_lc=no
10560   hardcode_direct=no
10561   hardcode_automatic=yes
10562   hardcode_shlibpath_var=unsupported
10563   whole_archive_flag_spec=''
10564   link_all_deplibs=yes
10565   allow_undefined_flag="$_lt_dar_allow_undefined"
10566   case $cc_basename in
10567      ifort*) _lt_dar_can_shared=yes ;;
10568      *) _lt_dar_can_shared=$GCC ;;
10569   esac
10570   if test "$_lt_dar_can_shared" = "yes"; then
10571     output_verbose_link_cmd=echo
10572     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10573     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10574     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}"
10575     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}"
10576
10577   else
10578   ld_shlibs=no
10579   fi
10580
10581       ;;
10582
10583     dgux*)
10584       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10585       hardcode_libdir_flag_spec='-L$libdir'
10586       hardcode_shlibpath_var=no
10587       ;;
10588
10589     freebsd1*)
10590       ld_shlibs=no
10591       ;;
10592
10593     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10594     # support.  Future versions do this automatically, but an explicit c++rt0.o
10595     # does not break anything, and helps significantly (at the cost of a little
10596     # extra space).
10597     freebsd2.2*)
10598       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10599       hardcode_libdir_flag_spec='-R$libdir'
10600       hardcode_direct=yes
10601       hardcode_shlibpath_var=no
10602       ;;
10603
10604     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10605     freebsd2*)
10606       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10607       hardcode_direct=yes
10608       hardcode_minus_L=yes
10609       hardcode_shlibpath_var=no
10610       ;;
10611
10612     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10613     freebsd* | dragonfly*)
10614       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10615       hardcode_libdir_flag_spec='-R$libdir'
10616       hardcode_direct=yes
10617       hardcode_shlibpath_var=no
10618       ;;
10619
10620     hpux9*)
10621       if test "$GCC" = yes; then
10622         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'
10623       else
10624         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'
10625       fi
10626       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10627       hardcode_libdir_separator=:
10628       hardcode_direct=yes
10629
10630       # hardcode_minus_L: Not really in the search PATH,
10631       # but as the default location of the library.
10632       hardcode_minus_L=yes
10633       export_dynamic_flag_spec='${wl}-E'
10634       ;;
10635
10636     hpux10*)
10637       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10638         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10639       else
10640         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10641       fi
10642       if test "$with_gnu_ld" = no; then
10643         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10644         hardcode_libdir_flag_spec_ld='+b $libdir'
10645         hardcode_libdir_separator=:
10646         hardcode_direct=yes
10647         hardcode_direct_absolute=yes
10648         export_dynamic_flag_spec='${wl}-E'
10649         # hardcode_minus_L: Not really in the search PATH,
10650         # but as the default location of the library.
10651         hardcode_minus_L=yes
10652       fi
10653       ;;
10654
10655     hpux11*)
10656       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10657         case $host_cpu in
10658         hppa*64*)
10659           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10660           ;;
10661         ia64*)
10662           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10663           ;;
10664         *)
10665           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10666           ;;
10667         esac
10668       else
10669         case $host_cpu in
10670         hppa*64*)
10671           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10672           ;;
10673         ia64*)
10674           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10675           ;;
10676         *)
10677           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10678           ;;
10679         esac
10680       fi
10681       if test "$with_gnu_ld" = no; then
10682         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10683         hardcode_libdir_separator=:
10684
10685         case $host_cpu in
10686         hppa*64*|ia64*)
10687           hardcode_direct=no
10688           hardcode_shlibpath_var=no
10689           ;;
10690         *)
10691           hardcode_direct=yes
10692           hardcode_direct_absolute=yes
10693           export_dynamic_flag_spec='${wl}-E'
10694
10695           # hardcode_minus_L: Not really in the search PATH,
10696           # but as the default location of the library.
10697           hardcode_minus_L=yes
10698           ;;
10699         esac
10700       fi
10701       ;;
10702
10703     irix5* | irix6* | nonstopux*)
10704       if test "$GCC" = yes; then
10705         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'
10706         # Try to use the -exported_symbol ld option, if it does not
10707         # work, assume that -exports_file does not work either and
10708         # implicitly export all symbols.
10709         save_LDFLAGS="$LDFLAGS"
10710         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10711         cat >conftest.$ac_ext <<_ACEOF
10712 int foo(void) {}
10713 _ACEOF
10714 rm -f conftest.$ac_objext conftest$ac_exeext
10715 if { (ac_try="$ac_link"
10716 case "(($ac_try" in
10717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718   *) ac_try_echo=$ac_try;;
10719 esac
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721   (eval "$ac_link") 2>conftest.er1
10722   ac_status=$?
10723   grep -v '^ *+' conftest.er1 >conftest.err
10724   rm -f conftest.er1
10725   cat conftest.err >&5
10726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727   (exit $ac_status); } && {
10728          test -z "$ac_c_werror_flag" ||
10729          test ! -s conftest.err
10730        } && test -s conftest$ac_exeext &&
10731        $as_test_x conftest$ac_exeext; then
10732   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'
10733
10734 else
10735   echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10737
10738
10739 fi
10740
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742       conftest$ac_exeext conftest.$ac_ext
10743         LDFLAGS="$save_LDFLAGS"
10744       else
10745         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'
10746         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'
10747       fi
10748       archive_cmds_need_lc='no'
10749       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10750       hardcode_libdir_separator=:
10751       inherit_rpath=yes
10752       link_all_deplibs=yes
10753       ;;
10754
10755     netbsd*)
10756       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10757         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10758       else
10759         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10760       fi
10761       hardcode_libdir_flag_spec='-R$libdir'
10762       hardcode_direct=yes
10763       hardcode_shlibpath_var=no
10764       ;;
10765
10766     newsos6)
10767       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768       hardcode_direct=yes
10769       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10770       hardcode_libdir_separator=:
10771       hardcode_shlibpath_var=no
10772       ;;
10773
10774     *nto* | *qnx*)
10775       ;;
10776
10777     openbsd*)
10778       if test -f /usr/libexec/ld.so; then
10779         hardcode_direct=yes
10780         hardcode_shlibpath_var=no
10781         hardcode_direct_absolute=yes
10782         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10783           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10784           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10785           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10786           export_dynamic_flag_spec='${wl}-E'
10787         else
10788           case $host_os in
10789            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10790              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10791              hardcode_libdir_flag_spec='-R$libdir'
10792              ;;
10793            *)
10794              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10795              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10796              ;;
10797           esac
10798         fi
10799       else
10800         ld_shlibs=no
10801       fi
10802       ;;
10803
10804     os2*)
10805       hardcode_libdir_flag_spec='-L$libdir'
10806       hardcode_minus_L=yes
10807       allow_undefined_flag=unsupported
10808       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'
10809       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10810       ;;
10811
10812     osf3*)
10813       if test "$GCC" = yes; then
10814         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10815         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'
10816       else
10817         allow_undefined_flag=' -expect_unresolved \*'
10818         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'
10819       fi
10820       archive_cmds_need_lc='no'
10821       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10822       hardcode_libdir_separator=:
10823       ;;
10824
10825     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10826       if test "$GCC" = yes; then
10827         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10828         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'
10829         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10830       else
10831         allow_undefined_flag=' -expect_unresolved \*'
10832         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'
10833         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~
10834         $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'
10835
10836         # Both c and cxx compiler support -rpath directly
10837         hardcode_libdir_flag_spec='-rpath $libdir'
10838       fi
10839       archive_cmds_need_lc='no'
10840       hardcode_libdir_separator=:
10841       ;;
10842
10843     solaris*)
10844       no_undefined_flag=' -z defs'
10845       if test "$GCC" = yes; then
10846         wlarc='${wl}'
10847         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10848         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10849           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10850       else
10851         case `$CC -V 2>&1` in
10852         *"Compilers 5.0"*)
10853           wlarc=''
10854           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10855           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10856           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10857           ;;
10858         *)
10859           wlarc='${wl}'
10860           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10861           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10862           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10863           ;;
10864         esac
10865       fi
10866       hardcode_libdir_flag_spec='-R$libdir'
10867       hardcode_shlibpath_var=no
10868       case $host_os in
10869       solaris2.[0-5] | solaris2.[0-5].*) ;;
10870       *)
10871         # The compiler driver will combine and reorder linker options,
10872         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10873         # but is careful enough not to reorder.
10874         # Supported since Solaris 2.6 (maybe 2.5.1?)
10875         if test "$GCC" = yes; then
10876           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10877         else
10878           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10879         fi
10880         ;;
10881       esac
10882       link_all_deplibs=yes
10883       ;;
10884
10885     sunos4*)
10886       if test "x$host_vendor" = xsequent; then
10887         # Use $CC to link under sequent, because it throws in some extra .o
10888         # files that make .init and .fini sections work.
10889         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10890       else
10891         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10892       fi
10893       hardcode_libdir_flag_spec='-L$libdir'
10894       hardcode_direct=yes
10895       hardcode_minus_L=yes
10896       hardcode_shlibpath_var=no
10897       ;;
10898
10899     sysv4)
10900       case $host_vendor in
10901         sni)
10902           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903           hardcode_direct=yes # is this really true???
10904         ;;
10905         siemens)
10906           ## LD is ld it makes a PLAMLIB
10907           ## CC just makes a GrossModule.
10908           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10909           reload_cmds='$CC -r -o $output$reload_objs'
10910           hardcode_direct=no
10911         ;;
10912         motorola)
10913           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10914           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10915         ;;
10916       esac
10917       runpath_var='LD_RUN_PATH'
10918       hardcode_shlibpath_var=no
10919       ;;
10920
10921     sysv4.3*)
10922       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10923       hardcode_shlibpath_var=no
10924       export_dynamic_flag_spec='-Bexport'
10925       ;;
10926
10927     sysv4*MP*)
10928       if test -d /usr/nec; then
10929         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10930         hardcode_shlibpath_var=no
10931         runpath_var=LD_RUN_PATH
10932         hardcode_runpath_var=yes
10933         ld_shlibs=yes
10934       fi
10935       ;;
10936
10937     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10938       no_undefined_flag='${wl}-z,text'
10939       archive_cmds_need_lc=no
10940       hardcode_shlibpath_var=no
10941       runpath_var='LD_RUN_PATH'
10942
10943       if test "$GCC" = yes; then
10944         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946       else
10947         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949       fi
10950       ;;
10951
10952     sysv5* | sco3.2v5* | sco5v6*)
10953       # Note: We can NOT use -z defs as we might desire, because we do not
10954       # link with -lc, and that would cause any symbols used from libc to
10955       # always be unresolved, which means just about no library would
10956       # ever link correctly.  If we're not using GNU ld we use -z text
10957       # though, which does catch some bad symbols but isn't as heavy-handed
10958       # as -z defs.
10959       no_undefined_flag='${wl}-z,text'
10960       allow_undefined_flag='${wl}-z,nodefs'
10961       archive_cmds_need_lc=no
10962       hardcode_shlibpath_var=no
10963       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10964       hardcode_libdir_separator=':'
10965       link_all_deplibs=yes
10966       export_dynamic_flag_spec='${wl}-Bexport'
10967       runpath_var='LD_RUN_PATH'
10968
10969       if test "$GCC" = yes; then
10970         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10971         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972       else
10973         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10974         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10975       fi
10976       ;;
10977
10978     uts4*)
10979       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980       hardcode_libdir_flag_spec='-L$libdir'
10981       hardcode_shlibpath_var=no
10982       ;;
10983
10984     *)
10985       ld_shlibs=no
10986       ;;
10987     esac
10988
10989     if test x$host_vendor = xsni; then
10990       case $host in
10991       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10992         export_dynamic_flag_spec='${wl}-Blargedynsym'
10993         ;;
10994       esac
10995     fi
10996   fi
10997
10998 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10999 echo "${ECHO_T}$ld_shlibs" >&6; }
11000 test "$ld_shlibs" = no && can_build_shared=no
11001
11002 with_gnu_ld=$with_gnu_ld
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018 #
11019 # Do we need to explicitly link libc?
11020 #
11021 case "x$archive_cmds_need_lc" in
11022 x|xyes)
11023   # Assume -lc should be added
11024   archive_cmds_need_lc=yes
11025
11026   if test "$enable_shared" = yes && test "$GCC" = yes; then
11027     case $archive_cmds in
11028     *'~'*)
11029       # FIXME: we may have to deal with multi-command sequences.
11030       ;;
11031     '$CC '*)
11032       # Test whether the compiler implicitly links with -lc since on some
11033       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11034       # to ld, don't add -lc before -lgcc.
11035       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11036 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11037       $RM conftest*
11038       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11039
11040       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11041   (eval $ac_compile) 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); } 2>conftest.err; then
11045         soname=conftest
11046         lib=conftest
11047         libobjs=conftest.$ac_objext
11048         deplibs=
11049         wl=$lt_prog_compiler_wl
11050         pic_flag=$lt_prog_compiler_pic
11051         compiler_flags=-v
11052         linker_flags=-v
11053         verstring=
11054         output_objdir=.
11055         libname=conftest
11056         lt_save_allow_undefined_flag=$allow_undefined_flag
11057         allow_undefined_flag=
11058         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11059   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); }
11063         then
11064           archive_cmds_need_lc=no
11065         else
11066           archive_cmds_need_lc=yes
11067         fi
11068         allow_undefined_flag=$lt_save_allow_undefined_flag
11069       else
11070         cat conftest.err 1>&5
11071       fi
11072       $RM conftest*
11073       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11074 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11075       ;;
11076     esac
11077   fi
11078   ;;
11079 esac
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11238 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11239
11240 if test "$GCC" = yes; then
11241   case $host_os in
11242     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11243     *) lt_awk_arg="/^libraries:/" ;;
11244   esac
11245   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11246   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11247     # if the path contains ";" then we assume it to be the separator
11248     # otherwise default to the standard path separator (i.e. ":") - it is
11249     # assumed that no part of a normal pathname contains ";" but that should
11250     # okay in the real world where ";" in dirpaths is itself problematic.
11251     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11252   else
11253     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11254   fi
11255   # Ok, now we have the path, separated by spaces, we can step through it
11256   # and add multilib dir if necessary.
11257   lt_tmp_lt_search_path_spec=
11258   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11259   for lt_sys_path in $lt_search_path_spec; do
11260     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11261       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11262     else
11263       test -d "$lt_sys_path" && \
11264         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11265     fi
11266   done
11267   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11268 BEGIN {RS=" "; FS="/|\n";} {
11269   lt_foo="";
11270   lt_count=0;
11271   for (lt_i = NF; lt_i > 0; lt_i--) {
11272     if ($lt_i != "" && $lt_i != ".") {
11273       if ($lt_i == "..") {
11274         lt_count++;
11275       } else {
11276         if (lt_count == 0) {
11277           lt_foo="/" $lt_i lt_foo;
11278         } else {
11279           lt_count--;
11280         }
11281       }
11282     }
11283   }
11284   if (lt_foo != "") { lt_freq[lt_foo]++; }
11285   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11286 }'`
11287   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11288 else
11289   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11290 fi
11291 library_names_spec=
11292 libname_spec='lib$name'
11293 soname_spec=
11294 shrext_cmds=".so"
11295 postinstall_cmds=
11296 postuninstall_cmds=
11297 finish_cmds=
11298 finish_eval=
11299 shlibpath_var=
11300 shlibpath_overrides_runpath=unknown
11301 version_type=none
11302 dynamic_linker="$host_os ld.so"
11303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11304 need_lib_prefix=unknown
11305 hardcode_into_libs=no
11306
11307 # when you set need_version to no, make sure it does not cause -set_version
11308 # flags to be left without arguments
11309 need_version=unknown
11310
11311 case $host_os in
11312 aix3*)
11313   version_type=linux
11314   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11315   shlibpath_var=LIBPATH
11316
11317   # AIX 3 has no versioning support, so we append a major version to the name.
11318   soname_spec='${libname}${release}${shared_ext}$major'
11319   ;;
11320
11321 aix[4-9]*)
11322   version_type=linux
11323   need_lib_prefix=no
11324   need_version=no
11325   hardcode_into_libs=yes
11326   if test "$host_cpu" = ia64; then
11327     # AIX 5 supports IA64
11328     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11329     shlibpath_var=LD_LIBRARY_PATH
11330   else
11331     # With GCC up to 2.95.x, collect2 would create an import file
11332     # for dependence libraries.  The import file would start with
11333     # the line `#! .'.  This would cause the generated library to
11334     # depend on `.', always an invalid library.  This was fixed in
11335     # development snapshots of GCC prior to 3.0.
11336     case $host_os in
11337       aix4 | aix4.[01] | aix4.[01].*)
11338       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11339            echo ' yes '
11340            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11341         :
11342       else
11343         can_build_shared=no
11344       fi
11345       ;;
11346     esac
11347     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11348     # soname into executable. Probably we can add versioning support to
11349     # collect2, so additional links can be useful in future.
11350     if test "$aix_use_runtimelinking" = yes; then
11351       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11352       # instead of lib<name>.a to let people know that these are not
11353       # typical AIX shared libraries.
11354       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355     else
11356       # We preserve .a as extension for shared libraries through AIX4.2
11357       # and later when we are not doing run time linking.
11358       library_names_spec='${libname}${release}.a $libname.a'
11359       soname_spec='${libname}${release}${shared_ext}$major'
11360     fi
11361     shlibpath_var=LIBPATH
11362   fi
11363   ;;
11364
11365 amigaos*)
11366   case $host_cpu in
11367   powerpc)
11368     # Since July 2007 AmigaOS4 officially supports .so libraries.
11369     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371     ;;
11372   m68k)
11373     library_names_spec='$libname.ixlibrary $libname.a'
11374     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11375     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'
11376     ;;
11377   esac
11378   ;;
11379
11380 beos*)
11381   library_names_spec='${libname}${shared_ext}'
11382   dynamic_linker="$host_os ld.so"
11383   shlibpath_var=LIBRARY_PATH
11384   ;;
11385
11386 bsdi[45]*)
11387   version_type=linux
11388   need_version=no
11389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390   soname_spec='${libname}${release}${shared_ext}$major'
11391   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11392   shlibpath_var=LD_LIBRARY_PATH
11393   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11394   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11395   # the default ld.so.conf also contains /usr/contrib/lib and
11396   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11397   # libtool to hard-code these into programs
11398   ;;
11399
11400 cygwin* | mingw* | pw32* | cegcc*)
11401   version_type=windows
11402   shrext_cmds=".dll"
11403   need_version=no
11404   need_lib_prefix=no
11405
11406   case $GCC,$host_os in
11407   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11408     library_names_spec='$libname.dll.a'
11409     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11410     postinstall_cmds='base_file=`basename \${file}`~
11411       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11412       dldir=$destdir/`dirname \$dlpath`~
11413       test -d \$dldir || mkdir -p \$dldir~
11414       $install_prog $dir/$dlname \$dldir/$dlname~
11415       chmod a+x \$dldir/$dlname~
11416       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11417         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11418       fi'
11419     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11420       dlpath=$dir/\$dldll~
11421        $RM \$dlpath'
11422     shlibpath_overrides_runpath=yes
11423
11424     case $host_os in
11425     cygwin*)
11426       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11427       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11428       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11429       ;;
11430     mingw* | cegcc*)
11431       # MinGW DLLs use traditional 'lib' prefix
11432       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11433       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11434       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11435         # It is most probably a Windows format PATH printed by
11436         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11437         # path with ; separators, and with drive letters. We can handle the
11438         # drive letters (cygwin fileutils understands them), so leave them,
11439         # especially as we might pass files found there to a mingw objdump,
11440         # which wouldn't understand a cygwinified path. Ahh.
11441         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11442       else
11443         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11444       fi
11445       ;;
11446     pw32*)
11447       # pw32 DLLs use 'pw' prefix rather than 'lib'
11448       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11449       ;;
11450     esac
11451     ;;
11452
11453   *)
11454     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11455     ;;
11456   esac
11457   dynamic_linker='Win32 ld.exe'
11458   # FIXME: first we should search . and the directory the executable is in
11459   shlibpath_var=PATH
11460   ;;
11461
11462 darwin* | rhapsody*)
11463   dynamic_linker="$host_os dyld"
11464   version_type=darwin
11465   need_lib_prefix=no
11466   need_version=no
11467   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11468   soname_spec='${libname}${release}${major}$shared_ext'
11469   shlibpath_overrides_runpath=yes
11470   shlibpath_var=DYLD_LIBRARY_PATH
11471   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11472
11473   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11474   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11475   ;;
11476
11477 dgux*)
11478   version_type=linux
11479   need_lib_prefix=no
11480   need_version=no
11481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11482   soname_spec='${libname}${release}${shared_ext}$major'
11483   shlibpath_var=LD_LIBRARY_PATH
11484   ;;
11485
11486 freebsd1*)
11487   dynamic_linker=no
11488   ;;
11489
11490 freebsd* | dragonfly*)
11491   # DragonFly does not have aout.  When/if they implement a new
11492   # versioning mechanism, adjust this.
11493   if test -x /usr/bin/objformat; then
11494     objformat=`/usr/bin/objformat`
11495   else
11496     case $host_os in
11497     freebsd[123]*) objformat=aout ;;
11498     *) objformat=elf ;;
11499     esac
11500   fi
11501   version_type=freebsd-$objformat
11502   case $version_type in
11503     freebsd-elf*)
11504       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11505       need_version=no
11506       need_lib_prefix=no
11507       ;;
11508     freebsd-*)
11509       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11510       need_version=yes
11511       ;;
11512   esac
11513   shlibpath_var=LD_LIBRARY_PATH
11514   case $host_os in
11515   freebsd2*)
11516     shlibpath_overrides_runpath=yes
11517     ;;
11518   freebsd3.[01]* | freebsdelf3.[01]*)
11519     shlibpath_overrides_runpath=yes
11520     hardcode_into_libs=yes
11521     ;;
11522   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11523   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11524     shlibpath_overrides_runpath=no
11525     hardcode_into_libs=yes
11526     ;;
11527   *) # from 4.6 on, and DragonFly
11528     shlibpath_overrides_runpath=yes
11529     hardcode_into_libs=yes
11530     ;;
11531   esac
11532   ;;
11533
11534 gnu*)
11535   version_type=linux
11536   need_lib_prefix=no
11537   need_version=no
11538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11539   soname_spec='${libname}${release}${shared_ext}$major'
11540   shlibpath_var=LD_LIBRARY_PATH
11541   hardcode_into_libs=yes
11542   ;;
11543
11544 hpux9* | hpux10* | hpux11*)
11545   # Give a soname corresponding to the major version so that dld.sl refuses to
11546   # link against other versions.
11547   version_type=sunos
11548   need_lib_prefix=no
11549   need_version=no
11550   case $host_cpu in
11551   ia64*)
11552     shrext_cmds='.so'
11553     hardcode_into_libs=yes
11554     dynamic_linker="$host_os dld.so"
11555     shlibpath_var=LD_LIBRARY_PATH
11556     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558     soname_spec='${libname}${release}${shared_ext}$major'
11559     if test "X$HPUX_IA64_MODE" = X32; then
11560       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11561     else
11562       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11563     fi
11564     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11565     ;;
11566   hppa*64*)
11567     shrext_cmds='.sl'
11568     hardcode_into_libs=yes
11569     dynamic_linker="$host_os dld.sl"
11570     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11571     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573     soname_spec='${libname}${release}${shared_ext}$major'
11574     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11575     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11576     ;;
11577   *)
11578     shrext_cmds='.sl'
11579     dynamic_linker="$host_os dld.sl"
11580     shlibpath_var=SHLIB_PATH
11581     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583     soname_spec='${libname}${release}${shared_ext}$major'
11584     ;;
11585   esac
11586   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11587   postinstall_cmds='chmod 555 $lib'
11588   ;;
11589
11590 interix[3-9]*)
11591   version_type=linux
11592   need_lib_prefix=no
11593   need_version=no
11594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11595   soname_spec='${libname}${release}${shared_ext}$major'
11596   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11597   shlibpath_var=LD_LIBRARY_PATH
11598   shlibpath_overrides_runpath=no
11599   hardcode_into_libs=yes
11600   ;;
11601
11602 irix5* | irix6* | nonstopux*)
11603   case $host_os in
11604     nonstopux*) version_type=nonstopux ;;
11605     *)
11606         if test "$lt_cv_prog_gnu_ld" = yes; then
11607                 version_type=linux
11608         else
11609                 version_type=irix
11610         fi ;;
11611   esac
11612   need_lib_prefix=no
11613   need_version=no
11614   soname_spec='${libname}${release}${shared_ext}$major'
11615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11616   case $host_os in
11617   irix5* | nonstopux*)
11618     libsuff= shlibsuff=
11619     ;;
11620   *)
11621     case $LD in # libtool.m4 will add one of these switches to LD
11622     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11623       libsuff= shlibsuff= libmagic=32-bit;;
11624     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11625       libsuff=32 shlibsuff=N32 libmagic=N32;;
11626     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11627       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11628     *) libsuff= shlibsuff= libmagic=never-match;;
11629     esac
11630     ;;
11631   esac
11632   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11633   shlibpath_overrides_runpath=no
11634   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11635   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11636   hardcode_into_libs=yes
11637   ;;
11638
11639 # No shared lib support for Linux oldld, aout, or coff.
11640 linux*oldld* | linux*aout* | linux*coff*)
11641   dynamic_linker=no
11642   ;;
11643
11644 # This must be Linux ELF.
11645 linux* | k*bsd*-gnu)
11646   version_type=linux
11647   need_lib_prefix=no
11648   need_version=no
11649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650   soname_spec='${libname}${release}${shared_ext}$major'
11651   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11652   shlibpath_var=LD_LIBRARY_PATH
11653   shlibpath_overrides_runpath=no
11654   # Some binutils ld are patched to set DT_RUNPATH
11655   save_LDFLAGS=$LDFLAGS
11656   save_libdir=$libdir
11657   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11658        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11659   cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h.  */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h.  */
11665
11666 int
11667 main ()
11668 {
11669
11670   ;
11671   return 0;
11672 }
11673 _ACEOF
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (ac_try="$ac_link"
11676 case "(($ac_try" in
11677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678   *) ac_try_echo=$ac_try;;
11679 esac
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681   (eval "$ac_link") 2>conftest.er1
11682   ac_status=$?
11683   grep -v '^ *+' conftest.er1 >conftest.err
11684   rm -f conftest.er1
11685   cat conftest.err >&5
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); } && {
11688          test -z "$ac_c_werror_flag" ||
11689          test ! -s conftest.err
11690        } && test -s conftest$ac_exeext &&
11691        $as_test_x conftest$ac_exeext; then
11692   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11693   shlibpath_overrides_runpath=yes
11694 fi
11695
11696 else
11697   echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11699
11700
11701 fi
11702
11703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11704       conftest$ac_exeext conftest.$ac_ext
11705   LDFLAGS=$save_LDFLAGS
11706   libdir=$save_libdir
11707
11708   # This implies no fast_install, which is unacceptable.
11709   # Some rework will be needed to allow for fast_install
11710   # before this can be enabled.
11711   hardcode_into_libs=yes
11712
11713   # Append ld.so.conf contents to the search path
11714   if test -f /etc/ld.so.conf; then
11715     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' ' '`
11716     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11717   fi
11718
11719   # We used to test for /lib/ld.so.1 and disable shared libraries on
11720   # powerpc, because MkLinux only supported shared libraries with the
11721   # GNU dynamic linker.  Since this was broken with cross compilers,
11722   # most powerpc-linux boxes support dynamic linking these days and
11723   # people can always --disable-shared, the test was removed, and we
11724   # assume the GNU/Linux dynamic linker is in use.
11725   dynamic_linker='GNU/Linux ld.so'
11726   ;;
11727
11728 netbsd*)
11729   version_type=sunos
11730   need_lib_prefix=no
11731   need_version=no
11732   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11734     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11735     dynamic_linker='NetBSD (a.out) ld.so'
11736   else
11737     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11738     soname_spec='${libname}${release}${shared_ext}$major'
11739     dynamic_linker='NetBSD ld.elf_so'
11740   fi
11741   shlibpath_var=LD_LIBRARY_PATH
11742   shlibpath_overrides_runpath=yes
11743   hardcode_into_libs=yes
11744   ;;
11745
11746 newsos6)
11747   version_type=linux
11748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749   shlibpath_var=LD_LIBRARY_PATH
11750   shlibpath_overrides_runpath=yes
11751   ;;
11752
11753 *nto* | *qnx*)
11754   version_type=qnx
11755   need_lib_prefix=no
11756   need_version=no
11757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758   soname_spec='${libname}${release}${shared_ext}$major'
11759   shlibpath_var=LD_LIBRARY_PATH
11760   shlibpath_overrides_runpath=no
11761   hardcode_into_libs=yes
11762   dynamic_linker='ldqnx.so'
11763   ;;
11764
11765 openbsd*)
11766   version_type=sunos
11767   sys_lib_dlsearch_path_spec="/usr/lib"
11768   need_lib_prefix=no
11769   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11770   case $host_os in
11771     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11772     *)                          need_version=no  ;;
11773   esac
11774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11775   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11776   shlibpath_var=LD_LIBRARY_PATH
11777   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11778     case $host_os in
11779       openbsd2.[89] | openbsd2.[89].*)
11780         shlibpath_overrides_runpath=no
11781         ;;
11782       *)
11783         shlibpath_overrides_runpath=yes
11784         ;;
11785       esac
11786   else
11787     shlibpath_overrides_runpath=yes
11788   fi
11789   ;;
11790
11791 os2*)
11792   libname_spec='$name'
11793   shrext_cmds=".dll"
11794   need_lib_prefix=no
11795   library_names_spec='$libname${shared_ext} $libname.a'
11796   dynamic_linker='OS/2 ld.exe'
11797   shlibpath_var=LIBPATH
11798   ;;
11799
11800 osf3* | osf4* | osf5*)
11801   version_type=osf
11802   need_lib_prefix=no
11803   need_version=no
11804   soname_spec='${libname}${release}${shared_ext}$major'
11805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806   shlibpath_var=LD_LIBRARY_PATH
11807   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11808   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11809   ;;
11810
11811 rdos*)
11812   dynamic_linker=no
11813   ;;
11814
11815 solaris*)
11816   version_type=linux
11817   need_lib_prefix=no
11818   need_version=no
11819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820   soname_spec='${libname}${release}${shared_ext}$major'
11821   shlibpath_var=LD_LIBRARY_PATH
11822   shlibpath_overrides_runpath=yes
11823   hardcode_into_libs=yes
11824   # ldd complains unless libraries are executable
11825   postinstall_cmds='chmod +x $lib'
11826   ;;
11827
11828 sunos4*)
11829   version_type=sunos
11830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11831   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11832   shlibpath_var=LD_LIBRARY_PATH
11833   shlibpath_overrides_runpath=yes
11834   if test "$with_gnu_ld" = yes; then
11835     need_lib_prefix=no
11836   fi
11837   need_version=yes
11838   ;;
11839
11840 sysv4 | sysv4.3*)
11841   version_type=linux
11842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11843   soname_spec='${libname}${release}${shared_ext}$major'
11844   shlibpath_var=LD_LIBRARY_PATH
11845   case $host_vendor in
11846     sni)
11847       shlibpath_overrides_runpath=no
11848       need_lib_prefix=no
11849       runpath_var=LD_RUN_PATH
11850       ;;
11851     siemens)
11852       need_lib_prefix=no
11853       ;;
11854     motorola)
11855       need_lib_prefix=no
11856       need_version=no
11857       shlibpath_overrides_runpath=no
11858       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11859       ;;
11860   esac
11861   ;;
11862
11863 sysv4*MP*)
11864   if test -d /usr/nec ;then
11865     version_type=linux
11866     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11867     soname_spec='$libname${shared_ext}.$major'
11868     shlibpath_var=LD_LIBRARY_PATH
11869   fi
11870   ;;
11871
11872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11873   version_type=freebsd-elf
11874   need_lib_prefix=no
11875   need_version=no
11876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11877   soname_spec='${libname}${release}${shared_ext}$major'
11878   shlibpath_var=LD_LIBRARY_PATH
11879   shlibpath_overrides_runpath=yes
11880   hardcode_into_libs=yes
11881   if test "$with_gnu_ld" = yes; then
11882     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11883   else
11884     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11885     case $host_os in
11886       sco3.2v5*)
11887         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11888         ;;
11889     esac
11890   fi
11891   sys_lib_dlsearch_path_spec='/usr/lib'
11892   ;;
11893
11894 tpf*)
11895   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11896   version_type=linux
11897   need_lib_prefix=no
11898   need_version=no
11899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11900   shlibpath_var=LD_LIBRARY_PATH
11901   shlibpath_overrides_runpath=no
11902   hardcode_into_libs=yes
11903   ;;
11904
11905 uts4*)
11906   version_type=linux
11907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908   soname_spec='${libname}${release}${shared_ext}$major'
11909   shlibpath_var=LD_LIBRARY_PATH
11910   ;;
11911
11912 *)
11913   dynamic_linker=no
11914   ;;
11915 esac
11916 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11917 echo "${ECHO_T}$dynamic_linker" >&6; }
11918 test "$dynamic_linker" = no && can_build_shared=no
11919
11920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11921 if test "$GCC" = yes; then
11922   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11923 fi
11924
11925 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11926   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11927 fi
11928 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11929   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11930 fi
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12019 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12020 hardcode_action=
12021 if test -n "$hardcode_libdir_flag_spec" ||
12022    test -n "$runpath_var" ||
12023    test "X$hardcode_automatic" = "Xyes" ; then
12024
12025   # We can hardcode non-existent directories.
12026   if test "$hardcode_direct" != no &&
12027      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12028      # have to relink, otherwise we might link with an installed library
12029      # when we should be linking with a yet-to-be-installed one
12030      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12031      test "$hardcode_minus_L" != no; then
12032     # Linking always hardcodes the temporary library directory.
12033     hardcode_action=relink
12034   else
12035     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12036     hardcode_action=immediate
12037   fi
12038 else
12039   # We cannot hardcode anything, or else we can only hardcode existing
12040   # directories.
12041   hardcode_action=unsupported
12042 fi
12043 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12044 echo "${ECHO_T}$hardcode_action" >&6; }
12045
12046 if test "$hardcode_action" = relink ||
12047    test "$inherit_rpath" = yes; then
12048   # Fast installation is not supported
12049   enable_fast_install=no
12050 elif test "$shlibpath_overrides_runpath" = yes ||
12051      test "$enable_shared" = no; then
12052   # Fast installation is not necessary
12053   enable_fast_install=needless
12054 fi
12055
12056
12057
12058
12059
12060
12061   if test "x$enable_dlopen" != xyes; then
12062   enable_dlopen=unknown
12063   enable_dlopen_self=unknown
12064   enable_dlopen_self_static=unknown
12065 else
12066   lt_cv_dlopen=no
12067   lt_cv_dlopen_libs=
12068
12069   case $host_os in
12070   beos*)
12071     lt_cv_dlopen="load_add_on"
12072     lt_cv_dlopen_libs=
12073     lt_cv_dlopen_self=yes
12074     ;;
12075
12076   mingw* | pw32* | cegcc*)
12077     lt_cv_dlopen="LoadLibrary"
12078     lt_cv_dlopen_libs=
12079     ;;
12080
12081   cygwin*)
12082     lt_cv_dlopen="dlopen"
12083     lt_cv_dlopen_libs=
12084     ;;
12085
12086   darwin*)
12087   # if libdl is installed we need to link against it
12088     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12089 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12090 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12091   echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093   ac_check_lib_save_LIBS=$LIBS
12094 LIBS="-ldl  $LIBS"
12095 cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h.  */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h.  */
12101
12102 /* Override any GCC internal prototype to avoid an error.
12103    Use char because int might match the return type of a GCC
12104    builtin and then its argument prototype would still apply.  */
12105 #ifdef __cplusplus
12106 extern "C"
12107 #endif
12108 char dlopen ();
12109 int
12110 main ()
12111 {
12112 return dlopen ();
12113   ;
12114   return 0;
12115 }
12116 _ACEOF
12117 rm -f conftest.$ac_objext conftest$ac_exeext
12118 if { (ac_try="$ac_link"
12119 case "(($ac_try" in
12120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121   *) ac_try_echo=$ac_try;;
12122 esac
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124   (eval "$ac_link") 2>conftest.er1
12125   ac_status=$?
12126   grep -v '^ *+' conftest.er1 >conftest.err
12127   rm -f conftest.er1
12128   cat conftest.err >&5
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); } && {
12131          test -z "$ac_c_werror_flag" ||
12132          test ! -s conftest.err
12133        } && test -s conftest$ac_exeext &&
12134        $as_test_x conftest$ac_exeext; then
12135   ac_cv_lib_dl_dlopen=yes
12136 else
12137   echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140         ac_cv_lib_dl_dlopen=no
12141 fi
12142
12143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12144       conftest$ac_exeext conftest.$ac_ext
12145 LIBS=$ac_check_lib_save_LIBS
12146 fi
12147 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12148 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12149 if test $ac_cv_lib_dl_dlopen = yes; then
12150   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12151 else
12152
12153     lt_cv_dlopen="dyld"
12154     lt_cv_dlopen_libs=
12155     lt_cv_dlopen_self=yes
12156
12157 fi
12158
12159     ;;
12160
12161   *)
12162     { echo "$as_me:$LINENO: checking for shl_load" >&5
12163 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12164 if test "${ac_cv_func_shl_load+set}" = set; then
12165   echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167   cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h.  */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h.  */
12173 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12175 #define shl_load innocuous_shl_load
12176
12177 /* System header to define __stub macros and hopefully few prototypes,
12178     which can conflict with char shl_load (); below.
12179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12180     <limits.h> exists even on freestanding compilers.  */
12181
12182 #ifdef __STDC__
12183 # include <limits.h>
12184 #else
12185 # include <assert.h>
12186 #endif
12187
12188 #undef shl_load
12189
12190 /* Override any GCC internal prototype to avoid an error.
12191    Use char because int might match the return type of a GCC
12192    builtin and then its argument prototype would still apply.  */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 char shl_load ();
12197 /* The GNU C library defines this for functions which it implements
12198     to always fail with ENOSYS.  Some functions are actually named
12199     something starting with __ and the normal name is an alias.  */
12200 #if defined __stub_shl_load || defined __stub___shl_load
12201 choke me
12202 #endif
12203
12204 int
12205 main ()
12206 {
12207 return shl_load ();
12208   ;
12209   return 0;
12210 }
12211 _ACEOF
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216   *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219   (eval "$ac_link") 2>conftest.er1
12220   ac_status=$?
12221   grep -v '^ *+' conftest.er1 >conftest.err
12222   rm -f conftest.er1
12223   cat conftest.err >&5
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); } && {
12226          test -z "$ac_c_werror_flag" ||
12227          test ! -s conftest.err
12228        } && test -s conftest$ac_exeext &&
12229        $as_test_x conftest$ac_exeext; then
12230   ac_cv_func_shl_load=yes
12231 else
12232   echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235         ac_cv_func_shl_load=no
12236 fi
12237
12238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12239       conftest$ac_exeext conftest.$ac_ext
12240 fi
12241 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12242 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12243 if test $ac_cv_func_shl_load = yes; then
12244   lt_cv_dlopen="shl_load"
12245 else
12246   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12247 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12248 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12249   echo $ECHO_N "(cached) $ECHO_C" >&6
12250 else
12251   ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-ldld  $LIBS"
12253 cat >conftest.$ac_ext <<_ACEOF
12254 /* confdefs.h.  */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h.  */
12259
12260 /* Override any GCC internal prototype to avoid an error.
12261    Use char because int might match the return type of a GCC
12262    builtin and then its argument prototype would still apply.  */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 char shl_load ();
12267 int
12268 main ()
12269 {
12270 return shl_load ();
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (ac_try="$ac_link"
12277 case "(($ac_try" in
12278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279   *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282   (eval "$ac_link") 2>conftest.er1
12283   ac_status=$?
12284   grep -v '^ *+' conftest.er1 >conftest.err
12285   rm -f conftest.er1
12286   cat conftest.err >&5
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); } && {
12289          test -z "$ac_c_werror_flag" ||
12290          test ! -s conftest.err
12291        } && test -s conftest$ac_exeext &&
12292        $as_test_x conftest$ac_exeext; then
12293   ac_cv_lib_dld_shl_load=yes
12294 else
12295   echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12297
12298         ac_cv_lib_dld_shl_load=no
12299 fi
12300
12301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12302       conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12304 fi
12305 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12306 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12307 if test $ac_cv_lib_dld_shl_load = yes; then
12308   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12309 else
12310   { echo "$as_me:$LINENO: checking for dlopen" >&5
12311 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12312 if test "${ac_cv_func_dlopen+set}" = set; then
12313   echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315   cat >conftest.$ac_ext <<_ACEOF
12316 /* confdefs.h.  */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h.  */
12321 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12323 #define dlopen innocuous_dlopen
12324
12325 /* System header to define __stub macros and hopefully few prototypes,
12326     which can conflict with char dlopen (); below.
12327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12328     <limits.h> exists even on freestanding compilers.  */
12329
12330 #ifdef __STDC__
12331 # include <limits.h>
12332 #else
12333 # include <assert.h>
12334 #endif
12335
12336 #undef dlopen
12337
12338 /* Override any GCC internal prototype to avoid an error.
12339    Use char because int might match the return type of a GCC
12340    builtin and then its argument prototype would still apply.  */
12341 #ifdef __cplusplus
12342 extern "C"
12343 #endif
12344 char dlopen ();
12345 /* The GNU C library defines this for functions which it implements
12346     to always fail with ENOSYS.  Some functions are actually named
12347     something starting with __ and the normal name is an alias.  */
12348 #if defined __stub_dlopen || defined __stub___dlopen
12349 choke me
12350 #endif
12351
12352 int
12353 main ()
12354 {
12355 return dlopen ();
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 rm -f conftest.$ac_objext conftest$ac_exeext
12361 if { (ac_try="$ac_link"
12362 case "(($ac_try" in
12363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364   *) ac_try_echo=$ac_try;;
12365 esac
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367   (eval "$ac_link") 2>conftest.er1
12368   ac_status=$?
12369   grep -v '^ *+' conftest.er1 >conftest.err
12370   rm -f conftest.er1
12371   cat conftest.err >&5
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } && {
12374          test -z "$ac_c_werror_flag" ||
12375          test ! -s conftest.err
12376        } && test -s conftest$ac_exeext &&
12377        $as_test_x conftest$ac_exeext; then
12378   ac_cv_func_dlopen=yes
12379 else
12380   echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12382
12383         ac_cv_func_dlopen=no
12384 fi
12385
12386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12387       conftest$ac_exeext conftest.$ac_ext
12388 fi
12389 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12390 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12391 if test $ac_cv_func_dlopen = yes; then
12392   lt_cv_dlopen="dlopen"
12393 else
12394   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12395 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12396 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12397   echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399   ac_check_lib_save_LIBS=$LIBS
12400 LIBS="-ldl  $LIBS"
12401 cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h.  */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h.  */
12407
12408 /* Override any GCC internal prototype to avoid an error.
12409    Use char because int might match the return type of a GCC
12410    builtin and then its argument prototype would still apply.  */
12411 #ifdef __cplusplus
12412 extern "C"
12413 #endif
12414 char dlopen ();
12415 int
12416 main ()
12417 {
12418 return dlopen ();
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427   *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430   (eval "$ac_link") 2>conftest.er1
12431   ac_status=$?
12432   grep -v '^ *+' conftest.er1 >conftest.err
12433   rm -f conftest.er1
12434   cat conftest.err >&5
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); } && {
12437          test -z "$ac_c_werror_flag" ||
12438          test ! -s conftest.err
12439        } && test -s conftest$ac_exeext &&
12440        $as_test_x conftest$ac_exeext; then
12441   ac_cv_lib_dl_dlopen=yes
12442 else
12443   echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446         ac_cv_lib_dl_dlopen=no
12447 fi
12448
12449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12450       conftest$ac_exeext conftest.$ac_ext
12451 LIBS=$ac_check_lib_save_LIBS
12452 fi
12453 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12454 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12455 if test $ac_cv_lib_dl_dlopen = yes; then
12456   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12457 else
12458   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12459 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12460 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12461   echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463   ac_check_lib_save_LIBS=$LIBS
12464 LIBS="-lsvld  $LIBS"
12465 cat >conftest.$ac_ext <<_ACEOF
12466 /* confdefs.h.  */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h.  */
12471
12472 /* Override any GCC internal prototype to avoid an error.
12473    Use char because int might match the return type of a GCC
12474    builtin and then its argument prototype would still apply.  */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 char dlopen ();
12479 int
12480 main ()
12481 {
12482 return dlopen ();
12483   ;
12484   return 0;
12485 }
12486 _ACEOF
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (ac_try="$ac_link"
12489 case "(($ac_try" in
12490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491   *) ac_try_echo=$ac_try;;
12492 esac
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494   (eval "$ac_link") 2>conftest.er1
12495   ac_status=$?
12496   grep -v '^ *+' conftest.er1 >conftest.err
12497   rm -f conftest.er1
12498   cat conftest.err >&5
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } && {
12501          test -z "$ac_c_werror_flag" ||
12502          test ! -s conftest.err
12503        } && test -s conftest$ac_exeext &&
12504        $as_test_x conftest$ac_exeext; then
12505   ac_cv_lib_svld_dlopen=yes
12506 else
12507   echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12509
12510         ac_cv_lib_svld_dlopen=no
12511 fi
12512
12513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12514       conftest$ac_exeext conftest.$ac_ext
12515 LIBS=$ac_check_lib_save_LIBS
12516 fi
12517 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12518 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12519 if test $ac_cv_lib_svld_dlopen = yes; then
12520   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12521 else
12522   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12523 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12524 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12525   echo $ECHO_N "(cached) $ECHO_C" >&6
12526 else
12527   ac_check_lib_save_LIBS=$LIBS
12528 LIBS="-ldld  $LIBS"
12529 cat >conftest.$ac_ext <<_ACEOF
12530 /* confdefs.h.  */
12531 _ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h.  */
12535
12536 /* Override any GCC internal prototype to avoid an error.
12537    Use char because int might match the return type of a GCC
12538    builtin and then its argument prototype would still apply.  */
12539 #ifdef __cplusplus
12540 extern "C"
12541 #endif
12542 char dld_link ();
12543 int
12544 main ()
12545 {
12546 return dld_link ();
12547   ;
12548   return 0;
12549 }
12550 _ACEOF
12551 rm -f conftest.$ac_objext conftest$ac_exeext
12552 if { (ac_try="$ac_link"
12553 case "(($ac_try" in
12554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555   *) ac_try_echo=$ac_try;;
12556 esac
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558   (eval "$ac_link") 2>conftest.er1
12559   ac_status=$?
12560   grep -v '^ *+' conftest.er1 >conftest.err
12561   rm -f conftest.er1
12562   cat conftest.err >&5
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); } && {
12565          test -z "$ac_c_werror_flag" ||
12566          test ! -s conftest.err
12567        } && test -s conftest$ac_exeext &&
12568        $as_test_x conftest$ac_exeext; then
12569   ac_cv_lib_dld_dld_link=yes
12570 else
12571   echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12573
12574         ac_cv_lib_dld_dld_link=no
12575 fi
12576
12577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12578       conftest$ac_exeext conftest.$ac_ext
12579 LIBS=$ac_check_lib_save_LIBS
12580 fi
12581 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12582 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12583 if test $ac_cv_lib_dld_dld_link = yes; then
12584   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12585 fi
12586
12587
12588 fi
12589
12590
12591 fi
12592
12593
12594 fi
12595
12596
12597 fi
12598
12599
12600 fi
12601
12602     ;;
12603   esac
12604
12605   if test "x$lt_cv_dlopen" != xno; then
12606     enable_dlopen=yes
12607   else
12608     enable_dlopen=no
12609   fi
12610
12611   case $lt_cv_dlopen in
12612   dlopen)
12613     save_CPPFLAGS="$CPPFLAGS"
12614     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12615
12616     save_LDFLAGS="$LDFLAGS"
12617     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12618
12619     save_LIBS="$LIBS"
12620     LIBS="$lt_cv_dlopen_libs $LIBS"
12621
12622     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12623 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12624 if test "${lt_cv_dlopen_self+set}" = set; then
12625   echo $ECHO_N "(cached) $ECHO_C" >&6
12626 else
12627           if test "$cross_compiling" = yes; then :
12628   lt_cv_dlopen_self=cross
12629 else
12630   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12631   lt_status=$lt_dlunknown
12632   cat > conftest.$ac_ext <<_LT_EOF
12633 #line 12633 "configure"
12634 #include "confdefs.h"
12635
12636 #if HAVE_DLFCN_H
12637 #include <dlfcn.h>
12638 #endif
12639
12640 #include <stdio.h>
12641
12642 #ifdef RTLD_GLOBAL
12643 #  define LT_DLGLOBAL           RTLD_GLOBAL
12644 #else
12645 #  ifdef DL_GLOBAL
12646 #    define LT_DLGLOBAL         DL_GLOBAL
12647 #  else
12648 #    define LT_DLGLOBAL         0
12649 #  endif
12650 #endif
12651
12652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12653    find out it does not work in some platform. */
12654 #ifndef LT_DLLAZY_OR_NOW
12655 #  ifdef RTLD_LAZY
12656 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12657 #  else
12658 #    ifdef DL_LAZY
12659 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12660 #    else
12661 #      ifdef RTLD_NOW
12662 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12663 #      else
12664 #        ifdef DL_NOW
12665 #          define LT_DLLAZY_OR_NOW      DL_NOW
12666 #        else
12667 #          define LT_DLLAZY_OR_NOW      0
12668 #        endif
12669 #      endif
12670 #    endif
12671 #  endif
12672 #endif
12673
12674 void fnord() { int i=42;}
12675 int main ()
12676 {
12677   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12678   int status = $lt_dlunknown;
12679
12680   if (self)
12681     {
12682       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12683       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12684       /* dlclose (self); */
12685     }
12686   else
12687     puts (dlerror ());
12688
12689   return status;
12690 }
12691 _LT_EOF
12692   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693   (eval $ac_link) 2>&5
12694   ac_status=$?
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12697     (./conftest; exit; ) >&5 2>/dev/null
12698     lt_status=$?
12699     case x$lt_status in
12700       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12701       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12702       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12703     esac
12704   else :
12705     # compilation failed
12706     lt_cv_dlopen_self=no
12707   fi
12708 fi
12709 rm -fr conftest*
12710
12711
12712 fi
12713 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12714 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12715
12716     if test "x$lt_cv_dlopen_self" = xyes; then
12717       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12718       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12719 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12720 if test "${lt_cv_dlopen_self_static+set}" = set; then
12721   echo $ECHO_N "(cached) $ECHO_C" >&6
12722 else
12723           if test "$cross_compiling" = yes; then :
12724   lt_cv_dlopen_self_static=cross
12725 else
12726   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12727   lt_status=$lt_dlunknown
12728   cat > conftest.$ac_ext <<_LT_EOF
12729 #line 12729 "configure"
12730 #include "confdefs.h"
12731
12732 #if HAVE_DLFCN_H
12733 #include <dlfcn.h>
12734 #endif
12735
12736 #include <stdio.h>
12737
12738 #ifdef RTLD_GLOBAL
12739 #  define LT_DLGLOBAL           RTLD_GLOBAL
12740 #else
12741 #  ifdef DL_GLOBAL
12742 #    define LT_DLGLOBAL         DL_GLOBAL
12743 #  else
12744 #    define LT_DLGLOBAL         0
12745 #  endif
12746 #endif
12747
12748 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12749    find out it does not work in some platform. */
12750 #ifndef LT_DLLAZY_OR_NOW
12751 #  ifdef RTLD_LAZY
12752 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12753 #  else
12754 #    ifdef DL_LAZY
12755 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12756 #    else
12757 #      ifdef RTLD_NOW
12758 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12759 #      else
12760 #        ifdef DL_NOW
12761 #          define LT_DLLAZY_OR_NOW      DL_NOW
12762 #        else
12763 #          define LT_DLLAZY_OR_NOW      0
12764 #        endif
12765 #      endif
12766 #    endif
12767 #  endif
12768 #endif
12769
12770 void fnord() { int i=42;}
12771 int main ()
12772 {
12773   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12774   int status = $lt_dlunknown;
12775
12776   if (self)
12777     {
12778       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12779       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12780       /* dlclose (self); */
12781     }
12782   else
12783     puts (dlerror ());
12784
12785   return status;
12786 }
12787 _LT_EOF
12788   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12789   (eval $ac_link) 2>&5
12790   ac_status=$?
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12793     (./conftest; exit; ) >&5 2>/dev/null
12794     lt_status=$?
12795     case x$lt_status in
12796       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12797       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12798       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12799     esac
12800   else :
12801     # compilation failed
12802     lt_cv_dlopen_self_static=no
12803   fi
12804 fi
12805 rm -fr conftest*
12806
12807
12808 fi
12809 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12810 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12811     fi
12812
12813     CPPFLAGS="$save_CPPFLAGS"
12814     LDFLAGS="$save_LDFLAGS"
12815     LIBS="$save_LIBS"
12816     ;;
12817   esac
12818
12819   case $lt_cv_dlopen_self in
12820   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12821   *) enable_dlopen_self=unknown ;;
12822   esac
12823
12824   case $lt_cv_dlopen_self_static in
12825   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12826   *) enable_dlopen_self_static=unknown ;;
12827   esac
12828 fi
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846 striplib=
12847 old_striplib=
12848 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12849 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12850 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12851   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12852   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12853   { echo "$as_me:$LINENO: result: yes" >&5
12854 echo "${ECHO_T}yes" >&6; }
12855 else
12856 # FIXME - insert some real tests, host_os isn't really good enough
12857   case $host_os in
12858   darwin*)
12859     if test -n "$STRIP" ; then
12860       striplib="$STRIP -x"
12861       old_striplib="$STRIP -S"
12862       { echo "$as_me:$LINENO: result: yes" >&5
12863 echo "${ECHO_T}yes" >&6; }
12864     else
12865       { echo "$as_me:$LINENO: result: no" >&5
12866 echo "${ECHO_T}no" >&6; }
12867     fi
12868     ;;
12869   *)
12870     { echo "$as_me:$LINENO: result: no" >&5
12871 echo "${ECHO_T}no" >&6; }
12872     ;;
12873   esac
12874 fi
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887   # Report which library types will actually be built
12888   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12889 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12890   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12891 echo "${ECHO_T}$can_build_shared" >&6; }
12892
12893   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12894 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12895   test "$can_build_shared" = "no" && enable_shared=no
12896
12897   # On AIX, shared libraries and static libraries use the same namespace, and
12898   # are all built from PIC.
12899   case $host_os in
12900   aix3*)
12901     test "$enable_shared" = yes && enable_static=no
12902     if test -n "$RANLIB"; then
12903       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12904       postinstall_cmds='$RANLIB $lib'
12905     fi
12906     ;;
12907
12908   aix[4-9]*)
12909     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12910       test "$enable_shared" = yes && enable_static=no
12911     fi
12912     ;;
12913   esac
12914   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12915 echo "${ECHO_T}$enable_shared" >&6; }
12916
12917   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12918 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12919   # Make sure either enable_shared or enable_static is yes.
12920   test "$enable_shared" = yes || enable_static=yes
12921   { echo "$as_me:$LINENO: result: $enable_static" >&5
12922 echo "${ECHO_T}$enable_static" >&6; }
12923
12924
12925
12926
12927 fi
12928 ac_ext=c
12929 ac_cpp='$CPP $CPPFLAGS'
12930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12933
12934 CC="$lt_save_CC"
12935
12936
12937 ac_ext=cpp
12938 ac_cpp='$CXXCPP $CPPFLAGS'
12939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12942
12943 archive_cmds_need_lc_CXX=no
12944 allow_undefined_flag_CXX=
12945 always_export_symbols_CXX=no
12946 archive_expsym_cmds_CXX=
12947 compiler_needs_object_CXX=no
12948 export_dynamic_flag_spec_CXX=
12949 hardcode_direct_CXX=no
12950 hardcode_direct_absolute_CXX=no
12951 hardcode_libdir_flag_spec_CXX=
12952 hardcode_libdir_flag_spec_ld_CXX=
12953 hardcode_libdir_separator_CXX=
12954 hardcode_minus_L_CXX=no
12955 hardcode_shlibpath_var_CXX=unsupported
12956 hardcode_automatic_CXX=no
12957 inherit_rpath_CXX=no
12958 module_cmds_CXX=
12959 module_expsym_cmds_CXX=
12960 link_all_deplibs_CXX=unknown
12961 old_archive_cmds_CXX=$old_archive_cmds
12962 no_undefined_flag_CXX=
12963 whole_archive_flag_spec_CXX=
12964 enable_shared_with_static_runtimes_CXX=no
12965
12966 # Source file extension for C++ test sources.
12967 ac_ext=cpp
12968
12969 # Object file extension for compiled C++ test sources.
12970 objext=o
12971 objext_CXX=$objext
12972
12973 # No sense in running all these tests if we already determined that
12974 # the CXX compiler isn't working.  Some variables (like enable_shared)
12975 # are currently assumed to apply to all compilers on this platform,
12976 # and will be corrupted by setting them based on a non-working compiler.
12977 if test "$_lt_caught_CXX_error" != yes; then
12978   # Code to be used in simple compile tests
12979   lt_simple_compile_test_code="int some_variable = 0;"
12980
12981   # Code to be used in simple link tests
12982   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12983
12984   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12985
12986
12987
12988
12989
12990
12991 # If no C compiler was specified, use CC.
12992 LTCC=${LTCC-"$CC"}
12993
12994 # If no C compiler flags were specified, use CFLAGS.
12995 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12996
12997 # Allow CC to be a program name with arguments.
12998 compiler=$CC
12999
13000
13001   # save warnings/boilerplate of simple test code
13002   ac_outfile=conftest.$ac_objext
13003 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13004 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13005 _lt_compiler_boilerplate=`cat conftest.err`
13006 $RM conftest*
13007
13008   ac_outfile=conftest.$ac_objext
13009 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13010 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13011 _lt_linker_boilerplate=`cat conftest.err`
13012 $RM -r conftest*
13013
13014
13015   # Allow CC to be a program name with arguments.
13016   lt_save_CC=$CC
13017   lt_save_LD=$LD
13018   lt_save_GCC=$GCC
13019   GCC=$GXX
13020   lt_save_with_gnu_ld=$with_gnu_ld
13021   lt_save_path_LD=$lt_cv_path_LD
13022   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13023     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13024   else
13025     $as_unset lt_cv_prog_gnu_ld
13026   fi
13027   if test -n "${lt_cv_path_LDCXX+set}"; then
13028     lt_cv_path_LD=$lt_cv_path_LDCXX
13029   else
13030     $as_unset lt_cv_path_LD
13031   fi
13032   test -z "${LDCXX+set}" || LD=$LDCXX
13033   CC=${CXX-"c++"}
13034   compiler=$CC
13035   compiler_CXX=$CC
13036   for cc_temp in $compiler""; do
13037   case $cc_temp in
13038     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13039     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13040     \-*) ;;
13041     *) break;;
13042   esac
13043 done
13044 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13045
13046
13047   if test -n "$compiler"; then
13048     # We don't want -fno-exception when compiling C++ code, so set the
13049     # no_builtin_flag separately
13050     if test "$GXX" = yes; then
13051       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13052     else
13053       lt_prog_compiler_no_builtin_flag_CXX=
13054     fi
13055
13056     if test "$GXX" = yes; then
13057       # Set up default GNU C++ configuration
13058
13059
13060
13061 # Check whether --with-gnu-ld was given.
13062 if test "${with_gnu_ld+set}" = set; then
13063   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13064 else
13065   with_gnu_ld=no
13066 fi
13067
13068 ac_prog=ld
13069 if test "$GCC" = yes; then
13070   # Check if gcc -print-prog-name=ld gives a path.
13071   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13072 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13073   case $host in
13074   *-*-mingw*)
13075     # gcc leaves a trailing carriage return which upsets mingw
13076     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13077   *)
13078     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13079   esac
13080   case $ac_prog in
13081     # Accept absolute paths.
13082     [\\/]* | ?:[\\/]*)
13083       re_direlt='/[^/][^/]*/\.\./'
13084       # Canonicalize the pathname of ld
13085       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13086       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13087         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13088       done
13089       test -z "$LD" && LD="$ac_prog"
13090       ;;
13091   "")
13092     # If it fails, then pretend we aren't using GCC.
13093     ac_prog=ld
13094     ;;
13095   *)
13096     # If it is relative, then search for the first ld in PATH.
13097     with_gnu_ld=unknown
13098     ;;
13099   esac
13100 elif test "$with_gnu_ld" = yes; then
13101   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13102 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13103 else
13104   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13105 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13106 fi
13107 if test "${lt_cv_path_LD+set}" = set; then
13108   echo $ECHO_N "(cached) $ECHO_C" >&6
13109 else
13110   if test -z "$LD"; then
13111   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13112   for ac_dir in $PATH; do
13113     IFS="$lt_save_ifs"
13114     test -z "$ac_dir" && ac_dir=.
13115     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13116       lt_cv_path_LD="$ac_dir/$ac_prog"
13117       # Check to see if the program is GNU ld.  I'd rather use --version,
13118       # but apparently some variants of GNU ld only accept -v.
13119       # Break only if it was the GNU/non-GNU ld that we prefer.
13120       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13121       *GNU* | *'with BFD'*)
13122         test "$with_gnu_ld" != no && break
13123         ;;
13124       *)
13125         test "$with_gnu_ld" != yes && break
13126         ;;
13127       esac
13128     fi
13129   done
13130   IFS="$lt_save_ifs"
13131 else
13132   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13133 fi
13134 fi
13135
13136 LD="$lt_cv_path_LD"
13137 if test -n "$LD"; then
13138   { echo "$as_me:$LINENO: result: $LD" >&5
13139 echo "${ECHO_T}$LD" >&6; }
13140 else
13141   { echo "$as_me:$LINENO: result: no" >&5
13142 echo "${ECHO_T}no" >&6; }
13143 fi
13144 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13145 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13146    { (exit 1); exit 1; }; }
13147 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13148 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13149 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13150   echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13153 case `$LD -v 2>&1 </dev/null` in
13154 *GNU* | *'with BFD'*)
13155   lt_cv_prog_gnu_ld=yes
13156   ;;
13157 *)
13158   lt_cv_prog_gnu_ld=no
13159   ;;
13160 esac
13161 fi
13162 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13163 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13164 with_gnu_ld=$lt_cv_prog_gnu_ld
13165
13166
13167
13168
13169
13170
13171
13172       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13173       # archiving commands below assume that GNU ld is being used.
13174       if test "$with_gnu_ld" = yes; then
13175         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13176         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'
13177
13178         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13179         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13180
13181         # If archive_cmds runs LD, not CC, wlarc should be empty
13182         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13183         #     investigate it a little bit more. (MM)
13184         wlarc='${wl}'
13185
13186         # ancient GNU ld didn't support --whole-archive et. al.
13187         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13188           $GREP 'no-whole-archive' > /dev/null; then
13189           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13190         else
13191           whole_archive_flag_spec_CXX=
13192         fi
13193       else
13194         with_gnu_ld=no
13195         wlarc=
13196
13197         # A generic and very simple default shared library creation
13198         # command for GNU C++ for the case where it uses the native
13199         # linker, instead of GNU ld.  If possible, this setting should
13200         # overridden to take advantage of the native linker features on
13201         # the platform it is being used on.
13202         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13203       fi
13204
13205       # Commands to make compiler produce verbose output that lists
13206       # what "hidden" libraries, object files and flags are used when
13207       # linking a shared library.
13208       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13209
13210     else
13211       GXX=no
13212       with_gnu_ld=no
13213       wlarc=
13214     fi
13215
13216     # PORTME: fill in a description of your system's C++ link characteristics
13217     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13218 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13219     ld_shlibs_CXX=yes
13220     case $host_os in
13221       aix3*)
13222         # FIXME: insert proper C++ library support
13223         ld_shlibs_CXX=no
13224         ;;
13225       aix[4-9]*)
13226         if test "$host_cpu" = ia64; then
13227           # On IA64, the linker does run time linking by default, so we don't
13228           # have to do anything special.
13229           aix_use_runtimelinking=no
13230           exp_sym_flag='-Bexport'
13231           no_entry_flag=""
13232         else
13233           aix_use_runtimelinking=no
13234
13235           # Test if we are trying to use run time linking or normal
13236           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13237           # need to do runtime linking.
13238           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13239             for ld_flag in $LDFLAGS; do
13240               case $ld_flag in
13241               *-brtl*)
13242                 aix_use_runtimelinking=yes
13243                 break
13244                 ;;
13245               esac
13246             done
13247             ;;
13248           esac
13249
13250           exp_sym_flag='-bexport'
13251           no_entry_flag='-bnoentry'
13252         fi
13253
13254         # When large executables or shared objects are built, AIX ld can
13255         # have problems creating the table of contents.  If linking a library
13256         # or program results in "error TOC overflow" add -mminimal-toc to
13257         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13258         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13259
13260         archive_cmds_CXX=''
13261         hardcode_direct_CXX=yes
13262         hardcode_direct_absolute_CXX=yes
13263         hardcode_libdir_separator_CXX=':'
13264         link_all_deplibs_CXX=yes
13265         file_list_spec_CXX='${wl}-f,'
13266
13267         if test "$GXX" = yes; then
13268           case $host_os in aix4.[012]|aix4.[012].*)
13269           # We only want to do this on AIX 4.2 and lower, the check
13270           # below for broken collect2 doesn't work under 4.3+
13271           collect2name=`${CC} -print-prog-name=collect2`
13272           if test -f "$collect2name" &&
13273              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13274           then
13275             # We have reworked collect2
13276             :
13277           else
13278             # We have old collect2
13279             hardcode_direct_CXX=unsupported
13280             # It fails to find uninstalled libraries when the uninstalled
13281             # path is not listed in the libpath.  Setting hardcode_minus_L
13282             # to unsupported forces relinking
13283             hardcode_minus_L_CXX=yes
13284             hardcode_libdir_flag_spec_CXX='-L$libdir'
13285             hardcode_libdir_separator_CXX=
13286           fi
13287           esac
13288           shared_flag='-shared'
13289           if test "$aix_use_runtimelinking" = yes; then
13290             shared_flag="$shared_flag "'${wl}-G'
13291           fi
13292         else
13293           # not using gcc
13294           if test "$host_cpu" = ia64; then
13295           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13296           # chokes on -Wl,-G. The following line is correct:
13297           shared_flag='-G'
13298           else
13299             if test "$aix_use_runtimelinking" = yes; then
13300               shared_flag='${wl}-G'
13301             else
13302               shared_flag='${wl}-bM:SRE'
13303             fi
13304           fi
13305         fi
13306
13307         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13308         # It seems that -bexpall does not export symbols beginning with
13309         # underscore (_), so it is better to generate a list of symbols to
13310         # export.
13311         always_export_symbols_CXX=yes
13312         if test "$aix_use_runtimelinking" = yes; then
13313           # Warning - without using the other runtime loading flags (-brtl),
13314           # -berok will link without error, but may produce a broken library.
13315           allow_undefined_flag_CXX='-berok'
13316           # Determine the default libpath from the value encoded in an empty
13317           # executable.
13318           cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h.  */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h.  */
13324
13325 int
13326 main ()
13327 {
13328
13329   ;
13330   return 0;
13331 }
13332 _ACEOF
13333 rm -f conftest.$ac_objext conftest$ac_exeext
13334 if { (ac_try="$ac_link"
13335 case "(($ac_try" in
13336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337   *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340   (eval "$ac_link") 2>conftest.er1
13341   ac_status=$?
13342   grep -v '^ *+' conftest.er1 >conftest.err
13343   rm -f conftest.er1
13344   cat conftest.err >&5
13345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346   (exit $ac_status); } && {
13347          test -z "$ac_cxx_werror_flag" ||
13348          test ! -s conftest.err
13349        } && test -s conftest$ac_exeext &&
13350        $as_test_x conftest$ac_exeext; then
13351
13352 lt_aix_libpath_sed='
13353     /Import File Strings/,/^$/ {
13354         /^0/ {
13355             s/^0  *\(.*\)$/\1/
13356             p
13357         }
13358     }'
13359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13360 # Check for a 64-bit object if we didn't find anything.
13361 if test -z "$aix_libpath"; then
13362   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13363 fi
13364 else
13365   echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13367
13368
13369 fi
13370
13371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13372       conftest$ac_exeext conftest.$ac_ext
13373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13374
13375           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13376
13377           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"
13378         else
13379           if test "$host_cpu" = ia64; then
13380             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13381             allow_undefined_flag_CXX="-z nodefs"
13382             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"
13383           else
13384             # Determine the default libpath from the value encoded in an
13385             # empty executable.
13386             cat >conftest.$ac_ext <<_ACEOF
13387 /* confdefs.h.  */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h.  */
13392
13393 int
13394 main ()
13395 {
13396
13397   ;
13398   return 0;
13399 }
13400 _ACEOF
13401 rm -f conftest.$ac_objext conftest$ac_exeext
13402 if { (ac_try="$ac_link"
13403 case "(($ac_try" in
13404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405   *) ac_try_echo=$ac_try;;
13406 esac
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408   (eval "$ac_link") 2>conftest.er1
13409   ac_status=$?
13410   grep -v '^ *+' conftest.er1 >conftest.err
13411   rm -f conftest.er1
13412   cat conftest.err >&5
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); } && {
13415          test -z "$ac_cxx_werror_flag" ||
13416          test ! -s conftest.err
13417        } && test -s conftest$ac_exeext &&
13418        $as_test_x conftest$ac_exeext; then
13419
13420 lt_aix_libpath_sed='
13421     /Import File Strings/,/^$/ {
13422         /^0/ {
13423             s/^0  *\(.*\)$/\1/
13424             p
13425         }
13426     }'
13427 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13428 # Check for a 64-bit object if we didn't find anything.
13429 if test -z "$aix_libpath"; then
13430   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13431 fi
13432 else
13433   echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13435
13436
13437 fi
13438
13439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13440       conftest$ac_exeext conftest.$ac_ext
13441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13442
13443             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13444             # Warning - without using the other run time loading flags,
13445             # -berok will link without error, but may produce a broken library.
13446             no_undefined_flag_CXX=' ${wl}-bernotok'
13447             allow_undefined_flag_CXX=' ${wl}-berok'
13448             # Exported symbols can be pulled into shared objects from archives
13449             whole_archive_flag_spec_CXX='$convenience'
13450             archive_cmds_need_lc_CXX=yes
13451             # This is similar to how AIX traditionally builds its shared
13452             # libraries.
13453             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'
13454           fi
13455         fi
13456         ;;
13457
13458       beos*)
13459         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13460           allow_undefined_flag_CXX=unsupported
13461           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13462           # support --undefined.  This deserves some investigation.  FIXME
13463           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13464         else
13465           ld_shlibs_CXX=no
13466         fi
13467         ;;
13468
13469       chorus*)
13470         case $cc_basename in
13471           *)
13472           # FIXME: insert proper C++ library support
13473           ld_shlibs_CXX=no
13474           ;;
13475         esac
13476         ;;
13477
13478       cygwin* | mingw* | pw32* | cegcc*)
13479         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13480         # as there is no search path for DLLs.
13481         hardcode_libdir_flag_spec_CXX='-L$libdir'
13482         allow_undefined_flag_CXX=unsupported
13483         always_export_symbols_CXX=no
13484         enable_shared_with_static_runtimes_CXX=yes
13485
13486         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13487           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'
13488           # If the export-symbols file already is a .def file (1st line
13489           # is EXPORTS), use it as is; otherwise, prepend...
13490           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13491             cp $export_symbols $output_objdir/$soname.def;
13492           else
13493             echo EXPORTS > $output_objdir/$soname.def;
13494             cat $export_symbols >> $output_objdir/$soname.def;
13495           fi~
13496           $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'
13497         else
13498           ld_shlibs_CXX=no
13499         fi
13500         ;;
13501       darwin* | rhapsody*)
13502
13503
13504   archive_cmds_need_lc_CXX=no
13505   hardcode_direct_CXX=no
13506   hardcode_automatic_CXX=yes
13507   hardcode_shlibpath_var_CXX=unsupported
13508   whole_archive_flag_spec_CXX=''
13509   link_all_deplibs_CXX=yes
13510   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13511   case $cc_basename in
13512      ifort*) _lt_dar_can_shared=yes ;;
13513      *) _lt_dar_can_shared=$GCC ;;
13514   esac
13515   if test "$_lt_dar_can_shared" = "yes"; then
13516     output_verbose_link_cmd=echo
13517     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}"
13518     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13519     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}"
13520     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}"
13521        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13522       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}"
13523       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}"
13524     fi
13525
13526   else
13527   ld_shlibs_CXX=no
13528   fi
13529
13530         ;;
13531
13532       dgux*)
13533         case $cc_basename in
13534           ec++*)
13535             # FIXME: insert proper C++ library support
13536             ld_shlibs_CXX=no
13537             ;;
13538           ghcx*)
13539             # Green Hills C++ Compiler
13540             # FIXME: insert proper C++ library support
13541             ld_shlibs_CXX=no
13542             ;;
13543           *)
13544             # FIXME: insert proper C++ library support
13545             ld_shlibs_CXX=no
13546             ;;
13547         esac
13548         ;;
13549
13550       freebsd[12]*)
13551         # C++ shared libraries reported to be fairly broken before
13552         # switch to ELF
13553         ld_shlibs_CXX=no
13554         ;;
13555
13556       freebsd-elf*)
13557         archive_cmds_need_lc_CXX=no
13558         ;;
13559
13560       freebsd* | dragonfly*)
13561         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13562         # conventions
13563         ld_shlibs_CXX=yes
13564         ;;
13565
13566       gnu*)
13567         ;;
13568
13569       hpux9*)
13570         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13571         hardcode_libdir_separator_CXX=:
13572         export_dynamic_flag_spec_CXX='${wl}-E'
13573         hardcode_direct_CXX=yes
13574         hardcode_minus_L_CXX=yes # Not in the search PATH,
13575                                              # but as the default
13576                                              # location of the library.
13577
13578         case $cc_basename in
13579           CC*)
13580             # FIXME: insert proper C++ library support
13581             ld_shlibs_CXX=no
13582             ;;
13583           aCC*)
13584             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'
13585             # Commands to make compiler produce verbose output that lists
13586             # what "hidden" libraries, object files and flags are used when
13587             # linking a shared library.
13588             #
13589             # There doesn't appear to be a way to prevent this compiler from
13590             # explicitly linking system object files so we need to strip them
13591             # from the output so that they don't get included in the library
13592             # dependencies.
13593             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'
13594             ;;
13595           *)
13596             if test "$GXX" = yes; then
13597               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'
13598             else
13599               # FIXME: insert proper C++ library support
13600               ld_shlibs_CXX=no
13601             fi
13602             ;;
13603         esac
13604         ;;
13605
13606       hpux10*|hpux11*)
13607         if test $with_gnu_ld = no; then
13608           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13609           hardcode_libdir_separator_CXX=:
13610
13611           case $host_cpu in
13612             hppa*64*|ia64*)
13613               ;;
13614             *)
13615               export_dynamic_flag_spec_CXX='${wl}-E'
13616               ;;
13617           esac
13618         fi
13619         case $host_cpu in
13620           hppa*64*|ia64*)
13621             hardcode_direct_CXX=no
13622             hardcode_shlibpath_var_CXX=no
13623             ;;
13624           *)
13625             hardcode_direct_CXX=yes
13626             hardcode_direct_absolute_CXX=yes
13627             hardcode_minus_L_CXX=yes # Not in the search PATH,
13628                                                  # but as the default
13629                                                  # location of the library.
13630             ;;
13631         esac
13632
13633         case $cc_basename in
13634           CC*)
13635             # FIXME: insert proper C++ library support
13636             ld_shlibs_CXX=no
13637             ;;
13638           aCC*)
13639             case $host_cpu in
13640               hppa*64*)
13641                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13642                 ;;
13643               ia64*)
13644                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13645                 ;;
13646               *)
13647                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13648                 ;;
13649             esac
13650             # Commands to make compiler produce verbose output that lists
13651             # what "hidden" libraries, object files and flags are used when
13652             # linking a shared library.
13653             #
13654             # There doesn't appear to be a way to prevent this compiler from
13655             # explicitly linking system object files so we need to strip them
13656             # from the output so that they don't get included in the library
13657             # dependencies.
13658             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'
13659             ;;
13660           *)
13661             if test "$GXX" = yes; then
13662               if test $with_gnu_ld = no; then
13663                 case $host_cpu in
13664                   hppa*64*)
13665                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13666                     ;;
13667                   ia64*)
13668                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13669                     ;;
13670                   *)
13671                     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'
13672                     ;;
13673                 esac
13674               fi
13675             else
13676               # FIXME: insert proper C++ library support
13677               ld_shlibs_CXX=no
13678             fi
13679             ;;
13680         esac
13681         ;;
13682
13683       interix[3-9]*)
13684         hardcode_direct_CXX=no
13685         hardcode_shlibpath_var_CXX=no
13686         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13687         export_dynamic_flag_spec_CXX='${wl}-E'
13688         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13689         # Instead, shared libraries are loaded at an image base (0x10000000 by
13690         # default) and relocated if they conflict, which is a slow very memory
13691         # consuming and fragmenting process.  To avoid this, we pick a random,
13692         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13693         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13694         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'
13695         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'
13696         ;;
13697       irix5* | irix6*)
13698         case $cc_basename in
13699           CC*)
13700             # SGI C++
13701             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'
13702
13703             # Archives containing C++ object files must be created using
13704             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13705             # necessary to make sure instantiated templates are included
13706             # in the archive.
13707             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13708             ;;
13709           *)
13710             if test "$GXX" = yes; then
13711               if test "$with_gnu_ld" = no; then
13712                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13713               else
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` -o $lib'
13715               fi
13716             fi
13717             link_all_deplibs_CXX=yes
13718             ;;
13719         esac
13720         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13721         hardcode_libdir_separator_CXX=:
13722         inherit_rpath_CXX=yes
13723         ;;
13724
13725       linux* | k*bsd*-gnu)
13726         case $cc_basename in
13727           KCC*)
13728             # Kuck and Associates, Inc. (KAI) C++ Compiler
13729
13730             # KCC will only create a shared library if the output file
13731             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13732             # to its proper name (with version) after linking.
13733             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'
13734             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'
13735             # Commands to make compiler produce verbose output that lists
13736             # what "hidden" libraries, object files and flags are used when
13737             # linking a shared library.
13738             #
13739             # There doesn't appear to be a way to prevent this compiler from
13740             # explicitly linking system object files so we need to strip them
13741             # from the output so that they don't get included in the library
13742             # dependencies.
13743             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'
13744
13745             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13746             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13747
13748             # Archives containing C++ object files must be created using
13749             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13750             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13751             ;;
13752           icpc* | ecpc* )
13753             # Intel C++
13754             with_gnu_ld=yes
13755             # version 8.0 and above of icpc choke on multiply defined symbols
13756             # if we add $predep_objects and $postdep_objects, however 7.1 and
13757             # earlier do not add the objects themselves.
13758             case `$CC -V 2>&1` in
13759               *"Version 7."*)
13760                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13761                 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'
13762                 ;;
13763               *)  # Version 8.0 or newer
13764                 tmp_idyn=
13765                 case $host_cpu in
13766                   ia64*) tmp_idyn=' -i_dynamic';;
13767                 esac
13768                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13769                 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'
13770                 ;;
13771             esac
13772             archive_cmds_need_lc_CXX=no
13773             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13774             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13775             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13776             ;;
13777           pgCC* | pgcpp*)
13778             # Portland Group C++ compiler
13779             case `$CC -V` in
13780             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13781               prelink_cmds_CXX='tpldir=Template.dir~
13782                 rm -rf $tpldir~
13783                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13784                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13785               old_archive_cmds_CXX='tpldir=Template.dir~
13786                 rm -rf $tpldir~
13787                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13788                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13789                 $RANLIB $oldlib'
13790               archive_cmds_CXX='tpldir=Template.dir~
13791                 rm -rf $tpldir~
13792                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13793                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13794               archive_expsym_cmds_CXX='tpldir=Template.dir~
13795                 rm -rf $tpldir~
13796                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13797                 $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'
13798               ;;
13799             *) # Version 6 will use weak symbols
13800               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13801               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'
13802               ;;
13803             esac
13804
13805             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13806             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13807             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'
13808             ;;
13809           cxx*)
13810             # Compaq C++
13811             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13812             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'
13813
13814             runpath_var=LD_RUN_PATH
13815             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13816             hardcode_libdir_separator_CXX=:
13817
13818             # Commands to make compiler produce verbose output that lists
13819             # what "hidden" libraries, object files and flags are used when
13820             # linking a shared library.
13821             #
13822             # There doesn't appear to be a way to prevent this compiler from
13823             # explicitly linking system object files so we need to strip them
13824             # from the output so that they don't get included in the library
13825             # dependencies.
13826             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'
13827             ;;
13828           xl*)
13829             # IBM XL 8.0 on PPC, with GNU ld
13830             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13831             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13832             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13833             if test "x$supports_anon_versioning" = xyes; then
13834               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13835                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13836                 echo "local: *; };" >> $output_objdir/$libname.ver~
13837                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13838             fi
13839             ;;
13840           *)
13841             case `$CC -V 2>&1 | sed 5q` in
13842             *Sun\ C*)
13843               # Sun C++ 5.9
13844               no_undefined_flag_CXX=' -zdefs'
13845               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13846               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'
13847               hardcode_libdir_flag_spec_CXX='-R$libdir'
13848               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'
13849               compiler_needs_object_CXX=yes
13850
13851               # Not sure whether something based on
13852               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13853               # would be better.
13854               output_verbose_link_cmd='echo'
13855
13856               # Archives containing C++ object files must be created using
13857               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13858               # necessary to make sure instantiated templates are included
13859               # in the archive.
13860               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13861               ;;
13862             esac
13863             ;;
13864         esac
13865         ;;
13866
13867       lynxos*)
13868         # FIXME: insert proper C++ library support
13869         ld_shlibs_CXX=no
13870         ;;
13871
13872       m88k*)
13873         # FIXME: insert proper C++ library support
13874         ld_shlibs_CXX=no
13875         ;;
13876
13877       mvs*)
13878         case $cc_basename in
13879           cxx*)
13880             # FIXME: insert proper C++ library support
13881             ld_shlibs_CXX=no
13882             ;;
13883           *)
13884             # FIXME: insert proper C++ library support
13885             ld_shlibs_CXX=no
13886             ;;
13887         esac
13888         ;;
13889
13890       netbsd*)
13891         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13892           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13893           wlarc=
13894           hardcode_libdir_flag_spec_CXX='-R$libdir'
13895           hardcode_direct_CXX=yes
13896           hardcode_shlibpath_var_CXX=no
13897         fi
13898         # Workaround some broken pre-1.5 toolchains
13899         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13900         ;;
13901
13902       *nto* | *qnx*)
13903         ld_shlibs_CXX=yes
13904         ;;
13905
13906       openbsd2*)
13907         # C++ shared libraries are fairly broken
13908         ld_shlibs_CXX=no
13909         ;;
13910
13911       openbsd*)
13912         if test -f /usr/libexec/ld.so; then
13913           hardcode_direct_CXX=yes
13914           hardcode_shlibpath_var_CXX=no
13915           hardcode_direct_absolute_CXX=yes
13916           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13917           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13918           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13919             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13920             export_dynamic_flag_spec_CXX='${wl}-E'
13921             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13922           fi
13923           output_verbose_link_cmd=echo
13924         else
13925           ld_shlibs_CXX=no
13926         fi
13927         ;;
13928
13929       osf3* | osf4* | osf5*)
13930         case $cc_basename in
13931           KCC*)
13932             # Kuck and Associates, Inc. (KAI) C++ Compiler
13933
13934             # KCC will only create a shared library if the output file
13935             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13936             # to its proper name (with version) after linking.
13937             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'
13938
13939             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13940             hardcode_libdir_separator_CXX=:
13941
13942             # Archives containing C++ object files must be created using
13943             # the KAI C++ compiler.
13944             case $host in
13945               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13946               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13947             esac
13948             ;;
13949           RCC*)
13950             # Rational C++ 2.4.1
13951             # FIXME: insert proper C++ library support
13952             ld_shlibs_CXX=no
13953             ;;
13954           cxx*)
13955             case $host in
13956               osf3*)
13957                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13958                 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'
13959                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13960                 ;;
13961               *)
13962                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13963                 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'
13964                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13965                   echo "-hidden">> $lib.exp~
13966                   $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~
13967                   $RM $lib.exp'
13968                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13969                 ;;
13970             esac
13971
13972             hardcode_libdir_separator_CXX=:
13973
13974             # Commands to make compiler produce verbose output that lists
13975             # what "hidden" libraries, object files and flags are used when
13976             # linking a shared library.
13977             #
13978             # There doesn't appear to be a way to prevent this compiler from
13979             # explicitly linking system object files so we need to strip them
13980             # from the output so that they don't get included in the library
13981             # dependencies.
13982             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'
13983             ;;
13984           *)
13985             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13986               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13987               case $host in
13988                 osf3*)
13989                   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'
13990                   ;;
13991                 *)
13992                   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'
13993                   ;;
13994               esac
13995
13996               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13997               hardcode_libdir_separator_CXX=:
13998
13999               # Commands to make compiler produce verbose output that lists
14000               # what "hidden" libraries, object files and flags are used when
14001               # linking a shared library.
14002               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14003
14004             else
14005               # FIXME: insert proper C++ library support
14006               ld_shlibs_CXX=no
14007             fi
14008             ;;
14009         esac
14010         ;;
14011
14012       psos*)
14013         # FIXME: insert proper C++ library support
14014         ld_shlibs_CXX=no
14015         ;;
14016
14017       sunos4*)
14018         case $cc_basename in
14019           CC*)
14020             # Sun C++ 4.x
14021             # FIXME: insert proper C++ library support
14022             ld_shlibs_CXX=no
14023             ;;
14024           lcc*)
14025             # Lucid
14026             # FIXME: insert proper C++ library support
14027             ld_shlibs_CXX=no
14028             ;;
14029           *)
14030             # FIXME: insert proper C++ library support
14031             ld_shlibs_CXX=no
14032             ;;
14033         esac
14034         ;;
14035
14036       solaris*)
14037         case $cc_basename in
14038           CC*)
14039             # Sun C++ 4.2, 5.x and Centerline C++
14040             archive_cmds_need_lc_CXX=yes
14041             no_undefined_flag_CXX=' -zdefs'
14042             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14043             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14044               $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'
14045
14046             hardcode_libdir_flag_spec_CXX='-R$libdir'
14047             hardcode_shlibpath_var_CXX=no
14048             case $host_os in
14049               solaris2.[0-5] | solaris2.[0-5].*) ;;
14050               *)
14051                 # The compiler driver will combine and reorder linker options,
14052                 # but understands `-z linker_flag'.
14053                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14054                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14055                 ;;
14056             esac
14057             link_all_deplibs_CXX=yes
14058
14059             output_verbose_link_cmd='echo'
14060
14061             # Archives containing C++ object files must be created using
14062             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14063             # necessary to make sure instantiated templates are included
14064             # in the archive.
14065             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14066             ;;
14067           gcx*)
14068             # Green Hills C++ Compiler
14069             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14070
14071             # The C++ compiler must be used to create the archive.
14072             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14073             ;;
14074           *)
14075             # GNU C++ compiler with Solaris linker
14076             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14077               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14078               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14079                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14080                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14081                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14082
14083                 # Commands to make compiler produce verbose output that lists
14084                 # what "hidden" libraries, object files and flags are used when
14085                 # linking a shared library.
14086                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14087               else
14088                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14089                 # platform.
14090                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14091                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14092                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14093
14094                 # Commands to make compiler produce verbose output that lists
14095                 # what "hidden" libraries, object files and flags are used when
14096                 # linking a shared library.
14097                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14098               fi
14099
14100               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14101               case $host_os in
14102                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14103                 *)
14104                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14105                   ;;
14106               esac
14107             fi
14108             ;;
14109         esac
14110         ;;
14111
14112     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14113       no_undefined_flag_CXX='${wl}-z,text'
14114       archive_cmds_need_lc_CXX=no
14115       hardcode_shlibpath_var_CXX=no
14116       runpath_var='LD_RUN_PATH'
14117
14118       case $cc_basename in
14119         CC*)
14120           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14121           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14122           ;;
14123         *)
14124           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14125           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14126           ;;
14127       esac
14128       ;;
14129
14130       sysv5* | sco3.2v5* | sco5v6*)
14131         # Note: We can NOT use -z defs as we might desire, because we do not
14132         # link with -lc, and that would cause any symbols used from libc to
14133         # always be unresolved, which means just about no library would
14134         # ever link correctly.  If we're not using GNU ld we use -z text
14135         # though, which does catch some bad symbols but isn't as heavy-handed
14136         # as -z defs.
14137         no_undefined_flag_CXX='${wl}-z,text'
14138         allow_undefined_flag_CXX='${wl}-z,nodefs'
14139         archive_cmds_need_lc_CXX=no
14140         hardcode_shlibpath_var_CXX=no
14141         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14142         hardcode_libdir_separator_CXX=':'
14143         link_all_deplibs_CXX=yes
14144         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14145         runpath_var='LD_RUN_PATH'
14146
14147         case $cc_basename in
14148           CC*)
14149             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14150             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14151             ;;
14152           *)
14153             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14154             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14155             ;;
14156         esac
14157       ;;
14158
14159       tandem*)
14160         case $cc_basename in
14161           NCC*)
14162             # NonStop-UX NCC 3.20
14163             # FIXME: insert proper C++ library support
14164             ld_shlibs_CXX=no
14165             ;;
14166           *)
14167             # FIXME: insert proper C++ library support
14168             ld_shlibs_CXX=no
14169             ;;
14170         esac
14171         ;;
14172
14173       vxworks*)
14174         # FIXME: insert proper C++ library support
14175         ld_shlibs_CXX=no
14176         ;;
14177
14178       *)
14179         # FIXME: insert proper C++ library support
14180         ld_shlibs_CXX=no
14181         ;;
14182     esac
14183
14184     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14185 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14186     test "$ld_shlibs_CXX" = no && can_build_shared=no
14187
14188     GCC_CXX="$GXX"
14189     LD_CXX="$LD"
14190
14191     ## CAVEAT EMPTOR:
14192     ## There is no encapsulation within the following macros, do not change
14193     ## the running order or otherwise move them around unless you know exactly
14194     ## what you are doing...
14195     # Dependencies to place before and after the object being linked:
14196 predep_objects_CXX=
14197 postdep_objects_CXX=
14198 predeps_CXX=
14199 postdeps_CXX=
14200 compiler_lib_search_path_CXX=
14201
14202 cat > conftest.$ac_ext <<_LT_EOF
14203 class Foo
14204 {
14205 public:
14206   Foo (void) { a = 0; }
14207 private:
14208   int a;
14209 };
14210 _LT_EOF
14211
14212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213   (eval $ac_compile) 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); }; then
14217   # Parse the compiler output and extract the necessary
14218   # objects, libraries and library flags.
14219
14220   # Sentinel used to keep track of whether or not we are before
14221   # the conftest object file.
14222   pre_test_object_deps_done=no
14223
14224   for p in `eval "$output_verbose_link_cmd"`; do
14225     case $p in
14226
14227     -L* | -R* | -l*)
14228        # Some compilers place space between "-{L,R}" and the path.
14229        # Remove the space.
14230        if test $p = "-L" ||
14231           test $p = "-R"; then
14232          prev=$p
14233          continue
14234        else
14235          prev=
14236        fi
14237
14238        if test "$pre_test_object_deps_done" = no; then
14239          case $p in
14240          -L* | -R*)
14241            # Internal compiler library paths should come after those
14242            # provided the user.  The postdeps already come after the
14243            # user supplied libs so there is no need to process them.
14244            if test -z "$compiler_lib_search_path_CXX"; then
14245              compiler_lib_search_path_CXX="${prev}${p}"
14246            else
14247              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14248            fi
14249            ;;
14250          # The "-l" case would never come before the object being
14251          # linked, so don't bother handling this case.
14252          esac
14253        else
14254          if test -z "$postdeps_CXX"; then
14255            postdeps_CXX="${prev}${p}"
14256          else
14257            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14258          fi
14259        fi
14260        ;;
14261
14262     *.$objext)
14263        # This assumes that the test object file only shows up
14264        # once in the compiler output.
14265        if test "$p" = "conftest.$objext"; then
14266          pre_test_object_deps_done=yes
14267          continue
14268        fi
14269
14270        if test "$pre_test_object_deps_done" = no; then
14271          if test -z "$predep_objects_CXX"; then
14272            predep_objects_CXX="$p"
14273          else
14274            predep_objects_CXX="$predep_objects_CXX $p"
14275          fi
14276        else
14277          if test -z "$postdep_objects_CXX"; then
14278            postdep_objects_CXX="$p"
14279          else
14280            postdep_objects_CXX="$postdep_objects_CXX $p"
14281          fi
14282        fi
14283        ;;
14284
14285     *) ;; # Ignore the rest.
14286
14287     esac
14288   done
14289
14290   # Clean up.
14291   rm -f a.out a.exe
14292 else
14293   echo "libtool.m4: error: problem compiling CXX test program"
14294 fi
14295
14296 $RM -f confest.$objext
14297
14298 # PORTME: override above test on systems where it is broken
14299 case $host_os in
14300 interix[3-9]*)
14301   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14302   # hack all around it, let's just trust "g++" to DTRT.
14303   predep_objects_CXX=
14304   postdep_objects_CXX=
14305   postdeps_CXX=
14306   ;;
14307
14308 linux*)
14309   case `$CC -V 2>&1 | sed 5q` in
14310   *Sun\ C*)
14311     # Sun C++ 5.9
14312
14313     # The more standards-conforming stlport4 library is
14314     # incompatible with the Cstd library. Avoid specifying
14315     # it if it's in CXXFLAGS. Ignore libCrun as
14316     # -library=stlport4 depends on it.
14317     case " $CXX $CXXFLAGS " in
14318     *" -library=stlport4 "*)
14319       solaris_use_stlport4=yes
14320       ;;
14321     esac
14322
14323     if test "$solaris_use_stlport4" != yes; then
14324       postdeps_CXX='-library=Cstd -library=Crun'
14325     fi
14326     ;;
14327   esac
14328   ;;
14329
14330 solaris*)
14331   case $cc_basename in
14332   CC*)
14333     # The more standards-conforming stlport4 library is
14334     # incompatible with the Cstd library. Avoid specifying
14335     # it if it's in CXXFLAGS. Ignore libCrun as
14336     # -library=stlport4 depends on it.
14337     case " $CXX $CXXFLAGS " in
14338     *" -library=stlport4 "*)
14339       solaris_use_stlport4=yes
14340       ;;
14341     esac
14342
14343     # Adding this requires a known-good setup of shared libraries for
14344     # Sun compiler versions before 5.6, else PIC objects from an old
14345     # archive will be linked into the output, leading to subtle bugs.
14346     if test "$solaris_use_stlport4" != yes; then
14347       postdeps_CXX='-library=Cstd -library=Crun'
14348     fi
14349     ;;
14350   esac
14351   ;;
14352 esac
14353
14354
14355 case " $postdeps_CXX " in
14356 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14357 esac
14358  compiler_lib_search_dirs_CXX=
14359 if test -n "${compiler_lib_search_path_CXX}"; then
14360  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14361 fi
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393     lt_prog_compiler_wl_CXX=
14394 lt_prog_compiler_pic_CXX=
14395 lt_prog_compiler_static_CXX=
14396
14397 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14399
14400   # C++ specific cases for pic, static, wl, etc.
14401   if test "$GXX" = yes; then
14402     lt_prog_compiler_wl_CXX='-Wl,'
14403     lt_prog_compiler_static_CXX='-static'
14404
14405     case $host_os in
14406     aix*)
14407       # All AIX code is PIC.
14408       if test "$host_cpu" = ia64; then
14409         # AIX 5 now supports IA64 processor
14410         lt_prog_compiler_static_CXX='-Bstatic'
14411       fi
14412       ;;
14413
14414     amigaos*)
14415       case $host_cpu in
14416       powerpc)
14417             # see comment about AmigaOS4 .so support
14418             lt_prog_compiler_pic_CXX='-fPIC'
14419         ;;
14420       m68k)
14421             # FIXME: we need at least 68020 code to build shared libraries, but
14422             # adding the `-m68020' flag to GCC prevents building anything better,
14423             # like `-m68040'.
14424             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14425         ;;
14426       esac
14427       ;;
14428
14429     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14430       # PIC is the default for these OSes.
14431       ;;
14432     mingw* | cygwin* | os2* | pw32* | cegcc*)
14433       # This hack is so that the source file can tell whether it is being
14434       # built for inclusion in a dll (and should export symbols for example).
14435       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14436       # (--disable-auto-import) libraries
14437       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14438       ;;
14439     darwin* | rhapsody*)
14440       # PIC is the default on this platform
14441       # Common symbols not allowed in MH_DYLIB files
14442       lt_prog_compiler_pic_CXX='-fno-common'
14443       ;;
14444     *djgpp*)
14445       # DJGPP does not support shared libraries at all
14446       lt_prog_compiler_pic_CXX=
14447       ;;
14448     interix[3-9]*)
14449       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14450       # Instead, we relocate shared libraries at runtime.
14451       ;;
14452     sysv4*MP*)
14453       if test -d /usr/nec; then
14454         lt_prog_compiler_pic_CXX=-Kconform_pic
14455       fi
14456       ;;
14457     hpux*)
14458       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14459       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14460       # sets the default TLS model and affects inlining.
14461       case $host_cpu in
14462       hppa*64*)
14463         ;;
14464       *)
14465         lt_prog_compiler_pic_CXX='-fPIC'
14466         ;;
14467       esac
14468       ;;
14469     *qnx* | *nto*)
14470       # QNX uses GNU C++, but need to define -shared option too, otherwise
14471       # it will coredump.
14472       lt_prog_compiler_pic_CXX='-fPIC -shared'
14473       ;;
14474     *)
14475       lt_prog_compiler_pic_CXX='-fPIC'
14476       ;;
14477     esac
14478   else
14479     case $host_os in
14480       aix[4-9]*)
14481         # All AIX code is PIC.
14482         if test "$host_cpu" = ia64; then
14483           # AIX 5 now supports IA64 processor
14484           lt_prog_compiler_static_CXX='-Bstatic'
14485         else
14486           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14487         fi
14488         ;;
14489       chorus*)
14490         case $cc_basename in
14491         cxch68*)
14492           # Green Hills C++ Compiler
14493           # _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"
14494           ;;
14495         esac
14496         ;;
14497       dgux*)
14498         case $cc_basename in
14499           ec++*)
14500             lt_prog_compiler_pic_CXX='-KPIC'
14501             ;;
14502           ghcx*)
14503             # Green Hills C++ Compiler
14504             lt_prog_compiler_pic_CXX='-pic'
14505             ;;
14506           *)
14507             ;;
14508         esac
14509         ;;
14510       freebsd* | dragonfly*)
14511         # FreeBSD uses GNU C++
14512         ;;
14513       hpux9* | hpux10* | hpux11*)
14514         case $cc_basename in
14515           CC*)
14516             lt_prog_compiler_wl_CXX='-Wl,'
14517             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14518             if test "$host_cpu" != ia64; then
14519               lt_prog_compiler_pic_CXX='+Z'
14520             fi
14521             ;;
14522           aCC*)
14523             lt_prog_compiler_wl_CXX='-Wl,'
14524             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14525             case $host_cpu in
14526             hppa*64*|ia64*)
14527               # +Z the default
14528               ;;
14529             *)
14530               lt_prog_compiler_pic_CXX='+Z'
14531               ;;
14532             esac
14533             ;;
14534           *)
14535             ;;
14536         esac
14537         ;;
14538       interix*)
14539         # This is c89, which is MS Visual C++ (no shared libs)
14540         # Anyone wants to do a port?
14541         ;;
14542       irix5* | irix6* | nonstopux*)
14543         case $cc_basename in
14544           CC*)
14545             lt_prog_compiler_wl_CXX='-Wl,'
14546             lt_prog_compiler_static_CXX='-non_shared'
14547             # CC pic flag -KPIC is the default.
14548             ;;
14549           *)
14550             ;;
14551         esac
14552         ;;
14553       linux* | k*bsd*-gnu)
14554         case $cc_basename in
14555           KCC*)
14556             # KAI C++ Compiler
14557             lt_prog_compiler_wl_CXX='--backend -Wl,'
14558             lt_prog_compiler_pic_CXX='-fPIC'
14559             ;;
14560           ecpc* )
14561             # old Intel C++ for x86_64 which still supported -KPIC.
14562             lt_prog_compiler_wl_CXX='-Wl,'
14563             lt_prog_compiler_pic_CXX='-KPIC'
14564             lt_prog_compiler_static_CXX='-static'
14565             ;;
14566           icpc* )
14567             # Intel C++, used to be incompatible with GCC.
14568             # ICC 10 doesn't accept -KPIC any more.
14569             lt_prog_compiler_wl_CXX='-Wl,'
14570             lt_prog_compiler_pic_CXX='-fPIC'
14571             lt_prog_compiler_static_CXX='-static'
14572             ;;
14573           pgCC* | pgcpp*)
14574             # Portland Group C++ compiler
14575             lt_prog_compiler_wl_CXX='-Wl,'
14576             lt_prog_compiler_pic_CXX='-fpic'
14577             lt_prog_compiler_static_CXX='-Bstatic'
14578             ;;
14579           cxx*)
14580             # Compaq C++
14581             # Make sure the PIC flag is empty.  It appears that all Alpha
14582             # Linux and Compaq Tru64 Unix objects are PIC.
14583             lt_prog_compiler_pic_CXX=
14584             lt_prog_compiler_static_CXX='-non_shared'
14585             ;;
14586           xlc* | xlC*)
14587             # IBM XL 8.0 on PPC
14588             lt_prog_compiler_wl_CXX='-Wl,'
14589             lt_prog_compiler_pic_CXX='-qpic'
14590             lt_prog_compiler_static_CXX='-qstaticlink'
14591             ;;
14592           *)
14593             case `$CC -V 2>&1 | sed 5q` in
14594             *Sun\ C*)
14595               # Sun C++ 5.9
14596               lt_prog_compiler_pic_CXX='-KPIC'
14597               lt_prog_compiler_static_CXX='-Bstatic'
14598               lt_prog_compiler_wl_CXX='-Qoption ld '
14599               ;;
14600             esac
14601             ;;
14602         esac
14603         ;;
14604       lynxos*)
14605         ;;
14606       m88k*)
14607         ;;
14608       mvs*)
14609         case $cc_basename in
14610           cxx*)
14611             lt_prog_compiler_pic_CXX='-W c,exportall'
14612             ;;
14613           *)
14614             ;;
14615         esac
14616         ;;
14617       netbsd*)
14618         ;;
14619       *qnx* | *nto*)
14620         # QNX uses GNU C++, but need to define -shared option too, otherwise
14621         # it will coredump.
14622         lt_prog_compiler_pic_CXX='-fPIC -shared'
14623         ;;
14624       osf3* | osf4* | osf5*)
14625         case $cc_basename in
14626           KCC*)
14627             lt_prog_compiler_wl_CXX='--backend -Wl,'
14628             ;;
14629           RCC*)
14630             # Rational C++ 2.4.1
14631             lt_prog_compiler_pic_CXX='-pic'
14632             ;;
14633           cxx*)
14634             # Digital/Compaq C++
14635             lt_prog_compiler_wl_CXX='-Wl,'
14636             # Make sure the PIC flag is empty.  It appears that all Alpha
14637             # Linux and Compaq Tru64 Unix objects are PIC.
14638             lt_prog_compiler_pic_CXX=
14639             lt_prog_compiler_static_CXX='-non_shared'
14640             ;;
14641           *)
14642             ;;
14643         esac
14644         ;;
14645       psos*)
14646         ;;
14647       solaris*)
14648         case $cc_basename in
14649           CC*)
14650             # Sun C++ 4.2, 5.x and Centerline C++
14651             lt_prog_compiler_pic_CXX='-KPIC'
14652             lt_prog_compiler_static_CXX='-Bstatic'
14653             lt_prog_compiler_wl_CXX='-Qoption ld '
14654             ;;
14655           gcx*)
14656             # Green Hills C++ Compiler
14657             lt_prog_compiler_pic_CXX='-PIC'
14658             ;;
14659           *)
14660             ;;
14661         esac
14662         ;;
14663       sunos4*)
14664         case $cc_basename in
14665           CC*)
14666             # Sun C++ 4.x
14667             lt_prog_compiler_pic_CXX='-pic'
14668             lt_prog_compiler_static_CXX='-Bstatic'
14669             ;;
14670           lcc*)
14671             # Lucid
14672             lt_prog_compiler_pic_CXX='-pic'
14673             ;;
14674           *)
14675             ;;
14676         esac
14677         ;;
14678       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14679         case $cc_basename in
14680           CC*)
14681             lt_prog_compiler_wl_CXX='-Wl,'
14682             lt_prog_compiler_pic_CXX='-KPIC'
14683             lt_prog_compiler_static_CXX='-Bstatic'
14684             ;;
14685         esac
14686         ;;
14687       tandem*)
14688         case $cc_basename in
14689           NCC*)
14690             # NonStop-UX NCC 3.20
14691             lt_prog_compiler_pic_CXX='-KPIC'
14692             ;;
14693           *)
14694             ;;
14695         esac
14696         ;;
14697       vxworks*)
14698         ;;
14699       *)
14700         lt_prog_compiler_can_build_shared_CXX=no
14701         ;;
14702     esac
14703   fi
14704
14705 case $host_os in
14706   # For platforms which do not support PIC, -DPIC is meaningless:
14707   *djgpp*)
14708     lt_prog_compiler_pic_CXX=
14709     ;;
14710   *)
14711     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14712     ;;
14713 esac
14714 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14715 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14716
14717
14718
14719 #
14720 # Check to make sure the PIC flag actually works.
14721 #
14722 if test -n "$lt_prog_compiler_pic_CXX"; then
14723   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14724 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14725 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14726   echo $ECHO_N "(cached) $ECHO_C" >&6
14727 else
14728   lt_cv_prog_compiler_pic_works_CXX=no
14729    ac_outfile=conftest.$ac_objext
14730    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14731    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14732    # Insert the option either (1) after the last *FLAGS variable, or
14733    # (2) before a word containing "conftest.", or (3) at the end.
14734    # Note that $ac_compile itself does not contain backslashes and begins
14735    # with a dollar sign (not a hyphen), so the echo should work correctly.
14736    # The option is referenced via a variable to avoid confusing sed.
14737    lt_compile=`echo "$ac_compile" | $SED \
14738    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14739    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14740    -e 's:$: $lt_compiler_flag:'`
14741    (eval echo "\"\$as_me:14741: $lt_compile\"" >&5)
14742    (eval "$lt_compile" 2>conftest.err)
14743    ac_status=$?
14744    cat conftest.err >&5
14745    echo "$as_me:14745: \$? = $ac_status" >&5
14746    if (exit $ac_status) && test -s "$ac_outfile"; then
14747      # The compiler can only warn and ignore the option if not recognized
14748      # So say no if there are warnings other than the usual output.
14749      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14750      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14751      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14752        lt_cv_prog_compiler_pic_works_CXX=yes
14753      fi
14754    fi
14755    $RM conftest*
14756
14757 fi
14758 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14759 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14760
14761 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14762     case $lt_prog_compiler_pic_CXX in
14763      "" | " "*) ;;
14764      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14765      esac
14766 else
14767     lt_prog_compiler_pic_CXX=
14768      lt_prog_compiler_can_build_shared_CXX=no
14769 fi
14770
14771 fi
14772
14773
14774
14775 #
14776 # Check to make sure the static flag actually works.
14777 #
14778 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14779 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14780 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14781 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14782   echo $ECHO_N "(cached) $ECHO_C" >&6
14783 else
14784   lt_cv_prog_compiler_static_works_CXX=no
14785    save_LDFLAGS="$LDFLAGS"
14786    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14787    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14788    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14789      # The linker can only warn and ignore the option if not recognized
14790      # So say no if there are warnings
14791      if test -s conftest.err; then
14792        # Append any errors to the config.log.
14793        cat conftest.err 1>&5
14794        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14795        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14796        if diff conftest.exp conftest.er2 >/dev/null; then
14797          lt_cv_prog_compiler_static_works_CXX=yes
14798        fi
14799      else
14800        lt_cv_prog_compiler_static_works_CXX=yes
14801      fi
14802    fi
14803    $RM -r conftest*
14804    LDFLAGS="$save_LDFLAGS"
14805
14806 fi
14807 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14808 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14809
14810 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14811     :
14812 else
14813     lt_prog_compiler_static_CXX=
14814 fi
14815
14816
14817
14818
14819     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14820 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14821 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14822   echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824   lt_cv_prog_compiler_c_o_CXX=no
14825    $RM -r conftest 2>/dev/null
14826    mkdir conftest
14827    cd conftest
14828    mkdir out
14829    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14830
14831    lt_compiler_flag="-o out/conftest2.$ac_objext"
14832    # Insert the option either (1) after the last *FLAGS variable, or
14833    # (2) before a word containing "conftest.", or (3) at the end.
14834    # Note that $ac_compile itself does not contain backslashes and begins
14835    # with a dollar sign (not a hyphen), so the echo should work correctly.
14836    lt_compile=`echo "$ac_compile" | $SED \
14837    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14838    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14839    -e 's:$: $lt_compiler_flag:'`
14840    (eval echo "\"\$as_me:14840: $lt_compile\"" >&5)
14841    (eval "$lt_compile" 2>out/conftest.err)
14842    ac_status=$?
14843    cat out/conftest.err >&5
14844    echo "$as_me:14844: \$? = $ac_status" >&5
14845    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14846    then
14847      # The compiler can only warn and ignore the option if not recognized
14848      # So say no if there are warnings
14849      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14850      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14851      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14852        lt_cv_prog_compiler_c_o_CXX=yes
14853      fi
14854    fi
14855    chmod u+w . 2>&5
14856    $RM conftest*
14857    # SGI C++ compiler will create directory out/ii_files/ for
14858    # template instantiation
14859    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14860    $RM out/* && rmdir out
14861    cd ..
14862    $RM -r conftest
14863    $RM conftest*
14864
14865 fi
14866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14867 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14868
14869
14870
14871     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14872 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14873 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14874   echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876   lt_cv_prog_compiler_c_o_CXX=no
14877    $RM -r conftest 2>/dev/null
14878    mkdir conftest
14879    cd conftest
14880    mkdir out
14881    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14882
14883    lt_compiler_flag="-o out/conftest2.$ac_objext"
14884    # Insert the option either (1) after the last *FLAGS variable, or
14885    # (2) before a word containing "conftest.", or (3) at the end.
14886    # Note that $ac_compile itself does not contain backslashes and begins
14887    # with a dollar sign (not a hyphen), so the echo should work correctly.
14888    lt_compile=`echo "$ac_compile" | $SED \
14889    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14890    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14891    -e 's:$: $lt_compiler_flag:'`
14892    (eval echo "\"\$as_me:14892: $lt_compile\"" >&5)
14893    (eval "$lt_compile" 2>out/conftest.err)
14894    ac_status=$?
14895    cat out/conftest.err >&5
14896    echo "$as_me:14896: \$? = $ac_status" >&5
14897    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14898    then
14899      # The compiler can only warn and ignore the option if not recognized
14900      # So say no if there are warnings
14901      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14902      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14903      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14904        lt_cv_prog_compiler_c_o_CXX=yes
14905      fi
14906    fi
14907    chmod u+w . 2>&5
14908    $RM conftest*
14909    # SGI C++ compiler will create directory out/ii_files/ for
14910    # template instantiation
14911    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14912    $RM out/* && rmdir out
14913    cd ..
14914    $RM -r conftest
14915    $RM conftest*
14916
14917 fi
14918 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14919 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14920
14921
14922
14923
14924 hard_links="nottested"
14925 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14926   # do not overwrite the value of need_locks provided by the user
14927   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14928 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14929   hard_links=yes
14930   $RM conftest*
14931   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14932   touch conftest.a
14933   ln conftest.a conftest.b 2>&5 || hard_links=no
14934   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14935   { echo "$as_me:$LINENO: result: $hard_links" >&5
14936 echo "${ECHO_T}$hard_links" >&6; }
14937   if test "$hard_links" = no; then
14938     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14939 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14940     need_locks=warn
14941   fi
14942 else
14943   need_locks=no
14944 fi
14945
14946
14947
14948     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14949 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14950
14951   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14952   case $host_os in
14953   aix[4-9]*)
14954     # If we're using GNU nm, then we don't want the "-C" option.
14955     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14956     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14957       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'
14958     else
14959       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'
14960     fi
14961     ;;
14962   pw32*)
14963     export_symbols_cmds_CXX="$ltdll_cmds"
14964   ;;
14965   cygwin* | mingw* | cegcc*)
14966     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'
14967   ;;
14968   *)
14969     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14970   ;;
14971   esac
14972   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14973
14974 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14975 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14976 test "$ld_shlibs_CXX" = no && can_build_shared=no
14977
14978 with_gnu_ld_CXX=$with_gnu_ld
14979
14980
14981
14982
14983
14984
14985 #
14986 # Do we need to explicitly link libc?
14987 #
14988 case "x$archive_cmds_need_lc_CXX" in
14989 x|xyes)
14990   # Assume -lc should be added
14991   archive_cmds_need_lc_CXX=yes
14992
14993   if test "$enable_shared" = yes && test "$GCC" = yes; then
14994     case $archive_cmds_CXX in
14995     *'~'*)
14996       # FIXME: we may have to deal with multi-command sequences.
14997       ;;
14998     '$CC '*)
14999       # Test whether the compiler implicitly links with -lc since on some
15000       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15001       # to ld, don't add -lc before -lgcc.
15002       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15003 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15004       $RM conftest*
15005       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15006
15007       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15008   (eval $ac_compile) 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); } 2>conftest.err; then
15012         soname=conftest
15013         lib=conftest
15014         libobjs=conftest.$ac_objext
15015         deplibs=
15016         wl=$lt_prog_compiler_wl_CXX
15017         pic_flag=$lt_prog_compiler_pic_CXX
15018         compiler_flags=-v
15019         linker_flags=-v
15020         verstring=
15021         output_objdir=.
15022         libname=conftest
15023         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15024         allow_undefined_flag_CXX=
15025         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15026   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15027   ac_status=$?
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); }
15030         then
15031           archive_cmds_need_lc_CXX=no
15032         else
15033           archive_cmds_need_lc_CXX=yes
15034         fi
15035         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15036       else
15037         cat conftest.err 1>&5
15038       fi
15039       $RM conftest*
15040       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15041 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15042       ;;
15043     esac
15044   fi
15045   ;;
15046 esac
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15112 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15113
15114 library_names_spec=
15115 libname_spec='lib$name'
15116 soname_spec=
15117 shrext_cmds=".so"
15118 postinstall_cmds=
15119 postuninstall_cmds=
15120 finish_cmds=
15121 finish_eval=
15122 shlibpath_var=
15123 shlibpath_overrides_runpath=unknown
15124 version_type=none
15125 dynamic_linker="$host_os ld.so"
15126 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15127 need_lib_prefix=unknown
15128 hardcode_into_libs=no
15129
15130 # when you set need_version to no, make sure it does not cause -set_version
15131 # flags to be left without arguments
15132 need_version=unknown
15133
15134 case $host_os in
15135 aix3*)
15136   version_type=linux
15137   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15138   shlibpath_var=LIBPATH
15139
15140   # AIX 3 has no versioning support, so we append a major version to the name.
15141   soname_spec='${libname}${release}${shared_ext}$major'
15142   ;;
15143
15144 aix[4-9]*)
15145   version_type=linux
15146   need_lib_prefix=no
15147   need_version=no
15148   hardcode_into_libs=yes
15149   if test "$host_cpu" = ia64; then
15150     # AIX 5 supports IA64
15151     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15152     shlibpath_var=LD_LIBRARY_PATH
15153   else
15154     # With GCC up to 2.95.x, collect2 would create an import file
15155     # for dependence libraries.  The import file would start with
15156     # the line `#! .'.  This would cause the generated library to
15157     # depend on `.', always an invalid library.  This was fixed in
15158     # development snapshots of GCC prior to 3.0.
15159     case $host_os in
15160       aix4 | aix4.[01] | aix4.[01].*)
15161       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15162            echo ' yes '
15163            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15164         :
15165       else
15166         can_build_shared=no
15167       fi
15168       ;;
15169     esac
15170     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15171     # soname into executable. Probably we can add versioning support to
15172     # collect2, so additional links can be useful in future.
15173     if test "$aix_use_runtimelinking" = yes; then
15174       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15175       # instead of lib<name>.a to let people know that these are not
15176       # typical AIX shared libraries.
15177       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178     else
15179       # We preserve .a as extension for shared libraries through AIX4.2
15180       # and later when we are not doing run time linking.
15181       library_names_spec='${libname}${release}.a $libname.a'
15182       soname_spec='${libname}${release}${shared_ext}$major'
15183     fi
15184     shlibpath_var=LIBPATH
15185   fi
15186   ;;
15187
15188 amigaos*)
15189   case $host_cpu in
15190   powerpc)
15191     # Since July 2007 AmigaOS4 officially supports .so libraries.
15192     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194     ;;
15195   m68k)
15196     library_names_spec='$libname.ixlibrary $libname.a'
15197     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15198     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'
15199     ;;
15200   esac
15201   ;;
15202
15203 beos*)
15204   library_names_spec='${libname}${shared_ext}'
15205   dynamic_linker="$host_os ld.so"
15206   shlibpath_var=LIBRARY_PATH
15207   ;;
15208
15209 bsdi[45]*)
15210   version_type=linux
15211   need_version=no
15212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213   soname_spec='${libname}${release}${shared_ext}$major'
15214   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15215   shlibpath_var=LD_LIBRARY_PATH
15216   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15217   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15218   # the default ld.so.conf also contains /usr/contrib/lib and
15219   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15220   # libtool to hard-code these into programs
15221   ;;
15222
15223 cygwin* | mingw* | pw32* | cegcc*)
15224   version_type=windows
15225   shrext_cmds=".dll"
15226   need_version=no
15227   need_lib_prefix=no
15228
15229   case $GCC,$host_os in
15230   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15231     library_names_spec='$libname.dll.a'
15232     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15233     postinstall_cmds='base_file=`basename \${file}`~
15234       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15235       dldir=$destdir/`dirname \$dlpath`~
15236       test -d \$dldir || mkdir -p \$dldir~
15237       $install_prog $dir/$dlname \$dldir/$dlname~
15238       chmod a+x \$dldir/$dlname~
15239       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15240         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15241       fi'
15242     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15243       dlpath=$dir/\$dldll~
15244        $RM \$dlpath'
15245     shlibpath_overrides_runpath=yes
15246
15247     case $host_os in
15248     cygwin*)
15249       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15250       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15251       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15252       ;;
15253     mingw* | cegcc*)
15254       # MinGW DLLs use traditional 'lib' prefix
15255       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15256       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15257       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15258         # It is most probably a Windows format PATH printed by
15259         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15260         # path with ; separators, and with drive letters. We can handle the
15261         # drive letters (cygwin fileutils understands them), so leave them,
15262         # especially as we might pass files found there to a mingw objdump,
15263         # which wouldn't understand a cygwinified path. Ahh.
15264         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15265       else
15266         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15267       fi
15268       ;;
15269     pw32*)
15270       # pw32 DLLs use 'pw' prefix rather than 'lib'
15271       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15272       ;;
15273     esac
15274     ;;
15275
15276   *)
15277     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15278     ;;
15279   esac
15280   dynamic_linker='Win32 ld.exe'
15281   # FIXME: first we should search . and the directory the executable is in
15282   shlibpath_var=PATH
15283   ;;
15284
15285 darwin* | rhapsody*)
15286   dynamic_linker="$host_os dyld"
15287   version_type=darwin
15288   need_lib_prefix=no
15289   need_version=no
15290   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15291   soname_spec='${libname}${release}${major}$shared_ext'
15292   shlibpath_overrides_runpath=yes
15293   shlibpath_var=DYLD_LIBRARY_PATH
15294   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15295
15296   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15297   ;;
15298
15299 dgux*)
15300   version_type=linux
15301   need_lib_prefix=no
15302   need_version=no
15303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15304   soname_spec='${libname}${release}${shared_ext}$major'
15305   shlibpath_var=LD_LIBRARY_PATH
15306   ;;
15307
15308 freebsd1*)
15309   dynamic_linker=no
15310   ;;
15311
15312 freebsd* | dragonfly*)
15313   # DragonFly does not have aout.  When/if they implement a new
15314   # versioning mechanism, adjust this.
15315   if test -x /usr/bin/objformat; then
15316     objformat=`/usr/bin/objformat`
15317   else
15318     case $host_os in
15319     freebsd[123]*) objformat=aout ;;
15320     *) objformat=elf ;;
15321     esac
15322   fi
15323   version_type=freebsd-$objformat
15324   case $version_type in
15325     freebsd-elf*)
15326       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15327       need_version=no
15328       need_lib_prefix=no
15329       ;;
15330     freebsd-*)
15331       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15332       need_version=yes
15333       ;;
15334   esac
15335   shlibpath_var=LD_LIBRARY_PATH
15336   case $host_os in
15337   freebsd2*)
15338     shlibpath_overrides_runpath=yes
15339     ;;
15340   freebsd3.[01]* | freebsdelf3.[01]*)
15341     shlibpath_overrides_runpath=yes
15342     hardcode_into_libs=yes
15343     ;;
15344   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15345   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15346     shlibpath_overrides_runpath=no
15347     hardcode_into_libs=yes
15348     ;;
15349   *) # from 4.6 on, and DragonFly
15350     shlibpath_overrides_runpath=yes
15351     hardcode_into_libs=yes
15352     ;;
15353   esac
15354   ;;
15355
15356 gnu*)
15357   version_type=linux
15358   need_lib_prefix=no
15359   need_version=no
15360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15361   soname_spec='${libname}${release}${shared_ext}$major'
15362   shlibpath_var=LD_LIBRARY_PATH
15363   hardcode_into_libs=yes
15364   ;;
15365
15366 hpux9* | hpux10* | hpux11*)
15367   # Give a soname corresponding to the major version so that dld.sl refuses to
15368   # link against other versions.
15369   version_type=sunos
15370   need_lib_prefix=no
15371   need_version=no
15372   case $host_cpu in
15373   ia64*)
15374     shrext_cmds='.so'
15375     hardcode_into_libs=yes
15376     dynamic_linker="$host_os dld.so"
15377     shlibpath_var=LD_LIBRARY_PATH
15378     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15379     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380     soname_spec='${libname}${release}${shared_ext}$major'
15381     if test "X$HPUX_IA64_MODE" = X32; then
15382       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15383     else
15384       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15385     fi
15386     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15387     ;;
15388   hppa*64*)
15389     shrext_cmds='.sl'
15390     hardcode_into_libs=yes
15391     dynamic_linker="$host_os dld.sl"
15392     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15393     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15394     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395     soname_spec='${libname}${release}${shared_ext}$major'
15396     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15397     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15398     ;;
15399   *)
15400     shrext_cmds='.sl'
15401     dynamic_linker="$host_os dld.sl"
15402     shlibpath_var=SHLIB_PATH
15403     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15404     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405     soname_spec='${libname}${release}${shared_ext}$major'
15406     ;;
15407   esac
15408   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15409   postinstall_cmds='chmod 555 $lib'
15410   ;;
15411
15412 interix[3-9]*)
15413   version_type=linux
15414   need_lib_prefix=no
15415   need_version=no
15416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15417   soname_spec='${libname}${release}${shared_ext}$major'
15418   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15419   shlibpath_var=LD_LIBRARY_PATH
15420   shlibpath_overrides_runpath=no
15421   hardcode_into_libs=yes
15422   ;;
15423
15424 irix5* | irix6* | nonstopux*)
15425   case $host_os in
15426     nonstopux*) version_type=nonstopux ;;
15427     *)
15428         if test "$lt_cv_prog_gnu_ld" = yes; then
15429                 version_type=linux
15430         else
15431                 version_type=irix
15432         fi ;;
15433   esac
15434   need_lib_prefix=no
15435   need_version=no
15436   soname_spec='${libname}${release}${shared_ext}$major'
15437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15438   case $host_os in
15439   irix5* | nonstopux*)
15440     libsuff= shlibsuff=
15441     ;;
15442   *)
15443     case $LD in # libtool.m4 will add one of these switches to LD
15444     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15445       libsuff= shlibsuff= libmagic=32-bit;;
15446     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15447       libsuff=32 shlibsuff=N32 libmagic=N32;;
15448     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15449       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15450     *) libsuff= shlibsuff= libmagic=never-match;;
15451     esac
15452     ;;
15453   esac
15454   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15455   shlibpath_overrides_runpath=no
15456   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15457   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15458   hardcode_into_libs=yes
15459   ;;
15460
15461 # No shared lib support for Linux oldld, aout, or coff.
15462 linux*oldld* | linux*aout* | linux*coff*)
15463   dynamic_linker=no
15464   ;;
15465
15466 # This must be Linux ELF.
15467 linux* | k*bsd*-gnu)
15468   version_type=linux
15469   need_lib_prefix=no
15470   need_version=no
15471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472   soname_spec='${libname}${release}${shared_ext}$major'
15473   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15474   shlibpath_var=LD_LIBRARY_PATH
15475   shlibpath_overrides_runpath=no
15476   # Some binutils ld are patched to set DT_RUNPATH
15477   save_LDFLAGS=$LDFLAGS
15478   save_libdir=$libdir
15479   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15480        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15481   cat >conftest.$ac_ext <<_ACEOF
15482 /* confdefs.h.  */
15483 _ACEOF
15484 cat confdefs.h >>conftest.$ac_ext
15485 cat >>conftest.$ac_ext <<_ACEOF
15486 /* end confdefs.h.  */
15487
15488 int
15489 main ()
15490 {
15491
15492   ;
15493   return 0;
15494 }
15495 _ACEOF
15496 rm -f conftest.$ac_objext conftest$ac_exeext
15497 if { (ac_try="$ac_link"
15498 case "(($ac_try" in
15499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500   *) ac_try_echo=$ac_try;;
15501 esac
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503   (eval "$ac_link") 2>conftest.er1
15504   ac_status=$?
15505   grep -v '^ *+' conftest.er1 >conftest.err
15506   rm -f conftest.er1
15507   cat conftest.err >&5
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); } && {
15510          test -z "$ac_cxx_werror_flag" ||
15511          test ! -s conftest.err
15512        } && test -s conftest$ac_exeext &&
15513        $as_test_x conftest$ac_exeext; then
15514   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15515   shlibpath_overrides_runpath=yes
15516 fi
15517
15518 else
15519   echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15521
15522
15523 fi
15524
15525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15526       conftest$ac_exeext conftest.$ac_ext
15527   LDFLAGS=$save_LDFLAGS
15528   libdir=$save_libdir
15529
15530   # This implies no fast_install, which is unacceptable.
15531   # Some rework will be needed to allow for fast_install
15532   # before this can be enabled.
15533   hardcode_into_libs=yes
15534
15535   # Append ld.so.conf contents to the search path
15536   if test -f /etc/ld.so.conf; then
15537     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' ' '`
15538     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15539   fi
15540
15541   # We used to test for /lib/ld.so.1 and disable shared libraries on
15542   # powerpc, because MkLinux only supported shared libraries with the
15543   # GNU dynamic linker.  Since this was broken with cross compilers,
15544   # most powerpc-linux boxes support dynamic linking these days and
15545   # people can always --disable-shared, the test was removed, and we
15546   # assume the GNU/Linux dynamic linker is in use.
15547   dynamic_linker='GNU/Linux ld.so'
15548   ;;
15549
15550 netbsd*)
15551   version_type=sunos
15552   need_lib_prefix=no
15553   need_version=no
15554   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15556     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15557     dynamic_linker='NetBSD (a.out) ld.so'
15558   else
15559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15560     soname_spec='${libname}${release}${shared_ext}$major'
15561     dynamic_linker='NetBSD ld.elf_so'
15562   fi
15563   shlibpath_var=LD_LIBRARY_PATH
15564   shlibpath_overrides_runpath=yes
15565   hardcode_into_libs=yes
15566   ;;
15567
15568 newsos6)
15569   version_type=linux
15570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571   shlibpath_var=LD_LIBRARY_PATH
15572   shlibpath_overrides_runpath=yes
15573   ;;
15574
15575 *nto* | *qnx*)
15576   version_type=qnx
15577   need_lib_prefix=no
15578   need_version=no
15579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580   soname_spec='${libname}${release}${shared_ext}$major'
15581   shlibpath_var=LD_LIBRARY_PATH
15582   shlibpath_overrides_runpath=no
15583   hardcode_into_libs=yes
15584   dynamic_linker='ldqnx.so'
15585   ;;
15586
15587 openbsd*)
15588   version_type=sunos
15589   sys_lib_dlsearch_path_spec="/usr/lib"
15590   need_lib_prefix=no
15591   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15592   case $host_os in
15593     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15594     *)                          need_version=no  ;;
15595   esac
15596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15597   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15598   shlibpath_var=LD_LIBRARY_PATH
15599   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15600     case $host_os in
15601       openbsd2.[89] | openbsd2.[89].*)
15602         shlibpath_overrides_runpath=no
15603         ;;
15604       *)
15605         shlibpath_overrides_runpath=yes
15606         ;;
15607       esac
15608   else
15609     shlibpath_overrides_runpath=yes
15610   fi
15611   ;;
15612
15613 os2*)
15614   libname_spec='$name'
15615   shrext_cmds=".dll"
15616   need_lib_prefix=no
15617   library_names_spec='$libname${shared_ext} $libname.a'
15618   dynamic_linker='OS/2 ld.exe'
15619   shlibpath_var=LIBPATH
15620   ;;
15621
15622 osf3* | osf4* | osf5*)
15623   version_type=osf
15624   need_lib_prefix=no
15625   need_version=no
15626   soname_spec='${libname}${release}${shared_ext}$major'
15627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628   shlibpath_var=LD_LIBRARY_PATH
15629   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15630   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15631   ;;
15632
15633 rdos*)
15634   dynamic_linker=no
15635   ;;
15636
15637 solaris*)
15638   version_type=linux
15639   need_lib_prefix=no
15640   need_version=no
15641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642   soname_spec='${libname}${release}${shared_ext}$major'
15643   shlibpath_var=LD_LIBRARY_PATH
15644   shlibpath_overrides_runpath=yes
15645   hardcode_into_libs=yes
15646   # ldd complains unless libraries are executable
15647   postinstall_cmds='chmod +x $lib'
15648   ;;
15649
15650 sunos4*)
15651   version_type=sunos
15652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15653   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15654   shlibpath_var=LD_LIBRARY_PATH
15655   shlibpath_overrides_runpath=yes
15656   if test "$with_gnu_ld" = yes; then
15657     need_lib_prefix=no
15658   fi
15659   need_version=yes
15660   ;;
15661
15662 sysv4 | sysv4.3*)
15663   version_type=linux
15664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665   soname_spec='${libname}${release}${shared_ext}$major'
15666   shlibpath_var=LD_LIBRARY_PATH
15667   case $host_vendor in
15668     sni)
15669       shlibpath_overrides_runpath=no
15670       need_lib_prefix=no
15671       runpath_var=LD_RUN_PATH
15672       ;;
15673     siemens)
15674       need_lib_prefix=no
15675       ;;
15676     motorola)
15677       need_lib_prefix=no
15678       need_version=no
15679       shlibpath_overrides_runpath=no
15680       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15681       ;;
15682   esac
15683   ;;
15684
15685 sysv4*MP*)
15686   if test -d /usr/nec ;then
15687     version_type=linux
15688     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15689     soname_spec='$libname${shared_ext}.$major'
15690     shlibpath_var=LD_LIBRARY_PATH
15691   fi
15692   ;;
15693
15694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15695   version_type=freebsd-elf
15696   need_lib_prefix=no
15697   need_version=no
15698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15699   soname_spec='${libname}${release}${shared_ext}$major'
15700   shlibpath_var=LD_LIBRARY_PATH
15701   shlibpath_overrides_runpath=yes
15702   hardcode_into_libs=yes
15703   if test "$with_gnu_ld" = yes; then
15704     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15705   else
15706     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15707     case $host_os in
15708       sco3.2v5*)
15709         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15710         ;;
15711     esac
15712   fi
15713   sys_lib_dlsearch_path_spec='/usr/lib'
15714   ;;
15715
15716 tpf*)
15717   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15718   version_type=linux
15719   need_lib_prefix=no
15720   need_version=no
15721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722   shlibpath_var=LD_LIBRARY_PATH
15723   shlibpath_overrides_runpath=no
15724   hardcode_into_libs=yes
15725   ;;
15726
15727 uts4*)
15728   version_type=linux
15729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15730   soname_spec='${libname}${release}${shared_ext}$major'
15731   shlibpath_var=LD_LIBRARY_PATH
15732   ;;
15733
15734 *)
15735   dynamic_linker=no
15736   ;;
15737 esac
15738 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15739 echo "${ECHO_T}$dynamic_linker" >&6; }
15740 test "$dynamic_linker" = no && can_build_shared=no
15741
15742 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15743 if test "$GCC" = yes; then
15744   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15745 fi
15746
15747 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15748   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15749 fi
15750 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15751   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15752 fi
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15790 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15791 hardcode_action_CXX=
15792 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15793    test -n "$runpath_var_CXX" ||
15794    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15795
15796   # We can hardcode non-existent directories.
15797   if test "$hardcode_direct_CXX" != no &&
15798      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15799      # have to relink, otherwise we might link with an installed library
15800      # when we should be linking with a yet-to-be-installed one
15801      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15802      test "$hardcode_minus_L_CXX" != no; then
15803     # Linking always hardcodes the temporary library directory.
15804     hardcode_action_CXX=relink
15805   else
15806     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15807     hardcode_action_CXX=immediate
15808   fi
15809 else
15810   # We cannot hardcode anything, or else we can only hardcode existing
15811   # directories.
15812   hardcode_action_CXX=unsupported
15813 fi
15814 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15815 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15816
15817 if test "$hardcode_action_CXX" = relink ||
15818    test "$inherit_rpath_CXX" = yes; then
15819   # Fast installation is not supported
15820   enable_fast_install=no
15821 elif test "$shlibpath_overrides_runpath" = yes ||
15822      test "$enable_shared" = no; then
15823   # Fast installation is not necessary
15824   enable_fast_install=needless
15825 fi
15826
15827
15828
15829
15830
15831
15832
15833   fi # test -n "$compiler"
15834
15835   CC=$lt_save_CC
15836   LDCXX=$LD
15837   LD=$lt_save_LD
15838   GCC=$lt_save_GCC
15839   with_gnu_ld=$lt_save_with_gnu_ld
15840   lt_cv_path_LDCXX=$lt_cv_path_LD
15841   lt_cv_path_LD=$lt_save_path_LD
15842   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15843   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15844 fi # test "$_lt_caught_CXX_error" != yes
15845
15846 ac_ext=c
15847 ac_cpp='$CPP $CPPFLAGS'
15848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864         ac_config_commands="$ac_config_commands libtool"
15865
15866
15867
15868
15869 # Only expand once:
15870
15871
15872
15873
15874 if test x$use_libtool != xno; then
15875    DEFAULT_OBJECT_TYPE=".lo"
15876    DEFAULT_ARCHIVE_TYPE=".la"
15877    DEFAULT_SHARED_OBJECT_TYPE=".la"
15878    LIBTOOL="\$(LIBTOOL)"
15879    LIBTOOL_INSTALL_TARGET="libtool-install"
15880    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15881    LIBTOOL_CLEAN_TARGET="libtool-clean"
15882    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15883 else
15884    DEFAULT_OBJECT_TYPE=".o"
15885    DEFAULT_ARCHIVE_TYPE=".a"
15886    DEFAULT_SHARED_OBJECT_TYPE=".so"
15887    LIBTOOL="# \$(LIBTOOL)"
15888    LIBTOOL_INSTALL_TARGET=""
15889    LIBTOOL_UNINSTALL_TARGET=""
15890    LIBTOOL_CLEAN_TARGET=""
15891    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15892 fi
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903 # Check whether --enable-includes was given.
15904 if test "${enable_includes+set}" = set; then
15905   enableval=$enable_includes;
15906        if test x$enableval = xyes; then
15907           install_includes=yes
15908        fi
15909
15910
15911 fi
15912
15913
15914
15915 if test x$use_libtool != xno -a x$install_includes = xyes; then
15916    INCLUDE_INSTALL_TARGET="install-includes"
15917    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15918 else
15919    INCLUDE_INSTALL_TARGET=""
15920    INCLUDE_UNINSTALL_TARGET=""
15921 fi
15922
15923
15924
15925
15926 { echo "$as_me:$LINENO: checking host system type" >&5
15927 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15928 if test "${ac_cv_host+set}" = set; then
15929   echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15931   if test "x$host_alias" = x; then
15932   ac_cv_host=$ac_cv_build
15933 else
15934   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15935     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15936 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15937    { (exit 1); exit 1; }; }
15938 fi
15939
15940 fi
15941 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15942 echo "${ECHO_T}$ac_cv_host" >&6; }
15943 case $ac_cv_host in
15944 *-*-*) ;;
15945 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15946 echo "$as_me: error: invalid value of canonical host" >&2;}
15947    { (exit 1); exit 1; }; };;
15948 esac
15949 host=$ac_cv_host
15950 ac_save_IFS=$IFS; IFS='-'
15951 set x $ac_cv_host
15952 shift
15953 host_cpu=$1
15954 host_vendor=$2
15955 shift; shift
15956 # Remember, the first character of IFS is used to create $*,
15957 # except with old shells:
15958 host_os=$*
15959 IFS=$ac_save_IFS
15960 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15961
15962
15963 case $host_os in
15964   *cygwin* ) CYGWIN=yes;;
15965          * ) CYGWIN=no;;
15966 esac
15967
15968 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15969 then
15970
15971
15972 if $TRUEPRG; then
15973   HAVE_SUN_OS_TRUE=
15974   HAVE_SUN_OS_FALSE='#'
15975 else
15976   HAVE_SUN_OS_TRUE='#'
15977   HAVE_SUN_OS_FALSE=
15978 fi
15979         cat >>confdefs.h <<\_ACEOF
15980 #define HAVE_SUN_OS 1
15981 _ACEOF
15982
15983 else
15984
15985
15986 if $FALSEPRG; then
15987   HAVE_SUN_OS_TRUE=
15988   HAVE_SUN_OS_FALSE='#'
15989 else
15990   HAVE_SUN_OS_TRUE='#'
15991   HAVE_SUN_OS_FALSE=
15992 fi
15993 fi
15994
15995 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15996 then
15997
15998
15999 if $TRUEPRG; then
16000   HAVE_OSF1_OS_TRUE=
16001   HAVE_OSF1_OS_FALSE='#'
16002 else
16003   HAVE_OSF1_OS_TRUE='#'
16004   HAVE_OSF1_OS_FALSE=
16005 fi
16006         cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_OSF1_OS 1
16008 _ACEOF
16009
16010 else
16011
16012
16013 if $FALSEPRG; then
16014   HAVE_OSF1_OS_TRUE=
16015   HAVE_OSF1_OS_FALSE='#'
16016 else
16017   HAVE_OSF1_OS_TRUE='#'
16018   HAVE_OSF1_OS_FALSE=
16019 fi
16020 fi
16021
16022 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16023 then
16024
16025
16026 if $TRUEPRG; then
16027   HAVE_AIX_OS_TRUE=
16028   HAVE_AIX_OS_FALSE='#'
16029 else
16030   HAVE_AIX_OS_TRUE='#'
16031   HAVE_AIX_OS_FALSE=
16032 fi
16033         cat >>confdefs.h <<\_ACEOF
16034 #define HAVE_AIX_OS 1
16035 _ACEOF
16036
16037 else
16038
16039
16040 if $FALSEPRG; then
16041   HAVE_AIX_OS_TRUE=
16042   HAVE_AIX_OS_FALSE='#'
16043 else
16044   HAVE_AIX_OS_TRUE='#'
16045   HAVE_AIX_OS_FALSE=
16046 fi
16047 fi
16048
16049 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16050 then
16051
16052
16053 if $TRUEPRG; then
16054   HAVE_HPUX_OS_TRUE=
16055   HAVE_HPUX_OS_FALSE='#'
16056 else
16057   HAVE_HPUX_OS_TRUE='#'
16058   HAVE_HPUX_OS_FALSE=
16059 fi
16060         cat >>confdefs.h <<\_ACEOF
16061 #define HAVE_HPUX_OS 1
16062 _ACEOF
16063
16064 else
16065
16066
16067 if $FALSEPRG; then
16068   HAVE_HPUX_OS_TRUE=
16069   HAVE_HPUX_OS_FALSE='#'
16070 else
16071   HAVE_HPUX_OS_TRUE='#'
16072   HAVE_HPUX_OS_FALSE=
16073 fi
16074 fi
16075
16076 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16077 then
16078
16079
16080 if $TRUEPRG; then
16081   HAVE_LINUX_OS_TRUE=
16082   HAVE_LINUX_OS_FALSE='#'
16083 else
16084   HAVE_LINUX_OS_TRUE='#'
16085   HAVE_LINUX_OS_FALSE=
16086 fi
16087         cat >>confdefs.h <<\_ACEOF
16088 #define HAVE_LINUX_OS 1
16089 _ACEOF
16090
16091 else
16092
16093
16094 if $FALSEPRG; then
16095   HAVE_LINUX_OS_TRUE=
16096   HAVE_LINUX_OS_FALSE='#'
16097 else
16098   HAVE_LINUX_OS_TRUE='#'
16099   HAVE_LINUX_OS_FALSE=
16100 fi
16101 fi
16102
16103 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16104 then
16105
16106
16107 if $TRUEPRG; then
16108   HAVE_FREEBSD_OS_TRUE=
16109   HAVE_FREEBSD_OS_FALSE='#'
16110 else
16111   HAVE_FREEBSD_OS_TRUE='#'
16112   HAVE_FREEBSD_OS_FALSE=
16113 fi
16114         cat >>confdefs.h <<\_ACEOF
16115 #define HAVE_FREEBSD_OS 1
16116 _ACEOF
16117
16118 else
16119
16120
16121 if $FALSEPRG; then
16122   HAVE_FREEBSD_OS_TRUE=
16123   HAVE_FREEBSD_OS_FALSE='#'
16124 else
16125   HAVE_FREEBSD_OS_TRUE='#'
16126   HAVE_FREEBSD_OS_FALSE=
16127 fi
16128 fi
16129
16130 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16131 then
16132
16133
16134 if $TRUEPRG; then
16135   HAVE_NETBSD_OS_TRUE=
16136   HAVE_NETBSD_OS_FALSE='#'
16137 else
16138   HAVE_NETBSD_OS_TRUE='#'
16139   HAVE_NETBSD_OS_FALSE=
16140 fi
16141         cat >>confdefs.h <<\_ACEOF
16142 #define HAVE_NETBSD_OS 1
16143 _ACEOF
16144
16145 else
16146
16147
16148 if $FALSEPRG; then
16149   HAVE_NETBSD_OS_TRUE=
16150   HAVE_NETBSD_OS_FALSE='#'
16151 else
16152   HAVE_NETBSD_OS_TRUE='#'
16153   HAVE_NETBSD_OS_FALSE=
16154 fi
16155 fi
16156
16157 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16158 then
16159
16160
16161 if $TRUEPRG; then
16162   HAVE_OPENBSD_OS_TRUE=
16163   HAVE_OPENBSD_OS_FALSE='#'
16164 else
16165   HAVE_OPENBSD_OS_TRUE='#'
16166   HAVE_OPENBSD_OS_FALSE=
16167 fi
16168         cat >>confdefs.h <<\_ACEOF
16169 #define HAVE_OPENBSD_OS 1
16170 _ACEOF
16171
16172 else
16173
16174
16175 if $FALSEPRG; then
16176   HAVE_OPENBSD_OS_TRUE=
16177   HAVE_OPENBSD_OS_FALSE='#'
16178 else
16179   HAVE_OPENBSD_OS_TRUE='#'
16180   HAVE_OPENBSD_OS_FALSE=
16181 fi
16182 fi
16183
16184 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16185 then
16186
16187
16188 if $TRUEPRG; then
16189   HAVE_BSDI_OS_TRUE=
16190   HAVE_BSDI_OS_FALSE='#'
16191 else
16192   HAVE_BSDI_OS_TRUE='#'
16193   HAVE_BSDI_OS_FALSE=
16194 fi
16195         cat >>confdefs.h <<\_ACEOF
16196 #define HAVE_BSDI_OS 1
16197 _ACEOF
16198
16199 else
16200
16201
16202 if $FALSEPRG; then
16203   HAVE_BSDI_OS_TRUE=
16204   HAVE_BSDI_OS_FALSE='#'
16205 else
16206   HAVE_BSDI_OS_TRUE='#'
16207   HAVE_BSDI_OS_FALSE=
16208 fi
16209 fi
16210
16211 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16212 then
16213
16214
16215 if $TRUEPRG; then
16216   HAVE_SGI_OS_TRUE=
16217   HAVE_SGI_OS_FALSE='#'
16218 else
16219   HAVE_SGI_OS_TRUE='#'
16220   HAVE_SGI_OS_FALSE=
16221 fi
16222         cat >>confdefs.h <<\_ACEOF
16223 #define HAVE_SGI_OS 1
16224 _ACEOF
16225
16226 else
16227
16228
16229 if $FALSEPRG; then
16230   HAVE_SGI_OS_TRUE=
16231   HAVE_SGI_OS_FALSE='#'
16232 else
16233   HAVE_SGI_OS_TRUE='#'
16234   HAVE_SGI_OS_FALSE=
16235 fi
16236 fi
16237
16238 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16239 then
16240
16241
16242 if $TRUEPRG; then
16243   HAVE_IRIX_OS_TRUE=
16244   HAVE_IRIX_OS_FALSE='#'
16245 else
16246   HAVE_IRIX_OS_TRUE='#'
16247   HAVE_IRIX_OS_FALSE=
16248 fi
16249         cat >>confdefs.h <<\_ACEOF
16250 #define HAVE_IRIX_OS 1
16251 _ACEOF
16252
16253 else
16254
16255
16256 if $FALSEPRG; then
16257   HAVE_IRIX_OS_TRUE=
16258   HAVE_IRIX_OS_FALSE='#'
16259 else
16260   HAVE_IRIX_OS_TRUE='#'
16261   HAVE_IRIX_OS_FALSE=
16262 fi
16263 fi
16264
16265 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16266 then
16267
16268
16269 if $TRUEPRG; then
16270   HAVE_DARWIN_OS_TRUE=
16271   HAVE_DARWIN_OS_FALSE='#'
16272 else
16273   HAVE_DARWIN_OS_TRUE='#'
16274   HAVE_DARWIN_OS_FALSE=
16275 fi
16276     cat >>confdefs.h <<\_ACEOF
16277 #define HAVE_DARWIN_OS 1
16278 _ACEOF
16279
16280 else
16281
16282
16283 if $FALSEPRG; then
16284   HAVE_DARWIN_OS_TRUE=
16285   HAVE_DARWIN_OS_FALSE='#'
16286 else
16287   HAVE_DARWIN_OS_TRUE='#'
16288   HAVE_DARWIN_OS_FALSE=
16289 fi
16290 fi
16291
16292
16293 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16294 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16295 if test "x$DISTNAME" != "x"
16296 then
16297         echo "distname set to $DISTNAME"
16298 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16299 then
16300         DISTNAME=alpha
16301 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16302 then
16303         DISTNAME=aix
16304 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16305 then
16306         DISTNAME=hpux
16307 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16308 then
16309         DISTNAME=solaris
16310 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16311 then
16312         DISTNAME=freebsd
16313 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16314 then
16315         DISTNAME=netbsd
16316 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16317 then
16318         DISTNAME=openbsd
16319 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16320 then
16321         DISTNAME=irix
16322 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16323 then
16324         DISTNAME=bsdi
16325 elif test -f /etc/SuSE-release
16326 then
16327         DISTNAME=suse
16328 elif test -d /etc/SuSEconfig
16329 then
16330         DISTNAME=suse5
16331 elif test -f /etc/mandrake-release
16332 then
16333         DISTNAME=mandrake
16334 elif test -f /etc/whitebox-release
16335 then
16336        DISTNAME=redhat
16337 elif test -f /etc/redhat-release
16338 then
16339         DISTNAME=redhat
16340 elif test -f /etc/gentoo-release
16341 then
16342         DISTNAME=gentoo
16343 elif test -f /etc/debian_version
16344 then
16345         DISTNAME=debian
16346 elif test -f /etc/slackware-version
16347 then
16348         DISTNAME=slackware
16349 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16350 then
16351     DISTNAME=darwin
16352 elif test -f /etc/engarde-version
16353 then
16354         DISTNAME=engarde
16355 elif test "$CYGWIN" = yes
16356 then
16357         DISTNAME=cygwin
16358         cat >>confdefs.h <<\_ACEOF
16359 #define HAVE_CYGWIN 1
16360 _ACEOF
16361
16362 else
16363         DISTNAME=unknown
16364 fi
16365 { echo "$as_me:$LINENO: result: done" >&5
16366 echo "${ECHO_T}done" >&6; }
16367
16368
16369 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16370 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16371 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16372 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16373   echo $ECHO_N "(cached) $ECHO_C" >&6
16374 else
16375   cat >conftest.make <<\_ACEOF
16376 SHELL = /bin/sh
16377 all:
16378         @echo '@@@%%%=$(MAKE)=@@@%%%'
16379 _ACEOF
16380 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16381 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16382   *@@@%%%=?*=@@@%%%*)
16383     eval ac_cv_prog_make_${ac_make}_set=yes;;
16384   *)
16385     eval ac_cv_prog_make_${ac_make}_set=no;;
16386 esac
16387 rm -f conftest.make
16388 fi
16389 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16390   { echo "$as_me:$LINENO: result: yes" >&5
16391 echo "${ECHO_T}yes" >&6; }
16392   SET_MAKE=
16393 else
16394   { echo "$as_me:$LINENO: result: no" >&5
16395 echo "${ECHO_T}no" >&6; }
16396   SET_MAKE="MAKE=${MAKE-make}"
16397 fi
16398
16399
16400
16401         MKINSTALLDIRS=
16402   if test -n "$ac_aux_dir"; then
16403     case "$ac_aux_dir" in
16404       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16405       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16406     esac
16407   fi
16408   if test -z "$MKINSTALLDIRS"; then
16409     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16410   fi
16411
16412
16413
16414   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16415 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16416     # Check whether --enable-nls was given.
16417 if test "${enable_nls+set}" = set; then
16418   enableval=$enable_nls; USE_NLS=$enableval
16419 else
16420   USE_NLS=yes
16421 fi
16422
16423   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16424 echo "${ECHO_T}$USE_NLS" >&6; }
16425
16426
16427
16428
16429
16430
16431 # Prepare PATH_SEPARATOR.
16432 # The user is always right.
16433 if test "${PATH_SEPARATOR+set}" != set; then
16434   echo "#! /bin/sh" >conf$$.sh
16435   echo  "exit 0"   >>conf$$.sh
16436   chmod +x conf$$.sh
16437   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16438     PATH_SEPARATOR=';'
16439   else
16440     PATH_SEPARATOR=:
16441   fi
16442   rm -f conf$$.sh
16443 fi
16444
16445 # Find out how to test for executable files. Don't use a zero-byte file,
16446 # as systems may use methods other than mode bits to determine executability.
16447 cat >conf$$.file <<_ASEOF
16448 #! /bin/sh
16449 exit 0
16450 _ASEOF
16451 chmod +x conf$$.file
16452 if test -x conf$$.file >/dev/null 2>&1; then
16453   ac_executable_p="test -x"
16454 else
16455   ac_executable_p="test -f"
16456 fi
16457 rm -f conf$$.file
16458
16459 # Extract the first word of "msgfmt", so it can be a program name with args.
16460 set dummy msgfmt; ac_word=$2
16461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16463 if test "${ac_cv_path_MSGFMT+set}" = set; then
16464   echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16466   case "$MSGFMT" in
16467   [\\/]* | ?:[\\/]*)
16468     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16469     ;;
16470   *)
16471     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16472     for ac_dir in $PATH; do
16473       IFS="$ac_save_IFS"
16474       test -z "$ac_dir" && ac_dir=.
16475       for ac_exec_ext in '' $ac_executable_extensions; do
16476         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16477           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16478           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16479      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16480             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16481             break 2
16482           fi
16483         fi
16484       done
16485     done
16486     IFS="$ac_save_IFS"
16487   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16488     ;;
16489 esac
16490 fi
16491 MSGFMT="$ac_cv_path_MSGFMT"
16492 if test "$MSGFMT" != ":"; then
16493   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16494 echo "${ECHO_T}$MSGFMT" >&6; }
16495 else
16496   { echo "$as_me:$LINENO: result: no" >&5
16497 echo "${ECHO_T}no" >&6; }
16498 fi
16499
16500   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16501 set dummy gmsgfmt; ac_word=$2
16502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16504 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16505   echo $ECHO_N "(cached) $ECHO_C" >&6
16506 else
16507   case $GMSGFMT in
16508   [\\/]* | ?:[\\/]*)
16509   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16510   ;;
16511   *)
16512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16513 for as_dir in $PATH
16514 do
16515   IFS=$as_save_IFS
16516   test -z "$as_dir" && as_dir=.
16517   for ac_exec_ext in '' $ac_executable_extensions; do
16518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16519     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16521     break 2
16522   fi
16523 done
16524 done
16525 IFS=$as_save_IFS
16526
16527   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16528   ;;
16529 esac
16530 fi
16531 GMSGFMT=$ac_cv_path_GMSGFMT
16532 if test -n "$GMSGFMT"; then
16533   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16534 echo "${ECHO_T}$GMSGFMT" >&6; }
16535 else
16536   { echo "$as_me:$LINENO: result: no" >&5
16537 echo "${ECHO_T}no" >&6; }
16538 fi
16539
16540
16541
16542
16543 # Prepare PATH_SEPARATOR.
16544 # The user is always right.
16545 if test "${PATH_SEPARATOR+set}" != set; then
16546   echo "#! /bin/sh" >conf$$.sh
16547   echo  "exit 0"   >>conf$$.sh
16548   chmod +x conf$$.sh
16549   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16550     PATH_SEPARATOR=';'
16551   else
16552     PATH_SEPARATOR=:
16553   fi
16554   rm -f conf$$.sh
16555 fi
16556
16557 # Find out how to test for executable files. Don't use a zero-byte file,
16558 # as systems may use methods other than mode bits to determine executability.
16559 cat >conf$$.file <<_ASEOF
16560 #! /bin/sh
16561 exit 0
16562 _ASEOF
16563 chmod +x conf$$.file
16564 if test -x conf$$.file >/dev/null 2>&1; then
16565   ac_executable_p="test -x"
16566 else
16567   ac_executable_p="test -f"
16568 fi
16569 rm -f conf$$.file
16570
16571 # Extract the first word of "xgettext", so it can be a program name with args.
16572 set dummy xgettext; ac_word=$2
16573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16575 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16576   echo $ECHO_N "(cached) $ECHO_C" >&6
16577 else
16578   case "$XGETTEXT" in
16579   [\\/]* | ?:[\\/]*)
16580     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16581     ;;
16582   *)
16583     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16584     for ac_dir in $PATH; do
16585       IFS="$ac_save_IFS"
16586       test -z "$ac_dir" && ac_dir=.
16587       for ac_exec_ext in '' $ac_executable_extensions; do
16588         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16589           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16590           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16591      (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
16592             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16593             break 2
16594           fi
16595         fi
16596       done
16597     done
16598     IFS="$ac_save_IFS"
16599   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16600     ;;
16601 esac
16602 fi
16603 XGETTEXT="$ac_cv_path_XGETTEXT"
16604 if test "$XGETTEXT" != ":"; then
16605   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16606 echo "${ECHO_T}$XGETTEXT" >&6; }
16607 else
16608   { echo "$as_me:$LINENO: result: no" >&5
16609 echo "${ECHO_T}no" >&6; }
16610 fi
16611
16612     rm -f messages.po
16613
16614
16615 # Prepare PATH_SEPARATOR.
16616 # The user is always right.
16617 if test "${PATH_SEPARATOR+set}" != set; then
16618   echo "#! /bin/sh" >conf$$.sh
16619   echo  "exit 0"   >>conf$$.sh
16620   chmod +x conf$$.sh
16621   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16622     PATH_SEPARATOR=';'
16623   else
16624     PATH_SEPARATOR=:
16625   fi
16626   rm -f conf$$.sh
16627 fi
16628
16629 # Find out how to test for executable files. Don't use a zero-byte file,
16630 # as systems may use methods other than mode bits to determine executability.
16631 cat >conf$$.file <<_ASEOF
16632 #! /bin/sh
16633 exit 0
16634 _ASEOF
16635 chmod +x conf$$.file
16636 if test -x conf$$.file >/dev/null 2>&1; then
16637   ac_executable_p="test -x"
16638 else
16639   ac_executable_p="test -f"
16640 fi
16641 rm -f conf$$.file
16642
16643 # Extract the first word of "msgmerge", so it can be a program name with args.
16644 set dummy msgmerge; ac_word=$2
16645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16647 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16648   echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650   case "$MSGMERGE" in
16651   [\\/]* | ?:[\\/]*)
16652     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16653     ;;
16654   *)
16655     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16656     for ac_dir in $PATH; do
16657       IFS="$ac_save_IFS"
16658       test -z "$ac_dir" && ac_dir=.
16659       for ac_exec_ext in '' $ac_executable_extensions; do
16660         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16661           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16662           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16663             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16664             break 2
16665           fi
16666         fi
16667       done
16668     done
16669     IFS="$ac_save_IFS"
16670   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16671     ;;
16672 esac
16673 fi
16674 MSGMERGE="$ac_cv_path_MSGMERGE"
16675 if test "$MSGMERGE" != ":"; then
16676   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16677 echo "${ECHO_T}$MSGMERGE" >&6; }
16678 else
16679   { echo "$as_me:$LINENO: result: no" >&5
16680 echo "${ECHO_T}no" >&6; }
16681 fi
16682
16683
16684       if test "$GMSGFMT" != ":"; then
16685             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16686        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16687       : ;
16688     else
16689       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16690       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16691 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16692       GMSGFMT=":"
16693     fi
16694   fi
16695
16696       if test "$XGETTEXT" != ":"; then
16697             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16698        (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
16699       : ;
16700     else
16701       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16702 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16703       XGETTEXT=":"
16704     fi
16705         rm -f messages.po
16706   fi
16707
16708   ac_config_commands="$ac_config_commands default-1"
16709
16710
16711
16712       if test "X$prefix" = "XNONE"; then
16713     acl_final_prefix="$ac_default_prefix"
16714   else
16715     acl_final_prefix="$prefix"
16716   fi
16717   if test "X$exec_prefix" = "XNONE"; then
16718     acl_final_exec_prefix='${prefix}'
16719   else
16720     acl_final_exec_prefix="$exec_prefix"
16721   fi
16722   acl_save_prefix="$prefix"
16723   prefix="$acl_final_prefix"
16724   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16725   prefix="$acl_save_prefix"
16726
16727
16728 # Check whether --with-gnu-ld was given.
16729 if test "${with_gnu_ld+set}" = set; then
16730   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16731 else
16732   with_gnu_ld=no
16733 fi
16734
16735 # Prepare PATH_SEPARATOR.
16736 # The user is always right.
16737 if test "${PATH_SEPARATOR+set}" != set; then
16738   echo "#! /bin/sh" >conf$$.sh
16739   echo  "exit 0"   >>conf$$.sh
16740   chmod +x conf$$.sh
16741   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16742     PATH_SEPARATOR=';'
16743   else
16744     PATH_SEPARATOR=:
16745   fi
16746   rm -f conf$$.sh
16747 fi
16748 ac_prog=ld
16749 if test "$GCC" = yes; then
16750   # Check if gcc -print-prog-name=ld gives a path.
16751   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16752 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16753   case $host in
16754   *-*-mingw*)
16755     # gcc leaves a trailing carriage return which upsets mingw
16756     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16757   *)
16758     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16759   esac
16760   case $ac_prog in
16761     # Accept absolute paths.
16762     [\\/]* | [A-Za-z]:[\\/]*)
16763       re_direlt='/[^/][^/]*/\.\./'
16764       # Canonicalize the path of ld
16765       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16766       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16767         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16768       done
16769       test -z "$LD" && LD="$ac_prog"
16770       ;;
16771   "")
16772     # If it fails, then pretend we aren't using GCC.
16773     ac_prog=ld
16774     ;;
16775   *)
16776     # If it is relative, then search for the first ld in PATH.
16777     with_gnu_ld=unknown
16778     ;;
16779   esac
16780 elif test "$with_gnu_ld" = yes; then
16781   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16782 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16783 else
16784   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16785 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16786 fi
16787 if test "${acl_cv_path_LD+set}" = set; then
16788   echo $ECHO_N "(cached) $ECHO_C" >&6
16789 else
16790   if test -z "$LD"; then
16791   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16792   for ac_dir in $PATH; do
16793     test -z "$ac_dir" && ac_dir=.
16794     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16795       acl_cv_path_LD="$ac_dir/$ac_prog"
16796       # Check to see if the program is GNU ld.  I'd rather use --version,
16797       # but apparently some GNU ld's only accept -v.
16798       # Break only if it was the GNU/non-GNU ld that we prefer.
16799       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16800       *GNU* | *'with BFD'*)
16801         test "$with_gnu_ld" != no && break ;;
16802       *)
16803         test "$with_gnu_ld" != yes && break ;;
16804       esac
16805     fi
16806   done
16807   IFS="$ac_save_ifs"
16808 else
16809   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16810 fi
16811 fi
16812
16813 LD="$acl_cv_path_LD"
16814 if test -n "$LD"; then
16815   { echo "$as_me:$LINENO: result: $LD" >&5
16816 echo "${ECHO_T}$LD" >&6; }
16817 else
16818   { echo "$as_me:$LINENO: result: no" >&5
16819 echo "${ECHO_T}no" >&6; }
16820 fi
16821 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16822 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16823    { (exit 1); exit 1; }; }
16824 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16825 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16826 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16827   echo $ECHO_N "(cached) $ECHO_C" >&6
16828 else
16829   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16830 case `$LD -v 2>&1 </dev/null` in
16831 *GNU* | *'with BFD'*)
16832   acl_cv_prog_gnu_ld=yes ;;
16833 *)
16834   acl_cv_prog_gnu_ld=no ;;
16835 esac
16836 fi
16837 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16838 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16839 with_gnu_ld=$acl_cv_prog_gnu_ld
16840
16841
16842
16843
16844                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16845 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16846 if test "${acl_cv_rpath+set}" = set; then
16847   echo $ECHO_N "(cached) $ECHO_C" >&6
16848 else
16849
16850     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16851     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16852     . ./conftest.sh
16853     rm -f ./conftest.sh
16854     acl_cv_rpath=done
16855
16856 fi
16857 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16858 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16859   wl="$acl_cv_wl"
16860   libext="$acl_cv_libext"
16861   shlibext="$acl_cv_shlibext"
16862   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16863   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16864   hardcode_direct="$acl_cv_hardcode_direct"
16865   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16866     # Check whether --enable-rpath was given.
16867 if test "${enable_rpath+set}" = set; then
16868   enableval=$enable_rpath; :
16869 else
16870   enable_rpath=yes
16871 fi
16872
16873
16874
16875
16876
16877
16878
16879
16880     use_additional=yes
16881
16882   acl_save_prefix="$prefix"
16883   prefix="$acl_final_prefix"
16884   acl_save_exec_prefix="$exec_prefix"
16885   exec_prefix="$acl_final_exec_prefix"
16886
16887     eval additional_includedir=\"$includedir\"
16888     eval additional_libdir=\"$libdir\"
16889
16890   exec_prefix="$acl_save_exec_prefix"
16891   prefix="$acl_save_prefix"
16892
16893
16894 # Check whether --with-libiconv-prefix was given.
16895 if test "${with_libiconv_prefix+set}" = set; then
16896   withval=$with_libiconv_prefix;
16897     if test "X$withval" = "Xno"; then
16898       use_additional=no
16899     else
16900       if test "X$withval" = "X"; then
16901
16902   acl_save_prefix="$prefix"
16903   prefix="$acl_final_prefix"
16904   acl_save_exec_prefix="$exec_prefix"
16905   exec_prefix="$acl_final_exec_prefix"
16906
16907           eval additional_includedir=\"$includedir\"
16908           eval additional_libdir=\"$libdir\"
16909
16910   exec_prefix="$acl_save_exec_prefix"
16911   prefix="$acl_save_prefix"
16912
16913       else
16914         additional_includedir="$withval/include"
16915         additional_libdir="$withval/lib"
16916       fi
16917     fi
16918
16919 fi
16920
16921       LIBICONV=
16922   LTLIBICONV=
16923   INCICONV=
16924   rpathdirs=
16925   ltrpathdirs=
16926   names_already_handled=
16927   names_next_round='iconv '
16928   while test -n "$names_next_round"; do
16929     names_this_round="$names_next_round"
16930     names_next_round=
16931     for name in $names_this_round; do
16932       already_handled=
16933       for n in $names_already_handled; do
16934         if test "$n" = "$name"; then
16935           already_handled=yes
16936           break
16937         fi
16938       done
16939       if test -z "$already_handled"; then
16940         names_already_handled="$names_already_handled $name"
16941                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16942         eval value=\"\$HAVE_LIB$uppername\"
16943         if test -n "$value"; then
16944           if test "$value" = yes; then
16945             eval value=\"\$LIB$uppername\"
16946             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16947             eval value=\"\$LTLIB$uppername\"
16948             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16949           else
16950                                     :
16951           fi
16952         else
16953                               found_dir=
16954           found_la=
16955           found_so=
16956           found_a=
16957           if test $use_additional = yes; then
16958             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16959               found_dir="$additional_libdir"
16960               found_so="$additional_libdir/lib$name.$shlibext"
16961               if test -f "$additional_libdir/lib$name.la"; then
16962                 found_la="$additional_libdir/lib$name.la"
16963               fi
16964             else
16965               if test -f "$additional_libdir/lib$name.$libext"; then
16966                 found_dir="$additional_libdir"
16967                 found_a="$additional_libdir/lib$name.$libext"
16968                 if test -f "$additional_libdir/lib$name.la"; then
16969                   found_la="$additional_libdir/lib$name.la"
16970                 fi
16971               fi
16972             fi
16973           fi
16974           if test "X$found_dir" = "X"; then
16975             for x in $LDFLAGS $LTLIBICONV; do
16976
16977   acl_save_prefix="$prefix"
16978   prefix="$acl_final_prefix"
16979   acl_save_exec_prefix="$exec_prefix"
16980   exec_prefix="$acl_final_exec_prefix"
16981   eval x=\"$x\"
16982   exec_prefix="$acl_save_exec_prefix"
16983   prefix="$acl_save_prefix"
16984
16985               case "$x" in
16986                 -L*)
16987                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16988                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16989                     found_dir="$dir"
16990                     found_so="$dir/lib$name.$shlibext"
16991                     if test -f "$dir/lib$name.la"; then
16992                       found_la="$dir/lib$name.la"
16993                     fi
16994                   else
16995                     if test -f "$dir/lib$name.$libext"; then
16996                       found_dir="$dir"
16997                       found_a="$dir/lib$name.$libext"
16998                       if test -f "$dir/lib$name.la"; then
16999                         found_la="$dir/lib$name.la"
17000                       fi
17001                     fi
17002                   fi
17003                   ;;
17004               esac
17005               if test "X$found_dir" != "X"; then
17006                 break
17007               fi
17008             done
17009           fi
17010           if test "X$found_dir" != "X"; then
17011                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17012             if test "X$found_so" != "X"; then
17013                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17014                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17015               else
17016                                                                                 haveit=
17017                 for x in $ltrpathdirs; do
17018                   if test "X$x" = "X$found_dir"; then
17019                     haveit=yes
17020                     break
17021                   fi
17022                 done
17023                 if test -z "$haveit"; then
17024                   ltrpathdirs="$ltrpathdirs $found_dir"
17025                 fi
17026                                 if test "$hardcode_direct" = yes; then
17027                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17028                 else
17029                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17030                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17031                                                             haveit=
17032                     for x in $rpathdirs; do
17033                       if test "X$x" = "X$found_dir"; then
17034                         haveit=yes
17035                         break
17036                       fi
17037                     done
17038                     if test -z "$haveit"; then
17039                       rpathdirs="$rpathdirs $found_dir"
17040                     fi
17041                   else
17042                                                                                 haveit=
17043                     for x in $LDFLAGS $LIBICONV; do
17044
17045   acl_save_prefix="$prefix"
17046   prefix="$acl_final_prefix"
17047   acl_save_exec_prefix="$exec_prefix"
17048   exec_prefix="$acl_final_exec_prefix"
17049   eval x=\"$x\"
17050   exec_prefix="$acl_save_exec_prefix"
17051   prefix="$acl_save_prefix"
17052
17053                       if test "X$x" = "X-L$found_dir"; then
17054                         haveit=yes
17055                         break
17056                       fi
17057                     done
17058                     if test -z "$haveit"; then
17059                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17060                     fi
17061                     if test "$hardcode_minus_L" != no; then
17062                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17063                     else
17064                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17065                     fi
17066                   fi
17067                 fi
17068               fi
17069             else
17070               if test "X$found_a" != "X"; then
17071                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17072               else
17073                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17074               fi
17075             fi
17076                         additional_includedir=
17077             case "$found_dir" in
17078               */lib | */lib/)
17079                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17080                 additional_includedir="$basedir/include"
17081                 ;;
17082             esac
17083             if test "X$additional_includedir" != "X"; then
17084                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17085                 haveit=
17086                 if test "X$additional_includedir" = "X/usr/local/include"; then
17087                   if test -n "$GCC"; then
17088                     case $host_os in
17089                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17090                     esac
17091                   fi
17092                 fi
17093                 if test -z "$haveit"; then
17094                   for x in $CPPFLAGS $INCICONV; do
17095
17096   acl_save_prefix="$prefix"
17097   prefix="$acl_final_prefix"
17098   acl_save_exec_prefix="$exec_prefix"
17099   exec_prefix="$acl_final_exec_prefix"
17100   eval x=\"$x\"
17101   exec_prefix="$acl_save_exec_prefix"
17102   prefix="$acl_save_prefix"
17103
17104                     if test "X$x" = "X-I$additional_includedir"; then
17105                       haveit=yes
17106                       break
17107                     fi
17108                   done
17109                   if test -z "$haveit"; then
17110                     if test -d "$additional_includedir"; then
17111                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17112                     fi
17113                   fi
17114                 fi
17115               fi
17116             fi
17117                         if test -n "$found_la"; then
17118                                                         save_libdir="$libdir"
17119               case "$found_la" in
17120                 */* | *\\*) . "$found_la" ;;
17121                 *) . "./$found_la" ;;
17122               esac
17123               libdir="$save_libdir"
17124                             for dep in $dependency_libs; do
17125                 case "$dep" in
17126                   -L*)
17127                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17128                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17129                       haveit=
17130                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17131                         if test -n "$GCC"; then
17132                           case $host_os in
17133                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17134                           esac
17135                         fi
17136                       fi
17137                       if test -z "$haveit"; then
17138                         haveit=
17139                         for x in $LDFLAGS $LIBICONV; do
17140
17141   acl_save_prefix="$prefix"
17142   prefix="$acl_final_prefix"
17143   acl_save_exec_prefix="$exec_prefix"
17144   exec_prefix="$acl_final_exec_prefix"
17145   eval x=\"$x\"
17146   exec_prefix="$acl_save_exec_prefix"
17147   prefix="$acl_save_prefix"
17148
17149                           if test "X$x" = "X-L$additional_libdir"; then
17150                             haveit=yes
17151                             break
17152                           fi
17153                         done
17154                         if test -z "$haveit"; then
17155                           if test -d "$additional_libdir"; then
17156                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17157                           fi
17158                         fi
17159                         haveit=
17160                         for x in $LDFLAGS $LTLIBICONV; do
17161
17162   acl_save_prefix="$prefix"
17163   prefix="$acl_final_prefix"
17164   acl_save_exec_prefix="$exec_prefix"
17165   exec_prefix="$acl_final_exec_prefix"
17166   eval x=\"$x\"
17167   exec_prefix="$acl_save_exec_prefix"
17168   prefix="$acl_save_prefix"
17169
17170                           if test "X$x" = "X-L$additional_libdir"; then
17171                             haveit=yes
17172                             break
17173                           fi
17174                         done
17175                         if test -z "$haveit"; then
17176                           if test -d "$additional_libdir"; then
17177                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17178                           fi
17179                         fi
17180                       fi
17181                     fi
17182                     ;;
17183                   -R*)
17184                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17185                     if test "$enable_rpath" != no; then
17186                                                                   haveit=
17187                       for x in $rpathdirs; do
17188                         if test "X$x" = "X$dir"; then
17189                           haveit=yes
17190                           break
17191                         fi
17192                       done
17193                       if test -z "$haveit"; then
17194                         rpathdirs="$rpathdirs $dir"
17195                       fi
17196                                                                   haveit=
17197                       for x in $ltrpathdirs; do
17198                         if test "X$x" = "X$dir"; then
17199                           haveit=yes
17200                           break
17201                         fi
17202                       done
17203                       if test -z "$haveit"; then
17204                         ltrpathdirs="$ltrpathdirs $dir"
17205                       fi
17206                     fi
17207                     ;;
17208                   -l*)
17209                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17210                     ;;
17211                   *.la)
17212                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17213                     ;;
17214                   *)
17215                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17216                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17217                     ;;
17218                 esac
17219               done
17220             fi
17221           else
17222                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17223             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17224           fi
17225         fi
17226       fi
17227     done
17228   done
17229   if test "X$rpathdirs" != "X"; then
17230     if test -n "$hardcode_libdir_separator"; then
17231                         alldirs=
17232       for found_dir in $rpathdirs; do
17233         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17234       done
17235             acl_save_libdir="$libdir"
17236       libdir="$alldirs"
17237       eval flag=\"$hardcode_libdir_flag_spec\"
17238       libdir="$acl_save_libdir"
17239       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17240     else
17241             for found_dir in $rpathdirs; do
17242         acl_save_libdir="$libdir"
17243         libdir="$found_dir"
17244         eval flag=\"$hardcode_libdir_flag_spec\"
17245         libdir="$acl_save_libdir"
17246         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17247       done
17248     fi
17249   fi
17250   if test "X$ltrpathdirs" != "X"; then
17251             for found_dir in $ltrpathdirs; do
17252       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17253     done
17254   fi
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17274 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17275 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17276   echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278   gt_save_CPPFLAGS="$CPPFLAGS"
17279      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17280      gt_save_LIBS="$LIBS"
17281      LIBS="$LIBS -framework CoreFoundation"
17282      cat >conftest.$ac_ext <<_ACEOF
17283 /* confdefs.h.  */
17284 _ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h.  */
17288 #include <CFPreferences.h>
17289 int
17290 main ()
17291 {
17292 CFPreferencesCopyAppValue(NULL, NULL)
17293   ;
17294   return 0;
17295 }
17296 _ACEOF
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (ac_try="$ac_link"
17299 case "(($ac_try" in
17300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301   *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304   (eval "$ac_link") 2>conftest.er1
17305   ac_status=$?
17306   grep -v '^ *+' conftest.er1 >conftest.err
17307   rm -f conftest.er1
17308   cat conftest.err >&5
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); } && {
17311          test -z "$ac_c_werror_flag" ||
17312          test ! -s conftest.err
17313        } && test -s conftest$ac_exeext &&
17314        $as_test_x conftest$ac_exeext; then
17315   gt_cv_func_CFPreferencesCopyAppValue=yes
17316 else
17317   echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17319
17320         gt_cv_func_CFPreferencesCopyAppValue=no
17321 fi
17322
17323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17324       conftest$ac_exeext conftest.$ac_ext
17325      CPPFLAGS="$gt_save_CPPFLAGS"
17326      LIBS="$gt_save_LIBS"
17327 fi
17328 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17329 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17330   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17331
17332 cat >>confdefs.h <<\_ACEOF
17333 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17334 _ACEOF
17335
17336   fi
17337     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17338 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17339 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17340   echo $ECHO_N "(cached) $ECHO_C" >&6
17341 else
17342   gt_save_CPPFLAGS="$CPPFLAGS"
17343      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17344      gt_save_LIBS="$LIBS"
17345      LIBS="$LIBS -framework CoreFoundation"
17346      cat >conftest.$ac_ext <<_ACEOF
17347 /* confdefs.h.  */
17348 _ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h.  */
17352 #include <CFLocale.h>
17353 int
17354 main ()
17355 {
17356 CFLocaleCopyCurrent();
17357   ;
17358   return 0;
17359 }
17360 _ACEOF
17361 rm -f conftest.$ac_objext conftest$ac_exeext
17362 if { (ac_try="$ac_link"
17363 case "(($ac_try" in
17364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365   *) ac_try_echo=$ac_try;;
17366 esac
17367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368   (eval "$ac_link") 2>conftest.er1
17369   ac_status=$?
17370   grep -v '^ *+' conftest.er1 >conftest.err
17371   rm -f conftest.er1
17372   cat conftest.err >&5
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); } && {
17375          test -z "$ac_c_werror_flag" ||
17376          test ! -s conftest.err
17377        } && test -s conftest$ac_exeext &&
17378        $as_test_x conftest$ac_exeext; then
17379   gt_cv_func_CFLocaleCopyCurrent=yes
17380 else
17381   echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17383
17384         gt_cv_func_CFLocaleCopyCurrent=no
17385 fi
17386
17387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17388       conftest$ac_exeext conftest.$ac_ext
17389      CPPFLAGS="$gt_save_CPPFLAGS"
17390      LIBS="$gt_save_LIBS"
17391 fi
17392 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17393 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17394   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17395
17396 cat >>confdefs.h <<\_ACEOF
17397 #define HAVE_CFLOCALECOPYCURRENT 1
17398 _ACEOF
17399
17400   fi
17401   INTL_MACOSX_LIBS=
17402   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17403     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17404   fi
17405
17406
17407
17408
17409   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17410 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17411     # Check whether --enable-nls was given.
17412 if test "${enable_nls+set}" = set; then
17413   enableval=$enable_nls; USE_NLS=$enableval
17414 else
17415   USE_NLS=yes
17416 fi
17417
17418   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17419 echo "${ECHO_T}$USE_NLS" >&6; }
17420
17421
17422
17423
17424   LIBINTL=
17425   LTLIBINTL=
17426   POSUB=
17427
17428     if test "$USE_NLS" = "yes"; then
17429     gt_use_preinstalled_gnugettext=no
17430
17431
17432
17433
17434
17435
17436         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17437 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17438 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17439   echo $ECHO_N "(cached) $ECHO_C" >&6
17440 else
17441   cat >conftest.$ac_ext <<_ACEOF
17442 /* confdefs.h.  */
17443 _ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h.  */
17447 #include <libintl.h>
17448 extern int _nl_msg_cat_cntr;
17449 extern int *_nl_domain_bindings;
17450 int
17451 main ()
17452 {
17453 bindtextdomain ("", "");
17454 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17455   ;
17456   return 0;
17457 }
17458 _ACEOF
17459 rm -f conftest.$ac_objext conftest$ac_exeext
17460 if { (ac_try="$ac_link"
17461 case "(($ac_try" in
17462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463   *) ac_try_echo=$ac_try;;
17464 esac
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466   (eval "$ac_link") 2>conftest.er1
17467   ac_status=$?
17468   grep -v '^ *+' conftest.er1 >conftest.err
17469   rm -f conftest.er1
17470   cat conftest.err >&5
17471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472   (exit $ac_status); } && {
17473          test -z "$ac_c_werror_flag" ||
17474          test ! -s conftest.err
17475        } && test -s conftest$ac_exeext &&
17476        $as_test_x conftest$ac_exeext; then
17477   gt_cv_func_gnugettext1_libc=yes
17478 else
17479   echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17481
17482         gt_cv_func_gnugettext1_libc=no
17483 fi
17484
17485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17486       conftest$ac_exeext conftest.$ac_ext
17487 fi
17488 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17489 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17490
17491         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17492
17493
17494
17495
17496
17497           am_save_CPPFLAGS="$CPPFLAGS"
17498
17499   for element in $INCICONV; do
17500     haveit=
17501     for x in $CPPFLAGS; do
17502
17503   acl_save_prefix="$prefix"
17504   prefix="$acl_final_prefix"
17505   acl_save_exec_prefix="$exec_prefix"
17506   exec_prefix="$acl_final_exec_prefix"
17507   eval x=\"$x\"
17508   exec_prefix="$acl_save_exec_prefix"
17509   prefix="$acl_save_prefix"
17510
17511       if test "X$x" = "X$element"; then
17512         haveit=yes
17513         break
17514       fi
17515     done
17516     if test -z "$haveit"; then
17517       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17518     fi
17519   done
17520
17521
17522   { echo "$as_me:$LINENO: checking for iconv" >&5
17523 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17524 if test "${am_cv_func_iconv+set}" = set; then
17525   echo $ECHO_N "(cached) $ECHO_C" >&6
17526 else
17527
17528     am_cv_func_iconv="no, consider installing GNU libiconv"
17529     am_cv_lib_iconv=no
17530     cat >conftest.$ac_ext <<_ACEOF
17531 /* confdefs.h.  */
17532 _ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h.  */
17536 #include <stdlib.h>
17537 #include <iconv.h>
17538 int
17539 main ()
17540 {
17541 iconv_t cd = iconv_open("","");
17542        iconv(cd,NULL,NULL,NULL,NULL);
17543        iconv_close(cd);
17544   ;
17545   return 0;
17546 }
17547 _ACEOF
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (ac_try="$ac_link"
17550 case "(($ac_try" in
17551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552   *) ac_try_echo=$ac_try;;
17553 esac
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555   (eval "$ac_link") 2>conftest.er1
17556   ac_status=$?
17557   grep -v '^ *+' conftest.er1 >conftest.err
17558   rm -f conftest.er1
17559   cat conftest.err >&5
17560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561   (exit $ac_status); } && {
17562          test -z "$ac_c_werror_flag" ||
17563          test ! -s conftest.err
17564        } && test -s conftest$ac_exeext &&
17565        $as_test_x conftest$ac_exeext; then
17566   am_cv_func_iconv=yes
17567 else
17568   echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17570
17571
17572 fi
17573
17574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17575       conftest$ac_exeext conftest.$ac_ext
17576     if test "$am_cv_func_iconv" != yes; then
17577       am_save_LIBS="$LIBS"
17578       LIBS="$LIBS $LIBICONV"
17579       cat >conftest.$ac_ext <<_ACEOF
17580 /* confdefs.h.  */
17581 _ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h.  */
17585 #include <stdlib.h>
17586 #include <iconv.h>
17587 int
17588 main ()
17589 {
17590 iconv_t cd = iconv_open("","");
17591          iconv(cd,NULL,NULL,NULL,NULL);
17592          iconv_close(cd);
17593   ;
17594   return 0;
17595 }
17596 _ACEOF
17597 rm -f conftest.$ac_objext conftest$ac_exeext
17598 if { (ac_try="$ac_link"
17599 case "(($ac_try" in
17600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601   *) ac_try_echo=$ac_try;;
17602 esac
17603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604   (eval "$ac_link") 2>conftest.er1
17605   ac_status=$?
17606   grep -v '^ *+' conftest.er1 >conftest.err
17607   rm -f conftest.er1
17608   cat conftest.err >&5
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); } && {
17611          test -z "$ac_c_werror_flag" ||
17612          test ! -s conftest.err
17613        } && test -s conftest$ac_exeext &&
17614        $as_test_x conftest$ac_exeext; then
17615   am_cv_lib_iconv=yes
17616         am_cv_func_iconv=yes
17617 else
17618   echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621
17622 fi
17623
17624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17625       conftest$ac_exeext conftest.$ac_ext
17626       LIBS="$am_save_LIBS"
17627     fi
17628
17629 fi
17630 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17631 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17632   if test "$am_cv_func_iconv" = yes; then
17633
17634 cat >>confdefs.h <<\_ACEOF
17635 #define HAVE_ICONV 1
17636 _ACEOF
17637
17638   fi
17639   if test "$am_cv_lib_iconv" = yes; then
17640     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17641 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17642     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17643 echo "${ECHO_T}$LIBICONV" >&6; }
17644   else
17645             CPPFLAGS="$am_save_CPPFLAGS"
17646     LIBICONV=
17647     LTLIBICONV=
17648   fi
17649
17650
17651
17652
17653
17654
17655     use_additional=yes
17656
17657   acl_save_prefix="$prefix"
17658   prefix="$acl_final_prefix"
17659   acl_save_exec_prefix="$exec_prefix"
17660   exec_prefix="$acl_final_exec_prefix"
17661
17662     eval additional_includedir=\"$includedir\"
17663     eval additional_libdir=\"$libdir\"
17664
17665   exec_prefix="$acl_save_exec_prefix"
17666   prefix="$acl_save_prefix"
17667
17668
17669 # Check whether --with-libintl-prefix was given.
17670 if test "${with_libintl_prefix+set}" = set; then
17671   withval=$with_libintl_prefix;
17672     if test "X$withval" = "Xno"; then
17673       use_additional=no
17674     else
17675       if test "X$withval" = "X"; then
17676
17677   acl_save_prefix="$prefix"
17678   prefix="$acl_final_prefix"
17679   acl_save_exec_prefix="$exec_prefix"
17680   exec_prefix="$acl_final_exec_prefix"
17681
17682           eval additional_includedir=\"$includedir\"
17683           eval additional_libdir=\"$libdir\"
17684
17685   exec_prefix="$acl_save_exec_prefix"
17686   prefix="$acl_save_prefix"
17687
17688       else
17689         additional_includedir="$withval/include"
17690         additional_libdir="$withval/lib"
17691       fi
17692     fi
17693
17694 fi
17695
17696       LIBINTL=
17697   LTLIBINTL=
17698   INCINTL=
17699   rpathdirs=
17700   ltrpathdirs=
17701   names_already_handled=
17702   names_next_round='intl '
17703   while test -n "$names_next_round"; do
17704     names_this_round="$names_next_round"
17705     names_next_round=
17706     for name in $names_this_round; do
17707       already_handled=
17708       for n in $names_already_handled; do
17709         if test "$n" = "$name"; then
17710           already_handled=yes
17711           break
17712         fi
17713       done
17714       if test -z "$already_handled"; then
17715         names_already_handled="$names_already_handled $name"
17716                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17717         eval value=\"\$HAVE_LIB$uppername\"
17718         if test -n "$value"; then
17719           if test "$value" = yes; then
17720             eval value=\"\$LIB$uppername\"
17721             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17722             eval value=\"\$LTLIB$uppername\"
17723             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17724           else
17725                                     :
17726           fi
17727         else
17728                               found_dir=
17729           found_la=
17730           found_so=
17731           found_a=
17732           if test $use_additional = yes; then
17733             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17734               found_dir="$additional_libdir"
17735               found_so="$additional_libdir/lib$name.$shlibext"
17736               if test -f "$additional_libdir/lib$name.la"; then
17737                 found_la="$additional_libdir/lib$name.la"
17738               fi
17739             else
17740               if test -f "$additional_libdir/lib$name.$libext"; then
17741                 found_dir="$additional_libdir"
17742                 found_a="$additional_libdir/lib$name.$libext"
17743                 if test -f "$additional_libdir/lib$name.la"; then
17744                   found_la="$additional_libdir/lib$name.la"
17745                 fi
17746               fi
17747             fi
17748           fi
17749           if test "X$found_dir" = "X"; then
17750             for x in $LDFLAGS $LTLIBINTL; do
17751
17752   acl_save_prefix="$prefix"
17753   prefix="$acl_final_prefix"
17754   acl_save_exec_prefix="$exec_prefix"
17755   exec_prefix="$acl_final_exec_prefix"
17756   eval x=\"$x\"
17757   exec_prefix="$acl_save_exec_prefix"
17758   prefix="$acl_save_prefix"
17759
17760               case "$x" in
17761                 -L*)
17762                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17763                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17764                     found_dir="$dir"
17765                     found_so="$dir/lib$name.$shlibext"
17766                     if test -f "$dir/lib$name.la"; then
17767                       found_la="$dir/lib$name.la"
17768                     fi
17769                   else
17770                     if test -f "$dir/lib$name.$libext"; then
17771                       found_dir="$dir"
17772                       found_a="$dir/lib$name.$libext"
17773                       if test -f "$dir/lib$name.la"; then
17774                         found_la="$dir/lib$name.la"
17775                       fi
17776                     fi
17777                   fi
17778                   ;;
17779               esac
17780               if test "X$found_dir" != "X"; then
17781                 break
17782               fi
17783             done
17784           fi
17785           if test "X$found_dir" != "X"; then
17786                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17787             if test "X$found_so" != "X"; then
17788                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17789                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17790               else
17791                                                                                 haveit=
17792                 for x in $ltrpathdirs; do
17793                   if test "X$x" = "X$found_dir"; then
17794                     haveit=yes
17795                     break
17796                   fi
17797                 done
17798                 if test -z "$haveit"; then
17799                   ltrpathdirs="$ltrpathdirs $found_dir"
17800                 fi
17801                                 if test "$hardcode_direct" = yes; then
17802                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17803                 else
17804                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17805                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17806                                                             haveit=
17807                     for x in $rpathdirs; do
17808                       if test "X$x" = "X$found_dir"; then
17809                         haveit=yes
17810                         break
17811                       fi
17812                     done
17813                     if test -z "$haveit"; then
17814                       rpathdirs="$rpathdirs $found_dir"
17815                     fi
17816                   else
17817                                                                                 haveit=
17818                     for x in $LDFLAGS $LIBINTL; do
17819
17820   acl_save_prefix="$prefix"
17821   prefix="$acl_final_prefix"
17822   acl_save_exec_prefix="$exec_prefix"
17823   exec_prefix="$acl_final_exec_prefix"
17824   eval x=\"$x\"
17825   exec_prefix="$acl_save_exec_prefix"
17826   prefix="$acl_save_prefix"
17827
17828                       if test "X$x" = "X-L$found_dir"; then
17829                         haveit=yes
17830                         break
17831                       fi
17832                     done
17833                     if test -z "$haveit"; then
17834                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17835                     fi
17836                     if test "$hardcode_minus_L" != no; then
17837                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17838                     else
17839                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17840                     fi
17841                   fi
17842                 fi
17843               fi
17844             else
17845               if test "X$found_a" != "X"; then
17846                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17847               else
17848                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17849               fi
17850             fi
17851                         additional_includedir=
17852             case "$found_dir" in
17853               */lib | */lib/)
17854                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17855                 additional_includedir="$basedir/include"
17856                 ;;
17857             esac
17858             if test "X$additional_includedir" != "X"; then
17859                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17860                 haveit=
17861                 if test "X$additional_includedir" = "X/usr/local/include"; then
17862                   if test -n "$GCC"; then
17863                     case $host_os in
17864                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17865                     esac
17866                   fi
17867                 fi
17868                 if test -z "$haveit"; then
17869                   for x in $CPPFLAGS $INCINTL; do
17870
17871   acl_save_prefix="$prefix"
17872   prefix="$acl_final_prefix"
17873   acl_save_exec_prefix="$exec_prefix"
17874   exec_prefix="$acl_final_exec_prefix"
17875   eval x=\"$x\"
17876   exec_prefix="$acl_save_exec_prefix"
17877   prefix="$acl_save_prefix"
17878
17879                     if test "X$x" = "X-I$additional_includedir"; then
17880                       haveit=yes
17881                       break
17882                     fi
17883                   done
17884                   if test -z "$haveit"; then
17885                     if test -d "$additional_includedir"; then
17886                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17887                     fi
17888                   fi
17889                 fi
17890               fi
17891             fi
17892                         if test -n "$found_la"; then
17893                                                         save_libdir="$libdir"
17894               case "$found_la" in
17895                 */* | *\\*) . "$found_la" ;;
17896                 *) . "./$found_la" ;;
17897               esac
17898               libdir="$save_libdir"
17899                             for dep in $dependency_libs; do
17900                 case "$dep" in
17901                   -L*)
17902                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17903                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17904                       haveit=
17905                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17906                         if test -n "$GCC"; then
17907                           case $host_os in
17908                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17909                           esac
17910                         fi
17911                       fi
17912                       if test -z "$haveit"; then
17913                         haveit=
17914                         for x in $LDFLAGS $LIBINTL; do
17915
17916   acl_save_prefix="$prefix"
17917   prefix="$acl_final_prefix"
17918   acl_save_exec_prefix="$exec_prefix"
17919   exec_prefix="$acl_final_exec_prefix"
17920   eval x=\"$x\"
17921   exec_prefix="$acl_save_exec_prefix"
17922   prefix="$acl_save_prefix"
17923
17924                           if test "X$x" = "X-L$additional_libdir"; then
17925                             haveit=yes
17926                             break
17927                           fi
17928                         done
17929                         if test -z "$haveit"; then
17930                           if test -d "$additional_libdir"; then
17931                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17932                           fi
17933                         fi
17934                         haveit=
17935                         for x in $LDFLAGS $LTLIBINTL; do
17936
17937   acl_save_prefix="$prefix"
17938   prefix="$acl_final_prefix"
17939   acl_save_exec_prefix="$exec_prefix"
17940   exec_prefix="$acl_final_exec_prefix"
17941   eval x=\"$x\"
17942   exec_prefix="$acl_save_exec_prefix"
17943   prefix="$acl_save_prefix"
17944
17945                           if test "X$x" = "X-L$additional_libdir"; then
17946                             haveit=yes
17947                             break
17948                           fi
17949                         done
17950                         if test -z "$haveit"; then
17951                           if test -d "$additional_libdir"; then
17952                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17953                           fi
17954                         fi
17955                       fi
17956                     fi
17957                     ;;
17958                   -R*)
17959                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17960                     if test "$enable_rpath" != no; then
17961                                                                   haveit=
17962                       for x in $rpathdirs; do
17963                         if test "X$x" = "X$dir"; then
17964                           haveit=yes
17965                           break
17966                         fi
17967                       done
17968                       if test -z "$haveit"; then
17969                         rpathdirs="$rpathdirs $dir"
17970                       fi
17971                                                                   haveit=
17972                       for x in $ltrpathdirs; do
17973                         if test "X$x" = "X$dir"; then
17974                           haveit=yes
17975                           break
17976                         fi
17977                       done
17978                       if test -z "$haveit"; then
17979                         ltrpathdirs="$ltrpathdirs $dir"
17980                       fi
17981                     fi
17982                     ;;
17983                   -l*)
17984                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17985                     ;;
17986                   *.la)
17987                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17988                     ;;
17989                   *)
17990                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17991                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17992                     ;;
17993                 esac
17994               done
17995             fi
17996           else
17997                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17998             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17999           fi
18000         fi
18001       fi
18002     done
18003   done
18004   if test "X$rpathdirs" != "X"; then
18005     if test -n "$hardcode_libdir_separator"; then
18006                         alldirs=
18007       for found_dir in $rpathdirs; do
18008         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18009       done
18010             acl_save_libdir="$libdir"
18011       libdir="$alldirs"
18012       eval flag=\"$hardcode_libdir_flag_spec\"
18013       libdir="$acl_save_libdir"
18014       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18015     else
18016             for found_dir in $rpathdirs; do
18017         acl_save_libdir="$libdir"
18018         libdir="$found_dir"
18019         eval flag=\"$hardcode_libdir_flag_spec\"
18020         libdir="$acl_save_libdir"
18021         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18022       done
18023     fi
18024   fi
18025   if test "X$ltrpathdirs" != "X"; then
18026             for found_dir in $ltrpathdirs; do
18027       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18028     done
18029   fi
18030
18031           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18032 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18033 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18034   echo $ECHO_N "(cached) $ECHO_C" >&6
18035 else
18036   gt_save_CPPFLAGS="$CPPFLAGS"
18037             CPPFLAGS="$CPPFLAGS $INCINTL"
18038             gt_save_LIBS="$LIBS"
18039             LIBS="$LIBS $LIBINTL"
18040                         cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h.  */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h.  */
18046 #include <libintl.h>
18047 extern int _nl_msg_cat_cntr;
18048 extern
18049 #ifdef __cplusplus
18050 "C"
18051 #endif
18052 const char *_nl_expand_alias (const char *);
18053 int
18054 main ()
18055 {
18056 bindtextdomain ("", "");
18057 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18058   ;
18059   return 0;
18060 }
18061 _ACEOF
18062 rm -f conftest.$ac_objext conftest$ac_exeext
18063 if { (ac_try="$ac_link"
18064 case "(($ac_try" in
18065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066   *) ac_try_echo=$ac_try;;
18067 esac
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069   (eval "$ac_link") 2>conftest.er1
18070   ac_status=$?
18071   grep -v '^ *+' conftest.er1 >conftest.err
18072   rm -f conftest.er1
18073   cat conftest.err >&5
18074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075   (exit $ac_status); } && {
18076          test -z "$ac_c_werror_flag" ||
18077          test ! -s conftest.err
18078        } && test -s conftest$ac_exeext &&
18079        $as_test_x conftest$ac_exeext; then
18080   gt_cv_func_gnugettext1_libintl=yes
18081 else
18082   echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18084
18085         gt_cv_func_gnugettext1_libintl=no
18086 fi
18087
18088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18089       conftest$ac_exeext conftest.$ac_ext
18090                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18091               LIBS="$LIBS $LIBICONV"
18092               cat >conftest.$ac_ext <<_ACEOF
18093 /* confdefs.h.  */
18094 _ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h.  */
18098 #include <libintl.h>
18099 extern int _nl_msg_cat_cntr;
18100 extern
18101 #ifdef __cplusplus
18102 "C"
18103 #endif
18104 const char *_nl_expand_alias (const char *);
18105 int
18106 main ()
18107 {
18108 bindtextdomain ("", "");
18109 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18110   ;
18111   return 0;
18112 }
18113 _ACEOF
18114 rm -f conftest.$ac_objext conftest$ac_exeext
18115 if { (ac_try="$ac_link"
18116 case "(($ac_try" in
18117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118   *) ac_try_echo=$ac_try;;
18119 esac
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121   (eval "$ac_link") 2>conftest.er1
18122   ac_status=$?
18123   grep -v '^ *+' conftest.er1 >conftest.err
18124   rm -f conftest.er1
18125   cat conftest.err >&5
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); } && {
18128          test -z "$ac_c_werror_flag" ||
18129          test ! -s conftest.err
18130        } && test -s conftest$ac_exeext &&
18131        $as_test_x conftest$ac_exeext; then
18132   LIBINTL="$LIBINTL $LIBICONV"
18133                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18134                 gt_cv_func_gnugettext1_libintl=yes
18135
18136 else
18137   echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18139
18140
18141 fi
18142
18143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18144       conftest$ac_exeext conftest.$ac_ext
18145             fi
18146             CPPFLAGS="$gt_save_CPPFLAGS"
18147             LIBS="$gt_save_LIBS"
18148 fi
18149 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18150 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18151         fi
18152
18153                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18154            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18155                 && test "$PACKAGE" != gettext-runtime \
18156                 && test "$PACKAGE" != gettext-tools; }; then
18157           gt_use_preinstalled_gnugettext=yes
18158         else
18159                     LIBINTL=
18160           LTLIBINTL=
18161           INCINTL=
18162         fi
18163
18164
18165
18166     if test -n "$INTL_MACOSX_LIBS"; then
18167       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18168          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18169                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18170         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18171       fi
18172     fi
18173
18174     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18175        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18176
18177 cat >>confdefs.h <<\_ACEOF
18178 #define ENABLE_NLS 1
18179 _ACEOF
18180
18181     else
18182       USE_NLS=no
18183     fi
18184   fi
18185
18186   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18187 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18188   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18189 echo "${ECHO_T}$USE_NLS" >&6; }
18190   if test "$USE_NLS" = "yes"; then
18191     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18192 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18193     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18194       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18195         gt_source="external libintl"
18196       else
18197         gt_source="libc"
18198       fi
18199     else
18200       gt_source="included intl directory"
18201     fi
18202     { echo "$as_me:$LINENO: result: $gt_source" >&5
18203 echo "${ECHO_T}$gt_source" >&6; }
18204   fi
18205
18206   if test "$USE_NLS" = "yes"; then
18207
18208     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18209       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18210         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18211 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18212         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18213 echo "${ECHO_T}$LIBINTL" >&6; }
18214
18215   for element in $INCINTL; do
18216     haveit=
18217     for x in $CPPFLAGS; do
18218
18219   acl_save_prefix="$prefix"
18220   prefix="$acl_final_prefix"
18221   acl_save_exec_prefix="$exec_prefix"
18222   exec_prefix="$acl_final_exec_prefix"
18223   eval x=\"$x\"
18224   exec_prefix="$acl_save_exec_prefix"
18225   prefix="$acl_save_prefix"
18226
18227       if test "X$x" = "X$element"; then
18228         haveit=yes
18229         break
18230       fi
18231     done
18232     if test -z "$haveit"; then
18233       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18234     fi
18235   done
18236
18237       fi
18238
18239
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE_GETTEXT 1
18242 _ACEOF
18243
18244
18245 cat >>confdefs.h <<\_ACEOF
18246 #define HAVE_DCGETTEXT 1
18247 _ACEOF
18248
18249     fi
18250
18251         POSUB=po
18252   fi
18253
18254
18255
18256     INTLLIBS="$LIBINTL"
18257
18258
18259
18260
18261
18262
18263 if test x${prefix} = xNONE ; then
18264    if test `eval echo ${datarootdir}` = NONE/share ; then
18265       datarootdir=/usr/share
18266    fi
18267 fi
18268
18269 if test x${prefix} = xNONE ; then
18270    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18271       sysconfdir=/etc/bacula
18272    fi
18273
18274    if test `eval echo ${libdir}` = NONE/lib ; then
18275       libdir=/usr/lib
18276    fi
18277
18278    if test `eval echo ${includedir}` = NONE/include ; then
18279       includedir=/usr/include
18280    fi
18281
18282    prefix=
18283 fi
18284
18285 if test x${exec_prefix} = xNONE ; then
18286    exec_prefix=${prefix}
18287 fi
18288
18289 sysconfdir=`eval echo ${sysconfdir}`
18290 datarootdir=`eval echo ${datarootdir}`
18291 libdir=`eval echo ${libdir}`
18292 includedir=`eval echo ${includedir}`
18293 localedir=`eval echo ${datarootdir}/locale`
18294 cat >>confdefs.h <<_ACEOF
18295 #define SYSCONFDIR "$sysconfdir"
18296 _ACEOF
18297
18298 cat >>confdefs.h <<_ACEOF
18299 #define LOCALEDIR "$localedir"
18300 _ACEOF
18301
18302
18303 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18304    sbindir=${exec_prefix}/sbin
18305 fi
18306 sbindir=`eval echo ${sbindir}`
18307
18308 if test x$mandir = x'${prefix}/man' ; then
18309    mandir=/usr/share/man
18310 fi
18311
18312 for ac_prog in msgfmt
18313 do
18314   # Extract the first word of "$ac_prog", so it can be a program name with args.
18315 set dummy $ac_prog; ac_word=$2
18316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18318 if test "${ac_cv_path_MSGFMT+set}" = set; then
18319   echo $ECHO_N "(cached) $ECHO_C" >&6
18320 else
18321   case $MSGFMT in
18322   [\\/]* | ?:[\\/]*)
18323   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18324   ;;
18325   *)
18326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18327 for as_dir in $PATH
18328 do
18329   IFS=$as_save_IFS
18330   test -z "$as_dir" && as_dir=.
18331   for ac_exec_ext in '' $ac_executable_extensions; do
18332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18333     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18335     break 2
18336   fi
18337 done
18338 done
18339 IFS=$as_save_IFS
18340
18341   ;;
18342 esac
18343 fi
18344 MSGFMT=$ac_cv_path_MSGFMT
18345 if test -n "$MSGFMT"; then
18346   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18347 echo "${ECHO_T}$MSGFMT" >&6; }
18348 else
18349   { echo "$as_me:$LINENO: result: no" >&5
18350 echo "${ECHO_T}no" >&6; }
18351 fi
18352
18353
18354   test -n "$MSGFMT" && break
18355 done
18356 test -n "$MSGFMT" || MSGFMT="no"
18357
18358 if test "$MSGFMT" = "no"
18359 then
18360    echo 'msgfmt program not found, disabling NLS !'
18361    USE_NLS=no
18362    USE_INCLUDED_LIBINTL=no
18363 #else
18364
18365     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18366 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18367 if test "${ac_cv_gnu_library_2+set}" = set; then
18368   echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370   cat >conftest.$ac_ext <<_ACEOF
18371 /* confdefs.h.  */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h.  */
18376
18377 #include <features.h>
18378 #ifdef __GNU_LIBRARY__
18379  #if (__GLIBC__ >= 2)
18380   Lucky GNU user
18381  #endif
18382 #endif
18383
18384 _ACEOF
18385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18386   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18387   ac_cv_gnu_library_2=yes
18388 else
18389   ac_cv_gnu_library_2=no
18390 fi
18391 rm -f conftest*
18392
18393
18394
18395 fi
18396 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18397 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18398
18399     GLIBC2="$ac_cv_gnu_library_2"
18400
18401
18402 if test -n "$ac_tool_prefix"; then
18403   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18404 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18407 if test "${ac_cv_prog_RANLIB+set}" = set; then
18408   echo $ECHO_N "(cached) $ECHO_C" >&6
18409 else
18410   if test -n "$RANLIB"; then
18411   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18412 else
18413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18414 for as_dir in $PATH
18415 do
18416   IFS=$as_save_IFS
18417   test -z "$as_dir" && as_dir=.
18418   for ac_exec_ext in '' $ac_executable_extensions; do
18419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18420     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18422     break 2
18423   fi
18424 done
18425 done
18426 IFS=$as_save_IFS
18427
18428 fi
18429 fi
18430 RANLIB=$ac_cv_prog_RANLIB
18431 if test -n "$RANLIB"; then
18432   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18433 echo "${ECHO_T}$RANLIB" >&6; }
18434 else
18435   { echo "$as_me:$LINENO: result: no" >&5
18436 echo "${ECHO_T}no" >&6; }
18437 fi
18438
18439
18440 fi
18441 if test -z "$ac_cv_prog_RANLIB"; then
18442   ac_ct_RANLIB=$RANLIB
18443   # Extract the first word of "ranlib", so it can be a program name with args.
18444 set dummy ranlib; ac_word=$2
18445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18447 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18448   echo $ECHO_N "(cached) $ECHO_C" >&6
18449 else
18450   if test -n "$ac_ct_RANLIB"; then
18451   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18452 else
18453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18454 for as_dir in $PATH
18455 do
18456   IFS=$as_save_IFS
18457   test -z "$as_dir" && as_dir=.
18458   for ac_exec_ext in '' $ac_executable_extensions; do
18459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18460     ac_cv_prog_ac_ct_RANLIB="ranlib"
18461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18462     break 2
18463   fi
18464 done
18465 done
18466 IFS=$as_save_IFS
18467
18468 fi
18469 fi
18470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18471 if test -n "$ac_ct_RANLIB"; then
18472   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18473 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18474 else
18475   { echo "$as_me:$LINENO: result: no" >&5
18476 echo "${ECHO_T}no" >&6; }
18477 fi
18478
18479   if test "x$ac_ct_RANLIB" = x; then
18480     RANLIB=":"
18481   else
18482     case $cross_compiling:$ac_tool_warned in
18483 yes:)
18484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18485 whose name does not start with the host triplet.  If you think this
18486 configuration is useful to you, please write to autoconf@gnu.org." >&5
18487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18488 whose name does not start with the host triplet.  If you think this
18489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18490 ac_tool_warned=yes ;;
18491 esac
18492     RANLIB=$ac_ct_RANLIB
18493   fi
18494 else
18495   RANLIB="$ac_cv_prog_RANLIB"
18496 fi
18497
18498
18499         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18500 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18501 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18502   echo $ECHO_N "(cached) $ECHO_C" >&6
18503 else
18504   ac_check_lib_save_LIBS=$LIBS
18505 LIBS="-lcposix  $LIBS"
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h.  */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h.  */
18512
18513 /* Override any GCC internal prototype to avoid an error.
18514    Use char because int might match the return type of a GCC
18515    builtin and then its argument prototype would still apply.  */
18516 #ifdef __cplusplus
18517 extern "C"
18518 #endif
18519 char strerror ();
18520 int
18521 main ()
18522 {
18523 return strerror ();
18524   ;
18525   return 0;
18526 }
18527 _ACEOF
18528 rm -f conftest.$ac_objext conftest$ac_exeext
18529 if { (ac_try="$ac_link"
18530 case "(($ac_try" in
18531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532   *) ac_try_echo=$ac_try;;
18533 esac
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535   (eval "$ac_link") 2>conftest.er1
18536   ac_status=$?
18537   grep -v '^ *+' conftest.er1 >conftest.err
18538   rm -f conftest.er1
18539   cat conftest.err >&5
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); } && {
18542          test -z "$ac_c_werror_flag" ||
18543          test ! -s conftest.err
18544        } && test -s conftest$ac_exeext &&
18545        $as_test_x conftest$ac_exeext; then
18546   ac_cv_lib_cposix_strerror=yes
18547 else
18548   echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18550
18551         ac_cv_lib_cposix_strerror=no
18552 fi
18553
18554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18555       conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18557 fi
18558 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18559 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18560 if test $ac_cv_lib_cposix_strerror = yes; then
18561   LIBS="$LIBS -lcposix"
18562 fi
18563
18564
18565
18566 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18567 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18568 if test "${ac_cv_c_const+set}" = set; then
18569   echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571   cat >conftest.$ac_ext <<_ACEOF
18572 /* confdefs.h.  */
18573 _ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h.  */
18577
18578 int
18579 main ()
18580 {
18581 /* FIXME: Include the comments suggested by Paul. */
18582 #ifndef __cplusplus
18583   /* Ultrix mips cc rejects this.  */
18584   typedef int charset[2];
18585   const charset cs;
18586   /* SunOS 4.1.1 cc rejects this.  */
18587   char const *const *pcpcc;
18588   char **ppc;
18589   /* NEC SVR4.0.2 mips cc rejects this.  */
18590   struct point {int x, y;};
18591   static struct point const zero = {0,0};
18592   /* AIX XL C 1.02.0.0 rejects this.
18593      It does not let you subtract one const X* pointer from another in
18594      an arm of an if-expression whose if-part is not a constant
18595      expression */
18596   const char *g = "string";
18597   pcpcc = &g + (g ? g-g : 0);
18598   /* HPUX 7.0 cc rejects these. */
18599   ++pcpcc;
18600   ppc = (char**) pcpcc;
18601   pcpcc = (char const *const *) ppc;
18602   { /* SCO 3.2v4 cc rejects this.  */
18603     char *t;
18604     char const *s = 0 ? (char *) 0 : (char const *) 0;
18605
18606     *t++ = 0;
18607     if (s) return 0;
18608   }
18609   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18610     int x[] = {25, 17};
18611     const int *foo = &x[0];
18612     ++foo;
18613   }
18614   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18615     typedef const int *iptr;
18616     iptr p = 0;
18617     ++p;
18618   }
18619   { /* AIX XL C 1.02.0.0 rejects this saying
18620        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18621     struct s { int j; const int *ap[3]; };
18622     struct s *b; b->j = 5;
18623   }
18624   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18625     const int foo = 10;
18626     if (!foo) return 0;
18627   }
18628   return !cs[0] && !zero.x;
18629 #endif
18630
18631   ;
18632   return 0;
18633 }
18634 _ACEOF
18635 rm -f conftest.$ac_objext
18636 if { (ac_try="$ac_compile"
18637 case "(($ac_try" in
18638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639   *) ac_try_echo=$ac_try;;
18640 esac
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642   (eval "$ac_compile") 2>conftest.er1
18643   ac_status=$?
18644   grep -v '^ *+' conftest.er1 >conftest.err
18645   rm -f conftest.er1
18646   cat conftest.err >&5
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); } && {
18649          test -z "$ac_c_werror_flag" ||
18650          test ! -s conftest.err
18651        } && test -s conftest.$ac_objext; then
18652   ac_cv_c_const=yes
18653 else
18654   echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18656
18657         ac_cv_c_const=no
18658 fi
18659
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18661 fi
18662 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18663 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18664 if test $ac_cv_c_const = no; then
18665
18666 cat >>confdefs.h <<\_ACEOF
18667 #define const
18668 _ACEOF
18669
18670 fi
18671
18672
18673   { echo "$as_me:$LINENO: checking for signed" >&5
18674 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18675 if test "${bh_cv_c_signed+set}" = set; then
18676   echo $ECHO_N "(cached) $ECHO_C" >&6
18677 else
18678   cat >conftest.$ac_ext <<_ACEOF
18679 /* confdefs.h.  */
18680 _ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h.  */
18684
18685 int
18686 main ()
18687 {
18688 signed char x;
18689   ;
18690   return 0;
18691 }
18692 _ACEOF
18693 rm -f conftest.$ac_objext
18694 if { (ac_try="$ac_compile"
18695 case "(($ac_try" in
18696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697   *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700   (eval "$ac_compile") 2>conftest.er1
18701   ac_status=$?
18702   grep -v '^ *+' conftest.er1 >conftest.err
18703   rm -f conftest.er1
18704   cat conftest.err >&5
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); } && {
18707          test -z "$ac_c_werror_flag" ||
18708          test ! -s conftest.err
18709        } && test -s conftest.$ac_objext; then
18710   bh_cv_c_signed=yes
18711 else
18712   echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715         bh_cv_c_signed=no
18716 fi
18717
18718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18719 fi
18720 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18721 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18722   if test $bh_cv_c_signed = no; then
18723
18724 cat >>confdefs.h <<\_ACEOF
18725 #define signed
18726 _ACEOF
18727
18728   fi
18729
18730 { echo "$as_me:$LINENO: checking for inline" >&5
18731 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18732 if test "${ac_cv_c_inline+set}" = set; then
18733   echo $ECHO_N "(cached) $ECHO_C" >&6
18734 else
18735   ac_cv_c_inline=no
18736 for ac_kw in inline __inline__ __inline; do
18737   cat >conftest.$ac_ext <<_ACEOF
18738 /* confdefs.h.  */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h.  */
18743 #ifndef __cplusplus
18744 typedef int foo_t;
18745 static $ac_kw foo_t static_foo () {return 0; }
18746 $ac_kw foo_t foo () {return 0; }
18747 #endif
18748
18749 _ACEOF
18750 rm -f conftest.$ac_objext
18751 if { (ac_try="$ac_compile"
18752 case "(($ac_try" in
18753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754   *) ac_try_echo=$ac_try;;
18755 esac
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757   (eval "$ac_compile") 2>conftest.er1
18758   ac_status=$?
18759   grep -v '^ *+' conftest.er1 >conftest.err
18760   rm -f conftest.er1
18761   cat conftest.err >&5
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); } && {
18764          test -z "$ac_c_werror_flag" ||
18765          test ! -s conftest.err
18766        } && test -s conftest.$ac_objext; then
18767   ac_cv_c_inline=$ac_kw
18768 else
18769   echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18771
18772
18773 fi
18774
18775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18776   test "$ac_cv_c_inline" != no && break
18777 done
18778
18779 fi
18780 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18781 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18782
18783
18784 case $ac_cv_c_inline in
18785   inline | yes) ;;
18786   *)
18787     case $ac_cv_c_inline in
18788       no) ac_val=;;
18789       *) ac_val=$ac_cv_c_inline;;
18790     esac
18791     cat >>confdefs.h <<_ACEOF
18792 #ifndef __cplusplus
18793 #define inline $ac_val
18794 #endif
18795 _ACEOF
18796     ;;
18797 esac
18798
18799 { echo "$as_me:$LINENO: checking for off_t" >&5
18800 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18801 if test "${ac_cv_type_off_t+set}" = set; then
18802   echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804   cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810 $ac_includes_default
18811 typedef off_t ac__type_new_;
18812 int
18813 main ()
18814 {
18815 if ((ac__type_new_ *) 0)
18816   return 0;
18817 if (sizeof (ac__type_new_))
18818   return 0;
18819   ;
18820   return 0;
18821 }
18822 _ACEOF
18823 rm -f conftest.$ac_objext
18824 if { (ac_try="$ac_compile"
18825 case "(($ac_try" in
18826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827   *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830   (eval "$ac_compile") 2>conftest.er1
18831   ac_status=$?
18832   grep -v '^ *+' conftest.er1 >conftest.err
18833   rm -f conftest.er1
18834   cat conftest.err >&5
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); } && {
18837          test -z "$ac_c_werror_flag" ||
18838          test ! -s conftest.err
18839        } && test -s conftest.$ac_objext; then
18840   ac_cv_type_off_t=yes
18841 else
18842   echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18844
18845         ac_cv_type_off_t=no
18846 fi
18847
18848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18849 fi
18850 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18851 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18852 if test $ac_cv_type_off_t = yes; then
18853   :
18854 else
18855
18856 cat >>confdefs.h <<_ACEOF
18857 #define off_t long int
18858 _ACEOF
18859
18860 fi
18861
18862 { echo "$as_me:$LINENO: checking for size_t" >&5
18863 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18864 if test "${ac_cv_type_size_t+set}" = set; then
18865   echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18867   cat >conftest.$ac_ext <<_ACEOF
18868 /* confdefs.h.  */
18869 _ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h.  */
18873 $ac_includes_default
18874 typedef size_t ac__type_new_;
18875 int
18876 main ()
18877 {
18878 if ((ac__type_new_ *) 0)
18879   return 0;
18880 if (sizeof (ac__type_new_))
18881   return 0;
18882   ;
18883   return 0;
18884 }
18885 _ACEOF
18886 rm -f conftest.$ac_objext
18887 if { (ac_try="$ac_compile"
18888 case "(($ac_try" in
18889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890   *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893   (eval "$ac_compile") 2>conftest.er1
18894   ac_status=$?
18895   grep -v '^ *+' conftest.er1 >conftest.err
18896   rm -f conftest.er1
18897   cat conftest.err >&5
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); } && {
18900          test -z "$ac_c_werror_flag" ||
18901          test ! -s conftest.err
18902        } && test -s conftest.$ac_objext; then
18903   ac_cv_type_size_t=yes
18904 else
18905   echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18907
18908         ac_cv_type_size_t=no
18909 fi
18910
18911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912 fi
18913 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18914 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18915 if test $ac_cv_type_size_t = yes; then
18916   :
18917 else
18918
18919 cat >>confdefs.h <<_ACEOF
18920 #define size_t unsigned int
18921 _ACEOF
18922
18923 fi
18924
18925
18926   { echo "$as_me:$LINENO: checking for long long" >&5
18927 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18928 if test "${ac_cv_type_long_long+set}" = set; then
18929   echo $ECHO_N "(cached) $ECHO_C" >&6
18930 else
18931   cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h.  */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h.  */
18937 long long ll = 1LL; int i = 63;
18938 int
18939 main ()
18940 {
18941 long long llmax = (long long) -1;
18942      return ll << i | ll >> i | llmax / ll | llmax % ll;
18943   ;
18944   return 0;
18945 }
18946 _ACEOF
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951   *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954   (eval "$ac_link") 2>conftest.er1
18955   ac_status=$?
18956   grep -v '^ *+' conftest.er1 >conftest.err
18957   rm -f conftest.er1
18958   cat conftest.err >&5
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } && {
18961          test -z "$ac_c_werror_flag" ||
18962          test ! -s conftest.err
18963        } && test -s conftest$ac_exeext &&
18964        $as_test_x conftest$ac_exeext; then
18965   ac_cv_type_long_long=yes
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970         ac_cv_type_long_long=no
18971 fi
18972
18973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18974       conftest$ac_exeext conftest.$ac_ext
18975 fi
18976 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18977 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18978   if test $ac_cv_type_long_long = yes; then
18979
18980 cat >>confdefs.h <<\_ACEOF
18981 #define HAVE_LONG_LONG 1
18982 _ACEOF
18983
18984   fi
18985
18986
18987   { echo "$as_me:$LINENO: checking for long double" >&5
18988 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18989 if test "${gt_cv_c_long_double+set}" = set; then
18990   echo $ECHO_N "(cached) $ECHO_C" >&6
18991 else
18992   if test "$GCC" = yes; then
18993        gt_cv_c_long_double=yes
18994      else
18995        cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h.  */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h.  */
19001
19002          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19003          long double foo = 0.0;
19004          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19005          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19006
19007 int
19008 main ()
19009 {
19010
19011   ;
19012   return 0;
19013 }
19014 _ACEOF
19015 rm -f conftest.$ac_objext
19016 if { (ac_try="$ac_compile"
19017 case "(($ac_try" in
19018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019   *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022   (eval "$ac_compile") 2>conftest.er1
19023   ac_status=$?
19024   grep -v '^ *+' conftest.er1 >conftest.err
19025   rm -f conftest.er1
19026   cat conftest.err >&5
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); } && {
19029          test -z "$ac_c_werror_flag" ||
19030          test ! -s conftest.err
19031        } && test -s conftest.$ac_objext; then
19032   gt_cv_c_long_double=yes
19033 else
19034   echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19036
19037         gt_cv_c_long_double=no
19038 fi
19039
19040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19041      fi
19042 fi
19043 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19044 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19045   if test $gt_cv_c_long_double = yes; then
19046
19047 cat >>confdefs.h <<\_ACEOF
19048 #define HAVE_LONG_DOUBLE 1
19049 _ACEOF
19050
19051   fi
19052
19053
19054   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19055 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19056 if test "${gt_cv_c_wchar_t+set}" = set; then
19057   echo $ECHO_N "(cached) $ECHO_C" >&6
19058 else
19059   cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h.  */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h.  */
19065 #include <stddef.h>
19066        wchar_t foo = (wchar_t)'\0';
19067 int
19068 main ()
19069 {
19070
19071   ;
19072   return 0;
19073 }
19074 _ACEOF
19075 rm -f conftest.$ac_objext
19076 if { (ac_try="$ac_compile"
19077 case "(($ac_try" in
19078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079   *) ac_try_echo=$ac_try;;
19080 esac
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082   (eval "$ac_compile") 2>conftest.er1
19083   ac_status=$?
19084   grep -v '^ *+' conftest.er1 >conftest.err
19085   rm -f conftest.er1
19086   cat conftest.err >&5
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); } && {
19089          test -z "$ac_c_werror_flag" ||
19090          test ! -s conftest.err
19091        } && test -s conftest.$ac_objext; then
19092   gt_cv_c_wchar_t=yes
19093 else
19094   echo "$as_me: failed program was:" >&5
19095 sed 's/^/| /' conftest.$ac_ext >&5
19096
19097         gt_cv_c_wchar_t=no
19098 fi
19099
19100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19101 fi
19102 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19103 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19104   if test $gt_cv_c_wchar_t = yes; then
19105
19106 cat >>confdefs.h <<\_ACEOF
19107 #define HAVE_WCHAR_T 1
19108 _ACEOF
19109
19110   fi
19111
19112
19113   { echo "$as_me:$LINENO: checking for wint_t" >&5
19114 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19115 if test "${gt_cv_c_wint_t+set}" = set; then
19116   echo $ECHO_N "(cached) $ECHO_C" >&6
19117 else
19118   cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h.  */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h.  */
19124 #include <wchar.h>
19125        wint_t foo = (wchar_t)'\0';
19126 int
19127 main ()
19128 {
19129
19130   ;
19131   return 0;
19132 }
19133 _ACEOF
19134 rm -f conftest.$ac_objext
19135 if { (ac_try="$ac_compile"
19136 case "(($ac_try" in
19137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138   *) ac_try_echo=$ac_try;;
19139 esac
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141   (eval "$ac_compile") 2>conftest.er1
19142   ac_status=$?
19143   grep -v '^ *+' conftest.er1 >conftest.err
19144   rm -f conftest.er1
19145   cat conftest.err >&5
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); } && {
19148          test -z "$ac_c_werror_flag" ||
19149          test ! -s conftest.err
19150        } && test -s conftest.$ac_objext; then
19151   gt_cv_c_wint_t=yes
19152 else
19153   echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19155
19156         gt_cv_c_wint_t=no
19157 fi
19158
19159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19160 fi
19161 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19162 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19163   if test $gt_cv_c_wint_t = yes; then
19164
19165 cat >>confdefs.h <<\_ACEOF
19166 #define HAVE_WINT_T 1
19167 _ACEOF
19168
19169   fi
19170
19171
19172   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19173 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19174 if test "${gl_cv_header_inttypes_h+set}" = set; then
19175   echo $ECHO_N "(cached) $ECHO_C" >&6
19176 else
19177   cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h.  */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h.  */
19183 #include <sys/types.h>
19184 #include <inttypes.h>
19185 int
19186 main ()
19187 {
19188 uintmax_t i = (uintmax_t) -1;
19189   ;
19190   return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest.$ac_objext
19194 if { (ac_try="$ac_compile"
19195 case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_compile") 2>conftest.er1
19201   ac_status=$?
19202   grep -v '^ *+' conftest.er1 >conftest.err
19203   rm -f conftest.er1
19204   cat conftest.err >&5
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); } && {
19207          test -z "$ac_c_werror_flag" ||
19208          test ! -s conftest.err
19209        } && test -s conftest.$ac_objext; then
19210   gl_cv_header_inttypes_h=yes
19211 else
19212   echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19214
19215         gl_cv_header_inttypes_h=no
19216 fi
19217
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219 fi
19220 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19221 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19222   if test $gl_cv_header_inttypes_h = yes; then
19223
19224 cat >>confdefs.h <<_ACEOF
19225 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19226 _ACEOF
19227
19228   fi
19229
19230
19231   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19232 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19233 if test "${gl_cv_header_stdint_h+set}" = set; then
19234   echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236   cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h.  */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h.  */
19242 #include <sys/types.h>
19243 #include <stdint.h>
19244 int
19245 main ()
19246 {
19247 uintmax_t i = (uintmax_t) -1;
19248   ;
19249   return 0;
19250 }
19251 _ACEOF
19252 rm -f conftest.$ac_objext
19253 if { (ac_try="$ac_compile"
19254 case "(($ac_try" in
19255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256   *) ac_try_echo=$ac_try;;
19257 esac
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259   (eval "$ac_compile") 2>conftest.er1
19260   ac_status=$?
19261   grep -v '^ *+' conftest.er1 >conftest.err
19262   rm -f conftest.er1
19263   cat conftest.err >&5
19264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265   (exit $ac_status); } && {
19266          test -z "$ac_c_werror_flag" ||
19267          test ! -s conftest.err
19268        } && test -s conftest.$ac_objext; then
19269   gl_cv_header_stdint_h=yes
19270 else
19271   echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19273
19274         gl_cv_header_stdint_h=no
19275 fi
19276
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19278 fi
19279 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19280 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19281   if test $gl_cv_header_stdint_h = yes; then
19282
19283 cat >>confdefs.h <<_ACEOF
19284 #define HAVE_STDINT_H_WITH_UINTMAX 1
19285 _ACEOF
19286
19287   fi
19288
19289
19290
19291
19292   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19293 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19294 if test "${gt_cv_c_intmax_t+set}" = set; then
19295   echo $ECHO_N "(cached) $ECHO_C" >&6
19296 else
19297   cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h.  */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h.  */
19303
19304 #include <stddef.h>
19305 #include <stdlib.h>
19306 #if HAVE_STDINT_H_WITH_UINTMAX
19307 #include <stdint.h>
19308 #endif
19309 #if HAVE_INTTYPES_H_WITH_UINTMAX
19310 #include <inttypes.h>
19311 #endif
19312
19313 int
19314 main ()
19315 {
19316 intmax_t x = -1;
19317   ;
19318   return 0;
19319 }
19320 _ACEOF
19321 rm -f conftest.$ac_objext
19322 if { (ac_try="$ac_compile"
19323 case "(($ac_try" in
19324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325   *) ac_try_echo=$ac_try;;
19326 esac
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328   (eval "$ac_compile") 2>conftest.er1
19329   ac_status=$?
19330   grep -v '^ *+' conftest.er1 >conftest.err
19331   rm -f conftest.er1
19332   cat conftest.err >&5
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); } && {
19335          test -z "$ac_c_werror_flag" ||
19336          test ! -s conftest.err
19337        } && test -s conftest.$ac_objext; then
19338   gt_cv_c_intmax_t=yes
19339 else
19340   echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19342
19343         gt_cv_c_intmax_t=no
19344 fi
19345
19346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19347 fi
19348 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19349 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19350   if test $gt_cv_c_intmax_t = yes; then
19351
19352 cat >>confdefs.h <<\_ACEOF
19353 #define HAVE_INTMAX_T 1
19354 _ACEOF
19355
19356   fi
19357
19358
19359
19360   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19361 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19362 if test "${gt_cv_func_printf_posix+set}" = set; then
19363   echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365
19366       if test "$cross_compiling" = yes; then
19367
19368         cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h.  */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h.  */
19374
19375 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19376   notposix
19377 #endif
19378
19379 _ACEOF
19380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19381   $EGREP "notposix" >/dev/null 2>&1; then
19382   gt_cv_func_printf_posix="guessing no"
19383 else
19384   gt_cv_func_printf_posix="guessing yes"
19385 fi
19386 rm -f conftest*
19387
19388
19389 else
19390   cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h.  */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h.  */
19396
19397 #include <stdio.h>
19398 #include <string.h>
19399 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19400    dollar expansion (possibly an autoconf bug).  */
19401 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19402 static char buf[100];
19403 int main ()
19404 {
19405   sprintf (buf, format, 33, 55);
19406   return (strcmp (buf, "55 33") != 0);
19407 }
19408 _ACEOF
19409 rm -f conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413   *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416   (eval "$ac_link") 2>&5
19417   ac_status=$?
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19420   { (case "(($ac_try" in
19421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422   *) ac_try_echo=$ac_try;;
19423 esac
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425   (eval "$ac_try") 2>&5
19426   ac_status=$?
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); }; }; then
19429   gt_cv_func_printf_posix=yes
19430 else
19431   echo "$as_me: program exited with status $ac_status" >&5
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19434
19435 ( exit $ac_status )
19436 gt_cv_func_printf_posix=no
19437 fi
19438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19439 fi
19440
19441
19442
19443 fi
19444 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19445 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19446   case $gt_cv_func_printf_posix in
19447     *yes)
19448
19449 cat >>confdefs.h <<\_ACEOF
19450 #define HAVE_POSIX_PRINTF 1
19451 _ACEOF
19452
19453       ;;
19454   esac
19455
19456 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19457 # for constant arguments.  Useless!
19458 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19459 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19460 if test "${ac_cv_working_alloca_h+set}" = set; then
19461   echo $ECHO_N "(cached) $ECHO_C" >&6
19462 else
19463   cat >conftest.$ac_ext <<_ACEOF
19464 /* confdefs.h.  */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h.  */
19469 #include <alloca.h>
19470 int
19471 main ()
19472 {
19473 char *p = (char *) alloca (2 * sizeof (int));
19474                           if (p) return 0;
19475   ;
19476   return 0;
19477 }
19478 _ACEOF
19479 rm -f conftest.$ac_objext conftest$ac_exeext
19480 if { (ac_try="$ac_link"
19481 case "(($ac_try" in
19482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483   *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486   (eval "$ac_link") 2>conftest.er1
19487   ac_status=$?
19488   grep -v '^ *+' conftest.er1 >conftest.err
19489   rm -f conftest.er1
19490   cat conftest.err >&5
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); } && {
19493          test -z "$ac_c_werror_flag" ||
19494          test ! -s conftest.err
19495        } && test -s conftest$ac_exeext &&
19496        $as_test_x conftest$ac_exeext; then
19497   ac_cv_working_alloca_h=yes
19498 else
19499   echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19501
19502         ac_cv_working_alloca_h=no
19503 fi
19504
19505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19506       conftest$ac_exeext conftest.$ac_ext
19507 fi
19508 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19509 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19510 if test $ac_cv_working_alloca_h = yes; then
19511
19512 cat >>confdefs.h <<\_ACEOF
19513 #define HAVE_ALLOCA_H 1
19514 _ACEOF
19515
19516 fi
19517
19518 { echo "$as_me:$LINENO: checking for alloca" >&5
19519 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19520 if test "${ac_cv_func_alloca_works+set}" = set; then
19521   echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523   cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529 #ifdef __GNUC__
19530 # define alloca __builtin_alloca
19531 #else
19532 # ifdef _MSC_VER
19533 #  include <malloc.h>
19534 #  define alloca _alloca
19535 # else
19536 #  ifdef HAVE_ALLOCA_H
19537 #   include <alloca.h>
19538 #  else
19539 #   ifdef _AIX
19540  #pragma alloca
19541 #   else
19542 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19543 char *alloca ();
19544 #    endif
19545 #   endif
19546 #  endif
19547 # endif
19548 #endif
19549
19550 int
19551 main ()
19552 {
19553 char *p = (char *) alloca (1);
19554                                     if (p) return 0;
19555   ;
19556   return 0;
19557 }
19558 _ACEOF
19559 rm -f conftest.$ac_objext conftest$ac_exeext
19560 if { (ac_try="$ac_link"
19561 case "(($ac_try" in
19562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563   *) ac_try_echo=$ac_try;;
19564 esac
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566   (eval "$ac_link") 2>conftest.er1
19567   ac_status=$?
19568   grep -v '^ *+' conftest.er1 >conftest.err
19569   rm -f conftest.er1
19570   cat conftest.err >&5
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); } && {
19573          test -z "$ac_c_werror_flag" ||
19574          test ! -s conftest.err
19575        } && test -s conftest$ac_exeext &&
19576        $as_test_x conftest$ac_exeext; then
19577   ac_cv_func_alloca_works=yes
19578 else
19579   echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582         ac_cv_func_alloca_works=no
19583 fi
19584
19585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19586       conftest$ac_exeext conftest.$ac_ext
19587 fi
19588 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19589 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19590
19591 if test $ac_cv_func_alloca_works = yes; then
19592
19593 cat >>confdefs.h <<\_ACEOF
19594 #define HAVE_ALLOCA 1
19595 _ACEOF
19596
19597 else
19598   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19599 # that cause trouble.  Some versions do not even contain alloca or
19600 # contain a buggy version.  If you still want to use their alloca,
19601 # use ar to extract alloca.o from them instead of compiling alloca.c.
19602
19603 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19604
19605 cat >>confdefs.h <<\_ACEOF
19606 #define C_ALLOCA 1
19607 _ACEOF
19608
19609
19610 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19611 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19612 if test "${ac_cv_os_cray+set}" = set; then
19613   echo $ECHO_N "(cached) $ECHO_C" >&6
19614 else
19615   cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h.  */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h.  */
19621 #if defined CRAY && ! defined CRAY2
19622 webecray
19623 #else
19624 wenotbecray
19625 #endif
19626
19627 _ACEOF
19628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19629   $EGREP "webecray" >/dev/null 2>&1; then
19630   ac_cv_os_cray=yes
19631 else
19632   ac_cv_os_cray=no
19633 fi
19634 rm -f conftest*
19635
19636 fi
19637 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19638 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19639 if test $ac_cv_os_cray = yes; then
19640   for ac_func in _getb67 GETB67 getb67; do
19641     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19645   echo $ECHO_N "(cached) $ECHO_C" >&6
19646 else
19647   cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h.  */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h.  */
19653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19655 #define $ac_func innocuous_$ac_func
19656
19657 /* System header to define __stub macros and hopefully few prototypes,
19658     which can conflict with char $ac_func (); below.
19659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19660     <limits.h> exists even on freestanding compilers.  */
19661
19662 #ifdef __STDC__
19663 # include <limits.h>
19664 #else
19665 # include <assert.h>
19666 #endif
19667
19668 #undef $ac_func
19669
19670 /* Override any GCC internal prototype to avoid an error.
19671    Use char because int might match the return type of a GCC
19672    builtin and then its argument prototype would still apply.  */
19673 #ifdef __cplusplus
19674 extern "C"
19675 #endif
19676 char $ac_func ();
19677 /* The GNU C library defines this for functions which it implements
19678     to always fail with ENOSYS.  Some functions are actually named
19679     something starting with __ and the normal name is an alias.  */
19680 #if defined __stub_$ac_func || defined __stub___$ac_func
19681 choke me
19682 #endif
19683
19684 int
19685 main ()
19686 {
19687 return $ac_func ();
19688   ;
19689   return 0;
19690 }
19691 _ACEOF
19692 rm -f conftest.$ac_objext conftest$ac_exeext
19693 if { (ac_try="$ac_link"
19694 case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_link") 2>conftest.er1
19700   ac_status=$?
19701   grep -v '^ *+' conftest.er1 >conftest.err
19702   rm -f conftest.er1
19703   cat conftest.err >&5
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); } && {
19706          test -z "$ac_c_werror_flag" ||
19707          test ! -s conftest.err
19708        } && test -s conftest$ac_exeext &&
19709        $as_test_x conftest$ac_exeext; then
19710   eval "$as_ac_var=yes"
19711 else
19712   echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19714
19715         eval "$as_ac_var=no"
19716 fi
19717
19718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19719       conftest$ac_exeext conftest.$ac_ext
19720 fi
19721 ac_res=`eval echo '${'$as_ac_var'}'`
19722                { echo "$as_me:$LINENO: result: $ac_res" >&5
19723 echo "${ECHO_T}$ac_res" >&6; }
19724 if test `eval echo '${'$as_ac_var'}'` = yes; then
19725
19726 cat >>confdefs.h <<_ACEOF
19727 #define CRAY_STACKSEG_END $ac_func
19728 _ACEOF
19729
19730     break
19731 fi
19732
19733   done
19734 fi
19735
19736 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19737 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19738 if test "${ac_cv_c_stack_direction+set}" = set; then
19739   echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741   if test "$cross_compiling" = yes; then
19742   ac_cv_c_stack_direction=0
19743 else
19744   cat >conftest.$ac_ext <<_ACEOF
19745 /* confdefs.h.  */
19746 _ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h.  */
19750 $ac_includes_default
19751 int
19752 find_stack_direction ()
19753 {
19754   static char *addr = 0;
19755   auto char dummy;
19756   if (addr == 0)
19757     {
19758       addr = &dummy;
19759       return find_stack_direction ();
19760     }
19761   else
19762     return (&dummy > addr) ? 1 : -1;
19763 }
19764
19765 int
19766 main ()
19767 {
19768   return find_stack_direction () < 0;
19769 }
19770 _ACEOF
19771 rm -f conftest$ac_exeext
19772 if { (ac_try="$ac_link"
19773 case "(($ac_try" in
19774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775   *) ac_try_echo=$ac_try;;
19776 esac
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778   (eval "$ac_link") 2>&5
19779   ac_status=$?
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19782   { (case "(($ac_try" in
19783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784   *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787   (eval "$ac_try") 2>&5
19788   ac_status=$?
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); }; }; then
19791   ac_cv_c_stack_direction=1
19792 else
19793   echo "$as_me: program exited with status $ac_status" >&5
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19796
19797 ( exit $ac_status )
19798 ac_cv_c_stack_direction=-1
19799 fi
19800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19801 fi
19802
19803
19804 fi
19805 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19806 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19807
19808 cat >>confdefs.h <<_ACEOF
19809 #define STACK_DIRECTION $ac_cv_c_stack_direction
19810 _ACEOF
19811
19812
19813 fi
19814
19815
19816
19817 for ac_header in stdlib.h unistd.h
19818 do
19819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19821   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19824   echo $ECHO_N "(cached) $ECHO_C" >&6
19825 fi
19826 ac_res=`eval echo '${'$as_ac_Header'}'`
19827                { echo "$as_me:$LINENO: result: $ac_res" >&5
19828 echo "${ECHO_T}$ac_res" >&6; }
19829 else
19830   # Is the header compilable?
19831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19833 cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h.  */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h.  */
19839 $ac_includes_default
19840 #include <$ac_header>
19841 _ACEOF
19842 rm -f conftest.$ac_objext
19843 if { (ac_try="$ac_compile"
19844 case "(($ac_try" in
19845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846   *) ac_try_echo=$ac_try;;
19847 esac
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849   (eval "$ac_compile") 2>conftest.er1
19850   ac_status=$?
19851   grep -v '^ *+' conftest.er1 >conftest.err
19852   rm -f conftest.er1
19853   cat conftest.err >&5
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); } && {
19856          test -z "$ac_c_werror_flag" ||
19857          test ! -s conftest.err
19858        } && test -s conftest.$ac_objext; then
19859   ac_header_compiler=yes
19860 else
19861   echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19863
19864         ac_header_compiler=no
19865 fi
19866
19867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19869 echo "${ECHO_T}$ac_header_compiler" >&6; }
19870
19871 # Is the header present?
19872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19874 cat >conftest.$ac_ext <<_ACEOF
19875 /* confdefs.h.  */
19876 _ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h.  */
19880 #include <$ac_header>
19881 _ACEOF
19882 if { (ac_try="$ac_cpp conftest.$ac_ext"
19883 case "(($ac_try" in
19884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885   *) ac_try_echo=$ac_try;;
19886 esac
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19889   ac_status=$?
19890   grep -v '^ *+' conftest.er1 >conftest.err
19891   rm -f conftest.er1
19892   cat conftest.err >&5
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } >/dev/null && {
19895          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19896          test ! -s conftest.err
19897        }; then
19898   ac_header_preproc=yes
19899 else
19900   echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19902
19903   ac_header_preproc=no
19904 fi
19905
19906 rm -f conftest.err conftest.$ac_ext
19907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19908 echo "${ECHO_T}$ac_header_preproc" >&6; }
19909
19910 # So?  What about this header?
19911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19912   yes:no: )
19913     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19917     ac_header_preproc=yes
19918     ;;
19919   no:yes:* )
19920     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19922     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19923 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19924     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19926     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19927 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19930     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19932
19933     ;;
19934 esac
19935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19938   echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940   eval "$as_ac_Header=\$ac_header_preproc"
19941 fi
19942 ac_res=`eval echo '${'$as_ac_Header'}'`
19943                { echo "$as_me:$LINENO: result: $ac_res" >&5
19944 echo "${ECHO_T}$ac_res" >&6; }
19945
19946 fi
19947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19948   cat >>confdefs.h <<_ACEOF
19949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19950 _ACEOF
19951
19952 fi
19953
19954 done
19955
19956
19957 for ac_func in getpagesize
19958 do
19959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19963   echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965   cat >conftest.$ac_ext <<_ACEOF
19966 /* confdefs.h.  */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h.  */
19971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19973 #define $ac_func innocuous_$ac_func
19974
19975 /* System header to define __stub macros and hopefully few prototypes,
19976     which can conflict with char $ac_func (); below.
19977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19978     <limits.h> exists even on freestanding compilers.  */
19979
19980 #ifdef __STDC__
19981 # include <limits.h>
19982 #else
19983 # include <assert.h>
19984 #endif
19985
19986 #undef $ac_func
19987
19988 /* Override any GCC internal prototype to avoid an error.
19989    Use char because int might match the return type of a GCC
19990    builtin and then its argument prototype would still apply.  */
19991 #ifdef __cplusplus
19992 extern "C"
19993 #endif
19994 char $ac_func ();
19995 /* The GNU C library defines this for functions which it implements
19996     to always fail with ENOSYS.  Some functions are actually named
19997     something starting with __ and the normal name is an alias.  */
19998 #if defined __stub_$ac_func || defined __stub___$ac_func
19999 choke me
20000 #endif
20001
20002 int
20003 main ()
20004 {
20005 return $ac_func ();
20006   ;
20007   return 0;
20008 }
20009 _ACEOF
20010 rm -f conftest.$ac_objext conftest$ac_exeext
20011 if { (ac_try="$ac_link"
20012 case "(($ac_try" in
20013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014   *) ac_try_echo=$ac_try;;
20015 esac
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017   (eval "$ac_link") 2>conftest.er1
20018   ac_status=$?
20019   grep -v '^ *+' conftest.er1 >conftest.err
20020   rm -f conftest.er1
20021   cat conftest.err >&5
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); } && {
20024          test -z "$ac_c_werror_flag" ||
20025          test ! -s conftest.err
20026        } && test -s conftest$ac_exeext &&
20027        $as_test_x conftest$ac_exeext; then
20028   eval "$as_ac_var=yes"
20029 else
20030   echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20032
20033         eval "$as_ac_var=no"
20034 fi
20035
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037       conftest$ac_exeext conftest.$ac_ext
20038 fi
20039 ac_res=`eval echo '${'$as_ac_var'}'`
20040                { echo "$as_me:$LINENO: result: $ac_res" >&5
20041 echo "${ECHO_T}$ac_res" >&6; }
20042 if test `eval echo '${'$as_ac_var'}'` = yes; then
20043   cat >>confdefs.h <<_ACEOF
20044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20045 _ACEOF
20046
20047 fi
20048 done
20049
20050 { echo "$as_me:$LINENO: checking for working mmap" >&5
20051 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20052 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20053   echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055   if test "$cross_compiling" = yes; then
20056   ac_cv_func_mmap_fixed_mapped=no
20057 else
20058   cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h.  */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h.  */
20064 $ac_includes_default
20065 /* malloc might have been renamed as rpl_malloc. */
20066 #undef malloc
20067
20068 /* Thanks to Mike Haertel and Jim Avera for this test.
20069    Here is a matrix of mmap possibilities:
20070         mmap private not fixed
20071         mmap private fixed at somewhere currently unmapped
20072         mmap private fixed at somewhere already mapped
20073         mmap shared not fixed
20074         mmap shared fixed at somewhere currently unmapped
20075         mmap shared fixed at somewhere already mapped
20076    For private mappings, we should verify that changes cannot be read()
20077    back from the file, nor mmap's back from the file at a different
20078    address.  (There have been systems where private was not correctly
20079    implemented like the infamous i386 svr4.0, and systems where the
20080    VM page cache was not coherent with the file system buffer cache
20081    like early versions of FreeBSD and possibly contemporary NetBSD.)
20082    For shared mappings, we should conversely verify that changes get
20083    propagated back to all the places they're supposed to be.
20084
20085    Grep wants private fixed already mapped.
20086    The main things grep needs to know about mmap are:
20087    * does it exist and is it safe to write into the mmap'd area
20088    * how to use it (BSD variants)  */
20089
20090 #include <fcntl.h>
20091 #include <sys/mman.h>
20092
20093 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20094 char *malloc ();
20095 #endif
20096
20097 /* This mess was copied from the GNU getpagesize.h.  */
20098 #ifndef HAVE_GETPAGESIZE
20099 /* Assume that all systems that can run configure have sys/param.h.  */
20100 # ifndef HAVE_SYS_PARAM_H
20101 #  define HAVE_SYS_PARAM_H 1
20102 # endif
20103
20104 # ifdef _SC_PAGESIZE
20105 #  define getpagesize() sysconf(_SC_PAGESIZE)
20106 # else /* no _SC_PAGESIZE */
20107 #  ifdef HAVE_SYS_PARAM_H
20108 #   include <sys/param.h>
20109 #   ifdef EXEC_PAGESIZE
20110 #    define getpagesize() EXEC_PAGESIZE
20111 #   else /* no EXEC_PAGESIZE */
20112 #    ifdef NBPG
20113 #     define getpagesize() NBPG * CLSIZE
20114 #     ifndef CLSIZE
20115 #      define CLSIZE 1
20116 #     endif /* no CLSIZE */
20117 #    else /* no NBPG */
20118 #     ifdef NBPC
20119 #      define getpagesize() NBPC
20120 #     else /* no NBPC */
20121 #      ifdef PAGESIZE
20122 #       define getpagesize() PAGESIZE
20123 #      endif /* PAGESIZE */
20124 #     endif /* no NBPC */
20125 #    endif /* no NBPG */
20126 #   endif /* no EXEC_PAGESIZE */
20127 #  else /* no HAVE_SYS_PARAM_H */
20128 #   define getpagesize() 8192   /* punt totally */
20129 #  endif /* no HAVE_SYS_PARAM_H */
20130 # endif /* no _SC_PAGESIZE */
20131
20132 #endif /* no HAVE_GETPAGESIZE */
20133
20134 int
20135 main ()
20136 {
20137   char *data, *data2, *data3;
20138   int i, pagesize;
20139   int fd;
20140
20141   pagesize = getpagesize ();
20142
20143   /* First, make a file with some known garbage in it. */
20144   data = (char *) malloc (pagesize);
20145   if (!data)
20146     return 1;
20147   for (i = 0; i < pagesize; ++i)
20148     *(data + i) = rand ();
20149   umask (0);
20150   fd = creat ("conftest.mmap", 0600);
20151   if (fd < 0)
20152     return 1;
20153   if (write (fd, data, pagesize) != pagesize)
20154     return 1;
20155   close (fd);
20156
20157   /* Next, try to mmap the file at a fixed address which already has
20158      something else allocated at it.  If we can, also make sure that
20159      we see the same garbage.  */
20160   fd = open ("conftest.mmap", O_RDWR);
20161   if (fd < 0)
20162     return 1;
20163   data2 = (char *) malloc (2 * pagesize);
20164   if (!data2)
20165     return 1;
20166   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20167   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20168                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20169     return 1;
20170   for (i = 0; i < pagesize; ++i)
20171     if (*(data + i) != *(data2 + i))
20172       return 1;
20173
20174   /* Finally, make sure that changes to the mapped area do not
20175      percolate back to the file as seen by read().  (This is a bug on
20176      some variants of i386 svr4.0.)  */
20177   for (i = 0; i < pagesize; ++i)
20178     *(data2 + i) = *(data2 + i) + 1;
20179   data3 = (char *) malloc (pagesize);
20180   if (!data3)
20181     return 1;
20182   if (read (fd, data3, pagesize) != pagesize)
20183     return 1;
20184   for (i = 0; i < pagesize; ++i)
20185     if (*(data + i) != *(data3 + i))
20186       return 1;
20187   close (fd);
20188   return 0;
20189 }
20190 _ACEOF
20191 rm -f conftest$ac_exeext
20192 if { (ac_try="$ac_link"
20193 case "(($ac_try" in
20194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195   *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198   (eval "$ac_link") 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20202   { (case "(($ac_try" in
20203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204   *) ac_try_echo=$ac_try;;
20205 esac
20206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207   (eval "$ac_try") 2>&5
20208   ac_status=$?
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); }; }; then
20211   ac_cv_func_mmap_fixed_mapped=yes
20212 else
20213   echo "$as_me: program exited with status $ac_status" >&5
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20216
20217 ( exit $ac_status )
20218 ac_cv_func_mmap_fixed_mapped=no
20219 fi
20220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20221 fi
20222
20223
20224 fi
20225 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20226 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20227 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20228
20229 cat >>confdefs.h <<\_ACEOF
20230 #define HAVE_MMAP 1
20231 _ACEOF
20232
20233 fi
20234 rm -f conftest.mmap
20235
20236
20237     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20238 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20239 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20240   echo $ECHO_N "(cached) $ECHO_C" >&6
20241 else
20242   cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h.  */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h.  */
20248
20249 #include <features.h>
20250 #ifdef __GNU_LIBRARY__
20251  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20252   Lucky GNU user
20253  #endif
20254 #endif
20255
20256 _ACEOF
20257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20258   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20259   ac_cv_gnu_library_2_1=yes
20260 else
20261   ac_cv_gnu_library_2_1=no
20262 fi
20263 rm -f conftest*
20264
20265
20266
20267 fi
20268 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20269 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20270
20271     GLIBC21="$ac_cv_gnu_library_2_1"
20272
20273
20274
20275
20276   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20277 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20278 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20279   echo $ECHO_N "(cached) $ECHO_C" >&6
20280 else
20281
20282       if test "$cross_compiling" = yes; then
20283
20284           # Guess based on the CPU.
20285           case "$host_cpu" in
20286             alpha* | i3456786 | m68k | s390*)
20287               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20288             *)
20289               gt_cv_int_divbyzero_sigfpe="guessing no";;
20290           esac
20291
20292 else
20293   cat >conftest.$ac_ext <<_ACEOF
20294 /* confdefs.h.  */
20295 _ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h.  */
20299
20300 #include <stdlib.h>
20301 #include <signal.h>
20302
20303 static void
20304 #ifdef __cplusplus
20305 sigfpe_handler (int sig)
20306 #else
20307 sigfpe_handler (sig) int sig;
20308 #endif
20309 {
20310   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20311   exit (sig != SIGFPE);
20312 }
20313
20314 int x = 1;
20315 int y = 0;
20316 int z;
20317 int nan;
20318
20319 int main ()
20320 {
20321   signal (SIGFPE, sigfpe_handler);
20322 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20323 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20324   signal (SIGTRAP, sigfpe_handler);
20325 #endif
20326 /* Linux/SPARC yields signal SIGILL.  */
20327 #if defined (__sparc__) && defined (__linux__)
20328   signal (SIGILL, sigfpe_handler);
20329 #endif
20330
20331   z = x / y;
20332   nan = y / y;
20333   exit (1);
20334 }
20335
20336 _ACEOF
20337 rm -f conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341   *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344   (eval "$ac_link") 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20348   { (case "(($ac_try" in
20349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350   *) ac_try_echo=$ac_try;;
20351 esac
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353   (eval "$ac_try") 2>&5
20354   ac_status=$?
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); }; }; then
20357   gt_cv_int_divbyzero_sigfpe=yes
20358 else
20359   echo "$as_me: program exited with status $ac_status" >&5
20360 echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20362
20363 ( exit $ac_status )
20364 gt_cv_int_divbyzero_sigfpe=no
20365 fi
20366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20367 fi
20368
20369
20370
20371 fi
20372 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20373 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20374   case "$gt_cv_int_divbyzero_sigfpe" in
20375     *yes) value=1;;
20376     *) value=0;;
20377   esac
20378
20379 cat >>confdefs.h <<_ACEOF
20380 #define INTDIV0_RAISES_SIGFPE $value
20381 _ACEOF
20382
20383
20384
20385   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20386 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20387 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20388   echo $ECHO_N "(cached) $ECHO_C" >&6
20389 else
20390   cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h.  */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h.  */
20396 unsigned long long ull = 1ULL; int i = 63;
20397 int
20398 main ()
20399 {
20400 unsigned long long ullmax = (unsigned long long) -1;
20401      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20402   ;
20403   return 0;
20404 }
20405 _ACEOF
20406 rm -f conftest.$ac_objext conftest$ac_exeext
20407 if { (ac_try="$ac_link"
20408 case "(($ac_try" in
20409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410   *) ac_try_echo=$ac_try;;
20411 esac
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413   (eval "$ac_link") 2>conftest.er1
20414   ac_status=$?
20415   grep -v '^ *+' conftest.er1 >conftest.err
20416   rm -f conftest.er1
20417   cat conftest.err >&5
20418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419   (exit $ac_status); } && {
20420          test -z "$ac_c_werror_flag" ||
20421          test ! -s conftest.err
20422        } && test -s conftest$ac_exeext &&
20423        $as_test_x conftest$ac_exeext; then
20424   ac_cv_type_unsigned_long_long=yes
20425 else
20426   echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20428
20429         ac_cv_type_unsigned_long_long=no
20430 fi
20431
20432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20433       conftest$ac_exeext conftest.$ac_ext
20434 fi
20435 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20436 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20437   if test $ac_cv_type_unsigned_long_long = yes; then
20438
20439 cat >>confdefs.h <<\_ACEOF
20440 #define HAVE_UNSIGNED_LONG_LONG 1
20441 _ACEOF
20442
20443   fi
20444
20445
20446
20447
20448   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20449
20450     test $ac_cv_type_unsigned_long_long = yes \
20451       && ac_type='unsigned long long' \
20452       || ac_type='unsigned long'
20453
20454 cat >>confdefs.h <<_ACEOF
20455 #define uintmax_t $ac_type
20456 _ACEOF
20457
20458   else
20459
20460 cat >>confdefs.h <<\_ACEOF
20461 #define HAVE_UINTMAX_T 1
20462 _ACEOF
20463
20464   fi
20465
20466
20467   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20468 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20469 if test "${gt_cv_header_inttypes_h+set}" = set; then
20470   echo $ECHO_N "(cached) $ECHO_C" >&6
20471 else
20472
20473     cat >conftest.$ac_ext <<_ACEOF
20474 /* confdefs.h.  */
20475 _ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h.  */
20479 #include <sys/types.h>
20480 #include <inttypes.h>
20481 int
20482 main ()
20483 {
20484
20485   ;
20486   return 0;
20487 }
20488 _ACEOF
20489 rm -f conftest.$ac_objext
20490 if { (ac_try="$ac_compile"
20491 case "(($ac_try" in
20492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493   *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496   (eval "$ac_compile") 2>conftest.er1
20497   ac_status=$?
20498   grep -v '^ *+' conftest.er1 >conftest.err
20499   rm -f conftest.er1
20500   cat conftest.err >&5
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); } && {
20503          test -z "$ac_c_werror_flag" ||
20504          test ! -s conftest.err
20505        } && test -s conftest.$ac_objext; then
20506   gt_cv_header_inttypes_h=yes
20507 else
20508   echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511         gt_cv_header_inttypes_h=no
20512 fi
20513
20514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515
20516 fi
20517 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20518 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20519   if test $gt_cv_header_inttypes_h = yes; then
20520
20521 cat >>confdefs.h <<_ACEOF
20522 #define HAVE_INTTYPES_H 1
20523 _ACEOF
20524
20525   fi
20526
20527
20528
20529   if test $gt_cv_header_inttypes_h = yes; then
20530     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20531 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20532 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20533   echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535
20536         cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542 #include <inttypes.h>
20543 #ifdef PRId32
20544 char *p = PRId32;
20545 #endif
20546
20547 int
20548 main ()
20549 {
20550
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559   *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562   (eval "$ac_compile") 2>conftest.er1
20563   ac_status=$?
20564   grep -v '^ *+' conftest.er1 >conftest.err
20565   rm -f conftest.er1
20566   cat conftest.err >&5
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); } && {
20569          test -z "$ac_c_werror_flag" ||
20570          test ! -s conftest.err
20571        } && test -s conftest.$ac_objext; then
20572   gt_cv_inttypes_pri_broken=no
20573 else
20574   echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577         gt_cv_inttypes_pri_broken=yes
20578 fi
20579
20580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581
20582 fi
20583 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20584 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20585   fi
20586   if test "$gt_cv_inttypes_pri_broken" = yes; then
20587
20588 cat >>confdefs.h <<_ACEOF
20589 #define PRI_MACROS_BROKEN 1
20590 _ACEOF
20591
20592   fi
20593
20594
20595
20596 for ac_header in stdint.h
20597 do
20598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20600   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20603   echo $ECHO_N "(cached) $ECHO_C" >&6
20604 fi
20605 ac_res=`eval echo '${'$as_ac_Header'}'`
20606                { echo "$as_me:$LINENO: result: $ac_res" >&5
20607 echo "${ECHO_T}$ac_res" >&6; }
20608 else
20609   # Is the header compilable?
20610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20612 cat >conftest.$ac_ext <<_ACEOF
20613 /* confdefs.h.  */
20614 _ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h.  */
20618 $ac_includes_default
20619 #include <$ac_header>
20620 _ACEOF
20621 rm -f conftest.$ac_objext
20622 if { (ac_try="$ac_compile"
20623 case "(($ac_try" in
20624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625   *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628   (eval "$ac_compile") 2>conftest.er1
20629   ac_status=$?
20630   grep -v '^ *+' conftest.er1 >conftest.err
20631   rm -f conftest.er1
20632   cat conftest.err >&5
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); } && {
20635          test -z "$ac_c_werror_flag" ||
20636          test ! -s conftest.err
20637        } && test -s conftest.$ac_objext; then
20638   ac_header_compiler=yes
20639 else
20640   echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20642
20643         ac_header_compiler=no
20644 fi
20645
20646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20648 echo "${ECHO_T}$ac_header_compiler" >&6; }
20649
20650 # Is the header present?
20651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20653 cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659 #include <$ac_header>
20660 _ACEOF
20661 if { (ac_try="$ac_cpp conftest.$ac_ext"
20662 case "(($ac_try" in
20663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664   *) ac_try_echo=$ac_try;;
20665 esac
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20668   ac_status=$?
20669   grep -v '^ *+' conftest.er1 >conftest.err
20670   rm -f conftest.er1
20671   cat conftest.err >&5
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); } >/dev/null && {
20674          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20675          test ! -s conftest.err
20676        }; then
20677   ac_header_preproc=yes
20678 else
20679   echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682   ac_header_preproc=no
20683 fi
20684
20685 rm -f conftest.err conftest.$ac_ext
20686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20687 echo "${ECHO_T}$ac_header_preproc" >&6; }
20688
20689 # So?  What about this header?
20690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20691   yes:no: )
20692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20696     ac_header_preproc=yes
20697     ;;
20698   no:yes:* )
20699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20711
20712     ;;
20713 esac
20714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20717   echo $ECHO_N "(cached) $ECHO_C" >&6
20718 else
20719   eval "$as_ac_Header=\$ac_header_preproc"
20720 fi
20721 ac_res=`eval echo '${'$as_ac_Header'}'`
20722                { echo "$as_me:$LINENO: result: $ac_res" >&5
20723 echo "${ECHO_T}$ac_res" >&6; }
20724
20725 fi
20726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20727   cat >>confdefs.h <<_ACEOF
20728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20729 _ACEOF
20730
20731 fi
20732
20733 done
20734
20735     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20736 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20737   result=
20738   cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744
20745 #include <limits.h>
20746 #if HAVE_STDINT_H
20747 #include <stdint.h>
20748 #endif
20749 #ifdef SIZE_MAX
20750 Found it
20751 #endif
20752
20753 _ACEOF
20754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20755   $EGREP "Found it" >/dev/null 2>&1; then
20756   result=yes
20757 fi
20758 rm -f conftest*
20759
20760   if test -z "$result"; then
20761                     if test "$cross_compiling" = yes; then
20762   # Depending upon the size, compute the lo and hi bounds.
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769 #include <stddef.h>
20770 int
20771 main ()
20772 {
20773 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20774 test_array [0] = 0
20775
20776   ;
20777   return 0;
20778 }
20779 _ACEOF
20780 rm -f conftest.$ac_objext
20781 if { (ac_try="$ac_compile"
20782 case "(($ac_try" in
20783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784   *) ac_try_echo=$ac_try;;
20785 esac
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787   (eval "$ac_compile") 2>conftest.er1
20788   ac_status=$?
20789   grep -v '^ *+' conftest.er1 >conftest.err
20790   rm -f conftest.er1
20791   cat conftest.err >&5
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); } && {
20794          test -z "$ac_c_werror_flag" ||
20795          test ! -s conftest.err
20796        } && test -s conftest.$ac_objext; then
20797   ac_lo=0 ac_mid=0
20798   while :; do
20799     cat >conftest.$ac_ext <<_ACEOF
20800 /* confdefs.h.  */
20801 _ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h.  */
20805 #include <stddef.h>
20806 int
20807 main ()
20808 {
20809 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20810 test_array [0] = 0
20811
20812   ;
20813   return 0;
20814 }
20815 _ACEOF
20816 rm -f conftest.$ac_objext
20817 if { (ac_try="$ac_compile"
20818 case "(($ac_try" in
20819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820   *) ac_try_echo=$ac_try;;
20821 esac
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823   (eval "$ac_compile") 2>conftest.er1
20824   ac_status=$?
20825   grep -v '^ *+' conftest.er1 >conftest.err
20826   rm -f conftest.er1
20827   cat conftest.err >&5
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); } && {
20830          test -z "$ac_c_werror_flag" ||
20831          test ! -s conftest.err
20832        } && test -s conftest.$ac_objext; then
20833   ac_hi=$ac_mid; break
20834 else
20835   echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20837
20838         ac_lo=`expr $ac_mid + 1`
20839                         if test $ac_lo -le $ac_mid; then
20840                           ac_lo= ac_hi=
20841                           break
20842                         fi
20843                         ac_mid=`expr 2 '*' $ac_mid + 1`
20844 fi
20845
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847   done
20848 else
20849   echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20851
20852         cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h.  */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h.  */
20858 #include <stddef.h>
20859 int
20860 main ()
20861 {
20862 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20863 test_array [0] = 0
20864
20865   ;
20866   return 0;
20867 }
20868 _ACEOF
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873   *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876   (eval "$ac_compile") 2>conftest.er1
20877   ac_status=$?
20878   grep -v '^ *+' conftest.er1 >conftest.err
20879   rm -f conftest.er1
20880   cat conftest.err >&5
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); } && {
20883          test -z "$ac_c_werror_flag" ||
20884          test ! -s conftest.err
20885        } && test -s conftest.$ac_objext; then
20886   ac_hi=-1 ac_mid=-1
20887   while :; do
20888     cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h.  */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h.  */
20894 #include <stddef.h>
20895 int
20896 main ()
20897 {
20898 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20899 test_array [0] = 0
20900
20901   ;
20902   return 0;
20903 }
20904 _ACEOF
20905 rm -f conftest.$ac_objext
20906 if { (ac_try="$ac_compile"
20907 case "(($ac_try" in
20908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909   *) ac_try_echo=$ac_try;;
20910 esac
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912   (eval "$ac_compile") 2>conftest.er1
20913   ac_status=$?
20914   grep -v '^ *+' conftest.er1 >conftest.err
20915   rm -f conftest.er1
20916   cat conftest.err >&5
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); } && {
20919          test -z "$ac_c_werror_flag" ||
20920          test ! -s conftest.err
20921        } && test -s conftest.$ac_objext; then
20922   ac_lo=$ac_mid; break
20923 else
20924   echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20926
20927         ac_hi=`expr '(' $ac_mid ')' - 1`
20928                         if test $ac_mid -le $ac_hi; then
20929                           ac_lo= ac_hi=
20930                           break
20931                         fi
20932                         ac_mid=`expr 2 '*' $ac_mid`
20933 fi
20934
20935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936   done
20937 else
20938   echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20940
20941         ac_lo= ac_hi=
20942 fi
20943
20944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20945 fi
20946
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 # Binary search between lo and hi bounds.
20949 while test "x$ac_lo" != "x$ac_hi"; do
20950   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20951   cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h.  */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h.  */
20957 #include <stddef.h>
20958 int
20959 main ()
20960 {
20961 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20962 test_array [0] = 0
20963
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext
20969 if { (ac_try="$ac_compile"
20970 case "(($ac_try" in
20971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972   *) ac_try_echo=$ac_try;;
20973 esac
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975   (eval "$ac_compile") 2>conftest.er1
20976   ac_status=$?
20977   grep -v '^ *+' conftest.er1 >conftest.err
20978   rm -f conftest.er1
20979   cat conftest.err >&5
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } && {
20982          test -z "$ac_c_werror_flag" ||
20983          test ! -s conftest.err
20984        } && test -s conftest.$ac_objext; then
20985   ac_hi=$ac_mid
20986 else
20987   echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20989
20990         ac_lo=`expr '(' $ac_mid ')' + 1`
20991 fi
20992
20993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20994 done
20995 case $ac_lo in
20996 ?*) res_hi=$ac_lo;;
20997 '') result=? ;;
20998 esac
20999 else
21000   cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h.  */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h.  */
21006 #include <stddef.h>
21007 static long int longval () { return ~(size_t)0 / 10; }
21008 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21009 #include <stdio.h>
21010 #include <stdlib.h>
21011 int
21012 main ()
21013 {
21014
21015   FILE *f = fopen ("conftest.val", "w");
21016   if (! f)
21017     return 1;
21018   if ((~(size_t)0 / 10) < 0)
21019     {
21020       long int i = longval ();
21021       if (i != (~(size_t)0 / 10))
21022         return 1;
21023       fprintf (f, "%ld\n", i);
21024     }
21025   else
21026     {
21027       unsigned long int i = ulongval ();
21028       if (i != (~(size_t)0 / 10))
21029         return 1;
21030       fprintf (f, "%lu\n", i);
21031     }
21032   return ferror (f) || fclose (f) != 0;
21033
21034   ;
21035   return 0;
21036 }
21037 _ACEOF
21038 rm -f conftest$ac_exeext
21039 if { (ac_try="$ac_link"
21040 case "(($ac_try" in
21041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042   *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045   (eval "$ac_link") 2>&5
21046   ac_status=$?
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21049   { (case "(($ac_try" in
21050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051   *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054   (eval "$ac_try") 2>&5
21055   ac_status=$?
21056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057   (exit $ac_status); }; }; then
21058   res_hi=`cat conftest.val`
21059 else
21060   echo "$as_me: program exited with status $ac_status" >&5
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21063
21064 ( exit $ac_status )
21065 result=?
21066 fi
21067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21068 fi
21069 rm -f conftest.val
21070
21071     if test "$cross_compiling" = yes; then
21072   # Depending upon the size, compute the lo and hi bounds.
21073 cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h.  */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h.  */
21079 #include <stddef.h>
21080 int
21081 main ()
21082 {
21083 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21084 test_array [0] = 0
21085
21086   ;
21087   return 0;
21088 }
21089 _ACEOF
21090 rm -f conftest.$ac_objext
21091 if { (ac_try="$ac_compile"
21092 case "(($ac_try" in
21093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094   *) ac_try_echo=$ac_try;;
21095 esac
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097   (eval "$ac_compile") 2>conftest.er1
21098   ac_status=$?
21099   grep -v '^ *+' conftest.er1 >conftest.err
21100   rm -f conftest.er1
21101   cat conftest.err >&5
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); } && {
21104          test -z "$ac_c_werror_flag" ||
21105          test ! -s conftest.err
21106        } && test -s conftest.$ac_objext; then
21107   ac_lo=0 ac_mid=0
21108   while :; do
21109     cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h.  */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h.  */
21115 #include <stddef.h>
21116 int
21117 main ()
21118 {
21119 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21120 test_array [0] = 0
21121
21122   ;
21123   return 0;
21124 }
21125 _ACEOF
21126 rm -f conftest.$ac_objext
21127 if { (ac_try="$ac_compile"
21128 case "(($ac_try" in
21129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130   *) ac_try_echo=$ac_try;;
21131 esac
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133   (eval "$ac_compile") 2>conftest.er1
21134   ac_status=$?
21135   grep -v '^ *+' conftest.er1 >conftest.err
21136   rm -f conftest.er1
21137   cat conftest.err >&5
21138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); } && {
21140          test -z "$ac_c_werror_flag" ||
21141          test ! -s conftest.err
21142        } && test -s conftest.$ac_objext; then
21143   ac_hi=$ac_mid; break
21144 else
21145   echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147
21148         ac_lo=`expr $ac_mid + 1`
21149                         if test $ac_lo -le $ac_mid; then
21150                           ac_lo= ac_hi=
21151                           break
21152                         fi
21153                         ac_mid=`expr 2 '*' $ac_mid + 1`
21154 fi
21155
21156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21157   done
21158 else
21159   echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162         cat >conftest.$ac_ext <<_ACEOF
21163 /* confdefs.h.  */
21164 _ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h.  */
21168 #include <stddef.h>
21169 int
21170 main ()
21171 {
21172 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21173 test_array [0] = 0
21174
21175   ;
21176   return 0;
21177 }
21178 _ACEOF
21179 rm -f conftest.$ac_objext
21180 if { (ac_try="$ac_compile"
21181 case "(($ac_try" in
21182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183   *) ac_try_echo=$ac_try;;
21184 esac
21185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21186   (eval "$ac_compile") 2>conftest.er1
21187   ac_status=$?
21188   grep -v '^ *+' conftest.er1 >conftest.err
21189   rm -f conftest.er1
21190   cat conftest.err >&5
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); } && {
21193          test -z "$ac_c_werror_flag" ||
21194          test ! -s conftest.err
21195        } && test -s conftest.$ac_objext; then
21196   ac_hi=-1 ac_mid=-1
21197   while :; do
21198     cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h.  */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h.  */
21204 #include <stddef.h>
21205 int
21206 main ()
21207 {
21208 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21209 test_array [0] = 0
21210
21211   ;
21212   return 0;
21213 }
21214 _ACEOF
21215 rm -f conftest.$ac_objext
21216 if { (ac_try="$ac_compile"
21217 case "(($ac_try" in
21218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219   *) ac_try_echo=$ac_try;;
21220 esac
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222   (eval "$ac_compile") 2>conftest.er1
21223   ac_status=$?
21224   grep -v '^ *+' conftest.er1 >conftest.err
21225   rm -f conftest.er1
21226   cat conftest.err >&5
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } && {
21229          test -z "$ac_c_werror_flag" ||
21230          test ! -s conftest.err
21231        } && test -s conftest.$ac_objext; then
21232   ac_lo=$ac_mid; break
21233 else
21234   echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21236
21237         ac_hi=`expr '(' $ac_mid ')' - 1`
21238                         if test $ac_mid -le $ac_hi; then
21239                           ac_lo= ac_hi=
21240                           break
21241                         fi
21242                         ac_mid=`expr 2 '*' $ac_mid`
21243 fi
21244
21245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246   done
21247 else
21248   echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21250
21251         ac_lo= ac_hi=
21252 fi
21253
21254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21255 fi
21256
21257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 # Binary search between lo and hi bounds.
21259 while test "x$ac_lo" != "x$ac_hi"; do
21260   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21261   cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21267 #include <stddef.h>
21268 int
21269 main ()
21270 {
21271 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21272 test_array [0] = 0
21273
21274   ;
21275   return 0;
21276 }
21277 _ACEOF
21278 rm -f conftest.$ac_objext
21279 if { (ac_try="$ac_compile"
21280 case "(($ac_try" in
21281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282   *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285   (eval "$ac_compile") 2>conftest.er1
21286   ac_status=$?
21287   grep -v '^ *+' conftest.er1 >conftest.err
21288   rm -f conftest.er1
21289   cat conftest.err >&5
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); } && {
21292          test -z "$ac_c_werror_flag" ||
21293          test ! -s conftest.err
21294        } && test -s conftest.$ac_objext; then
21295   ac_hi=$ac_mid
21296 else
21297   echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21299
21300         ac_lo=`expr '(' $ac_mid ')' + 1`
21301 fi
21302
21303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21304 done
21305 case $ac_lo in
21306 ?*) res_lo=$ac_lo;;
21307 '') result=? ;;
21308 esac
21309 else
21310   cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h.  */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h.  */
21316 #include <stddef.h>
21317 static long int longval () { return ~(size_t)0 % 10; }
21318 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21319 #include <stdio.h>
21320 #include <stdlib.h>
21321 int
21322 main ()
21323 {
21324
21325   FILE *f = fopen ("conftest.val", "w");
21326   if (! f)
21327     return 1;
21328   if ((~(size_t)0 % 10) < 0)
21329     {
21330       long int i = longval ();
21331       if (i != (~(size_t)0 % 10))
21332         return 1;
21333       fprintf (f, "%ld\n", i);
21334     }
21335   else
21336     {
21337       unsigned long int i = ulongval ();
21338       if (i != (~(size_t)0 % 10))
21339         return 1;
21340       fprintf (f, "%lu\n", i);
21341     }
21342   return ferror (f) || fclose (f) != 0;
21343
21344   ;
21345   return 0;
21346 }
21347 _ACEOF
21348 rm -f conftest$ac_exeext
21349 if { (ac_try="$ac_link"
21350 case "(($ac_try" in
21351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352   *) ac_try_echo=$ac_try;;
21353 esac
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355   (eval "$ac_link") 2>&5
21356   ac_status=$?
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21359   { (case "(($ac_try" in
21360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361   *) ac_try_echo=$ac_try;;
21362 esac
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364   (eval "$ac_try") 2>&5
21365   ac_status=$?
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); }; }; then
21368   res_lo=`cat conftest.val`
21369 else
21370   echo "$as_me: program exited with status $ac_status" >&5
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374 ( exit $ac_status )
21375 result=?
21376 fi
21377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21378 fi
21379 rm -f conftest.val
21380
21381     if test "$cross_compiling" = yes; then
21382   # Depending upon the size, compute the lo and hi bounds.
21383 cat >conftest.$ac_ext <<_ACEOF
21384 /* confdefs.h.  */
21385 _ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h.  */
21389 #include <stddef.h>
21390 int
21391 main ()
21392 {
21393 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21394 test_array [0] = 0
21395
21396   ;
21397   return 0;
21398 }
21399 _ACEOF
21400 rm -f conftest.$ac_objext
21401 if { (ac_try="$ac_compile"
21402 case "(($ac_try" in
21403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404   *) ac_try_echo=$ac_try;;
21405 esac
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407   (eval "$ac_compile") 2>conftest.er1
21408   ac_status=$?
21409   grep -v '^ *+' conftest.er1 >conftest.err
21410   rm -f conftest.er1
21411   cat conftest.err >&5
21412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413   (exit $ac_status); } && {
21414          test -z "$ac_c_werror_flag" ||
21415          test ! -s conftest.err
21416        } && test -s conftest.$ac_objext; then
21417   ac_lo=0 ac_mid=0
21418   while :; do
21419     cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h.  */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h.  */
21425 #include <stddef.h>
21426 int
21427 main ()
21428 {
21429 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21430 test_array [0] = 0
21431
21432   ;
21433   return 0;
21434 }
21435 _ACEOF
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440   *) ac_try_echo=$ac_try;;
21441 esac
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443   (eval "$ac_compile") 2>conftest.er1
21444   ac_status=$?
21445   grep -v '^ *+' conftest.er1 >conftest.err
21446   rm -f conftest.er1
21447   cat conftest.err >&5
21448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); } && {
21450          test -z "$ac_c_werror_flag" ||
21451          test ! -s conftest.err
21452        } && test -s conftest.$ac_objext; then
21453   ac_hi=$ac_mid; break
21454 else
21455   echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458         ac_lo=`expr $ac_mid + 1`
21459                         if test $ac_lo -le $ac_mid; then
21460                           ac_lo= ac_hi=
21461                           break
21462                         fi
21463                         ac_mid=`expr 2 '*' $ac_mid + 1`
21464 fi
21465
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467   done
21468 else
21469   echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21471
21472         cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h.  */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h.  */
21478 #include <stddef.h>
21479 int
21480 main ()
21481 {
21482 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21483 test_array [0] = 0
21484
21485   ;
21486   return 0;
21487 }
21488 _ACEOF
21489 rm -f conftest.$ac_objext
21490 if { (ac_try="$ac_compile"
21491 case "(($ac_try" in
21492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493   *) ac_try_echo=$ac_try;;
21494 esac
21495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496   (eval "$ac_compile") 2>conftest.er1
21497   ac_status=$?
21498   grep -v '^ *+' conftest.er1 >conftest.err
21499   rm -f conftest.er1
21500   cat conftest.err >&5
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); } && {
21503          test -z "$ac_c_werror_flag" ||
21504          test ! -s conftest.err
21505        } && test -s conftest.$ac_objext; then
21506   ac_hi=-1 ac_mid=-1
21507   while :; do
21508     cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h.  */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h.  */
21514 #include <stddef.h>
21515 int
21516 main ()
21517 {
21518 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21519 test_array [0] = 0
21520
21521   ;
21522   return 0;
21523 }
21524 _ACEOF
21525 rm -f conftest.$ac_objext
21526 if { (ac_try="$ac_compile"
21527 case "(($ac_try" in
21528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529   *) ac_try_echo=$ac_try;;
21530 esac
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532   (eval "$ac_compile") 2>conftest.er1
21533   ac_status=$?
21534   grep -v '^ *+' conftest.er1 >conftest.err
21535   rm -f conftest.er1
21536   cat conftest.err >&5
21537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538   (exit $ac_status); } && {
21539          test -z "$ac_c_werror_flag" ||
21540          test ! -s conftest.err
21541        } && test -s conftest.$ac_objext; then
21542   ac_lo=$ac_mid; break
21543 else
21544   echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21546
21547         ac_hi=`expr '(' $ac_mid ')' - 1`
21548                         if test $ac_mid -le $ac_hi; then
21549                           ac_lo= ac_hi=
21550                           break
21551                         fi
21552                         ac_mid=`expr 2 '*' $ac_mid`
21553 fi
21554
21555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556   done
21557 else
21558   echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21560
21561         ac_lo= ac_hi=
21562 fi
21563
21564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21565 fi
21566
21567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568 # Binary search between lo and hi bounds.
21569 while test "x$ac_lo" != "x$ac_hi"; do
21570   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21571   cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h.  */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h.  */
21577 #include <stddef.h>
21578 int
21579 main ()
21580 {
21581 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21582 test_array [0] = 0
21583
21584   ;
21585   return 0;
21586 }
21587 _ACEOF
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592   *) ac_try_echo=$ac_try;;
21593 esac
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595   (eval "$ac_compile") 2>conftest.er1
21596   ac_status=$?
21597   grep -v '^ *+' conftest.er1 >conftest.err
21598   rm -f conftest.er1
21599   cat conftest.err >&5
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); } && {
21602          test -z "$ac_c_werror_flag" ||
21603          test ! -s conftest.err
21604        } && test -s conftest.$ac_objext; then
21605   ac_hi=$ac_mid
21606 else
21607   echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21609
21610         ac_lo=`expr '(' $ac_mid ')' + 1`
21611 fi
21612
21613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21614 done
21615 case $ac_lo in
21616 ?*) fits_in_uint=$ac_lo;;
21617 '') result=? ;;
21618 esac
21619 else
21620   cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626 #include <stddef.h>
21627 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21628 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21629 #include <stdio.h>
21630 #include <stdlib.h>
21631 int
21632 main ()
21633 {
21634
21635   FILE *f = fopen ("conftest.val", "w");
21636   if (! f)
21637     return 1;
21638   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21639     {
21640       long int i = longval ();
21641       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21642         return 1;
21643       fprintf (f, "%ld\n", i);
21644     }
21645   else
21646     {
21647       unsigned long int i = ulongval ();
21648       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21649         return 1;
21650       fprintf (f, "%lu\n", i);
21651     }
21652   return ferror (f) || fclose (f) != 0;
21653
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest$ac_exeext
21659 if { (ac_try="$ac_link"
21660 case "(($ac_try" in
21661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662   *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665   (eval "$ac_link") 2>&5
21666   ac_status=$?
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21669   { (case "(($ac_try" in
21670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21671   *) ac_try_echo=$ac_try;;
21672 esac
21673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21674   (eval "$ac_try") 2>&5
21675   ac_status=$?
21676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677   (exit $ac_status); }; }; then
21678   fits_in_uint=`cat conftest.val`
21679 else
21680   echo "$as_me: program exited with status $ac_status" >&5
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21683
21684 ( exit $ac_status )
21685 result=?
21686 fi
21687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21688 fi
21689 rm -f conftest.val
21690
21691     if test "$fits_in_uint" = 1; then
21692                   cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h.  */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h.  */
21698 #include <stddef.h>
21699         extern size_t foo;
21700         extern unsigned long foo;
21701
21702 int
21703 main ()
21704 {
21705
21706   ;
21707   return 0;
21708 }
21709 _ACEOF
21710 rm -f conftest.$ac_objext
21711 if { (ac_try="$ac_compile"
21712 case "(($ac_try" in
21713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714   *) ac_try_echo=$ac_try;;
21715 esac
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717   (eval "$ac_compile") 2>conftest.er1
21718   ac_status=$?
21719   grep -v '^ *+' conftest.er1 >conftest.err
21720   rm -f conftest.er1
21721   cat conftest.err >&5
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); } && {
21724          test -z "$ac_c_werror_flag" ||
21725          test ! -s conftest.err
21726        } && test -s conftest.$ac_objext; then
21727   fits_in_uint=0
21728 else
21729   echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21731
21732
21733 fi
21734
21735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736     fi
21737     if test -z "$result"; then
21738       if test "$fits_in_uint" = 1; then
21739         result="$res_hi$res_lo"U
21740       else
21741         result="$res_hi$res_lo"UL
21742       fi
21743     else
21744             result='~(size_t)0'
21745     fi
21746   fi
21747   { echo "$as_me:$LINENO: result: $result" >&5
21748 echo "${ECHO_T}$result" >&6; }
21749   if test "$result" != yes; then
21750
21751 cat >>confdefs.h <<_ACEOF
21752 #define SIZE_MAX $result
21753 _ACEOF
21754
21755   fi
21756
21757
21758
21759
21760
21761 for ac_header in stdint.h
21762 do
21763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21765   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21768   echo $ECHO_N "(cached) $ECHO_C" >&6
21769 fi
21770 ac_res=`eval echo '${'$as_ac_Header'}'`
21771                { echo "$as_me:$LINENO: result: $ac_res" >&5
21772 echo "${ECHO_T}$ac_res" >&6; }
21773 else
21774   # Is the header compilable?
21775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21777 cat >conftest.$ac_ext <<_ACEOF
21778 /* confdefs.h.  */
21779 _ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h.  */
21783 $ac_includes_default
21784 #include <$ac_header>
21785 _ACEOF
21786 rm -f conftest.$ac_objext
21787 if { (ac_try="$ac_compile"
21788 case "(($ac_try" in
21789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790   *) ac_try_echo=$ac_try;;
21791 esac
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793   (eval "$ac_compile") 2>conftest.er1
21794   ac_status=$?
21795   grep -v '^ *+' conftest.er1 >conftest.err
21796   rm -f conftest.er1
21797   cat conftest.err >&5
21798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799   (exit $ac_status); } && {
21800          test -z "$ac_c_werror_flag" ||
21801          test ! -s conftest.err
21802        } && test -s conftest.$ac_objext; then
21803   ac_header_compiler=yes
21804 else
21805   echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21807
21808         ac_header_compiler=no
21809 fi
21810
21811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21813 echo "${ECHO_T}$ac_header_compiler" >&6; }
21814
21815 # Is the header present?
21816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21818 cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h.  */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h.  */
21824 #include <$ac_header>
21825 _ACEOF
21826 if { (ac_try="$ac_cpp conftest.$ac_ext"
21827 case "(($ac_try" in
21828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829   *) ac_try_echo=$ac_try;;
21830 esac
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21833   ac_status=$?
21834   grep -v '^ *+' conftest.er1 >conftest.err
21835   rm -f conftest.er1
21836   cat conftest.err >&5
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); } >/dev/null && {
21839          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21840          test ! -s conftest.err
21841        }; then
21842   ac_header_preproc=yes
21843 else
21844   echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21846
21847   ac_header_preproc=no
21848 fi
21849
21850 rm -f conftest.err conftest.$ac_ext
21851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21852 echo "${ECHO_T}$ac_header_preproc" >&6; }
21853
21854 # So?  What about this header?
21855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21856   yes:no: )
21857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21861     ac_header_preproc=yes
21862     ;;
21863   no:yes:* )
21864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21866     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21867 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21868     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21870     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21871 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21874     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21876
21877     ;;
21878 esac
21879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21882   echo $ECHO_N "(cached) $ECHO_C" >&6
21883 else
21884   eval "$as_ac_Header=\$ac_header_preproc"
21885 fi
21886 ac_res=`eval echo '${'$as_ac_Header'}'`
21887                { echo "$as_me:$LINENO: result: $ac_res" >&5
21888 echo "${ECHO_T}$ac_res" >&6; }
21889
21890 fi
21891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21892   cat >>confdefs.h <<_ACEOF
21893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21894 _ACEOF
21895
21896 fi
21897
21898 done
21899
21900
21901
21902
21903
21904
21905
21906
21907   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21908 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21909 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21910   echo $ECHO_N "(cached) $ECHO_C" >&6
21911 else
21912   cat >conftest.$ac_ext <<_ACEOF
21913 /* confdefs.h.  */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h.  */
21918 $ac_includes_default
21919 typedef ptrdiff_t ac__type_new_;
21920 int
21921 main ()
21922 {
21923 if ((ac__type_new_ *) 0)
21924   return 0;
21925 if (sizeof (ac__type_new_))
21926   return 0;
21927   ;
21928   return 0;
21929 }
21930 _ACEOF
21931 rm -f conftest.$ac_objext
21932 if { (ac_try="$ac_compile"
21933 case "(($ac_try" in
21934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935   *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938   (eval "$ac_compile") 2>conftest.er1
21939   ac_status=$?
21940   grep -v '^ *+' conftest.er1 >conftest.err
21941   rm -f conftest.er1
21942   cat conftest.err >&5
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); } && {
21945          test -z "$ac_c_werror_flag" ||
21946          test ! -s conftest.err
21947        } && test -s conftest.$ac_objext; then
21948   ac_cv_type_ptrdiff_t=yes
21949 else
21950   echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21952
21953         ac_cv_type_ptrdiff_t=no
21954 fi
21955
21956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21957 fi
21958 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21959 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21960 if test $ac_cv_type_ptrdiff_t = yes; then
21961   :
21962 else
21963
21964 cat >>confdefs.h <<\_ACEOF
21965 #define ptrdiff_t long
21966 _ACEOF
21967
21968
21969 fi
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21982 stdlib.h string.h unistd.h sys/param.h
21983 do
21984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21986   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21989   echo $ECHO_N "(cached) $ECHO_C" >&6
21990 fi
21991 ac_res=`eval echo '${'$as_ac_Header'}'`
21992                { echo "$as_me:$LINENO: result: $ac_res" >&5
21993 echo "${ECHO_T}$ac_res" >&6; }
21994 else
21995   # Is the header compilable?
21996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21998 cat >conftest.$ac_ext <<_ACEOF
21999 /* confdefs.h.  */
22000 _ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h.  */
22004 $ac_includes_default
22005 #include <$ac_header>
22006 _ACEOF
22007 rm -f conftest.$ac_objext
22008 if { (ac_try="$ac_compile"
22009 case "(($ac_try" in
22010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011   *) ac_try_echo=$ac_try;;
22012 esac
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014   (eval "$ac_compile") 2>conftest.er1
22015   ac_status=$?
22016   grep -v '^ *+' conftest.er1 >conftest.err
22017   rm -f conftest.er1
22018   cat conftest.err >&5
22019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020   (exit $ac_status); } && {
22021          test -z "$ac_c_werror_flag" ||
22022          test ! -s conftest.err
22023        } && test -s conftest.$ac_objext; then
22024   ac_header_compiler=yes
22025 else
22026   echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029         ac_header_compiler=no
22030 fi
22031
22032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22034 echo "${ECHO_T}$ac_header_compiler" >&6; }
22035
22036 # Is the header present?
22037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22039 cat >conftest.$ac_ext <<_ACEOF
22040 /* confdefs.h.  */
22041 _ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h.  */
22045 #include <$ac_header>
22046 _ACEOF
22047 if { (ac_try="$ac_cpp conftest.$ac_ext"
22048 case "(($ac_try" in
22049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050   *) ac_try_echo=$ac_try;;
22051 esac
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22054   ac_status=$?
22055   grep -v '^ *+' conftest.er1 >conftest.err
22056   rm -f conftest.er1
22057   cat conftest.err >&5
22058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059   (exit $ac_status); } >/dev/null && {
22060          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22061          test ! -s conftest.err
22062        }; then
22063   ac_header_preproc=yes
22064 else
22065   echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22067
22068   ac_header_preproc=no
22069 fi
22070
22071 rm -f conftest.err conftest.$ac_ext
22072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22073 echo "${ECHO_T}$ac_header_preproc" >&6; }
22074
22075 # So?  What about this header?
22076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22077   yes:no: )
22078     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22082     ac_header_preproc=yes
22083     ;;
22084   no:yes:* )
22085     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22087     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22088 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22089     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22091     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22092 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22095     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22097
22098     ;;
22099 esac
22100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22103   echo $ECHO_N "(cached) $ECHO_C" >&6
22104 else
22105   eval "$as_ac_Header=\$ac_header_preproc"
22106 fi
22107 ac_res=`eval echo '${'$as_ac_Header'}'`
22108                { echo "$as_me:$LINENO: result: $ac_res" >&5
22109 echo "${ECHO_T}$ac_res" >&6; }
22110
22111 fi
22112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22113   cat >>confdefs.h <<_ACEOF
22114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22115 _ACEOF
22116
22117 fi
22118
22119 done
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22145 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22146 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22147 __fsetlocking
22148 do
22149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22153   echo $ECHO_N "(cached) $ECHO_C" >&6
22154 else
22155   cat >conftest.$ac_ext <<_ACEOF
22156 /* confdefs.h.  */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h.  */
22161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22163 #define $ac_func innocuous_$ac_func
22164
22165 /* System header to define __stub macros and hopefully few prototypes,
22166     which can conflict with char $ac_func (); below.
22167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22168     <limits.h> exists even on freestanding compilers.  */
22169
22170 #ifdef __STDC__
22171 # include <limits.h>
22172 #else
22173 # include <assert.h>
22174 #endif
22175
22176 #undef $ac_func
22177
22178 /* Override any GCC internal prototype to avoid an error.
22179    Use char because int might match the return type of a GCC
22180    builtin and then its argument prototype would still apply.  */
22181 #ifdef __cplusplus
22182 extern "C"
22183 #endif
22184 char $ac_func ();
22185 /* The GNU C library defines this for functions which it implements
22186     to always fail with ENOSYS.  Some functions are actually named
22187     something starting with __ and the normal name is an alias.  */
22188 #if defined __stub_$ac_func || defined __stub___$ac_func
22189 choke me
22190 #endif
22191
22192 int
22193 main ()
22194 {
22195 return $ac_func ();
22196   ;
22197   return 0;
22198 }
22199 _ACEOF
22200 rm -f conftest.$ac_objext conftest$ac_exeext
22201 if { (ac_try="$ac_link"
22202 case "(($ac_try" in
22203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204   *) ac_try_echo=$ac_try;;
22205 esac
22206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22207   (eval "$ac_link") 2>conftest.er1
22208   ac_status=$?
22209   grep -v '^ *+' conftest.er1 >conftest.err
22210   rm -f conftest.er1
22211   cat conftest.err >&5
22212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213   (exit $ac_status); } && {
22214          test -z "$ac_c_werror_flag" ||
22215          test ! -s conftest.err
22216        } && test -s conftest$ac_exeext &&
22217        $as_test_x conftest$ac_exeext; then
22218   eval "$as_ac_var=yes"
22219 else
22220   echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22222
22223         eval "$as_ac_var=no"
22224 fi
22225
22226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22227       conftest$ac_exeext conftest.$ac_ext
22228 fi
22229 ac_res=`eval echo '${'$as_ac_var'}'`
22230                { echo "$as_me:$LINENO: result: $ac_res" >&5
22231 echo "${ECHO_T}$ac_res" >&6; }
22232 if test `eval echo '${'$as_ac_var'}'` = yes; then
22233   cat >>confdefs.h <<_ACEOF
22234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22235 _ACEOF
22236
22237 fi
22238 done
22239
22240
22241
22242   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22243 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22244 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22245   echo $ECHO_N "(cached) $ECHO_C" >&6
22246 else
22247   cat >conftest.$ac_ext <<_ACEOF
22248 /* confdefs.h.  */
22249 _ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h.  */
22253 #include <stdio.h>
22254 int
22255 main ()
22256 {
22257
22258 #ifndef _snprintf
22259   char *p = (char *) _snprintf;
22260 #endif
22261
22262   ;
22263   return 0;
22264 }
22265 _ACEOF
22266 rm -f conftest.$ac_objext
22267 if { (ac_try="$ac_compile"
22268 case "(($ac_try" in
22269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270   *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273   (eval "$ac_compile") 2>conftest.er1
22274   ac_status=$?
22275   grep -v '^ *+' conftest.er1 >conftest.err
22276   rm -f conftest.er1
22277   cat conftest.err >&5
22278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279   (exit $ac_status); } && {
22280          test -z "$ac_c_werror_flag" ||
22281          test ! -s conftest.err
22282        } && test -s conftest.$ac_objext; then
22283   ac_cv_have_decl__snprintf=yes
22284 else
22285   echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22287
22288         ac_cv_have_decl__snprintf=no
22289 fi
22290
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 fi
22293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22294 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22295   if test $ac_cv_have_decl__snprintf = yes; then
22296     gt_value=1
22297   else
22298     gt_value=0
22299   fi
22300
22301 cat >>confdefs.h <<_ACEOF
22302 #define HAVE_DECL__SNPRINTF $gt_value
22303 _ACEOF
22304
22305
22306
22307   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22308 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22309 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22310   echo $ECHO_N "(cached) $ECHO_C" >&6
22311 else
22312   cat >conftest.$ac_ext <<_ACEOF
22313 /* confdefs.h.  */
22314 _ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h.  */
22318 #include <stdio.h>
22319 int
22320 main ()
22321 {
22322
22323 #ifndef _snwprintf
22324   char *p = (char *) _snwprintf;
22325 #endif
22326
22327   ;
22328   return 0;
22329 }
22330 _ACEOF
22331 rm -f conftest.$ac_objext
22332 if { (ac_try="$ac_compile"
22333 case "(($ac_try" in
22334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335   *) ac_try_echo=$ac_try;;
22336 esac
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338   (eval "$ac_compile") 2>conftest.er1
22339   ac_status=$?
22340   grep -v '^ *+' conftest.er1 >conftest.err
22341   rm -f conftest.er1
22342   cat conftest.err >&5
22343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344   (exit $ac_status); } && {
22345          test -z "$ac_c_werror_flag" ||
22346          test ! -s conftest.err
22347        } && test -s conftest.$ac_objext; then
22348   ac_cv_have_decl__snwprintf=yes
22349 else
22350   echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22352
22353         ac_cv_have_decl__snwprintf=no
22354 fi
22355
22356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357 fi
22358 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22359 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22360   if test $ac_cv_have_decl__snwprintf = yes; then
22361     gt_value=1
22362   else
22363     gt_value=0
22364   fi
22365
22366 cat >>confdefs.h <<_ACEOF
22367 #define HAVE_DECL__SNWPRINTF $gt_value
22368 _ACEOF
22369
22370
22371
22372
22373   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22374 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22375 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22376   echo $ECHO_N "(cached) $ECHO_C" >&6
22377 else
22378   cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h.  */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h.  */
22384 #include <stdio.h>
22385 int
22386 main ()
22387 {
22388
22389 #ifndef feof_unlocked
22390   char *p = (char *) feof_unlocked;
22391 #endif
22392
22393   ;
22394   return 0;
22395 }
22396 _ACEOF
22397 rm -f conftest.$ac_objext
22398 if { (ac_try="$ac_compile"
22399 case "(($ac_try" in
22400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22401   *) ac_try_echo=$ac_try;;
22402 esac
22403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22404   (eval "$ac_compile") 2>conftest.er1
22405   ac_status=$?
22406   grep -v '^ *+' conftest.er1 >conftest.err
22407   rm -f conftest.er1
22408   cat conftest.err >&5
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); } && {
22411          test -z "$ac_c_werror_flag" ||
22412          test ! -s conftest.err
22413        } && test -s conftest.$ac_objext; then
22414   ac_cv_have_decl_feof_unlocked=yes
22415 else
22416   echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22418
22419         ac_cv_have_decl_feof_unlocked=no
22420 fi
22421
22422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22423 fi
22424 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22425 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22426   if test $ac_cv_have_decl_feof_unlocked = yes; then
22427     gt_value=1
22428   else
22429     gt_value=0
22430   fi
22431
22432 cat >>confdefs.h <<_ACEOF
22433 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22434 _ACEOF
22435
22436
22437
22438   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22439 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22440 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22441   echo $ECHO_N "(cached) $ECHO_C" >&6
22442 else
22443   cat >conftest.$ac_ext <<_ACEOF
22444 /* confdefs.h.  */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h.  */
22449 #include <stdio.h>
22450 int
22451 main ()
22452 {
22453
22454 #ifndef fgets_unlocked
22455   char *p = (char *) fgets_unlocked;
22456 #endif
22457
22458   ;
22459   return 0;
22460 }
22461 _ACEOF
22462 rm -f conftest.$ac_objext
22463 if { (ac_try="$ac_compile"
22464 case "(($ac_try" in
22465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466   *) ac_try_echo=$ac_try;;
22467 esac
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469   (eval "$ac_compile") 2>conftest.er1
22470   ac_status=$?
22471   grep -v '^ *+' conftest.er1 >conftest.err
22472   rm -f conftest.er1
22473   cat conftest.err >&5
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); } && {
22476          test -z "$ac_c_werror_flag" ||
22477          test ! -s conftest.err
22478        } && test -s conftest.$ac_objext; then
22479   ac_cv_have_decl_fgets_unlocked=yes
22480 else
22481   echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22483
22484         ac_cv_have_decl_fgets_unlocked=no
22485 fi
22486
22487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488 fi
22489 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22490 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22491   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22492     gt_value=1
22493   else
22494     gt_value=0
22495   fi
22496
22497 cat >>confdefs.h <<_ACEOF
22498 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22499 _ACEOF
22500
22501
22502
22503   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22504 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22505 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22506   echo $ECHO_N "(cached) $ECHO_C" >&6
22507 else
22508   cat >conftest.$ac_ext <<_ACEOF
22509 /* confdefs.h.  */
22510 _ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h.  */
22514 #include <stdio.h>
22515 int
22516 main ()
22517 {
22518
22519 #ifndef getc_unlocked
22520   char *p = (char *) getc_unlocked;
22521 #endif
22522
22523   ;
22524   return 0;
22525 }
22526 _ACEOF
22527 rm -f conftest.$ac_objext
22528 if { (ac_try="$ac_compile"
22529 case "(($ac_try" in
22530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22531   *) ac_try_echo=$ac_try;;
22532 esac
22533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22534   (eval "$ac_compile") 2>conftest.er1
22535   ac_status=$?
22536   grep -v '^ *+' conftest.er1 >conftest.err
22537   rm -f conftest.er1
22538   cat conftest.err >&5
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); } && {
22541          test -z "$ac_c_werror_flag" ||
22542          test ! -s conftest.err
22543        } && test -s conftest.$ac_objext; then
22544   ac_cv_have_decl_getc_unlocked=yes
22545 else
22546   echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22548
22549         ac_cv_have_decl_getc_unlocked=no
22550 fi
22551
22552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22553 fi
22554 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22555 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22556   if test $ac_cv_have_decl_getc_unlocked = yes; then
22557     gt_value=1
22558   else
22559     gt_value=0
22560   fi
22561
22562 cat >>confdefs.h <<_ACEOF
22563 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22564 _ACEOF
22565
22566
22567
22568   case $gt_cv_func_printf_posix in
22569     *yes) HAVE_POSIX_PRINTF=1 ;;
22570     *) HAVE_POSIX_PRINTF=0 ;;
22571   esac
22572
22573   if test "$ac_cv_func_asprintf" = yes; then
22574     HAVE_ASPRINTF=1
22575   else
22576     HAVE_ASPRINTF=0
22577   fi
22578
22579   if test "$ac_cv_func_snprintf" = yes; then
22580     HAVE_SNPRINTF=1
22581   else
22582     HAVE_SNPRINTF=0
22583   fi
22584
22585   if test "$ac_cv_func_wprintf" = yes; then
22586     HAVE_WPRINTF=1
22587   else
22588     HAVE_WPRINTF=0
22589   fi
22590
22591
22592
22593
22594
22595
22596
22597           am_save_CPPFLAGS="$CPPFLAGS"
22598
22599   for element in $INCICONV; do
22600     haveit=
22601     for x in $CPPFLAGS; do
22602
22603   acl_save_prefix="$prefix"
22604   prefix="$acl_final_prefix"
22605   acl_save_exec_prefix="$exec_prefix"
22606   exec_prefix="$acl_final_exec_prefix"
22607   eval x=\"$x\"
22608   exec_prefix="$acl_save_exec_prefix"
22609   prefix="$acl_save_prefix"
22610
22611       if test "X$x" = "X$element"; then
22612         haveit=yes
22613         break
22614       fi
22615     done
22616     if test -z "$haveit"; then
22617       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22618     fi
22619   done
22620
22621
22622   { echo "$as_me:$LINENO: checking for iconv" >&5
22623 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22624 if test "${am_cv_func_iconv+set}" = set; then
22625   echo $ECHO_N "(cached) $ECHO_C" >&6
22626 else
22627
22628     am_cv_func_iconv="no, consider installing GNU libiconv"
22629     am_cv_lib_iconv=no
22630     cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h.  */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h.  */
22636 #include <stdlib.h>
22637 #include <iconv.h>
22638 int
22639 main ()
22640 {
22641 iconv_t cd = iconv_open("","");
22642        iconv(cd,NULL,NULL,NULL,NULL);
22643        iconv_close(cd);
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 rm -f conftest.$ac_objext conftest$ac_exeext
22649 if { (ac_try="$ac_link"
22650 case "(($ac_try" in
22651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652   *) ac_try_echo=$ac_try;;
22653 esac
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655   (eval "$ac_link") 2>conftest.er1
22656   ac_status=$?
22657   grep -v '^ *+' conftest.er1 >conftest.err
22658   rm -f conftest.er1
22659   cat conftest.err >&5
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); } && {
22662          test -z "$ac_c_werror_flag" ||
22663          test ! -s conftest.err
22664        } && test -s conftest$ac_exeext &&
22665        $as_test_x conftest$ac_exeext; then
22666   am_cv_func_iconv=yes
22667 else
22668   echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22670
22671
22672 fi
22673
22674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22675       conftest$ac_exeext conftest.$ac_ext
22676     if test "$am_cv_func_iconv" != yes; then
22677       am_save_LIBS="$LIBS"
22678       LIBS="$LIBS $LIBICONV"
22679       cat >conftest.$ac_ext <<_ACEOF
22680 /* confdefs.h.  */
22681 _ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h.  */
22685 #include <stdlib.h>
22686 #include <iconv.h>
22687 int
22688 main ()
22689 {
22690 iconv_t cd = iconv_open("","");
22691          iconv(cd,NULL,NULL,NULL,NULL);
22692          iconv_close(cd);
22693   ;
22694   return 0;
22695 }
22696 _ACEOF
22697 rm -f conftest.$ac_objext conftest$ac_exeext
22698 if { (ac_try="$ac_link"
22699 case "(($ac_try" in
22700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701   *) ac_try_echo=$ac_try;;
22702 esac
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704   (eval "$ac_link") 2>conftest.er1
22705   ac_status=$?
22706   grep -v '^ *+' conftest.er1 >conftest.err
22707   rm -f conftest.er1
22708   cat conftest.err >&5
22709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710   (exit $ac_status); } && {
22711          test -z "$ac_c_werror_flag" ||
22712          test ! -s conftest.err
22713        } && test -s conftest$ac_exeext &&
22714        $as_test_x conftest$ac_exeext; then
22715   am_cv_lib_iconv=yes
22716         am_cv_func_iconv=yes
22717 else
22718   echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22720
22721
22722 fi
22723
22724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22725       conftest$ac_exeext conftest.$ac_ext
22726       LIBS="$am_save_LIBS"
22727     fi
22728
22729 fi
22730 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22731 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22732   if test "$am_cv_func_iconv" = yes; then
22733
22734 cat >>confdefs.h <<\_ACEOF
22735 #define HAVE_ICONV 1
22736 _ACEOF
22737
22738   fi
22739   if test "$am_cv_lib_iconv" = yes; then
22740     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22741 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22742     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22743 echo "${ECHO_T}$LIBICONV" >&6; }
22744   else
22745             CPPFLAGS="$am_save_CPPFLAGS"
22746     LIBICONV=
22747     LTLIBICONV=
22748   fi
22749
22750
22751
22752   if test "$am_cv_func_iconv" = yes; then
22753     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22754 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22755     if test "${am_cv_proto_iconv+set}" = set; then
22756   echo $ECHO_N "(cached) $ECHO_C" >&6
22757 else
22758
22759       cat >conftest.$ac_ext <<_ACEOF
22760 /* confdefs.h.  */
22761 _ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h.  */
22765
22766 #include <stdlib.h>
22767 #include <iconv.h>
22768 extern
22769 #ifdef __cplusplus
22770 "C"
22771 #endif
22772 #if defined(__STDC__) || defined(__cplusplus)
22773 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22774 #else
22775 size_t iconv();
22776 #endif
22777
22778 int
22779 main ()
22780 {
22781
22782   ;
22783   return 0;
22784 }
22785 _ACEOF
22786 rm -f conftest.$ac_objext
22787 if { (ac_try="$ac_compile"
22788 case "(($ac_try" in
22789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790   *) ac_try_echo=$ac_try;;
22791 esac
22792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22793   (eval "$ac_compile") 2>conftest.er1
22794   ac_status=$?
22795   grep -v '^ *+' conftest.er1 >conftest.err
22796   rm -f conftest.er1
22797   cat conftest.err >&5
22798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799   (exit $ac_status); } && {
22800          test -z "$ac_c_werror_flag" ||
22801          test ! -s conftest.err
22802        } && test -s conftest.$ac_objext; then
22803   am_cv_proto_iconv_arg1=""
22804 else
22805   echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22807
22808         am_cv_proto_iconv_arg1="const"
22809 fi
22810
22811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22812       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);"
22813 fi
22814
22815     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22816     { echo "$as_me:$LINENO: result: ${ac_t:-
22817          }$am_cv_proto_iconv" >&5
22818 echo "${ECHO_T}${ac_t:-
22819          }$am_cv_proto_iconv" >&6; }
22820
22821 cat >>confdefs.h <<_ACEOF
22822 #define ICONV_CONST $am_cv_proto_iconv_arg1
22823 _ACEOF
22824
22825   fi
22826
22827
22828   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22829 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22830 if test "${am_cv_langinfo_codeset+set}" = set; then
22831   echo $ECHO_N "(cached) $ECHO_C" >&6
22832 else
22833   cat >conftest.$ac_ext <<_ACEOF
22834 /* confdefs.h.  */
22835 _ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h.  */
22839 #include <langinfo.h>
22840 int
22841 main ()
22842 {
22843 char* cs = nl_langinfo(CODESET);
22844   ;
22845   return 0;
22846 }
22847 _ACEOF
22848 rm -f conftest.$ac_objext conftest$ac_exeext
22849 if { (ac_try="$ac_link"
22850 case "(($ac_try" in
22851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852   *) ac_try_echo=$ac_try;;
22853 esac
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855   (eval "$ac_link") 2>conftest.er1
22856   ac_status=$?
22857   grep -v '^ *+' conftest.er1 >conftest.err
22858   rm -f conftest.er1
22859   cat conftest.err >&5
22860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861   (exit $ac_status); } && {
22862          test -z "$ac_c_werror_flag" ||
22863          test ! -s conftest.err
22864        } && test -s conftest$ac_exeext &&
22865        $as_test_x conftest$ac_exeext; then
22866   am_cv_langinfo_codeset=yes
22867 else
22868   echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22870
22871         am_cv_langinfo_codeset=no
22872 fi
22873
22874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22875       conftest$ac_exeext conftest.$ac_ext
22876
22877 fi
22878 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22879 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22880   if test $am_cv_langinfo_codeset = yes; then
22881
22882 cat >>confdefs.h <<\_ACEOF
22883 #define HAVE_LANGINFO_CODESET 1
22884 _ACEOF
22885
22886   fi
22887
22888   if test $ac_cv_header_locale_h = yes; then
22889
22890   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22891 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22892 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22893   echo $ECHO_N "(cached) $ECHO_C" >&6
22894 else
22895   cat >conftest.$ac_ext <<_ACEOF
22896 /* confdefs.h.  */
22897 _ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h.  */
22901 #include <locale.h>
22902 int
22903 main ()
22904 {
22905 return LC_MESSAGES
22906   ;
22907   return 0;
22908 }
22909 _ACEOF
22910 rm -f conftest.$ac_objext conftest$ac_exeext
22911 if { (ac_try="$ac_link"
22912 case "(($ac_try" in
22913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914   *) ac_try_echo=$ac_try;;
22915 esac
22916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917   (eval "$ac_link") 2>conftest.er1
22918   ac_status=$?
22919   grep -v '^ *+' conftest.er1 >conftest.err
22920   rm -f conftest.er1
22921   cat conftest.err >&5
22922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); } && {
22924          test -z "$ac_c_werror_flag" ||
22925          test ! -s conftest.err
22926        } && test -s conftest$ac_exeext &&
22927        $as_test_x conftest$ac_exeext; then
22928   gt_cv_val_LC_MESSAGES=yes
22929 else
22930   echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22932
22933         gt_cv_val_LC_MESSAGES=no
22934 fi
22935
22936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22937       conftest$ac_exeext conftest.$ac_ext
22938 fi
22939 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22940 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22941   if test $gt_cv_val_LC_MESSAGES = yes; then
22942
22943 cat >>confdefs.h <<\_ACEOF
22944 #define HAVE_LC_MESSAGES 1
22945 _ACEOF
22946
22947   fi
22948
22949   fi
22950
22951   if test -n "$INTL_MACOSX_LIBS"; then
22952     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22953   fi
22954
22955                       for ac_prog in bison
22956 do
22957   # Extract the first word of "$ac_prog", so it can be a program name with args.
22958 set dummy $ac_prog; ac_word=$2
22959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22961 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22962   echo $ECHO_N "(cached) $ECHO_C" >&6
22963 else
22964   if test -n "$INTLBISON"; then
22965   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22966 else
22967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22968 for as_dir in $PATH
22969 do
22970   IFS=$as_save_IFS
22971   test -z "$as_dir" && as_dir=.
22972   for ac_exec_ext in '' $ac_executable_extensions; do
22973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22974     ac_cv_prog_INTLBISON="$ac_prog"
22975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22976     break 2
22977   fi
22978 done
22979 done
22980 IFS=$as_save_IFS
22981
22982 fi
22983 fi
22984 INTLBISON=$ac_cv_prog_INTLBISON
22985 if test -n "$INTLBISON"; then
22986   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22987 echo "${ECHO_T}$INTLBISON" >&6; }
22988 else
22989   { echo "$as_me:$LINENO: result: no" >&5
22990 echo "${ECHO_T}no" >&6; }
22991 fi
22992
22993
22994   test -n "$INTLBISON" && break
22995 done
22996
22997   if test -z "$INTLBISON"; then
22998     ac_verc_fail=yes
22999   else
23000         { echo "$as_me:$LINENO: checking version of bison" >&5
23001 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23002     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23003     case $ac_prog_version in
23004       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23005       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23006          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23007       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23008     esac
23009     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23010 echo "${ECHO_T}$ac_prog_version" >&6; }
23011   fi
23012   if test $ac_verc_fail = yes; then
23013     INTLBISON=:
23014   fi
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23032 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23033 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23034   echo $ECHO_N "(cached) $ECHO_C" >&6
23035 else
23036   gt_save_CPPFLAGS="$CPPFLAGS"
23037      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23038      gt_save_LIBS="$LIBS"
23039      LIBS="$LIBS -framework CoreFoundation"
23040      cat >conftest.$ac_ext <<_ACEOF
23041 /* confdefs.h.  */
23042 _ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h.  */
23046 #include <CFPreferences.h>
23047 int
23048 main ()
23049 {
23050 CFPreferencesCopyAppValue(NULL, NULL)
23051   ;
23052   return 0;
23053 }
23054 _ACEOF
23055 rm -f conftest.$ac_objext conftest$ac_exeext
23056 if { (ac_try="$ac_link"
23057 case "(($ac_try" in
23058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059   *) ac_try_echo=$ac_try;;
23060 esac
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062   (eval "$ac_link") 2>conftest.er1
23063   ac_status=$?
23064   grep -v '^ *+' conftest.er1 >conftest.err
23065   rm -f conftest.er1
23066   cat conftest.err >&5
23067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068   (exit $ac_status); } && {
23069          test -z "$ac_c_werror_flag" ||
23070          test ! -s conftest.err
23071        } && test -s conftest$ac_exeext &&
23072        $as_test_x conftest$ac_exeext; then
23073   gt_cv_func_CFPreferencesCopyAppValue=yes
23074 else
23075   echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078         gt_cv_func_CFPreferencesCopyAppValue=no
23079 fi
23080
23081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23082       conftest$ac_exeext conftest.$ac_ext
23083      CPPFLAGS="$gt_save_CPPFLAGS"
23084      LIBS="$gt_save_LIBS"
23085 fi
23086 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23087 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23088   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23089
23090 cat >>confdefs.h <<\_ACEOF
23091 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23092 _ACEOF
23093
23094   fi
23095     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23096 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23097 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23098   echo $ECHO_N "(cached) $ECHO_C" >&6
23099 else
23100   gt_save_CPPFLAGS="$CPPFLAGS"
23101      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23102      gt_save_LIBS="$LIBS"
23103      LIBS="$LIBS -framework CoreFoundation"
23104      cat >conftest.$ac_ext <<_ACEOF
23105 /* confdefs.h.  */
23106 _ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h.  */
23110 #include <CFLocale.h>
23111 int
23112 main ()
23113 {
23114 CFLocaleCopyCurrent();
23115   ;
23116   return 0;
23117 }
23118 _ACEOF
23119 rm -f conftest.$ac_objext conftest$ac_exeext
23120 if { (ac_try="$ac_link"
23121 case "(($ac_try" in
23122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123   *) ac_try_echo=$ac_try;;
23124 esac
23125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126   (eval "$ac_link") 2>conftest.er1
23127   ac_status=$?
23128   grep -v '^ *+' conftest.er1 >conftest.err
23129   rm -f conftest.er1
23130   cat conftest.err >&5
23131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132   (exit $ac_status); } && {
23133          test -z "$ac_c_werror_flag" ||
23134          test ! -s conftest.err
23135        } && test -s conftest$ac_exeext &&
23136        $as_test_x conftest$ac_exeext; then
23137   gt_cv_func_CFLocaleCopyCurrent=yes
23138 else
23139   echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23141
23142         gt_cv_func_CFLocaleCopyCurrent=no
23143 fi
23144
23145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23146       conftest$ac_exeext conftest.$ac_ext
23147      CPPFLAGS="$gt_save_CPPFLAGS"
23148      LIBS="$gt_save_LIBS"
23149 fi
23150 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23151 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23152   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23153
23154 cat >>confdefs.h <<\_ACEOF
23155 #define HAVE_CFLOCALECOPYCURRENT 1
23156 _ACEOF
23157
23158   fi
23159   INTL_MACOSX_LIBS=
23160   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23161     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23162   fi
23163
23164
23165
23166
23167   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23168 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23169     # Check whether --enable-nls was given.
23170 if test "${enable_nls+set}" = set; then
23171   enableval=$enable_nls; USE_NLS=$enableval
23172 else
23173   USE_NLS=yes
23174 fi
23175
23176   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23177 echo "${ECHO_T}$USE_NLS" >&6; }
23178
23179
23180
23181
23182     BUILD_INCLUDED_LIBINTL=no
23183     USE_INCLUDED_LIBINTL=no
23184
23185   LIBINTL=
23186   LTLIBINTL=
23187   POSUB=
23188
23189     if test "$USE_NLS" = "yes"; then
23190     gt_use_preinstalled_gnugettext=no
23191
23192       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23193 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23194
23195 # Check whether --with-included-gettext was given.
23196 if test "${with_included_gettext+set}" = set; then
23197   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23198 else
23199   nls_cv_force_use_gnu_gettext=no
23200 fi
23201
23202       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23203 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23204
23205       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23206       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23207
23208
23209
23210
23211
23212
23213         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23214 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23215 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23216   echo $ECHO_N "(cached) $ECHO_C" >&6
23217 else
23218   cat >conftest.$ac_ext <<_ACEOF
23219 /* confdefs.h.  */
23220 _ACEOF
23221 cat confdefs.h >>conftest.$ac_ext
23222 cat >>conftest.$ac_ext <<_ACEOF
23223 /* end confdefs.h.  */
23224 #include <libintl.h>
23225 extern int _nl_msg_cat_cntr;
23226 extern int *_nl_domain_bindings;
23227 int
23228 main ()
23229 {
23230 bindtextdomain ("", "");
23231 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23232   ;
23233   return 0;
23234 }
23235 _ACEOF
23236 rm -f conftest.$ac_objext conftest$ac_exeext
23237 if { (ac_try="$ac_link"
23238 case "(($ac_try" in
23239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23240   *) ac_try_echo=$ac_try;;
23241 esac
23242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23243   (eval "$ac_link") 2>conftest.er1
23244   ac_status=$?
23245   grep -v '^ *+' conftest.er1 >conftest.err
23246   rm -f conftest.er1
23247   cat conftest.err >&5
23248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249   (exit $ac_status); } && {
23250          test -z "$ac_c_werror_flag" ||
23251          test ! -s conftest.err
23252        } && test -s conftest$ac_exeext &&
23253        $as_test_x conftest$ac_exeext; then
23254   gt_cv_func_gnugettext1_libc=yes
23255 else
23256   echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23258
23259         gt_cv_func_gnugettext1_libc=no
23260 fi
23261
23262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23263       conftest$ac_exeext conftest.$ac_ext
23264 fi
23265 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23266 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23267
23268         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23269
23270
23271
23272     use_additional=yes
23273
23274   acl_save_prefix="$prefix"
23275   prefix="$acl_final_prefix"
23276   acl_save_exec_prefix="$exec_prefix"
23277   exec_prefix="$acl_final_exec_prefix"
23278
23279     eval additional_includedir=\"$includedir\"
23280     eval additional_libdir=\"$libdir\"
23281
23282   exec_prefix="$acl_save_exec_prefix"
23283   prefix="$acl_save_prefix"
23284
23285
23286 # Check whether --with-libintl-prefix was given.
23287 if test "${with_libintl_prefix+set}" = set; then
23288   withval=$with_libintl_prefix;
23289     if test "X$withval" = "Xno"; then
23290       use_additional=no
23291     else
23292       if test "X$withval" = "X"; then
23293
23294   acl_save_prefix="$prefix"
23295   prefix="$acl_final_prefix"
23296   acl_save_exec_prefix="$exec_prefix"
23297   exec_prefix="$acl_final_exec_prefix"
23298
23299           eval additional_includedir=\"$includedir\"
23300           eval additional_libdir=\"$libdir\"
23301
23302   exec_prefix="$acl_save_exec_prefix"
23303   prefix="$acl_save_prefix"
23304
23305       else
23306         additional_includedir="$withval/include"
23307         additional_libdir="$withval/lib"
23308       fi
23309     fi
23310
23311 fi
23312
23313       LIBINTL=
23314   LTLIBINTL=
23315   INCINTL=
23316   rpathdirs=
23317   ltrpathdirs=
23318   names_already_handled=
23319   names_next_round='intl '
23320   while test -n "$names_next_round"; do
23321     names_this_round="$names_next_round"
23322     names_next_round=
23323     for name in $names_this_round; do
23324       already_handled=
23325       for n in $names_already_handled; do
23326         if test "$n" = "$name"; then
23327           already_handled=yes
23328           break
23329         fi
23330       done
23331       if test -z "$already_handled"; then
23332         names_already_handled="$names_already_handled $name"
23333                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23334         eval value=\"\$HAVE_LIB$uppername\"
23335         if test -n "$value"; then
23336           if test "$value" = yes; then
23337             eval value=\"\$LIB$uppername\"
23338             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23339             eval value=\"\$LTLIB$uppername\"
23340             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23341           else
23342                                     :
23343           fi
23344         else
23345                               found_dir=
23346           found_la=
23347           found_so=
23348           found_a=
23349           if test $use_additional = yes; then
23350             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23351               found_dir="$additional_libdir"
23352               found_so="$additional_libdir/lib$name.$shlibext"
23353               if test -f "$additional_libdir/lib$name.la"; then
23354                 found_la="$additional_libdir/lib$name.la"
23355               fi
23356             else
23357               if test -f "$additional_libdir/lib$name.$libext"; then
23358                 found_dir="$additional_libdir"
23359                 found_a="$additional_libdir/lib$name.$libext"
23360                 if test -f "$additional_libdir/lib$name.la"; then
23361                   found_la="$additional_libdir/lib$name.la"
23362                 fi
23363               fi
23364             fi
23365           fi
23366           if test "X$found_dir" = "X"; then
23367             for x in $LDFLAGS $LTLIBINTL; do
23368
23369   acl_save_prefix="$prefix"
23370   prefix="$acl_final_prefix"
23371   acl_save_exec_prefix="$exec_prefix"
23372   exec_prefix="$acl_final_exec_prefix"
23373   eval x=\"$x\"
23374   exec_prefix="$acl_save_exec_prefix"
23375   prefix="$acl_save_prefix"
23376
23377               case "$x" in
23378                 -L*)
23379                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23380                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23381                     found_dir="$dir"
23382                     found_so="$dir/lib$name.$shlibext"
23383                     if test -f "$dir/lib$name.la"; then
23384                       found_la="$dir/lib$name.la"
23385                     fi
23386                   else
23387                     if test -f "$dir/lib$name.$libext"; then
23388                       found_dir="$dir"
23389                       found_a="$dir/lib$name.$libext"
23390                       if test -f "$dir/lib$name.la"; then
23391                         found_la="$dir/lib$name.la"
23392                       fi
23393                     fi
23394                   fi
23395                   ;;
23396               esac
23397               if test "X$found_dir" != "X"; then
23398                 break
23399               fi
23400             done
23401           fi
23402           if test "X$found_dir" != "X"; then
23403                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23404             if test "X$found_so" != "X"; then
23405                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23406                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23407               else
23408                                                                                 haveit=
23409                 for x in $ltrpathdirs; do
23410                   if test "X$x" = "X$found_dir"; then
23411                     haveit=yes
23412                     break
23413                   fi
23414                 done
23415                 if test -z "$haveit"; then
23416                   ltrpathdirs="$ltrpathdirs $found_dir"
23417                 fi
23418                                 if test "$hardcode_direct" = yes; then
23419                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23420                 else
23421                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23422                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23423                                                             haveit=
23424                     for x in $rpathdirs; do
23425                       if test "X$x" = "X$found_dir"; then
23426                         haveit=yes
23427                         break
23428                       fi
23429                     done
23430                     if test -z "$haveit"; then
23431                       rpathdirs="$rpathdirs $found_dir"
23432                     fi
23433                   else
23434                                                                                 haveit=
23435                     for x in $LDFLAGS $LIBINTL; do
23436
23437   acl_save_prefix="$prefix"
23438   prefix="$acl_final_prefix"
23439   acl_save_exec_prefix="$exec_prefix"
23440   exec_prefix="$acl_final_exec_prefix"
23441   eval x=\"$x\"
23442   exec_prefix="$acl_save_exec_prefix"
23443   prefix="$acl_save_prefix"
23444
23445                       if test "X$x" = "X-L$found_dir"; then
23446                         haveit=yes
23447                         break
23448                       fi
23449                     done
23450                     if test -z "$haveit"; then
23451                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23452                     fi
23453                     if test "$hardcode_minus_L" != no; then
23454                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23455                     else
23456                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23457                     fi
23458                   fi
23459                 fi
23460               fi
23461             else
23462               if test "X$found_a" != "X"; then
23463                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23464               else
23465                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23466               fi
23467             fi
23468                         additional_includedir=
23469             case "$found_dir" in
23470               */lib | */lib/)
23471                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23472                 additional_includedir="$basedir/include"
23473                 ;;
23474             esac
23475             if test "X$additional_includedir" != "X"; then
23476                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23477                 haveit=
23478                 if test "X$additional_includedir" = "X/usr/local/include"; then
23479                   if test -n "$GCC"; then
23480                     case $host_os in
23481                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23482                     esac
23483                   fi
23484                 fi
23485                 if test -z "$haveit"; then
23486                   for x in $CPPFLAGS $INCINTL; do
23487
23488   acl_save_prefix="$prefix"
23489   prefix="$acl_final_prefix"
23490   acl_save_exec_prefix="$exec_prefix"
23491   exec_prefix="$acl_final_exec_prefix"
23492   eval x=\"$x\"
23493   exec_prefix="$acl_save_exec_prefix"
23494   prefix="$acl_save_prefix"
23495
23496                     if test "X$x" = "X-I$additional_includedir"; then
23497                       haveit=yes
23498                       break
23499                     fi
23500                   done
23501                   if test -z "$haveit"; then
23502                     if test -d "$additional_includedir"; then
23503                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23504                     fi
23505                   fi
23506                 fi
23507               fi
23508             fi
23509                         if test -n "$found_la"; then
23510                                                         save_libdir="$libdir"
23511               case "$found_la" in
23512                 */* | *\\*) . "$found_la" ;;
23513                 *) . "./$found_la" ;;
23514               esac
23515               libdir="$save_libdir"
23516                             for dep in $dependency_libs; do
23517                 case "$dep" in
23518                   -L*)
23519                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23520                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23521                       haveit=
23522                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23523                         if test -n "$GCC"; then
23524                           case $host_os in
23525                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23526                           esac
23527                         fi
23528                       fi
23529                       if test -z "$haveit"; then
23530                         haveit=
23531                         for x in $LDFLAGS $LIBINTL; do
23532
23533   acl_save_prefix="$prefix"
23534   prefix="$acl_final_prefix"
23535   acl_save_exec_prefix="$exec_prefix"
23536   exec_prefix="$acl_final_exec_prefix"
23537   eval x=\"$x\"
23538   exec_prefix="$acl_save_exec_prefix"
23539   prefix="$acl_save_prefix"
23540
23541                           if test "X$x" = "X-L$additional_libdir"; then
23542                             haveit=yes
23543                             break
23544                           fi
23545                         done
23546                         if test -z "$haveit"; then
23547                           if test -d "$additional_libdir"; then
23548                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23549                           fi
23550                         fi
23551                         haveit=
23552                         for x in $LDFLAGS $LTLIBINTL; do
23553
23554   acl_save_prefix="$prefix"
23555   prefix="$acl_final_prefix"
23556   acl_save_exec_prefix="$exec_prefix"
23557   exec_prefix="$acl_final_exec_prefix"
23558   eval x=\"$x\"
23559   exec_prefix="$acl_save_exec_prefix"
23560   prefix="$acl_save_prefix"
23561
23562                           if test "X$x" = "X-L$additional_libdir"; then
23563                             haveit=yes
23564                             break
23565                           fi
23566                         done
23567                         if test -z "$haveit"; then
23568                           if test -d "$additional_libdir"; then
23569                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23570                           fi
23571                         fi
23572                       fi
23573                     fi
23574                     ;;
23575                   -R*)
23576                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23577                     if test "$enable_rpath" != no; then
23578                                                                   haveit=
23579                       for x in $rpathdirs; do
23580                         if test "X$x" = "X$dir"; then
23581                           haveit=yes
23582                           break
23583                         fi
23584                       done
23585                       if test -z "$haveit"; then
23586                         rpathdirs="$rpathdirs $dir"
23587                       fi
23588                                                                   haveit=
23589                       for x in $ltrpathdirs; do
23590                         if test "X$x" = "X$dir"; then
23591                           haveit=yes
23592                           break
23593                         fi
23594                       done
23595                       if test -z "$haveit"; then
23596                         ltrpathdirs="$ltrpathdirs $dir"
23597                       fi
23598                     fi
23599                     ;;
23600                   -l*)
23601                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23602                     ;;
23603                   *.la)
23604                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23605                     ;;
23606                   *)
23607                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23608                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23609                     ;;
23610                 esac
23611               done
23612             fi
23613           else
23614                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23615             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23616           fi
23617         fi
23618       fi
23619     done
23620   done
23621   if test "X$rpathdirs" != "X"; then
23622     if test -n "$hardcode_libdir_separator"; then
23623                         alldirs=
23624       for found_dir in $rpathdirs; do
23625         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23626       done
23627             acl_save_libdir="$libdir"
23628       libdir="$alldirs"
23629       eval flag=\"$hardcode_libdir_flag_spec\"
23630       libdir="$acl_save_libdir"
23631       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23632     else
23633             for found_dir in $rpathdirs; do
23634         acl_save_libdir="$libdir"
23635         libdir="$found_dir"
23636         eval flag=\"$hardcode_libdir_flag_spec\"
23637         libdir="$acl_save_libdir"
23638         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23639       done
23640     fi
23641   fi
23642   if test "X$ltrpathdirs" != "X"; then
23643             for found_dir in $ltrpathdirs; do
23644       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23645     done
23646   fi
23647
23648           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23649 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23650 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23651   echo $ECHO_N "(cached) $ECHO_C" >&6
23652 else
23653   gt_save_CPPFLAGS="$CPPFLAGS"
23654             CPPFLAGS="$CPPFLAGS $INCINTL"
23655             gt_save_LIBS="$LIBS"
23656             LIBS="$LIBS $LIBINTL"
23657                         cat >conftest.$ac_ext <<_ACEOF
23658 /* confdefs.h.  */
23659 _ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h.  */
23663 #include <libintl.h>
23664 extern int _nl_msg_cat_cntr;
23665 extern
23666 #ifdef __cplusplus
23667 "C"
23668 #endif
23669 const char *_nl_expand_alias (const char *);
23670 int
23671 main ()
23672 {
23673 bindtextdomain ("", "");
23674 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23675   ;
23676   return 0;
23677 }
23678 _ACEOF
23679 rm -f conftest.$ac_objext conftest$ac_exeext
23680 if { (ac_try="$ac_link"
23681 case "(($ac_try" in
23682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23683   *) ac_try_echo=$ac_try;;
23684 esac
23685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23686   (eval "$ac_link") 2>conftest.er1
23687   ac_status=$?
23688   grep -v '^ *+' conftest.er1 >conftest.err
23689   rm -f conftest.er1
23690   cat conftest.err >&5
23691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692   (exit $ac_status); } && {
23693          test -z "$ac_c_werror_flag" ||
23694          test ! -s conftest.err
23695        } && test -s conftest$ac_exeext &&
23696        $as_test_x conftest$ac_exeext; then
23697   gt_cv_func_gnugettext1_libintl=yes
23698 else
23699   echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23701
23702         gt_cv_func_gnugettext1_libintl=no
23703 fi
23704
23705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23706       conftest$ac_exeext conftest.$ac_ext
23707                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23708               LIBS="$LIBS $LIBICONV"
23709               cat >conftest.$ac_ext <<_ACEOF
23710 /* confdefs.h.  */
23711 _ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h.  */
23715 #include <libintl.h>
23716 extern int _nl_msg_cat_cntr;
23717 extern
23718 #ifdef __cplusplus
23719 "C"
23720 #endif
23721 const char *_nl_expand_alias (const char *);
23722 int
23723 main ()
23724 {
23725 bindtextdomain ("", "");
23726 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23727   ;
23728   return 0;
23729 }
23730 _ACEOF
23731 rm -f conftest.$ac_objext conftest$ac_exeext
23732 if { (ac_try="$ac_link"
23733 case "(($ac_try" in
23734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23735   *) ac_try_echo=$ac_try;;
23736 esac
23737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23738   (eval "$ac_link") 2>conftest.er1
23739   ac_status=$?
23740   grep -v '^ *+' conftest.er1 >conftest.err
23741   rm -f conftest.er1
23742   cat conftest.err >&5
23743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); } && {
23745          test -z "$ac_c_werror_flag" ||
23746          test ! -s conftest.err
23747        } && test -s conftest$ac_exeext &&
23748        $as_test_x conftest$ac_exeext; then
23749   LIBINTL="$LIBINTL $LIBICONV"
23750                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23751                 gt_cv_func_gnugettext1_libintl=yes
23752
23753 else
23754   echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23756
23757
23758 fi
23759
23760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23761       conftest$ac_exeext conftest.$ac_ext
23762             fi
23763             CPPFLAGS="$gt_save_CPPFLAGS"
23764             LIBS="$gt_save_LIBS"
23765 fi
23766 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23767 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23768         fi
23769
23770                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23771            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23772                 && test "$PACKAGE" != gettext-runtime \
23773                 && test "$PACKAGE" != gettext-tools; }; then
23774           gt_use_preinstalled_gnugettext=yes
23775         else
23776                     LIBINTL=
23777           LTLIBINTL=
23778           INCINTL=
23779         fi
23780
23781
23782         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23783                               nls_cv_use_gnu_gettext=yes
23784         fi
23785       fi
23786
23787       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23788                 BUILD_INCLUDED_LIBINTL=yes
23789         USE_INCLUDED_LIBINTL=yes
23790         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23791         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23792         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23793       fi
23794
23795       CATOBJEXT=
23796       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23797          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23798                 CATOBJEXT=.gmo
23799       fi
23800
23801
23802     if test -n "$INTL_MACOSX_LIBS"; then
23803       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23804          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23805                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23806         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23807       fi
23808     fi
23809
23810     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23811        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23812
23813 cat >>confdefs.h <<\_ACEOF
23814 #define ENABLE_NLS 1
23815 _ACEOF
23816
23817     else
23818       USE_NLS=no
23819     fi
23820   fi
23821
23822   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23823 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23824   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23825 echo "${ECHO_T}$USE_NLS" >&6; }
23826   if test "$USE_NLS" = "yes"; then
23827     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23828 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23829     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23830       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23831         gt_source="external libintl"
23832       else
23833         gt_source="libc"
23834       fi
23835     else
23836       gt_source="included intl directory"
23837     fi
23838     { echo "$as_me:$LINENO: result: $gt_source" >&5
23839 echo "${ECHO_T}$gt_source" >&6; }
23840   fi
23841
23842   if test "$USE_NLS" = "yes"; then
23843
23844     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23845       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23846         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23847 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23848         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23849 echo "${ECHO_T}$LIBINTL" >&6; }
23850
23851   for element in $INCINTL; do
23852     haveit=
23853     for x in $CPPFLAGS; do
23854
23855   acl_save_prefix="$prefix"
23856   prefix="$acl_final_prefix"
23857   acl_save_exec_prefix="$exec_prefix"
23858   exec_prefix="$acl_final_exec_prefix"
23859   eval x=\"$x\"
23860   exec_prefix="$acl_save_exec_prefix"
23861   prefix="$acl_save_prefix"
23862
23863       if test "X$x" = "X$element"; then
23864         haveit=yes
23865         break
23866       fi
23867     done
23868     if test -z "$haveit"; then
23869       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23870     fi
23871   done
23872
23873       fi
23874
23875
23876 cat >>confdefs.h <<\_ACEOF
23877 #define HAVE_GETTEXT 1
23878 _ACEOF
23879
23880
23881 cat >>confdefs.h <<\_ACEOF
23882 #define HAVE_DCGETTEXT 1
23883 _ACEOF
23884
23885     fi
23886
23887         POSUB=po
23888   fi
23889
23890
23891             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23892       BUILD_INCLUDED_LIBINTL=yes
23893     fi
23894
23895
23896
23897
23898
23899         nls_cv_header_intl=
23900     nls_cv_header_libgt=
23901
23902         DATADIRNAME=share
23903
23904
23905         INSTOBJEXT=.mo
23906
23907
23908         GENCAT=gencat
23909
23910
23911         INTLOBJS=
23912     if test "$USE_INCLUDED_LIBINTL" = yes; then
23913       INTLOBJS="\$(GETTOBJS)"
23914     fi
23915
23916
23917         INTL_LIBTOOL_SUFFIX_PREFIX=
23918
23919
23920
23921     INTLLIBS="$LIBINTL"
23922
23923
23924
23925
23926
23927
23928 fi
23929
23930 support_mysql=no
23931 support_sqlite=no
23932 support_sqlite3=no
23933 support_postgresql=no
23934 support_dbi=no
23935 support_smartalloc=yes
23936 support_readline=yes
23937 support_conio=yes
23938 support_gnome=no
23939 support_bat=no
23940 support_wx_console=no
23941 support_tray_monitor=no
23942 support_tls=no
23943 support_crypto=no
23944 gnome_version=
23945 wx_version=
23946 support_static_tools=no
23947 support_static_fd=no
23948 support_static_sd=no
23949 support_static_dir=no
23950 support_static_cons=no
23951 support_python=no
23952 build_client_only=no
23953 build_dird=yes
23954 build_stored=yes
23955 cats=
23956 db_type=Internal
23957 DB_TYPE=bdb
23958
23959
23960 # Check whether --enable-gnome was given.
23961 if test "${enable_gnome+set}" = set; then
23962   enableval=$enable_gnome;
23963        if test x$enableval = xyes; then
23964           support_gnome=yes
23965        fi
23966
23967
23968 fi
23969
23970
23971 GNOME_DIR=
23972 if test x$support_gnome = xyes; then
23973    abc=`$PKGCONFIG --exists libgnomeui-2.0`
23974    pkg=$?
23975    if test $pkg = 0; then
23976       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23977       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23978       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23979       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23980
23981
23982
23983
23984       GNOME_DIR=src/gnome2-console
23985       gnome_version="Version 2.x"
23986    else
23987       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23988 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23989    { (exit 1); exit 1; }; }
23990    fi
23991 fi
23992
23993
23994 # Check whether --enable-bat was given.
23995 if test "${enable_bat+set}" = set; then
23996   enableval=$enable_bat;
23997        if test x$enableval = xyes; then
23998
23999 cat >>confdefs.h <<\_ACEOF
24000 #define HAVE_BAT 1
24001 _ACEOF
24002
24003           support_bat=yes
24004        fi
24005
24006
24007 fi
24008
24009
24010 BAT_DIR=
24011 if test x$support_bat = xyes; then
24012    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24013    pkg=$?
24014    if test $pkg = 0; then
24015       BAT_DIR=src/qt-console
24016    else
24017       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24018 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24019    { (exit 1); exit 1; }; }
24020    fi
24021 fi
24022
24023 got_qwt=no
24024 QWT_INC=
24025 QWT_LDFLAGS=
24026 QWT_LIB=
24027 QWT=
24028 no_qwt=no
24029 if test x$support_bat = xyes; then
24030    { echo "$as_me:$LINENO: checking for qwt support" >&5
24031 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24032
24033 # Check whether --with-qwt was given.
24034 if test "${with_qwt+set}" = set; then
24035   withval=$with_qwt;
24036           case "$with_qwt" in
24037           no)
24038              no_qwt=yes
24039              ;;
24040           yes|*)
24041              if test -f ${with_qwt}/include/qwt.h; then
24042                 QWT_INC="${with_qwt}/include"
24043                 QWT_LDFLAGS="-L${with_qwt}/lib"
24044                 QWT_LIB="-lqwt"
24045                 QWT="qwt"
24046              fi
24047              ;;
24048           esac
24049
24050
24051 fi
24052
24053
24054             if test $no_qwt = no; then
24055       if test x$QWT_INC = x; then
24056          for root in /usr /usr/local; do
24057             for ver in qwt qwt5 qwt-qt4; do
24058                if test -f ${root}/include/${ver}/qwt.h; then
24059                   QWT_INC="${root}/include/${ver}"
24060                   if test -d ${root}/lib64/; then
24061                      QWT_LDFLAGS="-L${root}/lib64"
24062                   elif test -d ${root}/lib/64/; then
24063                      QWT_LDFLAGS="-L${root}/64"
24064                   else
24065                      QWT_LDFLAGS="-L${root}/lib"
24066                   fi
24067                   QWT_LIB="-lqwt"
24068                   QWT="qwt"
24069                   got_qwt=yes
24070                   break;
24071                fi
24072             done
24073          done
24074       fi
24075    fi
24076    if test x$QWT_INC = x; then
24077       { echo "$as_me:$LINENO: result: no" >&5
24078 echo "${ECHO_T}no" >&6; }
24079    else
24080
24081 cat >>confdefs.h <<\_ACEOF
24082 #define HAVE_QWT 1
24083 _ACEOF
24084
24085       { echo "$as_me:$LINENO: result: yes" >&5
24086 echo "${ECHO_T}yes" >&6; }
24087    fi
24088 fi
24089
24090
24091
24092
24093
24094
24095
24096 # Check whether --enable-bwx-console was given.
24097 if test "${enable_bwx_console+set}" = set; then
24098   enableval=$enable_bwx_console;
24099        if test x$enableval = xyes; then
24100           support_wx_console=yes
24101        fi
24102
24103
24104 fi
24105
24106
24107 WX_DIR=
24108 if test x$support_wx_console = xyes; then
24109    abc=`$WXCONFIG $WXFLAGS --cppflags`
24110    pkg=$?
24111    if test $pkg = 0; then
24112       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24113       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24114       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24115
24116
24117
24118       WX_DIR=src/wx-console
24119    else
24120       echo " "
24121       echo "wx-config program not found. bwx-console disabled."
24122       echo " "
24123       support_wx_console=no
24124    fi
24125 fi
24126
24127
24128 # Check whether --enable-tray-monitor was given.
24129 if test "${enable_tray_monitor+set}" = set; then
24130   enableval=$enable_tray_monitor;
24131        if test x$enableval = xyes; then
24132           support_tray_monitor=yes
24133        fi
24134
24135
24136 fi
24137
24138
24139 TRAY_MONITOR_DIR=
24140 if test x$support_tray_monitor = xyes; then
24141    abc=`$PKGCONFIG --exists gtk+-2.0`
24142    pkg=$?
24143    if test $pkg = 0; then
24144       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24145       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24146
24147
24148       TRAY_MONITOR_DIR=src/tray-monitor
24149       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24150       pkg=$?
24151       if test $pkg = 0; then
24152
24153 cat >>confdefs.h <<\_ACEOF
24154 #define HAVE_GTK_2_4 1
24155 _ACEOF
24156
24157       fi
24158    fi
24159 fi
24160
24161
24162 # Check whether --enable-smartalloc was given.
24163 if test "${enable_smartalloc+set}" = set; then
24164   enableval=$enable_smartalloc;
24165        if test x$enableval = xno; then
24166           support_smartalloc=no
24167        fi
24168
24169
24170 fi
24171
24172
24173 if test x$support_smartalloc = xyes; then
24174
24175 cat >>confdefs.h <<\_ACEOF
24176 #define SMARTALLOC 1
24177 _ACEOF
24178
24179 fi
24180
24181 # Check whether --enable-static-tools was given.
24182 if test "${enable_static_tools+set}" = set; then
24183   enableval=$enable_static_tools;
24184        if test x$enableval = xyes; then
24185           support_static_tools=yes
24186        fi
24187
24188
24189 fi
24190
24191
24192 TTOOL_LDFLAGS=
24193 if test x$support_static_tools = xyes; then
24194    TTOOL_LDFLAGS="-static"
24195 fi
24196
24197
24198 # Check whether --enable-static-fd was given.
24199 if test "${enable_static_fd+set}" = set; then
24200   enableval=$enable_static_fd;
24201        if test x$enableval = xyes; then
24202           support_static_fd=yes
24203        fi
24204
24205
24206 fi
24207
24208
24209 STATIC_FD=
24210 if test x$support_static_fd = xyes; then
24211    STATIC_FD="static-bacula-fd"
24212 fi
24213
24214
24215 # Check whether --enable-static-sd was given.
24216 if test "${enable_static_sd+set}" = set; then
24217   enableval=$enable_static_sd;
24218        if test x$enableval = xyes; then
24219           support_static_sd=yes
24220        fi
24221
24222
24223 fi
24224
24225
24226 STATIC_SD=
24227 if test x$support_static_sd = xyes; then
24228    STATIC_SD="static-bacula-sd"
24229 fi
24230
24231
24232 # Check whether --enable-static-dir was given.
24233 if test "${enable_static_dir+set}" = set; then
24234   enableval=$enable_static_dir;
24235        if test x$enableval = xyes; then
24236           support_static_dir=yes
24237        fi
24238
24239
24240 fi
24241
24242
24243 STATIC_DIR=
24244 if test x$support_static_dir = xyes; then
24245    STATIC_DIR="static-bacula-dir"
24246 fi
24247
24248
24249 # Check whether --enable-static-cons was given.
24250 if test "${enable_static_cons+set}" = set; then
24251   enableval=$enable_static_cons;
24252        if test x$enableval = xyes; then
24253           support_static_cons=yes
24254        fi
24255
24256
24257 fi
24258
24259
24260 STATIC_CONS=
24261 STATIC_GNOME_CONS=
24262 STATIC_WX_CONS=
24263 if test x$support_static_cons = xyes; then
24264    STATIC_CONS="static-bconsole"
24265    STATIC_GNOME_CONS="static-bgnome-console"
24266    STATIC_WX_CONS="static-bwx-console"
24267 fi
24268
24269
24270
24271
24272 # Check whether --enable-client-only was given.
24273 if test "${enable_client_only+set}" = set; then
24274   enableval=$enable_client_only;
24275        if test x$enableval = xyes; then
24276           build_client_only=yes
24277           db_type=None
24278           DB_TYPE=none
24279        fi
24280
24281
24282 fi
24283
24284 if test x$build_client_only = xno; then
24285    ALL_DIRS="subdirs"
24286 else
24287    ALL_DIRS=""
24288 fi
24289
24290
24291 # Check whether --enable-build-dird was given.
24292 if test "${enable_build_dird+set}" = set; then
24293   enableval=$enable_build_dird;
24294        if test x$enableval = xno; then
24295           build_dird=no
24296        fi
24297
24298
24299 fi
24300
24301 if test x$build_dird = xyes; then
24302    DIRD_DIR="src/dird"
24303    DIR_TOOLS="DIRTOOLS"
24304 else
24305    DIRD_DIR=""
24306    DIR_TOOLS="NODIRTOOLS"
24307 fi
24308
24309
24310
24311 # Check whether --enable-build-stored was given.
24312 if test "${enable_build_stored+set}" = set; then
24313   enableval=$enable_build_stored;
24314       if test x$enableval = xno; then
24315          build_stored=no
24316       fi
24317
24318
24319 fi
24320
24321 if test x$build_stored = xyes; then
24322    STORED_DIR="src/stored"
24323 else
24324    STORED_DIR=""
24325 fi
24326
24327
24328 # Check whether --enable-conio was given.
24329 if test "${enable_conio+set}" = set; then
24330   enableval=$enable_conio;
24331        if test x$enableval = xno; then
24332           support_conio=no
24333        fi
24334
24335
24336 fi
24337
24338
24339
24340 support_ipv6=yes
24341 # Check whether --enable-ipv6 was given.
24342 if test "${enable_ipv6+set}" = set; then
24343   enableval=$enable_ipv6;
24344        if test x$enableval = xno; then
24345           support_ipv6=no
24346        fi
24347
24348
24349 fi
24350
24351
24352 if test x$support_ipv6 = xyes; then
24353     cat >conftest.$ac_ext <<_ACEOF
24354 /* confdefs.h.  */
24355 _ACEOF
24356 cat confdefs.h >>conftest.$ac_ext
24357 cat >>conftest.$ac_ext <<_ACEOF
24358 /* end confdefs.h.  */
24359  #include <sys/types.h>
24360 #include <sys/socket.h>
24361 #include <netinet/in.h>
24362 int
24363 main ()
24364 {
24365 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24366   ;
24367   return 0;
24368 }
24369 _ACEOF
24370 rm -f conftest.$ac_objext conftest$ac_exeext
24371 if { (ac_try="$ac_link"
24372 case "(($ac_try" in
24373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24374   *) ac_try_echo=$ac_try;;
24375 esac
24376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24377   (eval "$ac_link") 2>conftest.er1
24378   ac_status=$?
24379   grep -v '^ *+' conftest.er1 >conftest.err
24380   rm -f conftest.er1
24381   cat conftest.err >&5
24382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383   (exit $ac_status); } && {
24384          test -z "$ac_c_werror_flag" ||
24385          test ! -s conftest.err
24386        } && test -s conftest$ac_exeext &&
24387        $as_test_x conftest$ac_exeext; then
24388   support_ipv6=yes
24389 else
24390   echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24392
24393         support_ipv6=no
24394 fi
24395
24396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24397       conftest$ac_exeext conftest.$ac_ext
24398 fi
24399
24400 if test x$support_ipv6 = xyes; then
24401
24402 cat >>confdefs.h <<\_ACEOF
24403 #define HAVE_IPV6 1
24404 _ACEOF
24405
24406 fi
24407
24408 got_conio="no"
24409 if test x$support_conio = xyes; then
24410    if test "${ac_cv_header_termcap_h+set}" = set; then
24411   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24412 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24413 if test "${ac_cv_header_termcap_h+set}" = set; then
24414   echo $ECHO_N "(cached) $ECHO_C" >&6
24415 fi
24416 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24417 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24418 else
24419   # Is the header compilable?
24420 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24421 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24422 cat >conftest.$ac_ext <<_ACEOF
24423 /* confdefs.h.  */
24424 _ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h.  */
24428 $ac_includes_default
24429 #include <termcap.h>
24430 _ACEOF
24431 rm -f conftest.$ac_objext
24432 if { (ac_try="$ac_compile"
24433 case "(($ac_try" in
24434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435   *) ac_try_echo=$ac_try;;
24436 esac
24437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438   (eval "$ac_compile") 2>conftest.er1
24439   ac_status=$?
24440   grep -v '^ *+' conftest.er1 >conftest.err
24441   rm -f conftest.er1
24442   cat conftest.err >&5
24443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444   (exit $ac_status); } && {
24445          test -z "$ac_c_werror_flag" ||
24446          test ! -s conftest.err
24447        } && test -s conftest.$ac_objext; then
24448   ac_header_compiler=yes
24449 else
24450   echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24452
24453         ac_header_compiler=no
24454 fi
24455
24456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24458 echo "${ECHO_T}$ac_header_compiler" >&6; }
24459
24460 # Is the header present?
24461 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24462 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24463 cat >conftest.$ac_ext <<_ACEOF
24464 /* confdefs.h.  */
24465 _ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h.  */
24469 #include <termcap.h>
24470 _ACEOF
24471 if { (ac_try="$ac_cpp conftest.$ac_ext"
24472 case "(($ac_try" in
24473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24474   *) ac_try_echo=$ac_try;;
24475 esac
24476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24478   ac_status=$?
24479   grep -v '^ *+' conftest.er1 >conftest.err
24480   rm -f conftest.er1
24481   cat conftest.err >&5
24482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483   (exit $ac_status); } >/dev/null && {
24484          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24485          test ! -s conftest.err
24486        }; then
24487   ac_header_preproc=yes
24488 else
24489   echo "$as_me: failed program was:" >&5
24490 sed 's/^/| /' conftest.$ac_ext >&5
24491
24492   ac_header_preproc=no
24493 fi
24494
24495 rm -f conftest.err conftest.$ac_ext
24496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24497 echo "${ECHO_T}$ac_header_preproc" >&6; }
24498
24499 # So?  What about this header?
24500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24501   yes:no: )
24502     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24503 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24504     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24505 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24506     ac_header_preproc=yes
24507     ;;
24508   no:yes:* )
24509     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24510 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24511     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24512 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24513     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24514 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24515     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24516 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24517     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24518 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24519     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24520 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24521
24522     ;;
24523 esac
24524 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24525 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24526 if test "${ac_cv_header_termcap_h+set}" = set; then
24527   echo $ECHO_N "(cached) $ECHO_C" >&6
24528 else
24529   ac_cv_header_termcap_h=$ac_header_preproc
24530 fi
24531 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24532 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24533
24534 fi
24535 if test $ac_cv_header_termcap_h = yes; then
24536    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24537 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24538 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24539   echo $ECHO_N "(cached) $ECHO_C" >&6
24540 else
24541   ac_check_lib_save_LIBS=$LIBS
24542 LIBS="-ltermcap  $LIBS"
24543 cat >conftest.$ac_ext <<_ACEOF
24544 /* confdefs.h.  */
24545 _ACEOF
24546 cat confdefs.h >>conftest.$ac_ext
24547 cat >>conftest.$ac_ext <<_ACEOF
24548 /* end confdefs.h.  */
24549
24550 /* Override any GCC internal prototype to avoid an error.
24551    Use char because int might match the return type of a GCC
24552    builtin and then its argument prototype would still apply.  */
24553 #ifdef __cplusplus
24554 extern "C"
24555 #endif
24556 char tgetent ();
24557 int
24558 main ()
24559 {
24560 return tgetent ();
24561   ;
24562   return 0;
24563 }
24564 _ACEOF
24565 rm -f conftest.$ac_objext conftest$ac_exeext
24566 if { (ac_try="$ac_link"
24567 case "(($ac_try" in
24568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569   *) ac_try_echo=$ac_try;;
24570 esac
24571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572   (eval "$ac_link") 2>conftest.er1
24573   ac_status=$?
24574   grep -v '^ *+' conftest.er1 >conftest.err
24575   rm -f conftest.er1
24576   cat conftest.err >&5
24577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578   (exit $ac_status); } && {
24579          test -z "$ac_c_werror_flag" ||
24580          test ! -s conftest.err
24581        } && test -s conftest$ac_exeext &&
24582        $as_test_x conftest$ac_exeext; then
24583   ac_cv_lib_termcap_tgetent=yes
24584 else
24585   echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24587
24588         ac_cv_lib_termcap_tgetent=no
24589 fi
24590
24591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24592       conftest$ac_exeext conftest.$ac_ext
24593 LIBS=$ac_check_lib_save_LIBS
24594 fi
24595 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24596 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24597 if test $ac_cv_lib_termcap_tgetent = yes; then
24598    CONS_LIBS="-ltermcap"
24599     CONS_OBJ="conio.o"
24600     CONS_SRC="conio.c"
24601     got_conio="yes"
24602     support_readline=no
24603
24604 cat >>confdefs.h <<\_ACEOF
24605 #define HAVE_CONIO 1
24606 _ACEOF
24607
24608
24609 else
24610    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24611 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24612 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24613   echo $ECHO_N "(cached) $ECHO_C" >&6
24614 else
24615   ac_check_lib_save_LIBS=$LIBS
24616 LIBS="-lncurses  $LIBS"
24617 cat >conftest.$ac_ext <<_ACEOF
24618 /* confdefs.h.  */
24619 _ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h.  */
24623
24624 /* Override any GCC internal prototype to avoid an error.
24625    Use char because int might match the return type of a GCC
24626    builtin and then its argument prototype would still apply.  */
24627 #ifdef __cplusplus
24628 extern "C"
24629 #endif
24630 char tgetent ();
24631 int
24632 main ()
24633 {
24634 return tgetent ();
24635   ;
24636   return 0;
24637 }
24638 _ACEOF
24639 rm -f conftest.$ac_objext conftest$ac_exeext
24640 if { (ac_try="$ac_link"
24641 case "(($ac_try" in
24642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643   *) ac_try_echo=$ac_try;;
24644 esac
24645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24646   (eval "$ac_link") 2>conftest.er1
24647   ac_status=$?
24648   grep -v '^ *+' conftest.er1 >conftest.err
24649   rm -f conftest.er1
24650   cat conftest.err >&5
24651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652   (exit $ac_status); } && {
24653          test -z "$ac_c_werror_flag" ||
24654          test ! -s conftest.err
24655        } && test -s conftest$ac_exeext &&
24656        $as_test_x conftest$ac_exeext; then
24657   ac_cv_lib_ncurses_tgetent=yes
24658 else
24659   echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24661
24662         ac_cv_lib_ncurses_tgetent=no
24663 fi
24664
24665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24666       conftest$ac_exeext conftest.$ac_ext
24667 LIBS=$ac_check_lib_save_LIBS
24668 fi
24669 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24670 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24671 if test $ac_cv_lib_ncurses_tgetent = yes; then
24672    CONS_LIBS="-lncurses"
24673       CONS_OBJ="conio.o"
24674       CONS_SRC="conio.c"
24675       got_conio="yes"
24676       support_readline=no
24677
24678 cat >>confdefs.h <<\_ACEOF
24679 #define HAVE_CONIO 1
24680 _ACEOF
24681
24682
24683 fi
24684
24685
24686 fi
24687
24688
24689 else
24690
24691
24692 for ac_header in curses.h
24693 do
24694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24696   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24699   echo $ECHO_N "(cached) $ECHO_C" >&6
24700 fi
24701 ac_res=`eval echo '${'$as_ac_Header'}'`
24702                { echo "$as_me:$LINENO: result: $ac_res" >&5
24703 echo "${ECHO_T}$ac_res" >&6; }
24704 else
24705   # Is the header compilable?
24706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24708 cat >conftest.$ac_ext <<_ACEOF
24709 /* confdefs.h.  */
24710 _ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h.  */
24714 $ac_includes_default
24715 #include <$ac_header>
24716 _ACEOF
24717 rm -f conftest.$ac_objext
24718 if { (ac_try="$ac_compile"
24719 case "(($ac_try" in
24720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721   *) ac_try_echo=$ac_try;;
24722 esac
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724   (eval "$ac_compile") 2>conftest.er1
24725   ac_status=$?
24726   grep -v '^ *+' conftest.er1 >conftest.err
24727   rm -f conftest.er1
24728   cat conftest.err >&5
24729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730   (exit $ac_status); } && {
24731          test -z "$ac_c_werror_flag" ||
24732          test ! -s conftest.err
24733        } && test -s conftest.$ac_objext; then
24734   ac_header_compiler=yes
24735 else
24736   echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24738
24739         ac_header_compiler=no
24740 fi
24741
24742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24744 echo "${ECHO_T}$ac_header_compiler" >&6; }
24745
24746 # Is the header present?
24747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24749 cat >conftest.$ac_ext <<_ACEOF
24750 /* confdefs.h.  */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h.  */
24755 #include <$ac_header>
24756 _ACEOF
24757 if { (ac_try="$ac_cpp conftest.$ac_ext"
24758 case "(($ac_try" in
24759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760   *) ac_try_echo=$ac_try;;
24761 esac
24762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24764   ac_status=$?
24765   grep -v '^ *+' conftest.er1 >conftest.err
24766   rm -f conftest.er1
24767   cat conftest.err >&5
24768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769   (exit $ac_status); } >/dev/null && {
24770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24771          test ! -s conftest.err
24772        }; then
24773   ac_header_preproc=yes
24774 else
24775   echo "$as_me: failed program was:" >&5
24776 sed 's/^/| /' conftest.$ac_ext >&5
24777
24778   ac_header_preproc=no
24779 fi
24780
24781 rm -f conftest.err conftest.$ac_ext
24782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24783 echo "${ECHO_T}$ac_header_preproc" >&6; }
24784
24785 # So?  What about this header?
24786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24787   yes:no: )
24788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24792     ac_header_preproc=yes
24793     ;;
24794   no:yes:* )
24795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24807
24808     ;;
24809 esac
24810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24813   echo $ECHO_N "(cached) $ECHO_C" >&6
24814 else
24815   eval "$as_ac_Header=\$ac_header_preproc"
24816 fi
24817 ac_res=`eval echo '${'$as_ac_Header'}'`
24818                { echo "$as_me:$LINENO: result: $ac_res" >&5
24819 echo "${ECHO_T}$ac_res" >&6; }
24820
24821 fi
24822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24823   cat >>confdefs.h <<_ACEOF
24824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24825 _ACEOF
24826
24827 fi
24828
24829 done
24830
24831     { echo "$as_me:$LINENO: checking for term.h" >&5
24832 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24833 if test "${ac_cv_header_term_h+set}" = set; then
24834   echo $ECHO_N "(cached) $ECHO_C" >&6
24835 else
24836   cat >conftest.$ac_ext <<_ACEOF
24837 /* confdefs.h.  */
24838 _ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h.  */
24842 #if HAVE_CURSES_H
24843 #include <curses.h>
24844 #endif
24845
24846
24847 #include <term.h>
24848 _ACEOF
24849 rm -f conftest.$ac_objext
24850 if { (ac_try="$ac_compile"
24851 case "(($ac_try" in
24852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853   *) ac_try_echo=$ac_try;;
24854 esac
24855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856   (eval "$ac_compile") 2>conftest.er1
24857   ac_status=$?
24858   grep -v '^ *+' conftest.er1 >conftest.err
24859   rm -f conftest.er1
24860   cat conftest.err >&5
24861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862   (exit $ac_status); } && {
24863          test -z "$ac_c_werror_flag" ||
24864          test ! -s conftest.err
24865        } && test -s conftest.$ac_objext; then
24866   ac_cv_header_term_h=yes
24867 else
24868   echo "$as_me: failed program was:" >&5
24869 sed 's/^/| /' conftest.$ac_ext >&5
24870
24871         ac_cv_header_term_h=no
24872 fi
24873
24874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24875 fi
24876 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24877 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24878 if test $ac_cv_header_term_h = yes; then
24879    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24880 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24881 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24882   echo $ECHO_N "(cached) $ECHO_C" >&6
24883 else
24884   ac_check_lib_save_LIBS=$LIBS
24885 LIBS="-lcurses  $LIBS"
24886 cat >conftest.$ac_ext <<_ACEOF
24887 /* confdefs.h.  */
24888 _ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h.  */
24892
24893 /* Override any GCC internal prototype to avoid an error.
24894    Use char because int might match the return type of a GCC
24895    builtin and then its argument prototype would still apply.  */
24896 #ifdef __cplusplus
24897 extern "C"
24898 #endif
24899 char tgetent ();
24900 int
24901 main ()
24902 {
24903 return tgetent ();
24904   ;
24905   return 0;
24906 }
24907 _ACEOF
24908 rm -f conftest.$ac_objext conftest$ac_exeext
24909 if { (ac_try="$ac_link"
24910 case "(($ac_try" in
24911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24912   *) ac_try_echo=$ac_try;;
24913 esac
24914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24915   (eval "$ac_link") 2>conftest.er1
24916   ac_status=$?
24917   grep -v '^ *+' conftest.er1 >conftest.err
24918   rm -f conftest.er1
24919   cat conftest.err >&5
24920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921   (exit $ac_status); } && {
24922          test -z "$ac_c_werror_flag" ||
24923          test ! -s conftest.err
24924        } && test -s conftest$ac_exeext &&
24925        $as_test_x conftest$ac_exeext; then
24926   ac_cv_lib_curses_tgetent=yes
24927 else
24928   echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24930
24931         ac_cv_lib_curses_tgetent=no
24932 fi
24933
24934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24935       conftest$ac_exeext conftest.$ac_ext
24936 LIBS=$ac_check_lib_save_LIBS
24937 fi
24938 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24939 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24940 if test $ac_cv_lib_curses_tgetent = yes; then
24941    CONS_LIBS="-lcurses"
24942          CONS_OBJ="conio.o"
24943          CONS_SRC="conio.c"
24944          got_conio="yes"
24945          support_readline=no
24946
24947 cat >>confdefs.h <<\_ACEOF
24948 #define HAVE_CONIO 1
24949 _ACEOF
24950
24951
24952 fi
24953
24954
24955 else
24956    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24957 fi
24958
24959
24960
24961 fi
24962
24963
24964 fi
24965
24966
24967 # Check whether --enable-readline was given.
24968 if test "${enable_readline+set}" = set; then
24969   enableval=$enable_readline;
24970        if test x$enableval = xno; then
24971           support_readline=no
24972        fi
24973
24974
24975 fi
24976
24977
24978 got_readline="no"
24979 READLINE_SRC=
24980 if test x$support_readline = xyes; then
24981
24982 # Check whether --with-readline was given.
24983 if test "${with_readline+set}" = set; then
24984   withval=$with_readline;
24985           case "$with_readline" in
24986           no)
24987              :
24988              ;;
24989           yes|*)
24990              if test -f ${with_readline}/readline.h; then
24991                 CONS_INC="-I${with_readline}"
24992                 CONS_LDFLAGS="-L$with_readline"
24993              elif test -f ${with_readline}/include/readline/readline.h; then
24994                 CONS_INC="-I${with_readline}/include/readline"
24995                 CONS_LDFLAGS="-L${with_readline}/lib"
24996                 with_readline="${with_readline}/include/readline"
24997              else
24998                 with_readline="/usr/include/readline"
24999              fi
25000
25001              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25003   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25004 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25006   echo $ECHO_N "(cached) $ECHO_C" >&6
25007 fi
25008 ac_res=`eval echo '${'$as_ac_Header'}'`
25009                { echo "$as_me:$LINENO: result: $ac_res" >&5
25010 echo "${ECHO_T}$ac_res" >&6; }
25011 else
25012   # Is the header compilable?
25013 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25014 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25015 cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h.  */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h.  */
25021 $ac_includes_default
25022 #include <${with_readline}/readline.h>
25023 _ACEOF
25024 rm -f conftest.$ac_objext
25025 if { (ac_try="$ac_compile"
25026 case "(($ac_try" in
25027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028   *) ac_try_echo=$ac_try;;
25029 esac
25030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25031   (eval "$ac_compile") 2>conftest.er1
25032   ac_status=$?
25033   grep -v '^ *+' conftest.er1 >conftest.err
25034   rm -f conftest.er1
25035   cat conftest.err >&5
25036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037   (exit $ac_status); } && {
25038          test -z "$ac_c_werror_flag" ||
25039          test ! -s conftest.err
25040        } && test -s conftest.$ac_objext; then
25041   ac_header_compiler=yes
25042 else
25043   echo "$as_me: failed program was:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25045
25046         ac_header_compiler=no
25047 fi
25048
25049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25051 echo "${ECHO_T}$ac_header_compiler" >&6; }
25052
25053 # Is the header present?
25054 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25055 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25056 cat >conftest.$ac_ext <<_ACEOF
25057 /* confdefs.h.  */
25058 _ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h.  */
25062 #include <${with_readline}/readline.h>
25063 _ACEOF
25064 if { (ac_try="$ac_cpp conftest.$ac_ext"
25065 case "(($ac_try" in
25066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067   *) ac_try_echo=$ac_try;;
25068 esac
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25071   ac_status=$?
25072   grep -v '^ *+' conftest.er1 >conftest.err
25073   rm -f conftest.er1
25074   cat conftest.err >&5
25075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); } >/dev/null && {
25077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25078          test ! -s conftest.err
25079        }; then
25080   ac_header_preproc=yes
25081 else
25082   echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25084
25085   ac_header_preproc=no
25086 fi
25087
25088 rm -f conftest.err conftest.$ac_ext
25089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25090 echo "${ECHO_T}$ac_header_preproc" >&6; }
25091
25092 # So?  What about this header?
25093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25094   yes:no: )
25095     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25096 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25097     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25098 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25099     ac_header_preproc=yes
25100     ;;
25101   no:yes:* )
25102     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25103 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25104     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25105 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25106     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25107 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25108     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25109 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25110     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25111 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25112     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25113 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25114
25115     ;;
25116 esac
25117 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25118 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25120   echo $ECHO_N "(cached) $ECHO_C" >&6
25121 else
25122   eval "$as_ac_Header=\$ac_header_preproc"
25123 fi
25124 ac_res=`eval echo '${'$as_ac_Header'}'`
25125                { echo "$as_me:$LINENO: result: $ac_res" >&5
25126 echo "${ECHO_T}$ac_res" >&6; }
25127
25128 fi
25129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25130
25131
25132 cat >>confdefs.h <<\_ACEOF
25133 #define HAVE_READLINE 1
25134 _ACEOF
25135
25136                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25137                     got_readline="yes"
25138
25139 else
25140
25141                     echo " "
25142                     echo "readline.h not found. readline turned off ..."
25143                     echo " "
25144
25145
25146 fi
25147
25148
25149              ;;
25150           esac
25151
25152 else
25153
25154                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25155   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25156 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25157 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25158   echo $ECHO_N "(cached) $ECHO_C" >&6
25159 fi
25160 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25161 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25162 else
25163   # Is the header compilable?
25164 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25165 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25166 cat >conftest.$ac_ext <<_ACEOF
25167 /* confdefs.h.  */
25168 _ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h.  */
25172 $ac_includes_default
25173 #include </usr/include/readline/readline.h>
25174 _ACEOF
25175 rm -f conftest.$ac_objext
25176 if { (ac_try="$ac_compile"
25177 case "(($ac_try" in
25178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179   *) ac_try_echo=$ac_try;;
25180 esac
25181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25182   (eval "$ac_compile") 2>conftest.er1
25183   ac_status=$?
25184   grep -v '^ *+' conftest.er1 >conftest.err
25185   rm -f conftest.er1
25186   cat conftest.err >&5
25187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188   (exit $ac_status); } && {
25189          test -z "$ac_c_werror_flag" ||
25190          test ! -s conftest.err
25191        } && test -s conftest.$ac_objext; then
25192   ac_header_compiler=yes
25193 else
25194   echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25196
25197         ac_header_compiler=no
25198 fi
25199
25200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25202 echo "${ECHO_T}$ac_header_compiler" >&6; }
25203
25204 # Is the header present?
25205 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25206 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25207 cat >conftest.$ac_ext <<_ACEOF
25208 /* confdefs.h.  */
25209 _ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h.  */
25213 #include </usr/include/readline/readline.h>
25214 _ACEOF
25215 if { (ac_try="$ac_cpp conftest.$ac_ext"
25216 case "(($ac_try" in
25217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25218   *) ac_try_echo=$ac_try;;
25219 esac
25220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25222   ac_status=$?
25223   grep -v '^ *+' conftest.er1 >conftest.err
25224   rm -f conftest.er1
25225   cat conftest.err >&5
25226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227   (exit $ac_status); } >/dev/null && {
25228          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25229          test ! -s conftest.err
25230        }; then
25231   ac_header_preproc=yes
25232 else
25233   echo "$as_me: failed program was:" >&5
25234 sed 's/^/| /' conftest.$ac_ext >&5
25235
25236   ac_header_preproc=no
25237 fi
25238
25239 rm -f conftest.err conftest.$ac_ext
25240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25241 echo "${ECHO_T}$ac_header_preproc" >&6; }
25242
25243 # So?  What about this header?
25244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25245   yes:no: )
25246     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25247 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25248     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25249 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25250     ac_header_preproc=yes
25251     ;;
25252   no:yes:* )
25253     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25254 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25255     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25256 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25257     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25258 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25259     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25260 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25261     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25262 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25263     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25264 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25265
25266     ;;
25267 esac
25268 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25269 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25270 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25271   echo $ECHO_N "(cached) $ECHO_C" >&6
25272 else
25273   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25274 fi
25275 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25276 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25277
25278 fi
25279 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25280
25281
25282 cat >>confdefs.h <<\_ACEOF
25283 #define HAVE_READLINE 1
25284 _ACEOF
25285
25286                 got_readline="yes"
25287                 CONS_INC="-I/usr/include/readline"
25288                 CONS_LIBS="-lreadline -ltermcap"
25289
25290 else
25291
25292                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25294   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25295 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25297   echo $ECHO_N "(cached) $ECHO_C" >&6
25298 fi
25299 ac_res=`eval echo '${'$as_ac_Header'}'`
25300                { echo "$as_me:$LINENO: result: $ac_res" >&5
25301 echo "${ECHO_T}$ac_res" >&6; }
25302 else
25303   # Is the header compilable?
25304 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25305 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25306 cat >conftest.$ac_ext <<_ACEOF
25307 /* confdefs.h.  */
25308 _ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h.  */
25312 $ac_includes_default
25313 #include <${TOP_DIR}/depkgs/readline/readline.h>
25314 _ACEOF
25315 rm -f conftest.$ac_objext
25316 if { (ac_try="$ac_compile"
25317 case "(($ac_try" in
25318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25319   *) ac_try_echo=$ac_try;;
25320 esac
25321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25322   (eval "$ac_compile") 2>conftest.er1
25323   ac_status=$?
25324   grep -v '^ *+' conftest.er1 >conftest.err
25325   rm -f conftest.er1
25326   cat conftest.err >&5
25327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328   (exit $ac_status); } && {
25329          test -z "$ac_c_werror_flag" ||
25330          test ! -s conftest.err
25331        } && test -s conftest.$ac_objext; then
25332   ac_header_compiler=yes
25333 else
25334   echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25336
25337         ac_header_compiler=no
25338 fi
25339
25340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25342 echo "${ECHO_T}$ac_header_compiler" >&6; }
25343
25344 # Is the header present?
25345 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25346 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25347 cat >conftest.$ac_ext <<_ACEOF
25348 /* confdefs.h.  */
25349 _ACEOF
25350 cat confdefs.h >>conftest.$ac_ext
25351 cat >>conftest.$ac_ext <<_ACEOF
25352 /* end confdefs.h.  */
25353 #include <${TOP_DIR}/depkgs/readline/readline.h>
25354 _ACEOF
25355 if { (ac_try="$ac_cpp conftest.$ac_ext"
25356 case "(($ac_try" in
25357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25358   *) ac_try_echo=$ac_try;;
25359 esac
25360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25361   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25362   ac_status=$?
25363   grep -v '^ *+' conftest.er1 >conftest.err
25364   rm -f conftest.er1
25365   cat conftest.err >&5
25366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367   (exit $ac_status); } >/dev/null && {
25368          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25369          test ! -s conftest.err
25370        }; then
25371   ac_header_preproc=yes
25372 else
25373   echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25375
25376   ac_header_preproc=no
25377 fi
25378
25379 rm -f conftest.err conftest.$ac_ext
25380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25381 echo "${ECHO_T}$ac_header_preproc" >&6; }
25382
25383 # So?  What about this header?
25384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25385   yes:no: )
25386     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25387 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25388     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25389 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25390     ac_header_preproc=yes
25391     ;;
25392   no:yes:* )
25393     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25394 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25395     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25396 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25397     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25398 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25399     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25400 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25401     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25402 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25403     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25404 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25405
25406     ;;
25407 esac
25408 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25409 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25411   echo $ECHO_N "(cached) $ECHO_C" >&6
25412 else
25413   eval "$as_ac_Header=\$ac_header_preproc"
25414 fi
25415 ac_res=`eval echo '${'$as_ac_Header'}'`
25416                { echo "$as_me:$LINENO: result: $ac_res" >&5
25417 echo "${ECHO_T}$ac_res" >&6; }
25418
25419 fi
25420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25421
25422
25423 cat >>confdefs.h <<\_ACEOF
25424 #define HAVE_READLINE 1
25425 _ACEOF
25426
25427                         got_readline="yes"
25428                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25429                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25430                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25431                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25432
25433 else
25434
25435                         echo " "
25436                         echo "readline.h not found. readline turned off ..."
25437                         echo " "
25438
25439
25440 fi
25441
25442
25443
25444
25445 fi
25446
25447
25448
25449
25450 fi
25451
25452 fi
25453
25454
25455
25456
25457
25458
25459
25460
25461 MAKE_SHELL=/bin/sh
25462
25463 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25464 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25465 if test "${ac_cv_header_stat_broken+set}" = set; then
25466   echo $ECHO_N "(cached) $ECHO_C" >&6
25467 else
25468   cat >conftest.$ac_ext <<_ACEOF
25469 /* confdefs.h.  */
25470 _ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h.  */
25474 #include <sys/types.h>
25475 #include <sys/stat.h>
25476
25477 #if defined S_ISBLK && defined S_IFDIR
25478 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25479 #endif
25480
25481 #if defined S_ISBLK && defined S_IFCHR
25482 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25483 #endif
25484
25485 #if defined S_ISLNK && defined S_IFREG
25486 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25487 #endif
25488
25489 #if defined S_ISSOCK && defined S_IFREG
25490 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25491 #endif
25492
25493 _ACEOF
25494 rm -f conftest.$ac_objext
25495 if { (ac_try="$ac_compile"
25496 case "(($ac_try" in
25497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498   *) ac_try_echo=$ac_try;;
25499 esac
25500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25501   (eval "$ac_compile") 2>conftest.er1
25502   ac_status=$?
25503   grep -v '^ *+' conftest.er1 >conftest.err
25504   rm -f conftest.er1
25505   cat conftest.err >&5
25506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507   (exit $ac_status); } && {
25508          test -z "$ac_c_werror_flag" ||
25509          test ! -s conftest.err
25510        } && test -s conftest.$ac_objext; then
25511   ac_cv_header_stat_broken=no
25512 else
25513   echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25515
25516         ac_cv_header_stat_broken=yes
25517 fi
25518
25519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25520 fi
25521 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25522 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25523 if test $ac_cv_header_stat_broken = yes; then
25524
25525 cat >>confdefs.h <<\_ACEOF
25526 #define STAT_MACROS_BROKEN 1
25527 _ACEOF
25528
25529 fi
25530
25531
25532
25533
25534
25535
25536 ac_header_dirent=no
25537 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25538   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25539 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25540 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25542   echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544   cat >conftest.$ac_ext <<_ACEOF
25545 /* confdefs.h.  */
25546 _ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h.  */
25550 #include <sys/types.h>
25551 #include <$ac_hdr>
25552
25553 int
25554 main ()
25555 {
25556 if ((DIR *) 0)
25557 return 0;
25558   ;
25559   return 0;
25560 }
25561 _ACEOF
25562 rm -f conftest.$ac_objext
25563 if { (ac_try="$ac_compile"
25564 case "(($ac_try" in
25565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25566   *) ac_try_echo=$ac_try;;
25567 esac
25568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25569   (eval "$ac_compile") 2>conftest.er1
25570   ac_status=$?
25571   grep -v '^ *+' conftest.er1 >conftest.err
25572   rm -f conftest.er1
25573   cat conftest.err >&5
25574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575   (exit $ac_status); } && {
25576          test -z "$ac_c_werror_flag" ||
25577          test ! -s conftest.err
25578        } && test -s conftest.$ac_objext; then
25579   eval "$as_ac_Header=yes"
25580 else
25581   echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25583
25584         eval "$as_ac_Header=no"
25585 fi
25586
25587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25588 fi
25589 ac_res=`eval echo '${'$as_ac_Header'}'`
25590                { echo "$as_me:$LINENO: result: $ac_res" >&5
25591 echo "${ECHO_T}$ac_res" >&6; }
25592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25593   cat >>confdefs.h <<_ACEOF
25594 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25595 _ACEOF
25596
25597 ac_header_dirent=$ac_hdr; break
25598 fi
25599
25600 done
25601 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25602 if test $ac_header_dirent = dirent.h; then
25603   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25604 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25605 if test "${ac_cv_search_opendir+set}" = set; then
25606   echo $ECHO_N "(cached) $ECHO_C" >&6
25607 else
25608   ac_func_search_save_LIBS=$LIBS
25609 cat >conftest.$ac_ext <<_ACEOF
25610 /* confdefs.h.  */
25611 _ACEOF
25612 cat confdefs.h >>conftest.$ac_ext
25613 cat >>conftest.$ac_ext <<_ACEOF
25614 /* end confdefs.h.  */
25615
25616 /* Override any GCC internal prototype to avoid an error.
25617    Use char because int might match the return type of a GCC
25618    builtin and then its argument prototype would still apply.  */
25619 #ifdef __cplusplus
25620 extern "C"
25621 #endif
25622 char opendir ();
25623 int
25624 main ()
25625 {
25626 return opendir ();
25627   ;
25628   return 0;
25629 }
25630 _ACEOF
25631 for ac_lib in '' dir; do
25632   if test -z "$ac_lib"; then
25633     ac_res="none required"
25634   else
25635     ac_res=-l$ac_lib
25636     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25637   fi
25638   rm -f conftest.$ac_objext conftest$ac_exeext
25639 if { (ac_try="$ac_link"
25640 case "(($ac_try" in
25641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642   *) ac_try_echo=$ac_try;;
25643 esac
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645   (eval "$ac_link") 2>conftest.er1
25646   ac_status=$?
25647   grep -v '^ *+' conftest.er1 >conftest.err
25648   rm -f conftest.er1
25649   cat conftest.err >&5
25650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651   (exit $ac_status); } && {
25652          test -z "$ac_c_werror_flag" ||
25653          test ! -s conftest.err
25654        } && test -s conftest$ac_exeext &&
25655        $as_test_x conftest$ac_exeext; then
25656   ac_cv_search_opendir=$ac_res
25657 else
25658   echo "$as_me: failed program was:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25660
25661
25662 fi
25663
25664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25665       conftest$ac_exeext
25666   if test "${ac_cv_search_opendir+set}" = set; then
25667   break
25668 fi
25669 done
25670 if test "${ac_cv_search_opendir+set}" = set; then
25671   :
25672 else
25673   ac_cv_search_opendir=no
25674 fi
25675 rm conftest.$ac_ext
25676 LIBS=$ac_func_search_save_LIBS
25677 fi
25678 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25679 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25680 ac_res=$ac_cv_search_opendir
25681 if test "$ac_res" != no; then
25682   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25683
25684 fi
25685
25686 else
25687   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25688 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25689 if test "${ac_cv_search_opendir+set}" = set; then
25690   echo $ECHO_N "(cached) $ECHO_C" >&6
25691 else
25692   ac_func_search_save_LIBS=$LIBS
25693 cat >conftest.$ac_ext <<_ACEOF
25694 /* confdefs.h.  */
25695 _ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h.  */
25699
25700 /* Override any GCC internal prototype to avoid an error.
25701    Use char because int might match the return type of a GCC
25702    builtin and then its argument prototype would still apply.  */
25703 #ifdef __cplusplus
25704 extern "C"
25705 #endif
25706 char opendir ();
25707 int
25708 main ()
25709 {
25710 return opendir ();
25711   ;
25712   return 0;
25713 }
25714 _ACEOF
25715 for ac_lib in '' x; do
25716   if test -z "$ac_lib"; then
25717     ac_res="none required"
25718   else
25719     ac_res=-l$ac_lib
25720     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25721   fi
25722   rm -f conftest.$ac_objext conftest$ac_exeext
25723 if { (ac_try="$ac_link"
25724 case "(($ac_try" in
25725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25726   *) ac_try_echo=$ac_try;;
25727 esac
25728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25729   (eval "$ac_link") 2>conftest.er1
25730   ac_status=$?
25731   grep -v '^ *+' conftest.er1 >conftest.err
25732   rm -f conftest.er1
25733   cat conftest.err >&5
25734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735   (exit $ac_status); } && {
25736          test -z "$ac_c_werror_flag" ||
25737          test ! -s conftest.err
25738        } && test -s conftest$ac_exeext &&
25739        $as_test_x conftest$ac_exeext; then
25740   ac_cv_search_opendir=$ac_res
25741 else
25742   echo "$as_me: failed program was:" >&5
25743 sed 's/^/| /' conftest.$ac_ext >&5
25744
25745
25746 fi
25747
25748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25749       conftest$ac_exeext
25750   if test "${ac_cv_search_opendir+set}" = set; then
25751   break
25752 fi
25753 done
25754 if test "${ac_cv_search_opendir+set}" = set; then
25755   :
25756 else
25757   ac_cv_search_opendir=no
25758 fi
25759 rm conftest.$ac_ext
25760 LIBS=$ac_func_search_save_LIBS
25761 fi
25762 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25763 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25764 ac_res=$ac_cv_search_opendir
25765 if test "$ac_res" != no; then
25766   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25767
25768 fi
25769
25770 fi
25771
25772
25773
25774
25775
25776
25777
25778
25779 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25780 do
25781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25785   echo $ECHO_N "(cached) $ECHO_C" >&6
25786 else
25787   cat >conftest.$ac_ext <<_ACEOF
25788 /* confdefs.h.  */
25789 _ACEOF
25790 cat confdefs.h >>conftest.$ac_ext
25791 cat >>conftest.$ac_ext <<_ACEOF
25792 /* end confdefs.h.  */
25793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25795 #define $ac_func innocuous_$ac_func
25796
25797 /* System header to define __stub macros and hopefully few prototypes,
25798     which can conflict with char $ac_func (); below.
25799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25800     <limits.h> exists even on freestanding compilers.  */
25801
25802 #ifdef __STDC__
25803 # include <limits.h>
25804 #else
25805 # include <assert.h>
25806 #endif
25807
25808 #undef $ac_func
25809
25810 /* Override any GCC internal prototype to avoid an error.
25811    Use char because int might match the return type of a GCC
25812    builtin and then its argument prototype would still apply.  */
25813 #ifdef __cplusplus
25814 extern "C"
25815 #endif
25816 char $ac_func ();
25817 /* The GNU C library defines this for functions which it implements
25818     to always fail with ENOSYS.  Some functions are actually named
25819     something starting with __ and the normal name is an alias.  */
25820 #if defined __stub_$ac_func || defined __stub___$ac_func
25821 choke me
25822 #endif
25823
25824 int
25825 main ()
25826 {
25827 return $ac_func ();
25828   ;
25829   return 0;
25830 }
25831 _ACEOF
25832 rm -f conftest.$ac_objext conftest$ac_exeext
25833 if { (ac_try="$ac_link"
25834 case "(($ac_try" in
25835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25836   *) ac_try_echo=$ac_try;;
25837 esac
25838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25839   (eval "$ac_link") 2>conftest.er1
25840   ac_status=$?
25841   grep -v '^ *+' conftest.er1 >conftest.err
25842   rm -f conftest.er1
25843   cat conftest.err >&5
25844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845   (exit $ac_status); } && {
25846          test -z "$ac_c_werror_flag" ||
25847          test ! -s conftest.err
25848        } && test -s conftest$ac_exeext &&
25849        $as_test_x conftest$ac_exeext; then
25850   eval "$as_ac_var=yes"
25851 else
25852   echo "$as_me: failed program was:" >&5
25853 sed 's/^/| /' conftest.$ac_ext >&5
25854
25855         eval "$as_ac_var=no"
25856 fi
25857
25858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25859       conftest$ac_exeext conftest.$ac_ext
25860 fi
25861 ac_res=`eval echo '${'$as_ac_var'}'`
25862                { echo "$as_me:$LINENO: result: $ac_res" >&5
25863 echo "${ECHO_T}$ac_res" >&6; }
25864 if test `eval echo '${'$as_ac_var'}'` = yes; then
25865   cat >>confdefs.h <<_ACEOF
25866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25867 _ACEOF
25868
25869 fi
25870 done
25871
25872
25873
25874 for ac_func in nanosleep nl_langinfo
25875 do
25876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25880   echo $ECHO_N "(cached) $ECHO_C" >&6
25881 else
25882   cat >conftest.$ac_ext <<_ACEOF
25883 /* confdefs.h.  */
25884 _ACEOF
25885 cat confdefs.h >>conftest.$ac_ext
25886 cat >>conftest.$ac_ext <<_ACEOF
25887 /* end confdefs.h.  */
25888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25890 #define $ac_func innocuous_$ac_func
25891
25892 /* System header to define __stub macros and hopefully few prototypes,
25893     which can conflict with char $ac_func (); below.
25894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25895     <limits.h> exists even on freestanding compilers.  */
25896
25897 #ifdef __STDC__
25898 # include <limits.h>
25899 #else
25900 # include <assert.h>
25901 #endif
25902
25903 #undef $ac_func
25904
25905 /* Override any GCC internal prototype to avoid an error.
25906    Use char because int might match the return type of a GCC
25907    builtin and then its argument prototype would still apply.  */
25908 #ifdef __cplusplus
25909 extern "C"
25910 #endif
25911 char $ac_func ();
25912 /* The GNU C library defines this for functions which it implements
25913     to always fail with ENOSYS.  Some functions are actually named
25914     something starting with __ and the normal name is an alias.  */
25915 #if defined __stub_$ac_func || defined __stub___$ac_func
25916 choke me
25917 #endif
25918
25919 int
25920 main ()
25921 {
25922 return $ac_func ();
25923   ;
25924   return 0;
25925 }
25926 _ACEOF
25927 rm -f conftest.$ac_objext conftest$ac_exeext
25928 if { (ac_try="$ac_link"
25929 case "(($ac_try" in
25930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25931   *) ac_try_echo=$ac_try;;
25932 esac
25933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25934   (eval "$ac_link") 2>conftest.er1
25935   ac_status=$?
25936   grep -v '^ *+' conftest.er1 >conftest.err
25937   rm -f conftest.er1
25938   cat conftest.err >&5
25939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940   (exit $ac_status); } && {
25941          test -z "$ac_c_werror_flag" ||
25942          test ! -s conftest.err
25943        } && test -s conftest$ac_exeext &&
25944        $as_test_x conftest$ac_exeext; then
25945   eval "$as_ac_var=yes"
25946 else
25947   echo "$as_me: failed program was:" >&5
25948 sed 's/^/| /' conftest.$ac_ext >&5
25949
25950         eval "$as_ac_var=no"
25951 fi
25952
25953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25954       conftest$ac_exeext conftest.$ac_ext
25955 fi
25956 ac_res=`eval echo '${'$as_ac_var'}'`
25957                { echo "$as_me:$LINENO: result: $ac_res" >&5
25958 echo "${ECHO_T}$ac_res" >&6; }
25959 if test `eval echo '${'$as_ac_var'}'` = yes; then
25960   cat >>confdefs.h <<_ACEOF
25961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25962 _ACEOF
25963
25964 fi
25965 done
25966
25967
25968 for ac_header in varargs.h
25969 do
25970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25972   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25975   echo $ECHO_N "(cached) $ECHO_C" >&6
25976 fi
25977 ac_res=`eval echo '${'$as_ac_Header'}'`
25978                { echo "$as_me:$LINENO: result: $ac_res" >&5
25979 echo "${ECHO_T}$ac_res" >&6; }
25980 else
25981   # Is the header compilable?
25982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25984 cat >conftest.$ac_ext <<_ACEOF
25985 /* confdefs.h.  */
25986 _ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h.  */
25990 $ac_includes_default
25991 #include <$ac_header>
25992 _ACEOF
25993 rm -f conftest.$ac_objext
25994 if { (ac_try="$ac_compile"
25995 case "(($ac_try" in
25996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25997   *) ac_try_echo=$ac_try;;
25998 esac
25999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26000   (eval "$ac_compile") 2>conftest.er1
26001   ac_status=$?
26002   grep -v '^ *+' conftest.er1 >conftest.err
26003   rm -f conftest.er1
26004   cat conftest.err >&5
26005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006   (exit $ac_status); } && {
26007          test -z "$ac_c_werror_flag" ||
26008          test ! -s conftest.err
26009        } && test -s conftest.$ac_objext; then
26010   ac_header_compiler=yes
26011 else
26012   echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.$ac_ext >&5
26014
26015         ac_header_compiler=no
26016 fi
26017
26018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26020 echo "${ECHO_T}$ac_header_compiler" >&6; }
26021
26022 # Is the header present?
26023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26025 cat >conftest.$ac_ext <<_ACEOF
26026 /* confdefs.h.  */
26027 _ACEOF
26028 cat confdefs.h >>conftest.$ac_ext
26029 cat >>conftest.$ac_ext <<_ACEOF
26030 /* end confdefs.h.  */
26031 #include <$ac_header>
26032 _ACEOF
26033 if { (ac_try="$ac_cpp conftest.$ac_ext"
26034 case "(($ac_try" in
26035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036   *) ac_try_echo=$ac_try;;
26037 esac
26038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26040   ac_status=$?
26041   grep -v '^ *+' conftest.er1 >conftest.err
26042   rm -f conftest.er1
26043   cat conftest.err >&5
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); } >/dev/null && {
26046          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26047          test ! -s conftest.err
26048        }; then
26049   ac_header_preproc=yes
26050 else
26051   echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26053
26054   ac_header_preproc=no
26055 fi
26056
26057 rm -f conftest.err conftest.$ac_ext
26058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26059 echo "${ECHO_T}$ac_header_preproc" >&6; }
26060
26061 # So?  What about this header?
26062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26063   yes:no: )
26064     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26068     ac_header_preproc=yes
26069     ;;
26070   no:yes:* )
26071     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26073     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26074 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26075     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26077     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26078 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26081     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26083
26084     ;;
26085 esac
26086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26089   echo $ECHO_N "(cached) $ECHO_C" >&6
26090 else
26091   eval "$as_ac_Header=\$ac_header_preproc"
26092 fi
26093 ac_res=`eval echo '${'$as_ac_Header'}'`
26094                { echo "$as_me:$LINENO: result: $ac_res" >&5
26095 echo "${ECHO_T}$ac_res" >&6; }
26096
26097 fi
26098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26099   cat >>confdefs.h <<_ACEOF
26100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26101 _ACEOF
26102
26103 fi
26104
26105 done
26106
26107
26108
26109 { echo "$as_me:$LINENO: checking for Python support" >&5
26110 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26111
26112 # Check whether --with-python was given.
26113 if test "${with_python+set}" = set; then
26114   withval=$with_python;
26115        PYTHON_INCDIR=
26116        PYTHON_LIBS=
26117        if test "$withval" != "no"; then
26118           if test "$withval" = "yes"; then
26119              for python_root in /usr /usr/local /usr/sfw; do
26120                 for ver in python2.2 python2.3 python2.4 python2.5; do
26121                    if test -f $python_root/include/${ver}/Python.h; then
26122                       PYTHON_INCDIR=-I$python_root/include/${ver}
26123                       if test -d $python_root/lib64/${ver}/config; then
26124                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26125                       else
26126                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26127                       fi
26128                       break
26129                    fi
26130                 done
26131              done
26132
26133              if test x$PYTHON_INCDIR = x; then
26134                 if test -f $prefix/include/Python.h; then
26135                    PYTHON_INCDIR=-I$prefix/include
26136                    if test -d $prefix/lib64/config; then
26137                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26138                    else
26139                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26140                    fi
26141                 else
26142                    { echo "$as_me:$LINENO: result: no" >&5
26143 echo "${ECHO_T}no" >&6; }
26144                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26145 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26146    { (exit 1); exit 1; }; }
26147                 fi
26148              fi
26149           else
26150              if test -f $withval/Python.h; then
26151                 PYTHON_INCDIR=-I$withval
26152                 PYTHON_LIBS="-L$withval/config -lpython"
26153              elif test -f $withval/include/Python.h; then
26154                 PYTHON_INCDIR=-I$withval/include
26155                 if test -d $withval/lib64/config; then
26156                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26157                 else
26158                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26159                 fi
26160              elif test -f $withval/include/python/Python.h; then
26161                 PYTHON_INCDIR=-I$withval/include/python
26162                 if test -d $withval/lib64/python/config; then
26163                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26164                 else
26165                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26166                 fi
26167              else
26168                 { echo "$as_me:$LINENO: result: no" >&5
26169 echo "${ECHO_T}no" >&6; }
26170                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26171 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26172    { (exit 1); exit 1; }; }
26173              fi
26174           fi
26175
26176           cat >>confdefs.h <<\_ACEOF
26177 #define HAVE_PYTHON 1
26178 _ACEOF
26179
26180           { echo "$as_me:$LINENO: result: yes" >&5
26181 echo "${ECHO_T}yes" >&6; }
26182           support_python=yes
26183           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26184 echo "$as_me: checking for more Python libs" >&6;}
26185           saved_LIBS="$LIBS"; LIBS=
26186           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26187 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26188 if test "${ac_cv_search_shm_open+set}" = set; then
26189   echo $ECHO_N "(cached) $ECHO_C" >&6
26190 else
26191   ac_func_search_save_LIBS=$LIBS
26192 cat >conftest.$ac_ext <<_ACEOF
26193 /* confdefs.h.  */
26194 _ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h.  */
26198
26199 /* Override any GCC internal prototype to avoid an error.
26200    Use char because int might match the return type of a GCC
26201    builtin and then its argument prototype would still apply.  */
26202 #ifdef __cplusplus
26203 extern "C"
26204 #endif
26205 char shm_open ();
26206 int
26207 main ()
26208 {
26209 return shm_open ();
26210   ;
26211   return 0;
26212 }
26213 _ACEOF
26214 for ac_lib in '' rt; do
26215   if test -z "$ac_lib"; then
26216     ac_res="none required"
26217   else
26218     ac_res=-l$ac_lib
26219     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26220   fi
26221   rm -f conftest.$ac_objext conftest$ac_exeext
26222 if { (ac_try="$ac_link"
26223 case "(($ac_try" in
26224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26225   *) ac_try_echo=$ac_try;;
26226 esac
26227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26228   (eval "$ac_link") 2>conftest.er1
26229   ac_status=$?
26230   grep -v '^ *+' conftest.er1 >conftest.err
26231   rm -f conftest.er1
26232   cat conftest.err >&5
26233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234   (exit $ac_status); } && {
26235          test -z "$ac_c_werror_flag" ||
26236          test ! -s conftest.err
26237        } && test -s conftest$ac_exeext &&
26238        $as_test_x conftest$ac_exeext; then
26239   ac_cv_search_shm_open=$ac_res
26240 else
26241   echo "$as_me: failed program was:" >&5
26242 sed 's/^/| /' conftest.$ac_ext >&5
26243
26244
26245 fi
26246
26247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26248       conftest$ac_exeext
26249   if test "${ac_cv_search_shm_open+set}" = set; then
26250   break
26251 fi
26252 done
26253 if test "${ac_cv_search_shm_open+set}" = set; then
26254   :
26255 else
26256   ac_cv_search_shm_open=no
26257 fi
26258 rm conftest.$ac_ext
26259 LIBS=$ac_func_search_save_LIBS
26260 fi
26261 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26262 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26263 ac_res=$ac_cv_search_shm_open
26264 if test "$ac_res" != no; then
26265   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26266
26267 fi
26268
26269
26270 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26271 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26272 if test "${ac_cv_lib_util_openpty+set}" = set; then
26273   echo $ECHO_N "(cached) $ECHO_C" >&6
26274 else
26275   ac_check_lib_save_LIBS=$LIBS
26276 LIBS="-lutil  $LIBS"
26277 cat >conftest.$ac_ext <<_ACEOF
26278 /* confdefs.h.  */
26279 _ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h.  */
26283
26284 /* Override any GCC internal prototype to avoid an error.
26285    Use char because int might match the return type of a GCC
26286    builtin and then its argument prototype would still apply.  */
26287 #ifdef __cplusplus
26288 extern "C"
26289 #endif
26290 char openpty ();
26291 int
26292 main ()
26293 {
26294 return openpty ();
26295   ;
26296   return 0;
26297 }
26298 _ACEOF
26299 rm -f conftest.$ac_objext conftest$ac_exeext
26300 if { (ac_try="$ac_link"
26301 case "(($ac_try" in
26302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303   *) ac_try_echo=$ac_try;;
26304 esac
26305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26306   (eval "$ac_link") 2>conftest.er1
26307   ac_status=$?
26308   grep -v '^ *+' conftest.er1 >conftest.err
26309   rm -f conftest.er1
26310   cat conftest.err >&5
26311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312   (exit $ac_status); } && {
26313          test -z "$ac_c_werror_flag" ||
26314          test ! -s conftest.err
26315        } && test -s conftest$ac_exeext &&
26316        $as_test_x conftest$ac_exeext; then
26317   ac_cv_lib_util_openpty=yes
26318 else
26319   echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26321
26322         ac_cv_lib_util_openpty=no
26323 fi
26324
26325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26326       conftest$ac_exeext conftest.$ac_ext
26327 LIBS=$ac_check_lib_save_LIBS
26328 fi
26329 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26330 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26331 if test $ac_cv_lib_util_openpty = yes; then
26332   cat >>confdefs.h <<_ACEOF
26333 #define HAVE_LIBUTIL 1
26334 _ACEOF
26335
26336   LIBS="-lutil $LIBS"
26337
26338 fi
26339
26340           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26341           LIBS="$saved_LIBS"
26342        else
26343           { echo "$as_me:$LINENO: result: no" >&5
26344 echo "${ECHO_T}no" >&6; }
26345        fi
26346
26347 else
26348
26349        { echo "$as_me:$LINENO: result: no" >&5
26350 echo "${ECHO_T}no" >&6; }
26351
26352
26353 fi
26354
26355
26356
26357
26358 { echo "$as_me:$LINENO: checking for socket" >&5
26359 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26360 if test "${ac_cv_func_socket+set}" = set; then
26361   echo $ECHO_N "(cached) $ECHO_C" >&6
26362 else
26363   cat >conftest.$ac_ext <<_ACEOF
26364 /* confdefs.h.  */
26365 _ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h.  */
26369 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26371 #define socket innocuous_socket
26372
26373 /* System header to define __stub macros and hopefully few prototypes,
26374     which can conflict with char socket (); below.
26375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26376     <limits.h> exists even on freestanding compilers.  */
26377
26378 #ifdef __STDC__
26379 # include <limits.h>
26380 #else
26381 # include <assert.h>
26382 #endif
26383
26384 #undef socket
26385
26386 /* Override any GCC internal prototype to avoid an error.
26387    Use char because int might match the return type of a GCC
26388    builtin and then its argument prototype would still apply.  */
26389 #ifdef __cplusplus
26390 extern "C"
26391 #endif
26392 char socket ();
26393 /* The GNU C library defines this for functions which it implements
26394     to always fail with ENOSYS.  Some functions are actually named
26395     something starting with __ and the normal name is an alias.  */
26396 #if defined __stub_socket || defined __stub___socket
26397 choke me
26398 #endif
26399
26400 int
26401 main ()
26402 {
26403 return socket ();
26404   ;
26405   return 0;
26406 }
26407 _ACEOF
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (ac_try="$ac_link"
26410 case "(($ac_try" in
26411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412   *) ac_try_echo=$ac_try;;
26413 esac
26414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26415   (eval "$ac_link") 2>conftest.er1
26416   ac_status=$?
26417   grep -v '^ *+' conftest.er1 >conftest.err
26418   rm -f conftest.er1
26419   cat conftest.err >&5
26420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421   (exit $ac_status); } && {
26422          test -z "$ac_c_werror_flag" ||
26423          test ! -s conftest.err
26424        } && test -s conftest$ac_exeext &&
26425        $as_test_x conftest$ac_exeext; then
26426   ac_cv_func_socket=yes
26427 else
26428   echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26430
26431         ac_cv_func_socket=no
26432 fi
26433
26434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26435       conftest$ac_exeext conftest.$ac_ext
26436 fi
26437 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26438 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26439 if test $ac_cv_func_socket = yes; then
26440   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26441 echo "${ECHO_T}using libc's socket" >&6; }
26442 else
26443
26444 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26445 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26446 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26447   echo $ECHO_N "(cached) $ECHO_C" >&6
26448 else
26449   ac_check_lib_save_LIBS=$LIBS
26450 LIBS="-lxnet  $LIBS"
26451 cat >conftest.$ac_ext <<_ACEOF
26452 /* confdefs.h.  */
26453 _ACEOF
26454 cat confdefs.h >>conftest.$ac_ext
26455 cat >>conftest.$ac_ext <<_ACEOF
26456 /* end confdefs.h.  */
26457
26458 /* Override any GCC internal prototype to avoid an error.
26459    Use char because int might match the return type of a GCC
26460    builtin and then its argument prototype would still apply.  */
26461 #ifdef __cplusplus
26462 extern "C"
26463 #endif
26464 char socket ();
26465 int
26466 main ()
26467 {
26468 return socket ();
26469   ;
26470   return 0;
26471 }
26472 _ACEOF
26473 rm -f conftest.$ac_objext conftest$ac_exeext
26474 if { (ac_try="$ac_link"
26475 case "(($ac_try" in
26476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26477   *) ac_try_echo=$ac_try;;
26478 esac
26479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26480   (eval "$ac_link") 2>conftest.er1
26481   ac_status=$?
26482   grep -v '^ *+' conftest.er1 >conftest.err
26483   rm -f conftest.er1
26484   cat conftest.err >&5
26485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486   (exit $ac_status); } && {
26487          test -z "$ac_c_werror_flag" ||
26488          test ! -s conftest.err
26489        } && test -s conftest$ac_exeext &&
26490        $as_test_x conftest$ac_exeext; then
26491   ac_cv_lib_xnet_socket=yes
26492 else
26493   echo "$as_me: failed program was:" >&5
26494 sed 's/^/| /' conftest.$ac_ext >&5
26495
26496         ac_cv_lib_xnet_socket=no
26497 fi
26498
26499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26500       conftest$ac_exeext conftest.$ac_ext
26501 LIBS=$ac_check_lib_save_LIBS
26502 fi
26503 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26504 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26505 if test $ac_cv_lib_xnet_socket = yes; then
26506   cat >>confdefs.h <<_ACEOF
26507 #define HAVE_LIBXNET 1
26508 _ACEOF
26509
26510   LIBS="-lxnet $LIBS"
26511
26512 fi
26513
26514
26515 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26516 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26517 if test "${ac_cv_lib_socket_socket+set}" = set; then
26518   echo $ECHO_N "(cached) $ECHO_C" >&6
26519 else
26520   ac_check_lib_save_LIBS=$LIBS
26521 LIBS="-lsocket  $LIBS"
26522 cat >conftest.$ac_ext <<_ACEOF
26523 /* confdefs.h.  */
26524 _ACEOF
26525 cat confdefs.h >>conftest.$ac_ext
26526 cat >>conftest.$ac_ext <<_ACEOF
26527 /* end confdefs.h.  */
26528
26529 /* Override any GCC internal prototype to avoid an error.
26530    Use char because int might match the return type of a GCC
26531    builtin and then its argument prototype would still apply.  */
26532 #ifdef __cplusplus
26533 extern "C"
26534 #endif
26535 char socket ();
26536 int
26537 main ()
26538 {
26539 return socket ();
26540   ;
26541   return 0;
26542 }
26543 _ACEOF
26544 rm -f conftest.$ac_objext conftest$ac_exeext
26545 if { (ac_try="$ac_link"
26546 case "(($ac_try" in
26547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26548   *) ac_try_echo=$ac_try;;
26549 esac
26550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26551   (eval "$ac_link") 2>conftest.er1
26552   ac_status=$?
26553   grep -v '^ *+' conftest.er1 >conftest.err
26554   rm -f conftest.er1
26555   cat conftest.err >&5
26556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557   (exit $ac_status); } && {
26558          test -z "$ac_c_werror_flag" ||
26559          test ! -s conftest.err
26560        } && test -s conftest$ac_exeext &&
26561        $as_test_x conftest$ac_exeext; then
26562   ac_cv_lib_socket_socket=yes
26563 else
26564   echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26566
26567         ac_cv_lib_socket_socket=no
26568 fi
26569
26570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26571       conftest$ac_exeext conftest.$ac_ext
26572 LIBS=$ac_check_lib_save_LIBS
26573 fi
26574 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26575 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26576 if test $ac_cv_lib_socket_socket = yes; then
26577   cat >>confdefs.h <<_ACEOF
26578 #define HAVE_LIBSOCKET 1
26579 _ACEOF
26580
26581   LIBS="-lsocket $LIBS"
26582
26583 fi
26584
26585
26586 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26587 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26588 if test "${ac_cv_lib_inet_socket+set}" = set; then
26589   echo $ECHO_N "(cached) $ECHO_C" >&6
26590 else
26591   ac_check_lib_save_LIBS=$LIBS
26592 LIBS="-linet  $LIBS"
26593 cat >conftest.$ac_ext <<_ACEOF
26594 /* confdefs.h.  */
26595 _ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h.  */
26599
26600 /* Override any GCC internal prototype to avoid an error.
26601    Use char because int might match the return type of a GCC
26602    builtin and then its argument prototype would still apply.  */
26603 #ifdef __cplusplus
26604 extern "C"
26605 #endif
26606 char socket ();
26607 int
26608 main ()
26609 {
26610 return socket ();
26611   ;
26612   return 0;
26613 }
26614 _ACEOF
26615 rm -f conftest.$ac_objext conftest$ac_exeext
26616 if { (ac_try="$ac_link"
26617 case "(($ac_try" in
26618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26619   *) ac_try_echo=$ac_try;;
26620 esac
26621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26622   (eval "$ac_link") 2>conftest.er1
26623   ac_status=$?
26624   grep -v '^ *+' conftest.er1 >conftest.err
26625   rm -f conftest.er1
26626   cat conftest.err >&5
26627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628   (exit $ac_status); } && {
26629          test -z "$ac_c_werror_flag" ||
26630          test ! -s conftest.err
26631        } && test -s conftest$ac_exeext &&
26632        $as_test_x conftest$ac_exeext; then
26633   ac_cv_lib_inet_socket=yes
26634 else
26635   echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26637
26638         ac_cv_lib_inet_socket=no
26639 fi
26640
26641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26642       conftest$ac_exeext conftest.$ac_ext
26643 LIBS=$ac_check_lib_save_LIBS
26644 fi
26645 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26646 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26647 if test $ac_cv_lib_inet_socket = yes; then
26648   cat >>confdefs.h <<_ACEOF
26649 #define HAVE_LIBINET 1
26650 _ACEOF
26651
26652   LIBS="-linet $LIBS"
26653
26654 fi
26655
26656 fi
26657
26658
26659 TCPW_MSG="no"
26660 WRAPLIBS=""
26661
26662 # Check whether --with-tcp-wrappers was given.
26663 if test "${with_tcp_wrappers+set}" = set; then
26664   withval=$with_tcp_wrappers;
26665        if test "x$withval" != "xno" ; then
26666           saved_LIBS="$LIBS"
26667           LIBS="$saved_LIBS -lwrap"
26668           { echo "$as_me:$LINENO: checking for libwrap" >&5
26669 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26670           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26671 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26672 if test "${ac_cv_search_nanosleep+set}" = set; then
26673   echo $ECHO_N "(cached) $ECHO_C" >&6
26674 else
26675   ac_func_search_save_LIBS=$LIBS
26676 cat >conftest.$ac_ext <<_ACEOF
26677 /* confdefs.h.  */
26678 _ACEOF
26679 cat confdefs.h >>conftest.$ac_ext
26680 cat >>conftest.$ac_ext <<_ACEOF
26681 /* end confdefs.h.  */
26682
26683 /* Override any GCC internal prototype to avoid an error.
26684    Use char because int might match the return type of a GCC
26685    builtin and then its argument prototype would still apply.  */
26686 #ifdef __cplusplus
26687 extern "C"
26688 #endif
26689 char nanosleep ();
26690 int
26691 main ()
26692 {
26693 return nanosleep ();
26694   ;
26695   return 0;
26696 }
26697 _ACEOF
26698 for ac_lib in '' rt; do
26699   if test -z "$ac_lib"; then
26700     ac_res="none required"
26701   else
26702     ac_res=-l$ac_lib
26703     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26704   fi
26705   rm -f conftest.$ac_objext conftest$ac_exeext
26706 if { (ac_try="$ac_link"
26707 case "(($ac_try" in
26708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26709   *) ac_try_echo=$ac_try;;
26710 esac
26711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26712   (eval "$ac_link") 2>conftest.er1
26713   ac_status=$?
26714   grep -v '^ *+' conftest.er1 >conftest.err
26715   rm -f conftest.er1
26716   cat conftest.err >&5
26717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718   (exit $ac_status); } && {
26719          test -z "$ac_c_werror_flag" ||
26720          test ! -s conftest.err
26721        } && test -s conftest$ac_exeext &&
26722        $as_test_x conftest$ac_exeext; then
26723   ac_cv_search_nanosleep=$ac_res
26724 else
26725   echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26727
26728
26729 fi
26730
26731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26732       conftest$ac_exeext
26733   if test "${ac_cv_search_nanosleep+set}" = set; then
26734   break
26735 fi
26736 done
26737 if test "${ac_cv_search_nanosleep+set}" = set; then
26738   :
26739 else
26740   ac_cv_search_nanosleep=no
26741 fi
26742 rm conftest.$ac_ext
26743 LIBS=$ac_func_search_save_LIBS
26744 fi
26745 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26746 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26747 ac_res=$ac_cv_search_nanosleep
26748 if test "$ac_res" != no; then
26749   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26750
26751 fi
26752
26753           cat >conftest.$ac_ext <<_ACEOF
26754 /* confdefs.h.  */
26755 _ACEOF
26756 cat confdefs.h >>conftest.$ac_ext
26757 cat >>conftest.$ac_ext <<_ACEOF
26758 /* end confdefs.h.  */
26759
26760                #include <sys/types.h>
26761                #include <tcpd.h>
26762                int deny_severity = 0;
26763                int allow_severity = 0;
26764                struct request_info *req;
26765
26766 int
26767 main ()
26768 {
26769
26770                 hosts_access(req);
26771
26772   ;
26773   return 0;
26774 }
26775 _ACEOF
26776 rm -f conftest.$ac_objext conftest$ac_exeext
26777 if { (ac_try="$ac_link"
26778 case "(($ac_try" in
26779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780   *) ac_try_echo=$ac_try;;
26781 esac
26782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783   (eval "$ac_link") 2>conftest.er1
26784   ac_status=$?
26785   grep -v '^ *+' conftest.er1 >conftest.err
26786   rm -f conftest.er1
26787   cat conftest.err >&5
26788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789   (exit $ac_status); } && {
26790          test -z "$ac_c_werror_flag" ||
26791          test ! -s conftest.err
26792        } && test -s conftest$ac_exeext &&
26793        $as_test_x conftest$ac_exeext; then
26794
26795                  { echo "$as_me:$LINENO: result: yes" >&5
26796 echo "${ECHO_T}yes" >&6; }
26797
26798 cat >>confdefs.h <<\_ACEOF
26799 #define HAVE_LIBWRAP 1
26800 _ACEOF
26801
26802                  TCPW_MSG="yes"
26803                  LIBS="$saved_LIBS"
26804                  WRAPLIBS="-lwrap"
26805
26806 else
26807   echo "$as_me: failed program was:" >&5
26808 sed 's/^/| /' conftest.$ac_ext >&5
26809
26810
26811                  LIBS="$saved_LIBS -lwrap -lnsl"
26812                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26813                  cat >conftest.$ac_ext <<_ACEOF
26814 /* confdefs.h.  */
26815 _ACEOF
26816 cat confdefs.h >>conftest.$ac_ext
26817 cat >>conftest.$ac_ext <<_ACEOF
26818 /* end confdefs.h.  */
26819
26820                        #include <sys/types.h>
26821                        #include <tcpd.h>
26822                        int deny_severity = 0;
26823                        int allow_severity = 0;
26824                        struct request_info *req;
26825
26826 int
26827 main ()
26828 {
26829
26830                        hosts_access(req);
26831
26832   ;
26833   return 0;
26834 }
26835 _ACEOF
26836 rm -f conftest.$ac_objext conftest$ac_exeext
26837 if { (ac_try="$ac_link"
26838 case "(($ac_try" in
26839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26840   *) ac_try_echo=$ac_try;;
26841 esac
26842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26843   (eval "$ac_link") 2>conftest.er1
26844   ac_status=$?
26845   grep -v '^ *+' conftest.er1 >conftest.err
26846   rm -f conftest.er1
26847   cat conftest.err >&5
26848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849   (exit $ac_status); } && {
26850          test -z "$ac_c_werror_flag" ||
26851          test ! -s conftest.err
26852        } && test -s conftest$ac_exeext &&
26853        $as_test_x conftest$ac_exeext; then
26854
26855                       { echo "$as_me:$LINENO: result: yes" >&5
26856 echo "${ECHO_T}yes" >&6; }
26857
26858 cat >>confdefs.h <<\_ACEOF
26859 #define HAVE_LIBWRAP 1
26860 _ACEOF
26861
26862                       TCPW_MSG="yes"
26863                       LIBS="$saved_LIBS"
26864                       WRAPLIBS="-lwrap"
26865
26866 else
26867   echo "$as_me: failed program was:" >&5
26868 sed 's/^/| /' conftest.$ac_ext >&5
26869
26870
26871                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26872 echo "$as_me: error: *** libwrap missing" >&2;}
26873    { (exit 1); exit 1; }; }
26874
26875
26876 fi
26877
26878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26879       conftest$ac_exeext conftest.$ac_ext
26880
26881
26882 fi
26883
26884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26885       conftest$ac_exeext conftest.$ac_ext
26886        fi
26887
26888
26889 fi
26890
26891
26892 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26893 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26894
26895 # Check whether --with-openssl was given.
26896 if test "${with_openssl+set}" = set; then
26897   withval=$with_openssl;
26898         with_openssl_directory=${withval}
26899
26900
26901 fi
26902
26903
26904 if test "x$with_openssl_directory" != "xno"; then
26905    OPENSSL_LIBS="-lssl -lcrypto"
26906    OPENSSL_INC=""
26907
26908    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26909       #
26910       # Make sure the $with_openssl_directory also makes sense
26911       #
26912       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26913          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26914          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26915       fi
26916    fi
26917
26918    saved_LIBS="${LIBS}"
26919    saved_CFLAGS="${CFLAGS}"
26920    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26921    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26922
26923    cat >conftest.$ac_ext <<_ACEOF
26924 /* confdefs.h.  */
26925 _ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h.  */
26929
26930           #include <openssl/ssl.h>
26931
26932 int
26933 main ()
26934 {
26935
26936            CRYPTO_set_id_callback(NULL);
26937
26938   ;
26939   return 0;
26940 }
26941 _ACEOF
26942 rm -f conftest.$ac_objext conftest$ac_exeext
26943 if { (ac_try="$ac_link"
26944 case "(($ac_try" in
26945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26946   *) ac_try_echo=$ac_try;;
26947 esac
26948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26949   (eval "$ac_link") 2>conftest.er1
26950   ac_status=$?
26951   grep -v '^ *+' conftest.er1 >conftest.err
26952   rm -f conftest.er1
26953   cat conftest.err >&5
26954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955   (exit $ac_status); } && {
26956          test -z "$ac_c_werror_flag" ||
26957          test ! -s conftest.err
26958        } && test -s conftest$ac_exeext &&
26959        $as_test_x conftest$ac_exeext; then
26960
26961           support_tls="yes"
26962           support_crypto="yes"
26963
26964 else
26965   echo "$as_me: failed program was:" >&5
26966 sed 's/^/| /' conftest.$ac_ext >&5
26967
26968
26969           support_tls="no"
26970
26971
26972 fi
26973
26974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26975       conftest$ac_exeext conftest.$ac_ext
26976
26977    cat >conftest.$ac_ext <<_ACEOF
26978 /* confdefs.h.  */
26979 _ACEOF
26980 cat confdefs.h >>conftest.$ac_ext
26981 cat >>conftest.$ac_ext <<_ACEOF
26982 /* end confdefs.h.  */
26983
26984           #include <openssl/evp.h>
26985
26986 int
26987 main ()
26988 {
26989
26990           EVP_sha512();
26991
26992   ;
26993   return 0;
26994 }
26995 _ACEOF
26996 rm -f conftest.$ac_objext conftest$ac_exeext
26997 if { (ac_try="$ac_link"
26998 case "(($ac_try" in
26999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27000   *) ac_try_echo=$ac_try;;
27001 esac
27002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27003   (eval "$ac_link") 2>conftest.er1
27004   ac_status=$?
27005   grep -v '^ *+' conftest.er1 >conftest.err
27006   rm -f conftest.er1
27007   cat conftest.err >&5
27008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009   (exit $ac_status); } && {
27010          test -z "$ac_c_werror_flag" ||
27011          test ! -s conftest.err
27012        } && test -s conftest$ac_exeext &&
27013        $as_test_x conftest$ac_exeext; then
27014
27015           ac_cv_openssl_sha2="yes"
27016
27017 else
27018   echo "$as_me: failed program was:" >&5
27019 sed 's/^/| /' conftest.$ac_ext >&5
27020
27021
27022           ac_cv_openssl_sha2="no"
27023
27024
27025 fi
27026
27027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27028       conftest$ac_exeext conftest.$ac_ext
27029
27030                cat >conftest.$ac_ext <<_ACEOF
27031 /* confdefs.h.  */
27032 _ACEOF
27033 cat confdefs.h >>conftest.$ac_ext
27034 cat >>conftest.$ac_ext <<_ACEOF
27035 /* end confdefs.h.  */
27036
27037           #include <openssl/evp.h>
27038
27039 int
27040 main ()
27041 {
27042
27043           EVP_aes_192_cbc();
27044
27045   ;
27046   return 0;
27047 }
27048 _ACEOF
27049 rm -f conftest.$ac_objext conftest$ac_exeext
27050 if { (ac_try="$ac_link"
27051 case "(($ac_try" in
27052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053   *) ac_try_echo=$ac_try;;
27054 esac
27055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27056   (eval "$ac_link") 2>conftest.er1
27057   ac_status=$?
27058   grep -v '^ *+' conftest.er1 >conftest.err
27059   rm -f conftest.er1
27060   cat conftest.err >&5
27061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062   (exit $ac_status); } && {
27063          test -z "$ac_c_werror_flag" ||
27064          test ! -s conftest.err
27065        } && test -s conftest$ac_exeext &&
27066        $as_test_x conftest$ac_exeext; then
27067
27068           ac_cv_openssl_export="no"
27069
27070 else
27071   echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27073
27074
27075           ac_cv_openssl_export="yes"
27076
27077
27078 fi
27079
27080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27081       conftest$ac_exeext conftest.$ac_ext
27082
27083    LIBS="${saved_LIBS}"
27084    CFLAGS="${saved_CFLAGS}"
27085
27086    if test "$support_tls" = "yes"; then
27087
27088 cat >>confdefs.h <<\_ACEOF
27089 #define HAVE_OPENSSL 1
27090 _ACEOF
27091
27092
27093 cat >>confdefs.h <<\_ACEOF
27094 #define HAVE_TLS 1
27095 _ACEOF
27096
27097
27098 cat >>confdefs.h <<\_ACEOF
27099 #define HAVE_CRYPTO 1
27100 _ACEOF
27101
27102    fi
27103
27104    if test "$ac_cv_openssl_sha2" = "yes"; then
27105
27106 cat >>confdefs.h <<\_ACEOF
27107 #define HAVE_SHA2 1
27108 _ACEOF
27109
27110    fi
27111
27112    if test "$ac_cv_openssl_export" = "yes"; then
27113
27114 cat >>confdefs.h <<\_ACEOF
27115 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27116 _ACEOF
27117
27118    fi
27119 else
27120    support_tls="no"
27121    support_crypto="no"
27122    OPENSSL_LIBS=""
27123    OPENSSL_INC=""
27124 fi
27125
27126 { echo "$as_me:$LINENO: result: $support_tls" >&5
27127 echo "${ECHO_T}$support_tls" >&6; }
27128
27129
27130
27131 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27132 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27133 if test "${ac_cv_search_dlopen+set}" = set; then
27134   echo $ECHO_N "(cached) $ECHO_C" >&6
27135 else
27136   ac_func_search_save_LIBS=$LIBS
27137 cat >conftest.$ac_ext <<_ACEOF
27138 /* confdefs.h.  */
27139 _ACEOF
27140 cat confdefs.h >>conftest.$ac_ext
27141 cat >>conftest.$ac_ext <<_ACEOF
27142 /* end confdefs.h.  */
27143
27144 /* Override any GCC internal prototype to avoid an error.
27145    Use char because int might match the return type of a GCC
27146    builtin and then its argument prototype would still apply.  */
27147 #ifdef __cplusplus
27148 extern "C"
27149 #endif
27150 char dlopen ();
27151 int
27152 main ()
27153 {
27154 return dlopen ();
27155   ;
27156   return 0;
27157 }
27158 _ACEOF
27159 for ac_lib in '' dl; do
27160   if test -z "$ac_lib"; then
27161     ac_res="none required"
27162   else
27163     ac_res=-l$ac_lib
27164     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27165   fi
27166   rm -f conftest.$ac_objext conftest$ac_exeext
27167 if { (ac_try="$ac_link"
27168 case "(($ac_try" in
27169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27170   *) ac_try_echo=$ac_try;;
27171 esac
27172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27173   (eval "$ac_link") 2>conftest.er1
27174   ac_status=$?
27175   grep -v '^ *+' conftest.er1 >conftest.err
27176   rm -f conftest.er1
27177   cat conftest.err >&5
27178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179   (exit $ac_status); } && {
27180          test -z "$ac_c_werror_flag" ||
27181          test ! -s conftest.err
27182        } && test -s conftest$ac_exeext &&
27183        $as_test_x conftest$ac_exeext; then
27184   ac_cv_search_dlopen=$ac_res
27185 else
27186   echo "$as_me: failed program was:" >&5
27187 sed 's/^/| /' conftest.$ac_ext >&5
27188
27189
27190 fi
27191
27192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27193       conftest$ac_exeext
27194   if test "${ac_cv_search_dlopen+set}" = set; then
27195   break
27196 fi
27197 done
27198 if test "${ac_cv_search_dlopen+set}" = set; then
27199   :
27200 else
27201   ac_cv_search_dlopen=no
27202 fi
27203 rm conftest.$ac_ext
27204 LIBS=$ac_func_search_save_LIBS
27205 fi
27206 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27207 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27208 ac_res=$ac_cv_search_dlopen
27209 if test "$ac_res" != no; then
27210   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27211
27212 fi
27213
27214
27215 working_dir=`eval echo ${prefix}/var/bacula/working`
27216
27217 # Check whether --with-working-dir was given.
27218 if test "${with_working_dir+set}" = set; then
27219   withval=$with_working_dir;
27220        if test "x$withval" != "xno" ; then
27221          working_dir=$withval
27222        fi
27223
27224
27225 fi
27226
27227
27228
27229
27230 archive_dir=/tmp
27231
27232 # Check whether --with-archivedir was given.
27233 if test "${with_archivedir+set}" = set; then
27234   withval=$with_archivedir;
27235        if test "x$withval" != "xno" ; then
27236           archivedir=$withval
27237        fi
27238
27239
27240 fi
27241
27242
27243
27244
27245 scriptdir=`eval echo ${sysconfdir}`
27246
27247 # Check whether --with-scriptdir was given.
27248 if test "${with_scriptdir+set}" = set; then
27249   withval=$with_scriptdir;
27250        if test "x$withval" != "xno" ; then
27251           scriptdir=$withval
27252        fi
27253
27254
27255 fi
27256
27257
27258
27259
27260 # ------------------------------------------
27261 # Where to place plugindir (script files)
27262 # ------------------------------------------
27263 plugindir=`eval echo ${sysconfdir}`
27264
27265 # Check whether --with-plugindir was given.
27266 if test "${with_plugindir+set}" = set; then
27267   withval=$with_plugindir;
27268        if test "x$withval" != "xno" ; then
27269           plugindir=$withval
27270        fi
27271
27272
27273 fi
27274
27275
27276
27277
27278 dump_email=root@localhost
27279
27280 # Check whether --with-dump-email was given.
27281 if test "${with_dump_email+set}" = set; then
27282   withval=$with_dump_email;
27283        if test "x$withval" != "xno" ; then
27284           dump_email=$withval
27285        fi
27286
27287
27288 fi
27289
27290
27291
27292
27293 job_email=root@localhost
27294
27295 # Check whether --with-job-email was given.
27296 if test "${with_job_email+set}" = set; then
27297   withval=$with_job_email;
27298        if test "x$withval" != "xno" ; then
27299           job_email=$withval
27300        fi
27301
27302
27303 fi
27304
27305
27306
27307
27308 smtp_host=localhost
27309
27310 # Check whether --with-smtp_host was given.
27311 if test "${with_smtp_host+set}" = set; then
27312   withval=$with_smtp_host;
27313        if test "x$withval" != "xno" ; then
27314           smtp_host=$withval
27315        fi
27316
27317
27318 fi
27319
27320
27321
27322
27323 piddir=/var/run
27324
27325 # Check whether --with-pid-dir was given.
27326 if test "${with_pid_dir+set}" = set; then
27327   withval=$with_pid_dir;
27328        if test "x$withval" != "xno" ; then
27329           piddir=$withval
27330        fi
27331
27332
27333 fi
27334
27335
27336 cat >>confdefs.h <<_ACEOF
27337 #define _PATH_BACULA_PIDDIR "$piddir"
27338 _ACEOF
27339
27340
27341
27342 subsysdir=/var/run/subsys
27343 if test -d /var/run/subsys; then
27344    subsysdir=/var/run/subsys
27345 elif test -d /var/lock/subsys; then
27346    subsysdir=/var/lock/subsys
27347 else
27348    subsysdir=/var/run/subsys
27349 fi
27350
27351 # Check whether --with-subsys-dir was given.
27352 if test "${with_subsys_dir+set}" = set; then
27353   withval=$with_subsys_dir;
27354        if test "x$withval" != "xno" ; then
27355           subsysdir=$withval
27356        fi
27357
27358
27359 fi
27360
27361
27362
27363
27364 baseport=9101
27365
27366 # Check whether --with-baseport was given.
27367 if test "${with_baseport+set}" = set; then
27368   withval=$with_baseport;
27369        if test "x$withval" != "xno" ; then
27370           baseport=$withval
27371        fi
27372
27373
27374 fi
27375
27376
27377
27378 dir_port=`expr $baseport`
27379 fd_port=`expr $baseport + 1`
27380 sd_port=`expr $fd_port + 1`
27381
27382
27383
27384
27385
27386 dir_password=
27387
27388 # Check whether --with-dir-password was given.
27389 if test "${with_dir_password+set}" = set; then
27390   withval=$with_dir_password;
27391        if test "x$withval" != "xno" ; then
27392           dir_password=$withval
27393        fi
27394
27395
27396 fi
27397
27398
27399 if test "x$dir_password" = "x" ; then
27400    if test "x$OPENSSL" = "xnone" ; then
27401       key=`autoconf/randpass 33`
27402    else
27403       key=`openssl rand -base64 33`
27404    fi
27405    dir_password=$key
27406 fi
27407
27408 fd_password=
27409
27410 # Check whether --with-fd-password was given.
27411 if test "${with_fd_password+set}" = set; then
27412   withval=$with_fd_password;
27413        if test "x$withval" != "xno" ; then
27414           fd_password=$withval
27415        fi
27416
27417
27418 fi
27419
27420
27421 if test "x$fd_password" = "x" ; then
27422    if test "x$OPENSSL" = "xnone" ; then
27423       key=`autoconf/randpass 37`
27424    else
27425       key=`openssl rand -base64 33`
27426    fi
27427    fd_password=$key
27428 fi
27429
27430 sd_password=
27431
27432 # Check whether --with-sd-password was given.
27433 if test "${with_sd_password+set}" = set; then
27434   withval=$with_sd_password;
27435        if test "x$withval" != "xno" ; then
27436           sd_password=$withval
27437        fi
27438
27439
27440 fi
27441
27442
27443 if test "x$sd_password" = "x" ; then
27444    if test "x$OPENSSL" = "xnone" ; then
27445       key=`autoconf/randpass 41`
27446    else
27447       key=`openssl rand -base64 33`
27448    fi
27449    sd_password=$key
27450 fi
27451
27452 mon_dir_password=
27453
27454 # Check whether --with-mon-dir-password was given.
27455 if test "${with_mon_dir_password+set}" = set; then
27456   withval=$with_mon_dir_password;
27457        if test "x$withval" != "xno" ; then
27458           mon_dir_password=$withval
27459        fi
27460
27461
27462 fi
27463
27464
27465 if test "x$mon_dir_password" = "x" ; then
27466    if test "x$OPENSSL" = "xnone" ; then
27467       key=`autoconf/randpass 33`
27468    else
27469       key=`openssl rand -base64 33`
27470    fi
27471    mon_dir_password=$key
27472 fi
27473
27474 mon_fd_password=
27475
27476 # Check whether --with-mon-fd-password was given.
27477 if test "${with_mon_fd_password+set}" = set; then
27478   withval=$with_mon_fd_password;
27479        if test "x$withval" != "xno" ; then
27480           mon_fd_password=$withval
27481        fi
27482
27483
27484 fi
27485
27486
27487 if test "x$mon_fd_password" = "x" ; then
27488    if test "x$OPENSSL" = "xnone" ; then
27489       key=`autoconf/randpass 37`
27490    else
27491       key=`openssl rand -base64 33`
27492    fi
27493    mon_fd_password=$key
27494 fi
27495
27496 mon_sd_password=
27497
27498 # Check whether --with-mon-sd-password was given.
27499 if test "${with_mon_sd_password+set}" = set; then
27500   withval=$with_mon_sd_password;
27501        if test "x$withval" != "xno" ; then
27502           mon_sd_password=$withval
27503        fi
27504
27505
27506 fi
27507
27508
27509 if test "x$mon_sd_password" = "x" ; then
27510    if test "x$OPENSSL" = "xnone" ; then
27511       key=`autoconf/randpass 41`
27512    else
27513       key=`openssl rand -base64 33`
27514    fi
27515    mon_sd_password=$key
27516 fi
27517
27518
27519
27520
27521
27522
27523
27524
27525 db_name=bacula
27526
27527 # Check whether --with-db_name was given.
27528 if test "${with_db_name+set}" = set; then
27529   withval=$with_db_name;
27530        if test "x$withval" != "x" ; then
27531           db_name=$withval
27532        fi
27533
27534
27535 fi
27536
27537
27538
27539 db_user=bacula
27540
27541 # Check whether --with-db_user was given.
27542 if test "${with_db_user+set}" = set; then
27543   withval=$with_db_user;
27544        if test "x$withval" != "x" ; then
27545           db_user=$withval
27546        fi
27547
27548
27549 fi
27550
27551
27552
27553 db_password=
27554
27555 # Check whether --with-db_password was given.
27556 if test "${with_db_password+set}" = set; then
27557   withval=$with_db_password;
27558        if test "x$withval" != "x" ; then
27559           db_password=$withval
27560        fi
27561
27562
27563 fi
27564
27565
27566
27567 db_port=" "
27568
27569 # Check whether --with-db_port was given.
27570 if test "${with_db_port+set}" = set; then
27571   withval=$with_db_port;
27572        if test "x$withval" != "x" ; then
27573           db_port=$withval
27574        fi
27575
27576
27577 fi
27578
27579
27580
27581 #
27582 # Handle users and groups for each daemon
27583 #
27584 dir_user=
27585
27586 # Check whether --with-dir_user was given.
27587 if test "${with_dir_user+set}" = set; then
27588   withval=$with_dir_user;
27589        if test "x$withval" != "x" ; then
27590            dir_user=$withval
27591        fi
27592
27593
27594 fi
27595
27596
27597 dir_group=
27598
27599 # Check whether --with-dir_group was given.
27600 if test "${with_dir_group+set}" = set; then
27601   withval=$with_dir_group;
27602        if test "x$withval" != "x" ; then
27603           dir_group=$withval
27604        fi
27605
27606
27607 fi
27608
27609
27610 sd_user=
27611
27612 # Check whether --with-sd_user was given.
27613 if test "${with_sd_user+set}" = set; then
27614   withval=$with_sd_user;
27615        if test "x$withval" != "x" ; then
27616           sd_user=$withval
27617        fi
27618
27619
27620 fi
27621
27622
27623 sd_group=
27624
27625 # Check whether --with-sd_group was given.
27626 if test "${with_sd_group+set}" = set; then
27627   withval=$with_sd_group;
27628        if test "x$withval" != "x" ; then
27629           sd_group=$withval
27630        fi
27631
27632
27633 fi
27634
27635
27636 fd_user=
27637
27638 # Check whether --with-fd_user was given.
27639 if test "${with_fd_user+set}" = set; then
27640   withval=$with_fd_user;
27641        if test "x$withval" != "x" ; then
27642           fd_user=$withval
27643        fi
27644
27645
27646 fi
27647
27648
27649 fd_group=
27650
27651 # Check whether --with-fd_group was given.
27652 if test "${with_fd_group+set}" = set; then
27653   withval=$with_fd_group;
27654        if test "x$withval" != "x" ; then
27655           fd_group=$withval
27656        fi
27657
27658
27659 fi
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669 SBINPERM=0754
27670
27671 # Check whether --with-sbin-perm was given.
27672 if test "${with_sbin_perm+set}" = set; then
27673   withval=$with_sbin_perm;
27674        if test "x$withval" != "x" ; then
27675           SBINPERM=$withval
27676        fi
27677
27678
27679 fi
27680
27681
27682
27683
27684 SQL_LIB=
27685
27686 db_found=no
27687 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27688 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27689
27690 # Check whether --with-postgresql was given.
27691 if test "${with_postgresql+set}" = set; then
27692   withval=$with_postgresql;
27693   if test "$withval" != "no"; then
27694       if test "$db_found" = "yes"; then
27695           { echo "$as_me:$LINENO: result: error" >&5
27696 echo "${ECHO_T}error" >&6; }
27697           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27698 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27699    { (exit 1); exit 1; }; };
27700       fi
27701       if test "$withval" = "yes"; then
27702           PG_CONFIG=`which pg_config`
27703           if test -n "$PG_CONFIG";then
27704               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27705               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27706               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27707           elif test -f /usr/local/include/libpq-fe.h; then
27708               POSTGRESQL_INCDIR=/usr/local/include
27709               if test -d /usr/local/lib64; then
27710                  POSTGRESQL_LIBDIR=/usr/local/lib64
27711               else
27712                  POSTGRESQL_LIBDIR=/usr/local/lib
27713               fi
27714               POSTGRESQL_BINDIR=/usr/local/bin
27715           elif test -f /usr/include/libpq-fe.h; then
27716               POSTGRESQL_INCDIR=/usr/include
27717               if test -d /usr/lib64; then
27718                  POSTGRESQL_LIBDIR=/usr/lib64
27719               else
27720                  POSTGRESQL_LIBDIR=/usr/lib
27721               fi
27722               POSTGRESQL_BINDIR=/usr/bin
27723           elif test -f /usr/include/pgsql/libpq-fe.h; then
27724               POSTGRESQL_INCDIR=/usr/include/pgsql
27725               if test -d /usr/lib64/pgsql; then
27726                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27727               else
27728                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27729               fi
27730               POSTGRESQL_BINDIR=/usr/bin
27731           elif test -f /usr/include/postgresql/libpq-fe.h; then
27732               POSTGRESQL_INCDIR=/usr/include/postgresql
27733               if test -d /usr/lib64/postgresql; then
27734                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27735               else
27736                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27737               fi
27738               POSTGRESQL_BINDIR=/usr/bin
27739           else
27740               { echo "$as_me:$LINENO: result: no" >&5
27741 echo "${ECHO_T}no" >&6; }
27742               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27743 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27744    { (exit 1); exit 1; }; }
27745           fi
27746       elif test -f $withval/include/libpq-fe.h; then
27747           POSTGRESQL_INCDIR=$withval/include
27748           POSTGRESQL_LIBDIR=$withval/lib
27749           POSTGRESQL_BINDIR=$withval/bin
27750       elif test -f $withval/include/postgresql/libpq-fe.h; then
27751           POSTGRESQL_INCDIR=$withval/include/postgresql
27752      if test -d $withval/lib64; then
27753          POSTGRESQL_LIBDIR=$withval/lib64
27754      else
27755          POSTGRESQL_LIBDIR=$withval/lib
27756      fi
27757           POSTGRESQL_BINDIR=$withval/bin
27758       else
27759           { echo "$as_me:$LINENO: result: no" >&5
27760 echo "${ECHO_T}no" >&6; }
27761           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27762 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27763    { (exit 1); exit 1; }; }
27764       fi
27765       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27766       { echo "$as_me:$LINENO: checking for crypt" >&5
27767 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27768 if test "${ac_cv_func_crypt+set}" = set; then
27769   echo $ECHO_N "(cached) $ECHO_C" >&6
27770 else
27771   cat >conftest.$ac_ext <<_ACEOF
27772 /* confdefs.h.  */
27773 _ACEOF
27774 cat confdefs.h >>conftest.$ac_ext
27775 cat >>conftest.$ac_ext <<_ACEOF
27776 /* end confdefs.h.  */
27777 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27779 #define crypt innocuous_crypt
27780
27781 /* System header to define __stub macros and hopefully few prototypes,
27782     which can conflict with char crypt (); below.
27783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27784     <limits.h> exists even on freestanding compilers.  */
27785
27786 #ifdef __STDC__
27787 # include <limits.h>
27788 #else
27789 # include <assert.h>
27790 #endif
27791
27792 #undef crypt
27793
27794 /* Override any GCC internal prototype to avoid an error.
27795    Use char because int might match the return type of a GCC
27796    builtin and then its argument prototype would still apply.  */
27797 #ifdef __cplusplus
27798 extern "C"
27799 #endif
27800 char crypt ();
27801 /* The GNU C library defines this for functions which it implements
27802     to always fail with ENOSYS.  Some functions are actually named
27803     something starting with __ and the normal name is an alias.  */
27804 #if defined __stub_crypt || defined __stub___crypt
27805 choke me
27806 #endif
27807
27808 int
27809 main ()
27810 {
27811 return crypt ();
27812   ;
27813   return 0;
27814 }
27815 _ACEOF
27816 rm -f conftest.$ac_objext conftest$ac_exeext
27817 if { (ac_try="$ac_link"
27818 case "(($ac_try" in
27819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820   *) ac_try_echo=$ac_try;;
27821 esac
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823   (eval "$ac_link") 2>conftest.er1
27824   ac_status=$?
27825   grep -v '^ *+' conftest.er1 >conftest.err
27826   rm -f conftest.er1
27827   cat conftest.err >&5
27828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27829   (exit $ac_status); } && {
27830          test -z "$ac_c_werror_flag" ||
27831          test ! -s conftest.err
27832        } && test -s conftest$ac_exeext &&
27833        $as_test_x conftest$ac_exeext; then
27834   ac_cv_func_crypt=yes
27835 else
27836   echo "$as_me: failed program was:" >&5
27837 sed 's/^/| /' conftest.$ac_ext >&5
27838
27839         ac_cv_func_crypt=no
27840 fi
27841
27842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27843       conftest$ac_exeext conftest.$ac_ext
27844 fi
27845 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27846 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27847 if test $ac_cv_func_crypt = yes; then
27848   :
27849 else
27850   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27851 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27852 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27853   echo $ECHO_N "(cached) $ECHO_C" >&6
27854 else
27855   ac_check_lib_save_LIBS=$LIBS
27856 LIBS="-lcrypt  $LIBS"
27857 cat >conftest.$ac_ext <<_ACEOF
27858 /* confdefs.h.  */
27859 _ACEOF
27860 cat confdefs.h >>conftest.$ac_ext
27861 cat >>conftest.$ac_ext <<_ACEOF
27862 /* end confdefs.h.  */
27863
27864 /* Override any GCC internal prototype to avoid an error.
27865    Use char because int might match the return type of a GCC
27866    builtin and then its argument prototype would still apply.  */
27867 #ifdef __cplusplus
27868 extern "C"
27869 #endif
27870 char crypt ();
27871 int
27872 main ()
27873 {
27874 return crypt ();
27875   ;
27876   return 0;
27877 }
27878 _ACEOF
27879 rm -f conftest.$ac_objext conftest$ac_exeext
27880 if { (ac_try="$ac_link"
27881 case "(($ac_try" in
27882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883   *) ac_try_echo=$ac_try;;
27884 esac
27885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886   (eval "$ac_link") 2>conftest.er1
27887   ac_status=$?
27888   grep -v '^ *+' conftest.er1 >conftest.err
27889   rm -f conftest.er1
27890   cat conftest.err >&5
27891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892   (exit $ac_status); } && {
27893          test -z "$ac_c_werror_flag" ||
27894          test ! -s conftest.err
27895        } && test -s conftest$ac_exeext &&
27896        $as_test_x conftest$ac_exeext; then
27897   ac_cv_lib_crypt_crypt=yes
27898 else
27899   echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27901
27902         ac_cv_lib_crypt_crypt=no
27903 fi
27904
27905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27906       conftest$ac_exeext conftest.$ac_ext
27907 LIBS=$ac_check_lib_save_LIBS
27908 fi
27909 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27910 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27911 if test $ac_cv_lib_crypt_crypt = yes; then
27912   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27913 fi
27914
27915 fi
27916
27917       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27918       SQL_LFLAGS=$POSTGRESQL_LFLAGS
27919       SQL_BINDIR=$POSTGRESQL_BINDIR
27920       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27921
27922       cat >>confdefs.h <<\_ACEOF
27923 #define HAVE_POSTGRESQL 1
27924 _ACEOF
27925
27926       { echo "$as_me:$LINENO: result: yes" >&5
27927 echo "${ECHO_T}yes" >&6; }
27928       db_found=yes
27929       support_postgresql=yes
27930       db_type=PostgreSQL
27931       DB_TYPE=postgresql
27932   else
27933       { echo "$as_me:$LINENO: result: no" >&5
27934 echo "${ECHO_T}no" >&6; }
27935   fi
27936
27937 else
27938
27939   { echo "$as_me:$LINENO: result: no" >&5
27940 echo "${ECHO_T}no" >&6; }
27941
27942 fi
27943
27944
27945
27946
27947
27948
27949
27950
27951 db_found=no
27952 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27953 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27954
27955 # Check whether --with-mysql was given.
27956 if test "${with_mysql+set}" = set; then
27957   withval=$with_mysql;
27958   if test "$withval" != "no"; then
27959         if test "$withval" = "yes"; then
27960            if test -f /usr/local/mysql/include/mysql/mysql.h; then
27961                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
27962                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27963                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27964                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27965                    else
27966                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27967                    fi
27968                    MYSQL_BINDIR=/usr/local/mysql/bin
27969            elif test -f /usr/include/mysql/mysql.h; then
27970                    MYSQL_INCDIR=/usr/include/mysql
27971                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27972                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27973                            MYSQL_LIBDIR=/usr/lib64/mysql
27974                    elif test -f /usr/lib64/libmysqlclient_r.a \
27975                         -o -f /usr/lib64/libmysqlclient_r.so; then
27976                            MYSQL_LIBDIR=/usr/lib64
27977                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27978                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27979                            MYSQL_LIBDIR=/usr/lib/mysql
27980                    else
27981                            MYSQL_LIBDIR=/usr/lib
27982                    fi
27983                    MYSQL_BINDIR=/usr/bin
27984            elif test -f /usr/include/mysql.h; then
27985                    MYSQL_INCDIR=/usr/include
27986                    if test -f /usr/lib64/libmysqlclient_r.a \
27987                         -o -f /usr/lib64/libmysqlclient_r.so; then
27988                            MYSQL_LIBDIR=/usr/lib64
27989                    else
27990                            MYSQL_LIBDIR=/usr/lib
27991                    fi
27992                    MYSQL_BINDIR=/usr/bin
27993            elif test -f /usr/local/include/mysql/mysql.h; then
27994                    MYSQL_INCDIR=/usr/local/include/mysql
27995                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27996                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27997                            MYSQL_LIBDIR=/usr/local/lib64/mysql
27998                    else
27999                            MYSQL_LIBDIR=/usr/local/lib/mysql
28000                    fi
28001                    MYSQL_BINDIR=/usr/local/bin
28002            elif test -f /usr/local/include/mysql.h; then
28003                    MYSQL_INCDIR=/usr/local/include
28004                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28005                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28006                            MYSQL_LIBDIR=/usr/local/lib64
28007                    else
28008                            MYSQL_LIBDIR=/usr/local/lib
28009                    fi
28010                    MYSQL_BINDIR=/usr/local/bin
28011            else
28012               { echo "$as_me:$LINENO: result: no" >&5
28013 echo "${ECHO_T}no" >&6; }
28014               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28015 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28016    { (exit 1); exit 1; }; }
28017            fi
28018         else
28019            if test -f $withval/include/mysql/mysql.h; then
28020               MYSQL_INCDIR=$withval/include/mysql
28021               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28022                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28023                  MYSQL_LIBDIR=$withval/lib64/mysql
28024               elif test -f $withval/lib64/libmysqlclient_r.a \
28025                    -o -f $withval/lib64/libmysqlclient_r.so; then
28026                  MYSQL_LIBDIR=$withval/lib64
28027               elif test -f $withval/lib/libmysqlclient_r.a \
28028                    -o -f $withval/lib/libmysqlclient_r.so; then
28029                  MYSQL_LIBDIR=$withval/lib
28030               else
28031                  MYSQL_LIBDIR=$withval/lib/mysql
28032               fi
28033               MYSQL_BINDIR=$withval/bin
28034            elif test -f $withval/include/mysql.h; then
28035               MYSQL_INCDIR=$withval/include
28036               if test -f $withval/lib64/libmysqlclient_r.a \
28037                    -o -f $withval/lib64/libmysqlclient_r.so; then
28038                  MYSQL_LIBDIR=$withval/lib64
28039               else
28040                  MYSQL_LIBDIR=$withval/lib
28041               fi
28042               MYSQL_BINDIR=$withval/bin
28043            else
28044               { echo "$as_me:$LINENO: result: no" >&5
28045 echo "${ECHO_T}no" >&6; }
28046               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28047 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28048    { (exit 1); exit 1; }; }
28049            fi
28050         fi
28051     SQL_INCLUDE=-I$MYSQL_INCDIR
28052     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28053          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28054        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28055        cat >>confdefs.h <<\_ACEOF
28056 #define HAVE_THREAD_SAFE_MYSQL 1
28057 _ACEOF
28058
28059     fi
28060     SQL_BINDIR=$MYSQL_BINDIR
28061     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28062
28063     cat >>confdefs.h <<\_ACEOF
28064 #define HAVE_MYSQL 1
28065 _ACEOF
28066
28067     { echo "$as_me:$LINENO: result: yes" >&5
28068 echo "${ECHO_T}yes" >&6; }
28069     db_found=yes
28070     support_mysql=yes
28071     db_type=MySQL
28072     DB_TYPE=mysql
28073
28074   else
28075         { echo "$as_me:$LINENO: result: no" >&5
28076 echo "${ECHO_T}no" >&6; }
28077   fi
28078
28079
28080 fi
28081
28082
28083
28084 # Check whether --with-embedded-mysql was given.
28085 if test "${with_embedded_mysql+set}" = set; then
28086   withval=$with_embedded_mysql;
28087   if test "$withval" != "no"; then
28088         if test "$withval" = "yes"; then
28089                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28090                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28091                         if test -d /usr/local/mysql/lib64/mysql; then
28092                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28093                         else
28094                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28095                         fi
28096                         MYSQL_BINDIR=/usr/local/mysql/bin
28097                 elif test -f /usr/include/mysql/mysql.h; then
28098                         MYSQL_INCDIR=/usr/include/mysql
28099                         if test -d /usr/lib64/mysql; then
28100                                 MYSQL_LIBDIR=/usr/lib64/mysql
28101                         else
28102                                 MYSQL_LIBDIR=/usr/lib/mysql
28103                         fi
28104                         MYSQL_BINDIR=/usr/bin
28105                 elif test -f /usr/include/mysql.h; then
28106                         MYSQL_INCDIR=/usr/include
28107                         if test -d /usr/lib64; then
28108                                 MYSQL_LIBDIR=/usr/lib64
28109                         else
28110                                 MYSQL_LIBDIR=/usr/lib
28111                         fi
28112                         MYSQL_BINDIR=/usr/bin
28113                 elif test -f /usr/local/include/mysql/mysql.h; then
28114                         MYSQL_INCDIR=/usr/local/include/mysql
28115                         if test -d /usr/local/lib64/mysql; then
28116                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28117                         else
28118                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28119                         fi
28120                         MYSQL_BINDIR=/usr/local/bin
28121                 elif test -f /usr/local/include/mysql.h; then
28122                         MYSQL_INCDIR=/usr/local/include
28123                         if test -d /usr/local/lib64; then
28124                                 MYSQL_LIBDIR=/usr/local/lib64
28125                         else
28126                                 MYSQL_LIBDIR=/usr/local/lib
28127                         fi
28128                         MYSQL_BINDIR=/usr/local/bin
28129                 else
28130                    { echo "$as_me:$LINENO: result: no" >&5
28131 echo "${ECHO_T}no" >&6; }
28132                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28133 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28134    { (exit 1); exit 1; }; }
28135                 fi
28136         else
28137                 if test -f $withval/include/mysql/mysql.h; then
28138                         MYSQL_INCDIR=$withval/include/mysql
28139                         if test -d $withval/lib64/mysql; then
28140                                 MYSQL_LIBDIR=$withval/lib64/mysql
28141                         else
28142                                 MYSQL_LIBDIR=$withval/lib/mysql
28143                         fi
28144                         MYSQL_BINDIR=$withval/bin
28145                 elif test -f $withval/include/mysql.h; then
28146                         MYSQL_INCDIR=$withval/include
28147                         if test -d $withval/lib64; then
28148                                 MYSQL_LIBDIR=$withval/lib64
28149                         else
28150                                 MYSQL_LIBDIR=$withval/lib
28151                         fi
28152                         MYSQL_BINDIR=$withval/bin
28153                 else
28154                    { echo "$as_me:$LINENO: result: no" >&5
28155 echo "${ECHO_T}no" >&6; }
28156                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28157 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28158    { (exit 1); exit 1; }; }
28159                 fi
28160         fi
28161     SQL_INCLUDE=-I$MYSQL_INCDIR
28162     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28163     SQL_BINDIR=$MYSQL_BINDIR
28164     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28165
28166     cat >>confdefs.h <<\_ACEOF
28167 #define HAVE_MYSQL 1
28168 _ACEOF
28169
28170     cat >>confdefs.h <<\_ACEOF
28171 #define HAVE_EMBEDDED_MYSQL 1
28172 _ACEOF
28173
28174     { echo "$as_me:$LINENO: result: yes" >&5
28175 echo "${ECHO_T}yes" >&6; }
28176     db_found=yes
28177     support_mysql=yes
28178     db_type=MySQL
28179     DB_TYPE=mysql
28180
28181   else
28182         { echo "$as_me:$LINENO: result: no" >&5
28183 echo "${ECHO_T}no" >&6; }
28184   fi
28185
28186
28187 fi
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198 db_found=no
28199 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28200 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28201
28202 # Check whether --with-sqlite3 was given.
28203 if test "${with_sqlite3+set}" = set; then
28204   withval=$with_sqlite3;
28205   if test "$withval" != "no"; then
28206      if test "$withval" = "yes"; then
28207         if test -f /usr/local/include/sqlite3.h; then
28208            SQLITE_INCDIR=/usr/local/include
28209            if test -d /usr/local/lib64; then
28210               SQLITE_LIBDIR=/usr/local/lib64
28211            else
28212               SQLITE_LIBDIR=/usr/local/lib
28213            fi
28214            SQLITE_BINDIR=/usr/local/bin
28215         elif test -f /usr/include/sqlite3.h; then
28216            SQLITE_INCDIR=/usr/include
28217            if test -d /usr/lib64; then
28218               SQLITE_LIBDIR=/usr/lib64
28219            else
28220               SQLITE_LIBDIR=/usr/lib
28221            fi
28222            SQLITE_BINDIR=/usr/bin
28223         elif test -f $prefix/include/sqlite3.h; then
28224            SQLITE_INCDIR=$prefix/include
28225            if test -d $prefix/lib64; then
28226               SQLITE_LIBDIR=$prefix/lib64
28227            else
28228               SQLITE_LIBDIR=$prefix/lib
28229            fi
28230            SQLITE_BINDIR=$prefix/bin
28231         else
28232            { echo "$as_me:$LINENO: result: no" >&5
28233 echo "${ECHO_T}no" >&6; }
28234            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28235 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28236    { (exit 1); exit 1; }; }
28237         fi
28238      else
28239         if test -f $withval/sqlite3.h; then
28240            SQLITE_INCDIR=$withval
28241            SQLITE_LIBDIR=$withval
28242            SQLITE_BINDIR=$withval
28243         elif test -f $withval/include/sqlite3.h; then
28244            SQLITE_INCDIR=$withval/include
28245            if test -d $withval/lib64; then
28246               SQLITE_LIBDIR=$withval/lib64
28247            else
28248               SQLITE_LIBDIR=$withval/lib
28249            fi
28250            SQLITE_BINDIR=$withval/bin
28251         else
28252            { echo "$as_me:$LINENO: result: no" >&5
28253 echo "${ECHO_T}no" >&6; }
28254            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28255 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28256    { (exit 1); exit 1; }; }
28257         fi
28258      fi
28259      SQL_INCLUDE=-I$SQLITE_INCDIR
28260      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28261      SQL_BINDIR=$SQLITE_BINDIR
28262      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28263
28264      cat >>confdefs.h <<\_ACEOF
28265 #define HAVE_SQLITE3 1
28266 _ACEOF
28267
28268      { echo "$as_me:$LINENO: result: yes" >&5
28269 echo "${ECHO_T}yes" >&6; }
28270      db_found=yes
28271      support_sqlite3=yes
28272      db_type=SQLite3
28273      DB_TYPE=sqlite3
28274
28275   else
28276      { echo "$as_me:$LINENO: result: no" >&5
28277 echo "${ECHO_T}no" >&6; }
28278   fi
28279
28280 else
28281
28282   { echo "$as_me:$LINENO: result: no" >&5
28283 echo "${ECHO_T}no" >&6; }
28284
28285 fi
28286
28287
28288
28289
28290
28291
28292
28293
28294 db_found=no
28295 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28296 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28297
28298 # Check whether --with-sqlite was given.
28299 if test "${with_sqlite+set}" = set; then
28300   withval=$with_sqlite;
28301   if test "$withval" != "no"; then
28302      if test "$withval" = "yes"; then
28303         if test -f /usr/local/include/sqlite.h; then
28304            SQLITE_INCDIR=/usr/local/include
28305            if test -d /usr/local/lib64; then
28306               SQLITE_LIBDIR=/usr/local/lib64
28307            else
28308               SQLITE_LIBDIR=/usr/local/lib
28309            fi
28310            SQLITE_BINDIR=/usr/local/bin
28311         elif test -f /usr/include/sqlite.h; then
28312            SQLITE_INCDIR=/usr/include
28313            if test -d /usr/lib64; then
28314               SQLITE_LIBDIR=/usr/lib64
28315            else
28316               SQLITE_LIBDIR=/usr/lib
28317            fi
28318            SQLITE_BINDIR=/usr/bin
28319         elif test -f $prefix/include/sqlite.h; then
28320            SQLITE_INCDIR=$prefix/include
28321            if test -d $prefix/lib64; then
28322               SQLITE_LIBDIR=$prefix/lib64
28323            else
28324               SQLITE_LIBDIR=$prefix/lib
28325            fi
28326            SQLITE_BINDIR=$prefix/bin
28327         else
28328            { echo "$as_me:$LINENO: result: no" >&5
28329 echo "${ECHO_T}no" >&6; }
28330            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28331 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28332    { (exit 1); exit 1; }; }
28333         fi
28334      else
28335         if test -f $withval/sqlite.h; then
28336            SQLITE_INCDIR=$withval
28337            SQLITE_LIBDIR=$withval
28338            SQLITE_BINDIR=$withval
28339         elif test -f $withval/include/sqlite.h; then
28340            SQLITE_INCDIR=$withval/include
28341            if test -d $withval/lib64; then
28342               SQLITE_LIBDIR=$withval/lib64
28343            else
28344               SQLITE_LIBDIR=$withval/lib
28345            fi
28346            SQLITE_BINDIR=$withval/bin
28347         else
28348            { echo "$as_me:$LINENO: result: no" >&5
28349 echo "${ECHO_T}no" >&6; }
28350            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28351 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28352    { (exit 1); exit 1; }; }
28353         fi
28354      fi
28355      SQL_INCLUDE=-I$SQLITE_INCDIR
28356      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28357      SQL_BINDIR=$SQLITE_BINDIR
28358      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28359
28360      cat >>confdefs.h <<\_ACEOF
28361 #define HAVE_SQLITE 1
28362 _ACEOF
28363
28364      { echo "$as_me:$LINENO: result: yes" >&5
28365 echo "${ECHO_T}yes" >&6; }
28366      db_found=yes
28367      support_sqlite=yes
28368      db_type=SQLite
28369      DB_TYPE=sqlite
28370
28371   else
28372      { echo "$as_me:$LINENO: result: no" >&5
28373 echo "${ECHO_T}no" >&6; }
28374   fi
28375
28376 else
28377
28378   { echo "$as_me:$LINENO: result: no" >&5
28379 echo "${ECHO_T}no" >&6; }
28380
28381 fi
28382
28383
28384
28385
28386
28387
28388
28389
28390 db_found=no
28391 { echo "$as_me:$LINENO: checking for DBI support" >&5
28392 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28393
28394 # Check whether --with-dbi was given.
28395 if test "${with_dbi+set}" = set; then
28396   withval=$with_dbi;
28397   if test "$withval" != "no"; then
28398      if test "$withval" = "yes"; then
28399         if test -f /usr/local/include/dbi/dbi.h; then
28400            DBI_INCDIR=/usr/local/dbi/include
28401            if test -d /usr/local/lib64; then
28402               DBI_LIBDIR=/usr/local/lib64
28403            else
28404               DBI_LIBDIR=/usr/local/lib
28405            fi
28406            DBI_BINDIR=/usr/local/bin
28407         elif test -f /usr/include/dbi/dbi.h; then
28408            DBI_INCDIR=/usr/include
28409            if test -d /usr/lib64; then
28410               DBI_LIBDIR=/usr/lib64
28411            else
28412               DBI_LIBDIR=/usr/lib
28413            fi
28414            DBI_BINDIR=/usr/bin
28415         elif test -f $prefix/include/dbi/dbi.h; then
28416            DBI_INCDIR=$prefix/include
28417            if test -d $prefix/lib64; then
28418               DBI_LIBDIR=$prefix/lib64
28419            else
28420               DBI_LIBDIR=$prefix/lib
28421            fi
28422            DBI_BINDIR=$prefix/bin
28423         else
28424            { echo "$as_me:$LINENO: result: no" >&5
28425 echo "${ECHO_T}no" >&6; }
28426            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28427 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28428    { (exit 1); exit 1; }; }
28429         fi
28430         if test -d /usr/local/lib/dbd; then
28431            DRIVERDIR=/usr/local/lib/dbd
28432            if test -d /usr/local/lib64/dbd; then
28433               DRIVERDIR=/usr/local/lib64/dbd
28434            else
28435               DRIVERDIR=/usr/local/lib/dbd
28436            fi
28437         elif test -d /usr/lib/dbd; then
28438            DRIVERDIR=/usr/lib/dbd
28439            if test -d /usr/lib64/dbd; then
28440               DRIVERDIR=/usr/lib64/dbd
28441            else
28442               DRIVERDIR=/usr/lib/dbd
28443            fi
28444         elif test -d $prefix/lib/dbd; then
28445            if test -d $prefix/lib64/dbd; then
28446               DRIVERDIR=$prefix/lib64/dbd
28447            else
28448               DRIVERDIR=$prefix/lib/dbd
28449            fi
28450         else
28451            { echo "$as_me:$LINENO: result: no" >&5
28452 echo "${ECHO_T}no" >&6; }
28453            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28454 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28455    { (exit 1); exit 1; }; }
28456         fi
28457      else
28458         if test -f $withval/dbi.h; then
28459            DBI_INCDIR=$withval
28460            DBI_LIBDIR=$withval
28461            DBI_BINDIR=$withval
28462         elif test -f $withval/include/dbi/dbi.h; then
28463            DBI_INCDIR=$withval/include
28464            if test -d $withval/lib64; then
28465               DBI_LIBDIR=$withval/lib64
28466            else
28467               DBI_LIBDIR=$withval/lib
28468            fi
28469            DBI_BINDIR=$withval/bin
28470         else
28471            { echo "$as_me:$LINENO: result: no" >&5
28472 echo "${ECHO_T}no" >&6; }
28473            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28474 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28475    { (exit 1); exit 1; }; }
28476         fi
28477         if test -d $withval/dbd; then
28478            DRIVERDIR=$withval/dbd
28479         elif test -d $withval/lib/; then
28480            if test -d $withval/lib64/dbd; then
28481               DRIVERDIR=$withval/lib64/dbd
28482            else
28483               DRIVERDIR=$withval/lib/dbd
28484            fi
28485         else
28486            { echo "$as_me:$LINENO: result: no" >&5
28487 echo "${ECHO_T}no" >&6; }
28488            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28489 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28490    { (exit 1); exit 1; }; }
28491         fi
28492      fi
28493      SQL_INCLUDE=-I$DBI_INCDIR
28494      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28495      SQL_BINDIR=$DBI_BINDIR
28496      SQL_LIB=$DBI_LIBDIR/libdbi.a
28497      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28498
28499
28500 cat >>confdefs.h <<\_ACEOF
28501 #define HAVE_DBI 1
28502 _ACEOF
28503
28504      { echo "$as_me:$LINENO: result: yes" >&5
28505 echo "${ECHO_T}yes" >&6; }
28506      db_found=yes
28507      support_dbi=yes
28508      db_type=DBI
28509      DB_TYPE=dbi
28510      uncomment_dbi=" "
28511
28512   else
28513      { echo "$as_me:$LINENO: result: no" >&5
28514 echo "${ECHO_T}no" >&6; }
28515   fi
28516
28517 else
28518
28519   { echo "$as_me:$LINENO: result: no" >&5
28520 echo "${ECHO_T}no" >&6; }
28521
28522 fi
28523
28524
28525
28526
28527
28528
28529
28530
28531
28532
28533 db_found=no
28534 db_prog=no
28535 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28536 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28537
28538 # Check whether --with-dbi-driver was given.
28539 if test "${with_dbi_driver+set}" = set; then
28540   withval=$with_dbi_driver;
28541   if test "$withval" != "no"; then
28542      case $withval in
28543         "mysql")
28544            db_prog="mysql"
28545            if test -f /usr/local/mysql/bin/mysql; then
28546               SQL_BINDIR=/usr/local/mysql/bin
28547               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28548                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28549                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28550               else
28551                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28552               fi
28553            elif test -f /usr/bin/mysql; then
28554               SQL_BINDIR=/usr/bin
28555               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28556                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28557                   SQL_LIBDIR=/usr/lib64/mysql
28558               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28559                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28560                   SQL_LIBDIR=/usr/lib/mysql
28561               else
28562                   SQL_LIBDIR=/usr/lib
28563               fi
28564            elif test -f /usr/local/bin/mysql; then
28565               SQL_BINDIR=/usr/local/bin
28566               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28567                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28568                   SQL_LIBDIR=/usr/local/lib64/mysql
28569               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28570                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28571                   SQL_LIBDIR=/usr/local/lib/mysql
28572               else
28573                   SQL_LIBDIR=/usr/local/lib
28574               fi
28575            elif test -f $withval/bin/mysql; then
28576               SQL_BINDIR=$withval/bin
28577               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28578                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28579                   SQL_LIBDIR=$withval/lib64/mysql
28580               elif test -f $withval/lib64/libmysqlclient_r.a \
28581                   -o -f $withval/lib64/libmysqlclient_r.so; then
28582                   SQL_LIBDIR=$withval/lib64
28583               elif test -f $withval/lib/libmysqlclient_r.a \
28584                   -o -f $withval/lib/libmysqlclient_r.so; then
28585                   SQL_LIBDIR=$withval/lib/
28586               else
28587                   SQL_LIBDIR=$withval/lib/mysql
28588               fi
28589            else
28590               { echo "$as_me:$LINENO: result: no" >&5
28591 echo "${ECHO_T}no" >&6; }
28592               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28593 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28594    { (exit 1); exit 1; }; }
28595            fi
28596            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28597         ;;
28598         "postgresql")
28599            db_prog="postgresql"
28600            PG_CONFIG=`which pg_config`
28601            if test -n "$PG_CONFIG"; then
28602               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28603               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28604            elif test -f /usr/local/bin/psql; then
28605               SQL_BINDIR=/usr/local/bin
28606               if test -d /usr/local/lib64; then
28607                  SQL_LIBDIR=/usr/local/lib64
28608               else
28609                  SQL_LIBDIR=/usr/local/lib
28610               fi
28611            elif test -f /usr/bin/psql; then
28612               SQL_BINDIR=/usr/local/bin
28613               if test -d /usr/lib64/postgresql; then
28614                  SQL_LIBDIR=/usr/lib64/postgresql
28615               elif test -d /usr/lib/postgresql; then
28616                  SQL_LIBDIR=/usr/lib/postgresql
28617               elif test -d /usr/lib64; then
28618                  SQL_LIBDIR=/usr/lib64
28619               else
28620                  SQL_LIBDIR=/usr/lib
28621               fi
28622            elif test -f $withval/bin/psql; then
28623               SQL_BINDIR=$withval/bin
28624               if test -d $withval/lib64; then
28625                  SQL_LIBDIR=$withval/lib64
28626               else
28627                  SQL_LIBDIR=$withval/lib
28628               fi
28629            else
28630               { echo "$as_me:$LINENO: result: no" >&5
28631 echo "${ECHO_T}no" >&6; }
28632               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28633 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28634    { (exit 1); exit 1; }; }
28635            fi
28636            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28637         ;;
28638         "sqlite")
28639            db_prog="sqlite"
28640            if test -f /usr/local/bin/sqlite; then
28641               SQL_BINDIR=/usr/local/bin
28642               if test -d /usr/local/lib64; then
28643                  SQL_LIBDIR=/usr/local/lib64
28644               else
28645                  SQL_LIBDIR=/usr/local/lib
28646               fi
28647            elif test -f /usr/bin/sqlite; then
28648               SQL_BINDIR=/usr/bin
28649               if test -d /usr/lib64; then
28650                  SQL_LIBDIR=/usr/lib64
28651               else
28652                  SQL_LIBDIR=/usr/lib
28653               fi
28654            elif test -f $withval/bin/sqlite; then
28655               SQL_BINDIR=$withval/bin
28656               if test -d $withval/lib64; then
28657                  SQL_LIBDIR=$withval/lib64
28658               else
28659                  SQL_LIBDIR=$withval/lib
28660               fi
28661            else
28662               { echo "$as_me:$LINENO: result: no" >&5
28663 echo "${ECHO_T}no" >&6; }
28664               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28665 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28666    { (exit 1); exit 1; }; }
28667            fi
28668            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28669         ;;
28670         "sqlite3")
28671            db_prog="sqlite3"
28672            if test -f /usr/local/bin/sqlite3; then
28673               SQL_BINDIR=/usr/local/bin
28674               if test -d /usr/local/lib64; then
28675                  SQL_LIBDIR=/usr/local/lib64
28676               else
28677                  SQL_LIBDIR=/usr/local/lib
28678               fi
28679            elif test -f /usr/bin/sqlite3; then
28680               SQL_BINDIR=/usr/bin
28681               if test -d /usr/lib64; then
28682                  SQL_LIBDIR=/usr/lib64
28683               else
28684                  SQL_LIBDIR=/usr/lib
28685               fi
28686            elif test -f $withval/bin/sqlite3; then
28687               SQL_BINDIR=$withval/bin
28688               if test -d $withval/lib64; then
28689                  SQL_LIBDIR=$withval/lib64
28690               else
28691                  SQL_LIBDIR=$withval/lib
28692               fi
28693            else
28694               { echo "$as_me:$LINENO: result: no" >&5
28695 echo "${ECHO_T}no" >&6; }
28696               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28697 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28698    { (exit 1); exit 1; }; }
28699            fi
28700            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28701         ;;
28702         *)
28703            { echo "$as_me:$LINENO: result: no" >&5
28704 echo "${ECHO_T}no" >&6; }
28705            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28706 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28707    { (exit 1); exit 1; }; }
28708         ;;
28709      esac
28710
28711      { echo "$as_me:$LINENO: result: yes" >&5
28712 echo "${ECHO_T}yes" >&6; }
28713      DB_PROG=$db_prog
28714   else
28715      { echo "$as_me:$LINENO: result: no" >&5
28716 echo "${ECHO_T}no" >&6; }
28717   fi
28718
28719 else
28720
28721   { echo "$as_me:$LINENO: result: no" >&5
28722 echo "${ECHO_T}no" >&6; }
28723
28724 fi
28725
28726
28727
28728
28729
28730
28731
28732
28733
28734
28735 support_batch_insert=no
28736 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28737 pkg=$?
28738 if test $pkg = 0; then
28739    support_batch_insert=yes
28740    # Check whether --enable-batch-insert was given.
28741 if test "${enable_batch_insert+set}" = set; then
28742   enableval=$enable_batch_insert;
28743           if test x$enableval = xno; then
28744              support_batch_insert=no
28745           else
28746              support_batch_insert=yes
28747           fi
28748
28749
28750 fi
28751
28752 fi
28753
28754 if test x$DB_TYPE = xpostgresql; then
28755    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28756    pkg=$?
28757    if test $pkg != 0; then
28758       support_batch_insert=no
28759    fi
28760 fi
28761
28762 if test x$DB_TYPE = xdbi; then
28763    DB_TYPE=$DB_PROG
28764    db_type=$DB_PROG
28765    pkg=1
28766       if test $DB_PROG = postgresql; then
28767       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28768       pkg=$?
28769    fi
28770
28771    if test $DB_PROG = mysql; then
28772       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28773       pkg=$?
28774    fi
28775
28776    if test $DB_PROG = sqlite3; then
28777       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28778       pkg=$?
28779    fi
28780
28781    if test $pkg = 0; then
28782       # Check whether --enable-batch-insert was given.
28783 if test "${enable_batch_insert+set}" = set; then
28784   enableval=$enable_batch_insert;
28785              if test x$enableval = xno; then
28786                 support_batch_insert=no
28787              else
28788                 support_batch_insert=yes
28789              fi
28790
28791
28792 fi
28793
28794    fi
28795 else
28796       uncomment_dbi="#"
28797 fi
28798
28799
28800
28801 if test $support_batch_insert = yes ; then
28802
28803 cat >>confdefs.h <<\_ACEOF
28804 #define HAVE_BATCH_FILE_INSERT 1
28805 _ACEOF
28806
28807 fi
28808
28809 cat >>confdefs.h <<\_ACEOF
28810 #define PROTOTYPES 1
28811 _ACEOF
28812
28813
28814 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28815    if test -z "$CCOPTS"; then
28816       CCOPTS='-g -O2 -Wall'
28817    fi
28818    CFLAGS="$CCOPTS"
28819 fi
28820
28821
28822
28823 largefile_support="no"
28824
28825    # Check whether --enable-largefile was given.
28826 if test "${enable_largefile+set}" = set; then
28827   enableval=$enable_largefile;
28828 fi
28829
28830    if test "$enable_largefile" != no; then
28831      if test -n "$ac_tool_prefix"; then
28832   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28833 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28836 if test "${ac_cv_prog_GETCONF+set}" = set; then
28837   echo $ECHO_N "(cached) $ECHO_C" >&6
28838 else
28839   if test -n "$GETCONF"; then
28840   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28841 else
28842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28843 for as_dir in $PATH
28844 do
28845   IFS=$as_save_IFS
28846   test -z "$as_dir" && as_dir=.
28847   for ac_exec_ext in '' $ac_executable_extensions; do
28848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28849     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28851     break 2
28852   fi
28853 done
28854 done
28855 IFS=$as_save_IFS
28856
28857 fi
28858 fi
28859 GETCONF=$ac_cv_prog_GETCONF
28860 if test -n "$GETCONF"; then
28861   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28862 echo "${ECHO_T}$GETCONF" >&6; }
28863 else
28864   { echo "$as_me:$LINENO: result: no" >&5
28865 echo "${ECHO_T}no" >&6; }
28866 fi
28867
28868
28869 fi
28870 if test -z "$ac_cv_prog_GETCONF"; then
28871   ac_ct_GETCONF=$GETCONF
28872   # Extract the first word of "getconf", so it can be a program name with args.
28873 set dummy getconf; ac_word=$2
28874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28876 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28877   echo $ECHO_N "(cached) $ECHO_C" >&6
28878 else
28879   if test -n "$ac_ct_GETCONF"; then
28880   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28881 else
28882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28883 for as_dir in $PATH
28884 do
28885   IFS=$as_save_IFS
28886   test -z "$as_dir" && as_dir=.
28887   for ac_exec_ext in '' $ac_executable_extensions; do
28888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28889     ac_cv_prog_ac_ct_GETCONF="getconf"
28890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28891     break 2
28892   fi
28893 done
28894 done
28895 IFS=$as_save_IFS
28896
28897 fi
28898 fi
28899 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28900 if test -n "$ac_ct_GETCONF"; then
28901   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28902 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28903 else
28904   { echo "$as_me:$LINENO: result: no" >&5
28905 echo "${ECHO_T}no" >&6; }
28906 fi
28907
28908   if test "x$ac_ct_GETCONF" = x; then
28909     GETCONF=""
28910   else
28911     case $cross_compiling:$ac_tool_warned in
28912 yes:)
28913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28914 whose name does not start with the host triplet.  If you think this
28915 configuration is useful to you, please write to autoconf@gnu.org." >&5
28916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28917 whose name does not start with the host triplet.  If you think this
28918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28919 ac_tool_warned=yes ;;
28920 esac
28921     GETCONF=$ac_ct_GETCONF
28922   fi
28923 else
28924   GETCONF="$ac_cv_prog_GETCONF"
28925 fi
28926
28927      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28928 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28929 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28930   echo $ECHO_N "(cached) $ECHO_C" >&6
28931 else
28932   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28933         ac_cv_sys_largefile_CFLAGS=no
28934         case "$host_os" in
28935            # IRIX 6.2 and later require cc -n32.
28936            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28937              if test "$GCC" != yes; then
28938                ac_cv_sys_largefile_CFLAGS=-n32
28939              fi
28940              ac_save_CC="$CC"
28941              CC="$CC $ac_cv_sys_largefile_CFLAGS"
28942              cat >conftest.$ac_ext <<_ACEOF
28943 /* confdefs.h.  */
28944 _ACEOF
28945 cat confdefs.h >>conftest.$ac_ext
28946 cat >>conftest.$ac_ext <<_ACEOF
28947 /* end confdefs.h.  */
28948
28949 int
28950 main ()
28951 {
28952
28953   ;
28954   return 0;
28955 }
28956 _ACEOF
28957 rm -f conftest.$ac_objext conftest$ac_exeext
28958 if { (ac_try="$ac_link"
28959 case "(($ac_try" in
28960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961   *) ac_try_echo=$ac_try;;
28962 esac
28963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964   (eval "$ac_link") 2>conftest.er1
28965   ac_status=$?
28966   grep -v '^ *+' conftest.er1 >conftest.err
28967   rm -f conftest.er1
28968   cat conftest.err >&5
28969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970   (exit $ac_status); } && {
28971          test -z "$ac_c_werror_flag" ||
28972          test ! -s conftest.err
28973        } && test -s conftest$ac_exeext &&
28974        $as_test_x conftest$ac_exeext; then
28975   :
28976 else
28977   echo "$as_me: failed program was:" >&5
28978 sed 's/^/| /' conftest.$ac_ext >&5
28979
28980         ac_cv_sys_largefile_CFLAGS=no
28981 fi
28982
28983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28984       conftest$ac_exeext conftest.$ac_ext
28985              CC="$ac_save_CC"
28986            esac
28987       }
28988 fi
28989 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28990 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28991      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28992 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28993 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28994   echo $ECHO_N "(cached) $ECHO_C" >&6
28995 else
28996   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28997         ac_cv_sys_largefile_LDFLAGS=no
28998
28999       }
29000 fi
29001 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29002 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29003      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29004 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29005 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29006   echo $ECHO_N "(cached) $ECHO_C" >&6
29007 else
29008   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29009         ac_cv_sys_largefile_LIBS=no
29010
29011       }
29012 fi
29013 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29014 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29015
29016      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29017        case "$ac_flag" in
29018        no) ;;
29019        -D_FILE_OFFSET_BITS=*) ;;
29020        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29021        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29022        -D?* | -I?*)
29023          case "$ac_flag" in
29024    no) ;;
29025    ?*)
29026      case "$CPPFLAGS" in
29027      '') CPPFLAGS="$ac_flag" ;;
29028      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29029      esac ;;
29030    esac ;;
29031        *)
29032          case "$ac_flag" in
29033    no) ;;
29034    ?*)
29035      case "$CFLAGS" in
29036      '') CFLAGS="$ac_flag" ;;
29037      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29038      esac ;;
29039    esac ;;
29040        esac
29041      done
29042      case "$ac_cv_sys_largefile_LDFLAGS" in
29043    no) ;;
29044    ?*)
29045      case "$LDFLAGS" in
29046      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29047      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29048      esac ;;
29049    esac
29050      case "$ac_cv_sys_largefile_LIBS" in
29051    no) ;;
29052    ?*)
29053      case "$LIBS" in
29054      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29055      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29056      esac ;;
29057    esac
29058      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29059 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29060 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29061   echo $ECHO_N "(cached) $ECHO_C" >&6
29062 else
29063   ac_cv_sys_file_offset_bits=no
29064       ac_cv_sys_file_offset_bits=64
29065       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29066         case "$ac_flag" in
29067         -D_FILE_OFFSET_BITS)
29068           ac_cv_sys_file_offset_bits=1 ;;
29069         -D_FILE_OFFSET_BITS=*)
29070           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29071         esac
29072       done
29073
29074 fi
29075 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29076 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29077    if test "$ac_cv_sys_file_offset_bits" != no; then
29078
29079 cat >>confdefs.h <<_ACEOF
29080 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29081 _ACEOF
29082
29083    fi
29084      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29085 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29086 if test "${ac_cv_sys_largefile_source+set}" = set; then
29087   echo $ECHO_N "(cached) $ECHO_C" >&6
29088 else
29089   ac_cv_sys_largefile_source=no
29090       ac_cv_sys_largefile_source=1
29091       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29092         case "$ac_flag" in
29093         -D_LARGEFILE_SOURCE)
29094           ac_cv_sys_largefile_source=1 ;;
29095         -D_LARGEFILE_SOURCE=*)
29096           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29097         esac
29098       done
29099
29100 fi
29101 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29102 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29103    if test "$ac_cv_sys_largefile_source" != no; then
29104
29105 cat >>confdefs.h <<_ACEOF
29106 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29107 _ACEOF
29108
29109    fi
29110      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29111 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29112 if test "${ac_cv_sys_large_files+set}" = set; then
29113   echo $ECHO_N "(cached) $ECHO_C" >&6
29114 else
29115   ac_cv_sys_large_files=no
29116       ac_cv_sys_large_files=1
29117       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29118         case "$ac_flag" in
29119         -D_LARGE_FILES)
29120           ac_cv_sys_large_files=1 ;;
29121         -D_LARGE_FILES=*)
29122           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29123         esac
29124       done
29125
29126 fi
29127 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29128 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29129    if test "$ac_cv_sys_large_files" != no; then
29130
29131 cat >>confdefs.h <<_ACEOF
29132 #define _LARGE_FILES $ac_cv_sys_large_files
29133 _ACEOF
29134
29135    fi
29136    fi
29137
29138
29139 { echo "$as_me:$LINENO: checking for X" >&5
29140 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29141
29142
29143 # Check whether --with-x was given.
29144 if test "${with_x+set}" = set; then
29145   withval=$with_x;
29146 fi
29147
29148 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29149 if test "x$with_x" = xno; then
29150   # The user explicitly disabled X.
29151   have_x=disabled
29152 else
29153   case $x_includes,$x_libraries in #(
29154     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29155 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29156    { (exit 1); exit 1; }; };; #(
29157     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29158   echo $ECHO_N "(cached) $ECHO_C" >&6
29159 else
29160   # One or both of the vars are not set, and there is no cached value.
29161 ac_x_includes=no ac_x_libraries=no
29162 rm -f -r conftest.dir
29163 if mkdir conftest.dir; then
29164   cd conftest.dir
29165   cat >Imakefile <<'_ACEOF'
29166 incroot:
29167         @echo incroot='${INCROOT}'
29168 usrlibdir:
29169         @echo usrlibdir='${USRLIBDIR}'
29170 libdir:
29171         @echo libdir='${LIBDIR}'
29172 _ACEOF
29173   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29174     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29175     for ac_var in incroot usrlibdir libdir; do
29176       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29177     done
29178     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29179     for ac_extension in a so sl; do
29180       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29181          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29182         ac_im_usrlibdir=$ac_im_libdir; break
29183       fi
29184     done
29185     # Screen out bogus values from the imake configuration.  They are
29186     # bogus both because they are the default anyway, and because
29187     # using them would break gcc on systems where it needs fixed includes.
29188     case $ac_im_incroot in
29189         /usr/include) ac_x_includes= ;;
29190         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29191     esac
29192     case $ac_im_usrlibdir in
29193         /usr/lib | /lib) ;;
29194         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29195     esac
29196   fi
29197   cd ..
29198   rm -f -r conftest.dir
29199 fi
29200
29201 # Standard set of common directories for X headers.
29202 # Check X11 before X11Rn because it is often a symlink to the current release.
29203 ac_x_header_dirs='
29204 /usr/X11/include
29205 /usr/X11R6/include
29206 /usr/X11R5/include
29207 /usr/X11R4/include
29208
29209 /usr/include/X11
29210 /usr/include/X11R6
29211 /usr/include/X11R5
29212 /usr/include/X11R4
29213
29214 /usr/local/X11/include
29215 /usr/local/X11R6/include
29216 /usr/local/X11R5/include
29217 /usr/local/X11R4/include
29218
29219 /usr/local/include/X11
29220 /usr/local/include/X11R6
29221 /usr/local/include/X11R5
29222 /usr/local/include/X11R4
29223
29224 /usr/X386/include
29225 /usr/x386/include
29226 /usr/XFree86/include/X11
29227
29228 /usr/include
29229 /usr/local/include
29230 /usr/unsupported/include
29231 /usr/athena/include
29232 /usr/local/x11r5/include
29233 /usr/lpp/Xamples/include
29234
29235 /usr/openwin/include
29236 /usr/openwin/share/include'
29237
29238 if test "$ac_x_includes" = no; then
29239   # Guess where to find include files, by looking for Xlib.h.
29240   # First, try using that file with no special directory specified.
29241   cat >conftest.$ac_ext <<_ACEOF
29242 /* confdefs.h.  */
29243 _ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h.  */
29247 #include <X11/Xlib.h>
29248 _ACEOF
29249 if { (ac_try="$ac_cpp conftest.$ac_ext"
29250 case "(($ac_try" in
29251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29252   *) ac_try_echo=$ac_try;;
29253 esac
29254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29256   ac_status=$?
29257   grep -v '^ *+' conftest.er1 >conftest.err
29258   rm -f conftest.er1
29259   cat conftest.err >&5
29260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261   (exit $ac_status); } >/dev/null && {
29262          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29263          test ! -s conftest.err
29264        }; then
29265   # We can compile using X headers with no special include directory.
29266 ac_x_includes=
29267 else
29268   echo "$as_me: failed program was:" >&5
29269 sed 's/^/| /' conftest.$ac_ext >&5
29270
29271   for ac_dir in $ac_x_header_dirs; do
29272   if test -r "$ac_dir/X11/Xlib.h"; then
29273     ac_x_includes=$ac_dir
29274     break
29275   fi
29276 done
29277 fi
29278
29279 rm -f conftest.err conftest.$ac_ext
29280 fi # $ac_x_includes = no
29281
29282 if test "$ac_x_libraries" = no; then
29283   # Check for the libraries.
29284   # See if we find them without any special options.
29285   # Don't add to $LIBS permanently.
29286   ac_save_LIBS=$LIBS
29287   LIBS="-lX11 $LIBS"
29288   cat >conftest.$ac_ext <<_ACEOF
29289 /* confdefs.h.  */
29290 _ACEOF
29291 cat confdefs.h >>conftest.$ac_ext
29292 cat >>conftest.$ac_ext <<_ACEOF
29293 /* end confdefs.h.  */
29294 #include <X11/Xlib.h>
29295 int
29296 main ()
29297 {
29298 XrmInitialize ()
29299   ;
29300   return 0;
29301 }
29302 _ACEOF
29303 rm -f conftest.$ac_objext conftest$ac_exeext
29304 if { (ac_try="$ac_link"
29305 case "(($ac_try" in
29306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29307   *) ac_try_echo=$ac_try;;
29308 esac
29309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29310   (eval "$ac_link") 2>conftest.er1
29311   ac_status=$?
29312   grep -v '^ *+' conftest.er1 >conftest.err
29313   rm -f conftest.er1
29314   cat conftest.err >&5
29315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316   (exit $ac_status); } && {
29317          test -z "$ac_c_werror_flag" ||
29318          test ! -s conftest.err
29319        } && test -s conftest$ac_exeext &&
29320        $as_test_x conftest$ac_exeext; then
29321   LIBS=$ac_save_LIBS
29322 # We can link X programs with no special library path.
29323 ac_x_libraries=
29324 else
29325   echo "$as_me: failed program was:" >&5
29326 sed 's/^/| /' conftest.$ac_ext >&5
29327
29328         LIBS=$ac_save_LIBS
29329 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29330 do
29331   # Don't even attempt the hair of trying to link an X program!
29332   for ac_extension in a so sl; do
29333     if test -r "$ac_dir/libX11.$ac_extension"; then
29334       ac_x_libraries=$ac_dir
29335       break 2
29336     fi
29337   done
29338 done
29339 fi
29340
29341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29342       conftest$ac_exeext conftest.$ac_ext
29343 fi # $ac_x_libraries = no
29344
29345 case $ac_x_includes,$ac_x_libraries in #(
29346   no,* | *,no | *\'*)
29347     # Didn't find X, or a directory has "'" in its name.
29348     ac_cv_have_x="have_x=no";; #(
29349   *)
29350     # Record where we found X for the cache.
29351     ac_cv_have_x="have_x=yes\
29352         ac_x_includes='$ac_x_includes'\
29353         ac_x_libraries='$ac_x_libraries'"
29354 esac
29355 fi
29356 ;; #(
29357     *) have_x=yes;;
29358   esac
29359   eval "$ac_cv_have_x"
29360 fi # $with_x != no
29361
29362 if test "$have_x" != yes; then
29363   { echo "$as_me:$LINENO: result: $have_x" >&5
29364 echo "${ECHO_T}$have_x" >&6; }
29365   no_x=yes
29366 else
29367   # If each of the values was on the command line, it overrides each guess.
29368   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29369   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29370   # Update the cache value to reflect the command line values.
29371   ac_cv_have_x="have_x=yes\
29372         ac_x_includes='$x_includes'\
29373         ac_x_libraries='$x_libraries'"
29374   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29375 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29376 fi
29377
29378 if test "$no_x" = yes; then
29379   # Not all programs may use this symbol, but it does not hurt to define it.
29380
29381 cat >>confdefs.h <<\_ACEOF
29382 #define X_DISPLAY_MISSING 1
29383 _ACEOF
29384
29385   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29386 else
29387   if test -n "$x_includes"; then
29388     X_CFLAGS="$X_CFLAGS -I$x_includes"
29389   fi
29390
29391   # It would also be nice to do this for all -L options, not just this one.
29392   if test -n "$x_libraries"; then
29393     X_LIBS="$X_LIBS -L$x_libraries"
29394     # For Solaris; some versions of Sun CC require a space after -R and
29395     # others require no space.  Words are not sufficient . . . .
29396     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29397 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29398     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29399     ac_xsave_c_werror_flag=$ac_c_werror_flag
29400     ac_c_werror_flag=yes
29401     cat >conftest.$ac_ext <<_ACEOF
29402 /* confdefs.h.  */
29403 _ACEOF
29404 cat confdefs.h >>conftest.$ac_ext
29405 cat >>conftest.$ac_ext <<_ACEOF
29406 /* end confdefs.h.  */
29407
29408 int
29409 main ()
29410 {
29411
29412   ;
29413   return 0;
29414 }
29415 _ACEOF
29416 rm -f conftest.$ac_objext conftest$ac_exeext
29417 if { (ac_try="$ac_link"
29418 case "(($ac_try" in
29419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420   *) ac_try_echo=$ac_try;;
29421 esac
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423   (eval "$ac_link") 2>conftest.er1
29424   ac_status=$?
29425   grep -v '^ *+' conftest.er1 >conftest.err
29426   rm -f conftest.er1
29427   cat conftest.err >&5
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); } && {
29430          test -z "$ac_c_werror_flag" ||
29431          test ! -s conftest.err
29432        } && test -s conftest$ac_exeext &&
29433        $as_test_x conftest$ac_exeext; then
29434   { echo "$as_me:$LINENO: result: no" >&5
29435 echo "${ECHO_T}no" >&6; }
29436        X_LIBS="$X_LIBS -R$x_libraries"
29437 else
29438   echo "$as_me: failed program was:" >&5
29439 sed 's/^/| /' conftest.$ac_ext >&5
29440
29441         LIBS="$ac_xsave_LIBS -R $x_libraries"
29442        cat >conftest.$ac_ext <<_ACEOF
29443 /* confdefs.h.  */
29444 _ACEOF
29445 cat confdefs.h >>conftest.$ac_ext
29446 cat >>conftest.$ac_ext <<_ACEOF
29447 /* end confdefs.h.  */
29448
29449 int
29450 main ()
29451 {
29452
29453   ;
29454   return 0;
29455 }
29456 _ACEOF
29457 rm -f conftest.$ac_objext conftest$ac_exeext
29458 if { (ac_try="$ac_link"
29459 case "(($ac_try" in
29460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29461   *) ac_try_echo=$ac_try;;
29462 esac
29463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29464   (eval "$ac_link") 2>conftest.er1
29465   ac_status=$?
29466   grep -v '^ *+' conftest.er1 >conftest.err
29467   rm -f conftest.er1
29468   cat conftest.err >&5
29469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470   (exit $ac_status); } && {
29471          test -z "$ac_c_werror_flag" ||
29472          test ! -s conftest.err
29473        } && test -s conftest$ac_exeext &&
29474        $as_test_x conftest$ac_exeext; then
29475   { echo "$as_me:$LINENO: result: yes" >&5
29476 echo "${ECHO_T}yes" >&6; }
29477           X_LIBS="$X_LIBS -R $x_libraries"
29478 else
29479   echo "$as_me: failed program was:" >&5
29480 sed 's/^/| /' conftest.$ac_ext >&5
29481
29482         { echo "$as_me:$LINENO: result: neither works" >&5
29483 echo "${ECHO_T}neither works" >&6; }
29484 fi
29485
29486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29487       conftest$ac_exeext conftest.$ac_ext
29488 fi
29489
29490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29491       conftest$ac_exeext conftest.$ac_ext
29492     ac_c_werror_flag=$ac_xsave_c_werror_flag
29493     LIBS=$ac_xsave_LIBS
29494   fi
29495
29496   # Check for system-dependent libraries X programs must link with.
29497   # Do this before checking for the system-independent R6 libraries
29498   # (-lICE), since we may need -lsocket or whatever for X linking.
29499
29500   if test "$ISC" = yes; then
29501     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29502   else
29503     # Martyn Johnson says this is needed for Ultrix, if the X
29504     # libraries were built with DECnet support.  And Karl Berry says
29505     # the Alpha needs dnet_stub (dnet does not exist).
29506     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29507     cat >conftest.$ac_ext <<_ACEOF
29508 /* confdefs.h.  */
29509 _ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h.  */
29513
29514 /* Override any GCC internal prototype to avoid an error.
29515    Use char because int might match the return type of a GCC
29516    builtin and then its argument prototype would still apply.  */
29517 #ifdef __cplusplus
29518 extern "C"
29519 #endif
29520 char XOpenDisplay ();
29521 int
29522 main ()
29523 {
29524 return XOpenDisplay ();
29525   ;
29526   return 0;
29527 }
29528 _ACEOF
29529 rm -f conftest.$ac_objext conftest$ac_exeext
29530 if { (ac_try="$ac_link"
29531 case "(($ac_try" in
29532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533   *) ac_try_echo=$ac_try;;
29534 esac
29535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536   (eval "$ac_link") 2>conftest.er1
29537   ac_status=$?
29538   grep -v '^ *+' conftest.er1 >conftest.err
29539   rm -f conftest.er1
29540   cat conftest.err >&5
29541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542   (exit $ac_status); } && {
29543          test -z "$ac_c_werror_flag" ||
29544          test ! -s conftest.err
29545        } && test -s conftest$ac_exeext &&
29546        $as_test_x conftest$ac_exeext; then
29547   :
29548 else
29549   echo "$as_me: failed program was:" >&5
29550 sed 's/^/| /' conftest.$ac_ext >&5
29551
29552         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29553 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29554 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29555   echo $ECHO_N "(cached) $ECHO_C" >&6
29556 else
29557   ac_check_lib_save_LIBS=$LIBS
29558 LIBS="-ldnet  $LIBS"
29559 cat >conftest.$ac_ext <<_ACEOF
29560 /* confdefs.h.  */
29561 _ACEOF
29562 cat confdefs.h >>conftest.$ac_ext
29563 cat >>conftest.$ac_ext <<_ACEOF
29564 /* end confdefs.h.  */
29565
29566 /* Override any GCC internal prototype to avoid an error.
29567    Use char because int might match the return type of a GCC
29568    builtin and then its argument prototype would still apply.  */
29569 #ifdef __cplusplus
29570 extern "C"
29571 #endif
29572 char dnet_ntoa ();
29573 int
29574 main ()
29575 {
29576 return dnet_ntoa ();
29577   ;
29578   return 0;
29579 }
29580 _ACEOF
29581 rm -f conftest.$ac_objext conftest$ac_exeext
29582 if { (ac_try="$ac_link"
29583 case "(($ac_try" in
29584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29585   *) ac_try_echo=$ac_try;;
29586 esac
29587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29588   (eval "$ac_link") 2>conftest.er1
29589   ac_status=$?
29590   grep -v '^ *+' conftest.er1 >conftest.err
29591   rm -f conftest.er1
29592   cat conftest.err >&5
29593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594   (exit $ac_status); } && {
29595          test -z "$ac_c_werror_flag" ||
29596          test ! -s conftest.err
29597        } && test -s conftest$ac_exeext &&
29598        $as_test_x conftest$ac_exeext; then
29599   ac_cv_lib_dnet_dnet_ntoa=yes
29600 else
29601   echo "$as_me: failed program was:" >&5
29602 sed 's/^/| /' conftest.$ac_ext >&5
29603
29604         ac_cv_lib_dnet_dnet_ntoa=no
29605 fi
29606
29607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29608       conftest$ac_exeext conftest.$ac_ext
29609 LIBS=$ac_check_lib_save_LIBS
29610 fi
29611 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29612 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29613 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29614   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29615 fi
29616
29617     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29618       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29619 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29620 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29621   echo $ECHO_N "(cached) $ECHO_C" >&6
29622 else
29623   ac_check_lib_save_LIBS=$LIBS
29624 LIBS="-ldnet_stub  $LIBS"
29625 cat >conftest.$ac_ext <<_ACEOF
29626 /* confdefs.h.  */
29627 _ACEOF
29628 cat confdefs.h >>conftest.$ac_ext
29629 cat >>conftest.$ac_ext <<_ACEOF
29630 /* end confdefs.h.  */
29631
29632 /* Override any GCC internal prototype to avoid an error.
29633    Use char because int might match the return type of a GCC
29634    builtin and then its argument prototype would still apply.  */
29635 #ifdef __cplusplus
29636 extern "C"
29637 #endif
29638 char dnet_ntoa ();
29639 int
29640 main ()
29641 {
29642 return dnet_ntoa ();
29643   ;
29644   return 0;
29645 }
29646 _ACEOF
29647 rm -f conftest.$ac_objext conftest$ac_exeext
29648 if { (ac_try="$ac_link"
29649 case "(($ac_try" in
29650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651   *) ac_try_echo=$ac_try;;
29652 esac
29653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654   (eval "$ac_link") 2>conftest.er1
29655   ac_status=$?
29656   grep -v '^ *+' conftest.er1 >conftest.err
29657   rm -f conftest.er1
29658   cat conftest.err >&5
29659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660   (exit $ac_status); } && {
29661          test -z "$ac_c_werror_flag" ||
29662          test ! -s conftest.err
29663        } && test -s conftest$ac_exeext &&
29664        $as_test_x conftest$ac_exeext; then
29665   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29666 else
29667   echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29669
29670         ac_cv_lib_dnet_stub_dnet_ntoa=no
29671 fi
29672
29673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29674       conftest$ac_exeext conftest.$ac_ext
29675 LIBS=$ac_check_lib_save_LIBS
29676 fi
29677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29678 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29679 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29680   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29681 fi
29682
29683     fi
29684 fi
29685
29686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29687       conftest$ac_exeext conftest.$ac_ext
29688     LIBS="$ac_xsave_LIBS"
29689
29690     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29691     # to get the SysV transport functions.
29692     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29693     # needs -lnsl.
29694     # The nsl library prevents programs from opening the X display
29695     # on Irix 5.2, according to T.E. Dickey.
29696     # The functions gethostbyname, getservbyname, and inet_addr are
29697     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29698     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29699 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29700 if test "${ac_cv_func_gethostbyname+set}" = set; then
29701   echo $ECHO_N "(cached) $ECHO_C" >&6
29702 else
29703   cat >conftest.$ac_ext <<_ACEOF
29704 /* confdefs.h.  */
29705 _ACEOF
29706 cat confdefs.h >>conftest.$ac_ext
29707 cat >>conftest.$ac_ext <<_ACEOF
29708 /* end confdefs.h.  */
29709 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29711 #define gethostbyname innocuous_gethostbyname
29712
29713 /* System header to define __stub macros and hopefully few prototypes,
29714     which can conflict with char gethostbyname (); below.
29715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29716     <limits.h> exists even on freestanding compilers.  */
29717
29718 #ifdef __STDC__
29719 # include <limits.h>
29720 #else
29721 # include <assert.h>
29722 #endif
29723
29724 #undef gethostbyname
29725
29726 /* Override any GCC internal prototype to avoid an error.
29727    Use char because int might match the return type of a GCC
29728    builtin and then its argument prototype would still apply.  */
29729 #ifdef __cplusplus
29730 extern "C"
29731 #endif
29732 char gethostbyname ();
29733 /* The GNU C library defines this for functions which it implements
29734     to always fail with ENOSYS.  Some functions are actually named
29735     something starting with __ and the normal name is an alias.  */
29736 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29737 choke me
29738 #endif
29739
29740 int
29741 main ()
29742 {
29743 return gethostbyname ();
29744   ;
29745   return 0;
29746 }
29747 _ACEOF
29748 rm -f conftest.$ac_objext conftest$ac_exeext
29749 if { (ac_try="$ac_link"
29750 case "(($ac_try" in
29751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29752   *) ac_try_echo=$ac_try;;
29753 esac
29754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755   (eval "$ac_link") 2>conftest.er1
29756   ac_status=$?
29757   grep -v '^ *+' conftest.er1 >conftest.err
29758   rm -f conftest.er1
29759   cat conftest.err >&5
29760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761   (exit $ac_status); } && {
29762          test -z "$ac_c_werror_flag" ||
29763          test ! -s conftest.err
29764        } && test -s conftest$ac_exeext &&
29765        $as_test_x conftest$ac_exeext; then
29766   ac_cv_func_gethostbyname=yes
29767 else
29768   echo "$as_me: failed program was:" >&5
29769 sed 's/^/| /' conftest.$ac_ext >&5
29770
29771         ac_cv_func_gethostbyname=no
29772 fi
29773
29774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29775       conftest$ac_exeext conftest.$ac_ext
29776 fi
29777 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29778 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29779
29780     if test $ac_cv_func_gethostbyname = no; then
29781       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29782 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29783 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29784   echo $ECHO_N "(cached) $ECHO_C" >&6
29785 else
29786   ac_check_lib_save_LIBS=$LIBS
29787 LIBS="-lnsl  $LIBS"
29788 cat >conftest.$ac_ext <<_ACEOF
29789 /* confdefs.h.  */
29790 _ACEOF
29791 cat confdefs.h >>conftest.$ac_ext
29792 cat >>conftest.$ac_ext <<_ACEOF
29793 /* end confdefs.h.  */
29794
29795 /* Override any GCC internal prototype to avoid an error.
29796    Use char because int might match the return type of a GCC
29797    builtin and then its argument prototype would still apply.  */
29798 #ifdef __cplusplus
29799 extern "C"
29800 #endif
29801 char gethostbyname ();
29802 int
29803 main ()
29804 {
29805 return gethostbyname ();
29806   ;
29807   return 0;
29808 }
29809 _ACEOF
29810 rm -f conftest.$ac_objext conftest$ac_exeext
29811 if { (ac_try="$ac_link"
29812 case "(($ac_try" in
29813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29814   *) ac_try_echo=$ac_try;;
29815 esac
29816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29817   (eval "$ac_link") 2>conftest.er1
29818   ac_status=$?
29819   grep -v '^ *+' conftest.er1 >conftest.err
29820   rm -f conftest.er1
29821   cat conftest.err >&5
29822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29823   (exit $ac_status); } && {
29824          test -z "$ac_c_werror_flag" ||
29825          test ! -s conftest.err
29826        } && test -s conftest$ac_exeext &&
29827        $as_test_x conftest$ac_exeext; then
29828   ac_cv_lib_nsl_gethostbyname=yes
29829 else
29830   echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29832
29833         ac_cv_lib_nsl_gethostbyname=no
29834 fi
29835
29836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29837       conftest$ac_exeext conftest.$ac_ext
29838 LIBS=$ac_check_lib_save_LIBS
29839 fi
29840 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29841 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29842 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29843   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29844 fi
29845
29846       if test $ac_cv_lib_nsl_gethostbyname = no; then
29847         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29848 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29849 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29850   echo $ECHO_N "(cached) $ECHO_C" >&6
29851 else
29852   ac_check_lib_save_LIBS=$LIBS
29853 LIBS="-lbsd  $LIBS"
29854 cat >conftest.$ac_ext <<_ACEOF
29855 /* confdefs.h.  */
29856 _ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h.  */
29860
29861 /* Override any GCC internal prototype to avoid an error.
29862    Use char because int might match the return type of a GCC
29863    builtin and then its argument prototype would still apply.  */
29864 #ifdef __cplusplus
29865 extern "C"
29866 #endif
29867 char gethostbyname ();
29868 int
29869 main ()
29870 {
29871 return gethostbyname ();
29872   ;
29873   return 0;
29874 }
29875 _ACEOF
29876 rm -f conftest.$ac_objext conftest$ac_exeext
29877 if { (ac_try="$ac_link"
29878 case "(($ac_try" in
29879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29880   *) ac_try_echo=$ac_try;;
29881 esac
29882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29883   (eval "$ac_link") 2>conftest.er1
29884   ac_status=$?
29885   grep -v '^ *+' conftest.er1 >conftest.err
29886   rm -f conftest.er1
29887   cat conftest.err >&5
29888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889   (exit $ac_status); } && {
29890          test -z "$ac_c_werror_flag" ||
29891          test ! -s conftest.err
29892        } && test -s conftest$ac_exeext &&
29893        $as_test_x conftest$ac_exeext; then
29894   ac_cv_lib_bsd_gethostbyname=yes
29895 else
29896   echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29898
29899         ac_cv_lib_bsd_gethostbyname=no
29900 fi
29901
29902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29903       conftest$ac_exeext conftest.$ac_ext
29904 LIBS=$ac_check_lib_save_LIBS
29905 fi
29906 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29907 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29908 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29909   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29910 fi
29911
29912       fi
29913     fi
29914
29915     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29916     # socket/setsockopt and other routines are undefined under SCO ODT
29917     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29918     # on later versions), says Simon Leinen: it contains gethostby*
29919     # variants that don't use the name server (or something).  -lsocket
29920     # must be given before -lnsl if both are needed.  We assume that
29921     # if connect needs -lnsl, so does gethostbyname.
29922     { echo "$as_me:$LINENO: checking for connect" >&5
29923 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29924 if test "${ac_cv_func_connect+set}" = set; then
29925   echo $ECHO_N "(cached) $ECHO_C" >&6
29926 else
29927   cat >conftest.$ac_ext <<_ACEOF
29928 /* confdefs.h.  */
29929 _ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h.  */
29933 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29935 #define connect innocuous_connect
29936
29937 /* System header to define __stub macros and hopefully few prototypes,
29938     which can conflict with char connect (); below.
29939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29940     <limits.h> exists even on freestanding compilers.  */
29941
29942 #ifdef __STDC__
29943 # include <limits.h>
29944 #else
29945 # include <assert.h>
29946 #endif
29947
29948 #undef connect
29949
29950 /* Override any GCC internal prototype to avoid an error.
29951    Use char because int might match the return type of a GCC
29952    builtin and then its argument prototype would still apply.  */
29953 #ifdef __cplusplus
29954 extern "C"
29955 #endif
29956 char connect ();
29957 /* The GNU C library defines this for functions which it implements
29958     to always fail with ENOSYS.  Some functions are actually named
29959     something starting with __ and the normal name is an alias.  */
29960 #if defined __stub_connect || defined __stub___connect
29961 choke me
29962 #endif
29963
29964 int
29965 main ()
29966 {
29967 return connect ();
29968   ;
29969   return 0;
29970 }
29971 _ACEOF
29972 rm -f conftest.$ac_objext conftest$ac_exeext
29973 if { (ac_try="$ac_link"
29974 case "(($ac_try" in
29975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976   *) ac_try_echo=$ac_try;;
29977 esac
29978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979   (eval "$ac_link") 2>conftest.er1
29980   ac_status=$?
29981   grep -v '^ *+' conftest.er1 >conftest.err
29982   rm -f conftest.er1
29983   cat conftest.err >&5
29984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985   (exit $ac_status); } && {
29986          test -z "$ac_c_werror_flag" ||
29987          test ! -s conftest.err
29988        } && test -s conftest$ac_exeext &&
29989        $as_test_x conftest$ac_exeext; then
29990   ac_cv_func_connect=yes
29991 else
29992   echo "$as_me: failed program was:" >&5
29993 sed 's/^/| /' conftest.$ac_ext >&5
29994
29995         ac_cv_func_connect=no
29996 fi
29997
29998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29999       conftest$ac_exeext conftest.$ac_ext
30000 fi
30001 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30002 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30003
30004     if test $ac_cv_func_connect = no; then
30005       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30006 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30007 if test "${ac_cv_lib_socket_connect+set}" = set; then
30008   echo $ECHO_N "(cached) $ECHO_C" >&6
30009 else
30010   ac_check_lib_save_LIBS=$LIBS
30011 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30012 cat >conftest.$ac_ext <<_ACEOF
30013 /* confdefs.h.  */
30014 _ACEOF
30015 cat confdefs.h >>conftest.$ac_ext
30016 cat >>conftest.$ac_ext <<_ACEOF
30017 /* end confdefs.h.  */
30018
30019 /* Override any GCC internal prototype to avoid an error.
30020    Use char because int might match the return type of a GCC
30021    builtin and then its argument prototype would still apply.  */
30022 #ifdef __cplusplus
30023 extern "C"
30024 #endif
30025 char connect ();
30026 int
30027 main ()
30028 {
30029 return connect ();
30030   ;
30031   return 0;
30032 }
30033 _ACEOF
30034 rm -f conftest.$ac_objext conftest$ac_exeext
30035 if { (ac_try="$ac_link"
30036 case "(($ac_try" in
30037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30038   *) ac_try_echo=$ac_try;;
30039 esac
30040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30041   (eval "$ac_link") 2>conftest.er1
30042   ac_status=$?
30043   grep -v '^ *+' conftest.er1 >conftest.err
30044   rm -f conftest.er1
30045   cat conftest.err >&5
30046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047   (exit $ac_status); } && {
30048          test -z "$ac_c_werror_flag" ||
30049          test ! -s conftest.err
30050        } && test -s conftest$ac_exeext &&
30051        $as_test_x conftest$ac_exeext; then
30052   ac_cv_lib_socket_connect=yes
30053 else
30054   echo "$as_me: failed program was:" >&5
30055 sed 's/^/| /' conftest.$ac_ext >&5
30056
30057         ac_cv_lib_socket_connect=no
30058 fi
30059
30060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30061       conftest$ac_exeext conftest.$ac_ext
30062 LIBS=$ac_check_lib_save_LIBS
30063 fi
30064 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30065 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30066 if test $ac_cv_lib_socket_connect = yes; then
30067   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30068 fi
30069
30070     fi
30071
30072     # Guillermo Gomez says -lposix is necessary on A/UX.
30073     { echo "$as_me:$LINENO: checking for remove" >&5
30074 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30075 if test "${ac_cv_func_remove+set}" = set; then
30076   echo $ECHO_N "(cached) $ECHO_C" >&6
30077 else
30078   cat >conftest.$ac_ext <<_ACEOF
30079 /* confdefs.h.  */
30080 _ACEOF
30081 cat confdefs.h >>conftest.$ac_ext
30082 cat >>conftest.$ac_ext <<_ACEOF
30083 /* end confdefs.h.  */
30084 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30086 #define remove innocuous_remove
30087
30088 /* System header to define __stub macros and hopefully few prototypes,
30089     which can conflict with char remove (); below.
30090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30091     <limits.h> exists even on freestanding compilers.  */
30092
30093 #ifdef __STDC__
30094 # include <limits.h>
30095 #else
30096 # include <assert.h>
30097 #endif
30098
30099 #undef remove
30100
30101 /* Override any GCC internal prototype to avoid an error.
30102    Use char because int might match the return type of a GCC
30103    builtin and then its argument prototype would still apply.  */
30104 #ifdef __cplusplus
30105 extern "C"
30106 #endif
30107 char remove ();
30108 /* The GNU C library defines this for functions which it implements
30109     to always fail with ENOSYS.  Some functions are actually named
30110     something starting with __ and the normal name is an alias.  */
30111 #if defined __stub_remove || defined __stub___remove
30112 choke me
30113 #endif
30114
30115 int
30116 main ()
30117 {
30118 return remove ();
30119   ;
30120   return 0;
30121 }
30122 _ACEOF
30123 rm -f conftest.$ac_objext conftest$ac_exeext
30124 if { (ac_try="$ac_link"
30125 case "(($ac_try" in
30126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127   *) ac_try_echo=$ac_try;;
30128 esac
30129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130   (eval "$ac_link") 2>conftest.er1
30131   ac_status=$?
30132   grep -v '^ *+' conftest.er1 >conftest.err
30133   rm -f conftest.er1
30134   cat conftest.err >&5
30135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136   (exit $ac_status); } && {
30137          test -z "$ac_c_werror_flag" ||
30138          test ! -s conftest.err
30139        } && test -s conftest$ac_exeext &&
30140        $as_test_x conftest$ac_exeext; then
30141   ac_cv_func_remove=yes
30142 else
30143   echo "$as_me: failed program was:" >&5
30144 sed 's/^/| /' conftest.$ac_ext >&5
30145
30146         ac_cv_func_remove=no
30147 fi
30148
30149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30150       conftest$ac_exeext conftest.$ac_ext
30151 fi
30152 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30153 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30154
30155     if test $ac_cv_func_remove = no; then
30156       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30157 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30158 if test "${ac_cv_lib_posix_remove+set}" = set; then
30159   echo $ECHO_N "(cached) $ECHO_C" >&6
30160 else
30161   ac_check_lib_save_LIBS=$LIBS
30162 LIBS="-lposix  $LIBS"
30163 cat >conftest.$ac_ext <<_ACEOF
30164 /* confdefs.h.  */
30165 _ACEOF
30166 cat confdefs.h >>conftest.$ac_ext
30167 cat >>conftest.$ac_ext <<_ACEOF
30168 /* end confdefs.h.  */
30169
30170 /* Override any GCC internal prototype to avoid an error.
30171    Use char because int might match the return type of a GCC
30172    builtin and then its argument prototype would still apply.  */
30173 #ifdef __cplusplus
30174 extern "C"
30175 #endif
30176 char remove ();
30177 int
30178 main ()
30179 {
30180 return remove ();
30181   ;
30182   return 0;
30183 }
30184 _ACEOF
30185 rm -f conftest.$ac_objext conftest$ac_exeext
30186 if { (ac_try="$ac_link"
30187 case "(($ac_try" in
30188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189   *) ac_try_echo=$ac_try;;
30190 esac
30191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192   (eval "$ac_link") 2>conftest.er1
30193   ac_status=$?
30194   grep -v '^ *+' conftest.er1 >conftest.err
30195   rm -f conftest.er1
30196   cat conftest.err >&5
30197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198   (exit $ac_status); } && {
30199          test -z "$ac_c_werror_flag" ||
30200          test ! -s conftest.err
30201        } && test -s conftest$ac_exeext &&
30202        $as_test_x conftest$ac_exeext; then
30203   ac_cv_lib_posix_remove=yes
30204 else
30205   echo "$as_me: failed program was:" >&5
30206 sed 's/^/| /' conftest.$ac_ext >&5
30207
30208         ac_cv_lib_posix_remove=no
30209 fi
30210
30211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30212       conftest$ac_exeext conftest.$ac_ext
30213 LIBS=$ac_check_lib_save_LIBS
30214 fi
30215 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30216 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30217 if test $ac_cv_lib_posix_remove = yes; then
30218   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30219 fi
30220
30221     fi
30222
30223     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30224     { echo "$as_me:$LINENO: checking for shmat" >&5
30225 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30226 if test "${ac_cv_func_shmat+set}" = set; then
30227   echo $ECHO_N "(cached) $ECHO_C" >&6
30228 else
30229   cat >conftest.$ac_ext <<_ACEOF
30230 /* confdefs.h.  */
30231 _ACEOF
30232 cat confdefs.h >>conftest.$ac_ext
30233 cat >>conftest.$ac_ext <<_ACEOF
30234 /* end confdefs.h.  */
30235 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30237 #define shmat innocuous_shmat
30238
30239 /* System header to define __stub macros and hopefully few prototypes,
30240     which can conflict with char shmat (); below.
30241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30242     <limits.h> exists even on freestanding compilers.  */
30243
30244 #ifdef __STDC__
30245 # include <limits.h>
30246 #else
30247 # include <assert.h>
30248 #endif
30249
30250 #undef shmat
30251
30252 /* Override any GCC internal prototype to avoid an error.
30253    Use char because int might match the return type of a GCC
30254    builtin and then its argument prototype would still apply.  */
30255 #ifdef __cplusplus
30256 extern "C"
30257 #endif
30258 char shmat ();
30259 /* The GNU C library defines this for functions which it implements
30260     to always fail with ENOSYS.  Some functions are actually named
30261     something starting with __ and the normal name is an alias.  */
30262 #if defined __stub_shmat || defined __stub___shmat
30263 choke me
30264 #endif
30265
30266 int
30267 main ()
30268 {
30269 return shmat ();
30270   ;
30271   return 0;
30272 }
30273 _ACEOF
30274 rm -f conftest.$ac_objext conftest$ac_exeext
30275 if { (ac_try="$ac_link"
30276 case "(($ac_try" in
30277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278   *) ac_try_echo=$ac_try;;
30279 esac
30280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281   (eval "$ac_link") 2>conftest.er1
30282   ac_status=$?
30283   grep -v '^ *+' conftest.er1 >conftest.err
30284   rm -f conftest.er1
30285   cat conftest.err >&5
30286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287   (exit $ac_status); } && {
30288          test -z "$ac_c_werror_flag" ||
30289          test ! -s conftest.err
30290        } && test -s conftest$ac_exeext &&
30291        $as_test_x conftest$ac_exeext; then
30292   ac_cv_func_shmat=yes
30293 else
30294   echo "$as_me: failed program was:" >&5
30295 sed 's/^/| /' conftest.$ac_ext >&5
30296
30297         ac_cv_func_shmat=no
30298 fi
30299
30300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30301       conftest$ac_exeext conftest.$ac_ext
30302 fi
30303 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30304 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30305
30306     if test $ac_cv_func_shmat = no; then
30307       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30308 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30309 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30310   echo $ECHO_N "(cached) $ECHO_C" >&6
30311 else
30312   ac_check_lib_save_LIBS=$LIBS
30313 LIBS="-lipc  $LIBS"
30314 cat >conftest.$ac_ext <<_ACEOF
30315 /* confdefs.h.  */
30316 _ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h.  */
30320
30321 /* Override any GCC internal prototype to avoid an error.
30322    Use char because int might match the return type of a GCC
30323    builtin and then its argument prototype would still apply.  */
30324 #ifdef __cplusplus
30325 extern "C"
30326 #endif
30327 char shmat ();
30328 int
30329 main ()
30330 {
30331 return shmat ();
30332   ;
30333   return 0;
30334 }
30335 _ACEOF
30336 rm -f conftest.$ac_objext conftest$ac_exeext
30337 if { (ac_try="$ac_link"
30338 case "(($ac_try" in
30339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30340   *) ac_try_echo=$ac_try;;
30341 esac
30342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30343   (eval "$ac_link") 2>conftest.er1
30344   ac_status=$?
30345   grep -v '^ *+' conftest.er1 >conftest.err
30346   rm -f conftest.er1
30347   cat conftest.err >&5
30348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349   (exit $ac_status); } && {
30350          test -z "$ac_c_werror_flag" ||
30351          test ! -s conftest.err
30352        } && test -s conftest$ac_exeext &&
30353        $as_test_x conftest$ac_exeext; then
30354   ac_cv_lib_ipc_shmat=yes
30355 else
30356   echo "$as_me: failed program was:" >&5
30357 sed 's/^/| /' conftest.$ac_ext >&5
30358
30359         ac_cv_lib_ipc_shmat=no
30360 fi
30361
30362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30363       conftest$ac_exeext conftest.$ac_ext
30364 LIBS=$ac_check_lib_save_LIBS
30365 fi
30366 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30367 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30368 if test $ac_cv_lib_ipc_shmat = yes; then
30369   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30370 fi
30371
30372     fi
30373   fi
30374
30375   # Check for libraries that X11R6 Xt/Xaw programs need.
30376   ac_save_LDFLAGS=$LDFLAGS
30377   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30378   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30379   # check for ICE first), but we must link in the order -lSM -lICE or
30380   # we get undefined symbols.  So assume we have SM if we have ICE.
30381   # These have to be linked with before -lX11, unlike the other
30382   # libraries we check for below, so use a different variable.
30383   # John Interrante, Karl Berry
30384   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30385 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30386 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30387   echo $ECHO_N "(cached) $ECHO_C" >&6
30388 else
30389   ac_check_lib_save_LIBS=$LIBS
30390 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30391 cat >conftest.$ac_ext <<_ACEOF
30392 /* confdefs.h.  */
30393 _ACEOF
30394 cat confdefs.h >>conftest.$ac_ext
30395 cat >>conftest.$ac_ext <<_ACEOF
30396 /* end confdefs.h.  */
30397
30398 /* Override any GCC internal prototype to avoid an error.
30399    Use char because int might match the return type of a GCC
30400    builtin and then its argument prototype would still apply.  */
30401 #ifdef __cplusplus
30402 extern "C"
30403 #endif
30404 char IceConnectionNumber ();
30405 int
30406 main ()
30407 {
30408 return IceConnectionNumber ();
30409   ;
30410   return 0;
30411 }
30412 _ACEOF
30413 rm -f conftest.$ac_objext conftest$ac_exeext
30414 if { (ac_try="$ac_link"
30415 case "(($ac_try" in
30416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30417   *) ac_try_echo=$ac_try;;
30418 esac
30419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30420   (eval "$ac_link") 2>conftest.er1
30421   ac_status=$?
30422   grep -v '^ *+' conftest.er1 >conftest.err
30423   rm -f conftest.er1
30424   cat conftest.err >&5
30425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426   (exit $ac_status); } && {
30427          test -z "$ac_c_werror_flag" ||
30428          test ! -s conftest.err
30429        } && test -s conftest$ac_exeext &&
30430        $as_test_x conftest$ac_exeext; then
30431   ac_cv_lib_ICE_IceConnectionNumber=yes
30432 else
30433   echo "$as_me: failed program was:" >&5
30434 sed 's/^/| /' conftest.$ac_ext >&5
30435
30436         ac_cv_lib_ICE_IceConnectionNumber=no
30437 fi
30438
30439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30440       conftest$ac_exeext conftest.$ac_ext
30441 LIBS=$ac_check_lib_save_LIBS
30442 fi
30443 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30444 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30445 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30446   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30447 fi
30448
30449   LDFLAGS=$ac_save_LDFLAGS
30450
30451 fi
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484 for ac_header in \
30485    assert.h \
30486    fcntl.h \
30487    grp.h \
30488    pwd.h \
30489    libc.h \
30490    limits.h \
30491    stdarg.h \
30492    stdlib.h \
30493    stdint.h \
30494    string.h \
30495    strings.h \
30496    termios.h \
30497    termcap.h \
30498    term.h \
30499    unistd.h \
30500    sys/bitypes.h \
30501    sys/byteorder.h \
30502    sys/ioctl.h \
30503    sys/select.h \
30504    sys/socket.h \
30505    sys/sockio.h \
30506    sys/stat.h \
30507    sys/time.h \
30508    sys/types.h \
30509    arpa/nameser.h \
30510    resolv.h \
30511    mtio.h \
30512    sys/mtio.h \
30513    sys/tape.h \
30514    regex.h \
30515
30516 do
30517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30519   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30522   echo $ECHO_N "(cached) $ECHO_C" >&6
30523 fi
30524 ac_res=`eval echo '${'$as_ac_Header'}'`
30525                { echo "$as_me:$LINENO: result: $ac_res" >&5
30526 echo "${ECHO_T}$ac_res" >&6; }
30527 else
30528   # Is the header compilable?
30529 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30531 cat >conftest.$ac_ext <<_ACEOF
30532 /* confdefs.h.  */
30533 _ACEOF
30534 cat confdefs.h >>conftest.$ac_ext
30535 cat >>conftest.$ac_ext <<_ACEOF
30536 /* end confdefs.h.  */
30537 $ac_includes_default
30538 #include <$ac_header>
30539 _ACEOF
30540 rm -f conftest.$ac_objext
30541 if { (ac_try="$ac_compile"
30542 case "(($ac_try" in
30543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544   *) ac_try_echo=$ac_try;;
30545 esac
30546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547   (eval "$ac_compile") 2>conftest.er1
30548   ac_status=$?
30549   grep -v '^ *+' conftest.er1 >conftest.err
30550   rm -f conftest.er1
30551   cat conftest.err >&5
30552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553   (exit $ac_status); } && {
30554          test -z "$ac_c_werror_flag" ||
30555          test ! -s conftest.err
30556        } && test -s conftest.$ac_objext; then
30557   ac_header_compiler=yes
30558 else
30559   echo "$as_me: failed program was:" >&5
30560 sed 's/^/| /' conftest.$ac_ext >&5
30561
30562         ac_header_compiler=no
30563 fi
30564
30565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30567 echo "${ECHO_T}$ac_header_compiler" >&6; }
30568
30569 # Is the header present?
30570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30572 cat >conftest.$ac_ext <<_ACEOF
30573 /* confdefs.h.  */
30574 _ACEOF
30575 cat confdefs.h >>conftest.$ac_ext
30576 cat >>conftest.$ac_ext <<_ACEOF
30577 /* end confdefs.h.  */
30578 #include <$ac_header>
30579 _ACEOF
30580 if { (ac_try="$ac_cpp conftest.$ac_ext"
30581 case "(($ac_try" in
30582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30583   *) ac_try_echo=$ac_try;;
30584 esac
30585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30587   ac_status=$?
30588   grep -v '^ *+' conftest.er1 >conftest.err
30589   rm -f conftest.er1
30590   cat conftest.err >&5
30591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592   (exit $ac_status); } >/dev/null && {
30593          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30594          test ! -s conftest.err
30595        }; then
30596   ac_header_preproc=yes
30597 else
30598   echo "$as_me: failed program was:" >&5
30599 sed 's/^/| /' conftest.$ac_ext >&5
30600
30601   ac_header_preproc=no
30602 fi
30603
30604 rm -f conftest.err conftest.$ac_ext
30605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30606 echo "${ECHO_T}$ac_header_preproc" >&6; }
30607
30608 # So?  What about this header?
30609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30610   yes:no: )
30611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30615     ac_header_preproc=yes
30616     ;;
30617   no:yes:* )
30618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30620     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30621 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30622     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30624     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30625 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30628     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30630
30631     ;;
30632 esac
30633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30636   echo $ECHO_N "(cached) $ECHO_C" >&6
30637 else
30638   eval "$as_ac_Header=\$ac_header_preproc"
30639 fi
30640 ac_res=`eval echo '${'$as_ac_Header'}'`
30641                { echo "$as_me:$LINENO: result: $ac_res" >&5
30642 echo "${ECHO_T}$ac_res" >&6; }
30643
30644 fi
30645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30646   cat >>confdefs.h <<_ACEOF
30647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30648 _ACEOF
30649
30650 fi
30651
30652 done
30653
30654 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30655 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30656 if test "${ac_cv_header_stdc+set}" = set; then
30657   echo $ECHO_N "(cached) $ECHO_C" >&6
30658 else
30659   cat >conftest.$ac_ext <<_ACEOF
30660 /* confdefs.h.  */
30661 _ACEOF
30662 cat confdefs.h >>conftest.$ac_ext
30663 cat >>conftest.$ac_ext <<_ACEOF
30664 /* end confdefs.h.  */
30665 #include <stdlib.h>
30666 #include <stdarg.h>
30667 #include <string.h>
30668 #include <float.h>
30669
30670 int
30671 main ()
30672 {
30673
30674   ;
30675   return 0;
30676 }
30677 _ACEOF
30678 rm -f conftest.$ac_objext
30679 if { (ac_try="$ac_compile"
30680 case "(($ac_try" in
30681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30682   *) ac_try_echo=$ac_try;;
30683 esac
30684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30685   (eval "$ac_compile") 2>conftest.er1
30686   ac_status=$?
30687   grep -v '^ *+' conftest.er1 >conftest.err
30688   rm -f conftest.er1
30689   cat conftest.err >&5
30690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691   (exit $ac_status); } && {
30692          test -z "$ac_c_werror_flag" ||
30693          test ! -s conftest.err
30694        } && test -s conftest.$ac_objext; then
30695   ac_cv_header_stdc=yes
30696 else
30697   echo "$as_me: failed program was:" >&5
30698 sed 's/^/| /' conftest.$ac_ext >&5
30699
30700         ac_cv_header_stdc=no
30701 fi
30702
30703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30704
30705 if test $ac_cv_header_stdc = yes; then
30706   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30707   cat >conftest.$ac_ext <<_ACEOF
30708 /* confdefs.h.  */
30709 _ACEOF
30710 cat confdefs.h >>conftest.$ac_ext
30711 cat >>conftest.$ac_ext <<_ACEOF
30712 /* end confdefs.h.  */
30713 #include <string.h>
30714
30715 _ACEOF
30716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30717   $EGREP "memchr" >/dev/null 2>&1; then
30718   :
30719 else
30720   ac_cv_header_stdc=no
30721 fi
30722 rm -f conftest*
30723
30724 fi
30725
30726 if test $ac_cv_header_stdc = yes; then
30727   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30728   cat >conftest.$ac_ext <<_ACEOF
30729 /* confdefs.h.  */
30730 _ACEOF
30731 cat confdefs.h >>conftest.$ac_ext
30732 cat >>conftest.$ac_ext <<_ACEOF
30733 /* end confdefs.h.  */
30734 #include <stdlib.h>
30735
30736 _ACEOF
30737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30738   $EGREP "free" >/dev/null 2>&1; then
30739   :
30740 else
30741   ac_cv_header_stdc=no
30742 fi
30743 rm -f conftest*
30744
30745 fi
30746
30747 if test $ac_cv_header_stdc = yes; then
30748   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30749   if test "$cross_compiling" = yes; then
30750   :
30751 else
30752   cat >conftest.$ac_ext <<_ACEOF
30753 /* confdefs.h.  */
30754 _ACEOF
30755 cat confdefs.h >>conftest.$ac_ext
30756 cat >>conftest.$ac_ext <<_ACEOF
30757 /* end confdefs.h.  */
30758 #include <ctype.h>
30759 #include <stdlib.h>
30760 #if ((' ' & 0x0FF) == 0x020)
30761 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30762 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30763 #else
30764 # define ISLOWER(c) \
30765                    (('a' <= (c) && (c) <= 'i') \
30766                      || ('j' <= (c) && (c) <= 'r') \
30767                      || ('s' <= (c) && (c) <= 'z'))
30768 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30769 #endif
30770
30771 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30772 int
30773 main ()
30774 {
30775   int i;
30776   for (i = 0; i < 256; i++)
30777     if (XOR (islower (i), ISLOWER (i))
30778         || toupper (i) != TOUPPER (i))
30779       return 2;
30780   return 0;
30781 }
30782 _ACEOF
30783 rm -f conftest$ac_exeext
30784 if { (ac_try="$ac_link"
30785 case "(($ac_try" in
30786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30787   *) ac_try_echo=$ac_try;;
30788 esac
30789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790   (eval "$ac_link") 2>&5
30791   ac_status=$?
30792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30794   { (case "(($ac_try" in
30795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30796   *) ac_try_echo=$ac_try;;
30797 esac
30798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30799   (eval "$ac_try") 2>&5
30800   ac_status=$?
30801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802   (exit $ac_status); }; }; then
30803   :
30804 else
30805   echo "$as_me: program exited with status $ac_status" >&5
30806 echo "$as_me: failed program was:" >&5
30807 sed 's/^/| /' conftest.$ac_ext >&5
30808
30809 ( exit $ac_status )
30810 ac_cv_header_stdc=no
30811 fi
30812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30813 fi
30814
30815
30816 fi
30817 fi
30818 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30819 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30820 if test $ac_cv_header_stdc = yes; then
30821
30822 cat >>confdefs.h <<\_ACEOF
30823 #define STDC_HEADERS 1
30824 _ACEOF
30825
30826 fi
30827
30828 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30829 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30830 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30831   echo $ECHO_N "(cached) $ECHO_C" >&6
30832 else
30833   cat >conftest.$ac_ext <<_ACEOF
30834 /* confdefs.h.  */
30835 _ACEOF
30836 cat confdefs.h >>conftest.$ac_ext
30837 cat >>conftest.$ac_ext <<_ACEOF
30838 /* end confdefs.h.  */
30839 #include <sys/types.h>
30840 int
30841 main ()
30842 {
30843 return makedev(0, 0);
30844   ;
30845   return 0;
30846 }
30847 _ACEOF
30848 rm -f conftest.$ac_objext conftest$ac_exeext
30849 if { (ac_try="$ac_link"
30850 case "(($ac_try" in
30851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30852   *) ac_try_echo=$ac_try;;
30853 esac
30854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30855   (eval "$ac_link") 2>conftest.er1
30856   ac_status=$?
30857   grep -v '^ *+' conftest.er1 >conftest.err
30858   rm -f conftest.er1
30859   cat conftest.err >&5
30860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861   (exit $ac_status); } && {
30862          test -z "$ac_c_werror_flag" ||
30863          test ! -s conftest.err
30864        } && test -s conftest$ac_exeext &&
30865        $as_test_x conftest$ac_exeext; then
30866   ac_cv_header_sys_types_h_makedev=yes
30867 else
30868   echo "$as_me: failed program was:" >&5
30869 sed 's/^/| /' conftest.$ac_ext >&5
30870
30871         ac_cv_header_sys_types_h_makedev=no
30872 fi
30873
30874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30875       conftest$ac_exeext conftest.$ac_ext
30876
30877 fi
30878 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30879 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30880
30881 if test $ac_cv_header_sys_types_h_makedev = no; then
30882 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30883   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30884 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30885 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30886   echo $ECHO_N "(cached) $ECHO_C" >&6
30887 fi
30888 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30889 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30890 else
30891   # Is the header compilable?
30892 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30893 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30894 cat >conftest.$ac_ext <<_ACEOF
30895 /* confdefs.h.  */
30896 _ACEOF
30897 cat confdefs.h >>conftest.$ac_ext
30898 cat >>conftest.$ac_ext <<_ACEOF
30899 /* end confdefs.h.  */
30900 $ac_includes_default
30901 #include <sys/mkdev.h>
30902 _ACEOF
30903 rm -f conftest.$ac_objext
30904 if { (ac_try="$ac_compile"
30905 case "(($ac_try" in
30906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30907   *) ac_try_echo=$ac_try;;
30908 esac
30909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30910   (eval "$ac_compile") 2>conftest.er1
30911   ac_status=$?
30912   grep -v '^ *+' conftest.er1 >conftest.err
30913   rm -f conftest.er1
30914   cat conftest.err >&5
30915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916   (exit $ac_status); } && {
30917          test -z "$ac_c_werror_flag" ||
30918          test ! -s conftest.err
30919        } && test -s conftest.$ac_objext; then
30920   ac_header_compiler=yes
30921 else
30922   echo "$as_me: failed program was:" >&5
30923 sed 's/^/| /' conftest.$ac_ext >&5
30924
30925         ac_header_compiler=no
30926 fi
30927
30928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30930 echo "${ECHO_T}$ac_header_compiler" >&6; }
30931
30932 # Is the header present?
30933 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30934 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30935 cat >conftest.$ac_ext <<_ACEOF
30936 /* confdefs.h.  */
30937 _ACEOF
30938 cat confdefs.h >>conftest.$ac_ext
30939 cat >>conftest.$ac_ext <<_ACEOF
30940 /* end confdefs.h.  */
30941 #include <sys/mkdev.h>
30942 _ACEOF
30943 if { (ac_try="$ac_cpp conftest.$ac_ext"
30944 case "(($ac_try" in
30945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30946   *) ac_try_echo=$ac_try;;
30947 esac
30948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30950   ac_status=$?
30951   grep -v '^ *+' conftest.er1 >conftest.err
30952   rm -f conftest.er1
30953   cat conftest.err >&5
30954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955   (exit $ac_status); } >/dev/null && {
30956          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30957          test ! -s conftest.err
30958        }; then
30959   ac_header_preproc=yes
30960 else
30961   echo "$as_me: failed program was:" >&5
30962 sed 's/^/| /' conftest.$ac_ext >&5
30963
30964   ac_header_preproc=no
30965 fi
30966
30967 rm -f conftest.err conftest.$ac_ext
30968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30969 echo "${ECHO_T}$ac_header_preproc" >&6; }
30970
30971 # So?  What about this header?
30972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30973   yes:no: )
30974     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30975 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30976     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30977 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30978     ac_header_preproc=yes
30979     ;;
30980   no:yes:* )
30981     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30982 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30983     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
30984 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
30985     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30986 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30987     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
30988 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30989     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30990 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30991     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30992 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30993
30994     ;;
30995 esac
30996 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30997 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30998 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30999   echo $ECHO_N "(cached) $ECHO_C" >&6
31000 else
31001   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31002 fi
31003 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31004 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31005
31006 fi
31007 if test $ac_cv_header_sys_mkdev_h = yes; then
31008
31009 cat >>confdefs.h <<\_ACEOF
31010 #define MAJOR_IN_MKDEV 1
31011 _ACEOF
31012
31013 fi
31014
31015
31016
31017   if test $ac_cv_header_sys_mkdev_h = no; then
31018     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31019   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31020 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31021 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31022   echo $ECHO_N "(cached) $ECHO_C" >&6
31023 fi
31024 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31025 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31026 else
31027   # Is the header compilable?
31028 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31029 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31030 cat >conftest.$ac_ext <<_ACEOF
31031 /* confdefs.h.  */
31032 _ACEOF
31033 cat confdefs.h >>conftest.$ac_ext
31034 cat >>conftest.$ac_ext <<_ACEOF
31035 /* end confdefs.h.  */
31036 $ac_includes_default
31037 #include <sys/sysmacros.h>
31038 _ACEOF
31039 rm -f conftest.$ac_objext
31040 if { (ac_try="$ac_compile"
31041 case "(($ac_try" in
31042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31043   *) ac_try_echo=$ac_try;;
31044 esac
31045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31046   (eval "$ac_compile") 2>conftest.er1
31047   ac_status=$?
31048   grep -v '^ *+' conftest.er1 >conftest.err
31049   rm -f conftest.er1
31050   cat conftest.err >&5
31051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052   (exit $ac_status); } && {
31053          test -z "$ac_c_werror_flag" ||
31054          test ! -s conftest.err
31055        } && test -s conftest.$ac_objext; then
31056   ac_header_compiler=yes
31057 else
31058   echo "$as_me: failed program was:" >&5
31059 sed 's/^/| /' conftest.$ac_ext >&5
31060
31061         ac_header_compiler=no
31062 fi
31063
31064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31066 echo "${ECHO_T}$ac_header_compiler" >&6; }
31067
31068 # Is the header present?
31069 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31070 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31071 cat >conftest.$ac_ext <<_ACEOF
31072 /* confdefs.h.  */
31073 _ACEOF
31074 cat confdefs.h >>conftest.$ac_ext
31075 cat >>conftest.$ac_ext <<_ACEOF
31076 /* end confdefs.h.  */
31077 #include <sys/sysmacros.h>
31078 _ACEOF
31079 if { (ac_try="$ac_cpp conftest.$ac_ext"
31080 case "(($ac_try" in
31081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31082   *) ac_try_echo=$ac_try;;
31083 esac
31084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31085   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31086   ac_status=$?
31087   grep -v '^ *+' conftest.er1 >conftest.err
31088   rm -f conftest.er1
31089   cat conftest.err >&5
31090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091   (exit $ac_status); } >/dev/null && {
31092          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31093          test ! -s conftest.err
31094        }; then
31095   ac_header_preproc=yes
31096 else
31097   echo "$as_me: failed program was:" >&5
31098 sed 's/^/| /' conftest.$ac_ext >&5
31099
31100   ac_header_preproc=no
31101 fi
31102
31103 rm -f conftest.err conftest.$ac_ext
31104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31105 echo "${ECHO_T}$ac_header_preproc" >&6; }
31106
31107 # So?  What about this header?
31108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31109   yes:no: )
31110     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31111 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31112     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31113 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31114     ac_header_preproc=yes
31115     ;;
31116   no:yes:* )
31117     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31118 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31119     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31120 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31121     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31122 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31123     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31124 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31125     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31126 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31127     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31128 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31129
31130     ;;
31131 esac
31132 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31133 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31134 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31135   echo $ECHO_N "(cached) $ECHO_C" >&6
31136 else
31137   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31138 fi
31139 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31140 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31141
31142 fi
31143 if test $ac_cv_header_sys_sysmacros_h = yes; then
31144
31145 cat >>confdefs.h <<\_ACEOF
31146 #define MAJOR_IN_SYSMACROS 1
31147 _ACEOF
31148
31149 fi
31150
31151
31152   fi
31153 fi
31154
31155
31156
31157
31158
31159
31160 ac_header_dirent=no
31161 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31162   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31163 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31164 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31166   echo $ECHO_N "(cached) $ECHO_C" >&6
31167 else
31168   cat >conftest.$ac_ext <<_ACEOF
31169 /* confdefs.h.  */
31170 _ACEOF
31171 cat confdefs.h >>conftest.$ac_ext
31172 cat >>conftest.$ac_ext <<_ACEOF
31173 /* end confdefs.h.  */
31174 #include <sys/types.h>
31175 #include <$ac_hdr>
31176
31177 int
31178 main ()
31179 {
31180 if ((DIR *) 0)
31181 return 0;
31182   ;
31183   return 0;
31184 }
31185 _ACEOF
31186 rm -f conftest.$ac_objext
31187 if { (ac_try="$ac_compile"
31188 case "(($ac_try" in
31189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190   *) ac_try_echo=$ac_try;;
31191 esac
31192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31193   (eval "$ac_compile") 2>conftest.er1
31194   ac_status=$?
31195   grep -v '^ *+' conftest.er1 >conftest.err
31196   rm -f conftest.er1
31197   cat conftest.err >&5
31198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199   (exit $ac_status); } && {
31200          test -z "$ac_c_werror_flag" ||
31201          test ! -s conftest.err
31202        } && test -s conftest.$ac_objext; then
31203   eval "$as_ac_Header=yes"
31204 else
31205   echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31207
31208         eval "$as_ac_Header=no"
31209 fi
31210
31211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31212 fi
31213 ac_res=`eval echo '${'$as_ac_Header'}'`
31214                { echo "$as_me:$LINENO: result: $ac_res" >&5
31215 echo "${ECHO_T}$ac_res" >&6; }
31216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31217   cat >>confdefs.h <<_ACEOF
31218 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31219 _ACEOF
31220
31221 ac_header_dirent=$ac_hdr; break
31222 fi
31223
31224 done
31225 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31226 if test $ac_header_dirent = dirent.h; then
31227   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31228 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31229 if test "${ac_cv_search_opendir+set}" = set; then
31230   echo $ECHO_N "(cached) $ECHO_C" >&6
31231 else
31232   ac_func_search_save_LIBS=$LIBS
31233 cat >conftest.$ac_ext <<_ACEOF
31234 /* confdefs.h.  */
31235 _ACEOF
31236 cat confdefs.h >>conftest.$ac_ext
31237 cat >>conftest.$ac_ext <<_ACEOF
31238 /* end confdefs.h.  */
31239
31240 /* Override any GCC internal prototype to avoid an error.
31241    Use char because int might match the return type of a GCC
31242    builtin and then its argument prototype would still apply.  */
31243 #ifdef __cplusplus
31244 extern "C"
31245 #endif
31246 char opendir ();
31247 int
31248 main ()
31249 {
31250 return opendir ();
31251   ;
31252   return 0;
31253 }
31254 _ACEOF
31255 for ac_lib in '' dir; do
31256   if test -z "$ac_lib"; then
31257     ac_res="none required"
31258   else
31259     ac_res=-l$ac_lib
31260     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31261   fi
31262   rm -f conftest.$ac_objext conftest$ac_exeext
31263 if { (ac_try="$ac_link"
31264 case "(($ac_try" in
31265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266   *) ac_try_echo=$ac_try;;
31267 esac
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269   (eval "$ac_link") 2>conftest.er1
31270   ac_status=$?
31271   grep -v '^ *+' conftest.er1 >conftest.err
31272   rm -f conftest.er1
31273   cat conftest.err >&5
31274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275   (exit $ac_status); } && {
31276          test -z "$ac_c_werror_flag" ||
31277          test ! -s conftest.err
31278        } && test -s conftest$ac_exeext &&
31279        $as_test_x conftest$ac_exeext; then
31280   ac_cv_search_opendir=$ac_res
31281 else
31282   echo "$as_me: failed program was:" >&5
31283 sed 's/^/| /' conftest.$ac_ext >&5
31284
31285
31286 fi
31287
31288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31289       conftest$ac_exeext
31290   if test "${ac_cv_search_opendir+set}" = set; then
31291   break
31292 fi
31293 done
31294 if test "${ac_cv_search_opendir+set}" = set; then
31295   :
31296 else
31297   ac_cv_search_opendir=no
31298 fi
31299 rm conftest.$ac_ext
31300 LIBS=$ac_func_search_save_LIBS
31301 fi
31302 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31303 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31304 ac_res=$ac_cv_search_opendir
31305 if test "$ac_res" != no; then
31306   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31307
31308 fi
31309
31310 else
31311   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31312 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31313 if test "${ac_cv_search_opendir+set}" = set; then
31314   echo $ECHO_N "(cached) $ECHO_C" >&6
31315 else
31316   ac_func_search_save_LIBS=$LIBS
31317 cat >conftest.$ac_ext <<_ACEOF
31318 /* confdefs.h.  */
31319 _ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h.  */
31323
31324 /* Override any GCC internal prototype to avoid an error.
31325    Use char because int might match the return type of a GCC
31326    builtin and then its argument prototype would still apply.  */
31327 #ifdef __cplusplus
31328 extern "C"
31329 #endif
31330 char opendir ();
31331 int
31332 main ()
31333 {
31334 return opendir ();
31335   ;
31336   return 0;
31337 }
31338 _ACEOF
31339 for ac_lib in '' x; do
31340   if test -z "$ac_lib"; then
31341     ac_res="none required"
31342   else
31343     ac_res=-l$ac_lib
31344     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31345   fi
31346   rm -f conftest.$ac_objext conftest$ac_exeext
31347 if { (ac_try="$ac_link"
31348 case "(($ac_try" in
31349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31350   *) ac_try_echo=$ac_try;;
31351 esac
31352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31353   (eval "$ac_link") 2>conftest.er1
31354   ac_status=$?
31355   grep -v '^ *+' conftest.er1 >conftest.err
31356   rm -f conftest.er1
31357   cat conftest.err >&5
31358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359   (exit $ac_status); } && {
31360          test -z "$ac_c_werror_flag" ||
31361          test ! -s conftest.err
31362        } && test -s conftest$ac_exeext &&
31363        $as_test_x conftest$ac_exeext; then
31364   ac_cv_search_opendir=$ac_res
31365 else
31366   echo "$as_me: failed program was:" >&5
31367 sed 's/^/| /' conftest.$ac_ext >&5
31368
31369
31370 fi
31371
31372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31373       conftest$ac_exeext
31374   if test "${ac_cv_search_opendir+set}" = set; then
31375   break
31376 fi
31377 done
31378 if test "${ac_cv_search_opendir+set}" = set; then
31379   :
31380 else
31381   ac_cv_search_opendir=no
31382 fi
31383 rm conftest.$ac_ext
31384 LIBS=$ac_func_search_save_LIBS
31385 fi
31386 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31387 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31388 ac_res=$ac_cv_search_opendir
31389 if test "$ac_res" != no; then
31390   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31391
31392 fi
31393
31394 fi
31395
31396 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31397 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31398 if test "${ac_cv_header_stat_broken+set}" = set; then
31399   echo $ECHO_N "(cached) $ECHO_C" >&6
31400 else
31401   cat >conftest.$ac_ext <<_ACEOF
31402 /* confdefs.h.  */
31403 _ACEOF
31404 cat confdefs.h >>conftest.$ac_ext
31405 cat >>conftest.$ac_ext <<_ACEOF
31406 /* end confdefs.h.  */
31407 #include <sys/types.h>
31408 #include <sys/stat.h>
31409
31410 #if defined S_ISBLK && defined S_IFDIR
31411 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31412 #endif
31413
31414 #if defined S_ISBLK && defined S_IFCHR
31415 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31416 #endif
31417
31418 #if defined S_ISLNK && defined S_IFREG
31419 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31420 #endif
31421
31422 #if defined S_ISSOCK && defined S_IFREG
31423 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31424 #endif
31425
31426 _ACEOF
31427 rm -f conftest.$ac_objext
31428 if { (ac_try="$ac_compile"
31429 case "(($ac_try" in
31430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431   *) ac_try_echo=$ac_try;;
31432 esac
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434   (eval "$ac_compile") 2>conftest.er1
31435   ac_status=$?
31436   grep -v '^ *+' conftest.er1 >conftest.err
31437   rm -f conftest.er1
31438   cat conftest.err >&5
31439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440   (exit $ac_status); } && {
31441          test -z "$ac_c_werror_flag" ||
31442          test ! -s conftest.err
31443        } && test -s conftest.$ac_objext; then
31444   ac_cv_header_stat_broken=no
31445 else
31446   echo "$as_me: failed program was:" >&5
31447 sed 's/^/| /' conftest.$ac_ext >&5
31448
31449         ac_cv_header_stat_broken=yes
31450 fi
31451
31452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31453 fi
31454 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31455 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31456 if test $ac_cv_header_stat_broken = yes; then
31457
31458 cat >>confdefs.h <<\_ACEOF
31459 #define STAT_MACROS_BROKEN 1
31460 _ACEOF
31461
31462 fi
31463
31464 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31465 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31466 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31467   echo $ECHO_N "(cached) $ECHO_C" >&6
31468 else
31469   cat >conftest.$ac_ext <<_ACEOF
31470 /* confdefs.h.  */
31471 _ACEOF
31472 cat confdefs.h >>conftest.$ac_ext
31473 cat >>conftest.$ac_ext <<_ACEOF
31474 /* end confdefs.h.  */
31475 #include <sys/types.h>
31476 #include <sys/wait.h>
31477 #ifndef WEXITSTATUS
31478 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31479 #endif
31480 #ifndef WIFEXITED
31481 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31482 #endif
31483
31484 int
31485 main ()
31486 {
31487   int s;
31488   wait (&s);
31489   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31490   ;
31491   return 0;
31492 }
31493 _ACEOF
31494 rm -f conftest.$ac_objext
31495 if { (ac_try="$ac_compile"
31496 case "(($ac_try" in
31497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498   *) ac_try_echo=$ac_try;;
31499 esac
31500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501   (eval "$ac_compile") 2>conftest.er1
31502   ac_status=$?
31503   grep -v '^ *+' conftest.er1 >conftest.err
31504   rm -f conftest.er1
31505   cat conftest.err >&5
31506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507   (exit $ac_status); } && {
31508          test -z "$ac_c_werror_flag" ||
31509          test ! -s conftest.err
31510        } && test -s conftest.$ac_objext; then
31511   ac_cv_header_sys_wait_h=yes
31512 else
31513   echo "$as_me: failed program was:" >&5
31514 sed 's/^/| /' conftest.$ac_ext >&5
31515
31516         ac_cv_header_sys_wait_h=no
31517 fi
31518
31519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31520 fi
31521 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31522 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31523 if test $ac_cv_header_sys_wait_h = yes; then
31524
31525 cat >>confdefs.h <<\_ACEOF
31526 #define HAVE_SYS_WAIT_H 1
31527 _ACEOF
31528
31529 fi
31530
31531 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31532 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31533 if test "${ac_cv_header_time+set}" = set; then
31534   echo $ECHO_N "(cached) $ECHO_C" >&6
31535 else
31536   cat >conftest.$ac_ext <<_ACEOF
31537 /* confdefs.h.  */
31538 _ACEOF
31539 cat confdefs.h >>conftest.$ac_ext
31540 cat >>conftest.$ac_ext <<_ACEOF
31541 /* end confdefs.h.  */
31542 #include <sys/types.h>
31543 #include <sys/time.h>
31544 #include <time.h>
31545
31546 int
31547 main ()
31548 {
31549 if ((struct tm *) 0)
31550 return 0;
31551   ;
31552   return 0;
31553 }
31554 _ACEOF
31555 rm -f conftest.$ac_objext
31556 if { (ac_try="$ac_compile"
31557 case "(($ac_try" in
31558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31559   *) ac_try_echo=$ac_try;;
31560 esac
31561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31562   (eval "$ac_compile") 2>conftest.er1
31563   ac_status=$?
31564   grep -v '^ *+' conftest.er1 >conftest.err
31565   rm -f conftest.er1
31566   cat conftest.err >&5
31567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568   (exit $ac_status); } && {
31569          test -z "$ac_c_werror_flag" ||
31570          test ! -s conftest.err
31571        } && test -s conftest.$ac_objext; then
31572   ac_cv_header_time=yes
31573 else
31574   echo "$as_me: failed program was:" >&5
31575 sed 's/^/| /' conftest.$ac_ext >&5
31576
31577         ac_cv_header_time=no
31578 fi
31579
31580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31581 fi
31582 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31583 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31584 if test $ac_cv_header_time = yes; then
31585
31586 cat >>confdefs.h <<\_ACEOF
31587 #define TIME_WITH_SYS_TIME 1
31588 _ACEOF
31589
31590 fi
31591
31592 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31593 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31594 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31595   echo $ECHO_N "(cached) $ECHO_C" >&6
31596 else
31597   cat >conftest.$ac_ext <<_ACEOF
31598 /* confdefs.h.  */
31599 _ACEOF
31600 cat confdefs.h >>conftest.$ac_ext
31601 cat >>conftest.$ac_ext <<_ACEOF
31602 /* end confdefs.h.  */
31603 $ac_includes_default
31604 int
31605 main ()
31606 {
31607 static struct stat ac_aggr;
31608 if (ac_aggr.st_blksize)
31609 return 0;
31610   ;
31611   return 0;
31612 }
31613 _ACEOF
31614 rm -f conftest.$ac_objext
31615 if { (ac_try="$ac_compile"
31616 case "(($ac_try" in
31617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31618   *) ac_try_echo=$ac_try;;
31619 esac
31620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31621   (eval "$ac_compile") 2>conftest.er1
31622   ac_status=$?
31623   grep -v '^ *+' conftest.er1 >conftest.err
31624   rm -f conftest.er1
31625   cat conftest.err >&5
31626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627   (exit $ac_status); } && {
31628          test -z "$ac_c_werror_flag" ||
31629          test ! -s conftest.err
31630        } && test -s conftest.$ac_objext; then
31631   ac_cv_member_struct_stat_st_blksize=yes
31632 else
31633   echo "$as_me: failed program was:" >&5
31634 sed 's/^/| /' conftest.$ac_ext >&5
31635
31636         cat >conftest.$ac_ext <<_ACEOF
31637 /* confdefs.h.  */
31638 _ACEOF
31639 cat confdefs.h >>conftest.$ac_ext
31640 cat >>conftest.$ac_ext <<_ACEOF
31641 /* end confdefs.h.  */
31642 $ac_includes_default
31643 int
31644 main ()
31645 {
31646 static struct stat ac_aggr;
31647 if (sizeof ac_aggr.st_blksize)
31648 return 0;
31649   ;
31650   return 0;
31651 }
31652 _ACEOF
31653 rm -f conftest.$ac_objext
31654 if { (ac_try="$ac_compile"
31655 case "(($ac_try" in
31656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657   *) ac_try_echo=$ac_try;;
31658 esac
31659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31660   (eval "$ac_compile") 2>conftest.er1
31661   ac_status=$?
31662   grep -v '^ *+' conftest.er1 >conftest.err
31663   rm -f conftest.er1
31664   cat conftest.err >&5
31665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666   (exit $ac_status); } && {
31667          test -z "$ac_c_werror_flag" ||
31668          test ! -s conftest.err
31669        } && test -s conftest.$ac_objext; then
31670   ac_cv_member_struct_stat_st_blksize=yes
31671 else
31672   echo "$as_me: failed program was:" >&5
31673 sed 's/^/| /' conftest.$ac_ext >&5
31674
31675         ac_cv_member_struct_stat_st_blksize=no
31676 fi
31677
31678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31679 fi
31680
31681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31682 fi
31683 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31684 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31685 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31686
31687 cat >>confdefs.h <<_ACEOF
31688 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31689 _ACEOF
31690
31691
31692 cat >>confdefs.h <<\_ACEOF
31693 #define HAVE_ST_BLKSIZE 1
31694 _ACEOF
31695
31696 fi
31697
31698
31699 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31700 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31701 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31702   echo $ECHO_N "(cached) $ECHO_C" >&6
31703 else
31704   cat >conftest.$ac_ext <<_ACEOF
31705 /* confdefs.h.  */
31706 _ACEOF
31707 cat confdefs.h >>conftest.$ac_ext
31708 cat >>conftest.$ac_ext <<_ACEOF
31709 /* end confdefs.h.  */
31710 $ac_includes_default
31711 int
31712 main ()
31713 {
31714 static struct stat ac_aggr;
31715 if (ac_aggr.st_blocks)
31716 return 0;
31717   ;
31718   return 0;
31719 }
31720 _ACEOF
31721 rm -f conftest.$ac_objext
31722 if { (ac_try="$ac_compile"
31723 case "(($ac_try" in
31724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31725   *) ac_try_echo=$ac_try;;
31726 esac
31727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31728   (eval "$ac_compile") 2>conftest.er1
31729   ac_status=$?
31730   grep -v '^ *+' conftest.er1 >conftest.err
31731   rm -f conftest.er1
31732   cat conftest.err >&5
31733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734   (exit $ac_status); } && {
31735          test -z "$ac_c_werror_flag" ||
31736          test ! -s conftest.err
31737        } && test -s conftest.$ac_objext; then
31738   ac_cv_member_struct_stat_st_blocks=yes
31739 else
31740   echo "$as_me: failed program was:" >&5
31741 sed 's/^/| /' conftest.$ac_ext >&5
31742
31743         cat >conftest.$ac_ext <<_ACEOF
31744 /* confdefs.h.  */
31745 _ACEOF
31746 cat confdefs.h >>conftest.$ac_ext
31747 cat >>conftest.$ac_ext <<_ACEOF
31748 /* end confdefs.h.  */
31749 $ac_includes_default
31750 int
31751 main ()
31752 {
31753 static struct stat ac_aggr;
31754 if (sizeof ac_aggr.st_blocks)
31755 return 0;
31756   ;
31757   return 0;
31758 }
31759 _ACEOF
31760 rm -f conftest.$ac_objext
31761 if { (ac_try="$ac_compile"
31762 case "(($ac_try" in
31763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31764   *) ac_try_echo=$ac_try;;
31765 esac
31766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31767   (eval "$ac_compile") 2>conftest.er1
31768   ac_status=$?
31769   grep -v '^ *+' conftest.er1 >conftest.err
31770   rm -f conftest.er1
31771   cat conftest.err >&5
31772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773   (exit $ac_status); } && {
31774          test -z "$ac_c_werror_flag" ||
31775          test ! -s conftest.err
31776        } && test -s conftest.$ac_objext; then
31777   ac_cv_member_struct_stat_st_blocks=yes
31778 else
31779   echo "$as_me: failed program was:" >&5
31780 sed 's/^/| /' conftest.$ac_ext >&5
31781
31782         ac_cv_member_struct_stat_st_blocks=no
31783 fi
31784
31785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31786 fi
31787
31788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31789 fi
31790 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31791 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31792 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31793
31794 cat >>confdefs.h <<_ACEOF
31795 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31796 _ACEOF
31797
31798
31799 cat >>confdefs.h <<\_ACEOF
31800 #define HAVE_ST_BLOCKS 1
31801 _ACEOF
31802
31803 else
31804   case " $LIBOBJS " in
31805   *" fileblocks.$ac_objext "* ) ;;
31806   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31807  ;;
31808 esac
31809
31810 fi
31811
31812
31813 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31814 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31815 if test "${ac_cv_struct_tm+set}" = set; then
31816   echo $ECHO_N "(cached) $ECHO_C" >&6
31817 else
31818   cat >conftest.$ac_ext <<_ACEOF
31819 /* confdefs.h.  */
31820 _ACEOF
31821 cat confdefs.h >>conftest.$ac_ext
31822 cat >>conftest.$ac_ext <<_ACEOF
31823 /* end confdefs.h.  */
31824 #include <sys/types.h>
31825 #include <time.h>
31826
31827 int
31828 main ()
31829 {
31830 struct tm tm;
31831                                      int *p = &tm.tm_sec;
31832                                      return !p;
31833   ;
31834   return 0;
31835 }
31836 _ACEOF
31837 rm -f conftest.$ac_objext
31838 if { (ac_try="$ac_compile"
31839 case "(($ac_try" in
31840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841   *) ac_try_echo=$ac_try;;
31842 esac
31843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844   (eval "$ac_compile") 2>conftest.er1
31845   ac_status=$?
31846   grep -v '^ *+' conftest.er1 >conftest.err
31847   rm -f conftest.er1
31848   cat conftest.err >&5
31849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850   (exit $ac_status); } && {
31851          test -z "$ac_c_werror_flag" ||
31852          test ! -s conftest.err
31853        } && test -s conftest.$ac_objext; then
31854   ac_cv_struct_tm=time.h
31855 else
31856   echo "$as_me: failed program was:" >&5
31857 sed 's/^/| /' conftest.$ac_ext >&5
31858
31859         ac_cv_struct_tm=sys/time.h
31860 fi
31861
31862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31863 fi
31864 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31865 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31866 if test $ac_cv_struct_tm = sys/time.h; then
31867
31868 cat >>confdefs.h <<\_ACEOF
31869 #define TM_IN_SYS_TIME 1
31870 _ACEOF
31871
31872 fi
31873
31874 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31875 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31876 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31877   echo $ECHO_N "(cached) $ECHO_C" >&6
31878 else
31879   cat >conftest.$ac_ext <<_ACEOF
31880 /* confdefs.h.  */
31881 _ACEOF
31882 cat confdefs.h >>conftest.$ac_ext
31883 cat >>conftest.$ac_ext <<_ACEOF
31884 /* end confdefs.h.  */
31885 #include <sys/types.h>
31886 #include <$ac_cv_struct_tm>
31887
31888
31889 int
31890 main ()
31891 {
31892 static struct tm ac_aggr;
31893 if (ac_aggr.tm_zone)
31894 return 0;
31895   ;
31896   return 0;
31897 }
31898 _ACEOF
31899 rm -f conftest.$ac_objext
31900 if { (ac_try="$ac_compile"
31901 case "(($ac_try" in
31902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31903   *) ac_try_echo=$ac_try;;
31904 esac
31905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31906   (eval "$ac_compile") 2>conftest.er1
31907   ac_status=$?
31908   grep -v '^ *+' conftest.er1 >conftest.err
31909   rm -f conftest.er1
31910   cat conftest.err >&5
31911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912   (exit $ac_status); } && {
31913          test -z "$ac_c_werror_flag" ||
31914          test ! -s conftest.err
31915        } && test -s conftest.$ac_objext; then
31916   ac_cv_member_struct_tm_tm_zone=yes
31917 else
31918   echo "$as_me: failed program was:" >&5
31919 sed 's/^/| /' conftest.$ac_ext >&5
31920
31921         cat >conftest.$ac_ext <<_ACEOF
31922 /* confdefs.h.  */
31923 _ACEOF
31924 cat confdefs.h >>conftest.$ac_ext
31925 cat >>conftest.$ac_ext <<_ACEOF
31926 /* end confdefs.h.  */
31927 #include <sys/types.h>
31928 #include <$ac_cv_struct_tm>
31929
31930
31931 int
31932 main ()
31933 {
31934 static struct tm ac_aggr;
31935 if (sizeof ac_aggr.tm_zone)
31936 return 0;
31937   ;
31938   return 0;
31939 }
31940 _ACEOF
31941 rm -f conftest.$ac_objext
31942 if { (ac_try="$ac_compile"
31943 case "(($ac_try" in
31944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31945   *) ac_try_echo=$ac_try;;
31946 esac
31947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948   (eval "$ac_compile") 2>conftest.er1
31949   ac_status=$?
31950   grep -v '^ *+' conftest.er1 >conftest.err
31951   rm -f conftest.er1
31952   cat conftest.err >&5
31953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954   (exit $ac_status); } && {
31955          test -z "$ac_c_werror_flag" ||
31956          test ! -s conftest.err
31957        } && test -s conftest.$ac_objext; then
31958   ac_cv_member_struct_tm_tm_zone=yes
31959 else
31960   echo "$as_me: failed program was:" >&5
31961 sed 's/^/| /' conftest.$ac_ext >&5
31962
31963         ac_cv_member_struct_tm_tm_zone=no
31964 fi
31965
31966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31967 fi
31968
31969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31970 fi
31971 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31972 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31973 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31974
31975 cat >>confdefs.h <<_ACEOF
31976 #define HAVE_STRUCT_TM_TM_ZONE 1
31977 _ACEOF
31978
31979
31980 fi
31981
31982 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31983
31984 cat >>confdefs.h <<\_ACEOF
31985 #define HAVE_TM_ZONE 1
31986 _ACEOF
31987
31988 else
31989   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31990 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31991 if test "${ac_cv_have_decl_tzname+set}" = set; then
31992   echo $ECHO_N "(cached) $ECHO_C" >&6
31993 else
31994   cat >conftest.$ac_ext <<_ACEOF
31995 /* confdefs.h.  */
31996 _ACEOF
31997 cat confdefs.h >>conftest.$ac_ext
31998 cat >>conftest.$ac_ext <<_ACEOF
31999 /* end confdefs.h.  */
32000 #include <time.h>
32001
32002 int
32003 main ()
32004 {
32005 #ifndef tzname
32006   (void) tzname;
32007 #endif
32008
32009   ;
32010   return 0;
32011 }
32012 _ACEOF
32013 rm -f conftest.$ac_objext
32014 if { (ac_try="$ac_compile"
32015 case "(($ac_try" in
32016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32017   *) ac_try_echo=$ac_try;;
32018 esac
32019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32020   (eval "$ac_compile") 2>conftest.er1
32021   ac_status=$?
32022   grep -v '^ *+' conftest.er1 >conftest.err
32023   rm -f conftest.er1
32024   cat conftest.err >&5
32025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026   (exit $ac_status); } && {
32027          test -z "$ac_c_werror_flag" ||
32028          test ! -s conftest.err
32029        } && test -s conftest.$ac_objext; then
32030   ac_cv_have_decl_tzname=yes
32031 else
32032   echo "$as_me: failed program was:" >&5
32033 sed 's/^/| /' conftest.$ac_ext >&5
32034
32035         ac_cv_have_decl_tzname=no
32036 fi
32037
32038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32039 fi
32040 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32041 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32042 if test $ac_cv_have_decl_tzname = yes; then
32043
32044 cat >>confdefs.h <<_ACEOF
32045 #define HAVE_DECL_TZNAME 1
32046 _ACEOF
32047
32048
32049 else
32050   cat >>confdefs.h <<_ACEOF
32051 #define HAVE_DECL_TZNAME 0
32052 _ACEOF
32053
32054
32055 fi
32056
32057
32058   { echo "$as_me:$LINENO: checking for tzname" >&5
32059 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32060 if test "${ac_cv_var_tzname+set}" = set; then
32061   echo $ECHO_N "(cached) $ECHO_C" >&6
32062 else
32063   cat >conftest.$ac_ext <<_ACEOF
32064 /* confdefs.h.  */
32065 _ACEOF
32066 cat confdefs.h >>conftest.$ac_ext
32067 cat >>conftest.$ac_ext <<_ACEOF
32068 /* end confdefs.h.  */
32069 #include <time.h>
32070 #if !HAVE_DECL_TZNAME
32071 extern char *tzname[];
32072 #endif
32073
32074 int
32075 main ()
32076 {
32077 return tzname[0][0];
32078   ;
32079   return 0;
32080 }
32081 _ACEOF
32082 rm -f conftest.$ac_objext conftest$ac_exeext
32083 if { (ac_try="$ac_link"
32084 case "(($ac_try" in
32085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32086   *) ac_try_echo=$ac_try;;
32087 esac
32088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32089   (eval "$ac_link") 2>conftest.er1
32090   ac_status=$?
32091   grep -v '^ *+' conftest.er1 >conftest.err
32092   rm -f conftest.er1
32093   cat conftest.err >&5
32094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095   (exit $ac_status); } && {
32096          test -z "$ac_c_werror_flag" ||
32097          test ! -s conftest.err
32098        } && test -s conftest$ac_exeext &&
32099        $as_test_x conftest$ac_exeext; then
32100   ac_cv_var_tzname=yes
32101 else
32102   echo "$as_me: failed program was:" >&5
32103 sed 's/^/| /' conftest.$ac_ext >&5
32104
32105         ac_cv_var_tzname=no
32106 fi
32107
32108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32109       conftest$ac_exeext conftest.$ac_ext
32110 fi
32111 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32112 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32113   if test $ac_cv_var_tzname = yes; then
32114
32115 cat >>confdefs.h <<\_ACEOF
32116 #define HAVE_TZNAME 1
32117 _ACEOF
32118
32119   fi
32120 fi
32121
32122
32123 { echo "$as_me:$LINENO: checking for utime.h" >&5
32124 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32125 if test "${ba_cv_header_utime_h+set}" = set; then
32126   echo $ECHO_N "(cached) $ECHO_C" >&6
32127 else
32128
32129        cat >conftest.$ac_ext <<_ACEOF
32130 /* confdefs.h.  */
32131 _ACEOF
32132 cat confdefs.h >>conftest.$ac_ext
32133 cat >>conftest.$ac_ext <<_ACEOF
32134 /* end confdefs.h.  */
32135
32136               #include <sys/types.h>
32137               #include <utime.h>
32138
32139 int
32140 main ()
32141 {
32142
32143               struct utimbuf foo
32144
32145   ;
32146   return 0;
32147 }
32148 _ACEOF
32149 rm -f conftest.$ac_objext
32150 if { (ac_try="$ac_compile"
32151 case "(($ac_try" in
32152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153   *) ac_try_echo=$ac_try;;
32154 esac
32155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156   (eval "$ac_compile") 2>conftest.er1
32157   ac_status=$?
32158   grep -v '^ *+' conftest.er1 >conftest.err
32159   rm -f conftest.er1
32160   cat conftest.err >&5
32161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162   (exit $ac_status); } && {
32163          test -z "$ac_c_werror_flag" ||
32164          test ! -s conftest.err
32165        } && test -s conftest.$ac_objext; then
32166
32167               ba_cv_header_utime_h=yes
32168
32169 else
32170   echo "$as_me: failed program was:" >&5
32171 sed 's/^/| /' conftest.$ac_ext >&5
32172
32173
32174               ba_cv_header_utime_h=no
32175
32176
32177 fi
32178
32179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32180
32181
32182 fi
32183 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32184 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32185 test $ba_cv_header_utime_h = yes &&
32186 cat >>confdefs.h <<\_ACEOF
32187 #define HAVE_UTIME_H 1
32188 _ACEOF
32189
32190
32191 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32192 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32193 if test "${ba_cv_header_socklen_t+set}" = set; then
32194   echo $ECHO_N "(cached) $ECHO_C" >&6
32195 else
32196
32197        cat >conftest.$ac_ext <<_ACEOF
32198 /* confdefs.h.  */
32199 _ACEOF
32200 cat confdefs.h >>conftest.$ac_ext
32201 cat >>conftest.$ac_ext <<_ACEOF
32202 /* end confdefs.h.  */
32203
32204               #include <sys/types.h>
32205               #include <sys/socket.h>
32206
32207 int
32208 main ()
32209 {
32210
32211               socklen_t x
32212
32213   ;
32214   return 0;
32215 }
32216 _ACEOF
32217 rm -f conftest.$ac_objext
32218 if { (ac_try="$ac_compile"
32219 case "(($ac_try" in
32220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32221   *) ac_try_echo=$ac_try;;
32222 esac
32223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32224   (eval "$ac_compile") 2>conftest.er1
32225   ac_status=$?
32226   grep -v '^ *+' conftest.er1 >conftest.err
32227   rm -f conftest.er1
32228   cat conftest.err >&5
32229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230   (exit $ac_status); } && {
32231          test -z "$ac_c_werror_flag" ||
32232          test ! -s conftest.err
32233        } && test -s conftest.$ac_objext; then
32234
32235              ba_cv_header_socklen_t=yes
32236
32237 else
32238   echo "$as_me: failed program was:" >&5
32239 sed 's/^/| /' conftest.$ac_ext >&5
32240
32241
32242              ba_cv_header_socklen_t=no
32243
32244
32245 fi
32246
32247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32248
32249
32250 fi
32251 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32252 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32253 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32254 #define HAVE_SOCKLEN_T 1
32255 _ACEOF
32256
32257
32258 { echo "$as_me:$LINENO: checking for bigendian" >&5
32259 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32260 if test "${ba_cv_bigendian+set}" = set; then
32261   echo $ECHO_N "(cached) $ECHO_C" >&6
32262 else
32263
32264        if test "$cross_compiling" = yes; then
32265
32266              ba_cv_bigendian=no
32267
32268
32269 else
32270   cat >conftest.$ac_ext <<_ACEOF
32271 /* confdefs.h.  */
32272 _ACEOF
32273 cat confdefs.h >>conftest.$ac_ext
32274 cat >>conftest.$ac_ext <<_ACEOF
32275 /* end confdefs.h.  */
32276
32277               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32278
32279 _ACEOF
32280 rm -f conftest$ac_exeext
32281 if { (ac_try="$ac_link"
32282 case "(($ac_try" in
32283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284   *) ac_try_echo=$ac_try;;
32285 esac
32286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32287   (eval "$ac_link") 2>&5
32288   ac_status=$?
32289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32291   { (case "(($ac_try" in
32292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293   *) ac_try_echo=$ac_try;;
32294 esac
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296   (eval "$ac_try") 2>&5
32297   ac_status=$?
32298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299   (exit $ac_status); }; }; then
32300
32301              ba_cv_bigendian=yes
32302
32303 else
32304   echo "$as_me: program exited with status $ac_status" >&5
32305 echo "$as_me: failed program was:" >&5
32306 sed 's/^/| /' conftest.$ac_ext >&5
32307
32308 ( exit $ac_status )
32309
32310              ba_cv_bigendian=no
32311
32312 fi
32313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32314 fi
32315
32316
32317
32318
32319 fi
32320 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32321 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32322 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32323 #define HAVE_BIGENDIAN 1
32324 _ACEOF
32325
32326
32327 ac_ext=cpp
32328 ac_cpp='$CXXCPP $CPPFLAGS'
32329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32332
32333 { echo "$as_me:$LINENO: checking for typeof" >&5
32334 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32335 if test "${ba_cv_have_typeof+set}" = set; then
32336   echo $ECHO_N "(cached) $ECHO_C" >&6
32337 else
32338
32339        if test "$cross_compiling" = yes; then
32340
32341               ba_cv_have_typeof=no
32342
32343
32344 else
32345   cat >conftest.$ac_ext <<_ACEOF
32346 /* confdefs.h.  */
32347 _ACEOF
32348 cat confdefs.h >>conftest.$ac_ext
32349 cat >>conftest.$ac_ext <<_ACEOF
32350 /* end confdefs.h.  */
32351
32352               main(){char *a = 0; a = (typeof a)a;}
32353
32354 _ACEOF
32355 rm -f conftest$ac_exeext
32356 if { (ac_try="$ac_link"
32357 case "(($ac_try" in
32358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359   *) ac_try_echo=$ac_try;;
32360 esac
32361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362   (eval "$ac_link") 2>&5
32363   ac_status=$?
32364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32366   { (case "(($ac_try" in
32367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32368   *) ac_try_echo=$ac_try;;
32369 esac
32370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32371   (eval "$ac_try") 2>&5
32372   ac_status=$?
32373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374   (exit $ac_status); }; }; then
32375
32376               ba_cv_have_typeof=yes
32377
32378 else
32379   echo "$as_me: program exited with status $ac_status" >&5
32380 echo "$as_me: failed program was:" >&5
32381 sed 's/^/| /' conftest.$ac_ext >&5
32382
32383 ( exit $ac_status )
32384
32385               ba_cv_have_typeof=no
32386
32387 fi
32388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32389 fi
32390
32391
32392
32393
32394 fi
32395 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32396 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32397 test $ba_cv_have_typeof = yes &&
32398 cat >>confdefs.h <<\_ACEOF
32399 #define HAVE_TYPEOF 1
32400 _ACEOF
32401
32402 ac_ext=c
32403 ac_cpp='$CPP $CPPFLAGS'
32404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32407
32408
32409 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32410 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32411 if test "${ac_cv_c_const+set}" = set; then
32412   echo $ECHO_N "(cached) $ECHO_C" >&6
32413 else
32414   cat >conftest.$ac_ext <<_ACEOF
32415 /* confdefs.h.  */
32416 _ACEOF
32417 cat confdefs.h >>conftest.$ac_ext
32418 cat >>conftest.$ac_ext <<_ACEOF
32419 /* end confdefs.h.  */
32420
32421 int
32422 main ()
32423 {
32424 /* FIXME: Include the comments suggested by Paul. */
32425 #ifndef __cplusplus
32426   /* Ultrix mips cc rejects this.  */
32427   typedef int charset[2];
32428   const charset cs;
32429   /* SunOS 4.1.1 cc rejects this.  */
32430   char const *const *pcpcc;
32431   char **ppc;
32432   /* NEC SVR4.0.2 mips cc rejects this.  */
32433   struct point {int x, y;};
32434   static struct point const zero = {0,0};
32435   /* AIX XL C 1.02.0.0 rejects this.
32436      It does not let you subtract one const X* pointer from another in
32437      an arm of an if-expression whose if-part is not a constant
32438      expression */
32439   const char *g = "string";
32440   pcpcc = &g + (g ? g-g : 0);
32441   /* HPUX 7.0 cc rejects these. */
32442   ++pcpcc;
32443   ppc = (char**) pcpcc;
32444   pcpcc = (char const *const *) ppc;
32445   { /* SCO 3.2v4 cc rejects this.  */
32446     char *t;
32447     char const *s = 0 ? (char *) 0 : (char const *) 0;
32448
32449     *t++ = 0;
32450     if (s) return 0;
32451   }
32452   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32453     int x[] = {25, 17};
32454     const int *foo = &x[0];
32455     ++foo;
32456   }
32457   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32458     typedef const int *iptr;
32459     iptr p = 0;
32460     ++p;
32461   }
32462   { /* AIX XL C 1.02.0.0 rejects this saying
32463        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32464     struct s { int j; const int *ap[3]; };
32465     struct s *b; b->j = 5;
32466   }
32467   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32468     const int foo = 10;
32469     if (!foo) return 0;
32470   }
32471   return !cs[0] && !zero.x;
32472 #endif
32473
32474   ;
32475   return 0;
32476 }
32477 _ACEOF
32478 rm -f conftest.$ac_objext
32479 if { (ac_try="$ac_compile"
32480 case "(($ac_try" in
32481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32482   *) ac_try_echo=$ac_try;;
32483 esac
32484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32485   (eval "$ac_compile") 2>conftest.er1
32486   ac_status=$?
32487   grep -v '^ *+' conftest.er1 >conftest.err
32488   rm -f conftest.er1
32489   cat conftest.err >&5
32490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491   (exit $ac_status); } && {
32492          test -z "$ac_c_werror_flag" ||
32493          test ! -s conftest.err
32494        } && test -s conftest.$ac_objext; then
32495   ac_cv_c_const=yes
32496 else
32497   echo "$as_me: failed program was:" >&5
32498 sed 's/^/| /' conftest.$ac_ext >&5
32499
32500         ac_cv_c_const=no
32501 fi
32502
32503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32504 fi
32505 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32506 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32507 if test $ac_cv_c_const = no; then
32508
32509 cat >>confdefs.h <<\_ACEOF
32510 #define const
32511 _ACEOF
32512
32513 fi
32514
32515
32516 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32517 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32518 fstype=no
32519 # The order of these tests is important.
32520 cat >conftest.$ac_ext <<_ACEOF
32521 /* confdefs.h.  */
32522 _ACEOF
32523 cat confdefs.h >>conftest.$ac_ext
32524 cat >>conftest.$ac_ext <<_ACEOF
32525 /* end confdefs.h.  */
32526
32527        #include <sys/statvfs.h>
32528        #include <sys/fstyp.h>
32529
32530 _ACEOF
32531 if { (ac_try="$ac_cpp conftest.$ac_ext"
32532 case "(($ac_try" in
32533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534   *) ac_try_echo=$ac_try;;
32535 esac
32536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32538   ac_status=$?
32539   grep -v '^ *+' conftest.er1 >conftest.err
32540   rm -f conftest.er1
32541   cat conftest.err >&5
32542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543   (exit $ac_status); } >/dev/null && {
32544          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32545          test ! -s conftest.err
32546        }; then
32547   cat >>confdefs.h <<\_ACEOF
32548 #define FSTYPE_STATVFS 1
32549 _ACEOF
32550  fstype=SVR4
32551
32552 else
32553   echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32555
32556
32557 fi
32558
32559 rm -f conftest.err conftest.$ac_ext
32560 if test $fstype = no; then
32561    cat >conftest.$ac_ext <<_ACEOF
32562 /* confdefs.h.  */
32563 _ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h.  */
32567
32568           #include <sys/statfs.h>
32569           #include <sys/fstyp.h>
32570
32571 _ACEOF
32572 if { (ac_try="$ac_cpp conftest.$ac_ext"
32573 case "(($ac_try" in
32574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32575   *) ac_try_echo=$ac_try;;
32576 esac
32577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32579   ac_status=$?
32580   grep -v '^ *+' conftest.er1 >conftest.err
32581   rm -f conftest.er1
32582   cat conftest.err >&5
32583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584   (exit $ac_status); } >/dev/null && {
32585          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32586          test ! -s conftest.err
32587        }; then
32588   cat >>confdefs.h <<\_ACEOF
32589 #define FSTYPE_USG_STATFS 1
32590 _ACEOF
32591  fstype=SVR3
32592
32593 else
32594   echo "$as_me: failed program was:" >&5
32595 sed 's/^/| /' conftest.$ac_ext >&5
32596
32597
32598 fi
32599
32600 rm -f conftest.err conftest.$ac_ext
32601 fi
32602 if test $fstype = no; then
32603    cat >conftest.$ac_ext <<_ACEOF
32604 /* confdefs.h.  */
32605 _ACEOF
32606 cat confdefs.h >>conftest.$ac_ext
32607 cat >>conftest.$ac_ext <<_ACEOF
32608 /* end confdefs.h.  */
32609
32610           #include <sys/statfs.h>
32611           #include <sys/vmount.h>
32612
32613 _ACEOF
32614 if { (ac_try="$ac_cpp conftest.$ac_ext"
32615 case "(($ac_try" in
32616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617   *) ac_try_echo=$ac_try;;
32618 esac
32619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32621   ac_status=$?
32622   grep -v '^ *+' conftest.er1 >conftest.err
32623   rm -f conftest.er1
32624   cat conftest.err >&5
32625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32626   (exit $ac_status); } >/dev/null && {
32627          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32628          test ! -s conftest.err
32629        }; then
32630   cat >>confdefs.h <<\_ACEOF
32631 #define FSTYPE_AIX_STATFS 1
32632 _ACEOF
32633  fstype=AIX
32634
32635 else
32636   echo "$as_me: failed program was:" >&5
32637 sed 's/^/| /' conftest.$ac_ext >&5
32638
32639
32640 fi
32641
32642 rm -f conftest.err conftest.$ac_ext
32643 fi
32644 if test $fstype = no; then
32645    cat >conftest.$ac_ext <<_ACEOF
32646 /* confdefs.h.  */
32647 _ACEOF
32648 cat confdefs.h >>conftest.$ac_ext
32649 cat >>conftest.$ac_ext <<_ACEOF
32650 /* end confdefs.h.  */
32651
32652           #include <mntent.h>
32653
32654 _ACEOF
32655 if { (ac_try="$ac_cpp conftest.$ac_ext"
32656 case "(($ac_try" in
32657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32658   *) ac_try_echo=$ac_try;;
32659 esac
32660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32662   ac_status=$?
32663   grep -v '^ *+' conftest.er1 >conftest.err
32664   rm -f conftest.er1
32665   cat conftest.err >&5
32666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667   (exit $ac_status); } >/dev/null && {
32668          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32669          test ! -s conftest.err
32670        }; then
32671   cat >>confdefs.h <<\_ACEOF
32672 #define FSTYPE_MNTENT 1
32673 _ACEOF
32674  fstype=4.3BSD
32675
32676 else
32677   echo "$as_me: failed program was:" >&5
32678 sed 's/^/| /' conftest.$ac_ext >&5
32679
32680
32681 fi
32682
32683 rm -f conftest.err conftest.$ac_ext
32684 fi
32685 if test $fstype = no; then
32686    cat >conftest.$ac_ext <<_ACEOF
32687 /* confdefs.h.  */
32688 _ACEOF
32689 cat confdefs.h >>conftest.$ac_ext
32690 cat >>conftest.$ac_ext <<_ACEOF
32691 /* end confdefs.h.  */
32692 #include <sys/mount.h>
32693
32694 _ACEOF
32695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32696   $EGREP "f_type;" >/dev/null 2>&1; then
32697   cat >>confdefs.h <<\_ACEOF
32698 #define FSTYPE_STATFS 1
32699 _ACEOF
32700  fstype=4.4BSD/OSF1
32701 fi
32702 rm -f conftest*
32703
32704 fi
32705 if test $fstype = no; then
32706    cat >conftest.$ac_ext <<_ACEOF
32707 /* confdefs.h.  */
32708 _ACEOF
32709 cat confdefs.h >>conftest.$ac_ext
32710 cat >>conftest.$ac_ext <<_ACEOF
32711 /* end confdefs.h.  */
32712
32713           #include <sys/mount.h>
32714           #include <sys/fs_types.h>
32715
32716 _ACEOF
32717 if { (ac_try="$ac_cpp conftest.$ac_ext"
32718 case "(($ac_try" in
32719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32720   *) ac_try_echo=$ac_try;;
32721 esac
32722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32724   ac_status=$?
32725   grep -v '^ *+' conftest.er1 >conftest.err
32726   rm -f conftest.er1
32727   cat conftest.err >&5
32728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729   (exit $ac_status); } >/dev/null && {
32730          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32731          test ! -s conftest.err
32732        }; then
32733   cat >>confdefs.h <<\_ACEOF
32734 #define FSTYPE_GETMNT 1
32735 _ACEOF
32736  fstype=Ultrix
32737
32738 else
32739   echo "$as_me: failed program was:" >&5
32740 sed 's/^/| /' conftest.$ac_ext >&5
32741
32742
32743 fi
32744
32745 rm -f conftest.err conftest.$ac_ext
32746 fi
32747 { echo "$as_me:$LINENO: result: $fstype" >&5
32748 echo "${ECHO_T}$fstype" >&6; }
32749
32750 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32751   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32752 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32753 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32754   echo $ECHO_N "(cached) $ECHO_C" >&6
32755 fi
32756 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32757 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32758 else
32759   # Is the header compilable?
32760 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32761 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32762 cat >conftest.$ac_ext <<_ACEOF
32763 /* confdefs.h.  */
32764 _ACEOF
32765 cat confdefs.h >>conftest.$ac_ext
32766 cat >>conftest.$ac_ext <<_ACEOF
32767 /* end confdefs.h.  */
32768 $ac_includes_default
32769 #include <sys/statvfs.h>
32770 _ACEOF
32771 rm -f conftest.$ac_objext
32772 if { (ac_try="$ac_compile"
32773 case "(($ac_try" in
32774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775   *) ac_try_echo=$ac_try;;
32776 esac
32777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778   (eval "$ac_compile") 2>conftest.er1
32779   ac_status=$?
32780   grep -v '^ *+' conftest.er1 >conftest.err
32781   rm -f conftest.er1
32782   cat conftest.err >&5
32783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784   (exit $ac_status); } && {
32785          test -z "$ac_c_werror_flag" ||
32786          test ! -s conftest.err
32787        } && test -s conftest.$ac_objext; then
32788   ac_header_compiler=yes
32789 else
32790   echo "$as_me: failed program was:" >&5
32791 sed 's/^/| /' conftest.$ac_ext >&5
32792
32793         ac_header_compiler=no
32794 fi
32795
32796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32798 echo "${ECHO_T}$ac_header_compiler" >&6; }
32799
32800 # Is the header present?
32801 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32802 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32803 cat >conftest.$ac_ext <<_ACEOF
32804 /* confdefs.h.  */
32805 _ACEOF
32806 cat confdefs.h >>conftest.$ac_ext
32807 cat >>conftest.$ac_ext <<_ACEOF
32808 /* end confdefs.h.  */
32809 #include <sys/statvfs.h>
32810 _ACEOF
32811 if { (ac_try="$ac_cpp conftest.$ac_ext"
32812 case "(($ac_try" in
32813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814   *) ac_try_echo=$ac_try;;
32815 esac
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32818   ac_status=$?
32819   grep -v '^ *+' conftest.er1 >conftest.err
32820   rm -f conftest.er1
32821   cat conftest.err >&5
32822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823   (exit $ac_status); } >/dev/null && {
32824          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32825          test ! -s conftest.err
32826        }; then
32827   ac_header_preproc=yes
32828 else
32829   echo "$as_me: failed program was:" >&5
32830 sed 's/^/| /' conftest.$ac_ext >&5
32831
32832   ac_header_preproc=no
32833 fi
32834
32835 rm -f conftest.err conftest.$ac_ext
32836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32837 echo "${ECHO_T}$ac_header_preproc" >&6; }
32838
32839 # So?  What about this header?
32840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32841   yes:no: )
32842     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32843 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32844     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32845 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32846     ac_header_preproc=yes
32847     ;;
32848   no:yes:* )
32849     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32850 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32851     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32852 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32853     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32854 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32855     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32856 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32857     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32858 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32859     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32860 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32861
32862     ;;
32863 esac
32864 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32865 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32866 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32867   echo $ECHO_N "(cached) $ECHO_C" >&6
32868 else
32869   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32870 fi
32871 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32872 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32873
32874 fi
32875 if test $ac_cv_header_sys_statvfs_h = yes; then
32876
32877 cat >>confdefs.h <<\_ACEOF
32878 #define HAVE_SYS_STATVFS_H 1
32879 _ACEOF
32880
32881 fi
32882
32883
32884
32885 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32886 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32887 if test "${ac_cv_type_signal+set}" = set; then
32888   echo $ECHO_N "(cached) $ECHO_C" >&6
32889 else
32890   cat >conftest.$ac_ext <<_ACEOF
32891 /* confdefs.h.  */
32892 _ACEOF
32893 cat confdefs.h >>conftest.$ac_ext
32894 cat >>conftest.$ac_ext <<_ACEOF
32895 /* end confdefs.h.  */
32896 #include <sys/types.h>
32897 #include <signal.h>
32898
32899 int
32900 main ()
32901 {
32902 return *(signal (0, 0)) (0) == 1;
32903   ;
32904   return 0;
32905 }
32906 _ACEOF
32907 rm -f conftest.$ac_objext
32908 if { (ac_try="$ac_compile"
32909 case "(($ac_try" in
32910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32911   *) ac_try_echo=$ac_try;;
32912 esac
32913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32914   (eval "$ac_compile") 2>conftest.er1
32915   ac_status=$?
32916   grep -v '^ *+' conftest.er1 >conftest.err
32917   rm -f conftest.er1
32918   cat conftest.err >&5
32919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920   (exit $ac_status); } && {
32921          test -z "$ac_c_werror_flag" ||
32922          test ! -s conftest.err
32923        } && test -s conftest.$ac_objext; then
32924   ac_cv_type_signal=int
32925 else
32926   echo "$as_me: failed program was:" >&5
32927 sed 's/^/| /' conftest.$ac_ext >&5
32928
32929         ac_cv_type_signal=void
32930 fi
32931
32932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32933 fi
32934 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32935 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32936
32937 cat >>confdefs.h <<_ACEOF
32938 #define RETSIGTYPE $ac_cv_type_signal
32939 _ACEOF
32940
32941
32942
32943   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32944 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32945   if test "${bash_cv_signal_vintage+set}" = set; then
32946   echo $ECHO_N "(cached) $ECHO_C" >&6
32947 else
32948
32949     cat >conftest.$ac_ext <<_ACEOF
32950 /* confdefs.h.  */
32951 _ACEOF
32952 cat confdefs.h >>conftest.$ac_ext
32953 cat >>conftest.$ac_ext <<_ACEOF
32954 /* end confdefs.h.  */
32955 #include <signal.h>
32956 int
32957 main ()
32958 {
32959
32960       sigset_t ss;
32961       struct sigaction sa;
32962       sigemptyset(&ss); sigsuspend(&ss);
32963       sigaction(SIGINT, &sa, (struct sigaction *) 0);
32964       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32965
32966   ;
32967   return 0;
32968 }
32969 _ACEOF
32970 rm -f conftest.$ac_objext conftest$ac_exeext
32971 if { (ac_try="$ac_link"
32972 case "(($ac_try" in
32973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32974   *) ac_try_echo=$ac_try;;
32975 esac
32976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32977   (eval "$ac_link") 2>conftest.er1
32978   ac_status=$?
32979   grep -v '^ *+' conftest.er1 >conftest.err
32980   rm -f conftest.er1
32981   cat conftest.err >&5
32982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983   (exit $ac_status); } && {
32984          test -z "$ac_c_werror_flag" ||
32985          test ! -s conftest.err
32986        } && test -s conftest$ac_exeext &&
32987        $as_test_x conftest$ac_exeext; then
32988   bash_cv_signal_vintage="posix"
32989 else
32990   echo "$as_me: failed program was:" >&5
32991 sed 's/^/| /' conftest.$ac_ext >&5
32992
32993
32994       cat >conftest.$ac_ext <<_ACEOF
32995 /* confdefs.h.  */
32996 _ACEOF
32997 cat confdefs.h >>conftest.$ac_ext
32998 cat >>conftest.$ac_ext <<_ACEOF
32999 /* end confdefs.h.  */
33000 #include <signal.h>
33001 int
33002 main ()
33003 {
33004
33005           int mask = sigmask(SIGINT);
33006           sigsetmask(mask); sigblock(mask); sigpause(mask);
33007
33008   ;
33009   return 0;
33010 }
33011 _ACEOF
33012 rm -f conftest.$ac_objext conftest$ac_exeext
33013 if { (ac_try="$ac_link"
33014 case "(($ac_try" in
33015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33016   *) ac_try_echo=$ac_try;;
33017 esac
33018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33019   (eval "$ac_link") 2>conftest.er1
33020   ac_status=$?
33021   grep -v '^ *+' conftest.er1 >conftest.err
33022   rm -f conftest.er1
33023   cat conftest.err >&5
33024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025   (exit $ac_status); } && {
33026          test -z "$ac_c_werror_flag" ||
33027          test ! -s conftest.err
33028        } && test -s conftest$ac_exeext &&
33029        $as_test_x conftest$ac_exeext; then
33030   bash_cv_signal_vintage="4.2bsd"
33031 else
33032   echo "$as_me: failed program was:" >&5
33033 sed 's/^/| /' conftest.$ac_ext >&5
33034
33035
33036         cat >conftest.$ac_ext <<_ACEOF
33037 /* confdefs.h.  */
33038 _ACEOF
33039 cat confdefs.h >>conftest.$ac_ext
33040 cat >>conftest.$ac_ext <<_ACEOF
33041 /* end confdefs.h.  */
33042
33043           #include <signal.h>
33044           RETSIGTYPE foo() { }
33045 int
33046 main ()
33047 {
33048
33049                   int mask = sigmask(SIGINT);
33050                   sigset(SIGINT, foo); sigrelse(SIGINT);
33051                   sighold(SIGINT); sigpause(SIGINT);
33052
33053   ;
33054   return 0;
33055 }
33056 _ACEOF
33057 rm -f conftest.$ac_objext conftest$ac_exeext
33058 if { (ac_try="$ac_link"
33059 case "(($ac_try" in
33060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33061   *) ac_try_echo=$ac_try;;
33062 esac
33063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33064   (eval "$ac_link") 2>conftest.er1
33065   ac_status=$?
33066   grep -v '^ *+' conftest.er1 >conftest.err
33067   rm -f conftest.er1
33068   cat conftest.err >&5
33069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33070   (exit $ac_status); } && {
33071          test -z "$ac_c_werror_flag" ||
33072          test ! -s conftest.err
33073        } && test -s conftest$ac_exeext &&
33074        $as_test_x conftest$ac_exeext; then
33075   bash_cv_signal_vintage="svr3"
33076 else
33077   echo "$as_me: failed program was:" >&5
33078 sed 's/^/| /' conftest.$ac_ext >&5
33079
33080         bash_cv_signal_vintage="v7"
33081
33082 fi
33083
33084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33085       conftest$ac_exeext conftest.$ac_ext
33086
33087 fi
33088
33089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33090       conftest$ac_exeext conftest.$ac_ext
33091
33092 fi
33093
33094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33095       conftest$ac_exeext conftest.$ac_ext
33096
33097 fi
33098
33099   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33100 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33101   if test "$bash_cv_signal_vintage" = "posix"; then
33102     cat >>confdefs.h <<\_ACEOF
33103 #define HAVE_POSIX_SIGNALS 1
33104 _ACEOF
33105
33106   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33107     cat >>confdefs.h <<\_ACEOF
33108 #define HAVE_BSD_SIGNALS 1
33109 _ACEOF
33110
33111   elif test "$bash_cv_signal_vintage" = "svr3"; then
33112     cat >>confdefs.h <<\_ACEOF
33113 #define HAVE_USG_SIGHOLD 1
33114 _ACEOF
33115
33116   fi
33117
33118 { echo "$as_me:$LINENO: checking for mode_t" >&5
33119 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33120 if test "${ac_cv_type_mode_t+set}" = set; then
33121   echo $ECHO_N "(cached) $ECHO_C" >&6
33122 else
33123   cat >conftest.$ac_ext <<_ACEOF
33124 /* confdefs.h.  */
33125 _ACEOF
33126 cat confdefs.h >>conftest.$ac_ext
33127 cat >>conftest.$ac_ext <<_ACEOF
33128 /* end confdefs.h.  */
33129 $ac_includes_default
33130 typedef mode_t ac__type_new_;
33131 int
33132 main ()
33133 {
33134 if ((ac__type_new_ *) 0)
33135   return 0;
33136 if (sizeof (ac__type_new_))
33137   return 0;
33138   ;
33139   return 0;
33140 }
33141 _ACEOF
33142 rm -f conftest.$ac_objext
33143 if { (ac_try="$ac_compile"
33144 case "(($ac_try" in
33145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146   *) ac_try_echo=$ac_try;;
33147 esac
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149   (eval "$ac_compile") 2>conftest.er1
33150   ac_status=$?
33151   grep -v '^ *+' conftest.er1 >conftest.err
33152   rm -f conftest.er1
33153   cat conftest.err >&5
33154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155   (exit $ac_status); } && {
33156          test -z "$ac_c_werror_flag" ||
33157          test ! -s conftest.err
33158        } && test -s conftest.$ac_objext; then
33159   ac_cv_type_mode_t=yes
33160 else
33161   echo "$as_me: failed program was:" >&5
33162 sed 's/^/| /' conftest.$ac_ext >&5
33163
33164         ac_cv_type_mode_t=no
33165 fi
33166
33167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33168 fi
33169 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33170 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33171 if test $ac_cv_type_mode_t = yes; then
33172   :
33173 else
33174
33175 cat >>confdefs.h <<_ACEOF
33176 #define mode_t int
33177 _ACEOF
33178
33179 fi
33180
33181 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33182 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33183 if test "${ac_cv_type_uid_t+set}" = set; then
33184   echo $ECHO_N "(cached) $ECHO_C" >&6
33185 else
33186   cat >conftest.$ac_ext <<_ACEOF
33187 /* confdefs.h.  */
33188 _ACEOF
33189 cat confdefs.h >>conftest.$ac_ext
33190 cat >>conftest.$ac_ext <<_ACEOF
33191 /* end confdefs.h.  */
33192 #include <sys/types.h>
33193
33194 _ACEOF
33195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33196   $EGREP "uid_t" >/dev/null 2>&1; then
33197   ac_cv_type_uid_t=yes
33198 else
33199   ac_cv_type_uid_t=no
33200 fi
33201 rm -f conftest*
33202
33203 fi
33204 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33205 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33206 if test $ac_cv_type_uid_t = no; then
33207
33208 cat >>confdefs.h <<\_ACEOF
33209 #define uid_t int
33210 _ACEOF
33211
33212
33213 cat >>confdefs.h <<\_ACEOF
33214 #define gid_t int
33215 _ACEOF
33216
33217 fi
33218
33219 { echo "$as_me:$LINENO: checking for size_t" >&5
33220 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33221 if test "${ac_cv_type_size_t+set}" = set; then
33222   echo $ECHO_N "(cached) $ECHO_C" >&6
33223 else
33224   cat >conftest.$ac_ext <<_ACEOF
33225 /* confdefs.h.  */
33226 _ACEOF
33227 cat confdefs.h >>conftest.$ac_ext
33228 cat >>conftest.$ac_ext <<_ACEOF
33229 /* end confdefs.h.  */
33230 $ac_includes_default
33231 typedef size_t ac__type_new_;
33232 int
33233 main ()
33234 {
33235 if ((ac__type_new_ *) 0)
33236   return 0;
33237 if (sizeof (ac__type_new_))
33238   return 0;
33239   ;
33240   return 0;
33241 }
33242 _ACEOF
33243 rm -f conftest.$ac_objext
33244 if { (ac_try="$ac_compile"
33245 case "(($ac_try" in
33246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247   *) ac_try_echo=$ac_try;;
33248 esac
33249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250   (eval "$ac_compile") 2>conftest.er1
33251   ac_status=$?
33252   grep -v '^ *+' conftest.er1 >conftest.err
33253   rm -f conftest.er1
33254   cat conftest.err >&5
33255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256   (exit $ac_status); } && {
33257          test -z "$ac_c_werror_flag" ||
33258          test ! -s conftest.err
33259        } && test -s conftest.$ac_objext; then
33260   ac_cv_type_size_t=yes
33261 else
33262   echo "$as_me: failed program was:" >&5
33263 sed 's/^/| /' conftest.$ac_ext >&5
33264
33265         ac_cv_type_size_t=no
33266 fi
33267
33268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33269 fi
33270 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33271 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33272 if test $ac_cv_type_size_t = yes; then
33273   :
33274 else
33275
33276 cat >>confdefs.h <<_ACEOF
33277 #define size_t unsigned int
33278 _ACEOF
33279
33280 fi
33281
33282 { echo "$as_me:$LINENO: checking for pid_t" >&5
33283 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33284 if test "${ac_cv_type_pid_t+set}" = set; then
33285   echo $ECHO_N "(cached) $ECHO_C" >&6
33286 else
33287   cat >conftest.$ac_ext <<_ACEOF
33288 /* confdefs.h.  */
33289 _ACEOF
33290 cat confdefs.h >>conftest.$ac_ext
33291 cat >>conftest.$ac_ext <<_ACEOF
33292 /* end confdefs.h.  */
33293 $ac_includes_default
33294 typedef pid_t ac__type_new_;
33295 int
33296 main ()
33297 {
33298 if ((ac__type_new_ *) 0)
33299   return 0;
33300 if (sizeof (ac__type_new_))
33301   return 0;
33302   ;
33303   return 0;
33304 }
33305 _ACEOF
33306 rm -f conftest.$ac_objext
33307 if { (ac_try="$ac_compile"
33308 case "(($ac_try" in
33309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33310   *) ac_try_echo=$ac_try;;
33311 esac
33312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33313   (eval "$ac_compile") 2>conftest.er1
33314   ac_status=$?
33315   grep -v '^ *+' conftest.er1 >conftest.err
33316   rm -f conftest.er1
33317   cat conftest.err >&5
33318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319   (exit $ac_status); } && {
33320          test -z "$ac_c_werror_flag" ||
33321          test ! -s conftest.err
33322        } && test -s conftest.$ac_objext; then
33323   ac_cv_type_pid_t=yes
33324 else
33325   echo "$as_me: failed program was:" >&5
33326 sed 's/^/| /' conftest.$ac_ext >&5
33327
33328         ac_cv_type_pid_t=no
33329 fi
33330
33331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33332 fi
33333 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33334 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33335 if test $ac_cv_type_pid_t = yes; then
33336   :
33337 else
33338
33339 cat >>confdefs.h <<_ACEOF
33340 #define pid_t int
33341 _ACEOF
33342
33343 fi
33344
33345 { echo "$as_me:$LINENO: checking for off_t" >&5
33346 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33347 if test "${ac_cv_type_off_t+set}" = set; then
33348   echo $ECHO_N "(cached) $ECHO_C" >&6
33349 else
33350   cat >conftest.$ac_ext <<_ACEOF
33351 /* confdefs.h.  */
33352 _ACEOF
33353 cat confdefs.h >>conftest.$ac_ext
33354 cat >>conftest.$ac_ext <<_ACEOF
33355 /* end confdefs.h.  */
33356 $ac_includes_default
33357 typedef off_t ac__type_new_;
33358 int
33359 main ()
33360 {
33361 if ((ac__type_new_ *) 0)
33362   return 0;
33363 if (sizeof (ac__type_new_))
33364   return 0;
33365   ;
33366   return 0;
33367 }
33368 _ACEOF
33369 rm -f conftest.$ac_objext
33370 if { (ac_try="$ac_compile"
33371 case "(($ac_try" in
33372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33373   *) ac_try_echo=$ac_try;;
33374 esac
33375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33376   (eval "$ac_compile") 2>conftest.er1
33377   ac_status=$?
33378   grep -v '^ *+' conftest.er1 >conftest.err
33379   rm -f conftest.er1
33380   cat conftest.err >&5
33381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382   (exit $ac_status); } && {
33383          test -z "$ac_c_werror_flag" ||
33384          test ! -s conftest.err
33385        } && test -s conftest.$ac_objext; then
33386   ac_cv_type_off_t=yes
33387 else
33388   echo "$as_me: failed program was:" >&5
33389 sed 's/^/| /' conftest.$ac_ext >&5
33390
33391         ac_cv_type_off_t=no
33392 fi
33393
33394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33395 fi
33396 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33397 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33398 if test $ac_cv_type_off_t = yes; then
33399   :
33400 else
33401
33402 cat >>confdefs.h <<_ACEOF
33403 #define off_t long int
33404 _ACEOF
33405
33406 fi
33407
33408 { echo "$as_me:$LINENO: checking for ino_t" >&5
33409 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33410 if test "${ac_cv_type_ino_t+set}" = set; then
33411   echo $ECHO_N "(cached) $ECHO_C" >&6
33412 else
33413   cat >conftest.$ac_ext <<_ACEOF
33414 /* confdefs.h.  */
33415 _ACEOF
33416 cat confdefs.h >>conftest.$ac_ext
33417 cat >>conftest.$ac_ext <<_ACEOF
33418 /* end confdefs.h.  */
33419 $ac_includes_default
33420 typedef ino_t ac__type_new_;
33421 int
33422 main ()
33423 {
33424 if ((ac__type_new_ *) 0)
33425   return 0;
33426 if (sizeof (ac__type_new_))
33427   return 0;
33428   ;
33429   return 0;
33430 }
33431 _ACEOF
33432 rm -f conftest.$ac_objext
33433 if { (ac_try="$ac_compile"
33434 case "(($ac_try" in
33435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436   *) ac_try_echo=$ac_try;;
33437 esac
33438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439   (eval "$ac_compile") 2>conftest.er1
33440   ac_status=$?
33441   grep -v '^ *+' conftest.er1 >conftest.err
33442   rm -f conftest.er1
33443   cat conftest.err >&5
33444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445   (exit $ac_status); } && {
33446          test -z "$ac_c_werror_flag" ||
33447          test ! -s conftest.err
33448        } && test -s conftest.$ac_objext; then
33449   ac_cv_type_ino_t=yes
33450 else
33451   echo "$as_me: failed program was:" >&5
33452 sed 's/^/| /' conftest.$ac_ext >&5
33453
33454         ac_cv_type_ino_t=no
33455 fi
33456
33457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33458 fi
33459 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33460 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33461 if test $ac_cv_type_ino_t = yes; then
33462   :
33463 else
33464
33465 cat >>confdefs.h <<_ACEOF
33466 #define ino_t unsigned long
33467 _ACEOF
33468
33469 fi
33470
33471 { echo "$as_me:$LINENO: checking for dev_t" >&5
33472 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33473 if test "${ac_cv_type_dev_t+set}" = set; then
33474   echo $ECHO_N "(cached) $ECHO_C" >&6
33475 else
33476   cat >conftest.$ac_ext <<_ACEOF
33477 /* confdefs.h.  */
33478 _ACEOF
33479 cat confdefs.h >>conftest.$ac_ext
33480 cat >>conftest.$ac_ext <<_ACEOF
33481 /* end confdefs.h.  */
33482 $ac_includes_default
33483 typedef dev_t ac__type_new_;
33484 int
33485 main ()
33486 {
33487 if ((ac__type_new_ *) 0)
33488   return 0;
33489 if (sizeof (ac__type_new_))
33490   return 0;
33491   ;
33492   return 0;
33493 }
33494 _ACEOF
33495 rm -f conftest.$ac_objext
33496 if { (ac_try="$ac_compile"
33497 case "(($ac_try" in
33498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33499   *) ac_try_echo=$ac_try;;
33500 esac
33501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33502   (eval "$ac_compile") 2>conftest.er1
33503   ac_status=$?
33504   grep -v '^ *+' conftest.er1 >conftest.err
33505   rm -f conftest.er1
33506   cat conftest.err >&5
33507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508   (exit $ac_status); } && {
33509          test -z "$ac_c_werror_flag" ||
33510          test ! -s conftest.err
33511        } && test -s conftest.$ac_objext; then
33512   ac_cv_type_dev_t=yes
33513 else
33514   echo "$as_me: failed program was:" >&5
33515 sed 's/^/| /' conftest.$ac_ext >&5
33516
33517         ac_cv_type_dev_t=no
33518 fi
33519
33520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33521 fi
33522 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33523 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33524 if test $ac_cv_type_dev_t = yes; then
33525   :
33526 else
33527
33528 cat >>confdefs.h <<_ACEOF
33529 #define dev_t unsigned long
33530 _ACEOF
33531
33532 fi
33533
33534 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33535 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33536 if test "${ac_cv_type_daddr_t+set}" = set; then
33537   echo $ECHO_N "(cached) $ECHO_C" >&6
33538 else
33539   cat >conftest.$ac_ext <<_ACEOF
33540 /* confdefs.h.  */
33541 _ACEOF
33542 cat confdefs.h >>conftest.$ac_ext
33543 cat >>conftest.$ac_ext <<_ACEOF
33544 /* end confdefs.h.  */
33545 $ac_includes_default
33546 typedef daddr_t ac__type_new_;
33547 int
33548 main ()
33549 {
33550 if ((ac__type_new_ *) 0)
33551   return 0;
33552 if (sizeof (ac__type_new_))
33553   return 0;
33554   ;
33555   return 0;
33556 }
33557 _ACEOF
33558 rm -f conftest.$ac_objext
33559 if { (ac_try="$ac_compile"
33560 case "(($ac_try" in
33561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33562   *) ac_try_echo=$ac_try;;
33563 esac
33564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33565   (eval "$ac_compile") 2>conftest.er1
33566   ac_status=$?
33567   grep -v '^ *+' conftest.er1 >conftest.err
33568   rm -f conftest.er1
33569   cat conftest.err >&5
33570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571   (exit $ac_status); } && {
33572          test -z "$ac_c_werror_flag" ||
33573          test ! -s conftest.err
33574        } && test -s conftest.$ac_objext; then
33575   ac_cv_type_daddr_t=yes
33576 else
33577   echo "$as_me: failed program was:" >&5
33578 sed 's/^/| /' conftest.$ac_ext >&5
33579
33580         ac_cv_type_daddr_t=no
33581 fi
33582
33583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33584 fi
33585 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33586 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33587 if test $ac_cv_type_daddr_t = yes; then
33588   :
33589 else
33590
33591 cat >>confdefs.h <<_ACEOF
33592 #define daddr_t long
33593 _ACEOF
33594
33595 fi
33596
33597 { echo "$as_me:$LINENO: checking for major_t" >&5
33598 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33599 if test "${ac_cv_type_major_t+set}" = set; then
33600   echo $ECHO_N "(cached) $ECHO_C" >&6
33601 else
33602   cat >conftest.$ac_ext <<_ACEOF
33603 /* confdefs.h.  */
33604 _ACEOF
33605 cat confdefs.h >>conftest.$ac_ext
33606 cat >>conftest.$ac_ext <<_ACEOF
33607 /* end confdefs.h.  */
33608 $ac_includes_default
33609 typedef major_t ac__type_new_;
33610 int
33611 main ()
33612 {
33613 if ((ac__type_new_ *) 0)
33614   return 0;
33615 if (sizeof (ac__type_new_))
33616   return 0;
33617   ;
33618   return 0;
33619 }
33620 _ACEOF
33621 rm -f conftest.$ac_objext
33622 if { (ac_try="$ac_compile"
33623 case "(($ac_try" in
33624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625   *) ac_try_echo=$ac_try;;
33626 esac
33627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628   (eval "$ac_compile") 2>conftest.er1
33629   ac_status=$?
33630   grep -v '^ *+' conftest.er1 >conftest.err
33631   rm -f conftest.er1
33632   cat conftest.err >&5
33633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634   (exit $ac_status); } && {
33635          test -z "$ac_c_werror_flag" ||
33636          test ! -s conftest.err
33637        } && test -s conftest.$ac_objext; then
33638   ac_cv_type_major_t=yes
33639 else
33640   echo "$as_me: failed program was:" >&5
33641 sed 's/^/| /' conftest.$ac_ext >&5
33642
33643         ac_cv_type_major_t=no
33644 fi
33645
33646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33647 fi
33648 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33649 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33650 if test $ac_cv_type_major_t = yes; then
33651   :
33652 else
33653
33654 cat >>confdefs.h <<_ACEOF
33655 #define major_t int
33656 _ACEOF
33657
33658 fi
33659
33660 { echo "$as_me:$LINENO: checking for minor_t" >&5
33661 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33662 if test "${ac_cv_type_minor_t+set}" = set; then
33663   echo $ECHO_N "(cached) $ECHO_C" >&6
33664 else
33665   cat >conftest.$ac_ext <<_ACEOF
33666 /* confdefs.h.  */
33667 _ACEOF
33668 cat confdefs.h >>conftest.$ac_ext
33669 cat >>conftest.$ac_ext <<_ACEOF
33670 /* end confdefs.h.  */
33671 $ac_includes_default
33672 typedef minor_t ac__type_new_;
33673 int
33674 main ()
33675 {
33676 if ((ac__type_new_ *) 0)
33677   return 0;
33678 if (sizeof (ac__type_new_))
33679   return 0;
33680   ;
33681   return 0;
33682 }
33683 _ACEOF
33684 rm -f conftest.$ac_objext
33685 if { (ac_try="$ac_compile"
33686 case "(($ac_try" in
33687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33688   *) ac_try_echo=$ac_try;;
33689 esac
33690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33691   (eval "$ac_compile") 2>conftest.er1
33692   ac_status=$?
33693   grep -v '^ *+' conftest.er1 >conftest.err
33694   rm -f conftest.er1
33695   cat conftest.err >&5
33696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697   (exit $ac_status); } && {
33698          test -z "$ac_c_werror_flag" ||
33699          test ! -s conftest.err
33700        } && test -s conftest.$ac_objext; then
33701   ac_cv_type_minor_t=yes
33702 else
33703   echo "$as_me: failed program was:" >&5
33704 sed 's/^/| /' conftest.$ac_ext >&5
33705
33706         ac_cv_type_minor_t=no
33707 fi
33708
33709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33710 fi
33711 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33712 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33713 if test $ac_cv_type_minor_t = yes; then
33714   :
33715 else
33716
33717 cat >>confdefs.h <<_ACEOF
33718 #define minor_t int
33719 _ACEOF
33720
33721 fi
33722
33723 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33724 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33725 if test "${ac_cv_type_ssize_t+set}" = set; then
33726   echo $ECHO_N "(cached) $ECHO_C" >&6
33727 else
33728   cat >conftest.$ac_ext <<_ACEOF
33729 /* confdefs.h.  */
33730 _ACEOF
33731 cat confdefs.h >>conftest.$ac_ext
33732 cat >>conftest.$ac_ext <<_ACEOF
33733 /* end confdefs.h.  */
33734 $ac_includes_default
33735 typedef ssize_t ac__type_new_;
33736 int
33737 main ()
33738 {
33739 if ((ac__type_new_ *) 0)
33740   return 0;
33741 if (sizeof (ac__type_new_))
33742   return 0;
33743   ;
33744   return 0;
33745 }
33746 _ACEOF
33747 rm -f conftest.$ac_objext
33748 if { (ac_try="$ac_compile"
33749 case "(($ac_try" in
33750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33751   *) ac_try_echo=$ac_try;;
33752 esac
33753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33754   (eval "$ac_compile") 2>conftest.er1
33755   ac_status=$?
33756   grep -v '^ *+' conftest.er1 >conftest.err
33757   rm -f conftest.er1
33758   cat conftest.err >&5
33759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33760   (exit $ac_status); } && {
33761          test -z "$ac_c_werror_flag" ||
33762          test ! -s conftest.err
33763        } && test -s conftest.$ac_objext; then
33764   ac_cv_type_ssize_t=yes
33765 else
33766   echo "$as_me: failed program was:" >&5
33767 sed 's/^/| /' conftest.$ac_ext >&5
33768
33769         ac_cv_type_ssize_t=no
33770 fi
33771
33772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33773 fi
33774 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33775 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33776 if test $ac_cv_type_ssize_t = yes; then
33777   :
33778 else
33779
33780 cat >>confdefs.h <<_ACEOF
33781 #define ssize_t int
33782 _ACEOF
33783
33784 fi
33785
33786 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33787 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33788 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33789   echo $ECHO_N "(cached) $ECHO_C" >&6
33790 else
33791   cat >conftest.$ac_ext <<_ACEOF
33792 /* confdefs.h.  */
33793 _ACEOF
33794 cat confdefs.h >>conftest.$ac_ext
33795 cat >>conftest.$ac_ext <<_ACEOF
33796 /* end confdefs.h.  */
33797 $ac_includes_default
33798 int
33799 main ()
33800 {
33801 static struct stat ac_aggr;
33802 if (ac_aggr.st_blocks)
33803 return 0;
33804   ;
33805   return 0;
33806 }
33807 _ACEOF
33808 rm -f conftest.$ac_objext
33809 if { (ac_try="$ac_compile"
33810 case "(($ac_try" in
33811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33812   *) ac_try_echo=$ac_try;;
33813 esac
33814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33815   (eval "$ac_compile") 2>conftest.er1
33816   ac_status=$?
33817   grep -v '^ *+' conftest.er1 >conftest.err
33818   rm -f conftest.er1
33819   cat conftest.err >&5
33820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821   (exit $ac_status); } && {
33822          test -z "$ac_c_werror_flag" ||
33823          test ! -s conftest.err
33824        } && test -s conftest.$ac_objext; then
33825   ac_cv_member_struct_stat_st_blocks=yes
33826 else
33827   echo "$as_me: failed program was:" >&5
33828 sed 's/^/| /' conftest.$ac_ext >&5
33829
33830         cat >conftest.$ac_ext <<_ACEOF
33831 /* confdefs.h.  */
33832 _ACEOF
33833 cat confdefs.h >>conftest.$ac_ext
33834 cat >>conftest.$ac_ext <<_ACEOF
33835 /* end confdefs.h.  */
33836 $ac_includes_default
33837 int
33838 main ()
33839 {
33840 static struct stat ac_aggr;
33841 if (sizeof ac_aggr.st_blocks)
33842 return 0;
33843   ;
33844   return 0;
33845 }
33846 _ACEOF
33847 rm -f conftest.$ac_objext
33848 if { (ac_try="$ac_compile"
33849 case "(($ac_try" in
33850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33851   *) ac_try_echo=$ac_try;;
33852 esac
33853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33854   (eval "$ac_compile") 2>conftest.er1
33855   ac_status=$?
33856   grep -v '^ *+' conftest.er1 >conftest.err
33857   rm -f conftest.er1
33858   cat conftest.err >&5
33859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860   (exit $ac_status); } && {
33861          test -z "$ac_c_werror_flag" ||
33862          test ! -s conftest.err
33863        } && test -s conftest.$ac_objext; then
33864   ac_cv_member_struct_stat_st_blocks=yes
33865 else
33866   echo "$as_me: failed program was:" >&5
33867 sed 's/^/| /' conftest.$ac_ext >&5
33868
33869         ac_cv_member_struct_stat_st_blocks=no
33870 fi
33871
33872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33873 fi
33874
33875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33876 fi
33877 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33878 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33879 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33880
33881 cat >>confdefs.h <<_ACEOF
33882 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33883 _ACEOF
33884
33885
33886 cat >>confdefs.h <<\_ACEOF
33887 #define HAVE_ST_BLOCKS 1
33888 _ACEOF
33889
33890 else
33891   case " $LIBOBJS " in
33892   *" fileblocks.$ac_objext "* ) ;;
33893   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33894  ;;
33895 esac
33896
33897 fi
33898
33899
33900 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33901 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33902 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33903   echo $ECHO_N "(cached) $ECHO_C" >&6
33904 else
33905   cat >conftest.$ac_ext <<_ACEOF
33906 /* confdefs.h.  */
33907 _ACEOF
33908 cat confdefs.h >>conftest.$ac_ext
33909 cat >>conftest.$ac_ext <<_ACEOF
33910 /* end confdefs.h.  */
33911 $ac_includes_default
33912 int
33913 main ()
33914 {
33915 static struct stat ac_aggr;
33916 if (ac_aggr.st_rdev)
33917 return 0;
33918   ;
33919   return 0;
33920 }
33921 _ACEOF
33922 rm -f conftest.$ac_objext
33923 if { (ac_try="$ac_compile"
33924 case "(($ac_try" in
33925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926   *) ac_try_echo=$ac_try;;
33927 esac
33928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929   (eval "$ac_compile") 2>conftest.er1
33930   ac_status=$?
33931   grep -v '^ *+' conftest.er1 >conftest.err
33932   rm -f conftest.er1
33933   cat conftest.err >&5
33934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935   (exit $ac_status); } && {
33936          test -z "$ac_c_werror_flag" ||
33937          test ! -s conftest.err
33938        } && test -s conftest.$ac_objext; then
33939   ac_cv_member_struct_stat_st_rdev=yes
33940 else
33941   echo "$as_me: failed program was:" >&5
33942 sed 's/^/| /' conftest.$ac_ext >&5
33943
33944         cat >conftest.$ac_ext <<_ACEOF
33945 /* confdefs.h.  */
33946 _ACEOF
33947 cat confdefs.h >>conftest.$ac_ext
33948 cat >>conftest.$ac_ext <<_ACEOF
33949 /* end confdefs.h.  */
33950 $ac_includes_default
33951 int
33952 main ()
33953 {
33954 static struct stat ac_aggr;
33955 if (sizeof ac_aggr.st_rdev)
33956 return 0;
33957   ;
33958   return 0;
33959 }
33960 _ACEOF
33961 rm -f conftest.$ac_objext
33962 if { (ac_try="$ac_compile"
33963 case "(($ac_try" in
33964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33965   *) ac_try_echo=$ac_try;;
33966 esac
33967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33968   (eval "$ac_compile") 2>conftest.er1
33969   ac_status=$?
33970   grep -v '^ *+' conftest.er1 >conftest.err
33971   rm -f conftest.er1
33972   cat conftest.err >&5
33973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974   (exit $ac_status); } && {
33975          test -z "$ac_c_werror_flag" ||
33976          test ! -s conftest.err
33977        } && test -s conftest.$ac_objext; then
33978   ac_cv_member_struct_stat_st_rdev=yes
33979 else
33980   echo "$as_me: failed program was:" >&5
33981 sed 's/^/| /' conftest.$ac_ext >&5
33982
33983         ac_cv_member_struct_stat_st_rdev=no
33984 fi
33985
33986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33987 fi
33988
33989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33990 fi
33991 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33992 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33993 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33994
33995 cat >>confdefs.h <<_ACEOF
33996 #define HAVE_STRUCT_STAT_ST_RDEV 1
33997 _ACEOF
33998
33999
34000 cat >>confdefs.h <<\_ACEOF
34001 #define HAVE_ST_RDEV 1
34002 _ACEOF
34003
34004 fi
34005
34006
34007 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34008 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34009 if test "${ac_cv_struct_tm+set}" = set; then
34010   echo $ECHO_N "(cached) $ECHO_C" >&6
34011 else
34012   cat >conftest.$ac_ext <<_ACEOF
34013 /* confdefs.h.  */
34014 _ACEOF
34015 cat confdefs.h >>conftest.$ac_ext
34016 cat >>conftest.$ac_ext <<_ACEOF
34017 /* end confdefs.h.  */
34018 #include <sys/types.h>
34019 #include <time.h>
34020
34021 int
34022 main ()
34023 {
34024 struct tm tm;
34025                                      int *p = &tm.tm_sec;
34026                                      return !p;
34027   ;
34028   return 0;
34029 }
34030 _ACEOF
34031 rm -f conftest.$ac_objext
34032 if { (ac_try="$ac_compile"
34033 case "(($ac_try" in
34034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34035   *) ac_try_echo=$ac_try;;
34036 esac
34037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34038   (eval "$ac_compile") 2>conftest.er1
34039   ac_status=$?
34040   grep -v '^ *+' conftest.er1 >conftest.err
34041   rm -f conftest.er1
34042   cat conftest.err >&5
34043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34044   (exit $ac_status); } && {
34045          test -z "$ac_c_werror_flag" ||
34046          test ! -s conftest.err
34047        } && test -s conftest.$ac_objext; then
34048   ac_cv_struct_tm=time.h
34049 else
34050   echo "$as_me: failed program was:" >&5
34051 sed 's/^/| /' conftest.$ac_ext >&5
34052
34053         ac_cv_struct_tm=sys/time.h
34054 fi
34055
34056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34057 fi
34058 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34059 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34060 if test $ac_cv_struct_tm = sys/time.h; then
34061
34062 cat >>confdefs.h <<\_ACEOF
34063 #define TM_IN_SYS_TIME 1
34064 _ACEOF
34065
34066 fi
34067
34068 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34069 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34070 if test "${ac_cv_c_const+set}" = set; then
34071   echo $ECHO_N "(cached) $ECHO_C" >&6
34072 else
34073   cat >conftest.$ac_ext <<_ACEOF
34074 /* confdefs.h.  */
34075 _ACEOF
34076 cat confdefs.h >>conftest.$ac_ext
34077 cat >>conftest.$ac_ext <<_ACEOF
34078 /* end confdefs.h.  */
34079
34080 int
34081 main ()
34082 {
34083 /* FIXME: Include the comments suggested by Paul. */
34084 #ifndef __cplusplus
34085   /* Ultrix mips cc rejects this.  */
34086   typedef int charset[2];
34087   const charset cs;
34088   /* SunOS 4.1.1 cc rejects this.  */
34089   char const *const *pcpcc;
34090   char **ppc;
34091   /* NEC SVR4.0.2 mips cc rejects this.  */
34092   struct point {int x, y;};
34093   static struct point const zero = {0,0};
34094   /* AIX XL C 1.02.0.0 rejects this.
34095      It does not let you subtract one const X* pointer from another in
34096      an arm of an if-expression whose if-part is not a constant
34097      expression */
34098   const char *g = "string";
34099   pcpcc = &g + (g ? g-g : 0);
34100   /* HPUX 7.0 cc rejects these. */
34101   ++pcpcc;
34102   ppc = (char**) pcpcc;
34103   pcpcc = (char const *const *) ppc;
34104   { /* SCO 3.2v4 cc rejects this.  */
34105     char *t;
34106     char const *s = 0 ? (char *) 0 : (char const *) 0;
34107
34108     *t++ = 0;
34109     if (s) return 0;
34110   }
34111   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34112     int x[] = {25, 17};
34113     const int *foo = &x[0];
34114     ++foo;
34115   }
34116   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34117     typedef const int *iptr;
34118     iptr p = 0;
34119     ++p;
34120   }
34121   { /* AIX XL C 1.02.0.0 rejects this saying
34122        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34123     struct s { int j; const int *ap[3]; };
34124     struct s *b; b->j = 5;
34125   }
34126   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34127     const int foo = 10;
34128     if (!foo) return 0;
34129   }
34130   return !cs[0] && !zero.x;
34131 #endif
34132
34133   ;
34134   return 0;
34135 }
34136 _ACEOF
34137 rm -f conftest.$ac_objext
34138 if { (ac_try="$ac_compile"
34139 case "(($ac_try" in
34140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34141   *) ac_try_echo=$ac_try;;
34142 esac
34143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34144   (eval "$ac_compile") 2>conftest.er1
34145   ac_status=$?
34146   grep -v '^ *+' conftest.er1 >conftest.err
34147   rm -f conftest.er1
34148   cat conftest.err >&5
34149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150   (exit $ac_status); } && {
34151          test -z "$ac_c_werror_flag" ||
34152          test ! -s conftest.err
34153        } && test -s conftest.$ac_objext; then
34154   ac_cv_c_const=yes
34155 else
34156   echo "$as_me: failed program was:" >&5
34157 sed 's/^/| /' conftest.$ac_ext >&5
34158
34159         ac_cv_c_const=no
34160 fi
34161
34162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34163 fi
34164 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34165 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34166 if test $ac_cv_c_const = no; then
34167
34168 cat >>confdefs.h <<\_ACEOF
34169 #define const
34170 _ACEOF
34171
34172 fi
34173
34174
34175 { echo "$as_me:$LINENO: checking for char" >&5
34176 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34177 if test "${ac_cv_type_char+set}" = set; then
34178   echo $ECHO_N "(cached) $ECHO_C" >&6
34179 else
34180   cat >conftest.$ac_ext <<_ACEOF
34181 /* confdefs.h.  */
34182 _ACEOF
34183 cat confdefs.h >>conftest.$ac_ext
34184 cat >>conftest.$ac_ext <<_ACEOF
34185 /* end confdefs.h.  */
34186 $ac_includes_default
34187 typedef char ac__type_new_;
34188 int
34189 main ()
34190 {
34191 if ((ac__type_new_ *) 0)
34192   return 0;
34193 if (sizeof (ac__type_new_))
34194   return 0;
34195   ;
34196   return 0;
34197 }
34198 _ACEOF
34199 rm -f conftest.$ac_objext
34200 if { (ac_try="$ac_compile"
34201 case "(($ac_try" in
34202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34203   *) ac_try_echo=$ac_try;;
34204 esac
34205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34206   (eval "$ac_compile") 2>conftest.er1
34207   ac_status=$?
34208   grep -v '^ *+' conftest.er1 >conftest.err
34209   rm -f conftest.er1
34210   cat conftest.err >&5
34211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212   (exit $ac_status); } && {
34213          test -z "$ac_c_werror_flag" ||
34214          test ! -s conftest.err
34215        } && test -s conftest.$ac_objext; then
34216   ac_cv_type_char=yes
34217 else
34218   echo "$as_me: failed program was:" >&5
34219 sed 's/^/| /' conftest.$ac_ext >&5
34220
34221         ac_cv_type_char=no
34222 fi
34223
34224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34225 fi
34226 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34227 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34228
34229 # The cast to long int works around a bug in the HP C Compiler
34230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34232 # This bug is HP SR number 8606223364.
34233 { echo "$as_me:$LINENO: checking size of char" >&5
34234 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34235 if test "${ac_cv_sizeof_char+set}" = set; then
34236   echo $ECHO_N "(cached) $ECHO_C" >&6
34237 else
34238   if test "$cross_compiling" = yes; then
34239   # Depending upon the size, compute the lo and hi bounds.
34240 cat >conftest.$ac_ext <<_ACEOF
34241 /* confdefs.h.  */
34242 _ACEOF
34243 cat confdefs.h >>conftest.$ac_ext
34244 cat >>conftest.$ac_ext <<_ACEOF
34245 /* end confdefs.h.  */
34246 $ac_includes_default
34247    typedef char ac__type_sizeof_;
34248 int
34249 main ()
34250 {
34251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34252 test_array [0] = 0
34253
34254   ;
34255   return 0;
34256 }
34257 _ACEOF
34258 rm -f conftest.$ac_objext
34259 if { (ac_try="$ac_compile"
34260 case "(($ac_try" in
34261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34262   *) ac_try_echo=$ac_try;;
34263 esac
34264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34265   (eval "$ac_compile") 2>conftest.er1
34266   ac_status=$?
34267   grep -v '^ *+' conftest.er1 >conftest.err
34268   rm -f conftest.er1
34269   cat conftest.err >&5
34270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271   (exit $ac_status); } && {
34272          test -z "$ac_c_werror_flag" ||
34273          test ! -s conftest.err
34274        } && test -s conftest.$ac_objext; then
34275   ac_lo=0 ac_mid=0
34276   while :; do
34277     cat >conftest.$ac_ext <<_ACEOF
34278 /* confdefs.h.  */
34279 _ACEOF
34280 cat confdefs.h >>conftest.$ac_ext
34281 cat >>conftest.$ac_ext <<_ACEOF
34282 /* end confdefs.h.  */
34283 $ac_includes_default
34284    typedef char ac__type_sizeof_;
34285 int
34286 main ()
34287 {
34288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34289 test_array [0] = 0
34290
34291   ;
34292   return 0;
34293 }
34294 _ACEOF
34295 rm -f conftest.$ac_objext
34296 if { (ac_try="$ac_compile"
34297 case "(($ac_try" in
34298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34299   *) ac_try_echo=$ac_try;;
34300 esac
34301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34302   (eval "$ac_compile") 2>conftest.er1
34303   ac_status=$?
34304   grep -v '^ *+' conftest.er1 >conftest.err
34305   rm -f conftest.er1
34306   cat conftest.err >&5
34307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308   (exit $ac_status); } && {
34309          test -z "$ac_c_werror_flag" ||
34310          test ! -s conftest.err
34311        } && test -s conftest.$ac_objext; then
34312   ac_hi=$ac_mid; break
34313 else
34314   echo "$as_me: failed program was:" >&5
34315 sed 's/^/| /' conftest.$ac_ext >&5
34316
34317         ac_lo=`expr $ac_mid + 1`
34318                         if test $ac_lo -le $ac_mid; then
34319                           ac_lo= ac_hi=
34320                           break
34321                         fi
34322                         ac_mid=`expr 2 '*' $ac_mid + 1`
34323 fi
34324
34325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34326   done
34327 else
34328   echo "$as_me: failed program was:" >&5
34329 sed 's/^/| /' conftest.$ac_ext >&5
34330
34331         cat >conftest.$ac_ext <<_ACEOF
34332 /* confdefs.h.  */
34333 _ACEOF
34334 cat confdefs.h >>conftest.$ac_ext
34335 cat >>conftest.$ac_ext <<_ACEOF
34336 /* end confdefs.h.  */
34337 $ac_includes_default
34338    typedef char ac__type_sizeof_;
34339 int
34340 main ()
34341 {
34342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34343 test_array [0] = 0
34344
34345   ;
34346   return 0;
34347 }
34348 _ACEOF
34349 rm -f conftest.$ac_objext
34350 if { (ac_try="$ac_compile"
34351 case "(($ac_try" in
34352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34353   *) ac_try_echo=$ac_try;;
34354 esac
34355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34356   (eval "$ac_compile") 2>conftest.er1
34357   ac_status=$?
34358   grep -v '^ *+' conftest.er1 >conftest.err
34359   rm -f conftest.er1
34360   cat conftest.err >&5
34361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34362   (exit $ac_status); } && {
34363          test -z "$ac_c_werror_flag" ||
34364          test ! -s conftest.err
34365        } && test -s conftest.$ac_objext; then
34366   ac_hi=-1 ac_mid=-1
34367   while :; do
34368     cat >conftest.$ac_ext <<_ACEOF
34369 /* confdefs.h.  */
34370 _ACEOF
34371 cat confdefs.h >>conftest.$ac_ext
34372 cat >>conftest.$ac_ext <<_ACEOF
34373 /* end confdefs.h.  */
34374 $ac_includes_default
34375    typedef char ac__type_sizeof_;
34376 int
34377 main ()
34378 {
34379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34380 test_array [0] = 0
34381
34382   ;
34383   return 0;
34384 }
34385 _ACEOF
34386 rm -f conftest.$ac_objext
34387 if { (ac_try="$ac_compile"
34388 case "(($ac_try" in
34389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34390   *) ac_try_echo=$ac_try;;
34391 esac
34392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34393   (eval "$ac_compile") 2>conftest.er1
34394   ac_status=$?
34395   grep -v '^ *+' conftest.er1 >conftest.err
34396   rm -f conftest.er1
34397   cat conftest.err >&5
34398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399   (exit $ac_status); } && {
34400          test -z "$ac_c_werror_flag" ||
34401          test ! -s conftest.err
34402        } && test -s conftest.$ac_objext; then
34403   ac_lo=$ac_mid; break
34404 else
34405   echo "$as_me: failed program was:" >&5
34406 sed 's/^/| /' conftest.$ac_ext >&5
34407
34408         ac_hi=`expr '(' $ac_mid ')' - 1`
34409                         if test $ac_mid -le $ac_hi; then
34410                           ac_lo= ac_hi=
34411                           break
34412                         fi
34413                         ac_mid=`expr 2 '*' $ac_mid`
34414 fi
34415
34416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34417   done
34418 else
34419   echo "$as_me: failed program was:" >&5
34420 sed 's/^/| /' conftest.$ac_ext >&5
34421
34422         ac_lo= ac_hi=
34423 fi
34424
34425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34426 fi
34427
34428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34429 # Binary search between lo and hi bounds.
34430 while test "x$ac_lo" != "x$ac_hi"; do
34431   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34432   cat >conftest.$ac_ext <<_ACEOF
34433 /* confdefs.h.  */
34434 _ACEOF
34435 cat confdefs.h >>conftest.$ac_ext
34436 cat >>conftest.$ac_ext <<_ACEOF
34437 /* end confdefs.h.  */
34438 $ac_includes_default
34439    typedef char ac__type_sizeof_;
34440 int
34441 main ()
34442 {
34443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34444 test_array [0] = 0
34445
34446   ;
34447   return 0;
34448 }
34449 _ACEOF
34450 rm -f conftest.$ac_objext
34451 if { (ac_try="$ac_compile"
34452 case "(($ac_try" in
34453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454   *) ac_try_echo=$ac_try;;
34455 esac
34456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34457   (eval "$ac_compile") 2>conftest.er1
34458   ac_status=$?
34459   grep -v '^ *+' conftest.er1 >conftest.err
34460   rm -f conftest.er1
34461   cat conftest.err >&5
34462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463   (exit $ac_status); } && {
34464          test -z "$ac_c_werror_flag" ||
34465          test ! -s conftest.err
34466        } && test -s conftest.$ac_objext; then
34467   ac_hi=$ac_mid
34468 else
34469   echo "$as_me: failed program was:" >&5
34470 sed 's/^/| /' conftest.$ac_ext >&5
34471
34472         ac_lo=`expr '(' $ac_mid ')' + 1`
34473 fi
34474
34475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34476 done
34477 case $ac_lo in
34478 ?*) ac_cv_sizeof_char=$ac_lo;;
34479 '') if test "$ac_cv_type_char" = yes; then
34480      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34481 See \`config.log' for more details." >&5
34482 echo "$as_me: error: cannot compute sizeof (char)
34483 See \`config.log' for more details." >&2;}
34484    { (exit 77); exit 77; }; }
34485    else
34486      ac_cv_sizeof_char=0
34487    fi ;;
34488 esac
34489 else
34490   cat >conftest.$ac_ext <<_ACEOF
34491 /* confdefs.h.  */
34492 _ACEOF
34493 cat confdefs.h >>conftest.$ac_ext
34494 cat >>conftest.$ac_ext <<_ACEOF
34495 /* end confdefs.h.  */
34496 $ac_includes_default
34497    typedef char ac__type_sizeof_;
34498 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34499 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34500 #include <stdio.h>
34501 #include <stdlib.h>
34502 int
34503 main ()
34504 {
34505
34506   FILE *f = fopen ("conftest.val", "w");
34507   if (! f)
34508     return 1;
34509   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34510     {
34511       long int i = longval ();
34512       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34513         return 1;
34514       fprintf (f, "%ld\n", i);
34515     }
34516   else
34517     {
34518       unsigned long int i = ulongval ();
34519       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34520         return 1;
34521       fprintf (f, "%lu\n", i);
34522     }
34523   return ferror (f) || fclose (f) != 0;
34524
34525   ;
34526   return 0;
34527 }
34528 _ACEOF
34529 rm -f conftest$ac_exeext
34530 if { (ac_try="$ac_link"
34531 case "(($ac_try" in
34532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34533   *) ac_try_echo=$ac_try;;
34534 esac
34535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34536   (eval "$ac_link") 2>&5
34537   ac_status=$?
34538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34540   { (case "(($ac_try" in
34541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34542   *) ac_try_echo=$ac_try;;
34543 esac
34544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34545   (eval "$ac_try") 2>&5
34546   ac_status=$?
34547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548   (exit $ac_status); }; }; then
34549   ac_cv_sizeof_char=`cat conftest.val`
34550 else
34551   echo "$as_me: program exited with status $ac_status" >&5
34552 echo "$as_me: failed program was:" >&5
34553 sed 's/^/| /' conftest.$ac_ext >&5
34554
34555 ( exit $ac_status )
34556 if test "$ac_cv_type_char" = yes; then
34557      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34558 See \`config.log' for more details." >&5
34559 echo "$as_me: error: cannot compute sizeof (char)
34560 See \`config.log' for more details." >&2;}
34561    { (exit 77); exit 77; }; }
34562    else
34563      ac_cv_sizeof_char=0
34564    fi
34565 fi
34566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34567 fi
34568 rm -f conftest.val
34569 fi
34570 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34571 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34572
34573
34574
34575 cat >>confdefs.h <<_ACEOF
34576 #define SIZEOF_CHAR $ac_cv_sizeof_char
34577 _ACEOF
34578
34579
34580 { echo "$as_me:$LINENO: checking for short int" >&5
34581 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34582 if test "${ac_cv_type_short_int+set}" = set; then
34583   echo $ECHO_N "(cached) $ECHO_C" >&6
34584 else
34585   cat >conftest.$ac_ext <<_ACEOF
34586 /* confdefs.h.  */
34587 _ACEOF
34588 cat confdefs.h >>conftest.$ac_ext
34589 cat >>conftest.$ac_ext <<_ACEOF
34590 /* end confdefs.h.  */
34591 $ac_includes_default
34592 typedef short int ac__type_new_;
34593 int
34594 main ()
34595 {
34596 if ((ac__type_new_ *) 0)
34597   return 0;
34598 if (sizeof (ac__type_new_))
34599   return 0;
34600   ;
34601   return 0;
34602 }
34603 _ACEOF
34604 rm -f conftest.$ac_objext
34605 if { (ac_try="$ac_compile"
34606 case "(($ac_try" in
34607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34608   *) ac_try_echo=$ac_try;;
34609 esac
34610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34611   (eval "$ac_compile") 2>conftest.er1
34612   ac_status=$?
34613   grep -v '^ *+' conftest.er1 >conftest.err
34614   rm -f conftest.er1
34615   cat conftest.err >&5
34616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34617   (exit $ac_status); } && {
34618          test -z "$ac_c_werror_flag" ||
34619          test ! -s conftest.err
34620        } && test -s conftest.$ac_objext; then
34621   ac_cv_type_short_int=yes
34622 else
34623   echo "$as_me: failed program was:" >&5
34624 sed 's/^/| /' conftest.$ac_ext >&5
34625
34626         ac_cv_type_short_int=no
34627 fi
34628
34629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34630 fi
34631 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34632 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34633
34634 # The cast to long int works around a bug in the HP C Compiler
34635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34637 # This bug is HP SR number 8606223364.
34638 { echo "$as_me:$LINENO: checking size of short int" >&5
34639 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34640 if test "${ac_cv_sizeof_short_int+set}" = set; then
34641   echo $ECHO_N "(cached) $ECHO_C" >&6
34642 else
34643   if test "$cross_compiling" = yes; then
34644   # Depending upon the size, compute the lo and hi bounds.
34645 cat >conftest.$ac_ext <<_ACEOF
34646 /* confdefs.h.  */
34647 _ACEOF
34648 cat confdefs.h >>conftest.$ac_ext
34649 cat >>conftest.$ac_ext <<_ACEOF
34650 /* end confdefs.h.  */
34651 $ac_includes_default
34652    typedef short int ac__type_sizeof_;
34653 int
34654 main ()
34655 {
34656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34657 test_array [0] = 0
34658
34659   ;
34660   return 0;
34661 }
34662 _ACEOF
34663 rm -f conftest.$ac_objext
34664 if { (ac_try="$ac_compile"
34665 case "(($ac_try" in
34666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34667   *) ac_try_echo=$ac_try;;
34668 esac
34669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34670   (eval "$ac_compile") 2>conftest.er1
34671   ac_status=$?
34672   grep -v '^ *+' conftest.er1 >conftest.err
34673   rm -f conftest.er1
34674   cat conftest.err >&5
34675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676   (exit $ac_status); } && {
34677          test -z "$ac_c_werror_flag" ||
34678          test ! -s conftest.err
34679        } && test -s conftest.$ac_objext; then
34680   ac_lo=0 ac_mid=0
34681   while :; do
34682     cat >conftest.$ac_ext <<_ACEOF
34683 /* confdefs.h.  */
34684 _ACEOF
34685 cat confdefs.h >>conftest.$ac_ext
34686 cat >>conftest.$ac_ext <<_ACEOF
34687 /* end confdefs.h.  */
34688 $ac_includes_default
34689    typedef short int ac__type_sizeof_;
34690 int
34691 main ()
34692 {
34693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34694 test_array [0] = 0
34695
34696   ;
34697   return 0;
34698 }
34699 _ACEOF
34700 rm -f conftest.$ac_objext
34701 if { (ac_try="$ac_compile"
34702 case "(($ac_try" in
34703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34704   *) ac_try_echo=$ac_try;;
34705 esac
34706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34707   (eval "$ac_compile") 2>conftest.er1
34708   ac_status=$?
34709   grep -v '^ *+' conftest.er1 >conftest.err
34710   rm -f conftest.er1
34711   cat conftest.err >&5
34712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713   (exit $ac_status); } && {
34714          test -z "$ac_c_werror_flag" ||
34715          test ! -s conftest.err
34716        } && test -s conftest.$ac_objext; then
34717   ac_hi=$ac_mid; break
34718 else
34719   echo "$as_me: failed program was:" >&5
34720 sed 's/^/| /' conftest.$ac_ext >&5
34721
34722         ac_lo=`expr $ac_mid + 1`
34723                         if test $ac_lo -le $ac_mid; then
34724                           ac_lo= ac_hi=
34725                           break
34726                         fi
34727                         ac_mid=`expr 2 '*' $ac_mid + 1`
34728 fi
34729
34730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34731   done
34732 else
34733   echo "$as_me: failed program was:" >&5
34734 sed 's/^/| /' conftest.$ac_ext >&5
34735
34736         cat >conftest.$ac_ext <<_ACEOF
34737 /* confdefs.h.  */
34738 _ACEOF
34739 cat confdefs.h >>conftest.$ac_ext
34740 cat >>conftest.$ac_ext <<_ACEOF
34741 /* end confdefs.h.  */
34742 $ac_includes_default
34743    typedef short int ac__type_sizeof_;
34744 int
34745 main ()
34746 {
34747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34748 test_array [0] = 0
34749
34750   ;
34751   return 0;
34752 }
34753 _ACEOF
34754 rm -f conftest.$ac_objext
34755 if { (ac_try="$ac_compile"
34756 case "(($ac_try" in
34757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34758   *) ac_try_echo=$ac_try;;
34759 esac
34760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34761   (eval "$ac_compile") 2>conftest.er1
34762   ac_status=$?
34763   grep -v '^ *+' conftest.er1 >conftest.err
34764   rm -f conftest.er1
34765   cat conftest.err >&5
34766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767   (exit $ac_status); } && {
34768          test -z "$ac_c_werror_flag" ||
34769          test ! -s conftest.err
34770        } && test -s conftest.$ac_objext; then
34771   ac_hi=-1 ac_mid=-1
34772   while :; do
34773     cat >conftest.$ac_ext <<_ACEOF
34774 /* confdefs.h.  */
34775 _ACEOF
34776 cat confdefs.h >>conftest.$ac_ext
34777 cat >>conftest.$ac_ext <<_ACEOF
34778 /* end confdefs.h.  */
34779 $ac_includes_default
34780    typedef short int ac__type_sizeof_;
34781 int
34782 main ()
34783 {
34784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34785 test_array [0] = 0
34786
34787   ;
34788   return 0;
34789 }
34790 _ACEOF
34791 rm -f conftest.$ac_objext
34792 if { (ac_try="$ac_compile"
34793 case "(($ac_try" in
34794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34795   *) ac_try_echo=$ac_try;;
34796 esac
34797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34798   (eval "$ac_compile") 2>conftest.er1
34799   ac_status=$?
34800   grep -v '^ *+' conftest.er1 >conftest.err
34801   rm -f conftest.er1
34802   cat conftest.err >&5
34803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804   (exit $ac_status); } && {
34805          test -z "$ac_c_werror_flag" ||
34806          test ! -s conftest.err
34807        } && test -s conftest.$ac_objext; then
34808   ac_lo=$ac_mid; break
34809 else
34810   echo "$as_me: failed program was:" >&5
34811 sed 's/^/| /' conftest.$ac_ext >&5
34812
34813         ac_hi=`expr '(' $ac_mid ')' - 1`
34814                         if test $ac_mid -le $ac_hi; then
34815                           ac_lo= ac_hi=
34816                           break
34817                         fi
34818                         ac_mid=`expr 2 '*' $ac_mid`
34819 fi
34820
34821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34822   done
34823 else
34824   echo "$as_me: failed program was:" >&5
34825 sed 's/^/| /' conftest.$ac_ext >&5
34826
34827         ac_lo= ac_hi=
34828 fi
34829
34830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34831 fi
34832
34833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34834 # Binary search between lo and hi bounds.
34835 while test "x$ac_lo" != "x$ac_hi"; do
34836   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34837   cat >conftest.$ac_ext <<_ACEOF
34838 /* confdefs.h.  */
34839 _ACEOF
34840 cat confdefs.h >>conftest.$ac_ext
34841 cat >>conftest.$ac_ext <<_ACEOF
34842 /* end confdefs.h.  */
34843 $ac_includes_default
34844    typedef short int ac__type_sizeof_;
34845 int
34846 main ()
34847 {
34848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34849 test_array [0] = 0
34850
34851   ;
34852   return 0;
34853 }
34854 _ACEOF
34855 rm -f conftest.$ac_objext
34856 if { (ac_try="$ac_compile"
34857 case "(($ac_try" in
34858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34859   *) ac_try_echo=$ac_try;;
34860 esac
34861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34862   (eval "$ac_compile") 2>conftest.er1
34863   ac_status=$?
34864   grep -v '^ *+' conftest.er1 >conftest.err
34865   rm -f conftest.er1
34866   cat conftest.err >&5
34867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868   (exit $ac_status); } && {
34869          test -z "$ac_c_werror_flag" ||
34870          test ! -s conftest.err
34871        } && test -s conftest.$ac_objext; then
34872   ac_hi=$ac_mid
34873 else
34874   echo "$as_me: failed program was:" >&5
34875 sed 's/^/| /' conftest.$ac_ext >&5
34876
34877         ac_lo=`expr '(' $ac_mid ')' + 1`
34878 fi
34879
34880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34881 done
34882 case $ac_lo in
34883 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34884 '') if test "$ac_cv_type_short_int" = yes; then
34885      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34886 See \`config.log' for more details." >&5
34887 echo "$as_me: error: cannot compute sizeof (short int)
34888 See \`config.log' for more details." >&2;}
34889    { (exit 77); exit 77; }; }
34890    else
34891      ac_cv_sizeof_short_int=0
34892    fi ;;
34893 esac
34894 else
34895   cat >conftest.$ac_ext <<_ACEOF
34896 /* confdefs.h.  */
34897 _ACEOF
34898 cat confdefs.h >>conftest.$ac_ext
34899 cat >>conftest.$ac_ext <<_ACEOF
34900 /* end confdefs.h.  */
34901 $ac_includes_default
34902    typedef short int ac__type_sizeof_;
34903 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34904 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34905 #include <stdio.h>
34906 #include <stdlib.h>
34907 int
34908 main ()
34909 {
34910
34911   FILE *f = fopen ("conftest.val", "w");
34912   if (! f)
34913     return 1;
34914   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34915     {
34916       long int i = longval ();
34917       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34918         return 1;
34919       fprintf (f, "%ld\n", i);
34920     }
34921   else
34922     {
34923       unsigned long int i = ulongval ();
34924       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34925         return 1;
34926       fprintf (f, "%lu\n", i);
34927     }
34928   return ferror (f) || fclose (f) != 0;
34929
34930   ;
34931   return 0;
34932 }
34933 _ACEOF
34934 rm -f conftest$ac_exeext
34935 if { (ac_try="$ac_link"
34936 case "(($ac_try" in
34937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34938   *) ac_try_echo=$ac_try;;
34939 esac
34940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34941   (eval "$ac_link") 2>&5
34942   ac_status=$?
34943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34945   { (case "(($ac_try" in
34946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34947   *) ac_try_echo=$ac_try;;
34948 esac
34949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34950   (eval "$ac_try") 2>&5
34951   ac_status=$?
34952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953   (exit $ac_status); }; }; then
34954   ac_cv_sizeof_short_int=`cat conftest.val`
34955 else
34956   echo "$as_me: program exited with status $ac_status" >&5
34957 echo "$as_me: failed program was:" >&5
34958 sed 's/^/| /' conftest.$ac_ext >&5
34959
34960 ( exit $ac_status )
34961 if test "$ac_cv_type_short_int" = yes; then
34962      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34963 See \`config.log' for more details." >&5
34964 echo "$as_me: error: cannot compute sizeof (short int)
34965 See \`config.log' for more details." >&2;}
34966    { (exit 77); exit 77; }; }
34967    else
34968      ac_cv_sizeof_short_int=0
34969    fi
34970 fi
34971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34972 fi
34973 rm -f conftest.val
34974 fi
34975 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34976 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34977
34978
34979
34980 cat >>confdefs.h <<_ACEOF
34981 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34982 _ACEOF
34983
34984
34985 { echo "$as_me:$LINENO: checking for int" >&5
34986 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34987 if test "${ac_cv_type_int+set}" = set; then
34988   echo $ECHO_N "(cached) $ECHO_C" >&6
34989 else
34990   cat >conftest.$ac_ext <<_ACEOF
34991 /* confdefs.h.  */
34992 _ACEOF
34993 cat confdefs.h >>conftest.$ac_ext
34994 cat >>conftest.$ac_ext <<_ACEOF
34995 /* end confdefs.h.  */
34996 $ac_includes_default
34997 typedef int ac__type_new_;
34998 int
34999 main ()
35000 {
35001 if ((ac__type_new_ *) 0)
35002   return 0;
35003 if (sizeof (ac__type_new_))
35004   return 0;
35005   ;
35006   return 0;
35007 }
35008 _ACEOF
35009 rm -f conftest.$ac_objext
35010 if { (ac_try="$ac_compile"
35011 case "(($ac_try" in
35012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35013   *) ac_try_echo=$ac_try;;
35014 esac
35015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35016   (eval "$ac_compile") 2>conftest.er1
35017   ac_status=$?
35018   grep -v '^ *+' conftest.er1 >conftest.err
35019   rm -f conftest.er1
35020   cat conftest.err >&5
35021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35022   (exit $ac_status); } && {
35023          test -z "$ac_c_werror_flag" ||
35024          test ! -s conftest.err
35025        } && test -s conftest.$ac_objext; then
35026   ac_cv_type_int=yes
35027 else
35028   echo "$as_me: failed program was:" >&5
35029 sed 's/^/| /' conftest.$ac_ext >&5
35030
35031         ac_cv_type_int=no
35032 fi
35033
35034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35035 fi
35036 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35037 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35038
35039 # The cast to long int works around a bug in the HP C Compiler
35040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35042 # This bug is HP SR number 8606223364.
35043 { echo "$as_me:$LINENO: checking size of int" >&5
35044 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35045 if test "${ac_cv_sizeof_int+set}" = set; then
35046   echo $ECHO_N "(cached) $ECHO_C" >&6
35047 else
35048   if test "$cross_compiling" = yes; then
35049   # Depending upon the size, compute the lo and hi bounds.
35050 cat >conftest.$ac_ext <<_ACEOF
35051 /* confdefs.h.  */
35052 _ACEOF
35053 cat confdefs.h >>conftest.$ac_ext
35054 cat >>conftest.$ac_ext <<_ACEOF
35055 /* end confdefs.h.  */
35056 $ac_includes_default
35057    typedef int ac__type_sizeof_;
35058 int
35059 main ()
35060 {
35061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35062 test_array [0] = 0
35063
35064   ;
35065   return 0;
35066 }
35067 _ACEOF
35068 rm -f conftest.$ac_objext
35069 if { (ac_try="$ac_compile"
35070 case "(($ac_try" in
35071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35072   *) ac_try_echo=$ac_try;;
35073 esac
35074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35075   (eval "$ac_compile") 2>conftest.er1
35076   ac_status=$?
35077   grep -v '^ *+' conftest.er1 >conftest.err
35078   rm -f conftest.er1
35079   cat conftest.err >&5
35080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081   (exit $ac_status); } && {
35082          test -z "$ac_c_werror_flag" ||
35083          test ! -s conftest.err
35084        } && test -s conftest.$ac_objext; then
35085   ac_lo=0 ac_mid=0
35086   while :; do
35087     cat >conftest.$ac_ext <<_ACEOF
35088 /* confdefs.h.  */
35089 _ACEOF
35090 cat confdefs.h >>conftest.$ac_ext
35091 cat >>conftest.$ac_ext <<_ACEOF
35092 /* end confdefs.h.  */
35093 $ac_includes_default
35094    typedef int ac__type_sizeof_;
35095 int
35096 main ()
35097 {
35098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35099 test_array [0] = 0
35100
35101   ;
35102   return 0;
35103 }
35104 _ACEOF
35105 rm -f conftest.$ac_objext
35106 if { (ac_try="$ac_compile"
35107 case "(($ac_try" in
35108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35109   *) ac_try_echo=$ac_try;;
35110 esac
35111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35112   (eval "$ac_compile") 2>conftest.er1
35113   ac_status=$?
35114   grep -v '^ *+' conftest.er1 >conftest.err
35115   rm -f conftest.er1
35116   cat conftest.err >&5
35117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118   (exit $ac_status); } && {
35119          test -z "$ac_c_werror_flag" ||
35120          test ! -s conftest.err
35121        } && test -s conftest.$ac_objext; then
35122   ac_hi=$ac_mid; break
35123 else
35124   echo "$as_me: failed program was:" >&5
35125 sed 's/^/| /' conftest.$ac_ext >&5
35126
35127         ac_lo=`expr $ac_mid + 1`
35128                         if test $ac_lo -le $ac_mid; then
35129                           ac_lo= ac_hi=
35130                           break
35131                         fi
35132                         ac_mid=`expr 2 '*' $ac_mid + 1`
35133 fi
35134
35135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35136   done
35137 else
35138   echo "$as_me: failed program was:" >&5
35139 sed 's/^/| /' conftest.$ac_ext >&5
35140
35141         cat >conftest.$ac_ext <<_ACEOF
35142 /* confdefs.h.  */
35143 _ACEOF
35144 cat confdefs.h >>conftest.$ac_ext
35145 cat >>conftest.$ac_ext <<_ACEOF
35146 /* end confdefs.h.  */
35147 $ac_includes_default
35148    typedef int ac__type_sizeof_;
35149 int
35150 main ()
35151 {
35152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35153 test_array [0] = 0
35154
35155   ;
35156   return 0;
35157 }
35158 _ACEOF
35159 rm -f conftest.$ac_objext
35160 if { (ac_try="$ac_compile"
35161 case "(($ac_try" in
35162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35163   *) ac_try_echo=$ac_try;;
35164 esac
35165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35166   (eval "$ac_compile") 2>conftest.er1
35167   ac_status=$?
35168   grep -v '^ *+' conftest.er1 >conftest.err
35169   rm -f conftest.er1
35170   cat conftest.err >&5
35171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172   (exit $ac_status); } && {
35173          test -z "$ac_c_werror_flag" ||
35174          test ! -s conftest.err
35175        } && test -s conftest.$ac_objext; then
35176   ac_hi=-1 ac_mid=-1
35177   while :; do
35178     cat >conftest.$ac_ext <<_ACEOF
35179 /* confdefs.h.  */
35180 _ACEOF
35181 cat confdefs.h >>conftest.$ac_ext
35182 cat >>conftest.$ac_ext <<_ACEOF
35183 /* end confdefs.h.  */
35184 $ac_includes_default
35185    typedef int ac__type_sizeof_;
35186 int
35187 main ()
35188 {
35189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35190 test_array [0] = 0
35191
35192   ;
35193   return 0;
35194 }
35195 _ACEOF
35196 rm -f conftest.$ac_objext
35197 if { (ac_try="$ac_compile"
35198 case "(($ac_try" in
35199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35200   *) ac_try_echo=$ac_try;;
35201 esac
35202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35203   (eval "$ac_compile") 2>conftest.er1
35204   ac_status=$?
35205   grep -v '^ *+' conftest.er1 >conftest.err
35206   rm -f conftest.er1
35207   cat conftest.err >&5
35208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209   (exit $ac_status); } && {
35210          test -z "$ac_c_werror_flag" ||
35211          test ! -s conftest.err
35212        } && test -s conftest.$ac_objext; then
35213   ac_lo=$ac_mid; break
35214 else
35215   echo "$as_me: failed program was:" >&5
35216 sed 's/^/| /' conftest.$ac_ext >&5
35217
35218         ac_hi=`expr '(' $ac_mid ')' - 1`
35219                         if test $ac_mid -le $ac_hi; then
35220                           ac_lo= ac_hi=
35221                           break
35222                         fi
35223                         ac_mid=`expr 2 '*' $ac_mid`
35224 fi
35225
35226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35227   done
35228 else
35229   echo "$as_me: failed program was:" >&5
35230 sed 's/^/| /' conftest.$ac_ext >&5
35231
35232         ac_lo= ac_hi=
35233 fi
35234
35235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35236 fi
35237
35238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35239 # Binary search between lo and hi bounds.
35240 while test "x$ac_lo" != "x$ac_hi"; do
35241   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35242   cat >conftest.$ac_ext <<_ACEOF
35243 /* confdefs.h.  */
35244 _ACEOF
35245 cat confdefs.h >>conftest.$ac_ext
35246 cat >>conftest.$ac_ext <<_ACEOF
35247 /* end confdefs.h.  */
35248 $ac_includes_default
35249    typedef int ac__type_sizeof_;
35250 int
35251 main ()
35252 {
35253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35254 test_array [0] = 0
35255
35256   ;
35257   return 0;
35258 }
35259 _ACEOF
35260 rm -f conftest.$ac_objext
35261 if { (ac_try="$ac_compile"
35262 case "(($ac_try" in
35263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35264   *) ac_try_echo=$ac_try;;
35265 esac
35266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35267   (eval "$ac_compile") 2>conftest.er1
35268   ac_status=$?
35269   grep -v '^ *+' conftest.er1 >conftest.err
35270   rm -f conftest.er1
35271   cat conftest.err >&5
35272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273   (exit $ac_status); } && {
35274          test -z "$ac_c_werror_flag" ||
35275          test ! -s conftest.err
35276        } && test -s conftest.$ac_objext; then
35277   ac_hi=$ac_mid
35278 else
35279   echo "$as_me: failed program was:" >&5
35280 sed 's/^/| /' conftest.$ac_ext >&5
35281
35282         ac_lo=`expr '(' $ac_mid ')' + 1`
35283 fi
35284
35285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35286 done
35287 case $ac_lo in
35288 ?*) ac_cv_sizeof_int=$ac_lo;;
35289 '') if test "$ac_cv_type_int" = yes; then
35290      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35291 See \`config.log' for more details." >&5
35292 echo "$as_me: error: cannot compute sizeof (int)
35293 See \`config.log' for more details." >&2;}
35294    { (exit 77); exit 77; }; }
35295    else
35296      ac_cv_sizeof_int=0
35297    fi ;;
35298 esac
35299 else
35300   cat >conftest.$ac_ext <<_ACEOF
35301 /* confdefs.h.  */
35302 _ACEOF
35303 cat confdefs.h >>conftest.$ac_ext
35304 cat >>conftest.$ac_ext <<_ACEOF
35305 /* end confdefs.h.  */
35306 $ac_includes_default
35307    typedef int ac__type_sizeof_;
35308 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35309 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35310 #include <stdio.h>
35311 #include <stdlib.h>
35312 int
35313 main ()
35314 {
35315
35316   FILE *f = fopen ("conftest.val", "w");
35317   if (! f)
35318     return 1;
35319   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35320     {
35321       long int i = longval ();
35322       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35323         return 1;
35324       fprintf (f, "%ld\n", i);
35325     }
35326   else
35327     {
35328       unsigned long int i = ulongval ();
35329       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35330         return 1;
35331       fprintf (f, "%lu\n", i);
35332     }
35333   return ferror (f) || fclose (f) != 0;
35334
35335   ;
35336   return 0;
35337 }
35338 _ACEOF
35339 rm -f conftest$ac_exeext
35340 if { (ac_try="$ac_link"
35341 case "(($ac_try" in
35342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35343   *) ac_try_echo=$ac_try;;
35344 esac
35345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35346   (eval "$ac_link") 2>&5
35347   ac_status=$?
35348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35350   { (case "(($ac_try" in
35351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35352   *) ac_try_echo=$ac_try;;
35353 esac
35354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35355   (eval "$ac_try") 2>&5
35356   ac_status=$?
35357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358   (exit $ac_status); }; }; then
35359   ac_cv_sizeof_int=`cat conftest.val`
35360 else
35361   echo "$as_me: program exited with status $ac_status" >&5
35362 echo "$as_me: failed program was:" >&5
35363 sed 's/^/| /' conftest.$ac_ext >&5
35364
35365 ( exit $ac_status )
35366 if test "$ac_cv_type_int" = yes; then
35367      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35368 See \`config.log' for more details." >&5
35369 echo "$as_me: error: cannot compute sizeof (int)
35370 See \`config.log' for more details." >&2;}
35371    { (exit 77); exit 77; }; }
35372    else
35373      ac_cv_sizeof_int=0
35374    fi
35375 fi
35376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35377 fi
35378 rm -f conftest.val
35379 fi
35380 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35381 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35382
35383
35384
35385 cat >>confdefs.h <<_ACEOF
35386 #define SIZEOF_INT $ac_cv_sizeof_int
35387 _ACEOF
35388
35389
35390 { echo "$as_me:$LINENO: checking for long int" >&5
35391 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35392 if test "${ac_cv_type_long_int+set}" = set; then
35393   echo $ECHO_N "(cached) $ECHO_C" >&6
35394 else
35395   cat >conftest.$ac_ext <<_ACEOF
35396 /* confdefs.h.  */
35397 _ACEOF
35398 cat confdefs.h >>conftest.$ac_ext
35399 cat >>conftest.$ac_ext <<_ACEOF
35400 /* end confdefs.h.  */
35401 $ac_includes_default
35402 typedef long int ac__type_new_;
35403 int
35404 main ()
35405 {
35406 if ((ac__type_new_ *) 0)
35407   return 0;
35408 if (sizeof (ac__type_new_))
35409   return 0;
35410   ;
35411   return 0;
35412 }
35413 _ACEOF
35414 rm -f conftest.$ac_objext
35415 if { (ac_try="$ac_compile"
35416 case "(($ac_try" in
35417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35418   *) ac_try_echo=$ac_try;;
35419 esac
35420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35421   (eval "$ac_compile") 2>conftest.er1
35422   ac_status=$?
35423   grep -v '^ *+' conftest.er1 >conftest.err
35424   rm -f conftest.er1
35425   cat conftest.err >&5
35426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35427   (exit $ac_status); } && {
35428          test -z "$ac_c_werror_flag" ||
35429          test ! -s conftest.err
35430        } && test -s conftest.$ac_objext; then
35431   ac_cv_type_long_int=yes
35432 else
35433   echo "$as_me: failed program was:" >&5
35434 sed 's/^/| /' conftest.$ac_ext >&5
35435
35436         ac_cv_type_long_int=no
35437 fi
35438
35439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35440 fi
35441 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35442 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35443
35444 # The cast to long int works around a bug in the HP C Compiler
35445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35447 # This bug is HP SR number 8606223364.
35448 { echo "$as_me:$LINENO: checking size of long int" >&5
35449 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35450 if test "${ac_cv_sizeof_long_int+set}" = set; then
35451   echo $ECHO_N "(cached) $ECHO_C" >&6
35452 else
35453   if test "$cross_compiling" = yes; then
35454   # Depending upon the size, compute the lo and hi bounds.
35455 cat >conftest.$ac_ext <<_ACEOF
35456 /* confdefs.h.  */
35457 _ACEOF
35458 cat confdefs.h >>conftest.$ac_ext
35459 cat >>conftest.$ac_ext <<_ACEOF
35460 /* end confdefs.h.  */
35461 $ac_includes_default
35462    typedef long int ac__type_sizeof_;
35463 int
35464 main ()
35465 {
35466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35467 test_array [0] = 0
35468
35469   ;
35470   return 0;
35471 }
35472 _ACEOF
35473 rm -f conftest.$ac_objext
35474 if { (ac_try="$ac_compile"
35475 case "(($ac_try" in
35476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35477   *) ac_try_echo=$ac_try;;
35478 esac
35479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35480   (eval "$ac_compile") 2>conftest.er1
35481   ac_status=$?
35482   grep -v '^ *+' conftest.er1 >conftest.err
35483   rm -f conftest.er1
35484   cat conftest.err >&5
35485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486   (exit $ac_status); } && {
35487          test -z "$ac_c_werror_flag" ||
35488          test ! -s conftest.err
35489        } && test -s conftest.$ac_objext; then
35490   ac_lo=0 ac_mid=0
35491   while :; do
35492     cat >conftest.$ac_ext <<_ACEOF
35493 /* confdefs.h.  */
35494 _ACEOF
35495 cat confdefs.h >>conftest.$ac_ext
35496 cat >>conftest.$ac_ext <<_ACEOF
35497 /* end confdefs.h.  */
35498 $ac_includes_default
35499    typedef long int ac__type_sizeof_;
35500 int
35501 main ()
35502 {
35503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35504 test_array [0] = 0
35505
35506   ;
35507   return 0;
35508 }
35509 _ACEOF
35510 rm -f conftest.$ac_objext
35511 if { (ac_try="$ac_compile"
35512 case "(($ac_try" in
35513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35514   *) ac_try_echo=$ac_try;;
35515 esac
35516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35517   (eval "$ac_compile") 2>conftest.er1
35518   ac_status=$?
35519   grep -v '^ *+' conftest.er1 >conftest.err
35520   rm -f conftest.er1
35521   cat conftest.err >&5
35522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35523   (exit $ac_status); } && {
35524          test -z "$ac_c_werror_flag" ||
35525          test ! -s conftest.err
35526        } && test -s conftest.$ac_objext; then
35527   ac_hi=$ac_mid; break
35528 else
35529   echo "$as_me: failed program was:" >&5
35530 sed 's/^/| /' conftest.$ac_ext >&5
35531
35532         ac_lo=`expr $ac_mid + 1`
35533                         if test $ac_lo -le $ac_mid; then
35534                           ac_lo= ac_hi=
35535                           break
35536                         fi
35537                         ac_mid=`expr 2 '*' $ac_mid + 1`
35538 fi
35539
35540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35541   done
35542 else
35543   echo "$as_me: failed program was:" >&5
35544 sed 's/^/| /' conftest.$ac_ext >&5
35545
35546         cat >conftest.$ac_ext <<_ACEOF
35547 /* confdefs.h.  */
35548 _ACEOF
35549 cat confdefs.h >>conftest.$ac_ext
35550 cat >>conftest.$ac_ext <<_ACEOF
35551 /* end confdefs.h.  */
35552 $ac_includes_default
35553    typedef long int ac__type_sizeof_;
35554 int
35555 main ()
35556 {
35557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35558 test_array [0] = 0
35559
35560   ;
35561   return 0;
35562 }
35563 _ACEOF
35564 rm -f conftest.$ac_objext
35565 if { (ac_try="$ac_compile"
35566 case "(($ac_try" in
35567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35568   *) ac_try_echo=$ac_try;;
35569 esac
35570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35571   (eval "$ac_compile") 2>conftest.er1
35572   ac_status=$?
35573   grep -v '^ *+' conftest.er1 >conftest.err
35574   rm -f conftest.er1
35575   cat conftest.err >&5
35576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577   (exit $ac_status); } && {
35578          test -z "$ac_c_werror_flag" ||
35579          test ! -s conftest.err
35580        } && test -s conftest.$ac_objext; then
35581   ac_hi=-1 ac_mid=-1
35582   while :; do
35583     cat >conftest.$ac_ext <<_ACEOF
35584 /* confdefs.h.  */
35585 _ACEOF
35586 cat confdefs.h >>conftest.$ac_ext
35587 cat >>conftest.$ac_ext <<_ACEOF
35588 /* end confdefs.h.  */
35589 $ac_includes_default
35590    typedef long int ac__type_sizeof_;
35591 int
35592 main ()
35593 {
35594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35595 test_array [0] = 0
35596
35597   ;
35598   return 0;
35599 }
35600 _ACEOF
35601 rm -f conftest.$ac_objext
35602 if { (ac_try="$ac_compile"
35603 case "(($ac_try" in
35604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35605   *) ac_try_echo=$ac_try;;
35606 esac
35607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35608   (eval "$ac_compile") 2>conftest.er1
35609   ac_status=$?
35610   grep -v '^ *+' conftest.er1 >conftest.err
35611   rm -f conftest.er1
35612   cat conftest.err >&5
35613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614   (exit $ac_status); } && {
35615          test -z "$ac_c_werror_flag" ||
35616          test ! -s conftest.err
35617        } && test -s conftest.$ac_objext; then
35618   ac_lo=$ac_mid; break
35619 else
35620   echo "$as_me: failed program was:" >&5
35621 sed 's/^/| /' conftest.$ac_ext >&5
35622
35623         ac_hi=`expr '(' $ac_mid ')' - 1`
35624                         if test $ac_mid -le $ac_hi; then
35625                           ac_lo= ac_hi=
35626                           break
35627                         fi
35628                         ac_mid=`expr 2 '*' $ac_mid`
35629 fi
35630
35631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35632   done
35633 else
35634   echo "$as_me: failed program was:" >&5
35635 sed 's/^/| /' conftest.$ac_ext >&5
35636
35637         ac_lo= ac_hi=
35638 fi
35639
35640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35641 fi
35642
35643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35644 # Binary search between lo and hi bounds.
35645 while test "x$ac_lo" != "x$ac_hi"; do
35646   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35647   cat >conftest.$ac_ext <<_ACEOF
35648 /* confdefs.h.  */
35649 _ACEOF
35650 cat confdefs.h >>conftest.$ac_ext
35651 cat >>conftest.$ac_ext <<_ACEOF
35652 /* end confdefs.h.  */
35653 $ac_includes_default
35654    typedef long int ac__type_sizeof_;
35655 int
35656 main ()
35657 {
35658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35659 test_array [0] = 0
35660
35661   ;
35662   return 0;
35663 }
35664 _ACEOF
35665 rm -f conftest.$ac_objext
35666 if { (ac_try="$ac_compile"
35667 case "(($ac_try" in
35668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35669   *) ac_try_echo=$ac_try;;
35670 esac
35671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35672   (eval "$ac_compile") 2>conftest.er1
35673   ac_status=$?
35674   grep -v '^ *+' conftest.er1 >conftest.err
35675   rm -f conftest.er1
35676   cat conftest.err >&5
35677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678   (exit $ac_status); } && {
35679          test -z "$ac_c_werror_flag" ||
35680          test ! -s conftest.err
35681        } && test -s conftest.$ac_objext; then
35682   ac_hi=$ac_mid
35683 else
35684   echo "$as_me: failed program was:" >&5
35685 sed 's/^/| /' conftest.$ac_ext >&5
35686
35687         ac_lo=`expr '(' $ac_mid ')' + 1`
35688 fi
35689
35690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35691 done
35692 case $ac_lo in
35693 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35694 '') if test "$ac_cv_type_long_int" = yes; then
35695      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35696 See \`config.log' for more details." >&5
35697 echo "$as_me: error: cannot compute sizeof (long int)
35698 See \`config.log' for more details." >&2;}
35699    { (exit 77); exit 77; }; }
35700    else
35701      ac_cv_sizeof_long_int=0
35702    fi ;;
35703 esac
35704 else
35705   cat >conftest.$ac_ext <<_ACEOF
35706 /* confdefs.h.  */
35707 _ACEOF
35708 cat confdefs.h >>conftest.$ac_ext
35709 cat >>conftest.$ac_ext <<_ACEOF
35710 /* end confdefs.h.  */
35711 $ac_includes_default
35712    typedef long int ac__type_sizeof_;
35713 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35714 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35715 #include <stdio.h>
35716 #include <stdlib.h>
35717 int
35718 main ()
35719 {
35720
35721   FILE *f = fopen ("conftest.val", "w");
35722   if (! f)
35723     return 1;
35724   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35725     {
35726       long int i = longval ();
35727       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35728         return 1;
35729       fprintf (f, "%ld\n", i);
35730     }
35731   else
35732     {
35733       unsigned long int i = ulongval ();
35734       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35735         return 1;
35736       fprintf (f, "%lu\n", i);
35737     }
35738   return ferror (f) || fclose (f) != 0;
35739
35740   ;
35741   return 0;
35742 }
35743 _ACEOF
35744 rm -f conftest$ac_exeext
35745 if { (ac_try="$ac_link"
35746 case "(($ac_try" in
35747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35748   *) ac_try_echo=$ac_try;;
35749 esac
35750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35751   (eval "$ac_link") 2>&5
35752   ac_status=$?
35753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35755   { (case "(($ac_try" in
35756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35757   *) ac_try_echo=$ac_try;;
35758 esac
35759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35760   (eval "$ac_try") 2>&5
35761   ac_status=$?
35762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763   (exit $ac_status); }; }; then
35764   ac_cv_sizeof_long_int=`cat conftest.val`
35765 else
35766   echo "$as_me: program exited with status $ac_status" >&5
35767 echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35769
35770 ( exit $ac_status )
35771 if test "$ac_cv_type_long_int" = yes; then
35772      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35773 See \`config.log' for more details." >&5
35774 echo "$as_me: error: cannot compute sizeof (long int)
35775 See \`config.log' for more details." >&2;}
35776    { (exit 77); exit 77; }; }
35777    else
35778      ac_cv_sizeof_long_int=0
35779    fi
35780 fi
35781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35782 fi
35783 rm -f conftest.val
35784 fi
35785 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35786 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35787
35788
35789
35790 cat >>confdefs.h <<_ACEOF
35791 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35792 _ACEOF
35793
35794
35795 { echo "$as_me:$LINENO: checking for long long int" >&5
35796 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35797 if test "${ac_cv_type_long_long_int+set}" = set; then
35798   echo $ECHO_N "(cached) $ECHO_C" >&6
35799 else
35800   cat >conftest.$ac_ext <<_ACEOF
35801 /* confdefs.h.  */
35802 _ACEOF
35803 cat confdefs.h >>conftest.$ac_ext
35804 cat >>conftest.$ac_ext <<_ACEOF
35805 /* end confdefs.h.  */
35806 $ac_includes_default
35807 typedef long long int ac__type_new_;
35808 int
35809 main ()
35810 {
35811 if ((ac__type_new_ *) 0)
35812   return 0;
35813 if (sizeof (ac__type_new_))
35814   return 0;
35815   ;
35816   return 0;
35817 }
35818 _ACEOF
35819 rm -f conftest.$ac_objext
35820 if { (ac_try="$ac_compile"
35821 case "(($ac_try" in
35822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35823   *) ac_try_echo=$ac_try;;
35824 esac
35825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35826   (eval "$ac_compile") 2>conftest.er1
35827   ac_status=$?
35828   grep -v '^ *+' conftest.er1 >conftest.err
35829   rm -f conftest.er1
35830   cat conftest.err >&5
35831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832   (exit $ac_status); } && {
35833          test -z "$ac_c_werror_flag" ||
35834          test ! -s conftest.err
35835        } && test -s conftest.$ac_objext; then
35836   ac_cv_type_long_long_int=yes
35837 else
35838   echo "$as_me: failed program was:" >&5
35839 sed 's/^/| /' conftest.$ac_ext >&5
35840
35841         ac_cv_type_long_long_int=no
35842 fi
35843
35844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35845 fi
35846 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35847 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35848
35849 # The cast to long int works around a bug in the HP C Compiler
35850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35852 # This bug is HP SR number 8606223364.
35853 { echo "$as_me:$LINENO: checking size of long long int" >&5
35854 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35855 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35856   echo $ECHO_N "(cached) $ECHO_C" >&6
35857 else
35858   if test "$cross_compiling" = yes; then
35859   # Depending upon the size, compute the lo and hi bounds.
35860 cat >conftest.$ac_ext <<_ACEOF
35861 /* confdefs.h.  */
35862 _ACEOF
35863 cat confdefs.h >>conftest.$ac_ext
35864 cat >>conftest.$ac_ext <<_ACEOF
35865 /* end confdefs.h.  */
35866 $ac_includes_default
35867    typedef long long int ac__type_sizeof_;
35868 int
35869 main ()
35870 {
35871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35872 test_array [0] = 0
35873
35874   ;
35875   return 0;
35876 }
35877 _ACEOF
35878 rm -f conftest.$ac_objext
35879 if { (ac_try="$ac_compile"
35880 case "(($ac_try" in
35881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35882   *) ac_try_echo=$ac_try;;
35883 esac
35884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35885   (eval "$ac_compile") 2>conftest.er1
35886   ac_status=$?
35887   grep -v '^ *+' conftest.er1 >conftest.err
35888   rm -f conftest.er1
35889   cat conftest.err >&5
35890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891   (exit $ac_status); } && {
35892          test -z "$ac_c_werror_flag" ||
35893          test ! -s conftest.err
35894        } && test -s conftest.$ac_objext; then
35895   ac_lo=0 ac_mid=0
35896   while :; do
35897     cat >conftest.$ac_ext <<_ACEOF
35898 /* confdefs.h.  */
35899 _ACEOF
35900 cat confdefs.h >>conftest.$ac_ext
35901 cat >>conftest.$ac_ext <<_ACEOF
35902 /* end confdefs.h.  */
35903 $ac_includes_default
35904    typedef long long int ac__type_sizeof_;
35905 int
35906 main ()
35907 {
35908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35909 test_array [0] = 0
35910
35911   ;
35912   return 0;
35913 }
35914 _ACEOF
35915 rm -f conftest.$ac_objext
35916 if { (ac_try="$ac_compile"
35917 case "(($ac_try" in
35918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35919   *) ac_try_echo=$ac_try;;
35920 esac
35921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35922   (eval "$ac_compile") 2>conftest.er1
35923   ac_status=$?
35924   grep -v '^ *+' conftest.er1 >conftest.err
35925   rm -f conftest.er1
35926   cat conftest.err >&5
35927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35928   (exit $ac_status); } && {
35929          test -z "$ac_c_werror_flag" ||
35930          test ! -s conftest.err
35931        } && test -s conftest.$ac_objext; then
35932   ac_hi=$ac_mid; break
35933 else
35934   echo "$as_me: failed program was:" >&5
35935 sed 's/^/| /' conftest.$ac_ext >&5
35936
35937         ac_lo=`expr $ac_mid + 1`
35938                         if test $ac_lo -le $ac_mid; then
35939                           ac_lo= ac_hi=
35940                           break
35941                         fi
35942                         ac_mid=`expr 2 '*' $ac_mid + 1`
35943 fi
35944
35945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35946   done
35947 else
35948   echo "$as_me: failed program was:" >&5
35949 sed 's/^/| /' conftest.$ac_ext >&5
35950
35951         cat >conftest.$ac_ext <<_ACEOF
35952 /* confdefs.h.  */
35953 _ACEOF
35954 cat confdefs.h >>conftest.$ac_ext
35955 cat >>conftest.$ac_ext <<_ACEOF
35956 /* end confdefs.h.  */
35957 $ac_includes_default
35958    typedef long long int ac__type_sizeof_;
35959 int
35960 main ()
35961 {
35962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35963 test_array [0] = 0
35964
35965   ;
35966   return 0;
35967 }
35968 _ACEOF
35969 rm -f conftest.$ac_objext
35970 if { (ac_try="$ac_compile"
35971 case "(($ac_try" in
35972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35973   *) ac_try_echo=$ac_try;;
35974 esac
35975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35976   (eval "$ac_compile") 2>conftest.er1
35977   ac_status=$?
35978   grep -v '^ *+' conftest.er1 >conftest.err
35979   rm -f conftest.er1
35980   cat conftest.err >&5
35981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35982   (exit $ac_status); } && {
35983          test -z "$ac_c_werror_flag" ||
35984          test ! -s conftest.err
35985        } && test -s conftest.$ac_objext; then
35986   ac_hi=-1 ac_mid=-1
35987   while :; do
35988     cat >conftest.$ac_ext <<_ACEOF
35989 /* confdefs.h.  */
35990 _ACEOF
35991 cat confdefs.h >>conftest.$ac_ext
35992 cat >>conftest.$ac_ext <<_ACEOF
35993 /* end confdefs.h.  */
35994 $ac_includes_default
35995    typedef long long int ac__type_sizeof_;
35996 int
35997 main ()
35998 {
35999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36000 test_array [0] = 0
36001
36002   ;
36003   return 0;
36004 }
36005 _ACEOF
36006 rm -f conftest.$ac_objext
36007 if { (ac_try="$ac_compile"
36008 case "(($ac_try" in
36009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36010   *) ac_try_echo=$ac_try;;
36011 esac
36012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36013   (eval "$ac_compile") 2>conftest.er1
36014   ac_status=$?
36015   grep -v '^ *+' conftest.er1 >conftest.err
36016   rm -f conftest.er1
36017   cat conftest.err >&5
36018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36019   (exit $ac_status); } && {
36020          test -z "$ac_c_werror_flag" ||
36021          test ! -s conftest.err
36022        } && test -s conftest.$ac_objext; then
36023   ac_lo=$ac_mid; break
36024 else
36025   echo "$as_me: failed program was:" >&5
36026 sed 's/^/| /' conftest.$ac_ext >&5
36027
36028         ac_hi=`expr '(' $ac_mid ')' - 1`
36029                         if test $ac_mid -le $ac_hi; then
36030                           ac_lo= ac_hi=
36031                           break
36032                         fi
36033                         ac_mid=`expr 2 '*' $ac_mid`
36034 fi
36035
36036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36037   done
36038 else
36039   echo "$as_me: failed program was:" >&5
36040 sed 's/^/| /' conftest.$ac_ext >&5
36041
36042         ac_lo= ac_hi=
36043 fi
36044
36045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36046 fi
36047
36048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36049 # Binary search between lo and hi bounds.
36050 while test "x$ac_lo" != "x$ac_hi"; do
36051   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36052   cat >conftest.$ac_ext <<_ACEOF
36053 /* confdefs.h.  */
36054 _ACEOF
36055 cat confdefs.h >>conftest.$ac_ext
36056 cat >>conftest.$ac_ext <<_ACEOF
36057 /* end confdefs.h.  */
36058 $ac_includes_default
36059    typedef long long int ac__type_sizeof_;
36060 int
36061 main ()
36062 {
36063 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36064 test_array [0] = 0
36065
36066   ;
36067   return 0;
36068 }
36069 _ACEOF
36070 rm -f conftest.$ac_objext
36071 if { (ac_try="$ac_compile"
36072 case "(($ac_try" in
36073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36074   *) ac_try_echo=$ac_try;;
36075 esac
36076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36077   (eval "$ac_compile") 2>conftest.er1
36078   ac_status=$?
36079   grep -v '^ *+' conftest.er1 >conftest.err
36080   rm -f conftest.er1
36081   cat conftest.err >&5
36082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083   (exit $ac_status); } && {
36084          test -z "$ac_c_werror_flag" ||
36085          test ! -s conftest.err
36086        } && test -s conftest.$ac_objext; then
36087   ac_hi=$ac_mid
36088 else
36089   echo "$as_me: failed program was:" >&5
36090 sed 's/^/| /' conftest.$ac_ext >&5
36091
36092         ac_lo=`expr '(' $ac_mid ')' + 1`
36093 fi
36094
36095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36096 done
36097 case $ac_lo in
36098 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36099 '') if test "$ac_cv_type_long_long_int" = yes; then
36100      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36101 See \`config.log' for more details." >&5
36102 echo "$as_me: error: cannot compute sizeof (long long int)
36103 See \`config.log' for more details." >&2;}
36104    { (exit 77); exit 77; }; }
36105    else
36106      ac_cv_sizeof_long_long_int=0
36107    fi ;;
36108 esac
36109 else
36110   cat >conftest.$ac_ext <<_ACEOF
36111 /* confdefs.h.  */
36112 _ACEOF
36113 cat confdefs.h >>conftest.$ac_ext
36114 cat >>conftest.$ac_ext <<_ACEOF
36115 /* end confdefs.h.  */
36116 $ac_includes_default
36117    typedef long long int ac__type_sizeof_;
36118 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36119 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36120 #include <stdio.h>
36121 #include <stdlib.h>
36122 int
36123 main ()
36124 {
36125
36126   FILE *f = fopen ("conftest.val", "w");
36127   if (! f)
36128     return 1;
36129   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36130     {
36131       long int i = longval ();
36132       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36133         return 1;
36134       fprintf (f, "%ld\n", i);
36135     }
36136   else
36137     {
36138       unsigned long int i = ulongval ();
36139       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36140         return 1;
36141       fprintf (f, "%lu\n", i);
36142     }
36143   return ferror (f) || fclose (f) != 0;
36144
36145   ;
36146   return 0;
36147 }
36148 _ACEOF
36149 rm -f conftest$ac_exeext
36150 if { (ac_try="$ac_link"
36151 case "(($ac_try" in
36152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36153   *) ac_try_echo=$ac_try;;
36154 esac
36155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36156   (eval "$ac_link") 2>&5
36157   ac_status=$?
36158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36160   { (case "(($ac_try" in
36161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36162   *) ac_try_echo=$ac_try;;
36163 esac
36164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36165   (eval "$ac_try") 2>&5
36166   ac_status=$?
36167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168   (exit $ac_status); }; }; then
36169   ac_cv_sizeof_long_long_int=`cat conftest.val`
36170 else
36171   echo "$as_me: program exited with status $ac_status" >&5
36172 echo "$as_me: failed program was:" >&5
36173 sed 's/^/| /' conftest.$ac_ext >&5
36174
36175 ( exit $ac_status )
36176 if test "$ac_cv_type_long_long_int" = yes; then
36177      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36178 See \`config.log' for more details." >&5
36179 echo "$as_me: error: cannot compute sizeof (long long int)
36180 See \`config.log' for more details." >&2;}
36181    { (exit 77); exit 77; }; }
36182    else
36183      ac_cv_sizeof_long_long_int=0
36184    fi
36185 fi
36186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36187 fi
36188 rm -f conftest.val
36189 fi
36190 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36191 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36192
36193
36194
36195 cat >>confdefs.h <<_ACEOF
36196 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36197 _ACEOF
36198
36199
36200 { echo "$as_me:$LINENO: checking for int *" >&5
36201 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36202 if test "${ac_cv_type_int_p+set}" = set; then
36203   echo $ECHO_N "(cached) $ECHO_C" >&6
36204 else
36205   cat >conftest.$ac_ext <<_ACEOF
36206 /* confdefs.h.  */
36207 _ACEOF
36208 cat confdefs.h >>conftest.$ac_ext
36209 cat >>conftest.$ac_ext <<_ACEOF
36210 /* end confdefs.h.  */
36211 $ac_includes_default
36212 typedef int * ac__type_new_;
36213 int
36214 main ()
36215 {
36216 if ((ac__type_new_ *) 0)
36217   return 0;
36218 if (sizeof (ac__type_new_))
36219   return 0;
36220   ;
36221   return 0;
36222 }
36223 _ACEOF
36224 rm -f conftest.$ac_objext
36225 if { (ac_try="$ac_compile"
36226 case "(($ac_try" in
36227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36228   *) ac_try_echo=$ac_try;;
36229 esac
36230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36231   (eval "$ac_compile") 2>conftest.er1
36232   ac_status=$?
36233   grep -v '^ *+' conftest.er1 >conftest.err
36234   rm -f conftest.er1
36235   cat conftest.err >&5
36236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237   (exit $ac_status); } && {
36238          test -z "$ac_c_werror_flag" ||
36239          test ! -s conftest.err
36240        } && test -s conftest.$ac_objext; then
36241   ac_cv_type_int_p=yes
36242 else
36243   echo "$as_me: failed program was:" >&5
36244 sed 's/^/| /' conftest.$ac_ext >&5
36245
36246         ac_cv_type_int_p=no
36247 fi
36248
36249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36250 fi
36251 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36252 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36253
36254 # The cast to long int works around a bug in the HP C Compiler
36255 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36256 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36257 # This bug is HP SR number 8606223364.
36258 { echo "$as_me:$LINENO: checking size of int *" >&5
36259 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36260 if test "${ac_cv_sizeof_int_p+set}" = set; then
36261   echo $ECHO_N "(cached) $ECHO_C" >&6
36262 else
36263   if test "$cross_compiling" = yes; then
36264   # Depending upon the size, compute the lo and hi bounds.
36265 cat >conftest.$ac_ext <<_ACEOF
36266 /* confdefs.h.  */
36267 _ACEOF
36268 cat confdefs.h >>conftest.$ac_ext
36269 cat >>conftest.$ac_ext <<_ACEOF
36270 /* end confdefs.h.  */
36271 $ac_includes_default
36272    typedef int * ac__type_sizeof_;
36273 int
36274 main ()
36275 {
36276 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36277 test_array [0] = 0
36278
36279   ;
36280   return 0;
36281 }
36282 _ACEOF
36283 rm -f conftest.$ac_objext
36284 if { (ac_try="$ac_compile"
36285 case "(($ac_try" in
36286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36287   *) ac_try_echo=$ac_try;;
36288 esac
36289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36290   (eval "$ac_compile") 2>conftest.er1
36291   ac_status=$?
36292   grep -v '^ *+' conftest.er1 >conftest.err
36293   rm -f conftest.er1
36294   cat conftest.err >&5
36295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296   (exit $ac_status); } && {
36297          test -z "$ac_c_werror_flag" ||
36298          test ! -s conftest.err
36299        } && test -s conftest.$ac_objext; then
36300   ac_lo=0 ac_mid=0
36301   while :; do
36302     cat >conftest.$ac_ext <<_ACEOF
36303 /* confdefs.h.  */
36304 _ACEOF
36305 cat confdefs.h >>conftest.$ac_ext
36306 cat >>conftest.$ac_ext <<_ACEOF
36307 /* end confdefs.h.  */
36308 $ac_includes_default
36309    typedef int * ac__type_sizeof_;
36310 int
36311 main ()
36312 {
36313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36314 test_array [0] = 0
36315
36316   ;
36317   return 0;
36318 }
36319 _ACEOF
36320 rm -f conftest.$ac_objext
36321 if { (ac_try="$ac_compile"
36322 case "(($ac_try" in
36323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36324   *) ac_try_echo=$ac_try;;
36325 esac
36326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36327   (eval "$ac_compile") 2>conftest.er1
36328   ac_status=$?
36329   grep -v '^ *+' conftest.er1 >conftest.err
36330   rm -f conftest.er1
36331   cat conftest.err >&5
36332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333   (exit $ac_status); } && {
36334          test -z "$ac_c_werror_flag" ||
36335          test ! -s conftest.err
36336        } && test -s conftest.$ac_objext; then
36337   ac_hi=$ac_mid; break
36338 else
36339   echo "$as_me: failed program was:" >&5
36340 sed 's/^/| /' conftest.$ac_ext >&5
36341
36342         ac_lo=`expr $ac_mid + 1`
36343                         if test $ac_lo -le $ac_mid; then
36344                           ac_lo= ac_hi=
36345                           break
36346                         fi
36347                         ac_mid=`expr 2 '*' $ac_mid + 1`
36348 fi
36349
36350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36351   done
36352 else
36353   echo "$as_me: failed program was:" >&5
36354 sed 's/^/| /' conftest.$ac_ext >&5
36355
36356         cat >conftest.$ac_ext <<_ACEOF
36357 /* confdefs.h.  */
36358 _ACEOF
36359 cat confdefs.h >>conftest.$ac_ext
36360 cat >>conftest.$ac_ext <<_ACEOF
36361 /* end confdefs.h.  */
36362 $ac_includes_default
36363    typedef int * ac__type_sizeof_;
36364 int
36365 main ()
36366 {
36367 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36368 test_array [0] = 0
36369
36370   ;
36371   return 0;
36372 }
36373 _ACEOF
36374 rm -f conftest.$ac_objext
36375 if { (ac_try="$ac_compile"
36376 case "(($ac_try" in
36377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36378   *) ac_try_echo=$ac_try;;
36379 esac
36380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36381   (eval "$ac_compile") 2>conftest.er1
36382   ac_status=$?
36383   grep -v '^ *+' conftest.er1 >conftest.err
36384   rm -f conftest.er1
36385   cat conftest.err >&5
36386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387   (exit $ac_status); } && {
36388          test -z "$ac_c_werror_flag" ||
36389          test ! -s conftest.err
36390        } && test -s conftest.$ac_objext; then
36391   ac_hi=-1 ac_mid=-1
36392   while :; do
36393     cat >conftest.$ac_ext <<_ACEOF
36394 /* confdefs.h.  */
36395 _ACEOF
36396 cat confdefs.h >>conftest.$ac_ext
36397 cat >>conftest.$ac_ext <<_ACEOF
36398 /* end confdefs.h.  */
36399 $ac_includes_default
36400    typedef int * ac__type_sizeof_;
36401 int
36402 main ()
36403 {
36404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36405 test_array [0] = 0
36406
36407   ;
36408   return 0;
36409 }
36410 _ACEOF
36411 rm -f conftest.$ac_objext
36412 if { (ac_try="$ac_compile"
36413 case "(($ac_try" in
36414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36415   *) ac_try_echo=$ac_try;;
36416 esac
36417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36418   (eval "$ac_compile") 2>conftest.er1
36419   ac_status=$?
36420   grep -v '^ *+' conftest.er1 >conftest.err
36421   rm -f conftest.er1
36422   cat conftest.err >&5
36423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36424   (exit $ac_status); } && {
36425          test -z "$ac_c_werror_flag" ||
36426          test ! -s conftest.err
36427        } && test -s conftest.$ac_objext; then
36428   ac_lo=$ac_mid; break
36429 else
36430   echo "$as_me: failed program was:" >&5
36431 sed 's/^/| /' conftest.$ac_ext >&5
36432
36433         ac_hi=`expr '(' $ac_mid ')' - 1`
36434                         if test $ac_mid -le $ac_hi; then
36435                           ac_lo= ac_hi=
36436                           break
36437                         fi
36438                         ac_mid=`expr 2 '*' $ac_mid`
36439 fi
36440
36441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36442   done
36443 else
36444   echo "$as_me: failed program was:" >&5
36445 sed 's/^/| /' conftest.$ac_ext >&5
36446
36447         ac_lo= ac_hi=
36448 fi
36449
36450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36451 fi
36452
36453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36454 # Binary search between lo and hi bounds.
36455 while test "x$ac_lo" != "x$ac_hi"; do
36456   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36457   cat >conftest.$ac_ext <<_ACEOF
36458 /* confdefs.h.  */
36459 _ACEOF
36460 cat confdefs.h >>conftest.$ac_ext
36461 cat >>conftest.$ac_ext <<_ACEOF
36462 /* end confdefs.h.  */
36463 $ac_includes_default
36464    typedef int * ac__type_sizeof_;
36465 int
36466 main ()
36467 {
36468 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36469 test_array [0] = 0
36470
36471   ;
36472   return 0;
36473 }
36474 _ACEOF
36475 rm -f conftest.$ac_objext
36476 if { (ac_try="$ac_compile"
36477 case "(($ac_try" in
36478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36479   *) ac_try_echo=$ac_try;;
36480 esac
36481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36482   (eval "$ac_compile") 2>conftest.er1
36483   ac_status=$?
36484   grep -v '^ *+' conftest.er1 >conftest.err
36485   rm -f conftest.er1
36486   cat conftest.err >&5
36487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488   (exit $ac_status); } && {
36489          test -z "$ac_c_werror_flag" ||
36490          test ! -s conftest.err
36491        } && test -s conftest.$ac_objext; then
36492   ac_hi=$ac_mid
36493 else
36494   echo "$as_me: failed program was:" >&5
36495 sed 's/^/| /' conftest.$ac_ext >&5
36496
36497         ac_lo=`expr '(' $ac_mid ')' + 1`
36498 fi
36499
36500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36501 done
36502 case $ac_lo in
36503 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36504 '') if test "$ac_cv_type_int_p" = yes; then
36505      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36506 See \`config.log' for more details." >&5
36507 echo "$as_me: error: cannot compute sizeof (int *)
36508 See \`config.log' for more details." >&2;}
36509    { (exit 77); exit 77; }; }
36510    else
36511      ac_cv_sizeof_int_p=0
36512    fi ;;
36513 esac
36514 else
36515   cat >conftest.$ac_ext <<_ACEOF
36516 /* confdefs.h.  */
36517 _ACEOF
36518 cat confdefs.h >>conftest.$ac_ext
36519 cat >>conftest.$ac_ext <<_ACEOF
36520 /* end confdefs.h.  */
36521 $ac_includes_default
36522    typedef int * ac__type_sizeof_;
36523 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36524 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36525 #include <stdio.h>
36526 #include <stdlib.h>
36527 int
36528 main ()
36529 {
36530
36531   FILE *f = fopen ("conftest.val", "w");
36532   if (! f)
36533     return 1;
36534   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36535     {
36536       long int i = longval ();
36537       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36538         return 1;
36539       fprintf (f, "%ld\n", i);
36540     }
36541   else
36542     {
36543       unsigned long int i = ulongval ();
36544       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36545         return 1;
36546       fprintf (f, "%lu\n", i);
36547     }
36548   return ferror (f) || fclose (f) != 0;
36549
36550   ;
36551   return 0;
36552 }
36553 _ACEOF
36554 rm -f conftest$ac_exeext
36555 if { (ac_try="$ac_link"
36556 case "(($ac_try" in
36557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36558   *) ac_try_echo=$ac_try;;
36559 esac
36560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36561   (eval "$ac_link") 2>&5
36562   ac_status=$?
36563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36565   { (case "(($ac_try" in
36566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36567   *) ac_try_echo=$ac_try;;
36568 esac
36569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36570   (eval "$ac_try") 2>&5
36571   ac_status=$?
36572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36573   (exit $ac_status); }; }; then
36574   ac_cv_sizeof_int_p=`cat conftest.val`
36575 else
36576   echo "$as_me: program exited with status $ac_status" >&5
36577 echo "$as_me: failed program was:" >&5
36578 sed 's/^/| /' conftest.$ac_ext >&5
36579
36580 ( exit $ac_status )
36581 if test "$ac_cv_type_int_p" = yes; then
36582      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36583 See \`config.log' for more details." >&5
36584 echo "$as_me: error: cannot compute sizeof (int *)
36585 See \`config.log' for more details." >&2;}
36586    { (exit 77); exit 77; }; }
36587    else
36588      ac_cv_sizeof_int_p=0
36589    fi
36590 fi
36591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36592 fi
36593 rm -f conftest.val
36594 fi
36595 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36596 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36597
36598
36599
36600 cat >>confdefs.h <<_ACEOF
36601 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36602 _ACEOF
36603
36604
36605
36606 { echo "$as_me:$LINENO: checking for u_int type" >&5
36607 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36608 if test "${ac_cv_have_u_int+set}" = set; then
36609   echo $ECHO_N "(cached) $ECHO_C" >&6
36610 else
36611
36612        cat >conftest.$ac_ext <<_ACEOF
36613 /* confdefs.h.  */
36614 _ACEOF
36615 cat confdefs.h >>conftest.$ac_ext
36616 cat >>conftest.$ac_ext <<_ACEOF
36617 /* end confdefs.h.  */
36618
36619               #include <sys/types.h>
36620
36621 int
36622 main ()
36623 {
36624
36625               u_int a; a = 1;
36626
36627   ;
36628   return 0;
36629 }
36630 _ACEOF
36631 rm -f conftest.$ac_objext
36632 if { (ac_try="$ac_compile"
36633 case "(($ac_try" in
36634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36635   *) ac_try_echo=$ac_try;;
36636 esac
36637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36638   (eval "$ac_compile") 2>conftest.er1
36639   ac_status=$?
36640   grep -v '^ *+' conftest.er1 >conftest.err
36641   rm -f conftest.er1
36642   cat conftest.err >&5
36643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644   (exit $ac_status); } && {
36645          test -z "$ac_c_werror_flag" ||
36646          test ! -s conftest.err
36647        } && test -s conftest.$ac_objext; then
36648
36649               ac_cv_have_u_int="yes"
36650
36651 else
36652   echo "$as_me: failed program was:" >&5
36653 sed 's/^/| /' conftest.$ac_ext >&5
36654
36655
36656               ac_cv_have_u_int="no"
36657
36658
36659 fi
36660
36661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36662
36663
36664 fi
36665 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36666 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36667 if test "x$ac_cv_have_u_int" = "xyes" ; then
36668    cat >>confdefs.h <<\_ACEOF
36669 #define HAVE_U_INT 1
36670 _ACEOF
36671
36672    have_u_int=1
36673 fi
36674
36675 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36676 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36677 if test "${ac_cv_have_intmax_t+set}" = set; then
36678   echo $ECHO_N "(cached) $ECHO_C" >&6
36679 else
36680
36681        cat >conftest.$ac_ext <<_ACEOF
36682 /* confdefs.h.  */
36683 _ACEOF
36684 cat confdefs.h >>conftest.$ac_ext
36685 cat >>conftest.$ac_ext <<_ACEOF
36686 /* end confdefs.h.  */
36687
36688               #include <sys/types.h>
36689
36690 int
36691 main ()
36692 {
36693
36694               intmax_t a; a = 1;
36695
36696   ;
36697   return 0;
36698 }
36699 _ACEOF
36700 rm -f conftest.$ac_objext
36701 if { (ac_try="$ac_compile"
36702 case "(($ac_try" in
36703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36704   *) ac_try_echo=$ac_try;;
36705 esac
36706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36707   (eval "$ac_compile") 2>conftest.er1
36708   ac_status=$?
36709   grep -v '^ *+' conftest.er1 >conftest.err
36710   rm -f conftest.er1
36711   cat conftest.err >&5
36712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713   (exit $ac_status); } && {
36714          test -z "$ac_c_werror_flag" ||
36715          test ! -s conftest.err
36716        } && test -s conftest.$ac_objext; then
36717
36718               ac_cv_have_intmax_t="yes"
36719
36720 else
36721   echo "$as_me: failed program was:" >&5
36722 sed 's/^/| /' conftest.$ac_ext >&5
36723
36724
36725               cat >conftest.$ac_ext <<_ACEOF
36726 /* confdefs.h.  */
36727 _ACEOF
36728 cat confdefs.h >>conftest.$ac_ext
36729 cat >>conftest.$ac_ext <<_ACEOF
36730 /* end confdefs.h.  */
36731
36732                      #include <stdint.h>
36733
36734 int
36735 main ()
36736 {
36737
36738                      intmax_t a; a = 1;
36739
36740   ;
36741   return 0;
36742 }
36743 _ACEOF
36744 rm -f conftest.$ac_objext
36745 if { (ac_try="$ac_compile"
36746 case "(($ac_try" in
36747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36748   *) ac_try_echo=$ac_try;;
36749 esac
36750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36751   (eval "$ac_compile") 2>conftest.er1
36752   ac_status=$?
36753   grep -v '^ *+' conftest.er1 >conftest.err
36754   rm -f conftest.er1
36755   cat conftest.err >&5
36756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36757   (exit $ac_status); } && {
36758          test -z "$ac_c_werror_flag" ||
36759          test ! -s conftest.err
36760        } && test -s conftest.$ac_objext; then
36761
36762                      ac_cv_have_intmax_t="yes"
36763
36764 else
36765   echo "$as_me: failed program was:" >&5
36766 sed 's/^/| /' conftest.$ac_ext >&5
36767
36768
36769                      ac_cv_have_intmax_t="no"
36770
36771
36772 fi
36773
36774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36775
36776
36777 fi
36778
36779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36780
36781
36782 fi
36783 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36784 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36785 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36786    cat >>confdefs.h <<\_ACEOF
36787 #define HAVE_INTMAX_T 1
36788 _ACEOF
36789
36790    have_intmax_t=1
36791 fi
36792
36793 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36794 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36795 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36796   echo $ECHO_N "(cached) $ECHO_C" >&6
36797 else
36798
36799        cat >conftest.$ac_ext <<_ACEOF
36800 /* confdefs.h.  */
36801 _ACEOF
36802 cat confdefs.h >>conftest.$ac_ext
36803 cat >>conftest.$ac_ext <<_ACEOF
36804 /* end confdefs.h.  */
36805
36806               #include <sys/types.h>
36807
36808 int
36809 main ()
36810 {
36811
36812               u_intmax_t a; a = 1;
36813
36814   ;
36815   return 0;
36816 }
36817 _ACEOF
36818 rm -f conftest.$ac_objext
36819 if { (ac_try="$ac_compile"
36820 case "(($ac_try" in
36821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36822   *) ac_try_echo=$ac_try;;
36823 esac
36824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36825   (eval "$ac_compile") 2>conftest.er1
36826   ac_status=$?
36827   grep -v '^ *+' conftest.er1 >conftest.err
36828   rm -f conftest.er1
36829   cat conftest.err >&5
36830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36831   (exit $ac_status); } && {
36832          test -z "$ac_c_werror_flag" ||
36833          test ! -s conftest.err
36834        } && test -s conftest.$ac_objext; then
36835
36836               ac_cv_have_u_intmax_t="yes"
36837
36838 else
36839   echo "$as_me: failed program was:" >&5
36840 sed 's/^/| /' conftest.$ac_ext >&5
36841
36842
36843               cat >conftest.$ac_ext <<_ACEOF
36844 /* confdefs.h.  */
36845 _ACEOF
36846 cat confdefs.h >>conftest.$ac_ext
36847 cat >>conftest.$ac_ext <<_ACEOF
36848 /* end confdefs.h.  */
36849
36850                      #include <stdint.h>
36851
36852 int
36853 main ()
36854 {
36855
36856                     u_intmax_t a; a = 1;
36857
36858   ;
36859   return 0;
36860 }
36861 _ACEOF
36862 rm -f conftest.$ac_objext
36863 if { (ac_try="$ac_compile"
36864 case "(($ac_try" in
36865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36866   *) ac_try_echo=$ac_try;;
36867 esac
36868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36869   (eval "$ac_compile") 2>conftest.er1
36870   ac_status=$?
36871   grep -v '^ *+' conftest.er1 >conftest.err
36872   rm -f conftest.er1
36873   cat conftest.err >&5
36874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875   (exit $ac_status); } && {
36876          test -z "$ac_c_werror_flag" ||
36877          test ! -s conftest.err
36878        } && test -s conftest.$ac_objext; then
36879
36880                     ac_cv_have_u_intmax_t="yes"
36881
36882 else
36883   echo "$as_me: failed program was:" >&5
36884 sed 's/^/| /' conftest.$ac_ext >&5
36885
36886
36887                     ac_cv_have_u_intmax_t="no"
36888
36889
36890 fi
36891
36892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36893
36894
36895 fi
36896
36897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36898
36899
36900 fi
36901 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36902 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36903 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36904    cat >>confdefs.h <<\_ACEOF
36905 #define HAVE_U_INTMAX_T 1
36906 _ACEOF
36907
36908    have_u_intmax_t=1
36909 fi
36910
36911 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36912 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36913 if test "${ac_cv_have_intxx_t+set}" = set; then
36914   echo $ECHO_N "(cached) $ECHO_C" >&6
36915 else
36916
36917        cat >conftest.$ac_ext <<_ACEOF
36918 /* confdefs.h.  */
36919 _ACEOF
36920 cat confdefs.h >>conftest.$ac_ext
36921 cat >>conftest.$ac_ext <<_ACEOF
36922 /* end confdefs.h.  */
36923
36924               #include <sys/types.h>
36925
36926 int
36927 main ()
36928 {
36929
36930               int8_t a; int16_t b; int32_t c; a = b = c = 1;
36931
36932   ;
36933   return 0;
36934 }
36935 _ACEOF
36936 rm -f conftest.$ac_objext
36937 if { (ac_try="$ac_compile"
36938 case "(($ac_try" in
36939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36940   *) ac_try_echo=$ac_try;;
36941 esac
36942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36943   (eval "$ac_compile") 2>conftest.er1
36944   ac_status=$?
36945   grep -v '^ *+' conftest.er1 >conftest.err
36946   rm -f conftest.er1
36947   cat conftest.err >&5
36948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949   (exit $ac_status); } && {
36950          test -z "$ac_c_werror_flag" ||
36951          test ! -s conftest.err
36952        } && test -s conftest.$ac_objext; then
36953
36954               ac_cv_have_intxx_t="yes"
36955
36956 else
36957   echo "$as_me: failed program was:" >&5
36958 sed 's/^/| /' conftest.$ac_ext >&5
36959
36960
36961               ac_cv_have_intxx_t="no"
36962
36963
36964 fi
36965
36966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36967
36968
36969 fi
36970 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36971 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36972 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36973    cat >>confdefs.h <<\_ACEOF
36974 #define HAVE_INTXX_T 1
36975 _ACEOF
36976
36977    have_intxx_t=1
36978 fi
36979
36980 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36981 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36982 if test "${ac_cv_have_int64_t+set}" = set; then
36983   echo $ECHO_N "(cached) $ECHO_C" >&6
36984 else
36985
36986        cat >conftest.$ac_ext <<_ACEOF
36987 /* confdefs.h.  */
36988 _ACEOF
36989 cat confdefs.h >>conftest.$ac_ext
36990 cat >>conftest.$ac_ext <<_ACEOF
36991 /* end confdefs.h.  */
36992
36993               #include <sys/types.h>
36994
36995 int
36996 main ()
36997 {
36998
36999               int64_t a; a = 1;
37000
37001   ;
37002   return 0;
37003 }
37004 _ACEOF
37005 rm -f conftest.$ac_objext
37006 if { (ac_try="$ac_compile"
37007 case "(($ac_try" in
37008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37009   *) ac_try_echo=$ac_try;;
37010 esac
37011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37012   (eval "$ac_compile") 2>conftest.er1
37013   ac_status=$?
37014   grep -v '^ *+' conftest.er1 >conftest.err
37015   rm -f conftest.er1
37016   cat conftest.err >&5
37017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37018   (exit $ac_status); } && {
37019          test -z "$ac_c_werror_flag" ||
37020          test ! -s conftest.err
37021        } && test -s conftest.$ac_objext; then
37022
37023               ac_cv_have_int64_t="yes"
37024
37025 else
37026   echo "$as_me: failed program was:" >&5
37027 sed 's/^/| /' conftest.$ac_ext >&5
37028
37029
37030               ac_cv_have_int64_t="no"
37031
37032
37033 fi
37034
37035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37036
37037
37038 fi
37039 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37040 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37041 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37042    cat >>confdefs.h <<\_ACEOF
37043 #define HAVE_INT64_T 1
37044 _ACEOF
37045
37046    have_int64_t=1
37047 fi
37048
37049 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37050 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37051 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37052   echo $ECHO_N "(cached) $ECHO_C" >&6
37053 else
37054
37055        cat >conftest.$ac_ext <<_ACEOF
37056 /* confdefs.h.  */
37057 _ACEOF
37058 cat confdefs.h >>conftest.$ac_ext
37059 cat >>conftest.$ac_ext <<_ACEOF
37060 /* end confdefs.h.  */
37061
37062               #include <sys/types.h>
37063
37064 int
37065 main ()
37066 {
37067
37068               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37069
37070   ;
37071   return 0;
37072 }
37073 _ACEOF
37074 rm -f conftest.$ac_objext
37075 if { (ac_try="$ac_compile"
37076 case "(($ac_try" in
37077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37078   *) ac_try_echo=$ac_try;;
37079 esac
37080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37081   (eval "$ac_compile") 2>conftest.er1
37082   ac_status=$?
37083   grep -v '^ *+' conftest.er1 >conftest.err
37084   rm -f conftest.er1
37085   cat conftest.err >&5
37086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37087   (exit $ac_status); } && {
37088          test -z "$ac_c_werror_flag" ||
37089          test ! -s conftest.err
37090        } && test -s conftest.$ac_objext; then
37091
37092              ac_cv_have_u_intxx_t="yes"
37093
37094 else
37095   echo "$as_me: failed program was:" >&5
37096 sed 's/^/| /' conftest.$ac_ext >&5
37097
37098
37099              ac_cv_have_u_intxx_t="no"
37100
37101
37102 fi
37103
37104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37105
37106
37107 fi
37108 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37109 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37110 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37111    cat >>confdefs.h <<\_ACEOF
37112 #define HAVE_U_INTXX_T 1
37113 _ACEOF
37114
37115    have_u_intxx_t=1
37116 fi
37117
37118 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37119 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37120 if test "${ac_cv_have_u_int64_t+set}" = set; then
37121   echo $ECHO_N "(cached) $ECHO_C" >&6
37122 else
37123
37124        cat >conftest.$ac_ext <<_ACEOF
37125 /* confdefs.h.  */
37126 _ACEOF
37127 cat confdefs.h >>conftest.$ac_ext
37128 cat >>conftest.$ac_ext <<_ACEOF
37129 /* end confdefs.h.  */
37130
37131               #include <sys/types.h>
37132
37133 int
37134 main ()
37135 {
37136
37137               u_int64_t a; a = 1;
37138
37139   ;
37140   return 0;
37141 }
37142 _ACEOF
37143 rm -f conftest.$ac_objext
37144 if { (ac_try="$ac_compile"
37145 case "(($ac_try" in
37146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37147   *) ac_try_echo=$ac_try;;
37148 esac
37149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37150   (eval "$ac_compile") 2>conftest.er1
37151   ac_status=$?
37152   grep -v '^ *+' conftest.er1 >conftest.err
37153   rm -f conftest.er1
37154   cat conftest.err >&5
37155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37156   (exit $ac_status); } && {
37157          test -z "$ac_c_werror_flag" ||
37158          test ! -s conftest.err
37159        } && test -s conftest.$ac_objext; then
37160
37161              ac_cv_have_u_int64_t="yes"
37162
37163 else
37164   echo "$as_me: failed program was:" >&5
37165 sed 's/^/| /' conftest.$ac_ext >&5
37166
37167
37168              ac_cv_have_u_int64_t="no"
37169
37170
37171 fi
37172
37173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37174
37175
37176 fi
37177 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37178 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37179 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37180    cat >>confdefs.h <<\_ACEOF
37181 #define HAVE_U_INT64_T 1
37182 _ACEOF
37183
37184    have_u_int64_t=1
37185 fi
37186
37187 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37188     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37189 then
37190    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37191 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37192    cat >conftest.$ac_ext <<_ACEOF
37193 /* confdefs.h.  */
37194 _ACEOF
37195 cat confdefs.h >>conftest.$ac_ext
37196 cat >>conftest.$ac_ext <<_ACEOF
37197 /* end confdefs.h.  */
37198
37199           #include <sys/bitypes.h>
37200
37201 int
37202 main ()
37203 {
37204
37205           int8_t a; int16_t b; int32_t c;
37206           u_int8_t e; u_int16_t f; u_int32_t g;
37207           a = b = c = e = f = g = 1;
37208
37209   ;
37210   return 0;
37211 }
37212 _ACEOF
37213 rm -f conftest.$ac_objext
37214 if { (ac_try="$ac_compile"
37215 case "(($ac_try" in
37216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37217   *) ac_try_echo=$ac_try;;
37218 esac
37219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37220   (eval "$ac_compile") 2>conftest.er1
37221   ac_status=$?
37222   grep -v '^ *+' conftest.er1 >conftest.err
37223   rm -f conftest.er1
37224   cat conftest.err >&5
37225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37226   (exit $ac_status); } && {
37227          test -z "$ac_c_werror_flag" ||
37228          test ! -s conftest.err
37229        } && test -s conftest.$ac_objext; then
37230
37231           cat >>confdefs.h <<\_ACEOF
37232 #define HAVE_U_INTXX_T 1
37233 _ACEOF
37234
37235           cat >>confdefs.h <<\_ACEOF
37236 #define HAVE_INTXX_T 1
37237 _ACEOF
37238
37239           cat >>confdefs.h <<\_ACEOF
37240 #define HAVE_SYS_BITYPES_H 1
37241 _ACEOF
37242
37243           { echo "$as_me:$LINENO: result: yes" >&5
37244 echo "${ECHO_T}yes" >&6; }
37245
37246 else
37247   echo "$as_me: failed program was:" >&5
37248 sed 's/^/| /' conftest.$ac_ext >&5
37249
37250
37251           { echo "$as_me:$LINENO: result: no" >&5
37252 echo "${ECHO_T}no" >&6; }
37253
37254
37255 fi
37256
37257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37258 fi
37259
37260 if test -z "$have_u_intxx_t" ; then
37261    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37262 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37263 if test "${ac_cv_have_uintxx_t+set}" = set; then
37264   echo $ECHO_N "(cached) $ECHO_C" >&6
37265 else
37266
37267           cat >conftest.$ac_ext <<_ACEOF
37268 /* confdefs.h.  */
37269 _ACEOF
37270 cat confdefs.h >>conftest.$ac_ext
37271 cat >>conftest.$ac_ext <<_ACEOF
37272 /* end confdefs.h.  */
37273
37274                  #include <sys/types.h>
37275
37276 int
37277 main ()
37278 {
37279
37280                  uint8_t a; uint16_t b;
37281                  uint32_t c; a = b = c = 1;
37282
37283   ;
37284   return 0;
37285 }
37286 _ACEOF
37287 rm -f conftest.$ac_objext
37288 if { (ac_try="$ac_compile"
37289 case "(($ac_try" in
37290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37291   *) ac_try_echo=$ac_try;;
37292 esac
37293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37294   (eval "$ac_compile") 2>conftest.er1
37295   ac_status=$?
37296   grep -v '^ *+' conftest.er1 >conftest.err
37297   rm -f conftest.er1
37298   cat conftest.err >&5
37299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300   (exit $ac_status); } && {
37301          test -z "$ac_c_werror_flag" ||
37302          test ! -s conftest.err
37303        } && test -s conftest.$ac_objext; then
37304
37305                 ac_cv_have_uintxx_t="yes"
37306
37307 else
37308   echo "$as_me: failed program was:" >&5
37309 sed 's/^/| /' conftest.$ac_ext >&5
37310
37311
37312                 ac_cv_have_uintxx_t="no"
37313
37314
37315 fi
37316
37317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37318
37319
37320 fi
37321 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37322 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37323    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37324       cat >>confdefs.h <<\_ACEOF
37325 #define HAVE_UINTXX_T 1
37326 _ACEOF
37327
37328    fi
37329 fi
37330
37331 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37332     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37333 then
37334    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37335 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37336    cat >conftest.$ac_ext <<_ACEOF
37337 /* confdefs.h.  */
37338 _ACEOF
37339 cat confdefs.h >>conftest.$ac_ext
37340 cat >>conftest.$ac_ext <<_ACEOF
37341 /* end confdefs.h.  */
37342
37343           #include <sys/bitypes.h>
37344
37345 int
37346 main ()
37347 {
37348
37349           int64_t a; u_int64_t b;
37350           a = b = 1;
37351
37352   ;
37353   return 0;
37354 }
37355 _ACEOF
37356 rm -f conftest.$ac_objext
37357 if { (ac_try="$ac_compile"
37358 case "(($ac_try" in
37359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37360   *) ac_try_echo=$ac_try;;
37361 esac
37362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37363   (eval "$ac_compile") 2>conftest.er1
37364   ac_status=$?
37365   grep -v '^ *+' conftest.er1 >conftest.err
37366   rm -f conftest.er1
37367   cat conftest.err >&5
37368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37369   (exit $ac_status); } && {
37370          test -z "$ac_c_werror_flag" ||
37371          test ! -s conftest.err
37372        } && test -s conftest.$ac_objext; then
37373
37374           cat >>confdefs.h <<\_ACEOF
37375 #define HAVE_U_INT64_T 1
37376 _ACEOF
37377
37378           cat >>confdefs.h <<\_ACEOF
37379 #define HAVE_INT64_T 1
37380 _ACEOF
37381
37382           { echo "$as_me:$LINENO: result: yes" >&5
37383 echo "${ECHO_T}yes" >&6; }
37384
37385 else
37386   echo "$as_me: failed program was:" >&5
37387 sed 's/^/| /' conftest.$ac_ext >&5
37388
37389
37390           { echo "$as_me:$LINENO: result: no" >&5
37391 echo "${ECHO_T}no" >&6; }
37392
37393
37394 fi
37395
37396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37397 fi
37398
37399 if (test -z "$have_uintxx_t" && \
37400     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37401 then
37402    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37403 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37404    cat >conftest.$ac_ext <<_ACEOF
37405 /* confdefs.h.  */
37406 _ACEOF
37407 cat confdefs.h >>conftest.$ac_ext
37408 cat >>conftest.$ac_ext <<_ACEOF
37409 /* end confdefs.h.  */
37410
37411           #include <sys/bitypes.h>
37412
37413 int
37414 main ()
37415 {
37416
37417           uint8_t a; uint16_t b;
37418           uint32_t c; a = b = c = 1;
37419
37420   ;
37421   return 0;
37422 }
37423 _ACEOF
37424 rm -f conftest.$ac_objext
37425 if { (ac_try="$ac_compile"
37426 case "(($ac_try" in
37427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37428   *) ac_try_echo=$ac_try;;
37429 esac
37430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37431   (eval "$ac_compile") 2>conftest.er1
37432   ac_status=$?
37433   grep -v '^ *+' conftest.er1 >conftest.err
37434   rm -f conftest.er1
37435   cat conftest.err >&5
37436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437   (exit $ac_status); } && {
37438          test -z "$ac_c_werror_flag" ||
37439          test ! -s conftest.err
37440        } && test -s conftest.$ac_objext; then
37441
37442           cat >>confdefs.h <<\_ACEOF
37443 #define HAVE_UINTXX_T 1
37444 _ACEOF
37445
37446           { echo "$as_me:$LINENO: result: yes" >&5
37447 echo "${ECHO_T}yes" >&6; }
37448
37449 else
37450   echo "$as_me: failed program was:" >&5
37451 sed 's/^/| /' conftest.$ac_ext >&5
37452
37453
37454           { echo "$as_me:$LINENO: result: no" >&5
37455 echo "${ECHO_T}no" >&6; }
37456
37457
37458 fi
37459
37460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37461 fi
37462
37463
37464
37465
37466
37467
37468
37469
37470
37471
37472
37473
37474
37475
37476 for ac_func in \
37477    fork \
37478    getcwd \
37479    gethostname \
37480    getpid \
37481    gettimeofday \
37482    setpgid \
37483    setpgrp \
37484    setsid \
37485    signal \
37486    strerror \
37487    strncmp \
37488    strncpy \
37489    vfprintf \
37490
37491 do
37492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37496   echo $ECHO_N "(cached) $ECHO_C" >&6
37497 else
37498   cat >conftest.$ac_ext <<_ACEOF
37499 /* confdefs.h.  */
37500 _ACEOF
37501 cat confdefs.h >>conftest.$ac_ext
37502 cat >>conftest.$ac_ext <<_ACEOF
37503 /* end confdefs.h.  */
37504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37506 #define $ac_func innocuous_$ac_func
37507
37508 /* System header to define __stub macros and hopefully few prototypes,
37509     which can conflict with char $ac_func (); below.
37510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37511     <limits.h> exists even on freestanding compilers.  */
37512
37513 #ifdef __STDC__
37514 # include <limits.h>
37515 #else
37516 # include <assert.h>
37517 #endif
37518
37519 #undef $ac_func
37520
37521 /* Override any GCC internal prototype to avoid an error.
37522    Use char because int might match the return type of a GCC
37523    builtin and then its argument prototype would still apply.  */
37524 #ifdef __cplusplus
37525 extern "C"
37526 #endif
37527 char $ac_func ();
37528 /* The GNU C library defines this for functions which it implements
37529     to always fail with ENOSYS.  Some functions are actually named
37530     something starting with __ and the normal name is an alias.  */
37531 #if defined __stub_$ac_func || defined __stub___$ac_func
37532 choke me
37533 #endif
37534
37535 int
37536 main ()
37537 {
37538 return $ac_func ();
37539   ;
37540   return 0;
37541 }
37542 _ACEOF
37543 rm -f conftest.$ac_objext conftest$ac_exeext
37544 if { (ac_try="$ac_link"
37545 case "(($ac_try" in
37546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37547   *) ac_try_echo=$ac_try;;
37548 esac
37549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37550   (eval "$ac_link") 2>conftest.er1
37551   ac_status=$?
37552   grep -v '^ *+' conftest.er1 >conftest.err
37553   rm -f conftest.er1
37554   cat conftest.err >&5
37555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556   (exit $ac_status); } && {
37557          test -z "$ac_c_werror_flag" ||
37558          test ! -s conftest.err
37559        } && test -s conftest$ac_exeext &&
37560        $as_test_x conftest$ac_exeext; then
37561   eval "$as_ac_var=yes"
37562 else
37563   echo "$as_me: failed program was:" >&5
37564 sed 's/^/| /' conftest.$ac_ext >&5
37565
37566         eval "$as_ac_var=no"
37567 fi
37568
37569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37570       conftest$ac_exeext conftest.$ac_ext
37571 fi
37572 ac_res=`eval echo '${'$as_ac_var'}'`
37573                { echo "$as_me:$LINENO: result: $ac_res" >&5
37574 echo "${ECHO_T}$ac_res" >&6; }
37575 if test `eval echo '${'$as_ac_var'}'` = yes; then
37576   cat >>confdefs.h <<_ACEOF
37577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37578 _ACEOF
37579
37580 else
37581   echo 'configure: cannot find needed function.'; exit 1
37582
37583 fi
37584 done
37585
37586
37587
37588 for ac_func in fchdir
37589 do
37590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37594   echo $ECHO_N "(cached) $ECHO_C" >&6
37595 else
37596   cat >conftest.$ac_ext <<_ACEOF
37597 /* confdefs.h.  */
37598 _ACEOF
37599 cat confdefs.h >>conftest.$ac_ext
37600 cat >>conftest.$ac_ext <<_ACEOF
37601 /* end confdefs.h.  */
37602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37604 #define $ac_func innocuous_$ac_func
37605
37606 /* System header to define __stub macros and hopefully few prototypes,
37607     which can conflict with char $ac_func (); below.
37608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37609     <limits.h> exists even on freestanding compilers.  */
37610
37611 #ifdef __STDC__
37612 # include <limits.h>
37613 #else
37614 # include <assert.h>
37615 #endif
37616
37617 #undef $ac_func
37618
37619 /* Override any GCC internal prototype to avoid an error.
37620    Use char because int might match the return type of a GCC
37621    builtin and then its argument prototype would still apply.  */
37622 #ifdef __cplusplus
37623 extern "C"
37624 #endif
37625 char $ac_func ();
37626 /* The GNU C library defines this for functions which it implements
37627     to always fail with ENOSYS.  Some functions are actually named
37628     something starting with __ and the normal name is an alias.  */
37629 #if defined __stub_$ac_func || defined __stub___$ac_func
37630 choke me
37631 #endif
37632
37633 int
37634 main ()
37635 {
37636 return $ac_func ();
37637   ;
37638   return 0;
37639 }
37640 _ACEOF
37641 rm -f conftest.$ac_objext conftest$ac_exeext
37642 if { (ac_try="$ac_link"
37643 case "(($ac_try" in
37644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37645   *) ac_try_echo=$ac_try;;
37646 esac
37647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37648   (eval "$ac_link") 2>conftest.er1
37649   ac_status=$?
37650   grep -v '^ *+' conftest.er1 >conftest.err
37651   rm -f conftest.er1
37652   cat conftest.err >&5
37653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654   (exit $ac_status); } && {
37655          test -z "$ac_c_werror_flag" ||
37656          test ! -s conftest.err
37657        } && test -s conftest$ac_exeext &&
37658        $as_test_x conftest$ac_exeext; then
37659   eval "$as_ac_var=yes"
37660 else
37661   echo "$as_me: failed program was:" >&5
37662 sed 's/^/| /' conftest.$ac_ext >&5
37663
37664         eval "$as_ac_var=no"
37665 fi
37666
37667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37668       conftest$ac_exeext conftest.$ac_ext
37669 fi
37670 ac_res=`eval echo '${'$as_ac_var'}'`
37671                { echo "$as_me:$LINENO: result: $ac_res" >&5
37672 echo "${ECHO_T}$ac_res" >&6; }
37673 if test `eval echo '${'$as_ac_var'}'` = yes; then
37674   cat >>confdefs.h <<_ACEOF
37675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37676 _ACEOF
37677  cat >>confdefs.h <<\_ACEOF
37678 #define HAVE_FCHDIR 1
37679 _ACEOF
37680
37681 fi
37682 done
37683
37684
37685 for ac_func in strtoll
37686 do
37687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37691   echo $ECHO_N "(cached) $ECHO_C" >&6
37692 else
37693   cat >conftest.$ac_ext <<_ACEOF
37694 /* confdefs.h.  */
37695 _ACEOF
37696 cat confdefs.h >>conftest.$ac_ext
37697 cat >>conftest.$ac_ext <<_ACEOF
37698 /* end confdefs.h.  */
37699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37701 #define $ac_func innocuous_$ac_func
37702
37703 /* System header to define __stub macros and hopefully few prototypes,
37704     which can conflict with char $ac_func (); below.
37705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37706     <limits.h> exists even on freestanding compilers.  */
37707
37708 #ifdef __STDC__
37709 # include <limits.h>
37710 #else
37711 # include <assert.h>
37712 #endif
37713
37714 #undef $ac_func
37715
37716 /* Override any GCC internal prototype to avoid an error.
37717    Use char because int might match the return type of a GCC
37718    builtin and then its argument prototype would still apply.  */
37719 #ifdef __cplusplus
37720 extern "C"
37721 #endif
37722 char $ac_func ();
37723 /* The GNU C library defines this for functions which it implements
37724     to always fail with ENOSYS.  Some functions are actually named
37725     something starting with __ and the normal name is an alias.  */
37726 #if defined __stub_$ac_func || defined __stub___$ac_func
37727 choke me
37728 #endif
37729
37730 int
37731 main ()
37732 {
37733 return $ac_func ();
37734   ;
37735   return 0;
37736 }
37737 _ACEOF
37738 rm -f conftest.$ac_objext conftest$ac_exeext
37739 if { (ac_try="$ac_link"
37740 case "(($ac_try" in
37741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37742   *) ac_try_echo=$ac_try;;
37743 esac
37744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37745   (eval "$ac_link") 2>conftest.er1
37746   ac_status=$?
37747   grep -v '^ *+' conftest.er1 >conftest.err
37748   rm -f conftest.er1
37749   cat conftest.err >&5
37750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37751   (exit $ac_status); } && {
37752          test -z "$ac_c_werror_flag" ||
37753          test ! -s conftest.err
37754        } && test -s conftest$ac_exeext &&
37755        $as_test_x conftest$ac_exeext; then
37756   eval "$as_ac_var=yes"
37757 else
37758   echo "$as_me: failed program was:" >&5
37759 sed 's/^/| /' conftest.$ac_ext >&5
37760
37761         eval "$as_ac_var=no"
37762 fi
37763
37764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37765       conftest$ac_exeext conftest.$ac_ext
37766 fi
37767 ac_res=`eval echo '${'$as_ac_var'}'`
37768                { echo "$as_me:$LINENO: result: $ac_res" >&5
37769 echo "${ECHO_T}$ac_res" >&6; }
37770 if test `eval echo '${'$as_ac_var'}'` = yes; then
37771   cat >>confdefs.h <<_ACEOF
37772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37773 _ACEOF
37774  cat >>confdefs.h <<\_ACEOF
37775 #define HAVE_STRTOLL 1
37776 _ACEOF
37777
37778 fi
37779 done
37780
37781
37782 for ac_func in posix_fadvise
37783 do
37784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37788   echo $ECHO_N "(cached) $ECHO_C" >&6
37789 else
37790   cat >conftest.$ac_ext <<_ACEOF
37791 /* confdefs.h.  */
37792 _ACEOF
37793 cat confdefs.h >>conftest.$ac_ext
37794 cat >>conftest.$ac_ext <<_ACEOF
37795 /* end confdefs.h.  */
37796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37798 #define $ac_func innocuous_$ac_func
37799
37800 /* System header to define __stub macros and hopefully few prototypes,
37801     which can conflict with char $ac_func (); below.
37802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37803     <limits.h> exists even on freestanding compilers.  */
37804
37805 #ifdef __STDC__
37806 # include <limits.h>
37807 #else
37808 # include <assert.h>
37809 #endif
37810
37811 #undef $ac_func
37812
37813 /* Override any GCC internal prototype to avoid an error.
37814    Use char because int might match the return type of a GCC
37815    builtin and then its argument prototype would still apply.  */
37816 #ifdef __cplusplus
37817 extern "C"
37818 #endif
37819 char $ac_func ();
37820 /* The GNU C library defines this for functions which it implements
37821     to always fail with ENOSYS.  Some functions are actually named
37822     something starting with __ and the normal name is an alias.  */
37823 #if defined __stub_$ac_func || defined __stub___$ac_func
37824 choke me
37825 #endif
37826
37827 int
37828 main ()
37829 {
37830 return $ac_func ();
37831   ;
37832   return 0;
37833 }
37834 _ACEOF
37835 rm -f conftest.$ac_objext conftest$ac_exeext
37836 if { (ac_try="$ac_link"
37837 case "(($ac_try" in
37838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37839   *) ac_try_echo=$ac_try;;
37840 esac
37841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37842   (eval "$ac_link") 2>conftest.er1
37843   ac_status=$?
37844   grep -v '^ *+' conftest.er1 >conftest.err
37845   rm -f conftest.er1
37846   cat conftest.err >&5
37847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37848   (exit $ac_status); } && {
37849          test -z "$ac_c_werror_flag" ||
37850          test ! -s conftest.err
37851        } && test -s conftest$ac_exeext &&
37852        $as_test_x conftest$ac_exeext; then
37853   eval "$as_ac_var=yes"
37854 else
37855   echo "$as_me: failed program was:" >&5
37856 sed 's/^/| /' conftest.$ac_ext >&5
37857
37858         eval "$as_ac_var=no"
37859 fi
37860
37861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37862       conftest$ac_exeext conftest.$ac_ext
37863 fi
37864 ac_res=`eval echo '${'$as_ac_var'}'`
37865                { echo "$as_me:$LINENO: result: $ac_res" >&5
37866 echo "${ECHO_T}$ac_res" >&6; }
37867 if test `eval echo '${'$as_ac_var'}'` = yes; then
37868   cat >>confdefs.h <<_ACEOF
37869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37870 _ACEOF
37871
37872 fi
37873 done
37874
37875
37876 for ac_func in fdatasync
37877 do
37878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37882   echo $ECHO_N "(cached) $ECHO_C" >&6
37883 else
37884   cat >conftest.$ac_ext <<_ACEOF
37885 /* confdefs.h.  */
37886 _ACEOF
37887 cat confdefs.h >>conftest.$ac_ext
37888 cat >>conftest.$ac_ext <<_ACEOF
37889 /* end confdefs.h.  */
37890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37892 #define $ac_func innocuous_$ac_func
37893
37894 /* System header to define __stub macros and hopefully few prototypes,
37895     which can conflict with char $ac_func (); below.
37896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37897     <limits.h> exists even on freestanding compilers.  */
37898
37899 #ifdef __STDC__
37900 # include <limits.h>
37901 #else
37902 # include <assert.h>
37903 #endif
37904
37905 #undef $ac_func
37906
37907 /* Override any GCC internal prototype to avoid an error.
37908    Use char because int might match the return type of a GCC
37909    builtin and then its argument prototype would still apply.  */
37910 #ifdef __cplusplus
37911 extern "C"
37912 #endif
37913 char $ac_func ();
37914 /* The GNU C library defines this for functions which it implements
37915     to always fail with ENOSYS.  Some functions are actually named
37916     something starting with __ and the normal name is an alias.  */
37917 #if defined __stub_$ac_func || defined __stub___$ac_func
37918 choke me
37919 #endif
37920
37921 int
37922 main ()
37923 {
37924 return $ac_func ();
37925   ;
37926   return 0;
37927 }
37928 _ACEOF
37929 rm -f conftest.$ac_objext conftest$ac_exeext
37930 if { (ac_try="$ac_link"
37931 case "(($ac_try" in
37932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37933   *) ac_try_echo=$ac_try;;
37934 esac
37935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37936   (eval "$ac_link") 2>conftest.er1
37937   ac_status=$?
37938   grep -v '^ *+' conftest.er1 >conftest.err
37939   rm -f conftest.er1
37940   cat conftest.err >&5
37941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942   (exit $ac_status); } && {
37943          test -z "$ac_c_werror_flag" ||
37944          test ! -s conftest.err
37945        } && test -s conftest$ac_exeext &&
37946        $as_test_x conftest$ac_exeext; then
37947   eval "$as_ac_var=yes"
37948 else
37949   echo "$as_me: failed program was:" >&5
37950 sed 's/^/| /' conftest.$ac_ext >&5
37951
37952         eval "$as_ac_var=no"
37953 fi
37954
37955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37956       conftest$ac_exeext conftest.$ac_ext
37957 fi
37958 ac_res=`eval echo '${'$as_ac_var'}'`
37959                { echo "$as_me:$LINENO: result: $ac_res" >&5
37960 echo "${ECHO_T}$ac_res" >&6; }
37961 if test `eval echo '${'$as_ac_var'}'` = yes; then
37962   cat >>confdefs.h <<_ACEOF
37963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37964 _ACEOF
37965
37966 fi
37967 done
37968
37969
37970
37971 for ac_func in chflags
37972 do
37973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37977   echo $ECHO_N "(cached) $ECHO_C" >&6
37978 else
37979   cat >conftest.$ac_ext <<_ACEOF
37980 /* confdefs.h.  */
37981 _ACEOF
37982 cat confdefs.h >>conftest.$ac_ext
37983 cat >>conftest.$ac_ext <<_ACEOF
37984 /* end confdefs.h.  */
37985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37987 #define $ac_func innocuous_$ac_func
37988
37989 /* System header to define __stub macros and hopefully few prototypes,
37990     which can conflict with char $ac_func (); below.
37991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37992     <limits.h> exists even on freestanding compilers.  */
37993
37994 #ifdef __STDC__
37995 # include <limits.h>
37996 #else
37997 # include <assert.h>
37998 #endif
37999
38000 #undef $ac_func
38001
38002 /* Override any GCC internal prototype to avoid an error.
38003    Use char because int might match the return type of a GCC
38004    builtin and then its argument prototype would still apply.  */
38005 #ifdef __cplusplus
38006 extern "C"
38007 #endif
38008 char $ac_func ();
38009 /* The GNU C library defines this for functions which it implements
38010     to always fail with ENOSYS.  Some functions are actually named
38011     something starting with __ and the normal name is an alias.  */
38012 #if defined __stub_$ac_func || defined __stub___$ac_func
38013 choke me
38014 #endif
38015
38016 int
38017 main ()
38018 {
38019 return $ac_func ();
38020   ;
38021   return 0;
38022 }
38023 _ACEOF
38024 rm -f conftest.$ac_objext conftest$ac_exeext
38025 if { (ac_try="$ac_link"
38026 case "(($ac_try" in
38027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38028   *) ac_try_echo=$ac_try;;
38029 esac
38030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38031   (eval "$ac_link") 2>conftest.er1
38032   ac_status=$?
38033   grep -v '^ *+' conftest.er1 >conftest.err
38034   rm -f conftest.er1
38035   cat conftest.err >&5
38036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037   (exit $ac_status); } && {
38038          test -z "$ac_c_werror_flag" ||
38039          test ! -s conftest.err
38040        } && test -s conftest$ac_exeext &&
38041        $as_test_x conftest$ac_exeext; then
38042   eval "$as_ac_var=yes"
38043 else
38044   echo "$as_me: failed program was:" >&5
38045 sed 's/^/| /' conftest.$ac_ext >&5
38046
38047         eval "$as_ac_var=no"
38048 fi
38049
38050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38051       conftest$ac_exeext conftest.$ac_ext
38052 fi
38053 ac_res=`eval echo '${'$as_ac_var'}'`
38054                { echo "$as_me:$LINENO: result: $ac_res" >&5
38055 echo "${ECHO_T}$ac_res" >&6; }
38056 if test `eval echo '${'$as_ac_var'}'` = yes; then
38057   cat >>confdefs.h <<_ACEOF
38058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38059 _ACEOF
38060
38061 fi
38062 done
38063
38064
38065
38066
38067
38068
38069 for ac_func in snprintf vsnprintf gethostid fseeko
38070 do
38071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38075   echo $ECHO_N "(cached) $ECHO_C" >&6
38076 else
38077   cat >conftest.$ac_ext <<_ACEOF
38078 /* confdefs.h.  */
38079 _ACEOF
38080 cat confdefs.h >>conftest.$ac_ext
38081 cat >>conftest.$ac_ext <<_ACEOF
38082 /* end confdefs.h.  */
38083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38085 #define $ac_func innocuous_$ac_func
38086
38087 /* System header to define __stub macros and hopefully few prototypes,
38088     which can conflict with char $ac_func (); below.
38089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38090     <limits.h> exists even on freestanding compilers.  */
38091
38092 #ifdef __STDC__
38093 # include <limits.h>
38094 #else
38095 # include <assert.h>
38096 #endif
38097
38098 #undef $ac_func
38099
38100 /* Override any GCC internal prototype to avoid an error.
38101    Use char because int might match the return type of a GCC
38102    builtin and then its argument prototype would still apply.  */
38103 #ifdef __cplusplus
38104 extern "C"
38105 #endif
38106 char $ac_func ();
38107 /* The GNU C library defines this for functions which it implements
38108     to always fail with ENOSYS.  Some functions are actually named
38109     something starting with __ and the normal name is an alias.  */
38110 #if defined __stub_$ac_func || defined __stub___$ac_func
38111 choke me
38112 #endif
38113
38114 int
38115 main ()
38116 {
38117 return $ac_func ();
38118   ;
38119   return 0;
38120 }
38121 _ACEOF
38122 rm -f conftest.$ac_objext conftest$ac_exeext
38123 if { (ac_try="$ac_link"
38124 case "(($ac_try" in
38125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38126   *) ac_try_echo=$ac_try;;
38127 esac
38128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38129   (eval "$ac_link") 2>conftest.er1
38130   ac_status=$?
38131   grep -v '^ *+' conftest.er1 >conftest.err
38132   rm -f conftest.er1
38133   cat conftest.err >&5
38134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135   (exit $ac_status); } && {
38136          test -z "$ac_c_werror_flag" ||
38137          test ! -s conftest.err
38138        } && test -s conftest$ac_exeext &&
38139        $as_test_x conftest$ac_exeext; then
38140   eval "$as_ac_var=yes"
38141 else
38142   echo "$as_me: failed program was:" >&5
38143 sed 's/^/| /' conftest.$ac_ext >&5
38144
38145         eval "$as_ac_var=no"
38146 fi
38147
38148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38149       conftest$ac_exeext conftest.$ac_ext
38150 fi
38151 ac_res=`eval echo '${'$as_ac_var'}'`
38152                { echo "$as_me:$LINENO: result: $ac_res" >&5
38153 echo "${ECHO_T}$ac_res" >&6; }
38154 if test `eval echo '${'$as_ac_var'}'` = yes; then
38155   cat >>confdefs.h <<_ACEOF
38156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38157 _ACEOF
38158
38159 fi
38160 done
38161
38162
38163 { echo "$as_me:$LINENO: checking for va_copy" >&5
38164 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38165 if test "${ba_cv_va_copy+set}" = set; then
38166   echo $ECHO_N "(cached) $ECHO_C" >&6
38167 else
38168
38169        cat >conftest.$ac_ext <<_ACEOF
38170 /* confdefs.h.  */
38171 _ACEOF
38172 cat confdefs.h >>conftest.$ac_ext
38173 cat >>conftest.$ac_ext <<_ACEOF
38174 /* end confdefs.h.  */
38175
38176               #include <stdarg.h>
38177               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38178               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38179
38180 int
38181 main ()
38182 {
38183
38184               call_use_va_copy(1,2,3)
38185
38186   ;
38187   return 0;
38188 }
38189 _ACEOF
38190 rm -f conftest.$ac_objext conftest$ac_exeext
38191 if { (ac_try="$ac_link"
38192 case "(($ac_try" in
38193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38194   *) ac_try_echo=$ac_try;;
38195 esac
38196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38197   (eval "$ac_link") 2>conftest.er1
38198   ac_status=$?
38199   grep -v '^ *+' conftest.er1 >conftest.err
38200   rm -f conftest.er1
38201   cat conftest.err >&5
38202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38203   (exit $ac_status); } && {
38204          test -z "$ac_c_werror_flag" ||
38205          test ! -s conftest.err
38206        } && test -s conftest$ac_exeext &&
38207        $as_test_x conftest$ac_exeext; then
38208
38209               ba_cv_va_copy=yes,
38210
38211 else
38212   echo "$as_me: failed program was:" >&5
38213 sed 's/^/| /' conftest.$ac_ext >&5
38214
38215
38216               ba_cv_va_copy=no
38217
38218
38219 fi
38220
38221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38222       conftest$ac_exeext conftest.$ac_ext
38223
38224
38225 fi
38226 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38227 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38228 test $ba_cv_va_copy = yes &&
38229 cat >>confdefs.h <<\_ACEOF
38230 #define HAVE_VA_COPY 1
38231 _ACEOF
38232
38233
38234
38235
38236
38237
38238 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38239 do
38240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38244   echo $ECHO_N "(cached) $ECHO_C" >&6
38245 else
38246   cat >conftest.$ac_ext <<_ACEOF
38247 /* confdefs.h.  */
38248 _ACEOF
38249 cat confdefs.h >>conftest.$ac_ext
38250 cat >>conftest.$ac_ext <<_ACEOF
38251 /* end confdefs.h.  */
38252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38254 #define $ac_func innocuous_$ac_func
38255
38256 /* System header to define __stub macros and hopefully few prototypes,
38257     which can conflict with char $ac_func (); below.
38258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38259     <limits.h> exists even on freestanding compilers.  */
38260
38261 #ifdef __STDC__
38262 # include <limits.h>
38263 #else
38264 # include <assert.h>
38265 #endif
38266
38267 #undef $ac_func
38268
38269 /* Override any GCC internal prototype to avoid an error.
38270    Use char because int might match the return type of a GCC
38271    builtin and then its argument prototype would still apply.  */
38272 #ifdef __cplusplus
38273 extern "C"
38274 #endif
38275 char $ac_func ();
38276 /* The GNU C library defines this for functions which it implements
38277     to always fail with ENOSYS.  Some functions are actually named
38278     something starting with __ and the normal name is an alias.  */
38279 #if defined __stub_$ac_func || defined __stub___$ac_func
38280 choke me
38281 #endif
38282
38283 int
38284 main ()
38285 {
38286 return $ac_func ();
38287   ;
38288   return 0;
38289 }
38290 _ACEOF
38291 rm -f conftest.$ac_objext conftest$ac_exeext
38292 if { (ac_try="$ac_link"
38293 case "(($ac_try" in
38294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38295   *) ac_try_echo=$ac_try;;
38296 esac
38297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38298   (eval "$ac_link") 2>conftest.er1
38299   ac_status=$?
38300   grep -v '^ *+' conftest.er1 >conftest.err
38301   rm -f conftest.er1
38302   cat conftest.err >&5
38303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38304   (exit $ac_status); } && {
38305          test -z "$ac_c_werror_flag" ||
38306          test ! -s conftest.err
38307        } && test -s conftest$ac_exeext &&
38308        $as_test_x conftest$ac_exeext; then
38309   eval "$as_ac_var=yes"
38310 else
38311   echo "$as_me: failed program was:" >&5
38312 sed 's/^/| /' conftest.$ac_ext >&5
38313
38314         eval "$as_ac_var=no"
38315 fi
38316
38317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38318       conftest$ac_exeext conftest.$ac_ext
38319 fi
38320 ac_res=`eval echo '${'$as_ac_var'}'`
38321                { echo "$as_me:$LINENO: result: $ac_res" >&5
38322 echo "${ECHO_T}$ac_res" >&6; }
38323 if test `eval echo '${'$as_ac_var'}'` = yes; then
38324   cat >>confdefs.h <<_ACEOF
38325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38326 _ACEOF
38327
38328 fi
38329 done
38330
38331
38332 # If resolver functions are not in libc check for -lnsl or -lresolv.
38333 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38334 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38335 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38336   echo $ECHO_N "(cached) $ECHO_C" >&6
38337 else
38338   cat >conftest.$ac_ext <<_ACEOF
38339 /* confdefs.h.  */
38340 _ACEOF
38341 cat confdefs.h >>conftest.$ac_ext
38342 cat >>conftest.$ac_ext <<_ACEOF
38343 /* end confdefs.h.  */
38344 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38346 #define gethostbyname_r innocuous_gethostbyname_r
38347
38348 /* System header to define __stub macros and hopefully few prototypes,
38349     which can conflict with char gethostbyname_r (); below.
38350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38351     <limits.h> exists even on freestanding compilers.  */
38352
38353 #ifdef __STDC__
38354 # include <limits.h>
38355 #else
38356 # include <assert.h>
38357 #endif
38358
38359 #undef gethostbyname_r
38360
38361 /* Override any GCC internal prototype to avoid an error.
38362    Use char because int might match the return type of a GCC
38363    builtin and then its argument prototype would still apply.  */
38364 #ifdef __cplusplus
38365 extern "C"
38366 #endif
38367 char gethostbyname_r ();
38368 /* The GNU C library defines this for functions which it implements
38369     to always fail with ENOSYS.  Some functions are actually named
38370     something starting with __ and the normal name is an alias.  */
38371 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38372 choke me
38373 #endif
38374
38375 int
38376 main ()
38377 {
38378 return gethostbyname_r ();
38379   ;
38380   return 0;
38381 }
38382 _ACEOF
38383 rm -f conftest.$ac_objext conftest$ac_exeext
38384 if { (ac_try="$ac_link"
38385 case "(($ac_try" in
38386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38387   *) ac_try_echo=$ac_try;;
38388 esac
38389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38390   (eval "$ac_link") 2>conftest.er1
38391   ac_status=$?
38392   grep -v '^ *+' conftest.er1 >conftest.err
38393   rm -f conftest.er1
38394   cat conftest.err >&5
38395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38396   (exit $ac_status); } && {
38397          test -z "$ac_c_werror_flag" ||
38398          test ! -s conftest.err
38399        } && test -s conftest$ac_exeext &&
38400        $as_test_x conftest$ac_exeext; then
38401   ac_cv_func_gethostbyname_r=yes
38402 else
38403   echo "$as_me: failed program was:" >&5
38404 sed 's/^/| /' conftest.$ac_ext >&5
38405
38406         ac_cv_func_gethostbyname_r=no
38407 fi
38408
38409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38410       conftest$ac_exeext conftest.$ac_ext
38411 fi
38412 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38413 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38414 if test $ac_cv_func_gethostbyname_r = yes; then
38415   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38416 echo "${ECHO_T}using libc's resolver" >&6; }
38417 else
38418
38419 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38420 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38421 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38422   echo $ECHO_N "(cached) $ECHO_C" >&6
38423 else
38424   ac_check_lib_save_LIBS=$LIBS
38425 LIBS="-lnsl  $LIBS"
38426 cat >conftest.$ac_ext <<_ACEOF
38427 /* confdefs.h.  */
38428 _ACEOF
38429 cat confdefs.h >>conftest.$ac_ext
38430 cat >>conftest.$ac_ext <<_ACEOF
38431 /* end confdefs.h.  */
38432
38433 /* Override any GCC internal prototype to avoid an error.
38434    Use char because int might match the return type of a GCC
38435    builtin and then its argument prototype would still apply.  */
38436 #ifdef __cplusplus
38437 extern "C"
38438 #endif
38439 char gethostbyname_r ();
38440 int
38441 main ()
38442 {
38443 return gethostbyname_r ();
38444   ;
38445   return 0;
38446 }
38447 _ACEOF
38448 rm -f conftest.$ac_objext conftest$ac_exeext
38449 if { (ac_try="$ac_link"
38450 case "(($ac_try" in
38451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38452   *) ac_try_echo=$ac_try;;
38453 esac
38454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38455   (eval "$ac_link") 2>conftest.er1
38456   ac_status=$?
38457   grep -v '^ *+' conftest.er1 >conftest.err
38458   rm -f conftest.er1
38459   cat conftest.err >&5
38460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38461   (exit $ac_status); } && {
38462          test -z "$ac_c_werror_flag" ||
38463          test ! -s conftest.err
38464        } && test -s conftest$ac_exeext &&
38465        $as_test_x conftest$ac_exeext; then
38466   ac_cv_lib_nsl_gethostbyname_r=yes
38467 else
38468   echo "$as_me: failed program was:" >&5
38469 sed 's/^/| /' conftest.$ac_ext >&5
38470
38471         ac_cv_lib_nsl_gethostbyname_r=no
38472 fi
38473
38474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38475       conftest$ac_exeext conftest.$ac_ext
38476 LIBS=$ac_check_lib_save_LIBS
38477 fi
38478 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38479 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38480 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38481   cat >>confdefs.h <<_ACEOF
38482 #define HAVE_LIBNSL 1
38483 _ACEOF
38484
38485   LIBS="-lnsl $LIBS"
38486
38487 fi
38488
38489
38490 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38491 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38492 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38493   echo $ECHO_N "(cached) $ECHO_C" >&6
38494 else
38495   ac_check_lib_save_LIBS=$LIBS
38496 LIBS="-lresolv  $LIBS"
38497 cat >conftest.$ac_ext <<_ACEOF
38498 /* confdefs.h.  */
38499 _ACEOF
38500 cat confdefs.h >>conftest.$ac_ext
38501 cat >>conftest.$ac_ext <<_ACEOF
38502 /* end confdefs.h.  */
38503
38504 /* Override any GCC internal prototype to avoid an error.
38505    Use char because int might match the return type of a GCC
38506    builtin and then its argument prototype would still apply.  */
38507 #ifdef __cplusplus
38508 extern "C"
38509 #endif
38510 char gethostbyname_r ();
38511 int
38512 main ()
38513 {
38514 return gethostbyname_r ();
38515   ;
38516   return 0;
38517 }
38518 _ACEOF
38519 rm -f conftest.$ac_objext conftest$ac_exeext
38520 if { (ac_try="$ac_link"
38521 case "(($ac_try" in
38522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38523   *) ac_try_echo=$ac_try;;
38524 esac
38525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38526   (eval "$ac_link") 2>conftest.er1
38527   ac_status=$?
38528   grep -v '^ *+' conftest.er1 >conftest.err
38529   rm -f conftest.er1
38530   cat conftest.err >&5
38531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38532   (exit $ac_status); } && {
38533          test -z "$ac_c_werror_flag" ||
38534          test ! -s conftest.err
38535        } && test -s conftest$ac_exeext &&
38536        $as_test_x conftest$ac_exeext; then
38537   ac_cv_lib_resolv_gethostbyname_r=yes
38538 else
38539   echo "$as_me: failed program was:" >&5
38540 sed 's/^/| /' conftest.$ac_ext >&5
38541
38542         ac_cv_lib_resolv_gethostbyname_r=no
38543 fi
38544
38545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38546       conftest$ac_exeext conftest.$ac_ext
38547 LIBS=$ac_check_lib_save_LIBS
38548 fi
38549 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38550 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38551 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38552   cat >>confdefs.h <<_ACEOF
38553 #define HAVE_LIBRESOLV 1
38554 _ACEOF
38555
38556   LIBS="-lresolv $LIBS"
38557
38558 fi
38559
38560 fi
38561
38562
38563
38564 for ac_func in inet_pton
38565 do
38566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38570   echo $ECHO_N "(cached) $ECHO_C" >&6
38571 else
38572   cat >conftest.$ac_ext <<_ACEOF
38573 /* confdefs.h.  */
38574 _ACEOF
38575 cat confdefs.h >>conftest.$ac_ext
38576 cat >>conftest.$ac_ext <<_ACEOF
38577 /* end confdefs.h.  */
38578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38580 #define $ac_func innocuous_$ac_func
38581
38582 /* System header to define __stub macros and hopefully few prototypes,
38583     which can conflict with char $ac_func (); below.
38584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38585     <limits.h> exists even on freestanding compilers.  */
38586
38587 #ifdef __STDC__
38588 # include <limits.h>
38589 #else
38590 # include <assert.h>
38591 #endif
38592
38593 #undef $ac_func
38594
38595 /* Override any GCC internal prototype to avoid an error.
38596    Use char because int might match the return type of a GCC
38597    builtin and then its argument prototype would still apply.  */
38598 #ifdef __cplusplus
38599 extern "C"
38600 #endif
38601 char $ac_func ();
38602 /* The GNU C library defines this for functions which it implements
38603     to always fail with ENOSYS.  Some functions are actually named
38604     something starting with __ and the normal name is an alias.  */
38605 #if defined __stub_$ac_func || defined __stub___$ac_func
38606 choke me
38607 #endif
38608
38609 int
38610 main ()
38611 {
38612 return $ac_func ();
38613   ;
38614   return 0;
38615 }
38616 _ACEOF
38617 rm -f conftest.$ac_objext conftest$ac_exeext
38618 if { (ac_try="$ac_link"
38619 case "(($ac_try" in
38620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38621   *) ac_try_echo=$ac_try;;
38622 esac
38623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38624   (eval "$ac_link") 2>conftest.er1
38625   ac_status=$?
38626   grep -v '^ *+' conftest.er1 >conftest.err
38627   rm -f conftest.er1
38628   cat conftest.err >&5
38629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630   (exit $ac_status); } && {
38631          test -z "$ac_c_werror_flag" ||
38632          test ! -s conftest.err
38633        } && test -s conftest$ac_exeext &&
38634        $as_test_x conftest$ac_exeext; then
38635   eval "$as_ac_var=yes"
38636 else
38637   echo "$as_me: failed program was:" >&5
38638 sed 's/^/| /' conftest.$ac_ext >&5
38639
38640         eval "$as_ac_var=no"
38641 fi
38642
38643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38644       conftest$ac_exeext conftest.$ac_ext
38645 fi
38646 ac_res=`eval echo '${'$as_ac_var'}'`
38647                { echo "$as_me:$LINENO: result: $ac_res" >&5
38648 echo "${ECHO_T}$ac_res" >&6; }
38649 if test `eval echo '${'$as_ac_var'}'` = yes; then
38650   cat >>confdefs.h <<_ACEOF
38651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38652 _ACEOF
38653  cat >>confdefs.h <<\_ACEOF
38654 #define HAVE_INET_PTON 1
38655 _ACEOF
38656
38657 fi
38658 done
38659
38660
38661 for ac_func in inet_ntop
38662 do
38663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38664 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38666 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38667   echo $ECHO_N "(cached) $ECHO_C" >&6
38668 else
38669   cat >conftest.$ac_ext <<_ACEOF
38670 /* confdefs.h.  */
38671 _ACEOF
38672 cat confdefs.h >>conftest.$ac_ext
38673 cat >>conftest.$ac_ext <<_ACEOF
38674 /* end confdefs.h.  */
38675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38677 #define $ac_func innocuous_$ac_func
38678
38679 /* System header to define __stub macros and hopefully few prototypes,
38680     which can conflict with char $ac_func (); below.
38681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38682     <limits.h> exists even on freestanding compilers.  */
38683
38684 #ifdef __STDC__
38685 # include <limits.h>
38686 #else
38687 # include <assert.h>
38688 #endif
38689
38690 #undef $ac_func
38691
38692 /* Override any GCC internal prototype to avoid an error.
38693    Use char because int might match the return type of a GCC
38694    builtin and then its argument prototype would still apply.  */
38695 #ifdef __cplusplus
38696 extern "C"
38697 #endif
38698 char $ac_func ();
38699 /* The GNU C library defines this for functions which it implements
38700     to always fail with ENOSYS.  Some functions are actually named
38701     something starting with __ and the normal name is an alias.  */
38702 #if defined __stub_$ac_func || defined __stub___$ac_func
38703 choke me
38704 #endif
38705
38706 int
38707 main ()
38708 {
38709 return $ac_func ();
38710   ;
38711   return 0;
38712 }
38713 _ACEOF
38714 rm -f conftest.$ac_objext conftest$ac_exeext
38715 if { (ac_try="$ac_link"
38716 case "(($ac_try" in
38717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38718   *) ac_try_echo=$ac_try;;
38719 esac
38720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38721   (eval "$ac_link") 2>conftest.er1
38722   ac_status=$?
38723   grep -v '^ *+' conftest.er1 >conftest.err
38724   rm -f conftest.er1
38725   cat conftest.err >&5
38726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727   (exit $ac_status); } && {
38728          test -z "$ac_c_werror_flag" ||
38729          test ! -s conftest.err
38730        } && test -s conftest$ac_exeext &&
38731        $as_test_x conftest$ac_exeext; then
38732   eval "$as_ac_var=yes"
38733 else
38734   echo "$as_me: failed program was:" >&5
38735 sed 's/^/| /' conftest.$ac_ext >&5
38736
38737         eval "$as_ac_var=no"
38738 fi
38739
38740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38741       conftest$ac_exeext conftest.$ac_ext
38742 fi
38743 ac_res=`eval echo '${'$as_ac_var'}'`
38744                { echo "$as_me:$LINENO: result: $ac_res" >&5
38745 echo "${ECHO_T}$ac_res" >&6; }
38746 if test `eval echo '${'$as_ac_var'}'` = yes; then
38747   cat >>confdefs.h <<_ACEOF
38748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38749 _ACEOF
38750  cat >>confdefs.h <<\_ACEOF
38751 #define HAVE_INET_NTOP 1
38752 _ACEOF
38753
38754 fi
38755 done
38756
38757
38758 for ac_func in gethostbyname2
38759 do
38760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38761 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38764   echo $ECHO_N "(cached) $ECHO_C" >&6
38765 else
38766   cat >conftest.$ac_ext <<_ACEOF
38767 /* confdefs.h.  */
38768 _ACEOF
38769 cat confdefs.h >>conftest.$ac_ext
38770 cat >>conftest.$ac_ext <<_ACEOF
38771 /* end confdefs.h.  */
38772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38774 #define $ac_func innocuous_$ac_func
38775
38776 /* System header to define __stub macros and hopefully few prototypes,
38777     which can conflict with char $ac_func (); below.
38778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38779     <limits.h> exists even on freestanding compilers.  */
38780
38781 #ifdef __STDC__
38782 # include <limits.h>
38783 #else
38784 # include <assert.h>
38785 #endif
38786
38787 #undef $ac_func
38788
38789 /* Override any GCC internal prototype to avoid an error.
38790    Use char because int might match the return type of a GCC
38791    builtin and then its argument prototype would still apply.  */
38792 #ifdef __cplusplus
38793 extern "C"
38794 #endif
38795 char $ac_func ();
38796 /* The GNU C library defines this for functions which it implements
38797     to always fail with ENOSYS.  Some functions are actually named
38798     something starting with __ and the normal name is an alias.  */
38799 #if defined __stub_$ac_func || defined __stub___$ac_func
38800 choke me
38801 #endif
38802
38803 int
38804 main ()
38805 {
38806 return $ac_func ();
38807   ;
38808   return 0;
38809 }
38810 _ACEOF
38811 rm -f conftest.$ac_objext conftest$ac_exeext
38812 if { (ac_try="$ac_link"
38813 case "(($ac_try" in
38814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38815   *) ac_try_echo=$ac_try;;
38816 esac
38817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38818   (eval "$ac_link") 2>conftest.er1
38819   ac_status=$?
38820   grep -v '^ *+' conftest.er1 >conftest.err
38821   rm -f conftest.er1
38822   cat conftest.err >&5
38823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38824   (exit $ac_status); } && {
38825          test -z "$ac_c_werror_flag" ||
38826          test ! -s conftest.err
38827        } && test -s conftest$ac_exeext &&
38828        $as_test_x conftest$ac_exeext; then
38829   eval "$as_ac_var=yes"
38830 else
38831   echo "$as_me: failed program was:" >&5
38832 sed 's/^/| /' conftest.$ac_ext >&5
38833
38834         eval "$as_ac_var=no"
38835 fi
38836
38837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38838       conftest$ac_exeext conftest.$ac_ext
38839 fi
38840 ac_res=`eval echo '${'$as_ac_var'}'`
38841                { echo "$as_me:$LINENO: result: $ac_res" >&5
38842 echo "${ECHO_T}$ac_res" >&6; }
38843 if test `eval echo '${'$as_ac_var'}'` = yes; then
38844   cat >>confdefs.h <<_ACEOF
38845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38846 _ACEOF
38847  cat >>confdefs.h <<\_ACEOF
38848 #define HAVE_GETHOSTBYNAME2 1
38849 _ACEOF
38850
38851 fi
38852 done
38853
38854
38855 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38856 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38857 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38858   echo $ECHO_N "(cached) $ECHO_C" >&6
38859 else
38860
38861        cat >conftest.$ac_ext <<_ACEOF
38862 /* confdefs.h.  */
38863 _ACEOF
38864 cat confdefs.h >>conftest.$ac_ext
38865 cat >>conftest.$ac_ext <<_ACEOF
38866 /* end confdefs.h.  */
38867
38868               #include <sys/socket.h>
38869
38870 int
38871 main ()
38872 {
38873
38874               struct sockaddr s; s.sa_len;
38875
38876   ;
38877   return 0;
38878 }
38879 _ACEOF
38880 rm -f conftest.$ac_objext
38881 if { (ac_try="$ac_compile"
38882 case "(($ac_try" in
38883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38884   *) ac_try_echo=$ac_try;;
38885 esac
38886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38887   (eval "$ac_compile") 2>conftest.er1
38888   ac_status=$?
38889   grep -v '^ *+' conftest.er1 >conftest.err
38890   rm -f conftest.er1
38891   cat conftest.err >&5
38892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893   (exit $ac_status); } && {
38894          test -z "$ac_c_werror_flag" ||
38895          test ! -s conftest.err
38896        } && test -s conftest.$ac_objext; then
38897
38898              ac_cv_struct_sockaddr_sa_len=yes
38899
38900 else
38901   echo "$as_me: failed program was:" >&5
38902 sed 's/^/| /' conftest.$ac_ext >&5
38903
38904         ac_cv_struct_sockaddr_sa_len=no
38905
38906
38907 fi
38908
38909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38910
38911
38912 fi
38913 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38914 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38915
38916 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38917
38918 cat >>confdefs.h <<\_ACEOF
38919 #define HAVE_SA_LEN 1
38920 _ACEOF
38921
38922 fi
38923
38924
38925 for ac_func in strftime
38926 do
38927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38931   echo $ECHO_N "(cached) $ECHO_C" >&6
38932 else
38933   cat >conftest.$ac_ext <<_ACEOF
38934 /* confdefs.h.  */
38935 _ACEOF
38936 cat confdefs.h >>conftest.$ac_ext
38937 cat >>conftest.$ac_ext <<_ACEOF
38938 /* end confdefs.h.  */
38939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38941 #define $ac_func innocuous_$ac_func
38942
38943 /* System header to define __stub macros and hopefully few prototypes,
38944     which can conflict with char $ac_func (); below.
38945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38946     <limits.h> exists even on freestanding compilers.  */
38947
38948 #ifdef __STDC__
38949 # include <limits.h>
38950 #else
38951 # include <assert.h>
38952 #endif
38953
38954 #undef $ac_func
38955
38956 /* Override any GCC internal prototype to avoid an error.
38957    Use char because int might match the return type of a GCC
38958    builtin and then its argument prototype would still apply.  */
38959 #ifdef __cplusplus
38960 extern "C"
38961 #endif
38962 char $ac_func ();
38963 /* The GNU C library defines this for functions which it implements
38964     to always fail with ENOSYS.  Some functions are actually named
38965     something starting with __ and the normal name is an alias.  */
38966 #if defined __stub_$ac_func || defined __stub___$ac_func
38967 choke me
38968 #endif
38969
38970 int
38971 main ()
38972 {
38973 return $ac_func ();
38974   ;
38975   return 0;
38976 }
38977 _ACEOF
38978 rm -f conftest.$ac_objext conftest$ac_exeext
38979 if { (ac_try="$ac_link"
38980 case "(($ac_try" in
38981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38982   *) ac_try_echo=$ac_try;;
38983 esac
38984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38985   (eval "$ac_link") 2>conftest.er1
38986   ac_status=$?
38987   grep -v '^ *+' conftest.er1 >conftest.err
38988   rm -f conftest.er1
38989   cat conftest.err >&5
38990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38991   (exit $ac_status); } && {
38992          test -z "$ac_c_werror_flag" ||
38993          test ! -s conftest.err
38994        } && test -s conftest$ac_exeext &&
38995        $as_test_x conftest$ac_exeext; then
38996   eval "$as_ac_var=yes"
38997 else
38998   echo "$as_me: failed program was:" >&5
38999 sed 's/^/| /' conftest.$ac_ext >&5
39000
39001         eval "$as_ac_var=no"
39002 fi
39003
39004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39005       conftest$ac_exeext conftest.$ac_ext
39006 fi
39007 ac_res=`eval echo '${'$as_ac_var'}'`
39008                { echo "$as_me:$LINENO: result: $ac_res" >&5
39009 echo "${ECHO_T}$ac_res" >&6; }
39010 if test `eval echo '${'$as_ac_var'}'` = yes; then
39011   cat >>confdefs.h <<_ACEOF
39012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39013 _ACEOF
39014
39015 else
39016   # strftime is in -lintl on SCO UNIX.
39017 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39018 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39019 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39020   echo $ECHO_N "(cached) $ECHO_C" >&6
39021 else
39022   ac_check_lib_save_LIBS=$LIBS
39023 LIBS="-lintl  $LIBS"
39024 cat >conftest.$ac_ext <<_ACEOF
39025 /* confdefs.h.  */
39026 _ACEOF
39027 cat confdefs.h >>conftest.$ac_ext
39028 cat >>conftest.$ac_ext <<_ACEOF
39029 /* end confdefs.h.  */
39030
39031 /* Override any GCC internal prototype to avoid an error.
39032    Use char because int might match the return type of a GCC
39033    builtin and then its argument prototype would still apply.  */
39034 #ifdef __cplusplus
39035 extern "C"
39036 #endif
39037 char strftime ();
39038 int
39039 main ()
39040 {
39041 return strftime ();
39042   ;
39043   return 0;
39044 }
39045 _ACEOF
39046 rm -f conftest.$ac_objext conftest$ac_exeext
39047 if { (ac_try="$ac_link"
39048 case "(($ac_try" in
39049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39050   *) ac_try_echo=$ac_try;;
39051 esac
39052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39053   (eval "$ac_link") 2>conftest.er1
39054   ac_status=$?
39055   grep -v '^ *+' conftest.er1 >conftest.err
39056   rm -f conftest.er1
39057   cat conftest.err >&5
39058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39059   (exit $ac_status); } && {
39060          test -z "$ac_c_werror_flag" ||
39061          test ! -s conftest.err
39062        } && test -s conftest$ac_exeext &&
39063        $as_test_x conftest$ac_exeext; then
39064   ac_cv_lib_intl_strftime=yes
39065 else
39066   echo "$as_me: failed program was:" >&5
39067 sed 's/^/| /' conftest.$ac_ext >&5
39068
39069         ac_cv_lib_intl_strftime=no
39070 fi
39071
39072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39073       conftest$ac_exeext conftest.$ac_ext
39074 LIBS=$ac_check_lib_save_LIBS
39075 fi
39076 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39077 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39078 if test $ac_cv_lib_intl_strftime = yes; then
39079   cat >>confdefs.h <<\_ACEOF
39080 #define HAVE_STRFTIME 1
39081 _ACEOF
39082
39083 LIBS="-lintl $LIBS"
39084 fi
39085
39086 fi
39087 done
39088
39089
39090 for ac_func in vprintf
39091 do
39092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39096   echo $ECHO_N "(cached) $ECHO_C" >&6
39097 else
39098   cat >conftest.$ac_ext <<_ACEOF
39099 /* confdefs.h.  */
39100 _ACEOF
39101 cat confdefs.h >>conftest.$ac_ext
39102 cat >>conftest.$ac_ext <<_ACEOF
39103 /* end confdefs.h.  */
39104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39106 #define $ac_func innocuous_$ac_func
39107
39108 /* System header to define __stub macros and hopefully few prototypes,
39109     which can conflict with char $ac_func (); below.
39110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39111     <limits.h> exists even on freestanding compilers.  */
39112
39113 #ifdef __STDC__
39114 # include <limits.h>
39115 #else
39116 # include <assert.h>
39117 #endif
39118
39119 #undef $ac_func
39120
39121 /* Override any GCC internal prototype to avoid an error.
39122    Use char because int might match the return type of a GCC
39123    builtin and then its argument prototype would still apply.  */
39124 #ifdef __cplusplus
39125 extern "C"
39126 #endif
39127 char $ac_func ();
39128 /* The GNU C library defines this for functions which it implements
39129     to always fail with ENOSYS.  Some functions are actually named
39130     something starting with __ and the normal name is an alias.  */
39131 #if defined __stub_$ac_func || defined __stub___$ac_func
39132 choke me
39133 #endif
39134
39135 int
39136 main ()
39137 {
39138 return $ac_func ();
39139   ;
39140   return 0;
39141 }
39142 _ACEOF
39143 rm -f conftest.$ac_objext conftest$ac_exeext
39144 if { (ac_try="$ac_link"
39145 case "(($ac_try" in
39146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39147   *) ac_try_echo=$ac_try;;
39148 esac
39149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39150   (eval "$ac_link") 2>conftest.er1
39151   ac_status=$?
39152   grep -v '^ *+' conftest.er1 >conftest.err
39153   rm -f conftest.er1
39154   cat conftest.err >&5
39155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156   (exit $ac_status); } && {
39157          test -z "$ac_c_werror_flag" ||
39158          test ! -s conftest.err
39159        } && test -s conftest$ac_exeext &&
39160        $as_test_x conftest$ac_exeext; then
39161   eval "$as_ac_var=yes"
39162 else
39163   echo "$as_me: failed program was:" >&5
39164 sed 's/^/| /' conftest.$ac_ext >&5
39165
39166         eval "$as_ac_var=no"
39167 fi
39168
39169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39170       conftest$ac_exeext conftest.$ac_ext
39171 fi
39172 ac_res=`eval echo '${'$as_ac_var'}'`
39173                { echo "$as_me:$LINENO: result: $ac_res" >&5
39174 echo "${ECHO_T}$ac_res" >&6; }
39175 if test `eval echo '${'$as_ac_var'}'` = yes; then
39176   cat >>confdefs.h <<_ACEOF
39177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39178 _ACEOF
39179
39180 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39181 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39182 if test "${ac_cv_func__doprnt+set}" = set; then
39183   echo $ECHO_N "(cached) $ECHO_C" >&6
39184 else
39185   cat >conftest.$ac_ext <<_ACEOF
39186 /* confdefs.h.  */
39187 _ACEOF
39188 cat confdefs.h >>conftest.$ac_ext
39189 cat >>conftest.$ac_ext <<_ACEOF
39190 /* end confdefs.h.  */
39191 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39193 #define _doprnt innocuous__doprnt
39194
39195 /* System header to define __stub macros and hopefully few prototypes,
39196     which can conflict with char _doprnt (); below.
39197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39198     <limits.h> exists even on freestanding compilers.  */
39199
39200 #ifdef __STDC__
39201 # include <limits.h>
39202 #else
39203 # include <assert.h>
39204 #endif
39205
39206 #undef _doprnt
39207
39208 /* Override any GCC internal prototype to avoid an error.
39209    Use char because int might match the return type of a GCC
39210    builtin and then its argument prototype would still apply.  */
39211 #ifdef __cplusplus
39212 extern "C"
39213 #endif
39214 char _doprnt ();
39215 /* The GNU C library defines this for functions which it implements
39216     to always fail with ENOSYS.  Some functions are actually named
39217     something starting with __ and the normal name is an alias.  */
39218 #if defined __stub__doprnt || defined __stub____doprnt
39219 choke me
39220 #endif
39221
39222 int
39223 main ()
39224 {
39225 return _doprnt ();
39226   ;
39227   return 0;
39228 }
39229 _ACEOF
39230 rm -f conftest.$ac_objext conftest$ac_exeext
39231 if { (ac_try="$ac_link"
39232 case "(($ac_try" in
39233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39234   *) ac_try_echo=$ac_try;;
39235 esac
39236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39237   (eval "$ac_link") 2>conftest.er1
39238   ac_status=$?
39239   grep -v '^ *+' conftest.er1 >conftest.err
39240   rm -f conftest.er1
39241   cat conftest.err >&5
39242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39243   (exit $ac_status); } && {
39244          test -z "$ac_c_werror_flag" ||
39245          test ! -s conftest.err
39246        } && test -s conftest$ac_exeext &&
39247        $as_test_x conftest$ac_exeext; then
39248   ac_cv_func__doprnt=yes
39249 else
39250   echo "$as_me: failed program was:" >&5
39251 sed 's/^/| /' conftest.$ac_ext >&5
39252
39253         ac_cv_func__doprnt=no
39254 fi
39255
39256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39257       conftest$ac_exeext conftest.$ac_ext
39258 fi
39259 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39260 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39261 if test $ac_cv_func__doprnt = yes; then
39262
39263 cat >>confdefs.h <<\_ACEOF
39264 #define HAVE_DOPRNT 1
39265 _ACEOF
39266
39267 fi
39268
39269 fi
39270 done
39271
39272
39273 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39274 # for constant arguments.  Useless!
39275 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39276 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39277 if test "${ac_cv_working_alloca_h+set}" = set; then
39278   echo $ECHO_N "(cached) $ECHO_C" >&6
39279 else
39280   cat >conftest.$ac_ext <<_ACEOF
39281 /* confdefs.h.  */
39282 _ACEOF
39283 cat confdefs.h >>conftest.$ac_ext
39284 cat >>conftest.$ac_ext <<_ACEOF
39285 /* end confdefs.h.  */
39286 #include <alloca.h>
39287 int
39288 main ()
39289 {
39290 char *p = (char *) alloca (2 * sizeof (int));
39291                           if (p) return 0;
39292   ;
39293   return 0;
39294 }
39295 _ACEOF
39296 rm -f conftest.$ac_objext conftest$ac_exeext
39297 if { (ac_try="$ac_link"
39298 case "(($ac_try" in
39299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39300   *) ac_try_echo=$ac_try;;
39301 esac
39302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39303   (eval "$ac_link") 2>conftest.er1
39304   ac_status=$?
39305   grep -v '^ *+' conftest.er1 >conftest.err
39306   rm -f conftest.er1
39307   cat conftest.err >&5
39308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39309   (exit $ac_status); } && {
39310          test -z "$ac_c_werror_flag" ||
39311          test ! -s conftest.err
39312        } && test -s conftest$ac_exeext &&
39313        $as_test_x conftest$ac_exeext; then
39314   ac_cv_working_alloca_h=yes
39315 else
39316   echo "$as_me: failed program was:" >&5
39317 sed 's/^/| /' conftest.$ac_ext >&5
39318
39319         ac_cv_working_alloca_h=no
39320 fi
39321
39322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39323       conftest$ac_exeext conftest.$ac_ext
39324 fi
39325 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39326 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39327 if test $ac_cv_working_alloca_h = yes; then
39328
39329 cat >>confdefs.h <<\_ACEOF
39330 #define HAVE_ALLOCA_H 1
39331 _ACEOF
39332
39333 fi
39334
39335 { echo "$as_me:$LINENO: checking for alloca" >&5
39336 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39337 if test "${ac_cv_func_alloca_works+set}" = set; then
39338   echo $ECHO_N "(cached) $ECHO_C" >&6
39339 else
39340   cat >conftest.$ac_ext <<_ACEOF
39341 /* confdefs.h.  */
39342 _ACEOF
39343 cat confdefs.h >>conftest.$ac_ext
39344 cat >>conftest.$ac_ext <<_ACEOF
39345 /* end confdefs.h.  */
39346 #ifdef __GNUC__
39347 # define alloca __builtin_alloca
39348 #else
39349 # ifdef _MSC_VER
39350 #  include <malloc.h>
39351 #  define alloca _alloca
39352 # else
39353 #  ifdef HAVE_ALLOCA_H
39354 #   include <alloca.h>
39355 #  else
39356 #   ifdef _AIX
39357  #pragma alloca
39358 #   else
39359 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39360 char *alloca ();
39361 #    endif
39362 #   endif
39363 #  endif
39364 # endif
39365 #endif
39366
39367 int
39368 main ()
39369 {
39370 char *p = (char *) alloca (1);
39371                                     if (p) return 0;
39372   ;
39373   return 0;
39374 }
39375 _ACEOF
39376 rm -f conftest.$ac_objext conftest$ac_exeext
39377 if { (ac_try="$ac_link"
39378 case "(($ac_try" in
39379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39380   *) ac_try_echo=$ac_try;;
39381 esac
39382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39383   (eval "$ac_link") 2>conftest.er1
39384   ac_status=$?
39385   grep -v '^ *+' conftest.er1 >conftest.err
39386   rm -f conftest.er1
39387   cat conftest.err >&5
39388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389   (exit $ac_status); } && {
39390          test -z "$ac_c_werror_flag" ||
39391          test ! -s conftest.err
39392        } && test -s conftest$ac_exeext &&
39393        $as_test_x conftest$ac_exeext; then
39394   ac_cv_func_alloca_works=yes
39395 else
39396   echo "$as_me: failed program was:" >&5
39397 sed 's/^/| /' conftest.$ac_ext >&5
39398
39399         ac_cv_func_alloca_works=no
39400 fi
39401
39402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39403       conftest$ac_exeext conftest.$ac_ext
39404 fi
39405 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39406 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39407
39408 if test $ac_cv_func_alloca_works = yes; then
39409
39410 cat >>confdefs.h <<\_ACEOF
39411 #define HAVE_ALLOCA 1
39412 _ACEOF
39413
39414 else
39415   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39416 # that cause trouble.  Some versions do not even contain alloca or
39417 # contain a buggy version.  If you still want to use their alloca,
39418 # use ar to extract alloca.o from them instead of compiling alloca.c.
39419
39420 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39421
39422 cat >>confdefs.h <<\_ACEOF
39423 #define C_ALLOCA 1
39424 _ACEOF
39425
39426
39427 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39428 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39429 if test "${ac_cv_os_cray+set}" = set; then
39430   echo $ECHO_N "(cached) $ECHO_C" >&6
39431 else
39432   cat >conftest.$ac_ext <<_ACEOF
39433 /* confdefs.h.  */
39434 _ACEOF
39435 cat confdefs.h >>conftest.$ac_ext
39436 cat >>conftest.$ac_ext <<_ACEOF
39437 /* end confdefs.h.  */
39438 #if defined CRAY && ! defined CRAY2
39439 webecray
39440 #else
39441 wenotbecray
39442 #endif
39443
39444 _ACEOF
39445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39446   $EGREP "webecray" >/dev/null 2>&1; then
39447   ac_cv_os_cray=yes
39448 else
39449   ac_cv_os_cray=no
39450 fi
39451 rm -f conftest*
39452
39453 fi
39454 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39455 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39456 if test $ac_cv_os_cray = yes; then
39457   for ac_func in _getb67 GETB67 getb67; do
39458     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39462   echo $ECHO_N "(cached) $ECHO_C" >&6
39463 else
39464   cat >conftest.$ac_ext <<_ACEOF
39465 /* confdefs.h.  */
39466 _ACEOF
39467 cat confdefs.h >>conftest.$ac_ext
39468 cat >>conftest.$ac_ext <<_ACEOF
39469 /* end confdefs.h.  */
39470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39472 #define $ac_func innocuous_$ac_func
39473
39474 /* System header to define __stub macros and hopefully few prototypes,
39475     which can conflict with char $ac_func (); below.
39476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39477     <limits.h> exists even on freestanding compilers.  */
39478
39479 #ifdef __STDC__
39480 # include <limits.h>
39481 #else
39482 # include <assert.h>
39483 #endif
39484
39485 #undef $ac_func
39486
39487 /* Override any GCC internal prototype to avoid an error.
39488    Use char because int might match the return type of a GCC
39489    builtin and then its argument prototype would still apply.  */
39490 #ifdef __cplusplus
39491 extern "C"
39492 #endif
39493 char $ac_func ();
39494 /* The GNU C library defines this for functions which it implements
39495     to always fail with ENOSYS.  Some functions are actually named
39496     something starting with __ and the normal name is an alias.  */
39497 #if defined __stub_$ac_func || defined __stub___$ac_func
39498 choke me
39499 #endif
39500
39501 int
39502 main ()
39503 {
39504 return $ac_func ();
39505   ;
39506   return 0;
39507 }
39508 _ACEOF
39509 rm -f conftest.$ac_objext conftest$ac_exeext
39510 if { (ac_try="$ac_link"
39511 case "(($ac_try" in
39512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39513   *) ac_try_echo=$ac_try;;
39514 esac
39515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39516   (eval "$ac_link") 2>conftest.er1
39517   ac_status=$?
39518   grep -v '^ *+' conftest.er1 >conftest.err
39519   rm -f conftest.er1
39520   cat conftest.err >&5
39521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39522   (exit $ac_status); } && {
39523          test -z "$ac_c_werror_flag" ||
39524          test ! -s conftest.err
39525        } && test -s conftest$ac_exeext &&
39526        $as_test_x conftest$ac_exeext; then
39527   eval "$as_ac_var=yes"
39528 else
39529   echo "$as_me: failed program was:" >&5
39530 sed 's/^/| /' conftest.$ac_ext >&5
39531
39532         eval "$as_ac_var=no"
39533 fi
39534
39535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39536       conftest$ac_exeext conftest.$ac_ext
39537 fi
39538 ac_res=`eval echo '${'$as_ac_var'}'`
39539                { echo "$as_me:$LINENO: result: $ac_res" >&5
39540 echo "${ECHO_T}$ac_res" >&6; }
39541 if test `eval echo '${'$as_ac_var'}'` = yes; then
39542
39543 cat >>confdefs.h <<_ACEOF
39544 #define CRAY_STACKSEG_END $ac_func
39545 _ACEOF
39546
39547     break
39548 fi
39549
39550   done
39551 fi
39552
39553 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39554 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39555 if test "${ac_cv_c_stack_direction+set}" = set; then
39556   echo $ECHO_N "(cached) $ECHO_C" >&6
39557 else
39558   if test "$cross_compiling" = yes; then
39559   ac_cv_c_stack_direction=0
39560 else
39561   cat >conftest.$ac_ext <<_ACEOF
39562 /* confdefs.h.  */
39563 _ACEOF
39564 cat confdefs.h >>conftest.$ac_ext
39565 cat >>conftest.$ac_ext <<_ACEOF
39566 /* end confdefs.h.  */
39567 $ac_includes_default
39568 int
39569 find_stack_direction ()
39570 {
39571   static char *addr = 0;
39572   auto char dummy;
39573   if (addr == 0)
39574     {
39575       addr = &dummy;
39576       return find_stack_direction ();
39577     }
39578   else
39579     return (&dummy > addr) ? 1 : -1;
39580 }
39581
39582 int
39583 main ()
39584 {
39585   return find_stack_direction () < 0;
39586 }
39587 _ACEOF
39588 rm -f conftest$ac_exeext
39589 if { (ac_try="$ac_link"
39590 case "(($ac_try" in
39591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39592   *) ac_try_echo=$ac_try;;
39593 esac
39594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39595   (eval "$ac_link") 2>&5
39596   ac_status=$?
39597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39599   { (case "(($ac_try" in
39600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39601   *) ac_try_echo=$ac_try;;
39602 esac
39603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39604   (eval "$ac_try") 2>&5
39605   ac_status=$?
39606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607   (exit $ac_status); }; }; then
39608   ac_cv_c_stack_direction=1
39609 else
39610   echo "$as_me: program exited with status $ac_status" >&5
39611 echo "$as_me: failed program was:" >&5
39612 sed 's/^/| /' conftest.$ac_ext >&5
39613
39614 ( exit $ac_status )
39615 ac_cv_c_stack_direction=-1
39616 fi
39617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39618 fi
39619
39620
39621 fi
39622 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39623 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39624
39625 cat >>confdefs.h <<_ACEOF
39626 #define STACK_DIRECTION $ac_cv_c_stack_direction
39627 _ACEOF
39628
39629
39630 fi
39631
39632 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39633 # -lseq on Dynix/PTX, -lgen on Unixware.
39634 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39635 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39636 if test "${ac_cv_search_getmntent+set}" = set; then
39637   echo $ECHO_N "(cached) $ECHO_C" >&6
39638 else
39639   ac_func_search_save_LIBS=$LIBS
39640 cat >conftest.$ac_ext <<_ACEOF
39641 /* confdefs.h.  */
39642 _ACEOF
39643 cat confdefs.h >>conftest.$ac_ext
39644 cat >>conftest.$ac_ext <<_ACEOF
39645 /* end confdefs.h.  */
39646
39647 /* Override any GCC internal prototype to avoid an error.
39648    Use char because int might match the return type of a GCC
39649    builtin and then its argument prototype would still apply.  */
39650 #ifdef __cplusplus
39651 extern "C"
39652 #endif
39653 char getmntent ();
39654 int
39655 main ()
39656 {
39657 return getmntent ();
39658   ;
39659   return 0;
39660 }
39661 _ACEOF
39662 for ac_lib in '' sun seq gen; do
39663   if test -z "$ac_lib"; then
39664     ac_res="none required"
39665   else
39666     ac_res=-l$ac_lib
39667     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39668   fi
39669   rm -f conftest.$ac_objext conftest$ac_exeext
39670 if { (ac_try="$ac_link"
39671 case "(($ac_try" in
39672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39673   *) ac_try_echo=$ac_try;;
39674 esac
39675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39676   (eval "$ac_link") 2>conftest.er1
39677   ac_status=$?
39678   grep -v '^ *+' conftest.er1 >conftest.err
39679   rm -f conftest.er1
39680   cat conftest.err >&5
39681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39682   (exit $ac_status); } && {
39683          test -z "$ac_c_werror_flag" ||
39684          test ! -s conftest.err
39685        } && test -s conftest$ac_exeext &&
39686        $as_test_x conftest$ac_exeext; then
39687   ac_cv_search_getmntent=$ac_res
39688 else
39689   echo "$as_me: failed program was:" >&5
39690 sed 's/^/| /' conftest.$ac_ext >&5
39691
39692
39693 fi
39694
39695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39696       conftest$ac_exeext
39697   if test "${ac_cv_search_getmntent+set}" = set; then
39698   break
39699 fi
39700 done
39701 if test "${ac_cv_search_getmntent+set}" = set; then
39702   :
39703 else
39704   ac_cv_search_getmntent=no
39705 fi
39706 rm conftest.$ac_ext
39707 LIBS=$ac_func_search_save_LIBS
39708 fi
39709 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39710 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39711 ac_res=$ac_cv_search_getmntent
39712 if test "$ac_res" != no; then
39713   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39714   ac_cv_func_getmntent=yes
39715
39716 cat >>confdefs.h <<\_ACEOF
39717 #define HAVE_GETMNTENT 1
39718 _ACEOF
39719
39720 else
39721   ac_cv_func_getmntent=no
39722 fi
39723
39724
39725 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39726 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39727 if test "${ac_cv_func_closedir_void+set}" = set; then
39728   echo $ECHO_N "(cached) $ECHO_C" >&6
39729 else
39730   if test "$cross_compiling" = yes; then
39731   ac_cv_func_closedir_void=yes
39732 else
39733   cat >conftest.$ac_ext <<_ACEOF
39734 /* confdefs.h.  */
39735 _ACEOF
39736 cat confdefs.h >>conftest.$ac_ext
39737 cat >>conftest.$ac_ext <<_ACEOF
39738 /* end confdefs.h.  */
39739 $ac_includes_default
39740 #include <$ac_header_dirent>
39741 #ifndef __cplusplus
39742 int closedir ();
39743 #endif
39744
39745 int
39746 main ()
39747 {
39748 return closedir (opendir (".")) != 0;
39749   ;
39750   return 0;
39751 }
39752 _ACEOF
39753 rm -f conftest$ac_exeext
39754 if { (ac_try="$ac_link"
39755 case "(($ac_try" in
39756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39757   *) ac_try_echo=$ac_try;;
39758 esac
39759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39760   (eval "$ac_link") 2>&5
39761   ac_status=$?
39762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39764   { (case "(($ac_try" in
39765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39766   *) ac_try_echo=$ac_try;;
39767 esac
39768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39769   (eval "$ac_try") 2>&5
39770   ac_status=$?
39771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39772   (exit $ac_status); }; }; then
39773   ac_cv_func_closedir_void=no
39774 else
39775   echo "$as_me: program exited with status $ac_status" >&5
39776 echo "$as_me: failed program was:" >&5
39777 sed 's/^/| /' conftest.$ac_ext >&5
39778
39779 ( exit $ac_status )
39780 ac_cv_func_closedir_void=yes
39781 fi
39782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39783 fi
39784
39785
39786 fi
39787 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39788 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39789 if test $ac_cv_func_closedir_void = yes; then
39790
39791 cat >>confdefs.h <<\_ACEOF
39792 #define CLOSEDIR_VOID 1
39793 _ACEOF
39794
39795 fi
39796
39797 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39798 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39799 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39800   echo $ECHO_N "(cached) $ECHO_C" >&6
39801 else
39802   if test "$cross_compiling" = yes; then
39803   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39804 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39805    { (exit 1); exit 1; }; }
39806 else
39807   cat >conftest.$ac_ext <<_ACEOF
39808 /* confdefs.h.  */
39809 _ACEOF
39810 cat confdefs.h >>conftest.$ac_ext
39811 cat >>conftest.$ac_ext <<_ACEOF
39812 /* end confdefs.h.  */
39813 $ac_includes_default
39814 int
39815 main ()
39816 {
39817 /* If this system has a BSD-style setpgrp which takes arguments,
39818   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39819   exit successfully. */
39820   return setpgrp (1,1) != -1;
39821   ;
39822   return 0;
39823 }
39824 _ACEOF
39825 rm -f conftest$ac_exeext
39826 if { (ac_try="$ac_link"
39827 case "(($ac_try" in
39828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39829   *) ac_try_echo=$ac_try;;
39830 esac
39831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39832   (eval "$ac_link") 2>&5
39833   ac_status=$?
39834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39836   { (case "(($ac_try" in
39837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39838   *) ac_try_echo=$ac_try;;
39839 esac
39840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39841   (eval "$ac_try") 2>&5
39842   ac_status=$?
39843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39844   (exit $ac_status); }; }; then
39845   ac_cv_func_setpgrp_void=no
39846 else
39847   echo "$as_me: program exited with status $ac_status" >&5
39848 echo "$as_me: failed program was:" >&5
39849 sed 's/^/| /' conftest.$ac_ext >&5
39850
39851 ( exit $ac_status )
39852 ac_cv_func_setpgrp_void=yes
39853 fi
39854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39855 fi
39856
39857
39858 fi
39859 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39860 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39861 if test $ac_cv_func_setpgrp_void = yes; then
39862
39863 cat >>confdefs.h <<\_ACEOF
39864 #define SETPGRP_VOID 1
39865 _ACEOF
39866
39867 fi
39868             # AC_FUNC_FNMATCH    dnl use local version
39869
39870 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39871 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39872 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39873   echo $ECHO_N "(cached) $ECHO_C" >&6
39874 else
39875   ac_check_lib_save_LIBS=$LIBS
39876 LIBS="-lintl  $LIBS"
39877 cat >conftest.$ac_ext <<_ACEOF
39878 /* confdefs.h.  */
39879 _ACEOF
39880 cat confdefs.h >>conftest.$ac_ext
39881 cat >>conftest.$ac_ext <<_ACEOF
39882 /* end confdefs.h.  */
39883
39884 /* Override any GCC internal prototype to avoid an error.
39885    Use char because int might match the return type of a GCC
39886    builtin and then its argument prototype would still apply.  */
39887 #ifdef __cplusplus
39888 extern "C"
39889 #endif
39890 char gettext ();
39891 int
39892 main ()
39893 {
39894 return gettext ();
39895   ;
39896   return 0;
39897 }
39898 _ACEOF
39899 rm -f conftest.$ac_objext conftest$ac_exeext
39900 if { (ac_try="$ac_link"
39901 case "(($ac_try" in
39902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39903   *) ac_try_echo=$ac_try;;
39904 esac
39905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39906   (eval "$ac_link") 2>conftest.er1
39907   ac_status=$?
39908   grep -v '^ *+' conftest.er1 >conftest.err
39909   rm -f conftest.er1
39910   cat conftest.err >&5
39911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39912   (exit $ac_status); } && {
39913          test -z "$ac_c_werror_flag" ||
39914          test ! -s conftest.err
39915        } && test -s conftest$ac_exeext &&
39916        $as_test_x conftest$ac_exeext; then
39917   ac_cv_lib_intl_gettext=yes
39918 else
39919   echo "$as_me: failed program was:" >&5
39920 sed 's/^/| /' conftest.$ac_ext >&5
39921
39922         ac_cv_lib_intl_gettext=no
39923 fi
39924
39925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39926       conftest$ac_exeext conftest.$ac_ext
39927 LIBS=$ac_check_lib_save_LIBS
39928 fi
39929 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39930 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39931 if test $ac_cv_lib_intl_gettext = yes; then
39932   LIBS="$LIBS -lintl"
39933 fi
39934
39935
39936
39937 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39938 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39939 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39940   echo $ECHO_N "(cached) $ECHO_C" >&6
39941 else
39942   ac_check_lib_save_LIBS=$LIBS
39943 LIBS="-lsun  $LIBS"
39944 cat >conftest.$ac_ext <<_ACEOF
39945 /* confdefs.h.  */
39946 _ACEOF
39947 cat confdefs.h >>conftest.$ac_ext
39948 cat >>conftest.$ac_ext <<_ACEOF
39949 /* end confdefs.h.  */
39950
39951 /* Override any GCC internal prototype to avoid an error.
39952    Use char because int might match the return type of a GCC
39953    builtin and then its argument prototype would still apply.  */
39954 #ifdef __cplusplus
39955 extern "C"
39956 #endif
39957 char getpwnam ();
39958 int
39959 main ()
39960 {
39961 return getpwnam ();
39962   ;
39963   return 0;
39964 }
39965 _ACEOF
39966 rm -f conftest.$ac_objext conftest$ac_exeext
39967 if { (ac_try="$ac_link"
39968 case "(($ac_try" in
39969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39970   *) ac_try_echo=$ac_try;;
39971 esac
39972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39973   (eval "$ac_link") 2>conftest.er1
39974   ac_status=$?
39975   grep -v '^ *+' conftest.er1 >conftest.err
39976   rm -f conftest.er1
39977   cat conftest.err >&5
39978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39979   (exit $ac_status); } && {
39980          test -z "$ac_c_werror_flag" ||
39981          test ! -s conftest.err
39982        } && test -s conftest$ac_exeext &&
39983        $as_test_x conftest$ac_exeext; then
39984   ac_cv_lib_sun_getpwnam=yes
39985 else
39986   echo "$as_me: failed program was:" >&5
39987 sed 's/^/| /' conftest.$ac_ext >&5
39988
39989         ac_cv_lib_sun_getpwnam=no
39990 fi
39991
39992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39993       conftest$ac_exeext conftest.$ac_ext
39994 LIBS=$ac_check_lib_save_LIBS
39995 fi
39996 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39997 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39998 if test $ac_cv_lib_sun_getpwnam = yes; then
39999   cat >>confdefs.h <<_ACEOF
40000 #define HAVE_LIBSUN 1
40001 _ACEOF
40002
40003   LIBS="-lsun $LIBS"
40004
40005 fi
40006
40007
40008
40009 for ac_header in zlib.h
40010 do
40011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40013   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40016   echo $ECHO_N "(cached) $ECHO_C" >&6
40017 fi
40018 ac_res=`eval echo '${'$as_ac_Header'}'`
40019                { echo "$as_me:$LINENO: result: $ac_res" >&5
40020 echo "${ECHO_T}$ac_res" >&6; }
40021 else
40022   # Is the header compilable?
40023 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40025 cat >conftest.$ac_ext <<_ACEOF
40026 /* confdefs.h.  */
40027 _ACEOF
40028 cat confdefs.h >>conftest.$ac_ext
40029 cat >>conftest.$ac_ext <<_ACEOF
40030 /* end confdefs.h.  */
40031 $ac_includes_default
40032 #include <$ac_header>
40033 _ACEOF
40034 rm -f conftest.$ac_objext
40035 if { (ac_try="$ac_compile"
40036 case "(($ac_try" in
40037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40038   *) ac_try_echo=$ac_try;;
40039 esac
40040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40041   (eval "$ac_compile") 2>conftest.er1
40042   ac_status=$?
40043   grep -v '^ *+' conftest.er1 >conftest.err
40044   rm -f conftest.er1
40045   cat conftest.err >&5
40046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047   (exit $ac_status); } && {
40048          test -z "$ac_c_werror_flag" ||
40049          test ! -s conftest.err
40050        } && test -s conftest.$ac_objext; then
40051   ac_header_compiler=yes
40052 else
40053   echo "$as_me: failed program was:" >&5
40054 sed 's/^/| /' conftest.$ac_ext >&5
40055
40056         ac_header_compiler=no
40057 fi
40058
40059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40061 echo "${ECHO_T}$ac_header_compiler" >&6; }
40062
40063 # Is the header present?
40064 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40066 cat >conftest.$ac_ext <<_ACEOF
40067 /* confdefs.h.  */
40068 _ACEOF
40069 cat confdefs.h >>conftest.$ac_ext
40070 cat >>conftest.$ac_ext <<_ACEOF
40071 /* end confdefs.h.  */
40072 #include <$ac_header>
40073 _ACEOF
40074 if { (ac_try="$ac_cpp conftest.$ac_ext"
40075 case "(($ac_try" in
40076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40077   *) ac_try_echo=$ac_try;;
40078 esac
40079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40080   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40081   ac_status=$?
40082   grep -v '^ *+' conftest.er1 >conftest.err
40083   rm -f conftest.er1
40084   cat conftest.err >&5
40085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086   (exit $ac_status); } >/dev/null && {
40087          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40088          test ! -s conftest.err
40089        }; then
40090   ac_header_preproc=yes
40091 else
40092   echo "$as_me: failed program was:" >&5
40093 sed 's/^/| /' conftest.$ac_ext >&5
40094
40095   ac_header_preproc=no
40096 fi
40097
40098 rm -f conftest.err conftest.$ac_ext
40099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40100 echo "${ECHO_T}$ac_header_preproc" >&6; }
40101
40102 # So?  What about this header?
40103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40104   yes:no: )
40105     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40109     ac_header_preproc=yes
40110     ;;
40111   no:yes:* )
40112     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40114     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40115 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40116     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40118     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40119 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40122     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40124
40125     ;;
40126 esac
40127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40130   echo $ECHO_N "(cached) $ECHO_C" >&6
40131 else
40132   eval "$as_ac_Header=\$ac_header_preproc"
40133 fi
40134 ac_res=`eval echo '${'$as_ac_Header'}'`
40135                { echo "$as_me:$LINENO: result: $ac_res" >&5
40136 echo "${ECHO_T}$ac_res" >&6; }
40137
40138 fi
40139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40140   cat >>confdefs.h <<_ACEOF
40141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40142 _ACEOF
40143
40144 fi
40145
40146 done
40147
40148 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40149 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40150 if test "${ac_cv_lib_z_deflate+set}" = set; then
40151   echo $ECHO_N "(cached) $ECHO_C" >&6
40152 else
40153   ac_check_lib_save_LIBS=$LIBS
40154 LIBS="-lz  $LIBS"
40155 cat >conftest.$ac_ext <<_ACEOF
40156 /* confdefs.h.  */
40157 _ACEOF
40158 cat confdefs.h >>conftest.$ac_ext
40159 cat >>conftest.$ac_ext <<_ACEOF
40160 /* end confdefs.h.  */
40161
40162 /* Override any GCC internal prototype to avoid an error.
40163    Use char because int might match the return type of a GCC
40164    builtin and then its argument prototype would still apply.  */
40165 #ifdef __cplusplus
40166 extern "C"
40167 #endif
40168 char deflate ();
40169 int
40170 main ()
40171 {
40172 return deflate ();
40173   ;
40174   return 0;
40175 }
40176 _ACEOF
40177 rm -f conftest.$ac_objext conftest$ac_exeext
40178 if { (ac_try="$ac_link"
40179 case "(($ac_try" in
40180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40181   *) ac_try_echo=$ac_try;;
40182 esac
40183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40184   (eval "$ac_link") 2>conftest.er1
40185   ac_status=$?
40186   grep -v '^ *+' conftest.er1 >conftest.err
40187   rm -f conftest.er1
40188   cat conftest.err >&5
40189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40190   (exit $ac_status); } && {
40191          test -z "$ac_c_werror_flag" ||
40192          test ! -s conftest.err
40193        } && test -s conftest$ac_exeext &&
40194        $as_test_x conftest$ac_exeext; then
40195   ac_cv_lib_z_deflate=yes
40196 else
40197   echo "$as_me: failed program was:" >&5
40198 sed 's/^/| /' conftest.$ac_ext >&5
40199
40200         ac_cv_lib_z_deflate=no
40201 fi
40202
40203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40204       conftest$ac_exeext conftest.$ac_ext
40205 LIBS=$ac_check_lib_save_LIBS
40206 fi
40207 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40208 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40209 if test $ac_cv_lib_z_deflate = yes; then
40210   FDLIBS="-lz"
40211 fi
40212
40213 have_zlib=no
40214 if test x$FDLIBS = x-lz; then
40215    cat >>confdefs.h <<\_ACEOF
40216 #define HAVE_LIBZ 1
40217 _ACEOF
40218
40219    have_zlib=yes
40220 fi
40221
40222 have_acl=no
40223 have_extended_acl=no
40224 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40225   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40226 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40227 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40228   echo $ECHO_N "(cached) $ECHO_C" >&6
40229 fi
40230 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40231 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40232 else
40233   # Is the header compilable?
40234 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40235 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40236 cat >conftest.$ac_ext <<_ACEOF
40237 /* confdefs.h.  */
40238 _ACEOF
40239 cat confdefs.h >>conftest.$ac_ext
40240 cat >>conftest.$ac_ext <<_ACEOF
40241 /* end confdefs.h.  */
40242 $ac_includes_default
40243 #include <sys/acl.h>
40244 _ACEOF
40245 rm -f conftest.$ac_objext
40246 if { (ac_try="$ac_compile"
40247 case "(($ac_try" in
40248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40249   *) ac_try_echo=$ac_try;;
40250 esac
40251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40252   (eval "$ac_compile") 2>conftest.er1
40253   ac_status=$?
40254   grep -v '^ *+' conftest.er1 >conftest.err
40255   rm -f conftest.er1
40256   cat conftest.err >&5
40257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40258   (exit $ac_status); } && {
40259          test -z "$ac_c_werror_flag" ||
40260          test ! -s conftest.err
40261        } && test -s conftest.$ac_objext; then
40262   ac_header_compiler=yes
40263 else
40264   echo "$as_me: failed program was:" >&5
40265 sed 's/^/| /' conftest.$ac_ext >&5
40266
40267         ac_header_compiler=no
40268 fi
40269
40270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40272 echo "${ECHO_T}$ac_header_compiler" >&6; }
40273
40274 # Is the header present?
40275 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40276 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40277 cat >conftest.$ac_ext <<_ACEOF
40278 /* confdefs.h.  */
40279 _ACEOF
40280 cat confdefs.h >>conftest.$ac_ext
40281 cat >>conftest.$ac_ext <<_ACEOF
40282 /* end confdefs.h.  */
40283 #include <sys/acl.h>
40284 _ACEOF
40285 if { (ac_try="$ac_cpp conftest.$ac_ext"
40286 case "(($ac_try" in
40287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40288   *) ac_try_echo=$ac_try;;
40289 esac
40290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40292   ac_status=$?
40293   grep -v '^ *+' conftest.er1 >conftest.err
40294   rm -f conftest.er1
40295   cat conftest.err >&5
40296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40297   (exit $ac_status); } >/dev/null && {
40298          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40299          test ! -s conftest.err
40300        }; then
40301   ac_header_preproc=yes
40302 else
40303   echo "$as_me: failed program was:" >&5
40304 sed 's/^/| /' conftest.$ac_ext >&5
40305
40306   ac_header_preproc=no
40307 fi
40308
40309 rm -f conftest.err conftest.$ac_ext
40310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40311 echo "${ECHO_T}$ac_header_preproc" >&6; }
40312
40313 # So?  What about this header?
40314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40315   yes:no: )
40316     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40317 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40318     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40319 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40320     ac_header_preproc=yes
40321     ;;
40322   no:yes:* )
40323     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40324 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40325     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40326 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40327     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40328 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40329     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40330 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40331     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40332 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40333     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40334 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40335
40336     ;;
40337 esac
40338 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40339 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40340 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40341   echo $ECHO_N "(cached) $ECHO_C" >&6
40342 else
40343   ac_cv_header_sys_acl_h=$ac_header_preproc
40344 fi
40345 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40346 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40347
40348 fi
40349
40350
40351 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40352 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40353 if test "${ac_cv_func_acl_get_file+set}" = set; then
40354   echo $ECHO_N "(cached) $ECHO_C" >&6
40355 else
40356   cat >conftest.$ac_ext <<_ACEOF
40357 /* confdefs.h.  */
40358 _ACEOF
40359 cat confdefs.h >>conftest.$ac_ext
40360 cat >>conftest.$ac_ext <<_ACEOF
40361 /* end confdefs.h.  */
40362 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40364 #define acl_get_file innocuous_acl_get_file
40365
40366 /* System header to define __stub macros and hopefully few prototypes,
40367     which can conflict with char acl_get_file (); below.
40368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40369     <limits.h> exists even on freestanding compilers.  */
40370
40371 #ifdef __STDC__
40372 # include <limits.h>
40373 #else
40374 # include <assert.h>
40375 #endif
40376
40377 #undef acl_get_file
40378
40379 /* Override any GCC internal prototype to avoid an error.
40380    Use char because int might match the return type of a GCC
40381    builtin and then its argument prototype would still apply.  */
40382 #ifdef __cplusplus
40383 extern "C"
40384 #endif
40385 char acl_get_file ();
40386 /* The GNU C library defines this for functions which it implements
40387     to always fail with ENOSYS.  Some functions are actually named
40388     something starting with __ and the normal name is an alias.  */
40389 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40390 choke me
40391 #endif
40392
40393 int
40394 main ()
40395 {
40396 return acl_get_file ();
40397   ;
40398   return 0;
40399 }
40400 _ACEOF
40401 rm -f conftest.$ac_objext conftest$ac_exeext
40402 if { (ac_try="$ac_link"
40403 case "(($ac_try" in
40404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40405   *) ac_try_echo=$ac_try;;
40406 esac
40407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40408   (eval "$ac_link") 2>conftest.er1
40409   ac_status=$?
40410   grep -v '^ *+' conftest.er1 >conftest.err
40411   rm -f conftest.er1
40412   cat conftest.err >&5
40413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414   (exit $ac_status); } && {
40415          test -z "$ac_c_werror_flag" ||
40416          test ! -s conftest.err
40417        } && test -s conftest$ac_exeext &&
40418        $as_test_x conftest$ac_exeext; then
40419   ac_cv_func_acl_get_file=yes
40420 else
40421   echo "$as_me: failed program was:" >&5
40422 sed 's/^/| /' conftest.$ac_ext >&5
40423
40424         ac_cv_func_acl_get_file=no
40425 fi
40426
40427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40428       conftest$ac_exeext conftest.$ac_ext
40429 fi
40430 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40431 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40432 if test $ac_cv_func_acl_get_file = yes; then
40433   have_acl=yes
40434 else
40435
40436        { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40437 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40438 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40439   echo $ECHO_N "(cached) $ECHO_C" >&6
40440 else
40441   ac_check_lib_save_LIBS=$LIBS
40442 LIBS="-lacl  $LIBS"
40443 cat >conftest.$ac_ext <<_ACEOF
40444 /* confdefs.h.  */
40445 _ACEOF
40446 cat confdefs.h >>conftest.$ac_ext
40447 cat >>conftest.$ac_ext <<_ACEOF
40448 /* end confdefs.h.  */
40449
40450 /* Override any GCC internal prototype to avoid an error.
40451    Use char because int might match the return type of a GCC
40452    builtin and then its argument prototype would still apply.  */
40453 #ifdef __cplusplus
40454 extern "C"
40455 #endif
40456 char acl_get_file ();
40457 int
40458 main ()
40459 {
40460 return acl_get_file ();
40461   ;
40462   return 0;
40463 }
40464 _ACEOF
40465 rm -f conftest.$ac_objext conftest$ac_exeext
40466 if { (ac_try="$ac_link"
40467 case "(($ac_try" in
40468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40469   *) ac_try_echo=$ac_try;;
40470 esac
40471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40472   (eval "$ac_link") 2>conftest.er1
40473   ac_status=$?
40474   grep -v '^ *+' conftest.er1 >conftest.err
40475   rm -f conftest.er1
40476   cat conftest.err >&5
40477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40478   (exit $ac_status); } && {
40479          test -z "$ac_c_werror_flag" ||
40480          test ! -s conftest.err
40481        } && test -s conftest$ac_exeext &&
40482        $as_test_x conftest$ac_exeext; then
40483   ac_cv_lib_acl_acl_get_file=yes
40484 else
40485   echo "$as_me: failed program was:" >&5
40486 sed 's/^/| /' conftest.$ac_ext >&5
40487
40488         ac_cv_lib_acl_acl_get_file=no
40489 fi
40490
40491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40492       conftest$ac_exeext conftest.$ac_ext
40493 LIBS=$ac_check_lib_save_LIBS
40494 fi
40495 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40496 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40497 if test $ac_cv_lib_acl_acl_get_file = yes; then
40498
40499               have_acl=yes;
40500               FDLIBS="-lacl $FDLIBS"
40501
40502 else
40503
40504               { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40505 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40506 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40507   echo $ECHO_N "(cached) $ECHO_C" >&6
40508 else
40509   ac_check_lib_save_LIBS=$LIBS
40510 LIBS="-lsec  $LIBS"
40511 cat >conftest.$ac_ext <<_ACEOF
40512 /* confdefs.h.  */
40513 _ACEOF
40514 cat confdefs.h >>conftest.$ac_ext
40515 cat >>conftest.$ac_ext <<_ACEOF
40516 /* end confdefs.h.  */
40517
40518 /* Override any GCC internal prototype to avoid an error.
40519    Use char because int might match the return type of a GCC
40520    builtin and then its argument prototype would still apply.  */
40521 #ifdef __cplusplus
40522 extern "C"
40523 #endif
40524 char acltotext ();
40525 int
40526 main ()
40527 {
40528 return acltotext ();
40529   ;
40530   return 0;
40531 }
40532 _ACEOF
40533 rm -f conftest.$ac_objext conftest$ac_exeext
40534 if { (ac_try="$ac_link"
40535 case "(($ac_try" in
40536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40537   *) ac_try_echo=$ac_try;;
40538 esac
40539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40540   (eval "$ac_link") 2>conftest.er1
40541   ac_status=$?
40542   grep -v '^ *+' conftest.er1 >conftest.err
40543   rm -f conftest.er1
40544   cat conftest.err >&5
40545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40546   (exit $ac_status); } && {
40547          test -z "$ac_c_werror_flag" ||
40548          test ! -s conftest.err
40549        } && test -s conftest$ac_exeext &&
40550        $as_test_x conftest$ac_exeext; then
40551   ac_cv_lib_sec_acltotext=yes
40552 else
40553   echo "$as_me: failed program was:" >&5
40554 sed 's/^/| /' conftest.$ac_ext >&5
40555
40556         ac_cv_lib_sec_acltotext=no
40557 fi
40558
40559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40560       conftest$ac_exeext conftest.$ac_ext
40561 LIBS=$ac_check_lib_save_LIBS
40562 fi
40563 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40564 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40565 if test $ac_cv_lib_sec_acltotext = yes; then
40566
40567                      have_acl=yes;
40568                      FDLIBS="-lsec $FDLIBS"
40569
40570                      { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40571 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40572 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40573   echo $ECHO_N "(cached) $ECHO_C" >&6
40574 else
40575   ac_check_lib_save_LIBS=$LIBS
40576 LIBS="-lsec  $LIBS"
40577 cat >conftest.$ac_ext <<_ACEOF
40578 /* confdefs.h.  */
40579 _ACEOF
40580 cat confdefs.h >>conftest.$ac_ext
40581 cat >>conftest.$ac_ext <<_ACEOF
40582 /* end confdefs.h.  */
40583
40584 /* Override any GCC internal prototype to avoid an error.
40585    Use char because int might match the return type of a GCC
40586    builtin and then its argument prototype would still apply.  */
40587 #ifdef __cplusplus
40588 extern "C"
40589 #endif
40590 char acl_totext ();
40591 int
40592 main ()
40593 {
40594 return acl_totext ();
40595   ;
40596   return 0;
40597 }
40598 _ACEOF
40599 rm -f conftest.$ac_objext conftest$ac_exeext
40600 if { (ac_try="$ac_link"
40601 case "(($ac_try" in
40602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40603   *) ac_try_echo=$ac_try;;
40604 esac
40605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40606   (eval "$ac_link") 2>conftest.er1
40607   ac_status=$?
40608   grep -v '^ *+' conftest.er1 >conftest.err
40609   rm -f conftest.er1
40610   cat conftest.err >&5
40611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40612   (exit $ac_status); } && {
40613          test -z "$ac_c_werror_flag" ||
40614          test ! -s conftest.err
40615        } && test -s conftest$ac_exeext &&
40616        $as_test_x conftest$ac_exeext; then
40617   ac_cv_lib_sec_acl_totext=yes
40618 else
40619   echo "$as_me: failed program was:" >&5
40620 sed 's/^/| /' conftest.$ac_ext >&5
40621
40622         ac_cv_lib_sec_acl_totext=no
40623 fi
40624
40625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40626       conftest$ac_exeext conftest.$ac_ext
40627 LIBS=$ac_check_lib_save_LIBS
40628 fi
40629 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
40630 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
40631 if test $ac_cv_lib_sec_acl_totext = yes; then
40632
40633                             have_extended_acl=yes
40634
40635
40636 fi
40637
40638
40639
40640 fi
40641
40642
40643
40644 fi
40645
40646
40647
40648 fi
40649
40650 if test $have_acl = yes; then
40651    cat >>confdefs.h <<\_ACEOF
40652 #define HAVE_ACL 1
40653 _ACEOF
40654
40655 fi
40656
40657 if test $have_extended_acl = yes; then
40658    cat >>confdefs.h <<\_ACEOF
40659 #define HAVE_EXTENDED_ACL 1
40660 _ACEOF
40661
40662 fi
40663
40664 PTHREAD_LIB=""
40665 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40666 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40667 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40668   echo $ECHO_N "(cached) $ECHO_C" >&6
40669 else
40670   ac_check_lib_save_LIBS=$LIBS
40671 LIBS="-lpthread  $LIBS"
40672 cat >conftest.$ac_ext <<_ACEOF
40673 /* confdefs.h.  */
40674 _ACEOF
40675 cat confdefs.h >>conftest.$ac_ext
40676 cat >>conftest.$ac_ext <<_ACEOF
40677 /* end confdefs.h.  */
40678
40679 /* Override any GCC internal prototype to avoid an error.
40680    Use char because int might match the return type of a GCC
40681    builtin and then its argument prototype would still apply.  */
40682 #ifdef __cplusplus
40683 extern "C"
40684 #endif
40685 char pthread_create ();
40686 int
40687 main ()
40688 {
40689 return pthread_create ();
40690   ;
40691   return 0;
40692 }
40693 _ACEOF
40694 rm -f conftest.$ac_objext conftest$ac_exeext
40695 if { (ac_try="$ac_link"
40696 case "(($ac_try" in
40697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40698   *) ac_try_echo=$ac_try;;
40699 esac
40700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40701   (eval "$ac_link") 2>conftest.er1
40702   ac_status=$?
40703   grep -v '^ *+' conftest.er1 >conftest.err
40704   rm -f conftest.er1
40705   cat conftest.err >&5
40706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40707   (exit $ac_status); } && {
40708          test -z "$ac_c_werror_flag" ||
40709          test ! -s conftest.err
40710        } && test -s conftest$ac_exeext &&
40711        $as_test_x conftest$ac_exeext; then
40712   ac_cv_lib_pthread_pthread_create=yes
40713 else
40714   echo "$as_me: failed program was:" >&5
40715 sed 's/^/| /' conftest.$ac_ext >&5
40716
40717         ac_cv_lib_pthread_pthread_create=no
40718 fi
40719
40720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40721       conftest$ac_exeext conftest.$ac_ext
40722 LIBS=$ac_check_lib_save_LIBS
40723 fi
40724 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40725 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40726 if test $ac_cv_lib_pthread_pthread_create = yes; then
40727   PTHREAD_LIB="-lpthread"
40728 else
40729
40730        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40731 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40732 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40733   echo $ECHO_N "(cached) $ECHO_C" >&6
40734 else
40735   ac_check_lib_save_LIBS=$LIBS
40736 LIBS="-lpthreads  $LIBS"
40737 cat >conftest.$ac_ext <<_ACEOF
40738 /* confdefs.h.  */
40739 _ACEOF
40740 cat confdefs.h >>conftest.$ac_ext
40741 cat >>conftest.$ac_ext <<_ACEOF
40742 /* end confdefs.h.  */
40743
40744 /* Override any GCC internal prototype to avoid an error.
40745    Use char because int might match the return type of a GCC
40746    builtin and then its argument prototype would still apply.  */
40747 #ifdef __cplusplus
40748 extern "C"
40749 #endif
40750 char pthread_create ();
40751 int
40752 main ()
40753 {
40754 return pthread_create ();
40755   ;
40756   return 0;
40757 }
40758 _ACEOF
40759 rm -f conftest.$ac_objext conftest$ac_exeext
40760 if { (ac_try="$ac_link"
40761 case "(($ac_try" in
40762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40763   *) ac_try_echo=$ac_try;;
40764 esac
40765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40766   (eval "$ac_link") 2>conftest.er1
40767   ac_status=$?
40768   grep -v '^ *+' conftest.er1 >conftest.err
40769   rm -f conftest.er1
40770   cat conftest.err >&5
40771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40772   (exit $ac_status); } && {
40773          test -z "$ac_c_werror_flag" ||
40774          test ! -s conftest.err
40775        } && test -s conftest$ac_exeext &&
40776        $as_test_x conftest$ac_exeext; then
40777   ac_cv_lib_pthreads_pthread_create=yes
40778 else
40779   echo "$as_me: failed program was:" >&5
40780 sed 's/^/| /' conftest.$ac_ext >&5
40781
40782         ac_cv_lib_pthreads_pthread_create=no
40783 fi
40784
40785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40786       conftest$ac_exeext conftest.$ac_ext
40787 LIBS=$ac_check_lib_save_LIBS
40788 fi
40789 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40790 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40791 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40792   PTHREAD_LIB="-lpthreads"
40793 else
40794
40795               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40796 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40797 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40798   echo $ECHO_N "(cached) $ECHO_C" >&6
40799 else
40800   ac_check_lib_save_LIBS=$LIBS
40801 LIBS="-lc_r  $LIBS"
40802 cat >conftest.$ac_ext <<_ACEOF
40803 /* confdefs.h.  */
40804 _ACEOF
40805 cat confdefs.h >>conftest.$ac_ext
40806 cat >>conftest.$ac_ext <<_ACEOF
40807 /* end confdefs.h.  */
40808
40809 /* Override any GCC internal prototype to avoid an error.
40810    Use char because int might match the return type of a GCC
40811    builtin and then its argument prototype would still apply.  */
40812 #ifdef __cplusplus
40813 extern "C"
40814 #endif
40815 char pthread_create ();
40816 int
40817 main ()
40818 {
40819 return pthread_create ();
40820   ;
40821   return 0;
40822 }
40823 _ACEOF
40824 rm -f conftest.$ac_objext conftest$ac_exeext
40825 if { (ac_try="$ac_link"
40826 case "(($ac_try" in
40827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40828   *) ac_try_echo=$ac_try;;
40829 esac
40830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40831   (eval "$ac_link") 2>conftest.er1
40832   ac_status=$?
40833   grep -v '^ *+' conftest.er1 >conftest.err
40834   rm -f conftest.er1
40835   cat conftest.err >&5
40836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40837   (exit $ac_status); } && {
40838          test -z "$ac_c_werror_flag" ||
40839          test ! -s conftest.err
40840        } && test -s conftest$ac_exeext &&
40841        $as_test_x conftest$ac_exeext; then
40842   ac_cv_lib_c_r_pthread_create=yes
40843 else
40844   echo "$as_me: failed program was:" >&5
40845 sed 's/^/| /' conftest.$ac_ext >&5
40846
40847         ac_cv_lib_c_r_pthread_create=no
40848 fi
40849
40850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40851       conftest$ac_exeext conftest.$ac_ext
40852 LIBS=$ac_check_lib_save_LIBS
40853 fi
40854 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40855 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40856 if test $ac_cv_lib_c_r_pthread_create = yes; then
40857   PTHREAD_LIB="-lc_r"
40858 else
40859
40860                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
40861 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40862 if test "${ac_cv_func_pthread_create+set}" = set; then
40863   echo $ECHO_N "(cached) $ECHO_C" >&6
40864 else
40865   cat >conftest.$ac_ext <<_ACEOF
40866 /* confdefs.h.  */
40867 _ACEOF
40868 cat confdefs.h >>conftest.$ac_ext
40869 cat >>conftest.$ac_ext <<_ACEOF
40870 /* end confdefs.h.  */
40871 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40873 #define pthread_create innocuous_pthread_create
40874
40875 /* System header to define __stub macros and hopefully few prototypes,
40876     which can conflict with char pthread_create (); below.
40877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40878     <limits.h> exists even on freestanding compilers.  */
40879
40880 #ifdef __STDC__
40881 # include <limits.h>
40882 #else
40883 # include <assert.h>
40884 #endif
40885
40886 #undef pthread_create
40887
40888 /* Override any GCC internal prototype to avoid an error.
40889    Use char because int might match the return type of a GCC
40890    builtin and then its argument prototype would still apply.  */
40891 #ifdef __cplusplus
40892 extern "C"
40893 #endif
40894 char pthread_create ();
40895 /* The GNU C library defines this for functions which it implements
40896     to always fail with ENOSYS.  Some functions are actually named
40897     something starting with __ and the normal name is an alias.  */
40898 #if defined __stub_pthread_create || defined __stub___pthread_create
40899 choke me
40900 #endif
40901
40902 int
40903 main ()
40904 {
40905 return pthread_create ();
40906   ;
40907   return 0;
40908 }
40909 _ACEOF
40910 rm -f conftest.$ac_objext conftest$ac_exeext
40911 if { (ac_try="$ac_link"
40912 case "(($ac_try" in
40913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40914   *) ac_try_echo=$ac_try;;
40915 esac
40916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40917   (eval "$ac_link") 2>conftest.er1
40918   ac_status=$?
40919   grep -v '^ *+' conftest.er1 >conftest.err
40920   rm -f conftest.er1
40921   cat conftest.err >&5
40922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40923   (exit $ac_status); } && {
40924          test -z "$ac_c_werror_flag" ||
40925          test ! -s conftest.err
40926        } && test -s conftest$ac_exeext &&
40927        $as_test_x conftest$ac_exeext; then
40928   ac_cv_func_pthread_create=yes
40929 else
40930   echo "$as_me: failed program was:" >&5
40931 sed 's/^/| /' conftest.$ac_ext >&5
40932
40933         ac_cv_func_pthread_create=no
40934 fi
40935
40936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40937       conftest$ac_exeext conftest.$ac_ext
40938 fi
40939 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40940 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40941
40942
40943
40944 fi
40945
40946
40947
40948 fi
40949
40950
40951
40952 fi
40953
40954
40955
40956 cat >>confdefs.h <<\_ACEOF
40957 #define FDLIBS 1
40958 _ACEOF
40959
40960
40961 CFLAGS=${CFLAGS--O}
40962
40963 if test x$have_gcc = xyes ; then
40964    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40965    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40966 fi
40967 LDFLAGS=${LDFLAGS--O}
40968 DB_LIBS="${SQL_LFLAGS}"
40969 CPPFLAGS="$CPPFLAGS"
40970 CFLAGS="$CFLAGS"
40971
40972
40973
40974
40975
40976
40977
40978
40979
40980
40981
40982
40983
40984
40985
40986
40987 OBJLIST=
40988
40989
40990 lld="lld"
40991 llu="llu"
40992
40993 WCFLAGS=
40994 WLDFLAGS=
40995
40996 PFILES="platforms/Makefile"
40997 PSCMD="ps -e"
40998 WIN32=
40999 MACOSX=
41000 hostname=`uname -n | cut -d '.' -f 1`
41001 if test x${hostname} = x ; then
41002    hostname="localhost"
41003 fi
41004 case "$DISTNAME" in
41005 aix)
41006    DISTVER=`uname -r`
41007    PSCMD="ps -e -o pid,comm"
41008    PFILES="${PFILES} \
41009       platforms/aix/Makefile"
41010    TAPEDRIVE="/dev/rmt0.1"
41011   ;;
41012 alpha)
41013    DISTVER=`uname -r`
41014    PTHREAD_LIB="-lpthread -lexc"
41015    if test "${CC}" = "gcc" ; then
41016       lld="lld"
41017       llu="llu"
41018    else
41019       lld="ld"
41020       llu="lu"
41021    fi
41022    TAPEDRIVE="/dev/nrmt0"
41023   ;;
41024 bsdi)
41025    DISTVER=`uname -a |awk '{print $3}'`
41026    TAPEDRIVE="/dev/nrmt0"
41027    PTHREAD_LIB="-pthread"
41028    CFLAGS="${CFLAGS} -pthread"
41029    PSCMD="ps -ax -o pid,command"
41030    lld="qd"
41031    llu="qu"
41032    PFILES="${PFILES} \
41033        platforms/bsdi/Makefile \
41034        platforms/bsdi/bacula-fd \
41035        platforms/bsdi/bacula-sd \
41036        platforms/bsdi/bacula-dir"
41037    largefile_support="yes"
41038   ;;
41039 cygwin)
41040    DISTVER=`uname -a |awk '{print $3}'`
41041    TAPEDRIVE="/dev/nrst0"
41042    WIN32=win32
41043    WCFLAGS="-mwindows"
41044    WLDFLAGS="-mwindows"
41045   ;;
41046 darwin)
41047    DISTVER=`uname -r`
41048    TAPEDRIVE="/dev/nst0"
41049    PSCMD="ps -e -o pid,command"
41050    MACOSX=macosx
41051    PFILES="${PFILES} \
41052       platforms/darwin/Makefile"
41053   ;;
41054 debian)
41055       ping -c 1 $hostname 2>&1 1>/dev/null
41056    if test ! $? = 0; then
41057       hostname="localhost"
41058    fi
41059    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
41060       DISTNAME="ubuntu"
41061    fi
41062    DISTVER=`cat /etc/debian_version`
41063    if test -f /etc/lsb-release ; then
41064       . /etc/lsb-release
41065       if test "x$DISTRIB_ID" != "x" ; then
41066          DISTNAME=$DISTRIB_ID
41067       fi
41068       if test "x$DISTRIB_RELEASE" != "x" ; then
41069          DISTVER=$DISTRIB_RELEASE
41070       fi
41071    fi
41072    if test "$DISTNAME" = "Ubuntu" ; then
41073       DISTNAME="ubuntu"
41074    fi
41075    TAPEDRIVE="/dev/nst0"
41076    PSCMD="ps -e -o pid,command"
41077    if test "$DISTNAME" = "ubuntu" ; then
41078       PFILES="${PFILES} \
41079          platforms/ubuntu/Makefile \
41080          platforms/ubuntu/bacula-fd \
41081          platforms/ubuntu/bacula-sd \
41082          platforms/ubuntu/bacula-dir"
41083    else
41084       PFILES="${PFILES} \
41085          platforms/debian/Makefile \
41086          platforms/debian/bacula-fd \
41087          platforms/debian/bacula-sd \
41088          platforms/debian/bacula-dir"
41089    fi
41090   ;;
41091 freebsd)
41092       ping -c 1 $hostname 2>&1 1>/dev/null
41093    if test ! $? = 0; then
41094       hostname="localhost"
41095    fi
41096    DISTVER=`uname -a |awk '{print $3}'`
41097    VER=`echo $DISTVER | cut -c 1`
41098    if test x$VER = x4 ; then
41099       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41100       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41101    fi
41102    lld="qd"
41103    llu="qu"
41104    TAPEDRIVE="/dev/nrsa0"
41105    PSCMD="ps -ax -o pid,command"
41106    PFILES="${PFILES} \
41107        platforms/freebsd/Makefile \
41108        platforms/freebsd/bacula-fd \
41109        platforms/freebsd/bacula-sd \
41110        platforms/freebsd/bacula-dir"
41111    largefile_support="yes"
41112   ;;
41113 hpux)
41114    PSCMD="UNIX95=1; ps -e -o pid,comm"
41115    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41116    DISTVER=`uname -r`
41117    TAPEDRIVE="/dev/rmt/0hnb"
41118    PTHREAD_LIB="-lpthread"
41119    cat >>confdefs.h <<\_ACEOF
41120 #define _INCLUDE_LONGLONG 1
41121 _ACEOF
41122
41123   ;;
41124 irix)
41125    DISTVER=`uname -r`
41126    TAPEDRIVE="/dev/rmt/0cbn"
41127    PSCMD="ps -e -o pid,comm"
41128    PFILES="${PFILES} \
41129        platforms/irix/Makefile \
41130        platforms/irix/bacula-fd \
41131        platforms/irix/bacula-sd \
41132        platforms/irix/bacula-dir"
41133   ;;
41134 netbsd)
41135    DISTVER=`uname -a |awk '{print $3}'`
41136    lld="qd"
41137    llu="qu"
41138    TAPEDRIVE="/dev/nrst0"
41139    PSCMD="ps -ax -o pid,command"
41140    PTHREAD_LIB="-pthread"
41141    CFLAGS="${CFLAGS} -pthread"
41142   ;;
41143 openbsd)
41144    DISTVER=`uname -a |awk '{print $3}'`
41145    lld="qd"
41146    llu="qu"
41147    TAPEDRIVE="/dev/nrst0"
41148    PSCMD="ps -ax -o pid,command"
41149    PTHREAD_LIB="-pthread"
41150    CFLAGS="${CFLAGS} -pthread"
41151    PFILES="${PFILES} \
41152        platforms/openbsd/Makefile \
41153        platforms/openbsd/bacula-fd \
41154        platforms/openbsd/bacula-sd \
41155        platforms/openbsd/bacula-dir"
41156   ;;
41157 redhat)
41158       ping -c 1 $hostname 2>&1 1>/dev/null
41159    if test ! $? = 0; then
41160       hostname="localhost"
41161    fi
41162    if test -f /etc/whitebox-release ; then
41163       f=/etc/whitebox-release
41164    else
41165       f=/etc/redhat-release
41166    fi
41167    if test `cat $f | grep release |\
41168          cut -f 3 -d ' '`x = "Enterprise"x ; then
41169       DISTVER="Enterprise "`cat $f | grep release |\
41170           cut -f 6 -d ' '`
41171    else
41172        DISTVER=`cat /etc/redhat-release | grep release |\
41173            cut -f 5 -d ' '`
41174    fi
41175    TAPEDRIVE="/dev/nst0"
41176    PSCMD="ps -e -o pid,command"
41177    PFILES="${PFILES} \
41178        platforms/redhat/Makefile \
41179        platforms/redhat/bacula-fd \
41180        platforms/redhat/bacula-sd \
41181        platforms/redhat/bacula-dir \
41182        platforms/redhat/bacula.spec \
41183        "
41184   ;;
41185 mandrake)
41186       ping -c 1 $hostname 2>&1 1>/dev/null
41187    if test ! $? = 0; then
41188       hostname="localhost"
41189    fi
41190    DISTVER=`cat /etc/mandrake-release | grep release |\
41191       cut -f 5 -d ' '`
41192    TAPEDRIVE="/dev/nst0"
41193    PSCMD="ps -e -o pid,command"
41194    PFILES="${PFILES} \
41195        platforms/mandrake/Makefile \
41196        platforms/mandrake/bacula-fd \
41197        platforms/mandrake/bacula-sd \
41198        platforms/mandrake/bacula-dir \
41199        platforms/mandrake/bacula.spec \
41200        "
41201   ;;
41202 gentoo)
41203       ping -c 1 $hostname 2>&1 1>/dev/null
41204    if test ! $? = 0; then
41205       hostname="localhost"
41206    fi
41207    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41208    TAPEDRIVE="/dev/nst0"
41209    PSCMD="ps -e -o pid,command"
41210    PFILES="${PFILES} \
41211        platforms/gentoo/Makefile \
41212     platforms/gentoo/bacula-init \
41213        platforms/gentoo/bacula-fd \
41214        platforms/gentoo/bacula-sd \
41215        platforms/gentoo/bacula-dir"
41216   ;;
41217 slackware)
41218       ping -c 1 $hostname 2>&1 1>/dev/null
41219    if test ! $? = 0; then
41220       hostname="localhost"
41221    fi
41222    DISTVER=`cat /etc/slackware-version`
41223    TAPEDRIVE="/dev/nst0"
41224    PSCMD="ps -e -o pid,command"
41225    PFILES="${PFILES} \
41226        platforms/slackware/Makefile \
41227        platforms/slackware/rc.bacula-fd \
41228        platforms/slackware/rc.bacula-sd \
41229        platforms/slackware/rc.bacula-dir\
41230        platforms/slackware/functions.bacula"
41231   ;;
41232 solaris)
41233    DISTVER=`uname -r`
41234    TAPEDRIVE="/dev/rmt/0cbn"
41235    PSCMD="ps -e -o pid,comm"
41236    PFILES="${PFILES} \
41237        platforms/solaris/Makefile \
41238        platforms/solaris/bacula-fd \
41239        platforms/solaris/bacula-sd \
41240        platforms/solaris/bacula-dir"
41241    if test x$DISTVER = x5.6 ; then
41242        cat >>confdefs.h <<\_ACEOF
41243 #define HAVE_OLD_SOCKOPT 1
41244 _ACEOF
41245
41246    fi
41247    LIBS="$LIBS -lresolv"
41248   ;;
41249 suse)
41250       ping -c 1 $hostname 2>&1 1>/dev/null
41251    if test ! $? = 0; then
41252       hostname="localhost"
41253    fi
41254    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41255        cut -f 3 -d ' '`
41256    TAPEDRIVE="/dev/nst0"
41257    PSCMD="ps -e -o pid,command"
41258    PFILES="${PFILES} \
41259        platforms/suse/Makefile \
41260        platforms/suse/bacula-fd \
41261        platforms/suse/bacula-sd \
41262        platforms/suse/bacula-dir \
41263        platforms/suse/bacula \
41264        platforms/suse/bacula.spec"
41265   ;;
41266 suse5)
41267       ping -c 1 $hostname 2>&1 1>/dev/null
41268    if test ! $? = 0; then
41269       hostname="localhost"
41270    fi
41271    DISTNAME=suse
41272    DISTVER=5.x
41273    TAPEDRIVE="/dev/nst0"
41274    PSCMD="ps -e -o pid,command"
41275    PFILES="${PFILES} \
41276        platforms/suse/Makefile \
41277        platforms/suse/bacula-fd \
41278        platforms/suse/bacula-sd \
41279        platforms/suse/bacula-dir"
41280   ;;
41281 unknown)
41282    DISTVER=unknown
41283    TAPEDRIVE="/dev/nst0"
41284   ;;
41285 *)
41286   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41287   ;;
41288 esac
41289
41290
41291
41292 LIBS="$PTHREAD_LIB $LIBS"
41293
41294 cat >>confdefs.h <<_ACEOF
41295 #define lld "$lld"
41296 _ACEOF
41297
41298 cat >>confdefs.h <<_ACEOF
41299 #define llu "$llu"
41300 _ACEOF
41301
41302
41303
41304
41305
41306
41307
41308
41309 MCOMMON=./autoconf/Make.common
41310
41311
41312 if test "x${subsysdir}" = "x${sbindir}" ; then
41313    echo " "
41314    echo " "
41315    echo "You have set both --sbindir and --with-subsys-dir"
41316    echo "  equal to: ${subsysdir} "
41317    echo "This is not permitted. Please reconfigure."
41318    echo " "
41319    echo "Aborting configuration ..."
41320    echo " "
41321    echo " "
41322    exit 1
41323 fi
41324
41325 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
41326
41327 ac_config_commands="$ac_config_commands default"
41328
41329 cat >confcache <<\_ACEOF
41330 # This file is a shell script that caches the results of configure
41331 # tests run on this system so they can be shared between configure
41332 # scripts and configure runs, see configure's option --config-cache.
41333 # It is not useful on other systems.  If it contains results you don't
41334 # want to keep, you may remove or edit it.
41335 #
41336 # config.status only pays attention to the cache file if you give it
41337 # the --recheck option to rerun configure.
41338 #
41339 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41340 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41341 # following values.
41342
41343 _ACEOF
41344
41345 # The following way of writing the cache mishandles newlines in values,
41346 # but we know of no workaround that is simple, portable, and efficient.
41347 # So, we kill variables containing newlines.
41348 # Ultrix sh set writes to stderr and can't be redirected directly,
41349 # and sets the high bit in the cache file unless we assign to the vars.
41350 (
41351   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41352     eval ac_val=\$$ac_var
41353     case $ac_val in #(
41354     *${as_nl}*)
41355       case $ac_var in #(
41356       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41357 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41358       esac
41359       case $ac_var in #(
41360       _ | IFS | as_nl) ;; #(
41361       *) $as_unset $ac_var ;;
41362       esac ;;
41363     esac
41364   done
41365
41366   (set) 2>&1 |
41367     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41368     *${as_nl}ac_space=\ *)
41369       # `set' does not quote correctly, so add quotes (double-quote
41370       # substitution turns \\\\ into \\, and sed turns \\ into \).
41371       sed -n \
41372         "s/'/'\\\\''/g;
41373           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41374       ;; #(
41375     *)
41376       # `set' quotes correctly as required by POSIX, so do not add quotes.
41377       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41378       ;;
41379     esac |
41380     sort
41381 ) |
41382   sed '
41383      /^ac_cv_env_/b end
41384      t clear
41385      :clear
41386      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41387      t end
41388      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41389      :end' >>confcache
41390 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41391   if test -w "$cache_file"; then
41392     test "x$cache_file" != "x/dev/null" &&
41393       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41394 echo "$as_me: updating cache $cache_file" >&6;}
41395     cat confcache >$cache_file
41396   else
41397     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41398 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41399   fi
41400 fi
41401 rm -f confcache
41402
41403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41404 # Let make expand exec_prefix.
41405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41406
41407 DEFS=-DHAVE_CONFIG_H
41408
41409 ac_libobjs=
41410 ac_ltlibobjs=
41411 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41412   # 1. Remove the extension, and $U if already installed.
41413   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41414   ac_i=`echo "$ac_i" | sed "$ac_script"`
41415   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41416   #    will be set to the directory where LIBOBJS objects are built.
41417   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41418   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41419 done
41420 LIBOBJS=$ac_libobjs
41421
41422 LTLIBOBJS=$ac_ltlibobjs
41423
41424
41425
41426 : ${CONFIG_STATUS=./config.status}
41427 ac_clean_files_save=$ac_clean_files
41428 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41429 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41430 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41431 cat >$CONFIG_STATUS <<_ACEOF
41432 #! $SHELL
41433 # Generated by $as_me.
41434 # Run this file to recreate the current configuration.
41435 # Compiler output produced by configure, useful for debugging
41436 # configure, is in config.log if it exists.
41437
41438 debug=false
41439 ac_cs_recheck=false
41440 ac_cs_silent=false
41441 SHELL=\${CONFIG_SHELL-$SHELL}
41442 _ACEOF
41443
41444 cat >>$CONFIG_STATUS <<\_ACEOF
41445 ## --------------------- ##
41446 ## M4sh Initialization.  ##
41447 ## --------------------- ##
41448
41449 # Be more Bourne compatible
41450 DUALCASE=1; export DUALCASE # for MKS sh
41451 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41452   emulate sh
41453   NULLCMD=:
41454   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41455   # is contrary to our usage.  Disable this feature.
41456   alias -g '${1+"$@"}'='"$@"'
41457   setopt NO_GLOB_SUBST
41458 else
41459   case `(set -o) 2>/dev/null` in
41460   *posix*) set -o posix ;;
41461 esac
41462
41463 fi
41464
41465
41466
41467
41468 # PATH needs CR
41469 # Avoid depending upon Character Ranges.
41470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41473 as_cr_digits='0123456789'
41474 as_cr_alnum=$as_cr_Letters$as_cr_digits
41475
41476 # The user is always right.
41477 if test "${PATH_SEPARATOR+set}" != set; then
41478   echo "#! /bin/sh" >conf$$.sh
41479   echo  "exit 0"   >>conf$$.sh
41480   chmod +x conf$$.sh
41481   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41482     PATH_SEPARATOR=';'
41483   else
41484     PATH_SEPARATOR=:
41485   fi
41486   rm -f conf$$.sh
41487 fi
41488
41489 # Support unset when possible.
41490 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41491   as_unset=unset
41492 else
41493   as_unset=false
41494 fi
41495
41496
41497 # IFS
41498 # We need space, tab and new line, in precisely that order.  Quoting is
41499 # there to prevent editors from complaining about space-tab.
41500 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41501 # splitting by setting IFS to empty value.)
41502 as_nl='
41503 '
41504 IFS=" ""        $as_nl"
41505
41506 # Find who we are.  Look in the path if we contain no directory separator.
41507 case $0 in
41508   *[\\/]* ) as_myself=$0 ;;
41509   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41510 for as_dir in $PATH
41511 do
41512   IFS=$as_save_IFS
41513   test -z "$as_dir" && as_dir=.
41514   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41515 done
41516 IFS=$as_save_IFS
41517
41518      ;;
41519 esac
41520 # We did not find ourselves, most probably we were run as `sh COMMAND'
41521 # in which case we are not to be found in the path.
41522 if test "x$as_myself" = x; then
41523   as_myself=$0
41524 fi
41525 if test ! -f "$as_myself"; then
41526   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41527   { (exit 1); exit 1; }
41528 fi
41529
41530 # Work around bugs in pre-3.0 UWIN ksh.
41531 for as_var in ENV MAIL MAILPATH
41532 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41533 done
41534 PS1='$ '
41535 PS2='> '
41536 PS4='+ '
41537
41538 # NLS nuisances.
41539 for as_var in \
41540   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41541   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41542   LC_TELEPHONE LC_TIME
41543 do
41544   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41545     eval $as_var=C; export $as_var
41546   else
41547     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41548   fi
41549 done
41550
41551 # Required to use basename.
41552 if expr a : '\(a\)' >/dev/null 2>&1 &&
41553    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41554   as_expr=expr
41555 else
41556   as_expr=false
41557 fi
41558
41559 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41560   as_basename=basename
41561 else
41562   as_basename=false
41563 fi
41564
41565
41566 # Name of the executable.
41567 as_me=`$as_basename -- "$0" ||
41568 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41569          X"$0" : 'X\(//\)$' \| \
41570          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41571 echo X/"$0" |
41572     sed '/^.*\/\([^/][^/]*\)\/*$/{
41573             s//\1/
41574             q
41575           }
41576           /^X\/\(\/\/\)$/{
41577             s//\1/
41578             q
41579           }
41580           /^X\/\(\/\).*/{
41581             s//\1/
41582             q
41583           }
41584           s/.*/./; q'`
41585
41586 # CDPATH.
41587 $as_unset CDPATH
41588
41589
41590
41591   as_lineno_1=$LINENO
41592   as_lineno_2=$LINENO
41593   test "x$as_lineno_1" != "x$as_lineno_2" &&
41594   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41595
41596   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41597   # uniformly replaced by the line number.  The first 'sed' inserts a
41598   # line-number line after each line using $LINENO; the second 'sed'
41599   # does the real work.  The second script uses 'N' to pair each
41600   # line-number line with the line containing $LINENO, and appends
41601   # trailing '-' during substitution so that $LINENO is not a special
41602   # case at line end.
41603   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41604   # scripts with optimization help from Paolo Bonzini.  Blame Lee
41605   # E. McMahon (1931-1989) for sed's syntax.  :-)
41606   sed -n '
41607     p
41608     /[$]LINENO/=
41609   ' <$as_myself |
41610     sed '
41611       s/[$]LINENO.*/&-/
41612       t lineno
41613       b
41614       :lineno
41615       N
41616       :loop
41617       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41618       t loop
41619       s/-\n.*//
41620     ' >$as_me.lineno &&
41621   chmod +x "$as_me.lineno" ||
41622     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41623    { (exit 1); exit 1; }; }
41624
41625   # Don't try to exec as it changes $[0], causing all sort of problems
41626   # (the dirname of $[0] is not the place where we might find the
41627   # original and so on.  Autoconf is especially sensitive to this).
41628   . "./$as_me.lineno"
41629   # Exit status is that of the last command.
41630   exit
41631 }
41632
41633
41634 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41635   as_dirname=dirname
41636 else
41637   as_dirname=false
41638 fi
41639
41640 ECHO_C= ECHO_N= ECHO_T=
41641 case `echo -n x` in
41642 -n*)
41643   case `echo 'x\c'` in
41644   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
41645   *)   ECHO_C='\c';;
41646   esac;;
41647 *)
41648   ECHO_N='-n';;
41649 esac
41650
41651 if expr a : '\(a\)' >/dev/null 2>&1 &&
41652    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41653   as_expr=expr
41654 else
41655   as_expr=false
41656 fi
41657
41658 rm -f conf$$ conf$$.exe conf$$.file
41659 if test -d conf$$.dir; then
41660   rm -f conf$$.dir/conf$$.file
41661 else
41662   rm -f conf$$.dir
41663   mkdir conf$$.dir
41664 fi
41665 echo >conf$$.file
41666 if ln -s conf$$.file conf$$ 2>/dev/null; then
41667   as_ln_s='ln -s'
41668   # ... but there are two gotchas:
41669   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41670   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41671   # In both cases, we have to default to `cp -p'.
41672   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41673     as_ln_s='cp -p'
41674 elif ln conf$$.file conf$$ 2>/dev/null; then
41675   as_ln_s=ln
41676 else
41677   as_ln_s='cp -p'
41678 fi
41679 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41680 rmdir conf$$.dir 2>/dev/null
41681
41682 if mkdir -p . 2>/dev/null; then
41683   as_mkdir_p=:
41684 else
41685   test -d ./-p && rmdir ./-p
41686   as_mkdir_p=false
41687 fi
41688
41689 if test -x / >/dev/null 2>&1; then
41690   as_test_x='test -x'
41691 else
41692   if ls -dL / >/dev/null 2>&1; then
41693     as_ls_L_option=L
41694   else
41695     as_ls_L_option=
41696   fi
41697   as_test_x='
41698     eval sh -c '\''
41699       if test -d "$1"; then
41700         test -d "$1/.";
41701       else
41702         case $1 in
41703         -*)set "./$1";;
41704         esac;
41705         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41706         ???[sx]*):;;*)false;;esac;fi
41707     '\'' sh
41708   '
41709 fi
41710 as_executable_p=$as_test_x
41711
41712 # Sed expression to map a string onto a valid CPP name.
41713 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41714
41715 # Sed expression to map a string onto a valid variable name.
41716 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41717
41718
41719 exec 6>&1
41720
41721 # Save the log message, to keep $[0] and so on meaningful, and to
41722 # report actual input values of CONFIG_FILES etc. instead of their
41723 # values after options handling.
41724 ac_log="
41725 This file was extended by $as_me, which was
41726 generated by GNU Autoconf 2.61.  Invocation command line was
41727
41728   CONFIG_FILES    = $CONFIG_FILES
41729   CONFIG_HEADERS  = $CONFIG_HEADERS
41730   CONFIG_LINKS    = $CONFIG_LINKS
41731   CONFIG_COMMANDS = $CONFIG_COMMANDS
41732   $ $0 $@
41733
41734 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41735 "
41736
41737 _ACEOF
41738
41739 cat >>$CONFIG_STATUS <<_ACEOF
41740 # Files that config.status was made for.
41741 config_files="$ac_config_files"
41742 config_headers="$ac_config_headers"
41743 config_commands="$ac_config_commands"
41744
41745 _ACEOF
41746
41747 cat >>$CONFIG_STATUS <<\_ACEOF
41748 ac_cs_usage="\
41749 \`$as_me' instantiates files from templates according to the
41750 current configuration.
41751
41752 Usage: $0 [OPTIONS] [FILE]...
41753
41754   -h, --help       print this help, then exit
41755   -V, --version    print version number and configuration settings, then exit
41756   -q, --quiet      do not print progress messages
41757   -d, --debug      don't remove temporary files
41758       --recheck    update $as_me by reconfiguring in the same conditions
41759   --file=FILE[:TEMPLATE]
41760                    instantiate the configuration file FILE
41761   --header=FILE[:TEMPLATE]
41762                    instantiate the configuration header FILE
41763
41764 Configuration files:
41765 $config_files
41766
41767 Configuration headers:
41768 $config_headers
41769
41770 Configuration commands:
41771 $config_commands
41772
41773 Report bugs to <bug-autoconf@gnu.org>."
41774
41775 _ACEOF
41776 cat >>$CONFIG_STATUS <<_ACEOF
41777 ac_cs_version="\\
41778 config.status
41779 configured by $0, generated by GNU Autoconf 2.61,
41780   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41781
41782 Copyright (C) 2006 Free Software Foundation, Inc.
41783 This config.status script is free software; the Free Software Foundation
41784 gives unlimited permission to copy, distribute and modify it."
41785
41786 ac_pwd='$ac_pwd'
41787 srcdir='$srcdir'
41788 INSTALL='$INSTALL'
41789 _ACEOF
41790
41791 cat >>$CONFIG_STATUS <<\_ACEOF
41792 # If no file are specified by the user, then we need to provide default
41793 # value.  By we need to know if files were specified by the user.
41794 ac_need_defaults=:
41795 while test $# != 0
41796 do
41797   case $1 in
41798   --*=*)
41799     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41800     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41801     ac_shift=:
41802     ;;
41803   *)
41804     ac_option=$1
41805     ac_optarg=$2
41806     ac_shift=shift
41807     ;;
41808   esac
41809
41810   case $ac_option in
41811   # Handling of the options.
41812   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41813     ac_cs_recheck=: ;;
41814   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41815     echo "$ac_cs_version"; exit ;;
41816   --debug | --debu | --deb | --de | --d | -d )
41817     debug=: ;;
41818   --file | --fil | --fi | --f )
41819     $ac_shift
41820     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41821     ac_need_defaults=false;;
41822   --header | --heade | --head | --hea )
41823     $ac_shift
41824     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41825     ac_need_defaults=false;;
41826   --he | --h)
41827     # Conflict between --help and --header
41828     { echo "$as_me: error: ambiguous option: $1
41829 Try \`$0 --help' for more information." >&2
41830    { (exit 1); exit 1; }; };;
41831   --help | --hel | -h )
41832     echo "$ac_cs_usage"; exit ;;
41833   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41834   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41835     ac_cs_silent=: ;;
41836
41837   # This is an error.
41838   -*) { echo "$as_me: error: unrecognized option: $1
41839 Try \`$0 --help' for more information." >&2
41840    { (exit 1); exit 1; }; } ;;
41841
41842   *) ac_config_targets="$ac_config_targets $1"
41843      ac_need_defaults=false ;;
41844
41845   esac
41846   shift
41847 done
41848
41849 ac_configure_extra_args=
41850
41851 if $ac_cs_silent; then
41852   exec 6>/dev/null
41853   ac_configure_extra_args="$ac_configure_extra_args --silent"
41854 fi
41855
41856 _ACEOF
41857 cat >>$CONFIG_STATUS <<_ACEOF
41858 if \$ac_cs_recheck; then
41859   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41860   CONFIG_SHELL=$SHELL
41861   export CONFIG_SHELL
41862   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41863 fi
41864
41865 _ACEOF
41866 cat >>$CONFIG_STATUS <<\_ACEOF
41867 exec 5>>config.log
41868 {
41869   echo
41870   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41871 ## Running $as_me. ##
41872 _ASBOX
41873   echo "$ac_log"
41874 } >&5
41875
41876 _ACEOF
41877 cat >>$CONFIG_STATUS <<_ACEOF
41878 #
41879 # INIT-COMMANDS
41880 #
41881
41882
41883 # The HP-UX ksh and POSIX shell print the target directory to stdout
41884 # if CDPATH is set.
41885 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41886
41887 sed_quote_subst='$sed_quote_subst'
41888 double_quote_subst='$double_quote_subst'
41889 delay_variable_subst='$delay_variable_subst'
41890 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41891 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41892 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41893 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41894 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41895 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41896 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41897 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41898 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41899 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41900 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41901 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41902 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41903 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41904 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41905 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41906 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41907 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41908 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41909 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41910 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41911 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41912 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41913 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41914 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41915 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41916 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41917 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41918 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41919 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41920 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41921 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41922 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41923 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41924 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41925 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41926 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41927 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41928 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41929 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41930 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41931 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41932 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41933 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41934 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"`'
41935 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"`'
41936 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41937 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41938 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41939 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41940 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41941 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41942 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41943 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41944 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41945 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41946 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41947 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41948 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41949 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41950 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41951 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41952 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41953 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41954 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41955 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41956 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41957 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41958 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41959 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41960 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41961 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41962 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41963 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41964 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41965 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41966 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41967 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41968 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41969 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41970 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41971 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41972 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41973 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41974 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41975 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41976 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41977 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41978 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41979 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41980 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41981 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41982 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41983 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41984 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41985 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41986 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41987 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41988 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41989 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41990 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41991 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41992 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41993 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41994 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41995 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41996 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41997 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41998 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41999 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
42000 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42001 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42002 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
42003 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
42004 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
42005 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
42006 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
42007 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
42008 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
42009 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42010 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42011 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
42012 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
42013 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
42014 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42015 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42016 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42017 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42018 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42019 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42020 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42021 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42022 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42023 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42024 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42025 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42026 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42027 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42028 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42029 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42030 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42031 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42032 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42033 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42034 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42035 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42036 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42037 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42038 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42039 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42040 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42041 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42042 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42043 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42044 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42045 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42046 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42047 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42048 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42049 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42050 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42051 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42052 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42053 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42054 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42055 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42056 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42057 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42058 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42059 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42060 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42061
42062 LTCC='$LTCC'
42063 LTCFLAGS='$LTCFLAGS'
42064 compiler='$compiler_DEFAULT'
42065
42066 # Quote evaled strings.
42067 for var in SED \
42068 GREP \
42069 EGREP \
42070 FGREP \
42071 LD \
42072 NM \
42073 LN_S \
42074 lt_SP2NL \
42075 lt_NL2SP \
42076 reload_flag \
42077 OBJDUMP \
42078 deplibs_check_method \
42079 file_magic_cmd \
42080 AR \
42081 AR_FLAGS \
42082 STRIP \
42083 RANLIB \
42084 CC \
42085 CFLAGS \
42086 compiler \
42087 lt_cv_sys_global_symbol_pipe \
42088 lt_cv_sys_global_symbol_to_cdecl \
42089 lt_cv_sys_global_symbol_to_c_name_address \
42090 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42091 SHELL \
42092 ECHO \
42093 lt_prog_compiler_no_builtin_flag \
42094 lt_prog_compiler_wl \
42095 lt_prog_compiler_pic \
42096 lt_prog_compiler_static \
42097 lt_cv_prog_compiler_c_o \
42098 need_locks \
42099 DSYMUTIL \
42100 NMEDIT \
42101 LIPO \
42102 OTOOL \
42103 OTOOL64 \
42104 shrext_cmds \
42105 export_dynamic_flag_spec \
42106 whole_archive_flag_spec \
42107 compiler_needs_object \
42108 with_gnu_ld \
42109 allow_undefined_flag \
42110 no_undefined_flag \
42111 hardcode_libdir_flag_spec \
42112 hardcode_libdir_flag_spec_ld \
42113 hardcode_libdir_separator \
42114 fix_srcfile_path \
42115 exclude_expsyms \
42116 include_expsyms \
42117 file_list_spec \
42118 variables_saved_for_relink \
42119 libname_spec \
42120 library_names_spec \
42121 soname_spec \
42122 finish_eval \
42123 old_striplib \
42124 striplib \
42125 compiler_lib_search_dirs \
42126 predep_objects \
42127 postdep_objects \
42128 predeps \
42129 postdeps \
42130 compiler_lib_search_path \
42131 LD_CXX \
42132 compiler_CXX \
42133 lt_prog_compiler_no_builtin_flag_CXX \
42134 lt_prog_compiler_wl_CXX \
42135 lt_prog_compiler_pic_CXX \
42136 lt_prog_compiler_static_CXX \
42137 lt_cv_prog_compiler_c_o_CXX \
42138 export_dynamic_flag_spec_CXX \
42139 whole_archive_flag_spec_CXX \
42140 compiler_needs_object_CXX \
42141 with_gnu_ld_CXX \
42142 allow_undefined_flag_CXX \
42143 no_undefined_flag_CXX \
42144 hardcode_libdir_flag_spec_CXX \
42145 hardcode_libdir_flag_spec_ld_CXX \
42146 hardcode_libdir_separator_CXX \
42147 fix_srcfile_path_CXX \
42148 exclude_expsyms_CXX \
42149 include_expsyms_CXX \
42150 file_list_spec_CXX \
42151 compiler_lib_search_dirs_CXX \
42152 predep_objects_CXX \
42153 postdep_objects_CXX \
42154 predeps_CXX \
42155 postdeps_CXX \
42156 compiler_lib_search_path_CXX; do
42157     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42158     *[\\\\\\\`\\"\\\$]*)
42159       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42160       ;;
42161     *)
42162       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42163       ;;
42164     esac
42165 done
42166
42167 # Double-quote double-evaled strings.
42168 for var in reload_cmds \
42169 old_postinstall_cmds \
42170 old_postuninstall_cmds \
42171 old_archive_cmds \
42172 extract_expsyms_cmds \
42173 old_archive_from_new_cmds \
42174 old_archive_from_expsyms_cmds \
42175 archive_cmds \
42176 archive_expsym_cmds \
42177 module_cmds \
42178 module_expsym_cmds \
42179 export_symbols_cmds \
42180 prelink_cmds \
42181 postinstall_cmds \
42182 postuninstall_cmds \
42183 finish_cmds \
42184 sys_lib_search_path_spec \
42185 sys_lib_dlsearch_path_spec \
42186 old_archive_cmds_CXX \
42187 old_archive_from_new_cmds_CXX \
42188 old_archive_from_expsyms_cmds_CXX \
42189 archive_cmds_CXX \
42190 archive_expsym_cmds_CXX \
42191 module_cmds_CXX \
42192 module_expsym_cmds_CXX \
42193 export_symbols_cmds_CXX \
42194 prelink_cmds_CXX; do
42195     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42196     *[\\\\\\\`\\"\\\$]*)
42197       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42198       ;;
42199     *)
42200       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42201       ;;
42202     esac
42203 done
42204
42205 # Fix-up fallback echo if it was mangled by the above quoting rules.
42206 case \$lt_ECHO in
42207 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42208   ;;
42209 esac
42210
42211 ac_aux_dir='$ac_aux_dir'
42212 xsi_shell='$xsi_shell'
42213 lt_shell_append='$lt_shell_append'
42214
42215 # See if we are running on zsh, and set the options which allow our
42216 # commands through without removal of \ escapes INIT.
42217 if test -n "\${ZSH_VERSION+set}" ; then
42218    setopt NO_GLOB_SUBST
42219 fi
42220
42221
42222     PACKAGE='$PACKAGE'
42223     VERSION='$VERSION'
42224     TIMESTAMP='$TIMESTAMP'
42225     RM='$RM'
42226     ofile='$ofile'
42227
42228
42229
42230
42231
42232 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42233     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42234     # from automake.
42235     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42236     # Capture the value of LINGUAS because we need it to compute CATALOGS.
42237     LINGUAS="${LINGUAS-%UNSET%}"
42238
42239
42240 _ACEOF
42241
42242 cat >>$CONFIG_STATUS <<\_ACEOF
42243
42244 # Handling of arguments.
42245 for ac_config_target in $ac_config_targets
42246 do
42247   case $ac_config_target in
42248     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42249     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42250     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42251     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42252     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42253     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42254     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42255     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42256     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42257     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42258     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42259     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42260     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42261     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42262     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42263     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42264     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42265     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42266     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42267     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42268     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42269     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42270     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42271     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42272     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42273     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42274     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42275     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42276     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42277     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42278     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42279     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42280     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42281     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42282     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42283     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42284     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42285     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42286     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42287     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42288     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42289     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42290     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42291     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42292     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42293     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42294     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42295     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42296     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42297     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42298     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42299     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42300     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42301     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42302     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42303     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42304     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42305     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42306     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42307     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42308     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42309     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42310     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42311     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42312     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42313     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42314     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42315     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42316     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42317     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42318     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42319     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42320     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42321     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42322     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42323     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42324     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42325     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42326     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42327     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42328     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42329     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42330     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42331     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42332     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42333     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42334     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42335     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42336     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42337     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42338     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42339     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42340     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42341     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42342     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42343     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42344     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42345     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42346     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42347     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42348     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42349     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42350     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42351     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42352     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42353     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42354     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42355     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42356     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42357     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42358     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42359     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42360     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42361
42362   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42363 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42364    { (exit 1); exit 1; }; };;
42365   esac
42366 done
42367
42368
42369 # If the user did not use the arguments to specify the items to instantiate,
42370 # then the envvar interface is used.  Set only those that are not.
42371 # We use the long form for the default assignment because of an extremely
42372 # bizarre bug on SunOS 4.1.3.
42373 if $ac_need_defaults; then
42374   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42375   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42376   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42377 fi
42378
42379 # Have a temporary directory for convenience.  Make it in the build tree
42380 # simply because there is no reason against having it here, and in addition,
42381 # creating and moving files from /tmp can sometimes cause problems.
42382 # Hook for its removal unless debugging.
42383 # Note that there is a small window in which the directory will not be cleaned:
42384 # after its creation but before its name has been assigned to `$tmp'.
42385 $debug ||
42386 {
42387   tmp=
42388   trap 'exit_status=$?
42389   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42390 ' 0
42391   trap '{ (exit 1); exit 1; }' 1 2 13 15
42392 }
42393 # Create a (secure) tmp directory for tmp files.
42394
42395 {
42396   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42397   test -n "$tmp" && test -d "$tmp"
42398 }  ||
42399 {
42400   tmp=./conf$$-$RANDOM
42401   (umask 077 && mkdir "$tmp")
42402 } ||
42403 {
42404    echo "$me: cannot create a temporary directory in ." >&2
42405    { (exit 1); exit 1; }
42406 }
42407
42408 #
42409 # Set up the sed scripts for CONFIG_FILES section.
42410 #
42411
42412 # No need to generate the scripts if there are no CONFIG_FILES.
42413 # This happens for instance when ./config.status config.h
42414 if test -n "$CONFIG_FILES"; then
42415
42416 _ACEOF
42417
42418 # Create sed commands to just substitute file output variables.
42419
42420 # Remaining file output variables are in a fragment that also has non-file
42421 # output varibles.
42422
42423
42424
42425 ac_delim='%!_!# '
42426 for ac_last_try in false false false false false :; do
42427   cat >conf$$subs.sed <<_ACEOF
42428 SHELL!$SHELL$ac_delim
42429 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42430 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42431 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42432 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42433 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42434 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42435 exec_prefix!$exec_prefix$ac_delim
42436 prefix!$prefix$ac_delim
42437 program_transform_name!$program_transform_name$ac_delim
42438 bindir!$bindir$ac_delim
42439 sbindir!$sbindir$ac_delim
42440 libexecdir!$libexecdir$ac_delim
42441 datarootdir!$datarootdir$ac_delim
42442 datadir!$datadir$ac_delim
42443 sysconfdir!$sysconfdir$ac_delim
42444 sharedstatedir!$sharedstatedir$ac_delim
42445 localstatedir!$localstatedir$ac_delim
42446 includedir!$includedir$ac_delim
42447 oldincludedir!$oldincludedir$ac_delim
42448 docdir!$docdir$ac_delim
42449 infodir!$infodir$ac_delim
42450 htmldir!$htmldir$ac_delim
42451 dvidir!$dvidir$ac_delim
42452 pdfdir!$pdfdir$ac_delim
42453 psdir!$psdir$ac_delim
42454 libdir!$libdir$ac_delim
42455 localedir!$localedir$ac_delim
42456 mandir!$mandir$ac_delim
42457 DEFS!$DEFS$ac_delim
42458 ECHO_C!$ECHO_C$ac_delim
42459 ECHO_N!$ECHO_N$ac_delim
42460 ECHO_T!$ECHO_T$ac_delim
42461 LIBS!$LIBS$ac_delim
42462 build_alias!$build_alias$ac_delim
42463 host_alias!$host_alias$ac_delim
42464 target_alias!$target_alias$ac_delim
42465 BUILD_DIR!$BUILD_DIR$ac_delim
42466 TOP_DIR!$TOP_DIR$ac_delim
42467 TRUEPRG!$TRUEPRG$ac_delim
42468 FALSEPRG!$FALSEPRG$ac_delim
42469 VERSION!$VERSION$ac_delim
42470 DATE!$DATE$ac_delim
42471 LSMDATE!$LSMDATE$ac_delim
42472 BACULA!$BACULA$ac_delim
42473 post_host!$post_host$ac_delim
42474 CC!$CC$ac_delim
42475 CFLAGS!$CFLAGS$ac_delim
42476 LDFLAGS!$LDFLAGS$ac_delim
42477 CPPFLAGS!$CPPFLAGS$ac_delim
42478 ac_ct_CC!$ac_ct_CC$ac_delim
42479 EXEEXT!$EXEEXT$ac_delim
42480 OBJEXT!$OBJEXT$ac_delim
42481 CXX!$CXX$ac_delim
42482 CXXFLAGS!$CXXFLAGS$ac_delim
42483 ac_ct_CXX!$ac_ct_CXX$ac_delim
42484 CPP!$CPP$ac_delim
42485 GREP!$GREP$ac_delim
42486 EGREP!$EGREP$ac_delim
42487 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42488 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42489 INSTALL_DATA!$INSTALL_DATA$ac_delim
42490 MV!$MV$ac_delim
42491 REMOVE!$REMOVE$ac_delim
42492 CP!$CP$ac_delim
42493 SED!$SED$ac_delim
42494 ECHO!$ECHO$ac_delim
42495 CMP!$CMP$ac_delim
42496 TBL!$TBL$ac_delim
42497 AR!$AR$ac_delim
42498 OPENSSL!$OPENSSL$ac_delim
42499 MTX!$MTX$ac_delim
42500 DD!$DD$ac_delim
42501 MKISOFS!$MKISOFS$ac_delim
42502 PYTHON!$PYTHON$ac_delim
42503 GROWISOFS!$GROWISOFS$ac_delim
42504 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42505 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42506 PKGCONFIG!$PKGCONFIG$ac_delim
42507 QMAKE!$QMAKE$ac_delim
42508 QMAKEQT4!$QMAKEQT4$ac_delim
42509 WXCONFIG!$WXCONFIG$ac_delim
42510 WXFLAGS!$WXFLAGS$ac_delim
42511 CDRECORD!$CDRECORD$ac_delim
42512 PIDOF!$PIDOF$ac_delim
42513 AWK!$AWK$ac_delim
42514 ARFLAGS!$ARFLAGS$ac_delim
42515 MAKE_SHELL!$MAKE_SHELL$ac_delim
42516 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42517 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42518 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42519 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42520 LIBTOOL!$LIBTOOL$ac_delim
42521 build!$build$ac_delim
42522 _ACEOF
42523
42524   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42525     break
42526   elif $ac_last_try; then
42527     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42528 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42529    { (exit 1); exit 1; }; }
42530   else
42531     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42532   fi
42533 done
42534
42535 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42536 if test -n "$ac_eof"; then
42537   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42538   ac_eof=`expr $ac_eof + 1`
42539 fi
42540
42541 cat >>$CONFIG_STATUS <<_ACEOF
42542 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42544 /^[      ]*@MCOMMON@[    ]*$/{
42545 r $MCOMMON
42546 d
42547 }
42548 _ACEOF
42549 sed '
42550 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42551 s/^/s,@/; s/!/@,|#_!!_#|/
42552 :n
42553 t n
42554 s/'"$ac_delim"'$/,g/; t
42555 s/$/\\/; p
42556 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42557 ' >>$CONFIG_STATUS <conf$$subs.sed
42558 rm -f conf$$subs.sed
42559 cat >>$CONFIG_STATUS <<_ACEOF
42560 CEOF$ac_eof
42561 _ACEOF
42562
42563
42564 ac_delim='%!_!# '
42565 for ac_last_try in false false false false false :; do
42566   cat >conf$$subs.sed <<_ACEOF
42567 build_cpu!$build_cpu$ac_delim
42568 build_vendor!$build_vendor$ac_delim
42569 build_os!$build_os$ac_delim
42570 host!$host$ac_delim
42571 host_cpu!$host_cpu$ac_delim
42572 host_vendor!$host_vendor$ac_delim
42573 host_os!$host_os$ac_delim
42574 FGREP!$FGREP$ac_delim
42575 LD!$LD$ac_delim
42576 DUMPBIN!$DUMPBIN$ac_delim
42577 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42578 NM!$NM$ac_delim
42579 LN_S!$LN_S$ac_delim
42580 OBJDUMP!$OBJDUMP$ac_delim
42581 STRIP!$STRIP$ac_delim
42582 RANLIB!$RANLIB$ac_delim
42583 lt_ECHO!$lt_ECHO$ac_delim
42584 DSYMUTIL!$DSYMUTIL$ac_delim
42585 NMEDIT!$NMEDIT$ac_delim
42586 LIPO!$LIPO$ac_delim
42587 OTOOL!$OTOOL$ac_delim
42588 OTOOL64!$OTOOL64$ac_delim
42589 CXXCPP!$CXXCPP$ac_delim
42590 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42591 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42592 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42593 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42594 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42595 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42596 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42597 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42598 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42599 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42600 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42601 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42602 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42603 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42604 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42605 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42606 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42607 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42608 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42609 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42610 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42611 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42612 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42613 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42614 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42615 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42616 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42617 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42618 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42619 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42620 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42621 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42622 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42623 SET_MAKE!$SET_MAKE$ac_delim
42624 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42625 USE_NLS!$USE_NLS$ac_delim
42626 MSGFMT!$MSGFMT$ac_delim
42627 GMSGFMT!$GMSGFMT$ac_delim
42628 XGETTEXT!$XGETTEXT$ac_delim
42629 MSGMERGE!$MSGMERGE$ac_delim
42630 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42631 LIBICONV!$LIBICONV$ac_delim
42632 LTLIBICONV!$LTLIBICONV$ac_delim
42633 INTLLIBS!$INTLLIBS$ac_delim
42634 LIBINTL!$LIBINTL$ac_delim
42635 LTLIBINTL!$LTLIBINTL$ac_delim
42636 POSUB!$POSUB$ac_delim
42637 GLIBC2!$GLIBC2$ac_delim
42638 ALLOCA!$ALLOCA$ac_delim
42639 GLIBC21!$GLIBC21$ac_delim
42640 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42641 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42642 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42643 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42644 INTLBISON!$INTLBISON$ac_delim
42645 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42646 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42647 CATOBJEXT!$CATOBJEXT$ac_delim
42648 DATADIRNAME!$DATADIRNAME$ac_delim
42649 INSTOBJEXT!$INSTOBJEXT$ac_delim
42650 GENCAT!$GENCAT$ac_delim
42651 INTLOBJS!$INTLOBJS$ac_delim
42652 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42653 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42654 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42655 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42656 GNOME_LIBS!$GNOME_LIBS$ac_delim
42657 GNOME_DIR!$GNOME_DIR$ac_delim
42658 BAT_DIR!$BAT_DIR$ac_delim
42659 QWT_INC!$QWT_INC$ac_delim
42660 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42661 QWT_LIB!$QWT_LIB$ac_delim
42662 QWT!$QWT$ac_delim
42663 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42664 _ACEOF
42665
42666   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42667     break
42668   elif $ac_last_try; then
42669     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42670 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42671    { (exit 1); exit 1; }; }
42672   else
42673     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42674   fi
42675 done
42676
42677 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42678 if test -n "$ac_eof"; then
42679   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42680   ac_eof=`expr $ac_eof + 1`
42681 fi
42682
42683 cat >>$CONFIG_STATUS <<_ACEOF
42684 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42686 _ACEOF
42687 sed '
42688 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42689 s/^/s,@/; s/!/@,|#_!!_#|/
42690 :n
42691 t n
42692 s/'"$ac_delim"'$/,g/; t
42693 s/$/\\/; p
42694 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42695 ' >>$CONFIG_STATUS <conf$$subs.sed
42696 rm -f conf$$subs.sed
42697 cat >>$CONFIG_STATUS <<_ACEOF
42698 CEOF$ac_eof
42699 _ACEOF
42700
42701
42702 ac_delim='%!_!# '
42703 for ac_last_try in false false false false false :; do
42704   cat >conf$$subs.sed <<_ACEOF
42705 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42706 WX_DIR!$WX_DIR$ac_delim
42707 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42708 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42709 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42710 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42711 STATIC_FD!$STATIC_FD$ac_delim
42712 STATIC_SD!$STATIC_SD$ac_delim
42713 STATIC_DIR!$STATIC_DIR$ac_delim
42714 STATIC_CONS!$STATIC_CONS$ac_delim
42715 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42716 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42717 ALL_DIRS!$ALL_DIRS$ac_delim
42718 DIRD_DIR!$DIRD_DIR$ac_delim
42719 DIR_TOOLS!$DIR_TOOLS$ac_delim
42720 STORED_DIR!$STORED_DIR$ac_delim
42721 CONS_INC!$CONS_INC$ac_delim
42722 CONS_OBJ!$CONS_OBJ$ac_delim
42723 CONS_SRC!$CONS_SRC$ac_delim
42724 CONS_LIBS!$CONS_LIBS$ac_delim
42725 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42726 READLINE_SRC!$READLINE_SRC$ac_delim
42727 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42728 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42729 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42730 OPENSSL_INC!$OPENSSL_INC$ac_delim
42731 working_dir!$working_dir$ac_delim
42732 archivedir!$archivedir$ac_delim
42733 scriptdir!$scriptdir$ac_delim
42734 plugindir!$plugindir$ac_delim
42735 dump_email!$dump_email$ac_delim
42736 job_email!$job_email$ac_delim
42737 smtp_host!$smtp_host$ac_delim
42738 piddir!$piddir$ac_delim
42739 subsysdir!$subsysdir$ac_delim
42740 baseport!$baseport$ac_delim
42741 dir_port!$dir_port$ac_delim
42742 fd_port!$fd_port$ac_delim
42743 sd_port!$sd_port$ac_delim
42744 dir_password!$dir_password$ac_delim
42745 fd_password!$fd_password$ac_delim
42746 sd_password!$sd_password$ac_delim
42747 mon_dir_password!$mon_dir_password$ac_delim
42748 mon_fd_password!$mon_fd_password$ac_delim
42749 mon_sd_password!$mon_sd_password$ac_delim
42750 db_name!$db_name$ac_delim
42751 db_user!$db_user$ac_delim
42752 db_password!$db_password$ac_delim
42753 db_port!$db_port$ac_delim
42754 dir_user!$dir_user$ac_delim
42755 dir_group!$dir_group$ac_delim
42756 sd_user!$sd_user$ac_delim
42757 sd_group!$sd_group$ac_delim
42758 fd_user!$fd_user$ac_delim
42759 fd_group!$fd_group$ac_delim
42760 SBINPERM!$SBINPERM$ac_delim
42761 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42762 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42763 SQL_BINDIR!$SQL_BINDIR$ac_delim
42764 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42765 uncomment_dbi!$uncomment_dbi$ac_delim
42766 DB_PROG!$DB_PROG$ac_delim
42767 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42768 cats!$cats$ac_delim
42769 DB_TYPE!$DB_TYPE$ac_delim
42770 GETCONF!$GETCONF$ac_delim
42771 XMKMF!$XMKMF$ac_delim
42772 X_CFLAGS!$X_CFLAGS$ac_delim
42773 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42774 X_LIBS!$X_LIBS$ac_delim
42775 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42776 LIBOBJS!$LIBOBJS$ac_delim
42777 FDLIBS!$FDLIBS$ac_delim
42778 DEBUG!$DEBUG$ac_delim
42779 DINCLUDE!$DINCLUDE$ac_delim
42780 DLIB!$DLIB$ac_delim
42781 DB_LIBS!$DB_LIBS$ac_delim
42782 WCFLAGS!$WCFLAGS$ac_delim
42783 WLDFLAGS!$WLDFLAGS$ac_delim
42784 WRAPLIBS!$WRAPLIBS$ac_delim
42785 OBJLIST!$OBJLIST$ac_delim
42786 hostname!$hostname$ac_delim
42787 TAPEDRIVE!$TAPEDRIVE$ac_delim
42788 PSCMD!$PSCMD$ac_delim
42789 WIN32!$WIN32$ac_delim
42790 MACOSX!$MACOSX$ac_delim
42791 DISTNAME!$DISTNAME$ac_delim
42792 DISTVER!$DISTVER$ac_delim
42793 LTLIBOBJS!$LTLIBOBJS$ac_delim
42794 _ACEOF
42795
42796   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42797     break
42798   elif $ac_last_try; then
42799     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42800 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42801    { (exit 1); exit 1; }; }
42802   else
42803     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42804   fi
42805 done
42806
42807 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42808 if test -n "$ac_eof"; then
42809   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42810   ac_eof=`expr $ac_eof + 1`
42811 fi
42812
42813 cat >>$CONFIG_STATUS <<_ACEOF
42814 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42816 _ACEOF
42817 sed '
42818 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42819 s/^/s,@/; s/!/@,|#_!!_#|/
42820 :n
42821 t n
42822 s/'"$ac_delim"'$/,g/; t
42823 s/$/\\/; p
42824 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42825 ' >>$CONFIG_STATUS <conf$$subs.sed
42826 rm -f conf$$subs.sed
42827 cat >>$CONFIG_STATUS <<_ACEOF
42828 :end
42829 s/|#_!!_#|//g
42830 CEOF$ac_eof
42831 _ACEOF
42832
42833
42834 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42835 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42836 # trailing colons and then remove the whole line if VPATH becomes empty
42837 # (actually we leave an empty line to preserve line numbers).
42838 if test "x$srcdir" = x.; then
42839   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42840 s/:*\$(srcdir):*/:/
42841 s/:*\${srcdir}:*/:/
42842 s/:*@srcdir@:*/:/
42843 s/^\([^=]*=[     ]*\):*/\1/
42844 s/:*$//
42845 s/^[^=]*=[       ]*$//
42846 }'
42847 fi
42848
42849 cat >>$CONFIG_STATUS <<\_ACEOF
42850 fi # test -n "$CONFIG_FILES"
42851
42852
42853 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
42854 do
42855   case $ac_tag in
42856   :[FHLC]) ac_mode=$ac_tag; continue;;
42857   esac
42858   case $ac_mode$ac_tag in
42859   :[FHL]*:*);;
42860   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42861 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42862    { (exit 1); exit 1; }; };;
42863   :[FH]-) ac_tag=-:-;;
42864   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42865   esac
42866   ac_save_IFS=$IFS
42867   IFS=:
42868   set x $ac_tag
42869   IFS=$ac_save_IFS
42870   shift
42871   ac_file=$1
42872   shift
42873
42874   case $ac_mode in
42875   :L) ac_source=$1;;
42876   :[FH])
42877     ac_file_inputs=
42878     for ac_f
42879     do
42880       case $ac_f in
42881       -) ac_f="$tmp/stdin";;
42882       *) # Look for the file first in the build tree, then in the source tree
42883          # (if the path is not absolute).  The absolute path cannot be DOS-style,
42884          # because $ac_f cannot contain `:'.
42885          test -f "$ac_f" ||
42886            case $ac_f in
42887            [\\/$]*) false;;
42888            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42889            esac ||
42890            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42891 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42892    { (exit 1); exit 1; }; };;
42893       esac
42894       ac_file_inputs="$ac_file_inputs $ac_f"
42895     done
42896
42897     # Let's still pretend it is `configure' which instantiates (i.e., don't
42898     # use $as_me), people would be surprised to read:
42899     #    /* config.h.  Generated by config.status.  */
42900     configure_input="Generated from "`IFS=:
42901           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42902     if test x"$ac_file" != x-; then
42903       configure_input="$ac_file.  $configure_input"
42904       { echo "$as_me:$LINENO: creating $ac_file" >&5
42905 echo "$as_me: creating $ac_file" >&6;}
42906     fi
42907
42908     case $ac_tag in
42909     *:-:* | *:-) cat >"$tmp/stdin";;
42910     esac
42911     ;;
42912   esac
42913
42914   ac_dir=`$as_dirname -- "$ac_file" ||
42915 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42916          X"$ac_file" : 'X\(//\)[^/]' \| \
42917          X"$ac_file" : 'X\(//\)$' \| \
42918          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42919 echo X"$ac_file" |
42920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42921             s//\1/
42922             q
42923           }
42924           /^X\(\/\/\)[^/].*/{
42925             s//\1/
42926             q
42927           }
42928           /^X\(\/\/\)$/{
42929             s//\1/
42930             q
42931           }
42932           /^X\(\/\).*/{
42933             s//\1/
42934             q
42935           }
42936           s/.*/./; q'`
42937   { as_dir="$ac_dir"
42938   case $as_dir in #(
42939   -*) as_dir=./$as_dir;;
42940   esac
42941   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42942     as_dirs=
42943     while :; do
42944       case $as_dir in #(
42945       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42946       *) as_qdir=$as_dir;;
42947       esac
42948       as_dirs="'$as_qdir' $as_dirs"
42949       as_dir=`$as_dirname -- "$as_dir" ||
42950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42951          X"$as_dir" : 'X\(//\)[^/]' \| \
42952          X"$as_dir" : 'X\(//\)$' \| \
42953          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42954 echo X"$as_dir" |
42955     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42956             s//\1/
42957             q
42958           }
42959           /^X\(\/\/\)[^/].*/{
42960             s//\1/
42961             q
42962           }
42963           /^X\(\/\/\)$/{
42964             s//\1/
42965             q
42966           }
42967           /^X\(\/\).*/{
42968             s//\1/
42969             q
42970           }
42971           s/.*/./; q'`
42972       test -d "$as_dir" && break
42973     done
42974     test -z "$as_dirs" || eval "mkdir $as_dirs"
42975   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42976 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42977    { (exit 1); exit 1; }; }; }
42978   ac_builddir=.
42979
42980 case "$ac_dir" in
42981 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42982 *)
42983   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42984   # A ".." for each directory in $ac_dir_suffix.
42985   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42986   case $ac_top_builddir_sub in
42987   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42988   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42989   esac ;;
42990 esac
42991 ac_abs_top_builddir=$ac_pwd
42992 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42993 # for backward compatibility:
42994 ac_top_builddir=$ac_top_build_prefix
42995
42996 case $srcdir in
42997   .)  # We are building in place.
42998     ac_srcdir=.
42999     ac_top_srcdir=$ac_top_builddir_sub
43000     ac_abs_top_srcdir=$ac_pwd ;;
43001   [\\/]* | ?:[\\/]* )  # Absolute name.
43002     ac_srcdir=$srcdir$ac_dir_suffix;
43003     ac_top_srcdir=$srcdir
43004     ac_abs_top_srcdir=$srcdir ;;
43005   *) # Relative name.
43006     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43007     ac_top_srcdir=$ac_top_build_prefix$srcdir
43008     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43009 esac
43010 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43011
43012
43013   case $ac_mode in
43014   :F)
43015   #
43016   # CONFIG_FILE
43017   #
43018
43019   case $INSTALL in
43020   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43021   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43022   esac
43023 _ACEOF
43024
43025 cat >>$CONFIG_STATUS <<\_ACEOF
43026 # If the template does not know about datarootdir, expand it.
43027 # FIXME: This hack should be removed a few years after 2.60.
43028 ac_datarootdir_hack=; ac_datarootdir_seen=
43029
43030 case `sed -n '/datarootdir/ {
43031   p
43032   q
43033 }
43034 /@datadir@/p
43035 /@docdir@/p
43036 /@infodir@/p
43037 /@localedir@/p
43038 /@mandir@/p
43039 ' $ac_file_inputs` in
43040 *datarootdir*) ac_datarootdir_seen=yes;;
43041 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43042   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43043 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43044 _ACEOF
43045 cat >>$CONFIG_STATUS <<_ACEOF
43046   ac_datarootdir_hack='
43047   s&@datadir@&$datadir&g
43048   s&@docdir@&$docdir&g
43049   s&@infodir@&$infodir&g
43050   s&@localedir@&$localedir&g
43051   s&@mandir@&$mandir&g
43052     s&\\\${datarootdir}&$datarootdir&g' ;;
43053 esac
43054 _ACEOF
43055
43056 # Neutralize VPATH when `$srcdir' = `.'.
43057 # Shell code in configure.ac might set extrasub.
43058 # FIXME: do we really want to maintain this feature?
43059 cat >>$CONFIG_STATUS <<_ACEOF
43060   sed "$ac_vpsub
43061 $extrasub
43062 _ACEOF
43063 cat >>$CONFIG_STATUS <<\_ACEOF
43064 :t
43065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43066 s&@configure_input@&$configure_input&;t t
43067 s&@top_builddir@&$ac_top_builddir_sub&;t t
43068 s&@srcdir@&$ac_srcdir&;t t
43069 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43070 s&@top_srcdir@&$ac_top_srcdir&;t t
43071 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43072 s&@builddir@&$ac_builddir&;t t
43073 s&@abs_builddir@&$ac_abs_builddir&;t t
43074 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43075 s&@INSTALL@&$ac_INSTALL&;t t
43076 $ac_datarootdir_hack
43077 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
43078
43079 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43080   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43081   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43082   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43083 which seems to be undefined.  Please make sure it is defined." >&5
43084 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43085 which seems to be undefined.  Please make sure it is defined." >&2;}
43086
43087   rm -f "$tmp/stdin"
43088   case $ac_file in
43089   -) cat "$tmp/out"; rm -f "$tmp/out";;
43090   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43091   esac
43092  ;;
43093   :H)
43094   #
43095   # CONFIG_HEADER
43096   #
43097 _ACEOF
43098
43099 # Transform confdefs.h into a sed script `conftest.defines', that
43100 # substitutes the proper values into config.h.in to produce config.h.
43101 rm -f conftest.defines conftest.tail
43102 # First, append a space to every undef/define line, to ease matching.
43103 echo 's/$/ /' >conftest.defines
43104 # Then, protect against being on the right side of a sed subst, or in
43105 # an unquoted here document, in config.status.  If some macros were
43106 # called several times there might be several #defines for the same
43107 # symbol, which is useless.  But do not sort them, since the last
43108 # AC_DEFINE must be honored.
43109 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43110 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43111 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43112 # PARAMS is the parameter list in the macro definition--in most cases, it's
43113 # just an empty string.
43114 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
43115 ac_dB='\\)[      (].*,\\1define\\2'
43116 ac_dC=' '
43117 ac_dD=' ,'
43118
43119 uniq confdefs.h |
43120   sed -n '
43121         t rset
43122         :rset
43123         s/^[     ]*#[    ]*define[       ][      ]*//
43124         t ok
43125         d
43126         :ok
43127         s/[\\&,]/\\&/g
43128         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43129         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43130   ' >>conftest.defines
43131
43132 # Remove the space that was appended to ease matching.
43133 # Then replace #undef with comments.  This is necessary, for
43134 # example, in the case of _POSIX_SOURCE, which is predefined and required
43135 # on some systems where configure will not decide to define it.
43136 # (The regexp can be short, since the line contains either #define or #undef.)
43137 echo 's/ $//
43138 s,^[     #]*u.*,/* & */,' >>conftest.defines
43139
43140 # Break up conftest.defines:
43141 ac_max_sed_lines=50
43142
43143 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43144 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43145 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43146 # et cetera.
43147 ac_in='$ac_file_inputs'
43148 ac_out='"$tmp/out1"'
43149 ac_nxt='"$tmp/out2"'
43150
43151 while :
43152 do
43153   # Write a here document:
43154     cat >>$CONFIG_STATUS <<_ACEOF
43155     # First, check the format of the line:
43156     cat >"\$tmp/defines.sed" <<\\CEOF
43157 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
43158 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
43159 b
43160 :def
43161 _ACEOF
43162   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43163   echo 'CEOF
43164     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43165   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43166   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43167   grep . conftest.tail >/dev/null || break
43168   rm -f conftest.defines
43169   mv conftest.tail conftest.defines
43170 done
43171 rm -f conftest.defines conftest.tail
43172
43173 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43174 cat >>$CONFIG_STATUS <<\_ACEOF
43175   if test x"$ac_file" != x-; then
43176     echo "/* $configure_input  */" >"$tmp/config.h"
43177     cat "$ac_result" >>"$tmp/config.h"
43178     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43179       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43180 echo "$as_me: $ac_file is unchanged" >&6;}
43181     else
43182       rm -f $ac_file
43183       mv "$tmp/config.h" $ac_file
43184     fi
43185   else
43186     echo "/* $configure_input  */"
43187     cat "$ac_result"
43188   fi
43189   rm -f "$tmp/out12"
43190  ;;
43191
43192   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43193 echo "$as_me: executing $ac_file commands" >&6;}
43194  ;;
43195   esac
43196
43197
43198   case $ac_file$ac_mode in
43199     "libtool":C)
43200
43201     # See if we are running on zsh, and set the options which allow our
43202     # commands through without removal of \ escapes.
43203     if test -n "${ZSH_VERSION+set}" ; then
43204       setopt NO_GLOB_SUBST
43205     fi
43206
43207     cfgfile="${ofile}T"
43208     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43209     $RM "$cfgfile"
43210
43211     cat <<_LT_EOF >> "$cfgfile"
43212 #! $SHELL
43213
43214 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43215 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43216 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43217 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43218 #
43219 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43220 #                 2006, 2007, 2008 Free Software Foundation, Inc.
43221 #   Written by Gordon Matzigkeit, 1996
43222 #
43223 #   This file is part of GNU Libtool.
43224 #
43225 # GNU Libtool is free software; you can redistribute it and/or
43226 # modify it under the terms of the GNU General Public License as
43227 # published by the Free Software Foundation; either version 2 of
43228 # the License, or (at your option) any later version.
43229 #
43230 # As a special exception to the GNU General Public License,
43231 # if you distribute this file as part of a program or library that
43232 # is built using GNU Libtool, you may include this file under the
43233 # same distribution terms that you use for the rest of that program.
43234 #
43235 # GNU Libtool is distributed in the hope that it will be useful,
43236 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43237 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43238 # GNU General Public License for more details.
43239 #
43240 # You should have received a copy of the GNU General Public License
43241 # along with GNU Libtool; see the file COPYING.  If not, a copy
43242 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43243 # obtained by writing to the Free Software Foundation, Inc.,
43244 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43245
43246
43247 # The names of the tagged configurations supported by this script.
43248 available_tags="CXX "
43249
43250 # ### BEGIN LIBTOOL CONFIG
43251
43252 # Which release of libtool.m4 was used?
43253 macro_version=$macro_version
43254 macro_revision=$macro_revision
43255
43256 # Whether or not to build shared libraries.
43257 build_libtool_libs=$enable_shared
43258
43259 # Whether or not to build static libraries.
43260 build_old_libs=$enable_static
43261
43262 # What type of objects to build.
43263 pic_mode=$pic_mode
43264
43265 # Whether or not to optimize for fast installation.
43266 fast_install=$enable_fast_install
43267
43268 # The host system.
43269 host_alias=$host_alias
43270 host=$host
43271 host_os=$host_os
43272
43273 # The build system.
43274 build_alias=$build_alias
43275 build=$build
43276 build_os=$build_os
43277
43278 # A sed program that does not truncate output.
43279 SED=$lt_SED
43280
43281 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43282 Xsed="\$SED -e 1s/^X//"
43283
43284 # A grep program that handles long lines.
43285 GREP=$lt_GREP
43286
43287 # An ERE matcher.
43288 EGREP=$lt_EGREP
43289
43290 # A literal string matcher.
43291 FGREP=$lt_FGREP
43292
43293 # A BSD- or MS-compatible name lister.
43294 NM=$lt_NM
43295
43296 # Whether we need soft or hard links.
43297 LN_S=$lt_LN_S
43298
43299 # What is the maximum length of a command?
43300 max_cmd_len=$max_cmd_len
43301
43302 # Object file suffix (normally "o").
43303 objext=$ac_objext
43304
43305 # Executable file suffix (normally "").
43306 exeext=$exeext
43307
43308 # whether the shell understands "unset".
43309 lt_unset=$lt_unset
43310
43311 # turn spaces into newlines.
43312 SP2NL=$lt_lt_SP2NL
43313
43314 # turn newlines into spaces.
43315 NL2SP=$lt_lt_NL2SP
43316
43317 # How to create reloadable object files.
43318 reload_flag=$lt_reload_flag
43319 reload_cmds=$lt_reload_cmds
43320
43321 # An object symbol dumper.
43322 OBJDUMP=$lt_OBJDUMP
43323
43324 # Method to check whether dependent libraries are shared objects.
43325 deplibs_check_method=$lt_deplibs_check_method
43326
43327 # Command to use when deplibs_check_method == "file_magic".
43328 file_magic_cmd=$lt_file_magic_cmd
43329
43330 # The archiver.
43331 AR=$lt_AR
43332 AR_FLAGS=$lt_AR_FLAGS
43333
43334 # A symbol stripping program.
43335 STRIP=$lt_STRIP
43336
43337 # Commands used to install an old-style archive.
43338 RANLIB=$lt_RANLIB
43339 old_postinstall_cmds=$lt_old_postinstall_cmds
43340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43341
43342 # A C compiler.
43343 LTCC=$lt_CC
43344
43345 # LTCC compiler flags.
43346 LTCFLAGS=$lt_CFLAGS
43347
43348 # Take the output of nm and produce a listing of raw symbols and C names.
43349 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43350
43351 # Transform the output of nm in a proper C declaration.
43352 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43353
43354 # Transform the output of nm in a C name address pair.
43355 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43356
43357 # Transform the output of nm in a C name address pair when lib prefix is needed.
43358 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43359
43360 # The name of the directory that contains temporary libtool files.
43361 objdir=$objdir
43362
43363 # Shell to use when invoking shell scripts.
43364 SHELL=$lt_SHELL
43365
43366 # An echo program that does not interpret backslashes.
43367 ECHO=$lt_ECHO
43368
43369 # Used to examine libraries when file_magic_cmd begins with "file".
43370 MAGIC_CMD=$MAGIC_CMD
43371
43372 # Must we lock files when doing compilation?
43373 need_locks=$lt_need_locks
43374
43375 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43376 DSYMUTIL=$lt_DSYMUTIL
43377
43378 # Tool to change global to local symbols on Mac OS X.
43379 NMEDIT=$lt_NMEDIT
43380
43381 # Tool to manipulate fat objects and archives on Mac OS X.
43382 LIPO=$lt_LIPO
43383
43384 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43385 OTOOL=$lt_OTOOL
43386
43387 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43388 OTOOL64=$lt_OTOOL64
43389
43390 # Old archive suffix (normally "a").
43391 libext=$libext
43392
43393 # Shared library suffix (normally ".so").
43394 shrext_cmds=$lt_shrext_cmds
43395
43396 # The commands to extract the exported symbol list from a shared archive.
43397 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43398
43399 # Variables whose values should be saved in libtool wrapper scripts and
43400 # restored at link time.
43401 variables_saved_for_relink=$lt_variables_saved_for_relink
43402
43403 # Do we need the "lib" prefix for modules?
43404 need_lib_prefix=$need_lib_prefix
43405
43406 # Do we need a version for libraries?
43407 need_version=$need_version
43408
43409 # Library versioning type.
43410 version_type=$version_type
43411
43412 # Shared library runtime path variable.
43413 runpath_var=$runpath_var
43414
43415 # Shared library path variable.
43416 shlibpath_var=$shlibpath_var
43417
43418 # Is shlibpath searched before the hard-coded library search path?
43419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43420
43421 # Format of library name prefix.
43422 libname_spec=$lt_libname_spec
43423
43424 # List of archive names.  First name is the real one, the rest are links.
43425 # The last name is the one that the linker finds with -lNAME
43426 library_names_spec=$lt_library_names_spec
43427
43428 # The coded name of the library, if different from the real name.
43429 soname_spec=$lt_soname_spec
43430
43431 # Command to use after installation of a shared archive.
43432 postinstall_cmds=$lt_postinstall_cmds
43433
43434 # Command to use after uninstallation of a shared archive.
43435 postuninstall_cmds=$lt_postuninstall_cmds
43436
43437 # Commands used to finish a libtool library installation in a directory.
43438 finish_cmds=$lt_finish_cmds
43439
43440 # As "finish_cmds", except a single script fragment to be evaled but
43441 # not shown.
43442 finish_eval=$lt_finish_eval
43443
43444 # Whether we should hardcode library paths into libraries.
43445 hardcode_into_libs=$hardcode_into_libs
43446
43447 # Compile-time system search path for libraries.
43448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43449
43450 # Run-time system search path for libraries.
43451 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43452
43453 # Whether dlopen is supported.
43454 dlopen_support=$enable_dlopen
43455
43456 # Whether dlopen of programs is supported.
43457 dlopen_self=$enable_dlopen_self
43458
43459 # Whether dlopen of statically linked programs is supported.
43460 dlopen_self_static=$enable_dlopen_self_static
43461
43462 # Commands to strip libraries.
43463 old_striplib=$lt_old_striplib
43464 striplib=$lt_striplib
43465
43466
43467 # The linker used to build libraries.
43468 LD=$lt_LD
43469
43470 # Commands used to build an old-style archive.
43471 old_archive_cmds=$lt_old_archive_cmds
43472
43473 # A language specific compiler.
43474 CC=$lt_compiler
43475
43476 # Is the compiler the GNU compiler?
43477 with_gcc=$GCC
43478
43479 # Compiler flag to turn off builtin functions.
43480 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43481
43482 # How to pass a linker flag through the compiler.
43483 wl=$lt_lt_prog_compiler_wl
43484
43485 # Additional compiler flags for building library objects.
43486 pic_flag=$lt_lt_prog_compiler_pic
43487
43488 # Compiler flag to prevent dynamic linking.
43489 link_static_flag=$lt_lt_prog_compiler_static
43490
43491 # Does compiler simultaneously support -c and -o options?
43492 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43493
43494 # Whether or not to add -lc for building shared libraries.
43495 build_libtool_need_lc=$archive_cmds_need_lc
43496
43497 # Whether or not to disallow shared libs when runtime libs are static.
43498 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43499
43500 # Compiler flag to allow reflexive dlopens.
43501 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43502
43503 # Compiler flag to generate shared objects directly from archives.
43504 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43505
43506 # Whether the compiler copes with passing no objects directly.
43507 compiler_needs_object=$lt_compiler_needs_object
43508
43509 # Create an old-style archive from a shared archive.
43510 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43511
43512 # Create a temporary old-style archive to link instead of a shared archive.
43513 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43514
43515 # Commands used to build a shared archive.
43516 archive_cmds=$lt_archive_cmds
43517 archive_expsym_cmds=$lt_archive_expsym_cmds
43518
43519 # Commands used to build a loadable module if different from building
43520 # a shared archive.
43521 module_cmds=$lt_module_cmds
43522 module_expsym_cmds=$lt_module_expsym_cmds
43523
43524 # Whether we are building with GNU ld or not.
43525 with_gnu_ld=$lt_with_gnu_ld
43526
43527 # Flag that allows shared libraries with undefined symbols to be built.
43528 allow_undefined_flag=$lt_allow_undefined_flag
43529
43530 # Flag that enforces no undefined symbols.
43531 no_undefined_flag=$lt_no_undefined_flag
43532
43533 # Flag to hardcode \$libdir into a binary during linking.
43534 # This must work even if \$libdir does not exist
43535 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43536
43537 # If ld is used when linking, flag to hardcode \$libdir into a binary
43538 # during linking.  This must work even if \$libdir does not exist.
43539 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43540
43541 # Whether we need a single "-rpath" flag with a separated argument.
43542 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43543
43544 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43545 # DIR into the resulting binary.
43546 hardcode_direct=$hardcode_direct
43547
43548 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43549 # DIR into the resulting binary and the resulting library dependency is
43550 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43551 # library is relocated.
43552 hardcode_direct_absolute=$hardcode_direct_absolute
43553
43554 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43555 # into the resulting binary.
43556 hardcode_minus_L=$hardcode_minus_L
43557
43558 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43559 # into the resulting binary.
43560 hardcode_shlibpath_var=$hardcode_shlibpath_var
43561
43562 # Set to "yes" if building a shared library automatically hardcodes DIR
43563 # into the library and all subsequent libraries and executables linked
43564 # against it.
43565 hardcode_automatic=$hardcode_automatic
43566
43567 # Set to yes if linker adds runtime paths of dependent libraries
43568 # to runtime path list.
43569 inherit_rpath=$inherit_rpath
43570
43571 # Whether libtool must link a program against all its dependency libraries.
43572 link_all_deplibs=$link_all_deplibs
43573
43574 # Fix the shell variable \$srcfile for the compiler.
43575 fix_srcfile_path=$lt_fix_srcfile_path
43576
43577 # Set to "yes" if exported symbols are required.
43578 always_export_symbols=$always_export_symbols
43579
43580 # The commands to list exported symbols.
43581 export_symbols_cmds=$lt_export_symbols_cmds
43582
43583 # Symbols that should not be listed in the preloaded symbols.
43584 exclude_expsyms=$lt_exclude_expsyms
43585
43586 # Symbols that must always be exported.
43587 include_expsyms=$lt_include_expsyms
43588
43589 # Commands necessary for linking programs (against libraries) with templates.
43590 prelink_cmds=$lt_prelink_cmds
43591
43592 # Specify filename containing input files.
43593 file_list_spec=$lt_file_list_spec
43594
43595 # How to hardcode a shared library path into an executable.
43596 hardcode_action=$hardcode_action
43597
43598 # The directories searched by this compiler when creating a shared library.
43599 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43600
43601 # Dependencies to place before and after the objects being linked to
43602 # create a shared library.
43603 predep_objects=$lt_predep_objects
43604 postdep_objects=$lt_postdep_objects
43605 predeps=$lt_predeps
43606 postdeps=$lt_postdeps
43607
43608 # The library search path used internally by the compiler when linking
43609 # a shared library.
43610 compiler_lib_search_path=$lt_compiler_lib_search_path
43611
43612 # ### END LIBTOOL CONFIG
43613
43614 _LT_EOF
43615
43616   case $host_os in
43617   aix3*)
43618     cat <<\_LT_EOF >> "$cfgfile"
43619 # AIX sometimes has problems with the GCC collect2 program.  For some
43620 # reason, if we set the COLLECT_NAMES environment variable, the problems
43621 # vanish in a puff of smoke.
43622 if test "X${COLLECT_NAMES+set}" != Xset; then
43623   COLLECT_NAMES=
43624   export COLLECT_NAMES
43625 fi
43626 _LT_EOF
43627     ;;
43628   esac
43629
43630
43631 ltmain="$ac_aux_dir/ltmain.sh"
43632
43633
43634   # We use sed instead of cat because bash on DJGPP gets confused if
43635   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43636   # text mode, it properly converts lines to CR/LF.  This bash problem
43637   # is reportedly fixed, but why not run on old versions too?
43638   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43639     || (rm -f "$cfgfile"; exit 1)
43640
43641   case $xsi_shell in
43642   yes)
43643     cat << \_LT_EOF >> "$cfgfile"
43644
43645 # func_dirname file append nondir_replacement
43646 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43647 # otherwise set result to NONDIR_REPLACEMENT.
43648 func_dirname ()
43649 {
43650   case ${1} in
43651     */*) func_dirname_result="${1%/*}${2}" ;;
43652     *  ) func_dirname_result="${3}" ;;
43653   esac
43654 }
43655
43656 # func_basename file
43657 func_basename ()
43658 {
43659   func_basename_result="${1##*/}"
43660 }
43661
43662 # func_dirname_and_basename file append nondir_replacement
43663 # perform func_basename and func_dirname in a single function
43664 # call:
43665 #   dirname:  Compute the dirname of FILE.  If nonempty,
43666 #             add APPEND to the result, otherwise set result
43667 #             to NONDIR_REPLACEMENT.
43668 #             value returned in "$func_dirname_result"
43669 #   basename: Compute filename of FILE.
43670 #             value retuned in "$func_basename_result"
43671 # Implementation must be kept synchronized with func_dirname
43672 # and func_basename. For efficiency, we do not delegate to
43673 # those functions but instead duplicate the functionality here.
43674 func_dirname_and_basename ()
43675 {
43676   case ${1} in
43677     */*) func_dirname_result="${1%/*}${2}" ;;
43678     *  ) func_dirname_result="${3}" ;;
43679   esac
43680   func_basename_result="${1##*/}"
43681 }
43682
43683 # func_stripname prefix suffix name
43684 # strip PREFIX and SUFFIX off of NAME.
43685 # PREFIX and SUFFIX must not contain globbing or regex special
43686 # characters, hashes, percent signs, but SUFFIX may contain a leading
43687 # dot (in which case that matches only a dot).
43688 func_stripname ()
43689 {
43690   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43691   # positional parameters, so assign one to ordinary parameter first.
43692   func_stripname_result=${3}
43693   func_stripname_result=${func_stripname_result#"${1}"}
43694   func_stripname_result=${func_stripname_result%"${2}"}
43695 }
43696
43697 # func_opt_split
43698 func_opt_split ()
43699 {
43700   func_opt_split_opt=${1%%=*}
43701   func_opt_split_arg=${1#*=}
43702 }
43703
43704 # func_lo2o object
43705 func_lo2o ()
43706 {
43707   case ${1} in
43708     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43709     *)    func_lo2o_result=${1} ;;
43710   esac
43711 }
43712
43713 # func_xform libobj-or-source
43714 func_xform ()
43715 {
43716   func_xform_result=${1%.*}.lo
43717 }
43718
43719 # func_arith arithmetic-term...
43720 func_arith ()
43721 {
43722   func_arith_result=$(( $* ))
43723 }
43724
43725 # func_len string
43726 # STRING may not start with a hyphen.
43727 func_len ()
43728 {
43729   func_len_result=${#1}
43730 }
43731
43732 _LT_EOF
43733     ;;
43734   *) # Bourne compatible functions.
43735     cat << \_LT_EOF >> "$cfgfile"
43736
43737 # func_dirname file append nondir_replacement
43738 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43739 # otherwise set result to NONDIR_REPLACEMENT.
43740 func_dirname ()
43741 {
43742   # Extract subdirectory from the argument.
43743   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43744   if test "X$func_dirname_result" = "X${1}"; then
43745     func_dirname_result="${3}"
43746   else
43747     func_dirname_result="$func_dirname_result${2}"
43748   fi
43749 }
43750
43751 # func_basename file
43752 func_basename ()
43753 {
43754   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43755 }
43756
43757
43758 # func_stripname prefix suffix name
43759 # strip PREFIX and SUFFIX off of NAME.
43760 # PREFIX and SUFFIX must not contain globbing or regex special
43761 # characters, hashes, percent signs, but SUFFIX may contain a leading
43762 # dot (in which case that matches only a dot).
43763 # func_strip_suffix prefix name
43764 func_stripname ()
43765 {
43766   case ${2} in
43767     .*) func_stripname_result=`$ECHO "X${3}" \
43768            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43769     *)  func_stripname_result=`$ECHO "X${3}" \
43770            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43771   esac
43772 }
43773
43774 # sed scripts:
43775 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43776 my_sed_long_arg='1s/^-[^=]*=//'
43777
43778 # func_opt_split
43779 func_opt_split ()
43780 {
43781   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43782   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43783 }
43784
43785 # func_lo2o object
43786 func_lo2o ()
43787 {
43788   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43789 }
43790
43791 # func_xform libobj-or-source
43792 func_xform ()
43793 {
43794   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43795 }
43796
43797 # func_arith arithmetic-term...
43798 func_arith ()
43799 {
43800   func_arith_result=`expr "$@"`
43801 }
43802
43803 # func_len string
43804 # STRING may not start with a hyphen.
43805 func_len ()
43806 {
43807   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43808 }
43809
43810 _LT_EOF
43811 esac
43812
43813 case $lt_shell_append in
43814   yes)
43815     cat << \_LT_EOF >> "$cfgfile"
43816
43817 # func_append var value
43818 # Append VALUE to the end of shell variable VAR.
43819 func_append ()
43820 {
43821   eval "$1+=\$2"
43822 }
43823 _LT_EOF
43824     ;;
43825   *)
43826     cat << \_LT_EOF >> "$cfgfile"
43827
43828 # func_append var value
43829 # Append VALUE to the end of shell variable VAR.
43830 func_append ()
43831 {
43832   eval "$1=\$$1\$2"
43833 }
43834
43835 _LT_EOF
43836     ;;
43837   esac
43838
43839
43840   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43841     || (rm -f "$cfgfile"; exit 1)
43842
43843   mv -f "$cfgfile" "$ofile" ||
43844     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43845   chmod +x "$ofile"
43846
43847
43848     cat <<_LT_EOF >> "$ofile"
43849
43850 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43851
43852 # The linker used to build libraries.
43853 LD=$lt_LD_CXX
43854
43855 # Commands used to build an old-style archive.
43856 old_archive_cmds=$lt_old_archive_cmds_CXX
43857
43858 # A language specific compiler.
43859 CC=$lt_compiler_CXX
43860
43861 # Is the compiler the GNU compiler?
43862 with_gcc=$GCC_CXX
43863
43864 # Compiler flag to turn off builtin functions.
43865 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43866
43867 # How to pass a linker flag through the compiler.
43868 wl=$lt_lt_prog_compiler_wl_CXX
43869
43870 # Additional compiler flags for building library objects.
43871 pic_flag=$lt_lt_prog_compiler_pic_CXX
43872
43873 # Compiler flag to prevent dynamic linking.
43874 link_static_flag=$lt_lt_prog_compiler_static_CXX
43875
43876 # Does compiler simultaneously support -c and -o options?
43877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43878
43879 # Whether or not to add -lc for building shared libraries.
43880 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43881
43882 # Whether or not to disallow shared libs when runtime libs are static.
43883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43884
43885 # Compiler flag to allow reflexive dlopens.
43886 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43887
43888 # Compiler flag to generate shared objects directly from archives.
43889 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43890
43891 # Whether the compiler copes with passing no objects directly.
43892 compiler_needs_object=$lt_compiler_needs_object_CXX
43893
43894 # Create an old-style archive from a shared archive.
43895 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43896
43897 # Create a temporary old-style archive to link instead of a shared archive.
43898 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43899
43900 # Commands used to build a shared archive.
43901 archive_cmds=$lt_archive_cmds_CXX
43902 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43903
43904 # Commands used to build a loadable module if different from building
43905 # a shared archive.
43906 module_cmds=$lt_module_cmds_CXX
43907 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43908
43909 # Whether we are building with GNU ld or not.
43910 with_gnu_ld=$lt_with_gnu_ld_CXX
43911
43912 # Flag that allows shared libraries with undefined symbols to be built.
43913 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43914
43915 # Flag that enforces no undefined symbols.
43916 no_undefined_flag=$lt_no_undefined_flag_CXX
43917
43918 # Flag to hardcode \$libdir into a binary during linking.
43919 # This must work even if \$libdir does not exist
43920 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43921
43922 # If ld is used when linking, flag to hardcode \$libdir into a binary
43923 # during linking.  This must work even if \$libdir does not exist.
43924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43925
43926 # Whether we need a single "-rpath" flag with a separated argument.
43927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43928
43929 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43930 # DIR into the resulting binary.
43931 hardcode_direct=$hardcode_direct_CXX
43932
43933 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43934 # DIR into the resulting binary and the resulting library dependency is
43935 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43936 # library is relocated.
43937 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43938
43939 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43940 # into the resulting binary.
43941 hardcode_minus_L=$hardcode_minus_L_CXX
43942
43943 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43944 # into the resulting binary.
43945 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43946
43947 # Set to "yes" if building a shared library automatically hardcodes DIR
43948 # into the library and all subsequent libraries and executables linked
43949 # against it.
43950 hardcode_automatic=$hardcode_automatic_CXX
43951
43952 # Set to yes if linker adds runtime paths of dependent libraries
43953 # to runtime path list.
43954 inherit_rpath=$inherit_rpath_CXX
43955
43956 # Whether libtool must link a program against all its dependency libraries.
43957 link_all_deplibs=$link_all_deplibs_CXX
43958
43959 # Fix the shell variable \$srcfile for the compiler.
43960 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43961
43962 # Set to "yes" if exported symbols are required.
43963 always_export_symbols=$always_export_symbols_CXX
43964
43965 # The commands to list exported symbols.
43966 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43967
43968 # Symbols that should not be listed in the preloaded symbols.
43969 exclude_expsyms=$lt_exclude_expsyms_CXX
43970
43971 # Symbols that must always be exported.
43972 include_expsyms=$lt_include_expsyms_CXX
43973
43974 # Commands necessary for linking programs (against libraries) with templates.
43975 prelink_cmds=$lt_prelink_cmds_CXX
43976
43977 # Specify filename containing input files.
43978 file_list_spec=$lt_file_list_spec_CXX
43979
43980 # How to hardcode a shared library path into an executable.
43981 hardcode_action=$hardcode_action_CXX
43982
43983 # The directories searched by this compiler when creating a shared library.
43984 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43985
43986 # Dependencies to place before and after the objects being linked to
43987 # create a shared library.
43988 predep_objects=$lt_predep_objects_CXX
43989 postdep_objects=$lt_postdep_objects_CXX
43990 predeps=$lt_predeps_CXX
43991 postdeps=$lt_postdeps_CXX
43992
43993 # The library search path used internally by the compiler when linking
43994 # a shared library.
43995 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43996
43997 # ### END LIBTOOL TAG CONFIG: CXX
43998 _LT_EOF
43999
44000  ;;
44001     "default-1":C)
44002     for ac_file in $CONFIG_FILES; do
44003       # Support "outfile[:infile[:infile...]]"
44004       case "$ac_file" in
44005         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44006       esac
44007       # PO directories have a Makefile.in generated from Makefile.in.in.
44008       case "$ac_file" in */Makefile.in)
44009         # Adjust a relative srcdir.
44010         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44011         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44012         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44013         # In autoconf-2.13 it is called $ac_given_srcdir.
44014         # In autoconf-2.50 it is called $srcdir.
44015         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44016         case "$ac_given_srcdir" in
44017           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44018           /*) top_srcdir="$ac_given_srcdir" ;;
44019           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
44020         esac
44021         # Treat a directory as a PO directory if and only if it has a
44022         # POTFILES.in file. This allows packages to have multiple PO
44023         # directories under different names or in different locations.
44024         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44025           rm -f "$ac_dir/POTFILES"
44026           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44027           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44028           POMAKEFILEDEPS="POTFILES.in"
44029           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44030           # on $ac_dir but don't depend on user-specified configuration
44031           # parameters.
44032           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44033             # The LINGUAS file contains the set of available languages.
44034             if test -n "$OBSOLETE_ALL_LINGUAS"; then
44035               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44036             fi
44037             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44038             # Hide the ALL_LINGUAS assigment from automake.
44039             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44040             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44041           else
44042             # The set of available languages was given in configure.in.
44043             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44044           fi
44045           # Compute POFILES
44046           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44047           # Compute UPDATEPOFILES
44048           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44049           # Compute DUMMYPOFILES
44050           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44051           # Compute GMOFILES
44052           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44053           case "$ac_given_srcdir" in
44054             .) srcdirpre= ;;
44055             *) srcdirpre='$(srcdir)/' ;;
44056           esac
44057           POFILES=
44058           UPDATEPOFILES=
44059           DUMMYPOFILES=
44060           GMOFILES=
44061           for lang in $ALL_LINGUAS; do
44062             POFILES="$POFILES $srcdirpre$lang.po"
44063             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44064             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44065             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44066           done
44067           # CATALOGS depends on both $ac_dir and the user's LINGUAS
44068           # environment variable.
44069           INST_LINGUAS=
44070           if test -n "$ALL_LINGUAS"; then
44071             for presentlang in $ALL_LINGUAS; do
44072               useit=no
44073               if test "%UNSET%" != "$LINGUAS"; then
44074                 desiredlanguages="$LINGUAS"
44075               else
44076                 desiredlanguages="$ALL_LINGUAS"
44077               fi
44078               for desiredlang in $desiredlanguages; do
44079                 # Use the presentlang catalog if desiredlang is
44080                 #   a. equal to presentlang, or
44081                 #   b. a variant of presentlang (because in this case,
44082                 #      presentlang can be used as a fallback for messages
44083                 #      which are not translated in the desiredlang catalog).
44084                 case "$desiredlang" in
44085                   "$presentlang"*) useit=yes;;
44086                 esac
44087               done
44088               if test $useit = yes; then
44089                 INST_LINGUAS="$INST_LINGUAS $presentlang"
44090               fi
44091             done
44092           fi
44093           CATALOGS=
44094           if test -n "$INST_LINGUAS"; then
44095             for lang in $INST_LINGUAS; do
44096               CATALOGS="$CATALOGS $lang.gmo"
44097             done
44098           fi
44099           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44100           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"
44101           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44102             if test -f "$f"; then
44103               case "$f" in
44104                 *.orig | *.bak | *~) ;;
44105                 *) cat "$f" >> "$ac_dir/Makefile" ;;
44106               esac
44107             fi
44108           done
44109         fi
44110         ;;
44111       esac
44112     done ;;
44113     "default":C)
44114  ;;
44115
44116   esac
44117 done # for ac_tag
44118
44119
44120 { (exit 0); exit 0; }
44121 _ACEOF
44122 chmod +x $CONFIG_STATUS
44123 ac_clean_files=$ac_clean_files_save
44124
44125
44126 # configure is writing to config.log, and then calls config.status.
44127 # config.status does its own redirection, appending to config.log.
44128 # Unfortunately, on DOS this fails, as config.log is still kept open
44129 # by configure, so config.status won't be able to write to it; its
44130 # output is simply discarded.  So we exec the FD to /dev/null,
44131 # effectively closing config.log, so it can be properly (re)opened and
44132 # appended to by config.status.  When coming back to configure, we
44133 # need to make the FD available again.
44134 if test "$no_create" != yes; then
44135   ac_cs_success=:
44136   ac_config_status_args=
44137   test "$silent" = yes &&
44138     ac_config_status_args="$ac_config_status_args --quiet"
44139   exec 5>/dev/null
44140   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44141   exec 5>>config.log
44142   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44143   # would make configure fail if this is the last instruction.
44144   $ac_cs_success || { (exit 1); exit 1; }
44145 fi
44146
44147
44148 if test "${support_bat}" = "yes" ; then
44149    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44150       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44151       exit 1
44152    fi
44153
44154    QMAKEBIN="qmake"
44155
44156    if test "x$QMAKEQT4" != "xnone"; then
44157        QMAKEBIN=qmake-qt4
44158    fi
44159
44160    cd src/qt-console
44161    chmod 755 install_conf_file build-depkgs-qt-console
44162    echo "Creating bat Makefile"
44163    $QMAKEBIN
44164    make clean
44165    cd ${BUILD_DIR}
44166 fi
44167
44168 if test X"$GCC" = "Xyes" ; then
44169   echo "Doing make of dependencies"
44170   ${MAKE:-make} depend
44171 fi
44172
44173 cd scripts
44174 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44175 chmod 755 dvd-handler dvd-simulator
44176 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44177 cd ..
44178
44179 c=updatedb
44180 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
44181 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
44182
44183 c=src/cats
44184
44185 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
44186 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
44187
44188 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
44189 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
44190
44191 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
44192 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
44193
44194 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
44195 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
44196
44197 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
44198 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
44199
44200 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
44201 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
44202
44203 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44204 chmod 755 $c/sqlite
44205 chmod 755 $c/mysql
44206
44207 chmod 755 src/win32/build-depkgs-mingw32
44208
44209 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44210    largefile_support="yes"
44211 fi
44212
44213 if test X"$GCC" = "Xyes" ; then
44214                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44215    if test "x${CCVERSION}" = "x" ; then
44216       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44217    fi
44218    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44219    if test x"${CXXVERSION}" = x ; then
44220       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44221    fi
44222 fi
44223
44224 # clean up any old junk
44225 echo " "
44226 echo "Cleaning up"
44227 echo " "
44228 make clean
44229
44230 if test "x${db_type}" = "xInternal" ; then
44231    echo " "
44232    echo " "
44233    echo "You have not specified either --enable-client-only or one of the"
44234    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44235    echo "  This is not permitted. Please reconfigure."
44236    echo " "
44237    echo "Aborting the configuration ..."
44238    echo " "
44239    echo " "
44240    exit 1
44241 fi
44242
44243 echo "
44244 Configuration on `date`:
44245
44246    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44247    Bacula version:          ${BACULA} ${VERSION} (${DATE})
44248    Source code location:    ${srcdir}
44249    Install binaries:        ${sbindir}
44250    Install libraries:       ${libdir}
44251    Install config files:    ${sysconfdir}
44252    Scripts directory:       ${scriptdir}
44253    Archive directory:       ${archivedir}
44254    Working directory:       ${working_dir}
44255    PID directory:           ${piddir}
44256    Subsys directory:        ${subsysdir}
44257    Man directory:           ${mandir}
44258    Data directory:          ${datarootdir}
44259    C Compiler:              ${CC} ${CCVERSION}
44260    C++ Compiler:            ${CXX} ${CXXVERSION}
44261    Compiler flags:          ${WCFLAGS} ${CFLAGS}
44262    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
44263    Libraries:               ${LIBS}
44264    Statically Linked Tools: ${support_static_tools}
44265    Statically Linked FD:    ${support_static_fd}
44266    Statically Linked SD:    ${support_static_sd}
44267    Statically Linked DIR:   ${support_static_dir}
44268    Statically Linked CONS:  ${support_static_cons}
44269    Database type:           ${db_type}
44270    Database port:           ${db_port}
44271    Database lib:            ${DB_LIBS}
44272    Database name:           ${db_name}
44273    Database user:           ${db_user}
44274
44275    Job Output Email:        ${job_email}
44276    Traceback Email:         ${dump_email}
44277    SMTP Host Address:       ${smtp_host}
44278
44279    Director Port:           ${dir_port}
44280    File daemon Port:        ${fd_port}
44281    Storage daemon Port:     ${sd_port}
44282
44283    Director User:           ${dir_user}
44284    Director Group:          ${dir_group}
44285    Storage Daemon User:     ${sd_user}
44286    Storage DaemonGroup:     ${sd_group}
44287    File Daemon User:        ${fd_user}
44288    File Daemon Group:       ${fd_group}
44289
44290    SQL binaries Directory   ${SQL_BINDIR}
44291
44292    Large file support:      $largefile_support
44293    Bacula conio support:    ${got_conio} ${CONS_LIBS}
44294    readline support:        ${got_readline} ${PRTREADLINE_SRC}
44295    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
44296    TLS support:             ${support_tls}
44297    Encryption support:      ${support_crypto}
44298    ZLIB support:            ${have_zlib}
44299    enable-smartalloc:       ${support_smartalloc}
44300    bat support:             ${support_bat} ${QWT_LDFLAGS}
44301    enable-gnome:            ${support_gnome} ${gnome_version}
44302    enable-bwx-console:      ${support_wx_console} ${wx_version}
44303    enable-tray-monitor:     ${support_tray_monitor}
44304    client-only:             ${build_client_only}
44305    build-dird:              ${build_dird}
44306    build-stored:            ${build_stored}
44307    ACL support:             ${have_acl}
44308    Python support:          ${support_python} ${PYTHON_LIBS}
44309    Batch insert enabled:    ${support_batch_insert}
44310
44311   " > config.out
44312
44313 cat config.out