]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Commit updated configure
[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/lib/mysql/libmysqlclient_r.a \
27975                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27976                            MYSQL_LIBDIR=/usr/lib/mysql
27977                    else
27978                            MYSQL_LIBDIR=/usr/lib
27979                    fi
27980                    MYSQL_BINDIR=/usr/bin
27981            elif test -f /usr/include/mysql.h; then
27982                    MYSQL_INCDIR=/usr/include
27983                    if test -f /usr/lib64/libmysqlclient_r.a \
27984                         -o -f /usr/lib64/libmysqlclient_r.so; then
27985                            MYSQL_LIBDIR=/usr/lib64
27986                    else
27987                            MYSQL_LIBDIR=/usr/lib
27988                    fi
27989                    MYSQL_BINDIR=/usr/bin
27990            elif test -f /usr/local/include/mysql/mysql.h; then
27991                    MYSQL_INCDIR=/usr/local/include/mysql
27992                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27993                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27994                            MYSQL_LIBDIR=/usr/local/lib64/mysql
27995                    else
27996                            MYSQL_LIBDIR=/usr/local/lib/mysql
27997                    fi
27998                    MYSQL_BINDIR=/usr/local/bin
27999            elif test -f /usr/local/include/mysql.h; then
28000                    MYSQL_INCDIR=/usr/local/include
28001                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28002                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28003                            MYSQL_LIBDIR=/usr/local/lib64
28004                    else
28005                            MYSQL_LIBDIR=/usr/local/lib
28006                    fi
28007                    MYSQL_BINDIR=/usr/local/bin
28008            else
28009               { echo "$as_me:$LINENO: result: no" >&5
28010 echo "${ECHO_T}no" >&6; }
28011               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28012 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28013    { (exit 1); exit 1; }; }
28014            fi
28015         else
28016            if test -f $withval/include/mysql/mysql.h; then
28017               MYSQL_INCDIR=$withval/include/mysql
28018               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28019                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28020                  MYSQL_LIBDIR=$withval/lib64/mysql
28021               else
28022                  MYSQL_LIBDIR=$withval/lib/mysql
28023                  # Solaris ...
28024                  if test -f $withval/lib/libmysqlclient_r.so; then
28025                     MYSQL_LIBDIR=$withval/lib
28026                  fi
28027               fi
28028               MYSQL_BINDIR=$withval/bin
28029            elif test -f $withval/include/mysql.h; then
28030               MYSQL_INCDIR=$withval/include
28031               if test -f $withval/lib64/libmysqlclient_r.a \
28032                    -o -f $withval/lib64/libmysqlclient_r.so; then
28033                  MYSQL_LIBDIR=$withval/lib64
28034               else
28035                  MYSQL_LIBDIR=$withval/lib
28036               fi
28037               MYSQL_BINDIR=$withval/bin
28038            else
28039               { echo "$as_me:$LINENO: result: no" >&5
28040 echo "${ECHO_T}no" >&6; }
28041               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28042 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28043    { (exit 1); exit 1; }; }
28044            fi
28045         fi
28046     SQL_INCLUDE=-I$MYSQL_INCDIR
28047     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28048          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28049        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28050        cat >>confdefs.h <<\_ACEOF
28051 #define HAVE_THREAD_SAFE_MYSQL 1
28052 _ACEOF
28053
28054     fi
28055     SQL_BINDIR=$MYSQL_BINDIR
28056     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28057
28058     cat >>confdefs.h <<\_ACEOF
28059 #define HAVE_MYSQL 1
28060 _ACEOF
28061
28062     { echo "$as_me:$LINENO: result: yes" >&5
28063 echo "${ECHO_T}yes" >&6; }
28064     db_found=yes
28065     support_mysql=yes
28066     db_type=MySQL
28067     DB_TYPE=mysql
28068
28069   else
28070         { echo "$as_me:$LINENO: result: no" >&5
28071 echo "${ECHO_T}no" >&6; }
28072   fi
28073
28074
28075 fi
28076
28077
28078
28079 # Check whether --with-embedded-mysql was given.
28080 if test "${with_embedded_mysql+set}" = set; then
28081   withval=$with_embedded_mysql;
28082   if test "$withval" != "no"; then
28083         if test "$withval" = "yes"; then
28084                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28085                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28086                         if test -d /usr/local/mysql/lib64/mysql; then
28087                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28088                         else
28089                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28090                         fi
28091                         MYSQL_BINDIR=/usr/local/mysql/bin
28092                 elif test -f /usr/include/mysql/mysql.h; then
28093                         MYSQL_INCDIR=/usr/include/mysql
28094                         if test -d /usr/lib64/mysql; then
28095                                 MYSQL_LIBDIR=/usr/lib64/mysql
28096                         else
28097                                 MYSQL_LIBDIR=/usr/lib/mysql
28098                         fi
28099                         MYSQL_BINDIR=/usr/bin
28100                 elif test -f /usr/include/mysql.h; then
28101                         MYSQL_INCDIR=/usr/include
28102                         if test -d /usr/lib64; then
28103                                 MYSQL_LIBDIR=/usr/lib64
28104                         else
28105                                 MYSQL_LIBDIR=/usr/lib
28106                         fi
28107                         MYSQL_BINDIR=/usr/bin
28108                 elif test -f /usr/local/include/mysql/mysql.h; then
28109                         MYSQL_INCDIR=/usr/local/include/mysql
28110                         if test -d /usr/local/lib64/mysql; then
28111                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28112                         else
28113                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28114                         fi
28115                         MYSQL_BINDIR=/usr/local/bin
28116                 elif test -f /usr/local/include/mysql.h; then
28117                         MYSQL_INCDIR=/usr/local/include
28118                         if test -d /usr/local/lib64; then
28119                                 MYSQL_LIBDIR=/usr/local/lib64
28120                         else
28121                                 MYSQL_LIBDIR=/usr/local/lib
28122                         fi
28123                         MYSQL_BINDIR=/usr/local/bin
28124                 else
28125                    { echo "$as_me:$LINENO: result: no" >&5
28126 echo "${ECHO_T}no" >&6; }
28127                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28128 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28129    { (exit 1); exit 1; }; }
28130                 fi
28131         else
28132                 if test -f $withval/include/mysql/mysql.h; then
28133                         MYSQL_INCDIR=$withval/include/mysql
28134                         if test -d $withval/lib64/mysql; then
28135                                 MYSQL_LIBDIR=$withval/lib64/mysql
28136                         else
28137                                 MYSQL_LIBDIR=$withval/lib/mysql
28138                         fi
28139                         MYSQL_BINDIR=$withval/bin
28140                 elif test -f $withval/include/mysql.h; then
28141                         MYSQL_INCDIR=$withval/include
28142                         if test -d $withval/lib64; then
28143                                 MYSQL_LIBDIR=$withval/lib64
28144                         else
28145                                 MYSQL_LIBDIR=$withval/lib
28146                         fi
28147                         MYSQL_BINDIR=$withval/bin
28148                 else
28149                    { echo "$as_me:$LINENO: result: no" >&5
28150 echo "${ECHO_T}no" >&6; }
28151                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28152 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28153    { (exit 1); exit 1; }; }
28154                 fi
28155         fi
28156     SQL_INCLUDE=-I$MYSQL_INCDIR
28157     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28158     SQL_BINDIR=$MYSQL_BINDIR
28159     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28160
28161     cat >>confdefs.h <<\_ACEOF
28162 #define HAVE_MYSQL 1
28163 _ACEOF
28164
28165     cat >>confdefs.h <<\_ACEOF
28166 #define HAVE_EMBEDDED_MYSQL 1
28167 _ACEOF
28168
28169     { echo "$as_me:$LINENO: result: yes" >&5
28170 echo "${ECHO_T}yes" >&6; }
28171     db_found=yes
28172     support_mysql=yes
28173     db_type=MySQL
28174     DB_TYPE=mysql
28175
28176   else
28177         { echo "$as_me:$LINENO: result: no" >&5
28178 echo "${ECHO_T}no" >&6; }
28179   fi
28180
28181
28182 fi
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193 db_found=no
28194 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28195 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28196
28197 # Check whether --with-sqlite3 was given.
28198 if test "${with_sqlite3+set}" = set; then
28199   withval=$with_sqlite3;
28200   if test "$withval" != "no"; then
28201      if test "$withval" = "yes"; then
28202         if test -f /usr/local/include/sqlite3.h; then
28203            SQLITE_INCDIR=/usr/local/include
28204            if test -d /usr/local/lib64; then
28205               SQLITE_LIBDIR=/usr/local/lib64
28206            else
28207               SQLITE_LIBDIR=/usr/local/lib
28208            fi
28209            SQLITE_BINDIR=/usr/local/bin
28210         elif test -f /usr/include/sqlite3.h; then
28211            SQLITE_INCDIR=/usr/include
28212            if test -d /usr/lib64; then
28213               SQLITE_LIBDIR=/usr/lib64
28214            else
28215               SQLITE_LIBDIR=/usr/lib
28216            fi
28217            SQLITE_BINDIR=/usr/bin
28218         elif test -f $prefix/include/sqlite3.h; then
28219            SQLITE_INCDIR=$prefix/include
28220            if test -d $prefix/lib64; then
28221               SQLITE_LIBDIR=$prefix/lib64
28222            else
28223               SQLITE_LIBDIR=$prefix/lib
28224            fi
28225            SQLITE_BINDIR=$prefix/bin
28226         else
28227            { echo "$as_me:$LINENO: result: no" >&5
28228 echo "${ECHO_T}no" >&6; }
28229            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28230 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28231    { (exit 1); exit 1; }; }
28232         fi
28233      else
28234         if test -f $withval/sqlite3.h; then
28235            SQLITE_INCDIR=$withval
28236            SQLITE_LIBDIR=$withval
28237            SQLITE_BINDIR=$withval
28238         elif test -f $withval/include/sqlite3.h; then
28239            SQLITE_INCDIR=$withval/include
28240            if test -d $withval/lib64; then
28241               SQLITE_LIBDIR=$withval/lib64
28242            else
28243               SQLITE_LIBDIR=$withval/lib
28244            fi
28245            SQLITE_BINDIR=$withval/bin
28246         else
28247            { echo "$as_me:$LINENO: result: no" >&5
28248 echo "${ECHO_T}no" >&6; }
28249            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28250 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28251    { (exit 1); exit 1; }; }
28252         fi
28253      fi
28254      SQL_INCLUDE=-I$SQLITE_INCDIR
28255      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28256      SQL_BINDIR=$SQLITE_BINDIR
28257      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28258
28259      cat >>confdefs.h <<\_ACEOF
28260 #define HAVE_SQLITE3 1
28261 _ACEOF
28262
28263      { echo "$as_me:$LINENO: result: yes" >&5
28264 echo "${ECHO_T}yes" >&6; }
28265      db_found=yes
28266      support_sqlite3=yes
28267      db_type=SQLite3
28268      DB_TYPE=sqlite3
28269
28270   else
28271      { echo "$as_me:$LINENO: result: no" >&5
28272 echo "${ECHO_T}no" >&6; }
28273   fi
28274
28275 else
28276
28277   { echo "$as_me:$LINENO: result: no" >&5
28278 echo "${ECHO_T}no" >&6; }
28279
28280 fi
28281
28282
28283
28284
28285
28286
28287
28288
28289 db_found=no
28290 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28291 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28292
28293 # Check whether --with-sqlite was given.
28294 if test "${with_sqlite+set}" = set; then
28295   withval=$with_sqlite;
28296   if test "$withval" != "no"; then
28297      if test "$withval" = "yes"; then
28298         if test -f /usr/local/include/sqlite.h; then
28299            SQLITE_INCDIR=/usr/local/include
28300            if test -d /usr/local/lib64; then
28301               SQLITE_LIBDIR=/usr/local/lib64
28302            else
28303               SQLITE_LIBDIR=/usr/local/lib
28304            fi
28305            SQLITE_BINDIR=/usr/local/bin
28306         elif test -f /usr/include/sqlite.h; then
28307            SQLITE_INCDIR=/usr/include
28308            if test -d /usr/lib64; then
28309               SQLITE_LIBDIR=/usr/lib64
28310            else
28311               SQLITE_LIBDIR=/usr/lib
28312            fi
28313            SQLITE_BINDIR=/usr/bin
28314         elif test -f $prefix/include/sqlite.h; then
28315            SQLITE_INCDIR=$prefix/include
28316            if test -d $prefix/lib64; then
28317               SQLITE_LIBDIR=$prefix/lib64
28318            else
28319               SQLITE_LIBDIR=$prefix/lib
28320            fi
28321            SQLITE_BINDIR=$prefix/bin
28322         else
28323            { echo "$as_me:$LINENO: result: no" >&5
28324 echo "${ECHO_T}no" >&6; }
28325            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28326 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28327    { (exit 1); exit 1; }; }
28328         fi
28329      else
28330         if test -f $withval/sqlite.h; then
28331            SQLITE_INCDIR=$withval
28332            SQLITE_LIBDIR=$withval
28333            SQLITE_BINDIR=$withval
28334         elif test -f $withval/include/sqlite.h; then
28335            SQLITE_INCDIR=$withval/include
28336            if test -d $withval/lib64; then
28337               SQLITE_LIBDIR=$withval/lib64
28338            else
28339               SQLITE_LIBDIR=$withval/lib
28340            fi
28341            SQLITE_BINDIR=$withval/bin
28342         else
28343            { echo "$as_me:$LINENO: result: no" >&5
28344 echo "${ECHO_T}no" >&6; }
28345            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28346 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28347    { (exit 1); exit 1; }; }
28348         fi
28349      fi
28350      SQL_INCLUDE=-I$SQLITE_INCDIR
28351      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28352      SQL_BINDIR=$SQLITE_BINDIR
28353      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28354
28355      cat >>confdefs.h <<\_ACEOF
28356 #define HAVE_SQLITE 1
28357 _ACEOF
28358
28359      { echo "$as_me:$LINENO: result: yes" >&5
28360 echo "${ECHO_T}yes" >&6; }
28361      db_found=yes
28362      support_sqlite=yes
28363      db_type=SQLite
28364      DB_TYPE=sqlite
28365
28366   else
28367      { echo "$as_me:$LINENO: result: no" >&5
28368 echo "${ECHO_T}no" >&6; }
28369   fi
28370
28371 else
28372
28373   { echo "$as_me:$LINENO: result: no" >&5
28374 echo "${ECHO_T}no" >&6; }
28375
28376 fi
28377
28378
28379
28380
28381
28382
28383
28384
28385 db_found=no
28386 { echo "$as_me:$LINENO: checking for DBI support" >&5
28387 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28388
28389 # Check whether --with-dbi was given.
28390 if test "${with_dbi+set}" = set; then
28391   withval=$with_dbi;
28392   if test "$withval" != "no"; then
28393      if test "$withval" = "yes"; then
28394         if test -f /usr/local/include/dbi/dbi.h; then
28395            DBI_INCDIR=/usr/local/dbi/include
28396            if test -d /usr/local/lib64; then
28397               DBI_LIBDIR=/usr/local/lib64
28398            else
28399               DBI_LIBDIR=/usr/local/lib
28400            fi
28401            DBI_BINDIR=/usr/local/bin
28402         elif test -f /usr/include/dbi/dbi.h; then
28403            DBI_INCDIR=/usr/include
28404            if test -d /usr/lib64; then
28405               DBI_LIBDIR=/usr/lib64
28406            else
28407               DBI_LIBDIR=/usr/lib
28408            fi
28409            DBI_BINDIR=/usr/bin
28410         elif test -f $prefix/include/dbi/dbi.h; then
28411            DBI_INCDIR=$prefix/include
28412            if test -d $prefix/lib64; then
28413               DBI_LIBDIR=$prefix/lib64
28414            else
28415               DBI_LIBDIR=$prefix/lib
28416            fi
28417            DBI_BINDIR=$prefix/bin
28418         else
28419            { echo "$as_me:$LINENO: result: no" >&5
28420 echo "${ECHO_T}no" >&6; }
28421            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28422 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28423    { (exit 1); exit 1; }; }
28424         fi
28425         if test -d /usr/local/lib/dbd; then
28426            DRIVERDIR=/usr/local/lib/dbd
28427            if test -d /usr/local/lib64/dbd; then
28428               DRIVERDIR=/usr/local/lib64/dbd
28429            else
28430               DRIVERDIR=/usr/local/lib/dbd
28431            fi
28432         elif test -d /usr/lib/dbd; then
28433            DRIVERDIR=/usr/lib/dbd
28434            if test -d /usr/lib64/dbd; then
28435               DRIVERDIR=/usr/lib64/dbd
28436            else
28437               DRIVERDIR=/usr/lib/dbd
28438            fi
28439         elif test -d $prefix/lib/dbd; then
28440            if test -d $prefix/lib64/dbd; then
28441               DRIVERDIR=$prefix/lib64/dbd
28442            else
28443               DRIVERDIR=$prefix/lib/dbd
28444            fi
28445         else
28446            { echo "$as_me:$LINENO: result: no" >&5
28447 echo "${ECHO_T}no" >&6; }
28448            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28449 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28450    { (exit 1); exit 1; }; }
28451         fi
28452      else
28453         if test -f $withval/dbi.h; then
28454            DBI_INCDIR=$withval
28455            DBI_LIBDIR=$withval
28456            DBI_BINDIR=$withval
28457         elif test -f $withval/include/dbi/dbi.h; then
28458            DBI_INCDIR=$withval/include
28459            if test -d $withval/lib64; then
28460               DBI_LIBDIR=$withval/lib64
28461            else
28462               DBI_LIBDIR=$withval/lib
28463            fi
28464            DBI_BINDIR=$withval/bin
28465         else
28466            { echo "$as_me:$LINENO: result: no" >&5
28467 echo "${ECHO_T}no" >&6; }
28468            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28469 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28470    { (exit 1); exit 1; }; }
28471         fi
28472         if test -d $withval/dbd; then
28473            DRIVERDIR=$withval/dbd
28474         elif test -d $withval/lib/; then
28475            if test -d $withval/lib64/dbd; then
28476               DRIVERDIR=$withval/lib64/dbd
28477            else
28478               DRIVERDIR=$withval/lib/dbd
28479            fi
28480         else
28481            { echo "$as_me:$LINENO: result: no" >&5
28482 echo "${ECHO_T}no" >&6; }
28483            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28484 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28485    { (exit 1); exit 1; }; }
28486         fi
28487      fi
28488      SQL_INCLUDE=-I$DBI_INCDIR
28489      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28490      SQL_BINDIR=$DBI_BINDIR
28491      SQL_LIB=$DBI_LIBDIR/libdbi.a
28492      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28493
28494
28495 cat >>confdefs.h <<\_ACEOF
28496 #define HAVE_DBI 1
28497 _ACEOF
28498
28499      { echo "$as_me:$LINENO: result: yes" >&5
28500 echo "${ECHO_T}yes" >&6; }
28501      db_found=yes
28502      support_dbi=yes
28503      db_type=DBI
28504      DB_TYPE=dbi
28505      uncomment_dbi=" "
28506
28507   else
28508      { echo "$as_me:$LINENO: result: no" >&5
28509 echo "${ECHO_T}no" >&6; }
28510   fi
28511
28512 else
28513
28514   { echo "$as_me:$LINENO: result: no" >&5
28515 echo "${ECHO_T}no" >&6; }
28516
28517 fi
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527
28528 db_found=no
28529 db_prog=no
28530 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28531 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28532
28533 # Check whether --with-dbi-driver was given.
28534 if test "${with_dbi_driver+set}" = set; then
28535   withval=$with_dbi_driver;
28536   if test "$withval" != "no"; then
28537      case $withval in
28538         "mysql")
28539            db_prog="mysql"
28540            if test -f /usr/local/mysql/bin/mysql; then
28541               SQL_BINDIR=/usr/local/mysql/bin
28542               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28543                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28544                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28545               else
28546                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28547               fi
28548            elif test -f /usr/bin/mysql; then
28549               SQL_BINDIR=/usr/bin
28550               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28551                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28552                   SQL_LIBDIR=/usr/lib64/mysql
28553               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28554                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28555                   SQL_LIBDIR=/usr/lib/mysql
28556               else
28557                   SQL_LIBDIR=/usr/lib
28558               fi
28559            elif test -f /usr/local/bin/mysql; then
28560               SQL_BINDIR=/usr/local/bin
28561               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28562                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28563                   SQL_LIBDIR=/usr/local/lib64/mysql
28564               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28565                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28566                   SQL_LIBDIR=/usr/local/lib/mysql
28567               else
28568                   SQL_LIBDIR=/usr/local/lib
28569               fi
28570            elif test -f $withval/bin/mysql; then
28571               SQL_BINDIR=$withval/bin
28572               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28573                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28574                   SQL_LIBDIR=$withval/lib64/mysql
28575               elif test -f $withval/lib64/libmysqlclient_r.a \
28576                   -o -f $withval/lib64/libmysqlclient_r.so; then
28577                   SQL_LIBDIR=$withval/lib64
28578               elif test -f $withval/lib/libmysqlclient_r.a \
28579                   -o -f $withval/lib/libmysqlclient_r.so; then
28580                   SQL_LIBDIR=$withval/lib/
28581               else
28582                   SQL_LIBDIR=$withval/lib/mysql
28583               fi
28584            else
28585               { echo "$as_me:$LINENO: result: no" >&5
28586 echo "${ECHO_T}no" >&6; }
28587               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28588 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28589    { (exit 1); exit 1; }; }
28590            fi
28591            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28592         ;;
28593         "postgresql")
28594            db_prog="postgresql"
28595            PG_CONFIG=`which pg_config`
28596            if test -n "$PG_CONFIG"; then
28597               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28598               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28599            elif test -f /usr/local/bin/psql; then
28600               SQL_BINDIR=/usr/local/bin
28601               if test -d /usr/local/lib64; then
28602                  SQL_LIBDIR=/usr/local/lib64
28603               else
28604                  SQL_LIBDIR=/usr/local/lib
28605               fi
28606            elif test -f /usr/bin/psql; then
28607               SQL_BINDIR=/usr/local/bin
28608               if test -d /usr/lib64/postgresql; then
28609                  SQL_LIBDIR=/usr/lib64/postgresql
28610               elif test -d /usr/lib/postgresql; then
28611                  SQL_LIBDIR=/usr/lib/postgresql
28612               elif test -d /usr/lib64; then
28613                  SQL_LIBDIR=/usr/lib64
28614               else
28615                  SQL_LIBDIR=/usr/lib
28616               fi
28617            elif test -f $withval/bin/psql; then
28618               SQL_BINDIR=$withval/bin
28619               if test -d $withval/lib64; then
28620                  SQL_LIBDIR=$withval/lib64
28621               else
28622                  SQL_LIBDIR=$withval/lib
28623               fi
28624            else
28625               { echo "$as_me:$LINENO: result: no" >&5
28626 echo "${ECHO_T}no" >&6; }
28627               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28628 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28629    { (exit 1); exit 1; }; }
28630            fi
28631            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28632         ;;
28633         "sqlite")
28634            db_prog="sqlite"
28635            if test -f /usr/local/bin/sqlite; then
28636               SQL_BINDIR=/usr/local/bin
28637               if test -d /usr/local/lib64; then
28638                  SQL_LIBDIR=/usr/local/lib64
28639               else
28640                  SQL_LIBDIR=/usr/local/lib
28641               fi
28642            elif test -f /usr/bin/sqlite; then
28643               SQL_BINDIR=/usr/bin
28644               if test -d /usr/lib64; then
28645                  SQL_LIBDIR=/usr/lib64
28646               else
28647                  SQL_LIBDIR=/usr/lib
28648               fi
28649            elif test -f $withval/bin/sqlite; then
28650               SQL_BINDIR=$withval/bin
28651               if test -d $withval/lib64; then
28652                  SQL_LIBDIR=$withval/lib64
28653               else
28654                  SQL_LIBDIR=$withval/lib
28655               fi
28656            else
28657               { echo "$as_me:$LINENO: result: no" >&5
28658 echo "${ECHO_T}no" >&6; }
28659               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28660 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28661    { (exit 1); exit 1; }; }
28662            fi
28663            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28664         ;;
28665         "sqlite3")
28666            db_prog="sqlite3"
28667            if test -f /usr/local/bin/sqlite3; then
28668               SQL_BINDIR=/usr/local/bin
28669               if test -d /usr/local/lib64; then
28670                  SQL_LIBDIR=/usr/local/lib64
28671               else
28672                  SQL_LIBDIR=/usr/local/lib
28673               fi
28674            elif test -f /usr/bin/sqlite3; then
28675               SQL_BINDIR=/usr/bin
28676               if test -d /usr/lib64; then
28677                  SQL_LIBDIR=/usr/lib64
28678               else
28679                  SQL_LIBDIR=/usr/lib
28680               fi
28681            elif test -f $withval/bin/sqlite3; then
28682               SQL_BINDIR=$withval/bin
28683               if test -d $withval/lib64; then
28684                  SQL_LIBDIR=$withval/lib64
28685               else
28686                  SQL_LIBDIR=$withval/lib
28687               fi
28688            else
28689               { echo "$as_me:$LINENO: result: no" >&5
28690 echo "${ECHO_T}no" >&6; }
28691               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28692 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28693    { (exit 1); exit 1; }; }
28694            fi
28695            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28696         ;;
28697         *)
28698            { echo "$as_me:$LINENO: result: no" >&5
28699 echo "${ECHO_T}no" >&6; }
28700            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28701 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28702    { (exit 1); exit 1; }; }
28703         ;;
28704      esac
28705
28706      { echo "$as_me:$LINENO: result: yes" >&5
28707 echo "${ECHO_T}yes" >&6; }
28708      DB_PROG=$db_prog
28709   else
28710      { echo "$as_me:$LINENO: result: no" >&5
28711 echo "${ECHO_T}no" >&6; }
28712   fi
28713
28714 else
28715
28716   { echo "$as_me:$LINENO: result: no" >&5
28717 echo "${ECHO_T}no" >&6; }
28718
28719 fi
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729
28730 support_batch_insert=no
28731 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28732 pkg=$?
28733 if test $pkg = 0; then
28734    support_batch_insert=yes
28735    # Check whether --enable-batch-insert was given.
28736 if test "${enable_batch_insert+set}" = set; then
28737   enableval=$enable_batch_insert;
28738           if test x$enableval = xno; then
28739              support_batch_insert=no
28740           else
28741              support_batch_insert=yes
28742           fi
28743
28744
28745 fi
28746
28747 fi
28748
28749 if test x$DB_TYPE = xpostgresql; then
28750    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28751    pkg=$?
28752    if test $pkg != 0; then
28753       support_batch_insert=no
28754    fi
28755 fi
28756
28757 if test x$DB_TYPE = xdbi; then
28758    DB_TYPE=$DB_PROG
28759    db_type=$DB_PROG
28760    pkg=1
28761       if test $DB_PROG = postgresql; then
28762       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28763       pkg=$?
28764    fi
28765
28766    if test $DB_PROG = mysql; then
28767       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28768       pkg=$?
28769    fi
28770
28771    if test $DB_PROG = sqlite3; then
28772       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28773       pkg=$?
28774    fi
28775
28776    if test $pkg = 0; then
28777       # Check whether --enable-batch-insert was given.
28778 if test "${enable_batch_insert+set}" = set; then
28779   enableval=$enable_batch_insert;
28780              if test x$enableval = xno; then
28781                 support_batch_insert=no
28782              else
28783                 support_batch_insert=yes
28784              fi
28785
28786
28787 fi
28788
28789    fi
28790 else
28791       uncomment_dbi="#"
28792 fi
28793
28794
28795
28796 if test $support_batch_insert = yes ; then
28797
28798 cat >>confdefs.h <<\_ACEOF
28799 #define HAVE_BATCH_FILE_INSERT 1
28800 _ACEOF
28801
28802 fi
28803
28804 cat >>confdefs.h <<\_ACEOF
28805 #define PROTOTYPES 1
28806 _ACEOF
28807
28808
28809 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28810    if test -z "$CCOPTS"; then
28811       CCOPTS='-g -O2 -Wall'
28812    fi
28813    CFLAGS="$CCOPTS"
28814 fi
28815
28816
28817
28818 largefile_support="no"
28819
28820    # Check whether --enable-largefile was given.
28821 if test "${enable_largefile+set}" = set; then
28822   enableval=$enable_largefile;
28823 fi
28824
28825    if test "$enable_largefile" != no; then
28826      if test -n "$ac_tool_prefix"; then
28827   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28828 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28831 if test "${ac_cv_prog_GETCONF+set}" = set; then
28832   echo $ECHO_N "(cached) $ECHO_C" >&6
28833 else
28834   if test -n "$GETCONF"; then
28835   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28836 else
28837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28838 for as_dir in $PATH
28839 do
28840   IFS=$as_save_IFS
28841   test -z "$as_dir" && as_dir=.
28842   for ac_exec_ext in '' $ac_executable_extensions; do
28843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28844     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28846     break 2
28847   fi
28848 done
28849 done
28850 IFS=$as_save_IFS
28851
28852 fi
28853 fi
28854 GETCONF=$ac_cv_prog_GETCONF
28855 if test -n "$GETCONF"; then
28856   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28857 echo "${ECHO_T}$GETCONF" >&6; }
28858 else
28859   { echo "$as_me:$LINENO: result: no" >&5
28860 echo "${ECHO_T}no" >&6; }
28861 fi
28862
28863
28864 fi
28865 if test -z "$ac_cv_prog_GETCONF"; then
28866   ac_ct_GETCONF=$GETCONF
28867   # Extract the first word of "getconf", so it can be a program name with args.
28868 set dummy getconf; ac_word=$2
28869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28871 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28872   echo $ECHO_N "(cached) $ECHO_C" >&6
28873 else
28874   if test -n "$ac_ct_GETCONF"; then
28875   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28876 else
28877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28878 for as_dir in $PATH
28879 do
28880   IFS=$as_save_IFS
28881   test -z "$as_dir" && as_dir=.
28882   for ac_exec_ext in '' $ac_executable_extensions; do
28883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28884     ac_cv_prog_ac_ct_GETCONF="getconf"
28885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28886     break 2
28887   fi
28888 done
28889 done
28890 IFS=$as_save_IFS
28891
28892 fi
28893 fi
28894 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28895 if test -n "$ac_ct_GETCONF"; then
28896   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28897 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28898 else
28899   { echo "$as_me:$LINENO: result: no" >&5
28900 echo "${ECHO_T}no" >&6; }
28901 fi
28902
28903   if test "x$ac_ct_GETCONF" = x; then
28904     GETCONF=""
28905   else
28906     case $cross_compiling:$ac_tool_warned in
28907 yes:)
28908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28909 whose name does not start with the host triplet.  If you think this
28910 configuration is useful to you, please write to autoconf@gnu.org." >&5
28911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28912 whose name does not start with the host triplet.  If you think this
28913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28914 ac_tool_warned=yes ;;
28915 esac
28916     GETCONF=$ac_ct_GETCONF
28917   fi
28918 else
28919   GETCONF="$ac_cv_prog_GETCONF"
28920 fi
28921
28922      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28923 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28924 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28925   echo $ECHO_N "(cached) $ECHO_C" >&6
28926 else
28927   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28928         ac_cv_sys_largefile_CFLAGS=no
28929         case "$host_os" in
28930            # IRIX 6.2 and later require cc -n32.
28931            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28932              if test "$GCC" != yes; then
28933                ac_cv_sys_largefile_CFLAGS=-n32
28934              fi
28935              ac_save_CC="$CC"
28936              CC="$CC $ac_cv_sys_largefile_CFLAGS"
28937              cat >conftest.$ac_ext <<_ACEOF
28938 /* confdefs.h.  */
28939 _ACEOF
28940 cat confdefs.h >>conftest.$ac_ext
28941 cat >>conftest.$ac_ext <<_ACEOF
28942 /* end confdefs.h.  */
28943
28944 int
28945 main ()
28946 {
28947
28948   ;
28949   return 0;
28950 }
28951 _ACEOF
28952 rm -f conftest.$ac_objext conftest$ac_exeext
28953 if { (ac_try="$ac_link"
28954 case "(($ac_try" in
28955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956   *) ac_try_echo=$ac_try;;
28957 esac
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959   (eval "$ac_link") 2>conftest.er1
28960   ac_status=$?
28961   grep -v '^ *+' conftest.er1 >conftest.err
28962   rm -f conftest.er1
28963   cat conftest.err >&5
28964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965   (exit $ac_status); } && {
28966          test -z "$ac_c_werror_flag" ||
28967          test ! -s conftest.err
28968        } && test -s conftest$ac_exeext &&
28969        $as_test_x conftest$ac_exeext; then
28970   :
28971 else
28972   echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28974
28975         ac_cv_sys_largefile_CFLAGS=no
28976 fi
28977
28978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28979       conftest$ac_exeext conftest.$ac_ext
28980              CC="$ac_save_CC"
28981            esac
28982       }
28983 fi
28984 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28985 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28986      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28987 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28988 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28989   echo $ECHO_N "(cached) $ECHO_C" >&6
28990 else
28991   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28992         ac_cv_sys_largefile_LDFLAGS=no
28993
28994       }
28995 fi
28996 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28997 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28998      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28999 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29000 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29001   echo $ECHO_N "(cached) $ECHO_C" >&6
29002 else
29003   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29004         ac_cv_sys_largefile_LIBS=no
29005
29006       }
29007 fi
29008 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29009 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29010
29011      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29012        case "$ac_flag" in
29013        no) ;;
29014        -D_FILE_OFFSET_BITS=*) ;;
29015        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29016        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29017        -D?* | -I?*)
29018          case "$ac_flag" in
29019    no) ;;
29020    ?*)
29021      case "$CPPFLAGS" in
29022      '') CPPFLAGS="$ac_flag" ;;
29023      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29024      esac ;;
29025    esac ;;
29026        *)
29027          case "$ac_flag" in
29028    no) ;;
29029    ?*)
29030      case "$CFLAGS" in
29031      '') CFLAGS="$ac_flag" ;;
29032      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29033      esac ;;
29034    esac ;;
29035        esac
29036      done
29037      case "$ac_cv_sys_largefile_LDFLAGS" in
29038    no) ;;
29039    ?*)
29040      case "$LDFLAGS" in
29041      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29042      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29043      esac ;;
29044    esac
29045      case "$ac_cv_sys_largefile_LIBS" in
29046    no) ;;
29047    ?*)
29048      case "$LIBS" in
29049      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29050      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29051      esac ;;
29052    esac
29053      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29054 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29055 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29056   echo $ECHO_N "(cached) $ECHO_C" >&6
29057 else
29058   ac_cv_sys_file_offset_bits=no
29059       ac_cv_sys_file_offset_bits=64
29060       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29061         case "$ac_flag" in
29062         -D_FILE_OFFSET_BITS)
29063           ac_cv_sys_file_offset_bits=1 ;;
29064         -D_FILE_OFFSET_BITS=*)
29065           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29066         esac
29067       done
29068
29069 fi
29070 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29071 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29072    if test "$ac_cv_sys_file_offset_bits" != no; then
29073
29074 cat >>confdefs.h <<_ACEOF
29075 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29076 _ACEOF
29077
29078    fi
29079      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29080 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29081 if test "${ac_cv_sys_largefile_source+set}" = set; then
29082   echo $ECHO_N "(cached) $ECHO_C" >&6
29083 else
29084   ac_cv_sys_largefile_source=no
29085       ac_cv_sys_largefile_source=1
29086       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29087         case "$ac_flag" in
29088         -D_LARGEFILE_SOURCE)
29089           ac_cv_sys_largefile_source=1 ;;
29090         -D_LARGEFILE_SOURCE=*)
29091           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29092         esac
29093       done
29094
29095 fi
29096 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29097 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29098    if test "$ac_cv_sys_largefile_source" != no; then
29099
29100 cat >>confdefs.h <<_ACEOF
29101 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29102 _ACEOF
29103
29104    fi
29105      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29106 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29107 if test "${ac_cv_sys_large_files+set}" = set; then
29108   echo $ECHO_N "(cached) $ECHO_C" >&6
29109 else
29110   ac_cv_sys_large_files=no
29111       ac_cv_sys_large_files=1
29112       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29113         case "$ac_flag" in
29114         -D_LARGE_FILES)
29115           ac_cv_sys_large_files=1 ;;
29116         -D_LARGE_FILES=*)
29117           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29118         esac
29119       done
29120
29121 fi
29122 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29123 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29124    if test "$ac_cv_sys_large_files" != no; then
29125
29126 cat >>confdefs.h <<_ACEOF
29127 #define _LARGE_FILES $ac_cv_sys_large_files
29128 _ACEOF
29129
29130    fi
29131    fi
29132
29133
29134 { echo "$as_me:$LINENO: checking for X" >&5
29135 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29136
29137
29138 # Check whether --with-x was given.
29139 if test "${with_x+set}" = set; then
29140   withval=$with_x;
29141 fi
29142
29143 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29144 if test "x$with_x" = xno; then
29145   # The user explicitly disabled X.
29146   have_x=disabled
29147 else
29148   case $x_includes,$x_libraries in #(
29149     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29150 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29151    { (exit 1); exit 1; }; };; #(
29152     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29153   echo $ECHO_N "(cached) $ECHO_C" >&6
29154 else
29155   # One or both of the vars are not set, and there is no cached value.
29156 ac_x_includes=no ac_x_libraries=no
29157 rm -f -r conftest.dir
29158 if mkdir conftest.dir; then
29159   cd conftest.dir
29160   cat >Imakefile <<'_ACEOF'
29161 incroot:
29162         @echo incroot='${INCROOT}'
29163 usrlibdir:
29164         @echo usrlibdir='${USRLIBDIR}'
29165 libdir:
29166         @echo libdir='${LIBDIR}'
29167 _ACEOF
29168   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29169     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29170     for ac_var in incroot usrlibdir libdir; do
29171       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29172     done
29173     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29174     for ac_extension in a so sl; do
29175       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29176          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29177         ac_im_usrlibdir=$ac_im_libdir; break
29178       fi
29179     done
29180     # Screen out bogus values from the imake configuration.  They are
29181     # bogus both because they are the default anyway, and because
29182     # using them would break gcc on systems where it needs fixed includes.
29183     case $ac_im_incroot in
29184         /usr/include) ac_x_includes= ;;
29185         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29186     esac
29187     case $ac_im_usrlibdir in
29188         /usr/lib | /lib) ;;
29189         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29190     esac
29191   fi
29192   cd ..
29193   rm -f -r conftest.dir
29194 fi
29195
29196 # Standard set of common directories for X headers.
29197 # Check X11 before X11Rn because it is often a symlink to the current release.
29198 ac_x_header_dirs='
29199 /usr/X11/include
29200 /usr/X11R6/include
29201 /usr/X11R5/include
29202 /usr/X11R4/include
29203
29204 /usr/include/X11
29205 /usr/include/X11R6
29206 /usr/include/X11R5
29207 /usr/include/X11R4
29208
29209 /usr/local/X11/include
29210 /usr/local/X11R6/include
29211 /usr/local/X11R5/include
29212 /usr/local/X11R4/include
29213
29214 /usr/local/include/X11
29215 /usr/local/include/X11R6
29216 /usr/local/include/X11R5
29217 /usr/local/include/X11R4
29218
29219 /usr/X386/include
29220 /usr/x386/include
29221 /usr/XFree86/include/X11
29222
29223 /usr/include
29224 /usr/local/include
29225 /usr/unsupported/include
29226 /usr/athena/include
29227 /usr/local/x11r5/include
29228 /usr/lpp/Xamples/include
29229
29230 /usr/openwin/include
29231 /usr/openwin/share/include'
29232
29233 if test "$ac_x_includes" = no; then
29234   # Guess where to find include files, by looking for Xlib.h.
29235   # First, try using that file with no special directory specified.
29236   cat >conftest.$ac_ext <<_ACEOF
29237 /* confdefs.h.  */
29238 _ACEOF
29239 cat confdefs.h >>conftest.$ac_ext
29240 cat >>conftest.$ac_ext <<_ACEOF
29241 /* end confdefs.h.  */
29242 #include <X11/Xlib.h>
29243 _ACEOF
29244 if { (ac_try="$ac_cpp conftest.$ac_ext"
29245 case "(($ac_try" in
29246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29247   *) ac_try_echo=$ac_try;;
29248 esac
29249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29251   ac_status=$?
29252   grep -v '^ *+' conftest.er1 >conftest.err
29253   rm -f conftest.er1
29254   cat conftest.err >&5
29255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256   (exit $ac_status); } >/dev/null && {
29257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29258          test ! -s conftest.err
29259        }; then
29260   # We can compile using X headers with no special include directory.
29261 ac_x_includes=
29262 else
29263   echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.$ac_ext >&5
29265
29266   for ac_dir in $ac_x_header_dirs; do
29267   if test -r "$ac_dir/X11/Xlib.h"; then
29268     ac_x_includes=$ac_dir
29269     break
29270   fi
29271 done
29272 fi
29273
29274 rm -f conftest.err conftest.$ac_ext
29275 fi # $ac_x_includes = no
29276
29277 if test "$ac_x_libraries" = no; then
29278   # Check for the libraries.
29279   # See if we find them without any special options.
29280   # Don't add to $LIBS permanently.
29281   ac_save_LIBS=$LIBS
29282   LIBS="-lX11 $LIBS"
29283   cat >conftest.$ac_ext <<_ACEOF
29284 /* confdefs.h.  */
29285 _ACEOF
29286 cat confdefs.h >>conftest.$ac_ext
29287 cat >>conftest.$ac_ext <<_ACEOF
29288 /* end confdefs.h.  */
29289 #include <X11/Xlib.h>
29290 int
29291 main ()
29292 {
29293 XrmInitialize ()
29294   ;
29295   return 0;
29296 }
29297 _ACEOF
29298 rm -f conftest.$ac_objext conftest$ac_exeext
29299 if { (ac_try="$ac_link"
29300 case "(($ac_try" in
29301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302   *) ac_try_echo=$ac_try;;
29303 esac
29304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305   (eval "$ac_link") 2>conftest.er1
29306   ac_status=$?
29307   grep -v '^ *+' conftest.er1 >conftest.err
29308   rm -f conftest.er1
29309   cat conftest.err >&5
29310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311   (exit $ac_status); } && {
29312          test -z "$ac_c_werror_flag" ||
29313          test ! -s conftest.err
29314        } && test -s conftest$ac_exeext &&
29315        $as_test_x conftest$ac_exeext; then
29316   LIBS=$ac_save_LIBS
29317 # We can link X programs with no special library path.
29318 ac_x_libraries=
29319 else
29320   echo "$as_me: failed program was:" >&5
29321 sed 's/^/| /' conftest.$ac_ext >&5
29322
29323         LIBS=$ac_save_LIBS
29324 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29325 do
29326   # Don't even attempt the hair of trying to link an X program!
29327   for ac_extension in a so sl; do
29328     if test -r "$ac_dir/libX11.$ac_extension"; then
29329       ac_x_libraries=$ac_dir
29330       break 2
29331     fi
29332   done
29333 done
29334 fi
29335
29336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29337       conftest$ac_exeext conftest.$ac_ext
29338 fi # $ac_x_libraries = no
29339
29340 case $ac_x_includes,$ac_x_libraries in #(
29341   no,* | *,no | *\'*)
29342     # Didn't find X, or a directory has "'" in its name.
29343     ac_cv_have_x="have_x=no";; #(
29344   *)
29345     # Record where we found X for the cache.
29346     ac_cv_have_x="have_x=yes\
29347         ac_x_includes='$ac_x_includes'\
29348         ac_x_libraries='$ac_x_libraries'"
29349 esac
29350 fi
29351 ;; #(
29352     *) have_x=yes;;
29353   esac
29354   eval "$ac_cv_have_x"
29355 fi # $with_x != no
29356
29357 if test "$have_x" != yes; then
29358   { echo "$as_me:$LINENO: result: $have_x" >&5
29359 echo "${ECHO_T}$have_x" >&6; }
29360   no_x=yes
29361 else
29362   # If each of the values was on the command line, it overrides each guess.
29363   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29364   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29365   # Update the cache value to reflect the command line values.
29366   ac_cv_have_x="have_x=yes\
29367         ac_x_includes='$x_includes'\
29368         ac_x_libraries='$x_libraries'"
29369   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29370 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29371 fi
29372
29373 if test "$no_x" = yes; then
29374   # Not all programs may use this symbol, but it does not hurt to define it.
29375
29376 cat >>confdefs.h <<\_ACEOF
29377 #define X_DISPLAY_MISSING 1
29378 _ACEOF
29379
29380   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29381 else
29382   if test -n "$x_includes"; then
29383     X_CFLAGS="$X_CFLAGS -I$x_includes"
29384   fi
29385
29386   # It would also be nice to do this for all -L options, not just this one.
29387   if test -n "$x_libraries"; then
29388     X_LIBS="$X_LIBS -L$x_libraries"
29389     # For Solaris; some versions of Sun CC require a space after -R and
29390     # others require no space.  Words are not sufficient . . . .
29391     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29392 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29393     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29394     ac_xsave_c_werror_flag=$ac_c_werror_flag
29395     ac_c_werror_flag=yes
29396     cat >conftest.$ac_ext <<_ACEOF
29397 /* confdefs.h.  */
29398 _ACEOF
29399 cat confdefs.h >>conftest.$ac_ext
29400 cat >>conftest.$ac_ext <<_ACEOF
29401 /* end confdefs.h.  */
29402
29403 int
29404 main ()
29405 {
29406
29407   ;
29408   return 0;
29409 }
29410 _ACEOF
29411 rm -f conftest.$ac_objext conftest$ac_exeext
29412 if { (ac_try="$ac_link"
29413 case "(($ac_try" in
29414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415   *) ac_try_echo=$ac_try;;
29416 esac
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418   (eval "$ac_link") 2>conftest.er1
29419   ac_status=$?
29420   grep -v '^ *+' conftest.er1 >conftest.err
29421   rm -f conftest.er1
29422   cat conftest.err >&5
29423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424   (exit $ac_status); } && {
29425          test -z "$ac_c_werror_flag" ||
29426          test ! -s conftest.err
29427        } && test -s conftest$ac_exeext &&
29428        $as_test_x conftest$ac_exeext; then
29429   { echo "$as_me:$LINENO: result: no" >&5
29430 echo "${ECHO_T}no" >&6; }
29431        X_LIBS="$X_LIBS -R$x_libraries"
29432 else
29433   echo "$as_me: failed program was:" >&5
29434 sed 's/^/| /' conftest.$ac_ext >&5
29435
29436         LIBS="$ac_xsave_LIBS -R $x_libraries"
29437        cat >conftest.$ac_ext <<_ACEOF
29438 /* confdefs.h.  */
29439 _ACEOF
29440 cat confdefs.h >>conftest.$ac_ext
29441 cat >>conftest.$ac_ext <<_ACEOF
29442 /* end confdefs.h.  */
29443
29444 int
29445 main ()
29446 {
29447
29448   ;
29449   return 0;
29450 }
29451 _ACEOF
29452 rm -f conftest.$ac_objext conftest$ac_exeext
29453 if { (ac_try="$ac_link"
29454 case "(($ac_try" in
29455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29456   *) ac_try_echo=$ac_try;;
29457 esac
29458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459   (eval "$ac_link") 2>conftest.er1
29460   ac_status=$?
29461   grep -v '^ *+' conftest.er1 >conftest.err
29462   rm -f conftest.er1
29463   cat conftest.err >&5
29464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465   (exit $ac_status); } && {
29466          test -z "$ac_c_werror_flag" ||
29467          test ! -s conftest.err
29468        } && test -s conftest$ac_exeext &&
29469        $as_test_x conftest$ac_exeext; then
29470   { echo "$as_me:$LINENO: result: yes" >&5
29471 echo "${ECHO_T}yes" >&6; }
29472           X_LIBS="$X_LIBS -R $x_libraries"
29473 else
29474   echo "$as_me: failed program was:" >&5
29475 sed 's/^/| /' conftest.$ac_ext >&5
29476
29477         { echo "$as_me:$LINENO: result: neither works" >&5
29478 echo "${ECHO_T}neither works" >&6; }
29479 fi
29480
29481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29482       conftest$ac_exeext conftest.$ac_ext
29483 fi
29484
29485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29486       conftest$ac_exeext conftest.$ac_ext
29487     ac_c_werror_flag=$ac_xsave_c_werror_flag
29488     LIBS=$ac_xsave_LIBS
29489   fi
29490
29491   # Check for system-dependent libraries X programs must link with.
29492   # Do this before checking for the system-independent R6 libraries
29493   # (-lICE), since we may need -lsocket or whatever for X linking.
29494
29495   if test "$ISC" = yes; then
29496     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29497   else
29498     # Martyn Johnson says this is needed for Ultrix, if the X
29499     # libraries were built with DECnet support.  And Karl Berry says
29500     # the Alpha needs dnet_stub (dnet does not exist).
29501     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29502     cat >conftest.$ac_ext <<_ACEOF
29503 /* confdefs.h.  */
29504 _ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h.  */
29508
29509 /* Override any GCC internal prototype to avoid an error.
29510    Use char because int might match the return type of a GCC
29511    builtin and then its argument prototype would still apply.  */
29512 #ifdef __cplusplus
29513 extern "C"
29514 #endif
29515 char XOpenDisplay ();
29516 int
29517 main ()
29518 {
29519 return XOpenDisplay ();
29520   ;
29521   return 0;
29522 }
29523 _ACEOF
29524 rm -f conftest.$ac_objext conftest$ac_exeext
29525 if { (ac_try="$ac_link"
29526 case "(($ac_try" in
29527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528   *) ac_try_echo=$ac_try;;
29529 esac
29530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531   (eval "$ac_link") 2>conftest.er1
29532   ac_status=$?
29533   grep -v '^ *+' conftest.er1 >conftest.err
29534   rm -f conftest.er1
29535   cat conftest.err >&5
29536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); } && {
29538          test -z "$ac_c_werror_flag" ||
29539          test ! -s conftest.err
29540        } && test -s conftest$ac_exeext &&
29541        $as_test_x conftest$ac_exeext; then
29542   :
29543 else
29544   echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29546
29547         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29548 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29549 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29550   echo $ECHO_N "(cached) $ECHO_C" >&6
29551 else
29552   ac_check_lib_save_LIBS=$LIBS
29553 LIBS="-ldnet  $LIBS"
29554 cat >conftest.$ac_ext <<_ACEOF
29555 /* confdefs.h.  */
29556 _ACEOF
29557 cat confdefs.h >>conftest.$ac_ext
29558 cat >>conftest.$ac_ext <<_ACEOF
29559 /* end confdefs.h.  */
29560
29561 /* Override any GCC internal prototype to avoid an error.
29562    Use char because int might match the return type of a GCC
29563    builtin and then its argument prototype would still apply.  */
29564 #ifdef __cplusplus
29565 extern "C"
29566 #endif
29567 char dnet_ntoa ();
29568 int
29569 main ()
29570 {
29571 return dnet_ntoa ();
29572   ;
29573   return 0;
29574 }
29575 _ACEOF
29576 rm -f conftest.$ac_objext conftest$ac_exeext
29577 if { (ac_try="$ac_link"
29578 case "(($ac_try" in
29579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29580   *) ac_try_echo=$ac_try;;
29581 esac
29582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583   (eval "$ac_link") 2>conftest.er1
29584   ac_status=$?
29585   grep -v '^ *+' conftest.er1 >conftest.err
29586   rm -f conftest.er1
29587   cat conftest.err >&5
29588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589   (exit $ac_status); } && {
29590          test -z "$ac_c_werror_flag" ||
29591          test ! -s conftest.err
29592        } && test -s conftest$ac_exeext &&
29593        $as_test_x conftest$ac_exeext; then
29594   ac_cv_lib_dnet_dnet_ntoa=yes
29595 else
29596   echo "$as_me: failed program was:" >&5
29597 sed 's/^/| /' conftest.$ac_ext >&5
29598
29599         ac_cv_lib_dnet_dnet_ntoa=no
29600 fi
29601
29602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29603       conftest$ac_exeext conftest.$ac_ext
29604 LIBS=$ac_check_lib_save_LIBS
29605 fi
29606 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29607 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29608 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29609   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29610 fi
29611
29612     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29613       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29614 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29615 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29616   echo $ECHO_N "(cached) $ECHO_C" >&6
29617 else
29618   ac_check_lib_save_LIBS=$LIBS
29619 LIBS="-ldnet_stub  $LIBS"
29620 cat >conftest.$ac_ext <<_ACEOF
29621 /* confdefs.h.  */
29622 _ACEOF
29623 cat confdefs.h >>conftest.$ac_ext
29624 cat >>conftest.$ac_ext <<_ACEOF
29625 /* end confdefs.h.  */
29626
29627 /* Override any GCC internal prototype to avoid an error.
29628    Use char because int might match the return type of a GCC
29629    builtin and then its argument prototype would still apply.  */
29630 #ifdef __cplusplus
29631 extern "C"
29632 #endif
29633 char dnet_ntoa ();
29634 int
29635 main ()
29636 {
29637 return dnet_ntoa ();
29638   ;
29639   return 0;
29640 }
29641 _ACEOF
29642 rm -f conftest.$ac_objext conftest$ac_exeext
29643 if { (ac_try="$ac_link"
29644 case "(($ac_try" in
29645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29646   *) ac_try_echo=$ac_try;;
29647 esac
29648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29649   (eval "$ac_link") 2>conftest.er1
29650   ac_status=$?
29651   grep -v '^ *+' conftest.er1 >conftest.err
29652   rm -f conftest.er1
29653   cat conftest.err >&5
29654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655   (exit $ac_status); } && {
29656          test -z "$ac_c_werror_flag" ||
29657          test ! -s conftest.err
29658        } && test -s conftest$ac_exeext &&
29659        $as_test_x conftest$ac_exeext; then
29660   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29661 else
29662   echo "$as_me: failed program was:" >&5
29663 sed 's/^/| /' conftest.$ac_ext >&5
29664
29665         ac_cv_lib_dnet_stub_dnet_ntoa=no
29666 fi
29667
29668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29669       conftest$ac_exeext conftest.$ac_ext
29670 LIBS=$ac_check_lib_save_LIBS
29671 fi
29672 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29673 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29674 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29675   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29676 fi
29677
29678     fi
29679 fi
29680
29681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29682       conftest$ac_exeext conftest.$ac_ext
29683     LIBS="$ac_xsave_LIBS"
29684
29685     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29686     # to get the SysV transport functions.
29687     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29688     # needs -lnsl.
29689     # The nsl library prevents programs from opening the X display
29690     # on Irix 5.2, according to T.E. Dickey.
29691     # The functions gethostbyname, getservbyname, and inet_addr are
29692     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29693     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29694 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29695 if test "${ac_cv_func_gethostbyname+set}" = set; then
29696   echo $ECHO_N "(cached) $ECHO_C" >&6
29697 else
29698   cat >conftest.$ac_ext <<_ACEOF
29699 /* confdefs.h.  */
29700 _ACEOF
29701 cat confdefs.h >>conftest.$ac_ext
29702 cat >>conftest.$ac_ext <<_ACEOF
29703 /* end confdefs.h.  */
29704 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29706 #define gethostbyname innocuous_gethostbyname
29707
29708 /* System header to define __stub macros and hopefully few prototypes,
29709     which can conflict with char gethostbyname (); below.
29710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29711     <limits.h> exists even on freestanding compilers.  */
29712
29713 #ifdef __STDC__
29714 # include <limits.h>
29715 #else
29716 # include <assert.h>
29717 #endif
29718
29719 #undef gethostbyname
29720
29721 /* Override any GCC internal prototype to avoid an error.
29722    Use char because int might match the return type of a GCC
29723    builtin and then its argument prototype would still apply.  */
29724 #ifdef __cplusplus
29725 extern "C"
29726 #endif
29727 char gethostbyname ();
29728 /* The GNU C library defines this for functions which it implements
29729     to always fail with ENOSYS.  Some functions are actually named
29730     something starting with __ and the normal name is an alias.  */
29731 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29732 choke me
29733 #endif
29734
29735 int
29736 main ()
29737 {
29738 return gethostbyname ();
29739   ;
29740   return 0;
29741 }
29742 _ACEOF
29743 rm -f conftest.$ac_objext conftest$ac_exeext
29744 if { (ac_try="$ac_link"
29745 case "(($ac_try" in
29746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29747   *) ac_try_echo=$ac_try;;
29748 esac
29749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29750   (eval "$ac_link") 2>conftest.er1
29751   ac_status=$?
29752   grep -v '^ *+' conftest.er1 >conftest.err
29753   rm -f conftest.er1
29754   cat conftest.err >&5
29755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756   (exit $ac_status); } && {
29757          test -z "$ac_c_werror_flag" ||
29758          test ! -s conftest.err
29759        } && test -s conftest$ac_exeext &&
29760        $as_test_x conftest$ac_exeext; then
29761   ac_cv_func_gethostbyname=yes
29762 else
29763   echo "$as_me: failed program was:" >&5
29764 sed 's/^/| /' conftest.$ac_ext >&5
29765
29766         ac_cv_func_gethostbyname=no
29767 fi
29768
29769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29770       conftest$ac_exeext conftest.$ac_ext
29771 fi
29772 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29773 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29774
29775     if test $ac_cv_func_gethostbyname = no; then
29776       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29777 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29778 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29779   echo $ECHO_N "(cached) $ECHO_C" >&6
29780 else
29781   ac_check_lib_save_LIBS=$LIBS
29782 LIBS="-lnsl  $LIBS"
29783 cat >conftest.$ac_ext <<_ACEOF
29784 /* confdefs.h.  */
29785 _ACEOF
29786 cat confdefs.h >>conftest.$ac_ext
29787 cat >>conftest.$ac_ext <<_ACEOF
29788 /* end confdefs.h.  */
29789
29790 /* Override any GCC internal prototype to avoid an error.
29791    Use char because int might match the return type of a GCC
29792    builtin and then its argument prototype would still apply.  */
29793 #ifdef __cplusplus
29794 extern "C"
29795 #endif
29796 char gethostbyname ();
29797 int
29798 main ()
29799 {
29800 return gethostbyname ();
29801   ;
29802   return 0;
29803 }
29804 _ACEOF
29805 rm -f conftest.$ac_objext conftest$ac_exeext
29806 if { (ac_try="$ac_link"
29807 case "(($ac_try" in
29808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29809   *) ac_try_echo=$ac_try;;
29810 esac
29811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29812   (eval "$ac_link") 2>conftest.er1
29813   ac_status=$?
29814   grep -v '^ *+' conftest.er1 >conftest.err
29815   rm -f conftest.er1
29816   cat conftest.err >&5
29817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818   (exit $ac_status); } && {
29819          test -z "$ac_c_werror_flag" ||
29820          test ! -s conftest.err
29821        } && test -s conftest$ac_exeext &&
29822        $as_test_x conftest$ac_exeext; then
29823   ac_cv_lib_nsl_gethostbyname=yes
29824 else
29825   echo "$as_me: failed program was:" >&5
29826 sed 's/^/| /' conftest.$ac_ext >&5
29827
29828         ac_cv_lib_nsl_gethostbyname=no
29829 fi
29830
29831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29832       conftest$ac_exeext conftest.$ac_ext
29833 LIBS=$ac_check_lib_save_LIBS
29834 fi
29835 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29836 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29837 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29838   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29839 fi
29840
29841       if test $ac_cv_lib_nsl_gethostbyname = no; then
29842         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29843 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29844 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29845   echo $ECHO_N "(cached) $ECHO_C" >&6
29846 else
29847   ac_check_lib_save_LIBS=$LIBS
29848 LIBS="-lbsd  $LIBS"
29849 cat >conftest.$ac_ext <<_ACEOF
29850 /* confdefs.h.  */
29851 _ACEOF
29852 cat confdefs.h >>conftest.$ac_ext
29853 cat >>conftest.$ac_ext <<_ACEOF
29854 /* end confdefs.h.  */
29855
29856 /* Override any GCC internal prototype to avoid an error.
29857    Use char because int might match the return type of a GCC
29858    builtin and then its argument prototype would still apply.  */
29859 #ifdef __cplusplus
29860 extern "C"
29861 #endif
29862 char gethostbyname ();
29863 int
29864 main ()
29865 {
29866 return gethostbyname ();
29867   ;
29868   return 0;
29869 }
29870 _ACEOF
29871 rm -f conftest.$ac_objext conftest$ac_exeext
29872 if { (ac_try="$ac_link"
29873 case "(($ac_try" in
29874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29875   *) ac_try_echo=$ac_try;;
29876 esac
29877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29878   (eval "$ac_link") 2>conftest.er1
29879   ac_status=$?
29880   grep -v '^ *+' conftest.er1 >conftest.err
29881   rm -f conftest.er1
29882   cat conftest.err >&5
29883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884   (exit $ac_status); } && {
29885          test -z "$ac_c_werror_flag" ||
29886          test ! -s conftest.err
29887        } && test -s conftest$ac_exeext &&
29888        $as_test_x conftest$ac_exeext; then
29889   ac_cv_lib_bsd_gethostbyname=yes
29890 else
29891   echo "$as_me: failed program was:" >&5
29892 sed 's/^/| /' conftest.$ac_ext >&5
29893
29894         ac_cv_lib_bsd_gethostbyname=no
29895 fi
29896
29897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29898       conftest$ac_exeext conftest.$ac_ext
29899 LIBS=$ac_check_lib_save_LIBS
29900 fi
29901 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29902 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29903 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29904   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29905 fi
29906
29907       fi
29908     fi
29909
29910     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29911     # socket/setsockopt and other routines are undefined under SCO ODT
29912     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29913     # on later versions), says Simon Leinen: it contains gethostby*
29914     # variants that don't use the name server (or something).  -lsocket
29915     # must be given before -lnsl if both are needed.  We assume that
29916     # if connect needs -lnsl, so does gethostbyname.
29917     { echo "$as_me:$LINENO: checking for connect" >&5
29918 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29919 if test "${ac_cv_func_connect+set}" = set; then
29920   echo $ECHO_N "(cached) $ECHO_C" >&6
29921 else
29922   cat >conftest.$ac_ext <<_ACEOF
29923 /* confdefs.h.  */
29924 _ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h.  */
29928 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29930 #define connect innocuous_connect
29931
29932 /* System header to define __stub macros and hopefully few prototypes,
29933     which can conflict with char connect (); below.
29934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29935     <limits.h> exists even on freestanding compilers.  */
29936
29937 #ifdef __STDC__
29938 # include <limits.h>
29939 #else
29940 # include <assert.h>
29941 #endif
29942
29943 #undef connect
29944
29945 /* Override any GCC internal prototype to avoid an error.
29946    Use char because int might match the return type of a GCC
29947    builtin and then its argument prototype would still apply.  */
29948 #ifdef __cplusplus
29949 extern "C"
29950 #endif
29951 char connect ();
29952 /* The GNU C library defines this for functions which it implements
29953     to always fail with ENOSYS.  Some functions are actually named
29954     something starting with __ and the normal name is an alias.  */
29955 #if defined __stub_connect || defined __stub___connect
29956 choke me
29957 #endif
29958
29959 int
29960 main ()
29961 {
29962 return connect ();
29963   ;
29964   return 0;
29965 }
29966 _ACEOF
29967 rm -f conftest.$ac_objext conftest$ac_exeext
29968 if { (ac_try="$ac_link"
29969 case "(($ac_try" in
29970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29971   *) ac_try_echo=$ac_try;;
29972 esac
29973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29974   (eval "$ac_link") 2>conftest.er1
29975   ac_status=$?
29976   grep -v '^ *+' conftest.er1 >conftest.err
29977   rm -f conftest.er1
29978   cat conftest.err >&5
29979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980   (exit $ac_status); } && {
29981          test -z "$ac_c_werror_flag" ||
29982          test ! -s conftest.err
29983        } && test -s conftest$ac_exeext &&
29984        $as_test_x conftest$ac_exeext; then
29985   ac_cv_func_connect=yes
29986 else
29987   echo "$as_me: failed program was:" >&5
29988 sed 's/^/| /' conftest.$ac_ext >&5
29989
29990         ac_cv_func_connect=no
29991 fi
29992
29993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29994       conftest$ac_exeext conftest.$ac_ext
29995 fi
29996 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29997 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29998
29999     if test $ac_cv_func_connect = no; then
30000       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30001 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30002 if test "${ac_cv_lib_socket_connect+set}" = set; then
30003   echo $ECHO_N "(cached) $ECHO_C" >&6
30004 else
30005   ac_check_lib_save_LIBS=$LIBS
30006 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30007 cat >conftest.$ac_ext <<_ACEOF
30008 /* confdefs.h.  */
30009 _ACEOF
30010 cat confdefs.h >>conftest.$ac_ext
30011 cat >>conftest.$ac_ext <<_ACEOF
30012 /* end confdefs.h.  */
30013
30014 /* Override any GCC internal prototype to avoid an error.
30015    Use char because int might match the return type of a GCC
30016    builtin and then its argument prototype would still apply.  */
30017 #ifdef __cplusplus
30018 extern "C"
30019 #endif
30020 char connect ();
30021 int
30022 main ()
30023 {
30024 return connect ();
30025   ;
30026   return 0;
30027 }
30028 _ACEOF
30029 rm -f conftest.$ac_objext conftest$ac_exeext
30030 if { (ac_try="$ac_link"
30031 case "(($ac_try" in
30032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30033   *) ac_try_echo=$ac_try;;
30034 esac
30035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30036   (eval "$ac_link") 2>conftest.er1
30037   ac_status=$?
30038   grep -v '^ *+' conftest.er1 >conftest.err
30039   rm -f conftest.er1
30040   cat conftest.err >&5
30041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042   (exit $ac_status); } && {
30043          test -z "$ac_c_werror_flag" ||
30044          test ! -s conftest.err
30045        } && test -s conftest$ac_exeext &&
30046        $as_test_x conftest$ac_exeext; then
30047   ac_cv_lib_socket_connect=yes
30048 else
30049   echo "$as_me: failed program was:" >&5
30050 sed 's/^/| /' conftest.$ac_ext >&5
30051
30052         ac_cv_lib_socket_connect=no
30053 fi
30054
30055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30056       conftest$ac_exeext conftest.$ac_ext
30057 LIBS=$ac_check_lib_save_LIBS
30058 fi
30059 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30060 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30061 if test $ac_cv_lib_socket_connect = yes; then
30062   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30063 fi
30064
30065     fi
30066
30067     # Guillermo Gomez says -lposix is necessary on A/UX.
30068     { echo "$as_me:$LINENO: checking for remove" >&5
30069 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30070 if test "${ac_cv_func_remove+set}" = set; then
30071   echo $ECHO_N "(cached) $ECHO_C" >&6
30072 else
30073   cat >conftest.$ac_ext <<_ACEOF
30074 /* confdefs.h.  */
30075 _ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h.  */
30079 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30081 #define remove innocuous_remove
30082
30083 /* System header to define __stub macros and hopefully few prototypes,
30084     which can conflict with char remove (); below.
30085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30086     <limits.h> exists even on freestanding compilers.  */
30087
30088 #ifdef __STDC__
30089 # include <limits.h>
30090 #else
30091 # include <assert.h>
30092 #endif
30093
30094 #undef remove
30095
30096 /* Override any GCC internal prototype to avoid an error.
30097    Use char because int might match the return type of a GCC
30098    builtin and then its argument prototype would still apply.  */
30099 #ifdef __cplusplus
30100 extern "C"
30101 #endif
30102 char remove ();
30103 /* The GNU C library defines this for functions which it implements
30104     to always fail with ENOSYS.  Some functions are actually named
30105     something starting with __ and the normal name is an alias.  */
30106 #if defined __stub_remove || defined __stub___remove
30107 choke me
30108 #endif
30109
30110 int
30111 main ()
30112 {
30113 return remove ();
30114   ;
30115   return 0;
30116 }
30117 _ACEOF
30118 rm -f conftest.$ac_objext conftest$ac_exeext
30119 if { (ac_try="$ac_link"
30120 case "(($ac_try" in
30121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122   *) ac_try_echo=$ac_try;;
30123 esac
30124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30125   (eval "$ac_link") 2>conftest.er1
30126   ac_status=$?
30127   grep -v '^ *+' conftest.er1 >conftest.err
30128   rm -f conftest.er1
30129   cat conftest.err >&5
30130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131   (exit $ac_status); } && {
30132          test -z "$ac_c_werror_flag" ||
30133          test ! -s conftest.err
30134        } && test -s conftest$ac_exeext &&
30135        $as_test_x conftest$ac_exeext; then
30136   ac_cv_func_remove=yes
30137 else
30138   echo "$as_me: failed program was:" >&5
30139 sed 's/^/| /' conftest.$ac_ext >&5
30140
30141         ac_cv_func_remove=no
30142 fi
30143
30144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30145       conftest$ac_exeext conftest.$ac_ext
30146 fi
30147 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30148 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30149
30150     if test $ac_cv_func_remove = no; then
30151       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30152 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30153 if test "${ac_cv_lib_posix_remove+set}" = set; then
30154   echo $ECHO_N "(cached) $ECHO_C" >&6
30155 else
30156   ac_check_lib_save_LIBS=$LIBS
30157 LIBS="-lposix  $LIBS"
30158 cat >conftest.$ac_ext <<_ACEOF
30159 /* confdefs.h.  */
30160 _ACEOF
30161 cat confdefs.h >>conftest.$ac_ext
30162 cat >>conftest.$ac_ext <<_ACEOF
30163 /* end confdefs.h.  */
30164
30165 /* Override any GCC internal prototype to avoid an error.
30166    Use char because int might match the return type of a GCC
30167    builtin and then its argument prototype would still apply.  */
30168 #ifdef __cplusplus
30169 extern "C"
30170 #endif
30171 char remove ();
30172 int
30173 main ()
30174 {
30175 return remove ();
30176   ;
30177   return 0;
30178 }
30179 _ACEOF
30180 rm -f conftest.$ac_objext conftest$ac_exeext
30181 if { (ac_try="$ac_link"
30182 case "(($ac_try" in
30183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30184   *) ac_try_echo=$ac_try;;
30185 esac
30186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30187   (eval "$ac_link") 2>conftest.er1
30188   ac_status=$?
30189   grep -v '^ *+' conftest.er1 >conftest.err
30190   rm -f conftest.er1
30191   cat conftest.err >&5
30192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193   (exit $ac_status); } && {
30194          test -z "$ac_c_werror_flag" ||
30195          test ! -s conftest.err
30196        } && test -s conftest$ac_exeext &&
30197        $as_test_x conftest$ac_exeext; then
30198   ac_cv_lib_posix_remove=yes
30199 else
30200   echo "$as_me: failed program was:" >&5
30201 sed 's/^/| /' conftest.$ac_ext >&5
30202
30203         ac_cv_lib_posix_remove=no
30204 fi
30205
30206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30207       conftest$ac_exeext conftest.$ac_ext
30208 LIBS=$ac_check_lib_save_LIBS
30209 fi
30210 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30211 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30212 if test $ac_cv_lib_posix_remove = yes; then
30213   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30214 fi
30215
30216     fi
30217
30218     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30219     { echo "$as_me:$LINENO: checking for shmat" >&5
30220 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30221 if test "${ac_cv_func_shmat+set}" = set; then
30222   echo $ECHO_N "(cached) $ECHO_C" >&6
30223 else
30224   cat >conftest.$ac_ext <<_ACEOF
30225 /* confdefs.h.  */
30226 _ACEOF
30227 cat confdefs.h >>conftest.$ac_ext
30228 cat >>conftest.$ac_ext <<_ACEOF
30229 /* end confdefs.h.  */
30230 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30232 #define shmat innocuous_shmat
30233
30234 /* System header to define __stub macros and hopefully few prototypes,
30235     which can conflict with char shmat (); below.
30236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30237     <limits.h> exists even on freestanding compilers.  */
30238
30239 #ifdef __STDC__
30240 # include <limits.h>
30241 #else
30242 # include <assert.h>
30243 #endif
30244
30245 #undef shmat
30246
30247 /* Override any GCC internal prototype to avoid an error.
30248    Use char because int might match the return type of a GCC
30249    builtin and then its argument prototype would still apply.  */
30250 #ifdef __cplusplus
30251 extern "C"
30252 #endif
30253 char shmat ();
30254 /* The GNU C library defines this for functions which it implements
30255     to always fail with ENOSYS.  Some functions are actually named
30256     something starting with __ and the normal name is an alias.  */
30257 #if defined __stub_shmat || defined __stub___shmat
30258 choke me
30259 #endif
30260
30261 int
30262 main ()
30263 {
30264 return shmat ();
30265   ;
30266   return 0;
30267 }
30268 _ACEOF
30269 rm -f conftest.$ac_objext conftest$ac_exeext
30270 if { (ac_try="$ac_link"
30271 case "(($ac_try" in
30272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273   *) ac_try_echo=$ac_try;;
30274 esac
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276   (eval "$ac_link") 2>conftest.er1
30277   ac_status=$?
30278   grep -v '^ *+' conftest.er1 >conftest.err
30279   rm -f conftest.er1
30280   cat conftest.err >&5
30281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282   (exit $ac_status); } && {
30283          test -z "$ac_c_werror_flag" ||
30284          test ! -s conftest.err
30285        } && test -s conftest$ac_exeext &&
30286        $as_test_x conftest$ac_exeext; then
30287   ac_cv_func_shmat=yes
30288 else
30289   echo "$as_me: failed program was:" >&5
30290 sed 's/^/| /' conftest.$ac_ext >&5
30291
30292         ac_cv_func_shmat=no
30293 fi
30294
30295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30296       conftest$ac_exeext conftest.$ac_ext
30297 fi
30298 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30299 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30300
30301     if test $ac_cv_func_shmat = no; then
30302       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30303 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30304 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30305   echo $ECHO_N "(cached) $ECHO_C" >&6
30306 else
30307   ac_check_lib_save_LIBS=$LIBS
30308 LIBS="-lipc  $LIBS"
30309 cat >conftest.$ac_ext <<_ACEOF
30310 /* confdefs.h.  */
30311 _ACEOF
30312 cat confdefs.h >>conftest.$ac_ext
30313 cat >>conftest.$ac_ext <<_ACEOF
30314 /* end confdefs.h.  */
30315
30316 /* Override any GCC internal prototype to avoid an error.
30317    Use char because int might match the return type of a GCC
30318    builtin and then its argument prototype would still apply.  */
30319 #ifdef __cplusplus
30320 extern "C"
30321 #endif
30322 char shmat ();
30323 int
30324 main ()
30325 {
30326 return shmat ();
30327   ;
30328   return 0;
30329 }
30330 _ACEOF
30331 rm -f conftest.$ac_objext conftest$ac_exeext
30332 if { (ac_try="$ac_link"
30333 case "(($ac_try" in
30334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30335   *) ac_try_echo=$ac_try;;
30336 esac
30337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30338   (eval "$ac_link") 2>conftest.er1
30339   ac_status=$?
30340   grep -v '^ *+' conftest.er1 >conftest.err
30341   rm -f conftest.er1
30342   cat conftest.err >&5
30343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344   (exit $ac_status); } && {
30345          test -z "$ac_c_werror_flag" ||
30346          test ! -s conftest.err
30347        } && test -s conftest$ac_exeext &&
30348        $as_test_x conftest$ac_exeext; then
30349   ac_cv_lib_ipc_shmat=yes
30350 else
30351   echo "$as_me: failed program was:" >&5
30352 sed 's/^/| /' conftest.$ac_ext >&5
30353
30354         ac_cv_lib_ipc_shmat=no
30355 fi
30356
30357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30358       conftest$ac_exeext conftest.$ac_ext
30359 LIBS=$ac_check_lib_save_LIBS
30360 fi
30361 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30362 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30363 if test $ac_cv_lib_ipc_shmat = yes; then
30364   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30365 fi
30366
30367     fi
30368   fi
30369
30370   # Check for libraries that X11R6 Xt/Xaw programs need.
30371   ac_save_LDFLAGS=$LDFLAGS
30372   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30373   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30374   # check for ICE first), but we must link in the order -lSM -lICE or
30375   # we get undefined symbols.  So assume we have SM if we have ICE.
30376   # These have to be linked with before -lX11, unlike the other
30377   # libraries we check for below, so use a different variable.
30378   # John Interrante, Karl Berry
30379   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30380 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30381 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30382   echo $ECHO_N "(cached) $ECHO_C" >&6
30383 else
30384   ac_check_lib_save_LIBS=$LIBS
30385 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30386 cat >conftest.$ac_ext <<_ACEOF
30387 /* confdefs.h.  */
30388 _ACEOF
30389 cat confdefs.h >>conftest.$ac_ext
30390 cat >>conftest.$ac_ext <<_ACEOF
30391 /* end confdefs.h.  */
30392
30393 /* Override any GCC internal prototype to avoid an error.
30394    Use char because int might match the return type of a GCC
30395    builtin and then its argument prototype would still apply.  */
30396 #ifdef __cplusplus
30397 extern "C"
30398 #endif
30399 char IceConnectionNumber ();
30400 int
30401 main ()
30402 {
30403 return IceConnectionNumber ();
30404   ;
30405   return 0;
30406 }
30407 _ACEOF
30408 rm -f conftest.$ac_objext conftest$ac_exeext
30409 if { (ac_try="$ac_link"
30410 case "(($ac_try" in
30411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412   *) ac_try_echo=$ac_try;;
30413 esac
30414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415   (eval "$ac_link") 2>conftest.er1
30416   ac_status=$?
30417   grep -v '^ *+' conftest.er1 >conftest.err
30418   rm -f conftest.er1
30419   cat conftest.err >&5
30420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421   (exit $ac_status); } && {
30422          test -z "$ac_c_werror_flag" ||
30423          test ! -s conftest.err
30424        } && test -s conftest$ac_exeext &&
30425        $as_test_x conftest$ac_exeext; then
30426   ac_cv_lib_ICE_IceConnectionNumber=yes
30427 else
30428   echo "$as_me: failed program was:" >&5
30429 sed 's/^/| /' conftest.$ac_ext >&5
30430
30431         ac_cv_lib_ICE_IceConnectionNumber=no
30432 fi
30433
30434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30435       conftest$ac_exeext conftest.$ac_ext
30436 LIBS=$ac_check_lib_save_LIBS
30437 fi
30438 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30439 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30440 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30441   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30442 fi
30443
30444   LDFLAGS=$ac_save_LDFLAGS
30445
30446 fi
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479 for ac_header in \
30480    assert.h \
30481    fcntl.h \
30482    grp.h \
30483    pwd.h \
30484    libc.h \
30485    limits.h \
30486    stdarg.h \
30487    stdlib.h \
30488    stdint.h \
30489    string.h \
30490    strings.h \
30491    termios.h \
30492    termcap.h \
30493    term.h \
30494    unistd.h \
30495    sys/bitypes.h \
30496    sys/byteorder.h \
30497    sys/ioctl.h \
30498    sys/select.h \
30499    sys/socket.h \
30500    sys/sockio.h \
30501    sys/stat.h \
30502    sys/time.h \
30503    sys/types.h \
30504    arpa/nameser.h \
30505    resolv.h \
30506    mtio.h \
30507    sys/mtio.h \
30508    sys/tape.h \
30509    regex.h \
30510
30511 do
30512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30514   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30517   echo $ECHO_N "(cached) $ECHO_C" >&6
30518 fi
30519 ac_res=`eval echo '${'$as_ac_Header'}'`
30520                { echo "$as_me:$LINENO: result: $ac_res" >&5
30521 echo "${ECHO_T}$ac_res" >&6; }
30522 else
30523   # Is the header compilable?
30524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30526 cat >conftest.$ac_ext <<_ACEOF
30527 /* confdefs.h.  */
30528 _ACEOF
30529 cat confdefs.h >>conftest.$ac_ext
30530 cat >>conftest.$ac_ext <<_ACEOF
30531 /* end confdefs.h.  */
30532 $ac_includes_default
30533 #include <$ac_header>
30534 _ACEOF
30535 rm -f conftest.$ac_objext
30536 if { (ac_try="$ac_compile"
30537 case "(($ac_try" in
30538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539   *) ac_try_echo=$ac_try;;
30540 esac
30541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542   (eval "$ac_compile") 2>conftest.er1
30543   ac_status=$?
30544   grep -v '^ *+' conftest.er1 >conftest.err
30545   rm -f conftest.er1
30546   cat conftest.err >&5
30547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548   (exit $ac_status); } && {
30549          test -z "$ac_c_werror_flag" ||
30550          test ! -s conftest.err
30551        } && test -s conftest.$ac_objext; then
30552   ac_header_compiler=yes
30553 else
30554   echo "$as_me: failed program was:" >&5
30555 sed 's/^/| /' conftest.$ac_ext >&5
30556
30557         ac_header_compiler=no
30558 fi
30559
30560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30562 echo "${ECHO_T}$ac_header_compiler" >&6; }
30563
30564 # Is the header present?
30565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30567 cat >conftest.$ac_ext <<_ACEOF
30568 /* confdefs.h.  */
30569 _ACEOF
30570 cat confdefs.h >>conftest.$ac_ext
30571 cat >>conftest.$ac_ext <<_ACEOF
30572 /* end confdefs.h.  */
30573 #include <$ac_header>
30574 _ACEOF
30575 if { (ac_try="$ac_cpp conftest.$ac_ext"
30576 case "(($ac_try" in
30577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30578   *) ac_try_echo=$ac_try;;
30579 esac
30580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30582   ac_status=$?
30583   grep -v '^ *+' conftest.er1 >conftest.err
30584   rm -f conftest.er1
30585   cat conftest.err >&5
30586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587   (exit $ac_status); } >/dev/null && {
30588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30589          test ! -s conftest.err
30590        }; then
30591   ac_header_preproc=yes
30592 else
30593   echo "$as_me: failed program was:" >&5
30594 sed 's/^/| /' conftest.$ac_ext >&5
30595
30596   ac_header_preproc=no
30597 fi
30598
30599 rm -f conftest.err conftest.$ac_ext
30600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30601 echo "${ECHO_T}$ac_header_preproc" >&6; }
30602
30603 # So?  What about this header?
30604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30605   yes:no: )
30606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30610     ac_header_preproc=yes
30611     ;;
30612   no:yes:* )
30613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30615     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30616 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30617     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30619     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30620 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30623     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30625
30626     ;;
30627 esac
30628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30631   echo $ECHO_N "(cached) $ECHO_C" >&6
30632 else
30633   eval "$as_ac_Header=\$ac_header_preproc"
30634 fi
30635 ac_res=`eval echo '${'$as_ac_Header'}'`
30636                { echo "$as_me:$LINENO: result: $ac_res" >&5
30637 echo "${ECHO_T}$ac_res" >&6; }
30638
30639 fi
30640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30641   cat >>confdefs.h <<_ACEOF
30642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30643 _ACEOF
30644
30645 fi
30646
30647 done
30648
30649 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30650 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30651 if test "${ac_cv_header_stdc+set}" = set; then
30652   echo $ECHO_N "(cached) $ECHO_C" >&6
30653 else
30654   cat >conftest.$ac_ext <<_ACEOF
30655 /* confdefs.h.  */
30656 _ACEOF
30657 cat confdefs.h >>conftest.$ac_ext
30658 cat >>conftest.$ac_ext <<_ACEOF
30659 /* end confdefs.h.  */
30660 #include <stdlib.h>
30661 #include <stdarg.h>
30662 #include <string.h>
30663 #include <float.h>
30664
30665 int
30666 main ()
30667 {
30668
30669   ;
30670   return 0;
30671 }
30672 _ACEOF
30673 rm -f conftest.$ac_objext
30674 if { (ac_try="$ac_compile"
30675 case "(($ac_try" in
30676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30677   *) ac_try_echo=$ac_try;;
30678 esac
30679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30680   (eval "$ac_compile") 2>conftest.er1
30681   ac_status=$?
30682   grep -v '^ *+' conftest.er1 >conftest.err
30683   rm -f conftest.er1
30684   cat conftest.err >&5
30685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686   (exit $ac_status); } && {
30687          test -z "$ac_c_werror_flag" ||
30688          test ! -s conftest.err
30689        } && test -s conftest.$ac_objext; then
30690   ac_cv_header_stdc=yes
30691 else
30692   echo "$as_me: failed program was:" >&5
30693 sed 's/^/| /' conftest.$ac_ext >&5
30694
30695         ac_cv_header_stdc=no
30696 fi
30697
30698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30699
30700 if test $ac_cv_header_stdc = yes; then
30701   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30702   cat >conftest.$ac_ext <<_ACEOF
30703 /* confdefs.h.  */
30704 _ACEOF
30705 cat confdefs.h >>conftest.$ac_ext
30706 cat >>conftest.$ac_ext <<_ACEOF
30707 /* end confdefs.h.  */
30708 #include <string.h>
30709
30710 _ACEOF
30711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30712   $EGREP "memchr" >/dev/null 2>&1; then
30713   :
30714 else
30715   ac_cv_header_stdc=no
30716 fi
30717 rm -f conftest*
30718
30719 fi
30720
30721 if test $ac_cv_header_stdc = yes; then
30722   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30723   cat >conftest.$ac_ext <<_ACEOF
30724 /* confdefs.h.  */
30725 _ACEOF
30726 cat confdefs.h >>conftest.$ac_ext
30727 cat >>conftest.$ac_ext <<_ACEOF
30728 /* end confdefs.h.  */
30729 #include <stdlib.h>
30730
30731 _ACEOF
30732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30733   $EGREP "free" >/dev/null 2>&1; then
30734   :
30735 else
30736   ac_cv_header_stdc=no
30737 fi
30738 rm -f conftest*
30739
30740 fi
30741
30742 if test $ac_cv_header_stdc = yes; then
30743   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30744   if test "$cross_compiling" = yes; then
30745   :
30746 else
30747   cat >conftest.$ac_ext <<_ACEOF
30748 /* confdefs.h.  */
30749 _ACEOF
30750 cat confdefs.h >>conftest.$ac_ext
30751 cat >>conftest.$ac_ext <<_ACEOF
30752 /* end confdefs.h.  */
30753 #include <ctype.h>
30754 #include <stdlib.h>
30755 #if ((' ' & 0x0FF) == 0x020)
30756 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30757 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30758 #else
30759 # define ISLOWER(c) \
30760                    (('a' <= (c) && (c) <= 'i') \
30761                      || ('j' <= (c) && (c) <= 'r') \
30762                      || ('s' <= (c) && (c) <= 'z'))
30763 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30764 #endif
30765
30766 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30767 int
30768 main ()
30769 {
30770   int i;
30771   for (i = 0; i < 256; i++)
30772     if (XOR (islower (i), ISLOWER (i))
30773         || toupper (i) != TOUPPER (i))
30774       return 2;
30775   return 0;
30776 }
30777 _ACEOF
30778 rm -f conftest$ac_exeext
30779 if { (ac_try="$ac_link"
30780 case "(($ac_try" in
30781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30782   *) ac_try_echo=$ac_try;;
30783 esac
30784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30785   (eval "$ac_link") 2>&5
30786   ac_status=$?
30787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30789   { (case "(($ac_try" in
30790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30791   *) ac_try_echo=$ac_try;;
30792 esac
30793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30794   (eval "$ac_try") 2>&5
30795   ac_status=$?
30796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797   (exit $ac_status); }; }; then
30798   :
30799 else
30800   echo "$as_me: program exited with status $ac_status" >&5
30801 echo "$as_me: failed program was:" >&5
30802 sed 's/^/| /' conftest.$ac_ext >&5
30803
30804 ( exit $ac_status )
30805 ac_cv_header_stdc=no
30806 fi
30807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30808 fi
30809
30810
30811 fi
30812 fi
30813 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30814 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30815 if test $ac_cv_header_stdc = yes; then
30816
30817 cat >>confdefs.h <<\_ACEOF
30818 #define STDC_HEADERS 1
30819 _ACEOF
30820
30821 fi
30822
30823 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30824 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30825 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30826   echo $ECHO_N "(cached) $ECHO_C" >&6
30827 else
30828   cat >conftest.$ac_ext <<_ACEOF
30829 /* confdefs.h.  */
30830 _ACEOF
30831 cat confdefs.h >>conftest.$ac_ext
30832 cat >>conftest.$ac_ext <<_ACEOF
30833 /* end confdefs.h.  */
30834 #include <sys/types.h>
30835 int
30836 main ()
30837 {
30838 return makedev(0, 0);
30839   ;
30840   return 0;
30841 }
30842 _ACEOF
30843 rm -f conftest.$ac_objext conftest$ac_exeext
30844 if { (ac_try="$ac_link"
30845 case "(($ac_try" in
30846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30847   *) ac_try_echo=$ac_try;;
30848 esac
30849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30850   (eval "$ac_link") 2>conftest.er1
30851   ac_status=$?
30852   grep -v '^ *+' conftest.er1 >conftest.err
30853   rm -f conftest.er1
30854   cat conftest.err >&5
30855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856   (exit $ac_status); } && {
30857          test -z "$ac_c_werror_flag" ||
30858          test ! -s conftest.err
30859        } && test -s conftest$ac_exeext &&
30860        $as_test_x conftest$ac_exeext; then
30861   ac_cv_header_sys_types_h_makedev=yes
30862 else
30863   echo "$as_me: failed program was:" >&5
30864 sed 's/^/| /' conftest.$ac_ext >&5
30865
30866         ac_cv_header_sys_types_h_makedev=no
30867 fi
30868
30869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30870       conftest$ac_exeext conftest.$ac_ext
30871
30872 fi
30873 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30874 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30875
30876 if test $ac_cv_header_sys_types_h_makedev = no; then
30877 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30878   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30879 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30880 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30881   echo $ECHO_N "(cached) $ECHO_C" >&6
30882 fi
30883 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30884 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30885 else
30886   # Is the header compilable?
30887 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30888 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30889 cat >conftest.$ac_ext <<_ACEOF
30890 /* confdefs.h.  */
30891 _ACEOF
30892 cat confdefs.h >>conftest.$ac_ext
30893 cat >>conftest.$ac_ext <<_ACEOF
30894 /* end confdefs.h.  */
30895 $ac_includes_default
30896 #include <sys/mkdev.h>
30897 _ACEOF
30898 rm -f conftest.$ac_objext
30899 if { (ac_try="$ac_compile"
30900 case "(($ac_try" in
30901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30902   *) ac_try_echo=$ac_try;;
30903 esac
30904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30905   (eval "$ac_compile") 2>conftest.er1
30906   ac_status=$?
30907   grep -v '^ *+' conftest.er1 >conftest.err
30908   rm -f conftest.er1
30909   cat conftest.err >&5
30910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911   (exit $ac_status); } && {
30912          test -z "$ac_c_werror_flag" ||
30913          test ! -s conftest.err
30914        } && test -s conftest.$ac_objext; then
30915   ac_header_compiler=yes
30916 else
30917   echo "$as_me: failed program was:" >&5
30918 sed 's/^/| /' conftest.$ac_ext >&5
30919
30920         ac_header_compiler=no
30921 fi
30922
30923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30925 echo "${ECHO_T}$ac_header_compiler" >&6; }
30926
30927 # Is the header present?
30928 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30929 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30930 cat >conftest.$ac_ext <<_ACEOF
30931 /* confdefs.h.  */
30932 _ACEOF
30933 cat confdefs.h >>conftest.$ac_ext
30934 cat >>conftest.$ac_ext <<_ACEOF
30935 /* end confdefs.h.  */
30936 #include <sys/mkdev.h>
30937 _ACEOF
30938 if { (ac_try="$ac_cpp conftest.$ac_ext"
30939 case "(($ac_try" in
30940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30941   *) ac_try_echo=$ac_try;;
30942 esac
30943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30945   ac_status=$?
30946   grep -v '^ *+' conftest.er1 >conftest.err
30947   rm -f conftest.er1
30948   cat conftest.err >&5
30949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950   (exit $ac_status); } >/dev/null && {
30951          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30952          test ! -s conftest.err
30953        }; then
30954   ac_header_preproc=yes
30955 else
30956   echo "$as_me: failed program was:" >&5
30957 sed 's/^/| /' conftest.$ac_ext >&5
30958
30959   ac_header_preproc=no
30960 fi
30961
30962 rm -f conftest.err conftest.$ac_ext
30963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30964 echo "${ECHO_T}$ac_header_preproc" >&6; }
30965
30966 # So?  What about this header?
30967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30968   yes:no: )
30969     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30970 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30971     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30972 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30973     ac_header_preproc=yes
30974     ;;
30975   no:yes:* )
30976     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30977 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30978     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
30979 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
30980     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30981 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30982     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
30983 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30984     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30985 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30986     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30987 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30988
30989     ;;
30990 esac
30991 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30992 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30993 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30994   echo $ECHO_N "(cached) $ECHO_C" >&6
30995 else
30996   ac_cv_header_sys_mkdev_h=$ac_header_preproc
30997 fi
30998 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30999 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31000
31001 fi
31002 if test $ac_cv_header_sys_mkdev_h = yes; then
31003
31004 cat >>confdefs.h <<\_ACEOF
31005 #define MAJOR_IN_MKDEV 1
31006 _ACEOF
31007
31008 fi
31009
31010
31011
31012   if test $ac_cv_header_sys_mkdev_h = no; then
31013     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31014   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31015 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31016 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31017   echo $ECHO_N "(cached) $ECHO_C" >&6
31018 fi
31019 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31020 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31021 else
31022   # Is the header compilable?
31023 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31024 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31025 cat >conftest.$ac_ext <<_ACEOF
31026 /* confdefs.h.  */
31027 _ACEOF
31028 cat confdefs.h >>conftest.$ac_ext
31029 cat >>conftest.$ac_ext <<_ACEOF
31030 /* end confdefs.h.  */
31031 $ac_includes_default
31032 #include <sys/sysmacros.h>
31033 _ACEOF
31034 rm -f conftest.$ac_objext
31035 if { (ac_try="$ac_compile"
31036 case "(($ac_try" in
31037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31038   *) ac_try_echo=$ac_try;;
31039 esac
31040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31041   (eval "$ac_compile") 2>conftest.er1
31042   ac_status=$?
31043   grep -v '^ *+' conftest.er1 >conftest.err
31044   rm -f conftest.er1
31045   cat conftest.err >&5
31046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047   (exit $ac_status); } && {
31048          test -z "$ac_c_werror_flag" ||
31049          test ! -s conftest.err
31050        } && test -s conftest.$ac_objext; then
31051   ac_header_compiler=yes
31052 else
31053   echo "$as_me: failed program was:" >&5
31054 sed 's/^/| /' conftest.$ac_ext >&5
31055
31056         ac_header_compiler=no
31057 fi
31058
31059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31061 echo "${ECHO_T}$ac_header_compiler" >&6; }
31062
31063 # Is the header present?
31064 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31065 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31066 cat >conftest.$ac_ext <<_ACEOF
31067 /* confdefs.h.  */
31068 _ACEOF
31069 cat confdefs.h >>conftest.$ac_ext
31070 cat >>conftest.$ac_ext <<_ACEOF
31071 /* end confdefs.h.  */
31072 #include <sys/sysmacros.h>
31073 _ACEOF
31074 if { (ac_try="$ac_cpp conftest.$ac_ext"
31075 case "(($ac_try" in
31076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31077   *) ac_try_echo=$ac_try;;
31078 esac
31079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31080   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31081   ac_status=$?
31082   grep -v '^ *+' conftest.er1 >conftest.err
31083   rm -f conftest.er1
31084   cat conftest.err >&5
31085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086   (exit $ac_status); } >/dev/null && {
31087          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31088          test ! -s conftest.err
31089        }; then
31090   ac_header_preproc=yes
31091 else
31092   echo "$as_me: failed program was:" >&5
31093 sed 's/^/| /' conftest.$ac_ext >&5
31094
31095   ac_header_preproc=no
31096 fi
31097
31098 rm -f conftest.err conftest.$ac_ext
31099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31100 echo "${ECHO_T}$ac_header_preproc" >&6; }
31101
31102 # So?  What about this header?
31103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31104   yes:no: )
31105     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31106 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31107     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31108 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31109     ac_header_preproc=yes
31110     ;;
31111   no:yes:* )
31112     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31113 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31114     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31115 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31116     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31117 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31118     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31119 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31120     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31121 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31122     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31123 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31124
31125     ;;
31126 esac
31127 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31128 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31129 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31130   echo $ECHO_N "(cached) $ECHO_C" >&6
31131 else
31132   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31133 fi
31134 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31135 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31136
31137 fi
31138 if test $ac_cv_header_sys_sysmacros_h = yes; then
31139
31140 cat >>confdefs.h <<\_ACEOF
31141 #define MAJOR_IN_SYSMACROS 1
31142 _ACEOF
31143
31144 fi
31145
31146
31147   fi
31148 fi
31149
31150
31151
31152
31153
31154
31155 ac_header_dirent=no
31156 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31157   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31158 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31159 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31161   echo $ECHO_N "(cached) $ECHO_C" >&6
31162 else
31163   cat >conftest.$ac_ext <<_ACEOF
31164 /* confdefs.h.  */
31165 _ACEOF
31166 cat confdefs.h >>conftest.$ac_ext
31167 cat >>conftest.$ac_ext <<_ACEOF
31168 /* end confdefs.h.  */
31169 #include <sys/types.h>
31170 #include <$ac_hdr>
31171
31172 int
31173 main ()
31174 {
31175 if ((DIR *) 0)
31176 return 0;
31177   ;
31178   return 0;
31179 }
31180 _ACEOF
31181 rm -f conftest.$ac_objext
31182 if { (ac_try="$ac_compile"
31183 case "(($ac_try" in
31184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31185   *) ac_try_echo=$ac_try;;
31186 esac
31187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31188   (eval "$ac_compile") 2>conftest.er1
31189   ac_status=$?
31190   grep -v '^ *+' conftest.er1 >conftest.err
31191   rm -f conftest.er1
31192   cat conftest.err >&5
31193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194   (exit $ac_status); } && {
31195          test -z "$ac_c_werror_flag" ||
31196          test ! -s conftest.err
31197        } && test -s conftest.$ac_objext; then
31198   eval "$as_ac_Header=yes"
31199 else
31200   echo "$as_me: failed program was:" >&5
31201 sed 's/^/| /' conftest.$ac_ext >&5
31202
31203         eval "$as_ac_Header=no"
31204 fi
31205
31206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31207 fi
31208 ac_res=`eval echo '${'$as_ac_Header'}'`
31209                { echo "$as_me:$LINENO: result: $ac_res" >&5
31210 echo "${ECHO_T}$ac_res" >&6; }
31211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31212   cat >>confdefs.h <<_ACEOF
31213 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31214 _ACEOF
31215
31216 ac_header_dirent=$ac_hdr; break
31217 fi
31218
31219 done
31220 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31221 if test $ac_header_dirent = dirent.h; then
31222   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31223 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31224 if test "${ac_cv_search_opendir+set}" = set; then
31225   echo $ECHO_N "(cached) $ECHO_C" >&6
31226 else
31227   ac_func_search_save_LIBS=$LIBS
31228 cat >conftest.$ac_ext <<_ACEOF
31229 /* confdefs.h.  */
31230 _ACEOF
31231 cat confdefs.h >>conftest.$ac_ext
31232 cat >>conftest.$ac_ext <<_ACEOF
31233 /* end confdefs.h.  */
31234
31235 /* Override any GCC internal prototype to avoid an error.
31236    Use char because int might match the return type of a GCC
31237    builtin and then its argument prototype would still apply.  */
31238 #ifdef __cplusplus
31239 extern "C"
31240 #endif
31241 char opendir ();
31242 int
31243 main ()
31244 {
31245 return opendir ();
31246   ;
31247   return 0;
31248 }
31249 _ACEOF
31250 for ac_lib in '' dir; do
31251   if test -z "$ac_lib"; then
31252     ac_res="none required"
31253   else
31254     ac_res=-l$ac_lib
31255     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31256   fi
31257   rm -f conftest.$ac_objext conftest$ac_exeext
31258 if { (ac_try="$ac_link"
31259 case "(($ac_try" in
31260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31261   *) ac_try_echo=$ac_try;;
31262 esac
31263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31264   (eval "$ac_link") 2>conftest.er1
31265   ac_status=$?
31266   grep -v '^ *+' conftest.er1 >conftest.err
31267   rm -f conftest.er1
31268   cat conftest.err >&5
31269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270   (exit $ac_status); } && {
31271          test -z "$ac_c_werror_flag" ||
31272          test ! -s conftest.err
31273        } && test -s conftest$ac_exeext &&
31274        $as_test_x conftest$ac_exeext; then
31275   ac_cv_search_opendir=$ac_res
31276 else
31277   echo "$as_me: failed program was:" >&5
31278 sed 's/^/| /' conftest.$ac_ext >&5
31279
31280
31281 fi
31282
31283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31284       conftest$ac_exeext
31285   if test "${ac_cv_search_opendir+set}" = set; then
31286   break
31287 fi
31288 done
31289 if test "${ac_cv_search_opendir+set}" = set; then
31290   :
31291 else
31292   ac_cv_search_opendir=no
31293 fi
31294 rm conftest.$ac_ext
31295 LIBS=$ac_func_search_save_LIBS
31296 fi
31297 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31298 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31299 ac_res=$ac_cv_search_opendir
31300 if test "$ac_res" != no; then
31301   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31302
31303 fi
31304
31305 else
31306   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31307 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31308 if test "${ac_cv_search_opendir+set}" = set; then
31309   echo $ECHO_N "(cached) $ECHO_C" >&6
31310 else
31311   ac_func_search_save_LIBS=$LIBS
31312 cat >conftest.$ac_ext <<_ACEOF
31313 /* confdefs.h.  */
31314 _ACEOF
31315 cat confdefs.h >>conftest.$ac_ext
31316 cat >>conftest.$ac_ext <<_ACEOF
31317 /* end confdefs.h.  */
31318
31319 /* Override any GCC internal prototype to avoid an error.
31320    Use char because int might match the return type of a GCC
31321    builtin and then its argument prototype would still apply.  */
31322 #ifdef __cplusplus
31323 extern "C"
31324 #endif
31325 char opendir ();
31326 int
31327 main ()
31328 {
31329 return opendir ();
31330   ;
31331   return 0;
31332 }
31333 _ACEOF
31334 for ac_lib in '' x; do
31335   if test -z "$ac_lib"; then
31336     ac_res="none required"
31337   else
31338     ac_res=-l$ac_lib
31339     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31340   fi
31341   rm -f conftest.$ac_objext conftest$ac_exeext
31342 if { (ac_try="$ac_link"
31343 case "(($ac_try" in
31344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31345   *) ac_try_echo=$ac_try;;
31346 esac
31347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31348   (eval "$ac_link") 2>conftest.er1
31349   ac_status=$?
31350   grep -v '^ *+' conftest.er1 >conftest.err
31351   rm -f conftest.er1
31352   cat conftest.err >&5
31353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354   (exit $ac_status); } && {
31355          test -z "$ac_c_werror_flag" ||
31356          test ! -s conftest.err
31357        } && test -s conftest$ac_exeext &&
31358        $as_test_x conftest$ac_exeext; then
31359   ac_cv_search_opendir=$ac_res
31360 else
31361   echo "$as_me: failed program was:" >&5
31362 sed 's/^/| /' conftest.$ac_ext >&5
31363
31364
31365 fi
31366
31367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31368       conftest$ac_exeext
31369   if test "${ac_cv_search_opendir+set}" = set; then
31370   break
31371 fi
31372 done
31373 if test "${ac_cv_search_opendir+set}" = set; then
31374   :
31375 else
31376   ac_cv_search_opendir=no
31377 fi
31378 rm conftest.$ac_ext
31379 LIBS=$ac_func_search_save_LIBS
31380 fi
31381 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31382 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31383 ac_res=$ac_cv_search_opendir
31384 if test "$ac_res" != no; then
31385   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31386
31387 fi
31388
31389 fi
31390
31391 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31392 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31393 if test "${ac_cv_header_stat_broken+set}" = set; then
31394   echo $ECHO_N "(cached) $ECHO_C" >&6
31395 else
31396   cat >conftest.$ac_ext <<_ACEOF
31397 /* confdefs.h.  */
31398 _ACEOF
31399 cat confdefs.h >>conftest.$ac_ext
31400 cat >>conftest.$ac_ext <<_ACEOF
31401 /* end confdefs.h.  */
31402 #include <sys/types.h>
31403 #include <sys/stat.h>
31404
31405 #if defined S_ISBLK && defined S_IFDIR
31406 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31407 #endif
31408
31409 #if defined S_ISBLK && defined S_IFCHR
31410 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31411 #endif
31412
31413 #if defined S_ISLNK && defined S_IFREG
31414 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31415 #endif
31416
31417 #if defined S_ISSOCK && defined S_IFREG
31418 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31419 #endif
31420
31421 _ACEOF
31422 rm -f conftest.$ac_objext
31423 if { (ac_try="$ac_compile"
31424 case "(($ac_try" in
31425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31426   *) ac_try_echo=$ac_try;;
31427 esac
31428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429   (eval "$ac_compile") 2>conftest.er1
31430   ac_status=$?
31431   grep -v '^ *+' conftest.er1 >conftest.err
31432   rm -f conftest.er1
31433   cat conftest.err >&5
31434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435   (exit $ac_status); } && {
31436          test -z "$ac_c_werror_flag" ||
31437          test ! -s conftest.err
31438        } && test -s conftest.$ac_objext; then
31439   ac_cv_header_stat_broken=no
31440 else
31441   echo "$as_me: failed program was:" >&5
31442 sed 's/^/| /' conftest.$ac_ext >&5
31443
31444         ac_cv_header_stat_broken=yes
31445 fi
31446
31447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31448 fi
31449 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31450 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31451 if test $ac_cv_header_stat_broken = yes; then
31452
31453 cat >>confdefs.h <<\_ACEOF
31454 #define STAT_MACROS_BROKEN 1
31455 _ACEOF
31456
31457 fi
31458
31459 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31460 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31461 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31462   echo $ECHO_N "(cached) $ECHO_C" >&6
31463 else
31464   cat >conftest.$ac_ext <<_ACEOF
31465 /* confdefs.h.  */
31466 _ACEOF
31467 cat confdefs.h >>conftest.$ac_ext
31468 cat >>conftest.$ac_ext <<_ACEOF
31469 /* end confdefs.h.  */
31470 #include <sys/types.h>
31471 #include <sys/wait.h>
31472 #ifndef WEXITSTATUS
31473 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31474 #endif
31475 #ifndef WIFEXITED
31476 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31477 #endif
31478
31479 int
31480 main ()
31481 {
31482   int s;
31483   wait (&s);
31484   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31485   ;
31486   return 0;
31487 }
31488 _ACEOF
31489 rm -f conftest.$ac_objext
31490 if { (ac_try="$ac_compile"
31491 case "(($ac_try" in
31492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31493   *) ac_try_echo=$ac_try;;
31494 esac
31495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31496   (eval "$ac_compile") 2>conftest.er1
31497   ac_status=$?
31498   grep -v '^ *+' conftest.er1 >conftest.err
31499   rm -f conftest.er1
31500   cat conftest.err >&5
31501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502   (exit $ac_status); } && {
31503          test -z "$ac_c_werror_flag" ||
31504          test ! -s conftest.err
31505        } && test -s conftest.$ac_objext; then
31506   ac_cv_header_sys_wait_h=yes
31507 else
31508   echo "$as_me: failed program was:" >&5
31509 sed 's/^/| /' conftest.$ac_ext >&5
31510
31511         ac_cv_header_sys_wait_h=no
31512 fi
31513
31514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31515 fi
31516 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31517 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31518 if test $ac_cv_header_sys_wait_h = yes; then
31519
31520 cat >>confdefs.h <<\_ACEOF
31521 #define HAVE_SYS_WAIT_H 1
31522 _ACEOF
31523
31524 fi
31525
31526 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31527 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31528 if test "${ac_cv_header_time+set}" = set; then
31529   echo $ECHO_N "(cached) $ECHO_C" >&6
31530 else
31531   cat >conftest.$ac_ext <<_ACEOF
31532 /* confdefs.h.  */
31533 _ACEOF
31534 cat confdefs.h >>conftest.$ac_ext
31535 cat >>conftest.$ac_ext <<_ACEOF
31536 /* end confdefs.h.  */
31537 #include <sys/types.h>
31538 #include <sys/time.h>
31539 #include <time.h>
31540
31541 int
31542 main ()
31543 {
31544 if ((struct tm *) 0)
31545 return 0;
31546   ;
31547   return 0;
31548 }
31549 _ACEOF
31550 rm -f conftest.$ac_objext
31551 if { (ac_try="$ac_compile"
31552 case "(($ac_try" in
31553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31554   *) ac_try_echo=$ac_try;;
31555 esac
31556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31557   (eval "$ac_compile") 2>conftest.er1
31558   ac_status=$?
31559   grep -v '^ *+' conftest.er1 >conftest.err
31560   rm -f conftest.er1
31561   cat conftest.err >&5
31562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563   (exit $ac_status); } && {
31564          test -z "$ac_c_werror_flag" ||
31565          test ! -s conftest.err
31566        } && test -s conftest.$ac_objext; then
31567   ac_cv_header_time=yes
31568 else
31569   echo "$as_me: failed program was:" >&5
31570 sed 's/^/| /' conftest.$ac_ext >&5
31571
31572         ac_cv_header_time=no
31573 fi
31574
31575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31576 fi
31577 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31578 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31579 if test $ac_cv_header_time = yes; then
31580
31581 cat >>confdefs.h <<\_ACEOF
31582 #define TIME_WITH_SYS_TIME 1
31583 _ACEOF
31584
31585 fi
31586
31587 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31588 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31589 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31590   echo $ECHO_N "(cached) $ECHO_C" >&6
31591 else
31592   cat >conftest.$ac_ext <<_ACEOF
31593 /* confdefs.h.  */
31594 _ACEOF
31595 cat confdefs.h >>conftest.$ac_ext
31596 cat >>conftest.$ac_ext <<_ACEOF
31597 /* end confdefs.h.  */
31598 $ac_includes_default
31599 int
31600 main ()
31601 {
31602 static struct stat ac_aggr;
31603 if (ac_aggr.st_blksize)
31604 return 0;
31605   ;
31606   return 0;
31607 }
31608 _ACEOF
31609 rm -f conftest.$ac_objext
31610 if { (ac_try="$ac_compile"
31611 case "(($ac_try" in
31612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613   *) ac_try_echo=$ac_try;;
31614 esac
31615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616   (eval "$ac_compile") 2>conftest.er1
31617   ac_status=$?
31618   grep -v '^ *+' conftest.er1 >conftest.err
31619   rm -f conftest.er1
31620   cat conftest.err >&5
31621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622   (exit $ac_status); } && {
31623          test -z "$ac_c_werror_flag" ||
31624          test ! -s conftest.err
31625        } && test -s conftest.$ac_objext; then
31626   ac_cv_member_struct_stat_st_blksize=yes
31627 else
31628   echo "$as_me: failed program was:" >&5
31629 sed 's/^/| /' conftest.$ac_ext >&5
31630
31631         cat >conftest.$ac_ext <<_ACEOF
31632 /* confdefs.h.  */
31633 _ACEOF
31634 cat confdefs.h >>conftest.$ac_ext
31635 cat >>conftest.$ac_ext <<_ACEOF
31636 /* end confdefs.h.  */
31637 $ac_includes_default
31638 int
31639 main ()
31640 {
31641 static struct stat ac_aggr;
31642 if (sizeof ac_aggr.st_blksize)
31643 return 0;
31644   ;
31645   return 0;
31646 }
31647 _ACEOF
31648 rm -f conftest.$ac_objext
31649 if { (ac_try="$ac_compile"
31650 case "(($ac_try" in
31651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31652   *) ac_try_echo=$ac_try;;
31653 esac
31654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31655   (eval "$ac_compile") 2>conftest.er1
31656   ac_status=$?
31657   grep -v '^ *+' conftest.er1 >conftest.err
31658   rm -f conftest.er1
31659   cat conftest.err >&5
31660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661   (exit $ac_status); } && {
31662          test -z "$ac_c_werror_flag" ||
31663          test ! -s conftest.err
31664        } && test -s conftest.$ac_objext; then
31665   ac_cv_member_struct_stat_st_blksize=yes
31666 else
31667   echo "$as_me: failed program was:" >&5
31668 sed 's/^/| /' conftest.$ac_ext >&5
31669
31670         ac_cv_member_struct_stat_st_blksize=no
31671 fi
31672
31673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31674 fi
31675
31676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31677 fi
31678 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31679 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31680 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31681
31682 cat >>confdefs.h <<_ACEOF
31683 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31684 _ACEOF
31685
31686
31687 cat >>confdefs.h <<\_ACEOF
31688 #define HAVE_ST_BLKSIZE 1
31689 _ACEOF
31690
31691 fi
31692
31693
31694 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31695 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31696 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31697   echo $ECHO_N "(cached) $ECHO_C" >&6
31698 else
31699   cat >conftest.$ac_ext <<_ACEOF
31700 /* confdefs.h.  */
31701 _ACEOF
31702 cat confdefs.h >>conftest.$ac_ext
31703 cat >>conftest.$ac_ext <<_ACEOF
31704 /* end confdefs.h.  */
31705 $ac_includes_default
31706 int
31707 main ()
31708 {
31709 static struct stat ac_aggr;
31710 if (ac_aggr.st_blocks)
31711 return 0;
31712   ;
31713   return 0;
31714 }
31715 _ACEOF
31716 rm -f conftest.$ac_objext
31717 if { (ac_try="$ac_compile"
31718 case "(($ac_try" in
31719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31720   *) ac_try_echo=$ac_try;;
31721 esac
31722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31723   (eval "$ac_compile") 2>conftest.er1
31724   ac_status=$?
31725   grep -v '^ *+' conftest.er1 >conftest.err
31726   rm -f conftest.er1
31727   cat conftest.err >&5
31728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729   (exit $ac_status); } && {
31730          test -z "$ac_c_werror_flag" ||
31731          test ! -s conftest.err
31732        } && test -s conftest.$ac_objext; then
31733   ac_cv_member_struct_stat_st_blocks=yes
31734 else
31735   echo "$as_me: failed program was:" >&5
31736 sed 's/^/| /' conftest.$ac_ext >&5
31737
31738         cat >conftest.$ac_ext <<_ACEOF
31739 /* confdefs.h.  */
31740 _ACEOF
31741 cat confdefs.h >>conftest.$ac_ext
31742 cat >>conftest.$ac_ext <<_ACEOF
31743 /* end confdefs.h.  */
31744 $ac_includes_default
31745 int
31746 main ()
31747 {
31748 static struct stat ac_aggr;
31749 if (sizeof ac_aggr.st_blocks)
31750 return 0;
31751   ;
31752   return 0;
31753 }
31754 _ACEOF
31755 rm -f conftest.$ac_objext
31756 if { (ac_try="$ac_compile"
31757 case "(($ac_try" in
31758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31759   *) ac_try_echo=$ac_try;;
31760 esac
31761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31762   (eval "$ac_compile") 2>conftest.er1
31763   ac_status=$?
31764   grep -v '^ *+' conftest.er1 >conftest.err
31765   rm -f conftest.er1
31766   cat conftest.err >&5
31767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768   (exit $ac_status); } && {
31769          test -z "$ac_c_werror_flag" ||
31770          test ! -s conftest.err
31771        } && test -s conftest.$ac_objext; then
31772   ac_cv_member_struct_stat_st_blocks=yes
31773 else
31774   echo "$as_me: failed program was:" >&5
31775 sed 's/^/| /' conftest.$ac_ext >&5
31776
31777         ac_cv_member_struct_stat_st_blocks=no
31778 fi
31779
31780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31781 fi
31782
31783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31784 fi
31785 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31786 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31787 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31788
31789 cat >>confdefs.h <<_ACEOF
31790 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31791 _ACEOF
31792
31793
31794 cat >>confdefs.h <<\_ACEOF
31795 #define HAVE_ST_BLOCKS 1
31796 _ACEOF
31797
31798 else
31799   case " $LIBOBJS " in
31800   *" fileblocks.$ac_objext "* ) ;;
31801   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31802  ;;
31803 esac
31804
31805 fi
31806
31807
31808 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31809 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31810 if test "${ac_cv_struct_tm+set}" = set; then
31811   echo $ECHO_N "(cached) $ECHO_C" >&6
31812 else
31813   cat >conftest.$ac_ext <<_ACEOF
31814 /* confdefs.h.  */
31815 _ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h.  */
31819 #include <sys/types.h>
31820 #include <time.h>
31821
31822 int
31823 main ()
31824 {
31825 struct tm tm;
31826                                      int *p = &tm.tm_sec;
31827                                      return !p;
31828   ;
31829   return 0;
31830 }
31831 _ACEOF
31832 rm -f conftest.$ac_objext
31833 if { (ac_try="$ac_compile"
31834 case "(($ac_try" in
31835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836   *) ac_try_echo=$ac_try;;
31837 esac
31838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839   (eval "$ac_compile") 2>conftest.er1
31840   ac_status=$?
31841   grep -v '^ *+' conftest.er1 >conftest.err
31842   rm -f conftest.er1
31843   cat conftest.err >&5
31844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845   (exit $ac_status); } && {
31846          test -z "$ac_c_werror_flag" ||
31847          test ! -s conftest.err
31848        } && test -s conftest.$ac_objext; then
31849   ac_cv_struct_tm=time.h
31850 else
31851   echo "$as_me: failed program was:" >&5
31852 sed 's/^/| /' conftest.$ac_ext >&5
31853
31854         ac_cv_struct_tm=sys/time.h
31855 fi
31856
31857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31858 fi
31859 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31860 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31861 if test $ac_cv_struct_tm = sys/time.h; then
31862
31863 cat >>confdefs.h <<\_ACEOF
31864 #define TM_IN_SYS_TIME 1
31865 _ACEOF
31866
31867 fi
31868
31869 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31870 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31871 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31872   echo $ECHO_N "(cached) $ECHO_C" >&6
31873 else
31874   cat >conftest.$ac_ext <<_ACEOF
31875 /* confdefs.h.  */
31876 _ACEOF
31877 cat confdefs.h >>conftest.$ac_ext
31878 cat >>conftest.$ac_ext <<_ACEOF
31879 /* end confdefs.h.  */
31880 #include <sys/types.h>
31881 #include <$ac_cv_struct_tm>
31882
31883
31884 int
31885 main ()
31886 {
31887 static struct tm ac_aggr;
31888 if (ac_aggr.tm_zone)
31889 return 0;
31890   ;
31891   return 0;
31892 }
31893 _ACEOF
31894 rm -f conftest.$ac_objext
31895 if { (ac_try="$ac_compile"
31896 case "(($ac_try" in
31897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898   *) ac_try_echo=$ac_try;;
31899 esac
31900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901   (eval "$ac_compile") 2>conftest.er1
31902   ac_status=$?
31903   grep -v '^ *+' conftest.er1 >conftest.err
31904   rm -f conftest.er1
31905   cat conftest.err >&5
31906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907   (exit $ac_status); } && {
31908          test -z "$ac_c_werror_flag" ||
31909          test ! -s conftest.err
31910        } && test -s conftest.$ac_objext; then
31911   ac_cv_member_struct_tm_tm_zone=yes
31912 else
31913   echo "$as_me: failed program was:" >&5
31914 sed 's/^/| /' conftest.$ac_ext >&5
31915
31916         cat >conftest.$ac_ext <<_ACEOF
31917 /* confdefs.h.  */
31918 _ACEOF
31919 cat confdefs.h >>conftest.$ac_ext
31920 cat >>conftest.$ac_ext <<_ACEOF
31921 /* end confdefs.h.  */
31922 #include <sys/types.h>
31923 #include <$ac_cv_struct_tm>
31924
31925
31926 int
31927 main ()
31928 {
31929 static struct tm ac_aggr;
31930 if (sizeof ac_aggr.tm_zone)
31931 return 0;
31932   ;
31933   return 0;
31934 }
31935 _ACEOF
31936 rm -f conftest.$ac_objext
31937 if { (ac_try="$ac_compile"
31938 case "(($ac_try" in
31939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940   *) ac_try_echo=$ac_try;;
31941 esac
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943   (eval "$ac_compile") 2>conftest.er1
31944   ac_status=$?
31945   grep -v '^ *+' conftest.er1 >conftest.err
31946   rm -f conftest.er1
31947   cat conftest.err >&5
31948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949   (exit $ac_status); } && {
31950          test -z "$ac_c_werror_flag" ||
31951          test ! -s conftest.err
31952        } && test -s conftest.$ac_objext; then
31953   ac_cv_member_struct_tm_tm_zone=yes
31954 else
31955   echo "$as_me: failed program was:" >&5
31956 sed 's/^/| /' conftest.$ac_ext >&5
31957
31958         ac_cv_member_struct_tm_tm_zone=no
31959 fi
31960
31961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31962 fi
31963
31964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31965 fi
31966 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31967 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31968 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31969
31970 cat >>confdefs.h <<_ACEOF
31971 #define HAVE_STRUCT_TM_TM_ZONE 1
31972 _ACEOF
31973
31974
31975 fi
31976
31977 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31978
31979 cat >>confdefs.h <<\_ACEOF
31980 #define HAVE_TM_ZONE 1
31981 _ACEOF
31982
31983 else
31984   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31985 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31986 if test "${ac_cv_have_decl_tzname+set}" = set; then
31987   echo $ECHO_N "(cached) $ECHO_C" >&6
31988 else
31989   cat >conftest.$ac_ext <<_ACEOF
31990 /* confdefs.h.  */
31991 _ACEOF
31992 cat confdefs.h >>conftest.$ac_ext
31993 cat >>conftest.$ac_ext <<_ACEOF
31994 /* end confdefs.h.  */
31995 #include <time.h>
31996
31997 int
31998 main ()
31999 {
32000 #ifndef tzname
32001   (void) tzname;
32002 #endif
32003
32004   ;
32005   return 0;
32006 }
32007 _ACEOF
32008 rm -f conftest.$ac_objext
32009 if { (ac_try="$ac_compile"
32010 case "(($ac_try" in
32011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32012   *) ac_try_echo=$ac_try;;
32013 esac
32014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32015   (eval "$ac_compile") 2>conftest.er1
32016   ac_status=$?
32017   grep -v '^ *+' conftest.er1 >conftest.err
32018   rm -f conftest.er1
32019   cat conftest.err >&5
32020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021   (exit $ac_status); } && {
32022          test -z "$ac_c_werror_flag" ||
32023          test ! -s conftest.err
32024        } && test -s conftest.$ac_objext; then
32025   ac_cv_have_decl_tzname=yes
32026 else
32027   echo "$as_me: failed program was:" >&5
32028 sed 's/^/| /' conftest.$ac_ext >&5
32029
32030         ac_cv_have_decl_tzname=no
32031 fi
32032
32033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32034 fi
32035 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32036 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32037 if test $ac_cv_have_decl_tzname = yes; then
32038
32039 cat >>confdefs.h <<_ACEOF
32040 #define HAVE_DECL_TZNAME 1
32041 _ACEOF
32042
32043
32044 else
32045   cat >>confdefs.h <<_ACEOF
32046 #define HAVE_DECL_TZNAME 0
32047 _ACEOF
32048
32049
32050 fi
32051
32052
32053   { echo "$as_me:$LINENO: checking for tzname" >&5
32054 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32055 if test "${ac_cv_var_tzname+set}" = set; then
32056   echo $ECHO_N "(cached) $ECHO_C" >&6
32057 else
32058   cat >conftest.$ac_ext <<_ACEOF
32059 /* confdefs.h.  */
32060 _ACEOF
32061 cat confdefs.h >>conftest.$ac_ext
32062 cat >>conftest.$ac_ext <<_ACEOF
32063 /* end confdefs.h.  */
32064 #include <time.h>
32065 #if !HAVE_DECL_TZNAME
32066 extern char *tzname[];
32067 #endif
32068
32069 int
32070 main ()
32071 {
32072 return tzname[0][0];
32073   ;
32074   return 0;
32075 }
32076 _ACEOF
32077 rm -f conftest.$ac_objext conftest$ac_exeext
32078 if { (ac_try="$ac_link"
32079 case "(($ac_try" in
32080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32081   *) ac_try_echo=$ac_try;;
32082 esac
32083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32084   (eval "$ac_link") 2>conftest.er1
32085   ac_status=$?
32086   grep -v '^ *+' conftest.er1 >conftest.err
32087   rm -f conftest.er1
32088   cat conftest.err >&5
32089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090   (exit $ac_status); } && {
32091          test -z "$ac_c_werror_flag" ||
32092          test ! -s conftest.err
32093        } && test -s conftest$ac_exeext &&
32094        $as_test_x conftest$ac_exeext; then
32095   ac_cv_var_tzname=yes
32096 else
32097   echo "$as_me: failed program was:" >&5
32098 sed 's/^/| /' conftest.$ac_ext >&5
32099
32100         ac_cv_var_tzname=no
32101 fi
32102
32103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32104       conftest$ac_exeext conftest.$ac_ext
32105 fi
32106 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32107 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32108   if test $ac_cv_var_tzname = yes; then
32109
32110 cat >>confdefs.h <<\_ACEOF
32111 #define HAVE_TZNAME 1
32112 _ACEOF
32113
32114   fi
32115 fi
32116
32117
32118 { echo "$as_me:$LINENO: checking for utime.h" >&5
32119 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32120 if test "${ba_cv_header_utime_h+set}" = set; then
32121   echo $ECHO_N "(cached) $ECHO_C" >&6
32122 else
32123
32124        cat >conftest.$ac_ext <<_ACEOF
32125 /* confdefs.h.  */
32126 _ACEOF
32127 cat confdefs.h >>conftest.$ac_ext
32128 cat >>conftest.$ac_ext <<_ACEOF
32129 /* end confdefs.h.  */
32130
32131               #include <sys/types.h>
32132               #include <utime.h>
32133
32134 int
32135 main ()
32136 {
32137
32138               struct utimbuf foo
32139
32140   ;
32141   return 0;
32142 }
32143 _ACEOF
32144 rm -f conftest.$ac_objext
32145 if { (ac_try="$ac_compile"
32146 case "(($ac_try" in
32147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148   *) ac_try_echo=$ac_try;;
32149 esac
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151   (eval "$ac_compile") 2>conftest.er1
32152   ac_status=$?
32153   grep -v '^ *+' conftest.er1 >conftest.err
32154   rm -f conftest.er1
32155   cat conftest.err >&5
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); } && {
32158          test -z "$ac_c_werror_flag" ||
32159          test ! -s conftest.err
32160        } && test -s conftest.$ac_objext; then
32161
32162               ba_cv_header_utime_h=yes
32163
32164 else
32165   echo "$as_me: failed program was:" >&5
32166 sed 's/^/| /' conftest.$ac_ext >&5
32167
32168
32169               ba_cv_header_utime_h=no
32170
32171
32172 fi
32173
32174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32175
32176
32177 fi
32178 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32179 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32180 test $ba_cv_header_utime_h = yes &&
32181 cat >>confdefs.h <<\_ACEOF
32182 #define HAVE_UTIME_H 1
32183 _ACEOF
32184
32185
32186 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32187 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32188 if test "${ba_cv_header_socklen_t+set}" = set; then
32189   echo $ECHO_N "(cached) $ECHO_C" >&6
32190 else
32191
32192        cat >conftest.$ac_ext <<_ACEOF
32193 /* confdefs.h.  */
32194 _ACEOF
32195 cat confdefs.h >>conftest.$ac_ext
32196 cat >>conftest.$ac_ext <<_ACEOF
32197 /* end confdefs.h.  */
32198
32199               #include <sys/types.h>
32200               #include <sys/socket.h>
32201
32202 int
32203 main ()
32204 {
32205
32206               socklen_t x
32207
32208   ;
32209   return 0;
32210 }
32211 _ACEOF
32212 rm -f conftest.$ac_objext
32213 if { (ac_try="$ac_compile"
32214 case "(($ac_try" in
32215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32216   *) ac_try_echo=$ac_try;;
32217 esac
32218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32219   (eval "$ac_compile") 2>conftest.er1
32220   ac_status=$?
32221   grep -v '^ *+' conftest.er1 >conftest.err
32222   rm -f conftest.er1
32223   cat conftest.err >&5
32224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225   (exit $ac_status); } && {
32226          test -z "$ac_c_werror_flag" ||
32227          test ! -s conftest.err
32228        } && test -s conftest.$ac_objext; then
32229
32230              ba_cv_header_socklen_t=yes
32231
32232 else
32233   echo "$as_me: failed program was:" >&5
32234 sed 's/^/| /' conftest.$ac_ext >&5
32235
32236
32237              ba_cv_header_socklen_t=no
32238
32239
32240 fi
32241
32242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32243
32244
32245 fi
32246 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32247 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32248 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32249 #define HAVE_SOCKLEN_T 1
32250 _ACEOF
32251
32252
32253 { echo "$as_me:$LINENO: checking for bigendian" >&5
32254 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32255 if test "${ba_cv_bigendian+set}" = set; then
32256   echo $ECHO_N "(cached) $ECHO_C" >&6
32257 else
32258
32259        if test "$cross_compiling" = yes; then
32260
32261              ba_cv_bigendian=no
32262
32263
32264 else
32265   cat >conftest.$ac_ext <<_ACEOF
32266 /* confdefs.h.  */
32267 _ACEOF
32268 cat confdefs.h >>conftest.$ac_ext
32269 cat >>conftest.$ac_ext <<_ACEOF
32270 /* end confdefs.h.  */
32271
32272               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32273
32274 _ACEOF
32275 rm -f conftest$ac_exeext
32276 if { (ac_try="$ac_link"
32277 case "(($ac_try" in
32278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32279   *) ac_try_echo=$ac_try;;
32280 esac
32281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32282   (eval "$ac_link") 2>&5
32283   ac_status=$?
32284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32286   { (case "(($ac_try" in
32287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288   *) ac_try_echo=$ac_try;;
32289 esac
32290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291   (eval "$ac_try") 2>&5
32292   ac_status=$?
32293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294   (exit $ac_status); }; }; then
32295
32296              ba_cv_bigendian=yes
32297
32298 else
32299   echo "$as_me: program exited with status $ac_status" >&5
32300 echo "$as_me: failed program was:" >&5
32301 sed 's/^/| /' conftest.$ac_ext >&5
32302
32303 ( exit $ac_status )
32304
32305              ba_cv_bigendian=no
32306
32307 fi
32308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32309 fi
32310
32311
32312
32313
32314 fi
32315 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32316 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32317 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32318 #define HAVE_BIGENDIAN 1
32319 _ACEOF
32320
32321
32322 ac_ext=cpp
32323 ac_cpp='$CXXCPP $CPPFLAGS'
32324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32327
32328 { echo "$as_me:$LINENO: checking for typeof" >&5
32329 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32330 if test "${ba_cv_have_typeof+set}" = set; then
32331   echo $ECHO_N "(cached) $ECHO_C" >&6
32332 else
32333
32334        if test "$cross_compiling" = yes; then
32335
32336               ba_cv_have_typeof=no
32337
32338
32339 else
32340   cat >conftest.$ac_ext <<_ACEOF
32341 /* confdefs.h.  */
32342 _ACEOF
32343 cat confdefs.h >>conftest.$ac_ext
32344 cat >>conftest.$ac_ext <<_ACEOF
32345 /* end confdefs.h.  */
32346
32347               main(){char *a = 0; a = (typeof a)a;}
32348
32349 _ACEOF
32350 rm -f conftest$ac_exeext
32351 if { (ac_try="$ac_link"
32352 case "(($ac_try" in
32353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32354   *) ac_try_echo=$ac_try;;
32355 esac
32356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32357   (eval "$ac_link") 2>&5
32358   ac_status=$?
32359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32361   { (case "(($ac_try" in
32362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363   *) ac_try_echo=$ac_try;;
32364 esac
32365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366   (eval "$ac_try") 2>&5
32367   ac_status=$?
32368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369   (exit $ac_status); }; }; then
32370
32371               ba_cv_have_typeof=yes
32372
32373 else
32374   echo "$as_me: program exited with status $ac_status" >&5
32375 echo "$as_me: failed program was:" >&5
32376 sed 's/^/| /' conftest.$ac_ext >&5
32377
32378 ( exit $ac_status )
32379
32380               ba_cv_have_typeof=no
32381
32382 fi
32383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32384 fi
32385
32386
32387
32388
32389 fi
32390 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32391 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32392 test $ba_cv_have_typeof = yes &&
32393 cat >>confdefs.h <<\_ACEOF
32394 #define HAVE_TYPEOF 1
32395 _ACEOF
32396
32397 ac_ext=c
32398 ac_cpp='$CPP $CPPFLAGS'
32399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32402
32403
32404 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32405 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32406 if test "${ac_cv_c_const+set}" = set; then
32407   echo $ECHO_N "(cached) $ECHO_C" >&6
32408 else
32409   cat >conftest.$ac_ext <<_ACEOF
32410 /* confdefs.h.  */
32411 _ACEOF
32412 cat confdefs.h >>conftest.$ac_ext
32413 cat >>conftest.$ac_ext <<_ACEOF
32414 /* end confdefs.h.  */
32415
32416 int
32417 main ()
32418 {
32419 /* FIXME: Include the comments suggested by Paul. */
32420 #ifndef __cplusplus
32421   /* Ultrix mips cc rejects this.  */
32422   typedef int charset[2];
32423   const charset cs;
32424   /* SunOS 4.1.1 cc rejects this.  */
32425   char const *const *pcpcc;
32426   char **ppc;
32427   /* NEC SVR4.0.2 mips cc rejects this.  */
32428   struct point {int x, y;};
32429   static struct point const zero = {0,0};
32430   /* AIX XL C 1.02.0.0 rejects this.
32431      It does not let you subtract one const X* pointer from another in
32432      an arm of an if-expression whose if-part is not a constant
32433      expression */
32434   const char *g = "string";
32435   pcpcc = &g + (g ? g-g : 0);
32436   /* HPUX 7.0 cc rejects these. */
32437   ++pcpcc;
32438   ppc = (char**) pcpcc;
32439   pcpcc = (char const *const *) ppc;
32440   { /* SCO 3.2v4 cc rejects this.  */
32441     char *t;
32442     char const *s = 0 ? (char *) 0 : (char const *) 0;
32443
32444     *t++ = 0;
32445     if (s) return 0;
32446   }
32447   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32448     int x[] = {25, 17};
32449     const int *foo = &x[0];
32450     ++foo;
32451   }
32452   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32453     typedef const int *iptr;
32454     iptr p = 0;
32455     ++p;
32456   }
32457   { /* AIX XL C 1.02.0.0 rejects this saying
32458        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32459     struct s { int j; const int *ap[3]; };
32460     struct s *b; b->j = 5;
32461   }
32462   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32463     const int foo = 10;
32464     if (!foo) return 0;
32465   }
32466   return !cs[0] && !zero.x;
32467 #endif
32468
32469   ;
32470   return 0;
32471 }
32472 _ACEOF
32473 rm -f conftest.$ac_objext
32474 if { (ac_try="$ac_compile"
32475 case "(($ac_try" in
32476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477   *) ac_try_echo=$ac_try;;
32478 esac
32479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480   (eval "$ac_compile") 2>conftest.er1
32481   ac_status=$?
32482   grep -v '^ *+' conftest.er1 >conftest.err
32483   rm -f conftest.er1
32484   cat conftest.err >&5
32485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486   (exit $ac_status); } && {
32487          test -z "$ac_c_werror_flag" ||
32488          test ! -s conftest.err
32489        } && test -s conftest.$ac_objext; then
32490   ac_cv_c_const=yes
32491 else
32492   echo "$as_me: failed program was:" >&5
32493 sed 's/^/| /' conftest.$ac_ext >&5
32494
32495         ac_cv_c_const=no
32496 fi
32497
32498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32499 fi
32500 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32501 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32502 if test $ac_cv_c_const = no; then
32503
32504 cat >>confdefs.h <<\_ACEOF
32505 #define const
32506 _ACEOF
32507
32508 fi
32509
32510
32511 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32512 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32513 fstype=no
32514 # The order of these tests is important.
32515 cat >conftest.$ac_ext <<_ACEOF
32516 /* confdefs.h.  */
32517 _ACEOF
32518 cat confdefs.h >>conftest.$ac_ext
32519 cat >>conftest.$ac_ext <<_ACEOF
32520 /* end confdefs.h.  */
32521
32522        #include <sys/statvfs.h>
32523        #include <sys/fstyp.h>
32524
32525 _ACEOF
32526 if { (ac_try="$ac_cpp conftest.$ac_ext"
32527 case "(($ac_try" in
32528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32529   *) ac_try_echo=$ac_try;;
32530 esac
32531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32533   ac_status=$?
32534   grep -v '^ *+' conftest.er1 >conftest.err
32535   rm -f conftest.er1
32536   cat conftest.err >&5
32537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538   (exit $ac_status); } >/dev/null && {
32539          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32540          test ! -s conftest.err
32541        }; then
32542   cat >>confdefs.h <<\_ACEOF
32543 #define FSTYPE_STATVFS 1
32544 _ACEOF
32545  fstype=SVR4
32546
32547 else
32548   echo "$as_me: failed program was:" >&5
32549 sed 's/^/| /' conftest.$ac_ext >&5
32550
32551
32552 fi
32553
32554 rm -f conftest.err conftest.$ac_ext
32555 if test $fstype = no; then
32556    cat >conftest.$ac_ext <<_ACEOF
32557 /* confdefs.h.  */
32558 _ACEOF
32559 cat confdefs.h >>conftest.$ac_ext
32560 cat >>conftest.$ac_ext <<_ACEOF
32561 /* end confdefs.h.  */
32562
32563           #include <sys/statfs.h>
32564           #include <sys/fstyp.h>
32565
32566 _ACEOF
32567 if { (ac_try="$ac_cpp conftest.$ac_ext"
32568 case "(($ac_try" in
32569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32570   *) ac_try_echo=$ac_try;;
32571 esac
32572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32574   ac_status=$?
32575   grep -v '^ *+' conftest.er1 >conftest.err
32576   rm -f conftest.er1
32577   cat conftest.err >&5
32578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579   (exit $ac_status); } >/dev/null && {
32580          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32581          test ! -s conftest.err
32582        }; then
32583   cat >>confdefs.h <<\_ACEOF
32584 #define FSTYPE_USG_STATFS 1
32585 _ACEOF
32586  fstype=SVR3
32587
32588 else
32589   echo "$as_me: failed program was:" >&5
32590 sed 's/^/| /' conftest.$ac_ext >&5
32591
32592
32593 fi
32594
32595 rm -f conftest.err conftest.$ac_ext
32596 fi
32597 if test $fstype = no; then
32598    cat >conftest.$ac_ext <<_ACEOF
32599 /* confdefs.h.  */
32600 _ACEOF
32601 cat confdefs.h >>conftest.$ac_ext
32602 cat >>conftest.$ac_ext <<_ACEOF
32603 /* end confdefs.h.  */
32604
32605           #include <sys/statfs.h>
32606           #include <sys/vmount.h>
32607
32608 _ACEOF
32609 if { (ac_try="$ac_cpp conftest.$ac_ext"
32610 case "(($ac_try" in
32611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612   *) ac_try_echo=$ac_try;;
32613 esac
32614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32616   ac_status=$?
32617   grep -v '^ *+' conftest.er1 >conftest.err
32618   rm -f conftest.er1
32619   cat conftest.err >&5
32620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621   (exit $ac_status); } >/dev/null && {
32622          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32623          test ! -s conftest.err
32624        }; then
32625   cat >>confdefs.h <<\_ACEOF
32626 #define FSTYPE_AIX_STATFS 1
32627 _ACEOF
32628  fstype=AIX
32629
32630 else
32631   echo "$as_me: failed program was:" >&5
32632 sed 's/^/| /' conftest.$ac_ext >&5
32633
32634
32635 fi
32636
32637 rm -f conftest.err conftest.$ac_ext
32638 fi
32639 if test $fstype = no; then
32640    cat >conftest.$ac_ext <<_ACEOF
32641 /* confdefs.h.  */
32642 _ACEOF
32643 cat confdefs.h >>conftest.$ac_ext
32644 cat >>conftest.$ac_ext <<_ACEOF
32645 /* end confdefs.h.  */
32646
32647           #include <mntent.h>
32648
32649 _ACEOF
32650 if { (ac_try="$ac_cpp conftest.$ac_ext"
32651 case "(($ac_try" in
32652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32653   *) ac_try_echo=$ac_try;;
32654 esac
32655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32656   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32657   ac_status=$?
32658   grep -v '^ *+' conftest.er1 >conftest.err
32659   rm -f conftest.er1
32660   cat conftest.err >&5
32661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32662   (exit $ac_status); } >/dev/null && {
32663          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32664          test ! -s conftest.err
32665        }; then
32666   cat >>confdefs.h <<\_ACEOF
32667 #define FSTYPE_MNTENT 1
32668 _ACEOF
32669  fstype=4.3BSD
32670
32671 else
32672   echo "$as_me: failed program was:" >&5
32673 sed 's/^/| /' conftest.$ac_ext >&5
32674
32675
32676 fi
32677
32678 rm -f conftest.err conftest.$ac_ext
32679 fi
32680 if test $fstype = no; then
32681    cat >conftest.$ac_ext <<_ACEOF
32682 /* confdefs.h.  */
32683 _ACEOF
32684 cat confdefs.h >>conftest.$ac_ext
32685 cat >>conftest.$ac_ext <<_ACEOF
32686 /* end confdefs.h.  */
32687 #include <sys/mount.h>
32688
32689 _ACEOF
32690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32691   $EGREP "f_type;" >/dev/null 2>&1; then
32692   cat >>confdefs.h <<\_ACEOF
32693 #define FSTYPE_STATFS 1
32694 _ACEOF
32695  fstype=4.4BSD/OSF1
32696 fi
32697 rm -f conftest*
32698
32699 fi
32700 if test $fstype = no; then
32701    cat >conftest.$ac_ext <<_ACEOF
32702 /* confdefs.h.  */
32703 _ACEOF
32704 cat confdefs.h >>conftest.$ac_ext
32705 cat >>conftest.$ac_ext <<_ACEOF
32706 /* end confdefs.h.  */
32707
32708           #include <sys/mount.h>
32709           #include <sys/fs_types.h>
32710
32711 _ACEOF
32712 if { (ac_try="$ac_cpp conftest.$ac_ext"
32713 case "(($ac_try" in
32714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715   *) ac_try_echo=$ac_try;;
32716 esac
32717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32719   ac_status=$?
32720   grep -v '^ *+' conftest.er1 >conftest.err
32721   rm -f conftest.er1
32722   cat conftest.err >&5
32723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724   (exit $ac_status); } >/dev/null && {
32725          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32726          test ! -s conftest.err
32727        }; then
32728   cat >>confdefs.h <<\_ACEOF
32729 #define FSTYPE_GETMNT 1
32730 _ACEOF
32731  fstype=Ultrix
32732
32733 else
32734   echo "$as_me: failed program was:" >&5
32735 sed 's/^/| /' conftest.$ac_ext >&5
32736
32737
32738 fi
32739
32740 rm -f conftest.err conftest.$ac_ext
32741 fi
32742 { echo "$as_me:$LINENO: result: $fstype" >&5
32743 echo "${ECHO_T}$fstype" >&6; }
32744
32745 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32746   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32747 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32748 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32749   echo $ECHO_N "(cached) $ECHO_C" >&6
32750 fi
32751 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32752 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32753 else
32754   # Is the header compilable?
32755 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32756 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32757 cat >conftest.$ac_ext <<_ACEOF
32758 /* confdefs.h.  */
32759 _ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h.  */
32763 $ac_includes_default
32764 #include <sys/statvfs.h>
32765 _ACEOF
32766 rm -f conftest.$ac_objext
32767 if { (ac_try="$ac_compile"
32768 case "(($ac_try" in
32769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32770   *) ac_try_echo=$ac_try;;
32771 esac
32772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773   (eval "$ac_compile") 2>conftest.er1
32774   ac_status=$?
32775   grep -v '^ *+' conftest.er1 >conftest.err
32776   rm -f conftest.er1
32777   cat conftest.err >&5
32778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779   (exit $ac_status); } && {
32780          test -z "$ac_c_werror_flag" ||
32781          test ! -s conftest.err
32782        } && test -s conftest.$ac_objext; then
32783   ac_header_compiler=yes
32784 else
32785   echo "$as_me: failed program was:" >&5
32786 sed 's/^/| /' conftest.$ac_ext >&5
32787
32788         ac_header_compiler=no
32789 fi
32790
32791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32793 echo "${ECHO_T}$ac_header_compiler" >&6; }
32794
32795 # Is the header present?
32796 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32797 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32798 cat >conftest.$ac_ext <<_ACEOF
32799 /* confdefs.h.  */
32800 _ACEOF
32801 cat confdefs.h >>conftest.$ac_ext
32802 cat >>conftest.$ac_ext <<_ACEOF
32803 /* end confdefs.h.  */
32804 #include <sys/statvfs.h>
32805 _ACEOF
32806 if { (ac_try="$ac_cpp conftest.$ac_ext"
32807 case "(($ac_try" in
32808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809   *) ac_try_echo=$ac_try;;
32810 esac
32811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32813   ac_status=$?
32814   grep -v '^ *+' conftest.er1 >conftest.err
32815   rm -f conftest.er1
32816   cat conftest.err >&5
32817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818   (exit $ac_status); } >/dev/null && {
32819          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32820          test ! -s conftest.err
32821        }; then
32822   ac_header_preproc=yes
32823 else
32824   echo "$as_me: failed program was:" >&5
32825 sed 's/^/| /' conftest.$ac_ext >&5
32826
32827   ac_header_preproc=no
32828 fi
32829
32830 rm -f conftest.err conftest.$ac_ext
32831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32832 echo "${ECHO_T}$ac_header_preproc" >&6; }
32833
32834 # So?  What about this header?
32835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32836   yes:no: )
32837     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32838 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32839     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32840 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32841     ac_header_preproc=yes
32842     ;;
32843   no:yes:* )
32844     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32845 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32846     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32847 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32848     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32849 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32850     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32851 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32852     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32853 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32854     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32855 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32856
32857     ;;
32858 esac
32859 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32860 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32861 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32862   echo $ECHO_N "(cached) $ECHO_C" >&6
32863 else
32864   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32865 fi
32866 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32867 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32868
32869 fi
32870 if test $ac_cv_header_sys_statvfs_h = yes; then
32871
32872 cat >>confdefs.h <<\_ACEOF
32873 #define HAVE_SYS_STATVFS_H 1
32874 _ACEOF
32875
32876 fi
32877
32878
32879
32880 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32881 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32882 if test "${ac_cv_type_signal+set}" = set; then
32883   echo $ECHO_N "(cached) $ECHO_C" >&6
32884 else
32885   cat >conftest.$ac_ext <<_ACEOF
32886 /* confdefs.h.  */
32887 _ACEOF
32888 cat confdefs.h >>conftest.$ac_ext
32889 cat >>conftest.$ac_ext <<_ACEOF
32890 /* end confdefs.h.  */
32891 #include <sys/types.h>
32892 #include <signal.h>
32893
32894 int
32895 main ()
32896 {
32897 return *(signal (0, 0)) (0) == 1;
32898   ;
32899   return 0;
32900 }
32901 _ACEOF
32902 rm -f conftest.$ac_objext
32903 if { (ac_try="$ac_compile"
32904 case "(($ac_try" in
32905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906   *) ac_try_echo=$ac_try;;
32907 esac
32908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32909   (eval "$ac_compile") 2>conftest.er1
32910   ac_status=$?
32911   grep -v '^ *+' conftest.er1 >conftest.err
32912   rm -f conftest.er1
32913   cat conftest.err >&5
32914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915   (exit $ac_status); } && {
32916          test -z "$ac_c_werror_flag" ||
32917          test ! -s conftest.err
32918        } && test -s conftest.$ac_objext; then
32919   ac_cv_type_signal=int
32920 else
32921   echo "$as_me: failed program was:" >&5
32922 sed 's/^/| /' conftest.$ac_ext >&5
32923
32924         ac_cv_type_signal=void
32925 fi
32926
32927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32928 fi
32929 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32930 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32931
32932 cat >>confdefs.h <<_ACEOF
32933 #define RETSIGTYPE $ac_cv_type_signal
32934 _ACEOF
32935
32936
32937
32938   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32939 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32940   if test "${bash_cv_signal_vintage+set}" = set; then
32941   echo $ECHO_N "(cached) $ECHO_C" >&6
32942 else
32943
32944     cat >conftest.$ac_ext <<_ACEOF
32945 /* confdefs.h.  */
32946 _ACEOF
32947 cat confdefs.h >>conftest.$ac_ext
32948 cat >>conftest.$ac_ext <<_ACEOF
32949 /* end confdefs.h.  */
32950 #include <signal.h>
32951 int
32952 main ()
32953 {
32954
32955       sigset_t ss;
32956       struct sigaction sa;
32957       sigemptyset(&ss); sigsuspend(&ss);
32958       sigaction(SIGINT, &sa, (struct sigaction *) 0);
32959       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32960
32961   ;
32962   return 0;
32963 }
32964 _ACEOF
32965 rm -f conftest.$ac_objext conftest$ac_exeext
32966 if { (ac_try="$ac_link"
32967 case "(($ac_try" in
32968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969   *) ac_try_echo=$ac_try;;
32970 esac
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972   (eval "$ac_link") 2>conftest.er1
32973   ac_status=$?
32974   grep -v '^ *+' conftest.er1 >conftest.err
32975   rm -f conftest.er1
32976   cat conftest.err >&5
32977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978   (exit $ac_status); } && {
32979          test -z "$ac_c_werror_flag" ||
32980          test ! -s conftest.err
32981        } && test -s conftest$ac_exeext &&
32982        $as_test_x conftest$ac_exeext; then
32983   bash_cv_signal_vintage="posix"
32984 else
32985   echo "$as_me: failed program was:" >&5
32986 sed 's/^/| /' conftest.$ac_ext >&5
32987
32988
32989       cat >conftest.$ac_ext <<_ACEOF
32990 /* confdefs.h.  */
32991 _ACEOF
32992 cat confdefs.h >>conftest.$ac_ext
32993 cat >>conftest.$ac_ext <<_ACEOF
32994 /* end confdefs.h.  */
32995 #include <signal.h>
32996 int
32997 main ()
32998 {
32999
33000           int mask = sigmask(SIGINT);
33001           sigsetmask(mask); sigblock(mask); sigpause(mask);
33002
33003   ;
33004   return 0;
33005 }
33006 _ACEOF
33007 rm -f conftest.$ac_objext conftest$ac_exeext
33008 if { (ac_try="$ac_link"
33009 case "(($ac_try" in
33010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33011   *) ac_try_echo=$ac_try;;
33012 esac
33013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33014   (eval "$ac_link") 2>conftest.er1
33015   ac_status=$?
33016   grep -v '^ *+' conftest.er1 >conftest.err
33017   rm -f conftest.er1
33018   cat conftest.err >&5
33019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020   (exit $ac_status); } && {
33021          test -z "$ac_c_werror_flag" ||
33022          test ! -s conftest.err
33023        } && test -s conftest$ac_exeext &&
33024        $as_test_x conftest$ac_exeext; then
33025   bash_cv_signal_vintage="4.2bsd"
33026 else
33027   echo "$as_me: failed program was:" >&5
33028 sed 's/^/| /' conftest.$ac_ext >&5
33029
33030
33031         cat >conftest.$ac_ext <<_ACEOF
33032 /* confdefs.h.  */
33033 _ACEOF
33034 cat confdefs.h >>conftest.$ac_ext
33035 cat >>conftest.$ac_ext <<_ACEOF
33036 /* end confdefs.h.  */
33037
33038           #include <signal.h>
33039           RETSIGTYPE foo() { }
33040 int
33041 main ()
33042 {
33043
33044                   int mask = sigmask(SIGINT);
33045                   sigset(SIGINT, foo); sigrelse(SIGINT);
33046                   sighold(SIGINT); sigpause(SIGINT);
33047
33048   ;
33049   return 0;
33050 }
33051 _ACEOF
33052 rm -f conftest.$ac_objext conftest$ac_exeext
33053 if { (ac_try="$ac_link"
33054 case "(($ac_try" in
33055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33056   *) ac_try_echo=$ac_try;;
33057 esac
33058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33059   (eval "$ac_link") 2>conftest.er1
33060   ac_status=$?
33061   grep -v '^ *+' conftest.er1 >conftest.err
33062   rm -f conftest.er1
33063   cat conftest.err >&5
33064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065   (exit $ac_status); } && {
33066          test -z "$ac_c_werror_flag" ||
33067          test ! -s conftest.err
33068        } && test -s conftest$ac_exeext &&
33069        $as_test_x conftest$ac_exeext; then
33070   bash_cv_signal_vintage="svr3"
33071 else
33072   echo "$as_me: failed program was:" >&5
33073 sed 's/^/| /' conftest.$ac_ext >&5
33074
33075         bash_cv_signal_vintage="v7"
33076
33077 fi
33078
33079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33080       conftest$ac_exeext conftest.$ac_ext
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   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33095 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33096   if test "$bash_cv_signal_vintage" = "posix"; then
33097     cat >>confdefs.h <<\_ACEOF
33098 #define HAVE_POSIX_SIGNALS 1
33099 _ACEOF
33100
33101   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33102     cat >>confdefs.h <<\_ACEOF
33103 #define HAVE_BSD_SIGNALS 1
33104 _ACEOF
33105
33106   elif test "$bash_cv_signal_vintage" = "svr3"; then
33107     cat >>confdefs.h <<\_ACEOF
33108 #define HAVE_USG_SIGHOLD 1
33109 _ACEOF
33110
33111   fi
33112
33113 { echo "$as_me:$LINENO: checking for mode_t" >&5
33114 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33115 if test "${ac_cv_type_mode_t+set}" = set; then
33116   echo $ECHO_N "(cached) $ECHO_C" >&6
33117 else
33118   cat >conftest.$ac_ext <<_ACEOF
33119 /* confdefs.h.  */
33120 _ACEOF
33121 cat confdefs.h >>conftest.$ac_ext
33122 cat >>conftest.$ac_ext <<_ACEOF
33123 /* end confdefs.h.  */
33124 $ac_includes_default
33125 typedef mode_t ac__type_new_;
33126 int
33127 main ()
33128 {
33129 if ((ac__type_new_ *) 0)
33130   return 0;
33131 if (sizeof (ac__type_new_))
33132   return 0;
33133   ;
33134   return 0;
33135 }
33136 _ACEOF
33137 rm -f conftest.$ac_objext
33138 if { (ac_try="$ac_compile"
33139 case "(($ac_try" in
33140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33141   *) ac_try_echo=$ac_try;;
33142 esac
33143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144   (eval "$ac_compile") 2>conftest.er1
33145   ac_status=$?
33146   grep -v '^ *+' conftest.er1 >conftest.err
33147   rm -f conftest.er1
33148   cat conftest.err >&5
33149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150   (exit $ac_status); } && {
33151          test -z "$ac_c_werror_flag" ||
33152          test ! -s conftest.err
33153        } && test -s conftest.$ac_objext; then
33154   ac_cv_type_mode_t=yes
33155 else
33156   echo "$as_me: failed program was:" >&5
33157 sed 's/^/| /' conftest.$ac_ext >&5
33158
33159         ac_cv_type_mode_t=no
33160 fi
33161
33162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33163 fi
33164 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33165 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33166 if test $ac_cv_type_mode_t = yes; then
33167   :
33168 else
33169
33170 cat >>confdefs.h <<_ACEOF
33171 #define mode_t int
33172 _ACEOF
33173
33174 fi
33175
33176 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33177 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33178 if test "${ac_cv_type_uid_t+set}" = set; then
33179   echo $ECHO_N "(cached) $ECHO_C" >&6
33180 else
33181   cat >conftest.$ac_ext <<_ACEOF
33182 /* confdefs.h.  */
33183 _ACEOF
33184 cat confdefs.h >>conftest.$ac_ext
33185 cat >>conftest.$ac_ext <<_ACEOF
33186 /* end confdefs.h.  */
33187 #include <sys/types.h>
33188
33189 _ACEOF
33190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33191   $EGREP "uid_t" >/dev/null 2>&1; then
33192   ac_cv_type_uid_t=yes
33193 else
33194   ac_cv_type_uid_t=no
33195 fi
33196 rm -f conftest*
33197
33198 fi
33199 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33200 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33201 if test $ac_cv_type_uid_t = no; then
33202
33203 cat >>confdefs.h <<\_ACEOF
33204 #define uid_t int
33205 _ACEOF
33206
33207
33208 cat >>confdefs.h <<\_ACEOF
33209 #define gid_t int
33210 _ACEOF
33211
33212 fi
33213
33214 { echo "$as_me:$LINENO: checking for size_t" >&5
33215 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33216 if test "${ac_cv_type_size_t+set}" = set; then
33217   echo $ECHO_N "(cached) $ECHO_C" >&6
33218 else
33219   cat >conftest.$ac_ext <<_ACEOF
33220 /* confdefs.h.  */
33221 _ACEOF
33222 cat confdefs.h >>conftest.$ac_ext
33223 cat >>conftest.$ac_ext <<_ACEOF
33224 /* end confdefs.h.  */
33225 $ac_includes_default
33226 typedef size_t ac__type_new_;
33227 int
33228 main ()
33229 {
33230 if ((ac__type_new_ *) 0)
33231   return 0;
33232 if (sizeof (ac__type_new_))
33233   return 0;
33234   ;
33235   return 0;
33236 }
33237 _ACEOF
33238 rm -f conftest.$ac_objext
33239 if { (ac_try="$ac_compile"
33240 case "(($ac_try" in
33241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33242   *) ac_try_echo=$ac_try;;
33243 esac
33244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33245   (eval "$ac_compile") 2>conftest.er1
33246   ac_status=$?
33247   grep -v '^ *+' conftest.er1 >conftest.err
33248   rm -f conftest.er1
33249   cat conftest.err >&5
33250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251   (exit $ac_status); } && {
33252          test -z "$ac_c_werror_flag" ||
33253          test ! -s conftest.err
33254        } && test -s conftest.$ac_objext; then
33255   ac_cv_type_size_t=yes
33256 else
33257   echo "$as_me: failed program was:" >&5
33258 sed 's/^/| /' conftest.$ac_ext >&5
33259
33260         ac_cv_type_size_t=no
33261 fi
33262
33263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33264 fi
33265 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33266 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33267 if test $ac_cv_type_size_t = yes; then
33268   :
33269 else
33270
33271 cat >>confdefs.h <<_ACEOF
33272 #define size_t unsigned int
33273 _ACEOF
33274
33275 fi
33276
33277 { echo "$as_me:$LINENO: checking for pid_t" >&5
33278 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33279 if test "${ac_cv_type_pid_t+set}" = set; then
33280   echo $ECHO_N "(cached) $ECHO_C" >&6
33281 else
33282   cat >conftest.$ac_ext <<_ACEOF
33283 /* confdefs.h.  */
33284 _ACEOF
33285 cat confdefs.h >>conftest.$ac_ext
33286 cat >>conftest.$ac_ext <<_ACEOF
33287 /* end confdefs.h.  */
33288 $ac_includes_default
33289 typedef pid_t ac__type_new_;
33290 int
33291 main ()
33292 {
33293 if ((ac__type_new_ *) 0)
33294   return 0;
33295 if (sizeof (ac__type_new_))
33296   return 0;
33297   ;
33298   return 0;
33299 }
33300 _ACEOF
33301 rm -f conftest.$ac_objext
33302 if { (ac_try="$ac_compile"
33303 case "(($ac_try" in
33304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33305   *) ac_try_echo=$ac_try;;
33306 esac
33307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33308   (eval "$ac_compile") 2>conftest.er1
33309   ac_status=$?
33310   grep -v '^ *+' conftest.er1 >conftest.err
33311   rm -f conftest.er1
33312   cat conftest.err >&5
33313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314   (exit $ac_status); } && {
33315          test -z "$ac_c_werror_flag" ||
33316          test ! -s conftest.err
33317        } && test -s conftest.$ac_objext; then
33318   ac_cv_type_pid_t=yes
33319 else
33320   echo "$as_me: failed program was:" >&5
33321 sed 's/^/| /' conftest.$ac_ext >&5
33322
33323         ac_cv_type_pid_t=no
33324 fi
33325
33326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33327 fi
33328 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33329 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33330 if test $ac_cv_type_pid_t = yes; then
33331   :
33332 else
33333
33334 cat >>confdefs.h <<_ACEOF
33335 #define pid_t int
33336 _ACEOF
33337
33338 fi
33339
33340 { echo "$as_me:$LINENO: checking for off_t" >&5
33341 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33342 if test "${ac_cv_type_off_t+set}" = set; then
33343   echo $ECHO_N "(cached) $ECHO_C" >&6
33344 else
33345   cat >conftest.$ac_ext <<_ACEOF
33346 /* confdefs.h.  */
33347 _ACEOF
33348 cat confdefs.h >>conftest.$ac_ext
33349 cat >>conftest.$ac_ext <<_ACEOF
33350 /* end confdefs.h.  */
33351 $ac_includes_default
33352 typedef off_t ac__type_new_;
33353 int
33354 main ()
33355 {
33356 if ((ac__type_new_ *) 0)
33357   return 0;
33358 if (sizeof (ac__type_new_))
33359   return 0;
33360   ;
33361   return 0;
33362 }
33363 _ACEOF
33364 rm -f conftest.$ac_objext
33365 if { (ac_try="$ac_compile"
33366 case "(($ac_try" in
33367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33368   *) ac_try_echo=$ac_try;;
33369 esac
33370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33371   (eval "$ac_compile") 2>conftest.er1
33372   ac_status=$?
33373   grep -v '^ *+' conftest.er1 >conftest.err
33374   rm -f conftest.er1
33375   cat conftest.err >&5
33376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377   (exit $ac_status); } && {
33378          test -z "$ac_c_werror_flag" ||
33379          test ! -s conftest.err
33380        } && test -s conftest.$ac_objext; then
33381   ac_cv_type_off_t=yes
33382 else
33383   echo "$as_me: failed program was:" >&5
33384 sed 's/^/| /' conftest.$ac_ext >&5
33385
33386         ac_cv_type_off_t=no
33387 fi
33388
33389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33390 fi
33391 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33392 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33393 if test $ac_cv_type_off_t = yes; then
33394   :
33395 else
33396
33397 cat >>confdefs.h <<_ACEOF
33398 #define off_t long int
33399 _ACEOF
33400
33401 fi
33402
33403 { echo "$as_me:$LINENO: checking for ino_t" >&5
33404 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33405 if test "${ac_cv_type_ino_t+set}" = set; then
33406   echo $ECHO_N "(cached) $ECHO_C" >&6
33407 else
33408   cat >conftest.$ac_ext <<_ACEOF
33409 /* confdefs.h.  */
33410 _ACEOF
33411 cat confdefs.h >>conftest.$ac_ext
33412 cat >>conftest.$ac_ext <<_ACEOF
33413 /* end confdefs.h.  */
33414 $ac_includes_default
33415 typedef ino_t ac__type_new_;
33416 int
33417 main ()
33418 {
33419 if ((ac__type_new_ *) 0)
33420   return 0;
33421 if (sizeof (ac__type_new_))
33422   return 0;
33423   ;
33424   return 0;
33425 }
33426 _ACEOF
33427 rm -f conftest.$ac_objext
33428 if { (ac_try="$ac_compile"
33429 case "(($ac_try" in
33430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33431   *) ac_try_echo=$ac_try;;
33432 esac
33433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33434   (eval "$ac_compile") 2>conftest.er1
33435   ac_status=$?
33436   grep -v '^ *+' conftest.er1 >conftest.err
33437   rm -f conftest.er1
33438   cat conftest.err >&5
33439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440   (exit $ac_status); } && {
33441          test -z "$ac_c_werror_flag" ||
33442          test ! -s conftest.err
33443        } && test -s conftest.$ac_objext; then
33444   ac_cv_type_ino_t=yes
33445 else
33446   echo "$as_me: failed program was:" >&5
33447 sed 's/^/| /' conftest.$ac_ext >&5
33448
33449         ac_cv_type_ino_t=no
33450 fi
33451
33452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33453 fi
33454 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33455 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33456 if test $ac_cv_type_ino_t = yes; then
33457   :
33458 else
33459
33460 cat >>confdefs.h <<_ACEOF
33461 #define ino_t unsigned long
33462 _ACEOF
33463
33464 fi
33465
33466 { echo "$as_me:$LINENO: checking for dev_t" >&5
33467 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33468 if test "${ac_cv_type_dev_t+set}" = set; then
33469   echo $ECHO_N "(cached) $ECHO_C" >&6
33470 else
33471   cat >conftest.$ac_ext <<_ACEOF
33472 /* confdefs.h.  */
33473 _ACEOF
33474 cat confdefs.h >>conftest.$ac_ext
33475 cat >>conftest.$ac_ext <<_ACEOF
33476 /* end confdefs.h.  */
33477 $ac_includes_default
33478 typedef dev_t ac__type_new_;
33479 int
33480 main ()
33481 {
33482 if ((ac__type_new_ *) 0)
33483   return 0;
33484 if (sizeof (ac__type_new_))
33485   return 0;
33486   ;
33487   return 0;
33488 }
33489 _ACEOF
33490 rm -f conftest.$ac_objext
33491 if { (ac_try="$ac_compile"
33492 case "(($ac_try" in
33493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33494   *) ac_try_echo=$ac_try;;
33495 esac
33496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33497   (eval "$ac_compile") 2>conftest.er1
33498   ac_status=$?
33499   grep -v '^ *+' conftest.er1 >conftest.err
33500   rm -f conftest.er1
33501   cat conftest.err >&5
33502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33503   (exit $ac_status); } && {
33504          test -z "$ac_c_werror_flag" ||
33505          test ! -s conftest.err
33506        } && test -s conftest.$ac_objext; then
33507   ac_cv_type_dev_t=yes
33508 else
33509   echo "$as_me: failed program was:" >&5
33510 sed 's/^/| /' conftest.$ac_ext >&5
33511
33512         ac_cv_type_dev_t=no
33513 fi
33514
33515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33516 fi
33517 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33518 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33519 if test $ac_cv_type_dev_t = yes; then
33520   :
33521 else
33522
33523 cat >>confdefs.h <<_ACEOF
33524 #define dev_t unsigned long
33525 _ACEOF
33526
33527 fi
33528
33529 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33530 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33531 if test "${ac_cv_type_daddr_t+set}" = set; then
33532   echo $ECHO_N "(cached) $ECHO_C" >&6
33533 else
33534   cat >conftest.$ac_ext <<_ACEOF
33535 /* confdefs.h.  */
33536 _ACEOF
33537 cat confdefs.h >>conftest.$ac_ext
33538 cat >>conftest.$ac_ext <<_ACEOF
33539 /* end confdefs.h.  */
33540 $ac_includes_default
33541 typedef daddr_t ac__type_new_;
33542 int
33543 main ()
33544 {
33545 if ((ac__type_new_ *) 0)
33546   return 0;
33547 if (sizeof (ac__type_new_))
33548   return 0;
33549   ;
33550   return 0;
33551 }
33552 _ACEOF
33553 rm -f conftest.$ac_objext
33554 if { (ac_try="$ac_compile"
33555 case "(($ac_try" in
33556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33557   *) ac_try_echo=$ac_try;;
33558 esac
33559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33560   (eval "$ac_compile") 2>conftest.er1
33561   ac_status=$?
33562   grep -v '^ *+' conftest.er1 >conftest.err
33563   rm -f conftest.er1
33564   cat conftest.err >&5
33565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566   (exit $ac_status); } && {
33567          test -z "$ac_c_werror_flag" ||
33568          test ! -s conftest.err
33569        } && test -s conftest.$ac_objext; then
33570   ac_cv_type_daddr_t=yes
33571 else
33572   echo "$as_me: failed program was:" >&5
33573 sed 's/^/| /' conftest.$ac_ext >&5
33574
33575         ac_cv_type_daddr_t=no
33576 fi
33577
33578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33579 fi
33580 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33581 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33582 if test $ac_cv_type_daddr_t = yes; then
33583   :
33584 else
33585
33586 cat >>confdefs.h <<_ACEOF
33587 #define daddr_t long
33588 _ACEOF
33589
33590 fi
33591
33592 { echo "$as_me:$LINENO: checking for major_t" >&5
33593 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33594 if test "${ac_cv_type_major_t+set}" = set; then
33595   echo $ECHO_N "(cached) $ECHO_C" >&6
33596 else
33597   cat >conftest.$ac_ext <<_ACEOF
33598 /* confdefs.h.  */
33599 _ACEOF
33600 cat confdefs.h >>conftest.$ac_ext
33601 cat >>conftest.$ac_ext <<_ACEOF
33602 /* end confdefs.h.  */
33603 $ac_includes_default
33604 typedef major_t ac__type_new_;
33605 int
33606 main ()
33607 {
33608 if ((ac__type_new_ *) 0)
33609   return 0;
33610 if (sizeof (ac__type_new_))
33611   return 0;
33612   ;
33613   return 0;
33614 }
33615 _ACEOF
33616 rm -f conftest.$ac_objext
33617 if { (ac_try="$ac_compile"
33618 case "(($ac_try" in
33619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620   *) ac_try_echo=$ac_try;;
33621 esac
33622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623   (eval "$ac_compile") 2>conftest.er1
33624   ac_status=$?
33625   grep -v '^ *+' conftest.er1 >conftest.err
33626   rm -f conftest.er1
33627   cat conftest.err >&5
33628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629   (exit $ac_status); } && {
33630          test -z "$ac_c_werror_flag" ||
33631          test ! -s conftest.err
33632        } && test -s conftest.$ac_objext; then
33633   ac_cv_type_major_t=yes
33634 else
33635   echo "$as_me: failed program was:" >&5
33636 sed 's/^/| /' conftest.$ac_ext >&5
33637
33638         ac_cv_type_major_t=no
33639 fi
33640
33641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33642 fi
33643 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33644 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33645 if test $ac_cv_type_major_t = yes; then
33646   :
33647 else
33648
33649 cat >>confdefs.h <<_ACEOF
33650 #define major_t int
33651 _ACEOF
33652
33653 fi
33654
33655 { echo "$as_me:$LINENO: checking for minor_t" >&5
33656 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33657 if test "${ac_cv_type_minor_t+set}" = set; then
33658   echo $ECHO_N "(cached) $ECHO_C" >&6
33659 else
33660   cat >conftest.$ac_ext <<_ACEOF
33661 /* confdefs.h.  */
33662 _ACEOF
33663 cat confdefs.h >>conftest.$ac_ext
33664 cat >>conftest.$ac_ext <<_ACEOF
33665 /* end confdefs.h.  */
33666 $ac_includes_default
33667 typedef minor_t ac__type_new_;
33668 int
33669 main ()
33670 {
33671 if ((ac__type_new_ *) 0)
33672   return 0;
33673 if (sizeof (ac__type_new_))
33674   return 0;
33675   ;
33676   return 0;
33677 }
33678 _ACEOF
33679 rm -f conftest.$ac_objext
33680 if { (ac_try="$ac_compile"
33681 case "(($ac_try" in
33682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33683   *) ac_try_echo=$ac_try;;
33684 esac
33685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33686   (eval "$ac_compile") 2>conftest.er1
33687   ac_status=$?
33688   grep -v '^ *+' conftest.er1 >conftest.err
33689   rm -f conftest.er1
33690   cat conftest.err >&5
33691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692   (exit $ac_status); } && {
33693          test -z "$ac_c_werror_flag" ||
33694          test ! -s conftest.err
33695        } && test -s conftest.$ac_objext; then
33696   ac_cv_type_minor_t=yes
33697 else
33698   echo "$as_me: failed program was:" >&5
33699 sed 's/^/| /' conftest.$ac_ext >&5
33700
33701         ac_cv_type_minor_t=no
33702 fi
33703
33704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33705 fi
33706 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33707 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33708 if test $ac_cv_type_minor_t = yes; then
33709   :
33710 else
33711
33712 cat >>confdefs.h <<_ACEOF
33713 #define minor_t int
33714 _ACEOF
33715
33716 fi
33717
33718 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33719 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33720 if test "${ac_cv_type_ssize_t+set}" = set; then
33721   echo $ECHO_N "(cached) $ECHO_C" >&6
33722 else
33723   cat >conftest.$ac_ext <<_ACEOF
33724 /* confdefs.h.  */
33725 _ACEOF
33726 cat confdefs.h >>conftest.$ac_ext
33727 cat >>conftest.$ac_ext <<_ACEOF
33728 /* end confdefs.h.  */
33729 $ac_includes_default
33730 typedef ssize_t ac__type_new_;
33731 int
33732 main ()
33733 {
33734 if ((ac__type_new_ *) 0)
33735   return 0;
33736 if (sizeof (ac__type_new_))
33737   return 0;
33738   ;
33739   return 0;
33740 }
33741 _ACEOF
33742 rm -f conftest.$ac_objext
33743 if { (ac_try="$ac_compile"
33744 case "(($ac_try" in
33745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33746   *) ac_try_echo=$ac_try;;
33747 esac
33748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33749   (eval "$ac_compile") 2>conftest.er1
33750   ac_status=$?
33751   grep -v '^ *+' conftest.er1 >conftest.err
33752   rm -f conftest.er1
33753   cat conftest.err >&5
33754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33755   (exit $ac_status); } && {
33756          test -z "$ac_c_werror_flag" ||
33757          test ! -s conftest.err
33758        } && test -s conftest.$ac_objext; then
33759   ac_cv_type_ssize_t=yes
33760 else
33761   echo "$as_me: failed program was:" >&5
33762 sed 's/^/| /' conftest.$ac_ext >&5
33763
33764         ac_cv_type_ssize_t=no
33765 fi
33766
33767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33768 fi
33769 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33770 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33771 if test $ac_cv_type_ssize_t = yes; then
33772   :
33773 else
33774
33775 cat >>confdefs.h <<_ACEOF
33776 #define ssize_t int
33777 _ACEOF
33778
33779 fi
33780
33781 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33782 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33783 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33784   echo $ECHO_N "(cached) $ECHO_C" >&6
33785 else
33786   cat >conftest.$ac_ext <<_ACEOF
33787 /* confdefs.h.  */
33788 _ACEOF
33789 cat confdefs.h >>conftest.$ac_ext
33790 cat >>conftest.$ac_ext <<_ACEOF
33791 /* end confdefs.h.  */
33792 $ac_includes_default
33793 int
33794 main ()
33795 {
33796 static struct stat ac_aggr;
33797 if (ac_aggr.st_blocks)
33798 return 0;
33799   ;
33800   return 0;
33801 }
33802 _ACEOF
33803 rm -f conftest.$ac_objext
33804 if { (ac_try="$ac_compile"
33805 case "(($ac_try" in
33806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33807   *) ac_try_echo=$ac_try;;
33808 esac
33809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33810   (eval "$ac_compile") 2>conftest.er1
33811   ac_status=$?
33812   grep -v '^ *+' conftest.er1 >conftest.err
33813   rm -f conftest.er1
33814   cat conftest.err >&5
33815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816   (exit $ac_status); } && {
33817          test -z "$ac_c_werror_flag" ||
33818          test ! -s conftest.err
33819        } && test -s conftest.$ac_objext; then
33820   ac_cv_member_struct_stat_st_blocks=yes
33821 else
33822   echo "$as_me: failed program was:" >&5
33823 sed 's/^/| /' conftest.$ac_ext >&5
33824
33825         cat >conftest.$ac_ext <<_ACEOF
33826 /* confdefs.h.  */
33827 _ACEOF
33828 cat confdefs.h >>conftest.$ac_ext
33829 cat >>conftest.$ac_ext <<_ACEOF
33830 /* end confdefs.h.  */
33831 $ac_includes_default
33832 int
33833 main ()
33834 {
33835 static struct stat ac_aggr;
33836 if (sizeof ac_aggr.st_blocks)
33837 return 0;
33838   ;
33839   return 0;
33840 }
33841 _ACEOF
33842 rm -f conftest.$ac_objext
33843 if { (ac_try="$ac_compile"
33844 case "(($ac_try" in
33845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33846   *) ac_try_echo=$ac_try;;
33847 esac
33848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33849   (eval "$ac_compile") 2>conftest.er1
33850   ac_status=$?
33851   grep -v '^ *+' conftest.er1 >conftest.err
33852   rm -f conftest.er1
33853   cat conftest.err >&5
33854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855   (exit $ac_status); } && {
33856          test -z "$ac_c_werror_flag" ||
33857          test ! -s conftest.err
33858        } && test -s conftest.$ac_objext; then
33859   ac_cv_member_struct_stat_st_blocks=yes
33860 else
33861   echo "$as_me: failed program was:" >&5
33862 sed 's/^/| /' conftest.$ac_ext >&5
33863
33864         ac_cv_member_struct_stat_st_blocks=no
33865 fi
33866
33867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33868 fi
33869
33870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33871 fi
33872 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33873 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33874 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33875
33876 cat >>confdefs.h <<_ACEOF
33877 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33878 _ACEOF
33879
33880
33881 cat >>confdefs.h <<\_ACEOF
33882 #define HAVE_ST_BLOCKS 1
33883 _ACEOF
33884
33885 else
33886   case " $LIBOBJS " in
33887   *" fileblocks.$ac_objext "* ) ;;
33888   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33889  ;;
33890 esac
33891
33892 fi
33893
33894
33895 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33896 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33897 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33898   echo $ECHO_N "(cached) $ECHO_C" >&6
33899 else
33900   cat >conftest.$ac_ext <<_ACEOF
33901 /* confdefs.h.  */
33902 _ACEOF
33903 cat confdefs.h >>conftest.$ac_ext
33904 cat >>conftest.$ac_ext <<_ACEOF
33905 /* end confdefs.h.  */
33906 $ac_includes_default
33907 int
33908 main ()
33909 {
33910 static struct stat ac_aggr;
33911 if (ac_aggr.st_rdev)
33912 return 0;
33913   ;
33914   return 0;
33915 }
33916 _ACEOF
33917 rm -f conftest.$ac_objext
33918 if { (ac_try="$ac_compile"
33919 case "(($ac_try" in
33920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33921   *) ac_try_echo=$ac_try;;
33922 esac
33923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33924   (eval "$ac_compile") 2>conftest.er1
33925   ac_status=$?
33926   grep -v '^ *+' conftest.er1 >conftest.err
33927   rm -f conftest.er1
33928   cat conftest.err >&5
33929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930   (exit $ac_status); } && {
33931          test -z "$ac_c_werror_flag" ||
33932          test ! -s conftest.err
33933        } && test -s conftest.$ac_objext; then
33934   ac_cv_member_struct_stat_st_rdev=yes
33935 else
33936   echo "$as_me: failed program was:" >&5
33937 sed 's/^/| /' conftest.$ac_ext >&5
33938
33939         cat >conftest.$ac_ext <<_ACEOF
33940 /* confdefs.h.  */
33941 _ACEOF
33942 cat confdefs.h >>conftest.$ac_ext
33943 cat >>conftest.$ac_ext <<_ACEOF
33944 /* end confdefs.h.  */
33945 $ac_includes_default
33946 int
33947 main ()
33948 {
33949 static struct stat ac_aggr;
33950 if (sizeof ac_aggr.st_rdev)
33951 return 0;
33952   ;
33953   return 0;
33954 }
33955 _ACEOF
33956 rm -f conftest.$ac_objext
33957 if { (ac_try="$ac_compile"
33958 case "(($ac_try" in
33959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33960   *) ac_try_echo=$ac_try;;
33961 esac
33962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33963   (eval "$ac_compile") 2>conftest.er1
33964   ac_status=$?
33965   grep -v '^ *+' conftest.er1 >conftest.err
33966   rm -f conftest.er1
33967   cat conftest.err >&5
33968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969   (exit $ac_status); } && {
33970          test -z "$ac_c_werror_flag" ||
33971          test ! -s conftest.err
33972        } && test -s conftest.$ac_objext; then
33973   ac_cv_member_struct_stat_st_rdev=yes
33974 else
33975   echo "$as_me: failed program was:" >&5
33976 sed 's/^/| /' conftest.$ac_ext >&5
33977
33978         ac_cv_member_struct_stat_st_rdev=no
33979 fi
33980
33981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33982 fi
33983
33984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33985 fi
33986 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33987 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33988 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33989
33990 cat >>confdefs.h <<_ACEOF
33991 #define HAVE_STRUCT_STAT_ST_RDEV 1
33992 _ACEOF
33993
33994
33995 cat >>confdefs.h <<\_ACEOF
33996 #define HAVE_ST_RDEV 1
33997 _ACEOF
33998
33999 fi
34000
34001
34002 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34003 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34004 if test "${ac_cv_struct_tm+set}" = set; then
34005   echo $ECHO_N "(cached) $ECHO_C" >&6
34006 else
34007   cat >conftest.$ac_ext <<_ACEOF
34008 /* confdefs.h.  */
34009 _ACEOF
34010 cat confdefs.h >>conftest.$ac_ext
34011 cat >>conftest.$ac_ext <<_ACEOF
34012 /* end confdefs.h.  */
34013 #include <sys/types.h>
34014 #include <time.h>
34015
34016 int
34017 main ()
34018 {
34019 struct tm tm;
34020                                      int *p = &tm.tm_sec;
34021                                      return !p;
34022   ;
34023   return 0;
34024 }
34025 _ACEOF
34026 rm -f conftest.$ac_objext
34027 if { (ac_try="$ac_compile"
34028 case "(($ac_try" in
34029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030   *) ac_try_echo=$ac_try;;
34031 esac
34032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34033   (eval "$ac_compile") 2>conftest.er1
34034   ac_status=$?
34035   grep -v '^ *+' conftest.er1 >conftest.err
34036   rm -f conftest.er1
34037   cat conftest.err >&5
34038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039   (exit $ac_status); } && {
34040          test -z "$ac_c_werror_flag" ||
34041          test ! -s conftest.err
34042        } && test -s conftest.$ac_objext; then
34043   ac_cv_struct_tm=time.h
34044 else
34045   echo "$as_me: failed program was:" >&5
34046 sed 's/^/| /' conftest.$ac_ext >&5
34047
34048         ac_cv_struct_tm=sys/time.h
34049 fi
34050
34051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34052 fi
34053 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34054 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34055 if test $ac_cv_struct_tm = sys/time.h; then
34056
34057 cat >>confdefs.h <<\_ACEOF
34058 #define TM_IN_SYS_TIME 1
34059 _ACEOF
34060
34061 fi
34062
34063 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34064 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34065 if test "${ac_cv_c_const+set}" = set; then
34066   echo $ECHO_N "(cached) $ECHO_C" >&6
34067 else
34068   cat >conftest.$ac_ext <<_ACEOF
34069 /* confdefs.h.  */
34070 _ACEOF
34071 cat confdefs.h >>conftest.$ac_ext
34072 cat >>conftest.$ac_ext <<_ACEOF
34073 /* end confdefs.h.  */
34074
34075 int
34076 main ()
34077 {
34078 /* FIXME: Include the comments suggested by Paul. */
34079 #ifndef __cplusplus
34080   /* Ultrix mips cc rejects this.  */
34081   typedef int charset[2];
34082   const charset cs;
34083   /* SunOS 4.1.1 cc rejects this.  */
34084   char const *const *pcpcc;
34085   char **ppc;
34086   /* NEC SVR4.0.2 mips cc rejects this.  */
34087   struct point {int x, y;};
34088   static struct point const zero = {0,0};
34089   /* AIX XL C 1.02.0.0 rejects this.
34090      It does not let you subtract one const X* pointer from another in
34091      an arm of an if-expression whose if-part is not a constant
34092      expression */
34093   const char *g = "string";
34094   pcpcc = &g + (g ? g-g : 0);
34095   /* HPUX 7.0 cc rejects these. */
34096   ++pcpcc;
34097   ppc = (char**) pcpcc;
34098   pcpcc = (char const *const *) ppc;
34099   { /* SCO 3.2v4 cc rejects this.  */
34100     char *t;
34101     char const *s = 0 ? (char *) 0 : (char const *) 0;
34102
34103     *t++ = 0;
34104     if (s) return 0;
34105   }
34106   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34107     int x[] = {25, 17};
34108     const int *foo = &x[0];
34109     ++foo;
34110   }
34111   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34112     typedef const int *iptr;
34113     iptr p = 0;
34114     ++p;
34115   }
34116   { /* AIX XL C 1.02.0.0 rejects this saying
34117        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34118     struct s { int j; const int *ap[3]; };
34119     struct s *b; b->j = 5;
34120   }
34121   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34122     const int foo = 10;
34123     if (!foo) return 0;
34124   }
34125   return !cs[0] && !zero.x;
34126 #endif
34127
34128   ;
34129   return 0;
34130 }
34131 _ACEOF
34132 rm -f conftest.$ac_objext
34133 if { (ac_try="$ac_compile"
34134 case "(($ac_try" in
34135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136   *) ac_try_echo=$ac_try;;
34137 esac
34138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34139   (eval "$ac_compile") 2>conftest.er1
34140   ac_status=$?
34141   grep -v '^ *+' conftest.er1 >conftest.err
34142   rm -f conftest.er1
34143   cat conftest.err >&5
34144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145   (exit $ac_status); } && {
34146          test -z "$ac_c_werror_flag" ||
34147          test ! -s conftest.err
34148        } && test -s conftest.$ac_objext; then
34149   ac_cv_c_const=yes
34150 else
34151   echo "$as_me: failed program was:" >&5
34152 sed 's/^/| /' conftest.$ac_ext >&5
34153
34154         ac_cv_c_const=no
34155 fi
34156
34157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34158 fi
34159 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34160 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34161 if test $ac_cv_c_const = no; then
34162
34163 cat >>confdefs.h <<\_ACEOF
34164 #define const
34165 _ACEOF
34166
34167 fi
34168
34169
34170 { echo "$as_me:$LINENO: checking for char" >&5
34171 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34172 if test "${ac_cv_type_char+set}" = set; then
34173   echo $ECHO_N "(cached) $ECHO_C" >&6
34174 else
34175   cat >conftest.$ac_ext <<_ACEOF
34176 /* confdefs.h.  */
34177 _ACEOF
34178 cat confdefs.h >>conftest.$ac_ext
34179 cat >>conftest.$ac_ext <<_ACEOF
34180 /* end confdefs.h.  */
34181 $ac_includes_default
34182 typedef char ac__type_new_;
34183 int
34184 main ()
34185 {
34186 if ((ac__type_new_ *) 0)
34187   return 0;
34188 if (sizeof (ac__type_new_))
34189   return 0;
34190   ;
34191   return 0;
34192 }
34193 _ACEOF
34194 rm -f conftest.$ac_objext
34195 if { (ac_try="$ac_compile"
34196 case "(($ac_try" in
34197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34198   *) ac_try_echo=$ac_try;;
34199 esac
34200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34201   (eval "$ac_compile") 2>conftest.er1
34202   ac_status=$?
34203   grep -v '^ *+' conftest.er1 >conftest.err
34204   rm -f conftest.er1
34205   cat conftest.err >&5
34206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207   (exit $ac_status); } && {
34208          test -z "$ac_c_werror_flag" ||
34209          test ! -s conftest.err
34210        } && test -s conftest.$ac_objext; then
34211   ac_cv_type_char=yes
34212 else
34213   echo "$as_me: failed program was:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34215
34216         ac_cv_type_char=no
34217 fi
34218
34219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34220 fi
34221 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34222 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34223
34224 # The cast to long int works around a bug in the HP C Compiler
34225 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34226 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34227 # This bug is HP SR number 8606223364.
34228 { echo "$as_me:$LINENO: checking size of char" >&5
34229 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34230 if test "${ac_cv_sizeof_char+set}" = set; then
34231   echo $ECHO_N "(cached) $ECHO_C" >&6
34232 else
34233   if test "$cross_compiling" = yes; then
34234   # Depending upon the size, compute the lo and hi bounds.
34235 cat >conftest.$ac_ext <<_ACEOF
34236 /* confdefs.h.  */
34237 _ACEOF
34238 cat confdefs.h >>conftest.$ac_ext
34239 cat >>conftest.$ac_ext <<_ACEOF
34240 /* end confdefs.h.  */
34241 $ac_includes_default
34242    typedef char ac__type_sizeof_;
34243 int
34244 main ()
34245 {
34246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34247 test_array [0] = 0
34248
34249   ;
34250   return 0;
34251 }
34252 _ACEOF
34253 rm -f conftest.$ac_objext
34254 if { (ac_try="$ac_compile"
34255 case "(($ac_try" in
34256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34257   *) ac_try_echo=$ac_try;;
34258 esac
34259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34260   (eval "$ac_compile") 2>conftest.er1
34261   ac_status=$?
34262   grep -v '^ *+' conftest.er1 >conftest.err
34263   rm -f conftest.er1
34264   cat conftest.err >&5
34265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266   (exit $ac_status); } && {
34267          test -z "$ac_c_werror_flag" ||
34268          test ! -s conftest.err
34269        } && test -s conftest.$ac_objext; then
34270   ac_lo=0 ac_mid=0
34271   while :; do
34272     cat >conftest.$ac_ext <<_ACEOF
34273 /* confdefs.h.  */
34274 _ACEOF
34275 cat confdefs.h >>conftest.$ac_ext
34276 cat >>conftest.$ac_ext <<_ACEOF
34277 /* end confdefs.h.  */
34278 $ac_includes_default
34279    typedef char ac__type_sizeof_;
34280 int
34281 main ()
34282 {
34283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34284 test_array [0] = 0
34285
34286   ;
34287   return 0;
34288 }
34289 _ACEOF
34290 rm -f conftest.$ac_objext
34291 if { (ac_try="$ac_compile"
34292 case "(($ac_try" in
34293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34294   *) ac_try_echo=$ac_try;;
34295 esac
34296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34297   (eval "$ac_compile") 2>conftest.er1
34298   ac_status=$?
34299   grep -v '^ *+' conftest.er1 >conftest.err
34300   rm -f conftest.er1
34301   cat conftest.err >&5
34302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34303   (exit $ac_status); } && {
34304          test -z "$ac_c_werror_flag" ||
34305          test ! -s conftest.err
34306        } && test -s conftest.$ac_objext; then
34307   ac_hi=$ac_mid; break
34308 else
34309   echo "$as_me: failed program was:" >&5
34310 sed 's/^/| /' conftest.$ac_ext >&5
34311
34312         ac_lo=`expr $ac_mid + 1`
34313                         if test $ac_lo -le $ac_mid; then
34314                           ac_lo= ac_hi=
34315                           break
34316                         fi
34317                         ac_mid=`expr 2 '*' $ac_mid + 1`
34318 fi
34319
34320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34321   done
34322 else
34323   echo "$as_me: failed program was:" >&5
34324 sed 's/^/| /' conftest.$ac_ext >&5
34325
34326         cat >conftest.$ac_ext <<_ACEOF
34327 /* confdefs.h.  */
34328 _ACEOF
34329 cat confdefs.h >>conftest.$ac_ext
34330 cat >>conftest.$ac_ext <<_ACEOF
34331 /* end confdefs.h.  */
34332 $ac_includes_default
34333    typedef char ac__type_sizeof_;
34334 int
34335 main ()
34336 {
34337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34338 test_array [0] = 0
34339
34340   ;
34341   return 0;
34342 }
34343 _ACEOF
34344 rm -f conftest.$ac_objext
34345 if { (ac_try="$ac_compile"
34346 case "(($ac_try" in
34347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34348   *) ac_try_echo=$ac_try;;
34349 esac
34350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34351   (eval "$ac_compile") 2>conftest.er1
34352   ac_status=$?
34353   grep -v '^ *+' conftest.er1 >conftest.err
34354   rm -f conftest.er1
34355   cat conftest.err >&5
34356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357   (exit $ac_status); } && {
34358          test -z "$ac_c_werror_flag" ||
34359          test ! -s conftest.err
34360        } && test -s conftest.$ac_objext; then
34361   ac_hi=-1 ac_mid=-1
34362   while :; do
34363     cat >conftest.$ac_ext <<_ACEOF
34364 /* confdefs.h.  */
34365 _ACEOF
34366 cat confdefs.h >>conftest.$ac_ext
34367 cat >>conftest.$ac_ext <<_ACEOF
34368 /* end confdefs.h.  */
34369 $ac_includes_default
34370    typedef char ac__type_sizeof_;
34371 int
34372 main ()
34373 {
34374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34375 test_array [0] = 0
34376
34377   ;
34378   return 0;
34379 }
34380 _ACEOF
34381 rm -f conftest.$ac_objext
34382 if { (ac_try="$ac_compile"
34383 case "(($ac_try" in
34384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34385   *) ac_try_echo=$ac_try;;
34386 esac
34387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34388   (eval "$ac_compile") 2>conftest.er1
34389   ac_status=$?
34390   grep -v '^ *+' conftest.er1 >conftest.err
34391   rm -f conftest.er1
34392   cat conftest.err >&5
34393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394   (exit $ac_status); } && {
34395          test -z "$ac_c_werror_flag" ||
34396          test ! -s conftest.err
34397        } && test -s conftest.$ac_objext; then
34398   ac_lo=$ac_mid; break
34399 else
34400   echo "$as_me: failed program was:" >&5
34401 sed 's/^/| /' conftest.$ac_ext >&5
34402
34403         ac_hi=`expr '(' $ac_mid ')' - 1`
34404                         if test $ac_mid -le $ac_hi; then
34405                           ac_lo= ac_hi=
34406                           break
34407                         fi
34408                         ac_mid=`expr 2 '*' $ac_mid`
34409 fi
34410
34411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34412   done
34413 else
34414   echo "$as_me: failed program was:" >&5
34415 sed 's/^/| /' conftest.$ac_ext >&5
34416
34417         ac_lo= ac_hi=
34418 fi
34419
34420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34421 fi
34422
34423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34424 # Binary search between lo and hi bounds.
34425 while test "x$ac_lo" != "x$ac_hi"; do
34426   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34427   cat >conftest.$ac_ext <<_ACEOF
34428 /* confdefs.h.  */
34429 _ACEOF
34430 cat confdefs.h >>conftest.$ac_ext
34431 cat >>conftest.$ac_ext <<_ACEOF
34432 /* end confdefs.h.  */
34433 $ac_includes_default
34434    typedef char ac__type_sizeof_;
34435 int
34436 main ()
34437 {
34438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34439 test_array [0] = 0
34440
34441   ;
34442   return 0;
34443 }
34444 _ACEOF
34445 rm -f conftest.$ac_objext
34446 if { (ac_try="$ac_compile"
34447 case "(($ac_try" in
34448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34449   *) ac_try_echo=$ac_try;;
34450 esac
34451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34452   (eval "$ac_compile") 2>conftest.er1
34453   ac_status=$?
34454   grep -v '^ *+' conftest.er1 >conftest.err
34455   rm -f conftest.er1
34456   cat conftest.err >&5
34457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458   (exit $ac_status); } && {
34459          test -z "$ac_c_werror_flag" ||
34460          test ! -s conftest.err
34461        } && test -s conftest.$ac_objext; then
34462   ac_hi=$ac_mid
34463 else
34464   echo "$as_me: failed program was:" >&5
34465 sed 's/^/| /' conftest.$ac_ext >&5
34466
34467         ac_lo=`expr '(' $ac_mid ')' + 1`
34468 fi
34469
34470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34471 done
34472 case $ac_lo in
34473 ?*) ac_cv_sizeof_char=$ac_lo;;
34474 '') if test "$ac_cv_type_char" = yes; then
34475      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34476 See \`config.log' for more details." >&5
34477 echo "$as_me: error: cannot compute sizeof (char)
34478 See \`config.log' for more details." >&2;}
34479    { (exit 77); exit 77; }; }
34480    else
34481      ac_cv_sizeof_char=0
34482    fi ;;
34483 esac
34484 else
34485   cat >conftest.$ac_ext <<_ACEOF
34486 /* confdefs.h.  */
34487 _ACEOF
34488 cat confdefs.h >>conftest.$ac_ext
34489 cat >>conftest.$ac_ext <<_ACEOF
34490 /* end confdefs.h.  */
34491 $ac_includes_default
34492    typedef char ac__type_sizeof_;
34493 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34494 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34495 #include <stdio.h>
34496 #include <stdlib.h>
34497 int
34498 main ()
34499 {
34500
34501   FILE *f = fopen ("conftest.val", "w");
34502   if (! f)
34503     return 1;
34504   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34505     {
34506       long int i = longval ();
34507       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34508         return 1;
34509       fprintf (f, "%ld\n", i);
34510     }
34511   else
34512     {
34513       unsigned long int i = ulongval ();
34514       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34515         return 1;
34516       fprintf (f, "%lu\n", i);
34517     }
34518   return ferror (f) || fclose (f) != 0;
34519
34520   ;
34521   return 0;
34522 }
34523 _ACEOF
34524 rm -f conftest$ac_exeext
34525 if { (ac_try="$ac_link"
34526 case "(($ac_try" in
34527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34528   *) ac_try_echo=$ac_try;;
34529 esac
34530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34531   (eval "$ac_link") 2>&5
34532   ac_status=$?
34533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34535   { (case "(($ac_try" in
34536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34537   *) ac_try_echo=$ac_try;;
34538 esac
34539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34540   (eval "$ac_try") 2>&5
34541   ac_status=$?
34542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543   (exit $ac_status); }; }; then
34544   ac_cv_sizeof_char=`cat conftest.val`
34545 else
34546   echo "$as_me: program exited with status $ac_status" >&5
34547 echo "$as_me: failed program was:" >&5
34548 sed 's/^/| /' conftest.$ac_ext >&5
34549
34550 ( exit $ac_status )
34551 if test "$ac_cv_type_char" = yes; then
34552      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34553 See \`config.log' for more details." >&5
34554 echo "$as_me: error: cannot compute sizeof (char)
34555 See \`config.log' for more details." >&2;}
34556    { (exit 77); exit 77; }; }
34557    else
34558      ac_cv_sizeof_char=0
34559    fi
34560 fi
34561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34562 fi
34563 rm -f conftest.val
34564 fi
34565 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34566 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34567
34568
34569
34570 cat >>confdefs.h <<_ACEOF
34571 #define SIZEOF_CHAR $ac_cv_sizeof_char
34572 _ACEOF
34573
34574
34575 { echo "$as_me:$LINENO: checking for short int" >&5
34576 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34577 if test "${ac_cv_type_short_int+set}" = set; then
34578   echo $ECHO_N "(cached) $ECHO_C" >&6
34579 else
34580   cat >conftest.$ac_ext <<_ACEOF
34581 /* confdefs.h.  */
34582 _ACEOF
34583 cat confdefs.h >>conftest.$ac_ext
34584 cat >>conftest.$ac_ext <<_ACEOF
34585 /* end confdefs.h.  */
34586 $ac_includes_default
34587 typedef short int ac__type_new_;
34588 int
34589 main ()
34590 {
34591 if ((ac__type_new_ *) 0)
34592   return 0;
34593 if (sizeof (ac__type_new_))
34594   return 0;
34595   ;
34596   return 0;
34597 }
34598 _ACEOF
34599 rm -f conftest.$ac_objext
34600 if { (ac_try="$ac_compile"
34601 case "(($ac_try" in
34602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34603   *) ac_try_echo=$ac_try;;
34604 esac
34605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34606   (eval "$ac_compile") 2>conftest.er1
34607   ac_status=$?
34608   grep -v '^ *+' conftest.er1 >conftest.err
34609   rm -f conftest.er1
34610   cat conftest.err >&5
34611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612   (exit $ac_status); } && {
34613          test -z "$ac_c_werror_flag" ||
34614          test ! -s conftest.err
34615        } && test -s conftest.$ac_objext; then
34616   ac_cv_type_short_int=yes
34617 else
34618   echo "$as_me: failed program was:" >&5
34619 sed 's/^/| /' conftest.$ac_ext >&5
34620
34621         ac_cv_type_short_int=no
34622 fi
34623
34624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34625 fi
34626 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34627 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34628
34629 # The cast to long int works around a bug in the HP C Compiler
34630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34632 # This bug is HP SR number 8606223364.
34633 { echo "$as_me:$LINENO: checking size of short int" >&5
34634 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34635 if test "${ac_cv_sizeof_short_int+set}" = set; then
34636   echo $ECHO_N "(cached) $ECHO_C" >&6
34637 else
34638   if test "$cross_compiling" = yes; then
34639   # Depending upon the size, compute the lo and hi bounds.
34640 cat >conftest.$ac_ext <<_ACEOF
34641 /* confdefs.h.  */
34642 _ACEOF
34643 cat confdefs.h >>conftest.$ac_ext
34644 cat >>conftest.$ac_ext <<_ACEOF
34645 /* end confdefs.h.  */
34646 $ac_includes_default
34647    typedef short int ac__type_sizeof_;
34648 int
34649 main ()
34650 {
34651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34652 test_array [0] = 0
34653
34654   ;
34655   return 0;
34656 }
34657 _ACEOF
34658 rm -f conftest.$ac_objext
34659 if { (ac_try="$ac_compile"
34660 case "(($ac_try" in
34661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34662   *) ac_try_echo=$ac_try;;
34663 esac
34664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34665   (eval "$ac_compile") 2>conftest.er1
34666   ac_status=$?
34667   grep -v '^ *+' conftest.er1 >conftest.err
34668   rm -f conftest.er1
34669   cat conftest.err >&5
34670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34671   (exit $ac_status); } && {
34672          test -z "$ac_c_werror_flag" ||
34673          test ! -s conftest.err
34674        } && test -s conftest.$ac_objext; then
34675   ac_lo=0 ac_mid=0
34676   while :; do
34677     cat >conftest.$ac_ext <<_ACEOF
34678 /* confdefs.h.  */
34679 _ACEOF
34680 cat confdefs.h >>conftest.$ac_ext
34681 cat >>conftest.$ac_ext <<_ACEOF
34682 /* end confdefs.h.  */
34683 $ac_includes_default
34684    typedef short int ac__type_sizeof_;
34685 int
34686 main ()
34687 {
34688 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34689 test_array [0] = 0
34690
34691   ;
34692   return 0;
34693 }
34694 _ACEOF
34695 rm -f conftest.$ac_objext
34696 if { (ac_try="$ac_compile"
34697 case "(($ac_try" in
34698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34699   *) ac_try_echo=$ac_try;;
34700 esac
34701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34702   (eval "$ac_compile") 2>conftest.er1
34703   ac_status=$?
34704   grep -v '^ *+' conftest.er1 >conftest.err
34705   rm -f conftest.er1
34706   cat conftest.err >&5
34707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34708   (exit $ac_status); } && {
34709          test -z "$ac_c_werror_flag" ||
34710          test ! -s conftest.err
34711        } && test -s conftest.$ac_objext; then
34712   ac_hi=$ac_mid; break
34713 else
34714   echo "$as_me: failed program was:" >&5
34715 sed 's/^/| /' conftest.$ac_ext >&5
34716
34717         ac_lo=`expr $ac_mid + 1`
34718                         if test $ac_lo -le $ac_mid; then
34719                           ac_lo= ac_hi=
34720                           break
34721                         fi
34722                         ac_mid=`expr 2 '*' $ac_mid + 1`
34723 fi
34724
34725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34726   done
34727 else
34728   echo "$as_me: failed program was:" >&5
34729 sed 's/^/| /' conftest.$ac_ext >&5
34730
34731         cat >conftest.$ac_ext <<_ACEOF
34732 /* confdefs.h.  */
34733 _ACEOF
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h.  */
34737 $ac_includes_default
34738    typedef short int ac__type_sizeof_;
34739 int
34740 main ()
34741 {
34742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34743 test_array [0] = 0
34744
34745   ;
34746   return 0;
34747 }
34748 _ACEOF
34749 rm -f conftest.$ac_objext
34750 if { (ac_try="$ac_compile"
34751 case "(($ac_try" in
34752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34753   *) ac_try_echo=$ac_try;;
34754 esac
34755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34756   (eval "$ac_compile") 2>conftest.er1
34757   ac_status=$?
34758   grep -v '^ *+' conftest.er1 >conftest.err
34759   rm -f conftest.er1
34760   cat conftest.err >&5
34761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762   (exit $ac_status); } && {
34763          test -z "$ac_c_werror_flag" ||
34764          test ! -s conftest.err
34765        } && test -s conftest.$ac_objext; then
34766   ac_hi=-1 ac_mid=-1
34767   while :; do
34768     cat >conftest.$ac_ext <<_ACEOF
34769 /* confdefs.h.  */
34770 _ACEOF
34771 cat confdefs.h >>conftest.$ac_ext
34772 cat >>conftest.$ac_ext <<_ACEOF
34773 /* end confdefs.h.  */
34774 $ac_includes_default
34775    typedef short int ac__type_sizeof_;
34776 int
34777 main ()
34778 {
34779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34780 test_array [0] = 0
34781
34782   ;
34783   return 0;
34784 }
34785 _ACEOF
34786 rm -f conftest.$ac_objext
34787 if { (ac_try="$ac_compile"
34788 case "(($ac_try" in
34789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34790   *) ac_try_echo=$ac_try;;
34791 esac
34792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34793   (eval "$ac_compile") 2>conftest.er1
34794   ac_status=$?
34795   grep -v '^ *+' conftest.er1 >conftest.err
34796   rm -f conftest.er1
34797   cat conftest.err >&5
34798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799   (exit $ac_status); } && {
34800          test -z "$ac_c_werror_flag" ||
34801          test ! -s conftest.err
34802        } && test -s conftest.$ac_objext; then
34803   ac_lo=$ac_mid; break
34804 else
34805   echo "$as_me: failed program was:" >&5
34806 sed 's/^/| /' conftest.$ac_ext >&5
34807
34808         ac_hi=`expr '(' $ac_mid ')' - 1`
34809                         if test $ac_mid -le $ac_hi; then
34810                           ac_lo= ac_hi=
34811                           break
34812                         fi
34813                         ac_mid=`expr 2 '*' $ac_mid`
34814 fi
34815
34816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34817   done
34818 else
34819   echo "$as_me: failed program was:" >&5
34820 sed 's/^/| /' conftest.$ac_ext >&5
34821
34822         ac_lo= ac_hi=
34823 fi
34824
34825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34826 fi
34827
34828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34829 # Binary search between lo and hi bounds.
34830 while test "x$ac_lo" != "x$ac_hi"; do
34831   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34832   cat >conftest.$ac_ext <<_ACEOF
34833 /* confdefs.h.  */
34834 _ACEOF
34835 cat confdefs.h >>conftest.$ac_ext
34836 cat >>conftest.$ac_ext <<_ACEOF
34837 /* end confdefs.h.  */
34838 $ac_includes_default
34839    typedef short int ac__type_sizeof_;
34840 int
34841 main ()
34842 {
34843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34844 test_array [0] = 0
34845
34846   ;
34847   return 0;
34848 }
34849 _ACEOF
34850 rm -f conftest.$ac_objext
34851 if { (ac_try="$ac_compile"
34852 case "(($ac_try" in
34853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34854   *) ac_try_echo=$ac_try;;
34855 esac
34856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34857   (eval "$ac_compile") 2>conftest.er1
34858   ac_status=$?
34859   grep -v '^ *+' conftest.er1 >conftest.err
34860   rm -f conftest.er1
34861   cat conftest.err >&5
34862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863   (exit $ac_status); } && {
34864          test -z "$ac_c_werror_flag" ||
34865          test ! -s conftest.err
34866        } && test -s conftest.$ac_objext; then
34867   ac_hi=$ac_mid
34868 else
34869   echo "$as_me: failed program was:" >&5
34870 sed 's/^/| /' conftest.$ac_ext >&5
34871
34872         ac_lo=`expr '(' $ac_mid ')' + 1`
34873 fi
34874
34875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34876 done
34877 case $ac_lo in
34878 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34879 '') if test "$ac_cv_type_short_int" = yes; then
34880      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34881 See \`config.log' for more details." >&5
34882 echo "$as_me: error: cannot compute sizeof (short int)
34883 See \`config.log' for more details." >&2;}
34884    { (exit 77); exit 77; }; }
34885    else
34886      ac_cv_sizeof_short_int=0
34887    fi ;;
34888 esac
34889 else
34890   cat >conftest.$ac_ext <<_ACEOF
34891 /* confdefs.h.  */
34892 _ACEOF
34893 cat confdefs.h >>conftest.$ac_ext
34894 cat >>conftest.$ac_ext <<_ACEOF
34895 /* end confdefs.h.  */
34896 $ac_includes_default
34897    typedef short int ac__type_sizeof_;
34898 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34899 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34900 #include <stdio.h>
34901 #include <stdlib.h>
34902 int
34903 main ()
34904 {
34905
34906   FILE *f = fopen ("conftest.val", "w");
34907   if (! f)
34908     return 1;
34909   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34910     {
34911       long int i = longval ();
34912       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34913         return 1;
34914       fprintf (f, "%ld\n", i);
34915     }
34916   else
34917     {
34918       unsigned long int i = ulongval ();
34919       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34920         return 1;
34921       fprintf (f, "%lu\n", i);
34922     }
34923   return ferror (f) || fclose (f) != 0;
34924
34925   ;
34926   return 0;
34927 }
34928 _ACEOF
34929 rm -f conftest$ac_exeext
34930 if { (ac_try="$ac_link"
34931 case "(($ac_try" in
34932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34933   *) ac_try_echo=$ac_try;;
34934 esac
34935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34936   (eval "$ac_link") 2>&5
34937   ac_status=$?
34938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34940   { (case "(($ac_try" in
34941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34942   *) ac_try_echo=$ac_try;;
34943 esac
34944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34945   (eval "$ac_try") 2>&5
34946   ac_status=$?
34947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948   (exit $ac_status); }; }; then
34949   ac_cv_sizeof_short_int=`cat conftest.val`
34950 else
34951   echo "$as_me: program exited with status $ac_status" >&5
34952 echo "$as_me: failed program was:" >&5
34953 sed 's/^/| /' conftest.$ac_ext >&5
34954
34955 ( exit $ac_status )
34956 if test "$ac_cv_type_short_int" = yes; then
34957      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34958 See \`config.log' for more details." >&5
34959 echo "$as_me: error: cannot compute sizeof (short int)
34960 See \`config.log' for more details." >&2;}
34961    { (exit 77); exit 77; }; }
34962    else
34963      ac_cv_sizeof_short_int=0
34964    fi
34965 fi
34966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34967 fi
34968 rm -f conftest.val
34969 fi
34970 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34971 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34972
34973
34974
34975 cat >>confdefs.h <<_ACEOF
34976 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34977 _ACEOF
34978
34979
34980 { echo "$as_me:$LINENO: checking for int" >&5
34981 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34982 if test "${ac_cv_type_int+set}" = set; then
34983   echo $ECHO_N "(cached) $ECHO_C" >&6
34984 else
34985   cat >conftest.$ac_ext <<_ACEOF
34986 /* confdefs.h.  */
34987 _ACEOF
34988 cat confdefs.h >>conftest.$ac_ext
34989 cat >>conftest.$ac_ext <<_ACEOF
34990 /* end confdefs.h.  */
34991 $ac_includes_default
34992 typedef int ac__type_new_;
34993 int
34994 main ()
34995 {
34996 if ((ac__type_new_ *) 0)
34997   return 0;
34998 if (sizeof (ac__type_new_))
34999   return 0;
35000   ;
35001   return 0;
35002 }
35003 _ACEOF
35004 rm -f conftest.$ac_objext
35005 if { (ac_try="$ac_compile"
35006 case "(($ac_try" in
35007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35008   *) ac_try_echo=$ac_try;;
35009 esac
35010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35011   (eval "$ac_compile") 2>conftest.er1
35012   ac_status=$?
35013   grep -v '^ *+' conftest.er1 >conftest.err
35014   rm -f conftest.er1
35015   cat conftest.err >&5
35016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017   (exit $ac_status); } && {
35018          test -z "$ac_c_werror_flag" ||
35019          test ! -s conftest.err
35020        } && test -s conftest.$ac_objext; then
35021   ac_cv_type_int=yes
35022 else
35023   echo "$as_me: failed program was:" >&5
35024 sed 's/^/| /' conftest.$ac_ext >&5
35025
35026         ac_cv_type_int=no
35027 fi
35028
35029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35030 fi
35031 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35032 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35033
35034 # The cast to long int works around a bug in the HP C Compiler
35035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35037 # This bug is HP SR number 8606223364.
35038 { echo "$as_me:$LINENO: checking size of int" >&5
35039 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35040 if test "${ac_cv_sizeof_int+set}" = set; then
35041   echo $ECHO_N "(cached) $ECHO_C" >&6
35042 else
35043   if test "$cross_compiling" = yes; then
35044   # Depending upon the size, compute the lo and hi bounds.
35045 cat >conftest.$ac_ext <<_ACEOF
35046 /* confdefs.h.  */
35047 _ACEOF
35048 cat confdefs.h >>conftest.$ac_ext
35049 cat >>conftest.$ac_ext <<_ACEOF
35050 /* end confdefs.h.  */
35051 $ac_includes_default
35052    typedef int ac__type_sizeof_;
35053 int
35054 main ()
35055 {
35056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35057 test_array [0] = 0
35058
35059   ;
35060   return 0;
35061 }
35062 _ACEOF
35063 rm -f conftest.$ac_objext
35064 if { (ac_try="$ac_compile"
35065 case "(($ac_try" in
35066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35067   *) ac_try_echo=$ac_try;;
35068 esac
35069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35070   (eval "$ac_compile") 2>conftest.er1
35071   ac_status=$?
35072   grep -v '^ *+' conftest.er1 >conftest.err
35073   rm -f conftest.er1
35074   cat conftest.err >&5
35075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076   (exit $ac_status); } && {
35077          test -z "$ac_c_werror_flag" ||
35078          test ! -s conftest.err
35079        } && test -s conftest.$ac_objext; then
35080   ac_lo=0 ac_mid=0
35081   while :; do
35082     cat >conftest.$ac_ext <<_ACEOF
35083 /* confdefs.h.  */
35084 _ACEOF
35085 cat confdefs.h >>conftest.$ac_ext
35086 cat >>conftest.$ac_ext <<_ACEOF
35087 /* end confdefs.h.  */
35088 $ac_includes_default
35089    typedef int ac__type_sizeof_;
35090 int
35091 main ()
35092 {
35093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35094 test_array [0] = 0
35095
35096   ;
35097   return 0;
35098 }
35099 _ACEOF
35100 rm -f conftest.$ac_objext
35101 if { (ac_try="$ac_compile"
35102 case "(($ac_try" in
35103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35104   *) ac_try_echo=$ac_try;;
35105 esac
35106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35107   (eval "$ac_compile") 2>conftest.er1
35108   ac_status=$?
35109   grep -v '^ *+' conftest.er1 >conftest.err
35110   rm -f conftest.er1
35111   cat conftest.err >&5
35112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35113   (exit $ac_status); } && {
35114          test -z "$ac_c_werror_flag" ||
35115          test ! -s conftest.err
35116        } && test -s conftest.$ac_objext; then
35117   ac_hi=$ac_mid; break
35118 else
35119   echo "$as_me: failed program was:" >&5
35120 sed 's/^/| /' conftest.$ac_ext >&5
35121
35122         ac_lo=`expr $ac_mid + 1`
35123                         if test $ac_lo -le $ac_mid; then
35124                           ac_lo= ac_hi=
35125                           break
35126                         fi
35127                         ac_mid=`expr 2 '*' $ac_mid + 1`
35128 fi
35129
35130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35131   done
35132 else
35133   echo "$as_me: failed program was:" >&5
35134 sed 's/^/| /' conftest.$ac_ext >&5
35135
35136         cat >conftest.$ac_ext <<_ACEOF
35137 /* confdefs.h.  */
35138 _ACEOF
35139 cat confdefs.h >>conftest.$ac_ext
35140 cat >>conftest.$ac_ext <<_ACEOF
35141 /* end confdefs.h.  */
35142 $ac_includes_default
35143    typedef int ac__type_sizeof_;
35144 int
35145 main ()
35146 {
35147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35148 test_array [0] = 0
35149
35150   ;
35151   return 0;
35152 }
35153 _ACEOF
35154 rm -f conftest.$ac_objext
35155 if { (ac_try="$ac_compile"
35156 case "(($ac_try" in
35157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35158   *) ac_try_echo=$ac_try;;
35159 esac
35160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35161   (eval "$ac_compile") 2>conftest.er1
35162   ac_status=$?
35163   grep -v '^ *+' conftest.er1 >conftest.err
35164   rm -f conftest.er1
35165   cat conftest.err >&5
35166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167   (exit $ac_status); } && {
35168          test -z "$ac_c_werror_flag" ||
35169          test ! -s conftest.err
35170        } && test -s conftest.$ac_objext; then
35171   ac_hi=-1 ac_mid=-1
35172   while :; do
35173     cat >conftest.$ac_ext <<_ACEOF
35174 /* confdefs.h.  */
35175 _ACEOF
35176 cat confdefs.h >>conftest.$ac_ext
35177 cat >>conftest.$ac_ext <<_ACEOF
35178 /* end confdefs.h.  */
35179 $ac_includes_default
35180    typedef int ac__type_sizeof_;
35181 int
35182 main ()
35183 {
35184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35185 test_array [0] = 0
35186
35187   ;
35188   return 0;
35189 }
35190 _ACEOF
35191 rm -f conftest.$ac_objext
35192 if { (ac_try="$ac_compile"
35193 case "(($ac_try" in
35194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35195   *) ac_try_echo=$ac_try;;
35196 esac
35197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35198   (eval "$ac_compile") 2>conftest.er1
35199   ac_status=$?
35200   grep -v '^ *+' conftest.er1 >conftest.err
35201   rm -f conftest.er1
35202   cat conftest.err >&5
35203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35204   (exit $ac_status); } && {
35205          test -z "$ac_c_werror_flag" ||
35206          test ! -s conftest.err
35207        } && test -s conftest.$ac_objext; then
35208   ac_lo=$ac_mid; break
35209 else
35210   echo "$as_me: failed program was:" >&5
35211 sed 's/^/| /' conftest.$ac_ext >&5
35212
35213         ac_hi=`expr '(' $ac_mid ')' - 1`
35214                         if test $ac_mid -le $ac_hi; then
35215                           ac_lo= ac_hi=
35216                           break
35217                         fi
35218                         ac_mid=`expr 2 '*' $ac_mid`
35219 fi
35220
35221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35222   done
35223 else
35224   echo "$as_me: failed program was:" >&5
35225 sed 's/^/| /' conftest.$ac_ext >&5
35226
35227         ac_lo= ac_hi=
35228 fi
35229
35230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35231 fi
35232
35233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35234 # Binary search between lo and hi bounds.
35235 while test "x$ac_lo" != "x$ac_hi"; do
35236   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35237   cat >conftest.$ac_ext <<_ACEOF
35238 /* confdefs.h.  */
35239 _ACEOF
35240 cat confdefs.h >>conftest.$ac_ext
35241 cat >>conftest.$ac_ext <<_ACEOF
35242 /* end confdefs.h.  */
35243 $ac_includes_default
35244    typedef int ac__type_sizeof_;
35245 int
35246 main ()
35247 {
35248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35249 test_array [0] = 0
35250
35251   ;
35252   return 0;
35253 }
35254 _ACEOF
35255 rm -f conftest.$ac_objext
35256 if { (ac_try="$ac_compile"
35257 case "(($ac_try" in
35258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35259   *) ac_try_echo=$ac_try;;
35260 esac
35261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35262   (eval "$ac_compile") 2>conftest.er1
35263   ac_status=$?
35264   grep -v '^ *+' conftest.er1 >conftest.err
35265   rm -f conftest.er1
35266   cat conftest.err >&5
35267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35268   (exit $ac_status); } && {
35269          test -z "$ac_c_werror_flag" ||
35270          test ! -s conftest.err
35271        } && test -s conftest.$ac_objext; then
35272   ac_hi=$ac_mid
35273 else
35274   echo "$as_me: failed program was:" >&5
35275 sed 's/^/| /' conftest.$ac_ext >&5
35276
35277         ac_lo=`expr '(' $ac_mid ')' + 1`
35278 fi
35279
35280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35281 done
35282 case $ac_lo in
35283 ?*) ac_cv_sizeof_int=$ac_lo;;
35284 '') if test "$ac_cv_type_int" = yes; then
35285      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35286 See \`config.log' for more details." >&5
35287 echo "$as_me: error: cannot compute sizeof (int)
35288 See \`config.log' for more details." >&2;}
35289    { (exit 77); exit 77; }; }
35290    else
35291      ac_cv_sizeof_int=0
35292    fi ;;
35293 esac
35294 else
35295   cat >conftest.$ac_ext <<_ACEOF
35296 /* confdefs.h.  */
35297 _ACEOF
35298 cat confdefs.h >>conftest.$ac_ext
35299 cat >>conftest.$ac_ext <<_ACEOF
35300 /* end confdefs.h.  */
35301 $ac_includes_default
35302    typedef int ac__type_sizeof_;
35303 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35304 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35305 #include <stdio.h>
35306 #include <stdlib.h>
35307 int
35308 main ()
35309 {
35310
35311   FILE *f = fopen ("conftest.val", "w");
35312   if (! f)
35313     return 1;
35314   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35315     {
35316       long int i = longval ();
35317       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35318         return 1;
35319       fprintf (f, "%ld\n", i);
35320     }
35321   else
35322     {
35323       unsigned long int i = ulongval ();
35324       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35325         return 1;
35326       fprintf (f, "%lu\n", i);
35327     }
35328   return ferror (f) || fclose (f) != 0;
35329
35330   ;
35331   return 0;
35332 }
35333 _ACEOF
35334 rm -f conftest$ac_exeext
35335 if { (ac_try="$ac_link"
35336 case "(($ac_try" in
35337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35338   *) ac_try_echo=$ac_try;;
35339 esac
35340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35341   (eval "$ac_link") 2>&5
35342   ac_status=$?
35343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35345   { (case "(($ac_try" in
35346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35347   *) ac_try_echo=$ac_try;;
35348 esac
35349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35350   (eval "$ac_try") 2>&5
35351   ac_status=$?
35352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353   (exit $ac_status); }; }; then
35354   ac_cv_sizeof_int=`cat conftest.val`
35355 else
35356   echo "$as_me: program exited with status $ac_status" >&5
35357 echo "$as_me: failed program was:" >&5
35358 sed 's/^/| /' conftest.$ac_ext >&5
35359
35360 ( exit $ac_status )
35361 if test "$ac_cv_type_int" = yes; then
35362      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35363 See \`config.log' for more details." >&5
35364 echo "$as_me: error: cannot compute sizeof (int)
35365 See \`config.log' for more details." >&2;}
35366    { (exit 77); exit 77; }; }
35367    else
35368      ac_cv_sizeof_int=0
35369    fi
35370 fi
35371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35372 fi
35373 rm -f conftest.val
35374 fi
35375 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35376 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35377
35378
35379
35380 cat >>confdefs.h <<_ACEOF
35381 #define SIZEOF_INT $ac_cv_sizeof_int
35382 _ACEOF
35383
35384
35385 { echo "$as_me:$LINENO: checking for long int" >&5
35386 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35387 if test "${ac_cv_type_long_int+set}" = set; then
35388   echo $ECHO_N "(cached) $ECHO_C" >&6
35389 else
35390   cat >conftest.$ac_ext <<_ACEOF
35391 /* confdefs.h.  */
35392 _ACEOF
35393 cat confdefs.h >>conftest.$ac_ext
35394 cat >>conftest.$ac_ext <<_ACEOF
35395 /* end confdefs.h.  */
35396 $ac_includes_default
35397 typedef long int ac__type_new_;
35398 int
35399 main ()
35400 {
35401 if ((ac__type_new_ *) 0)
35402   return 0;
35403 if (sizeof (ac__type_new_))
35404   return 0;
35405   ;
35406   return 0;
35407 }
35408 _ACEOF
35409 rm -f conftest.$ac_objext
35410 if { (ac_try="$ac_compile"
35411 case "(($ac_try" in
35412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35413   *) ac_try_echo=$ac_try;;
35414 esac
35415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35416   (eval "$ac_compile") 2>conftest.er1
35417   ac_status=$?
35418   grep -v '^ *+' conftest.er1 >conftest.err
35419   rm -f conftest.er1
35420   cat conftest.err >&5
35421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35422   (exit $ac_status); } && {
35423          test -z "$ac_c_werror_flag" ||
35424          test ! -s conftest.err
35425        } && test -s conftest.$ac_objext; then
35426   ac_cv_type_long_int=yes
35427 else
35428   echo "$as_me: failed program was:" >&5
35429 sed 's/^/| /' conftest.$ac_ext >&5
35430
35431         ac_cv_type_long_int=no
35432 fi
35433
35434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35435 fi
35436 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35437 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35438
35439 # The cast to long int works around a bug in the HP C Compiler
35440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35442 # This bug is HP SR number 8606223364.
35443 { echo "$as_me:$LINENO: checking size of long int" >&5
35444 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35445 if test "${ac_cv_sizeof_long_int+set}" = set; then
35446   echo $ECHO_N "(cached) $ECHO_C" >&6
35447 else
35448   if test "$cross_compiling" = yes; then
35449   # Depending upon the size, compute the lo and hi bounds.
35450 cat >conftest.$ac_ext <<_ACEOF
35451 /* confdefs.h.  */
35452 _ACEOF
35453 cat confdefs.h >>conftest.$ac_ext
35454 cat >>conftest.$ac_ext <<_ACEOF
35455 /* end confdefs.h.  */
35456 $ac_includes_default
35457    typedef long int ac__type_sizeof_;
35458 int
35459 main ()
35460 {
35461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35462 test_array [0] = 0
35463
35464   ;
35465   return 0;
35466 }
35467 _ACEOF
35468 rm -f conftest.$ac_objext
35469 if { (ac_try="$ac_compile"
35470 case "(($ac_try" in
35471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35472   *) ac_try_echo=$ac_try;;
35473 esac
35474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35475   (eval "$ac_compile") 2>conftest.er1
35476   ac_status=$?
35477   grep -v '^ *+' conftest.er1 >conftest.err
35478   rm -f conftest.er1
35479   cat conftest.err >&5
35480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481   (exit $ac_status); } && {
35482          test -z "$ac_c_werror_flag" ||
35483          test ! -s conftest.err
35484        } && test -s conftest.$ac_objext; then
35485   ac_lo=0 ac_mid=0
35486   while :; do
35487     cat >conftest.$ac_ext <<_ACEOF
35488 /* confdefs.h.  */
35489 _ACEOF
35490 cat confdefs.h >>conftest.$ac_ext
35491 cat >>conftest.$ac_ext <<_ACEOF
35492 /* end confdefs.h.  */
35493 $ac_includes_default
35494    typedef long int ac__type_sizeof_;
35495 int
35496 main ()
35497 {
35498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35499 test_array [0] = 0
35500
35501   ;
35502   return 0;
35503 }
35504 _ACEOF
35505 rm -f conftest.$ac_objext
35506 if { (ac_try="$ac_compile"
35507 case "(($ac_try" in
35508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35509   *) ac_try_echo=$ac_try;;
35510 esac
35511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35512   (eval "$ac_compile") 2>conftest.er1
35513   ac_status=$?
35514   grep -v '^ *+' conftest.er1 >conftest.err
35515   rm -f conftest.er1
35516   cat conftest.err >&5
35517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518   (exit $ac_status); } && {
35519          test -z "$ac_c_werror_flag" ||
35520          test ! -s conftest.err
35521        } && test -s conftest.$ac_objext; then
35522   ac_hi=$ac_mid; break
35523 else
35524   echo "$as_me: failed program was:" >&5
35525 sed 's/^/| /' conftest.$ac_ext >&5
35526
35527         ac_lo=`expr $ac_mid + 1`
35528                         if test $ac_lo -le $ac_mid; then
35529                           ac_lo= ac_hi=
35530                           break
35531                         fi
35532                         ac_mid=`expr 2 '*' $ac_mid + 1`
35533 fi
35534
35535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35536   done
35537 else
35538   echo "$as_me: failed program was:" >&5
35539 sed 's/^/| /' conftest.$ac_ext >&5
35540
35541         cat >conftest.$ac_ext <<_ACEOF
35542 /* confdefs.h.  */
35543 _ACEOF
35544 cat confdefs.h >>conftest.$ac_ext
35545 cat >>conftest.$ac_ext <<_ACEOF
35546 /* end confdefs.h.  */
35547 $ac_includes_default
35548    typedef long int ac__type_sizeof_;
35549 int
35550 main ()
35551 {
35552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35553 test_array [0] = 0
35554
35555   ;
35556   return 0;
35557 }
35558 _ACEOF
35559 rm -f conftest.$ac_objext
35560 if { (ac_try="$ac_compile"
35561 case "(($ac_try" in
35562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35563   *) ac_try_echo=$ac_try;;
35564 esac
35565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35566   (eval "$ac_compile") 2>conftest.er1
35567   ac_status=$?
35568   grep -v '^ *+' conftest.er1 >conftest.err
35569   rm -f conftest.er1
35570   cat conftest.err >&5
35571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572   (exit $ac_status); } && {
35573          test -z "$ac_c_werror_flag" ||
35574          test ! -s conftest.err
35575        } && test -s conftest.$ac_objext; then
35576   ac_hi=-1 ac_mid=-1
35577   while :; do
35578     cat >conftest.$ac_ext <<_ACEOF
35579 /* confdefs.h.  */
35580 _ACEOF
35581 cat confdefs.h >>conftest.$ac_ext
35582 cat >>conftest.$ac_ext <<_ACEOF
35583 /* end confdefs.h.  */
35584 $ac_includes_default
35585    typedef long int ac__type_sizeof_;
35586 int
35587 main ()
35588 {
35589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35590 test_array [0] = 0
35591
35592   ;
35593   return 0;
35594 }
35595 _ACEOF
35596 rm -f conftest.$ac_objext
35597 if { (ac_try="$ac_compile"
35598 case "(($ac_try" in
35599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35600   *) ac_try_echo=$ac_try;;
35601 esac
35602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35603   (eval "$ac_compile") 2>conftest.er1
35604   ac_status=$?
35605   grep -v '^ *+' conftest.er1 >conftest.err
35606   rm -f conftest.er1
35607   cat conftest.err >&5
35608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35609   (exit $ac_status); } && {
35610          test -z "$ac_c_werror_flag" ||
35611          test ! -s conftest.err
35612        } && test -s conftest.$ac_objext; then
35613   ac_lo=$ac_mid; break
35614 else
35615   echo "$as_me: failed program was:" >&5
35616 sed 's/^/| /' conftest.$ac_ext >&5
35617
35618         ac_hi=`expr '(' $ac_mid ')' - 1`
35619                         if test $ac_mid -le $ac_hi; then
35620                           ac_lo= ac_hi=
35621                           break
35622                         fi
35623                         ac_mid=`expr 2 '*' $ac_mid`
35624 fi
35625
35626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35627   done
35628 else
35629   echo "$as_me: failed program was:" >&5
35630 sed 's/^/| /' conftest.$ac_ext >&5
35631
35632         ac_lo= ac_hi=
35633 fi
35634
35635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35636 fi
35637
35638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35639 # Binary search between lo and hi bounds.
35640 while test "x$ac_lo" != "x$ac_hi"; do
35641   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35642   cat >conftest.$ac_ext <<_ACEOF
35643 /* confdefs.h.  */
35644 _ACEOF
35645 cat confdefs.h >>conftest.$ac_ext
35646 cat >>conftest.$ac_ext <<_ACEOF
35647 /* end confdefs.h.  */
35648 $ac_includes_default
35649    typedef long int ac__type_sizeof_;
35650 int
35651 main ()
35652 {
35653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35654 test_array [0] = 0
35655
35656   ;
35657   return 0;
35658 }
35659 _ACEOF
35660 rm -f conftest.$ac_objext
35661 if { (ac_try="$ac_compile"
35662 case "(($ac_try" in
35663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35664   *) ac_try_echo=$ac_try;;
35665 esac
35666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35667   (eval "$ac_compile") 2>conftest.er1
35668   ac_status=$?
35669   grep -v '^ *+' conftest.er1 >conftest.err
35670   rm -f conftest.er1
35671   cat conftest.err >&5
35672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35673   (exit $ac_status); } && {
35674          test -z "$ac_c_werror_flag" ||
35675          test ! -s conftest.err
35676        } && test -s conftest.$ac_objext; then
35677   ac_hi=$ac_mid
35678 else
35679   echo "$as_me: failed program was:" >&5
35680 sed 's/^/| /' conftest.$ac_ext >&5
35681
35682         ac_lo=`expr '(' $ac_mid ')' + 1`
35683 fi
35684
35685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35686 done
35687 case $ac_lo in
35688 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35689 '') if test "$ac_cv_type_long_int" = yes; then
35690      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35691 See \`config.log' for more details." >&5
35692 echo "$as_me: error: cannot compute sizeof (long int)
35693 See \`config.log' for more details." >&2;}
35694    { (exit 77); exit 77; }; }
35695    else
35696      ac_cv_sizeof_long_int=0
35697    fi ;;
35698 esac
35699 else
35700   cat >conftest.$ac_ext <<_ACEOF
35701 /* confdefs.h.  */
35702 _ACEOF
35703 cat confdefs.h >>conftest.$ac_ext
35704 cat >>conftest.$ac_ext <<_ACEOF
35705 /* end confdefs.h.  */
35706 $ac_includes_default
35707    typedef long int ac__type_sizeof_;
35708 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35709 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35710 #include <stdio.h>
35711 #include <stdlib.h>
35712 int
35713 main ()
35714 {
35715
35716   FILE *f = fopen ("conftest.val", "w");
35717   if (! f)
35718     return 1;
35719   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35720     {
35721       long int i = longval ();
35722       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35723         return 1;
35724       fprintf (f, "%ld\n", i);
35725     }
35726   else
35727     {
35728       unsigned long int i = ulongval ();
35729       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35730         return 1;
35731       fprintf (f, "%lu\n", i);
35732     }
35733   return ferror (f) || fclose (f) != 0;
35734
35735   ;
35736   return 0;
35737 }
35738 _ACEOF
35739 rm -f conftest$ac_exeext
35740 if { (ac_try="$ac_link"
35741 case "(($ac_try" in
35742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35743   *) ac_try_echo=$ac_try;;
35744 esac
35745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35746   (eval "$ac_link") 2>&5
35747   ac_status=$?
35748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35750   { (case "(($ac_try" in
35751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35752   *) ac_try_echo=$ac_try;;
35753 esac
35754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35755   (eval "$ac_try") 2>&5
35756   ac_status=$?
35757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758   (exit $ac_status); }; }; then
35759   ac_cv_sizeof_long_int=`cat conftest.val`
35760 else
35761   echo "$as_me: program exited with status $ac_status" >&5
35762 echo "$as_me: failed program was:" >&5
35763 sed 's/^/| /' conftest.$ac_ext >&5
35764
35765 ( exit $ac_status )
35766 if test "$ac_cv_type_long_int" = yes; then
35767      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35768 See \`config.log' for more details." >&5
35769 echo "$as_me: error: cannot compute sizeof (long int)
35770 See \`config.log' for more details." >&2;}
35771    { (exit 77); exit 77; }; }
35772    else
35773      ac_cv_sizeof_long_int=0
35774    fi
35775 fi
35776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35777 fi
35778 rm -f conftest.val
35779 fi
35780 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35781 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35782
35783
35784
35785 cat >>confdefs.h <<_ACEOF
35786 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35787 _ACEOF
35788
35789
35790 { echo "$as_me:$LINENO: checking for long long int" >&5
35791 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35792 if test "${ac_cv_type_long_long_int+set}" = set; then
35793   echo $ECHO_N "(cached) $ECHO_C" >&6
35794 else
35795   cat >conftest.$ac_ext <<_ACEOF
35796 /* confdefs.h.  */
35797 _ACEOF
35798 cat confdefs.h >>conftest.$ac_ext
35799 cat >>conftest.$ac_ext <<_ACEOF
35800 /* end confdefs.h.  */
35801 $ac_includes_default
35802 typedef long long int ac__type_new_;
35803 int
35804 main ()
35805 {
35806 if ((ac__type_new_ *) 0)
35807   return 0;
35808 if (sizeof (ac__type_new_))
35809   return 0;
35810   ;
35811   return 0;
35812 }
35813 _ACEOF
35814 rm -f conftest.$ac_objext
35815 if { (ac_try="$ac_compile"
35816 case "(($ac_try" in
35817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35818   *) ac_try_echo=$ac_try;;
35819 esac
35820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35821   (eval "$ac_compile") 2>conftest.er1
35822   ac_status=$?
35823   grep -v '^ *+' conftest.er1 >conftest.err
35824   rm -f conftest.er1
35825   cat conftest.err >&5
35826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827   (exit $ac_status); } && {
35828          test -z "$ac_c_werror_flag" ||
35829          test ! -s conftest.err
35830        } && test -s conftest.$ac_objext; then
35831   ac_cv_type_long_long_int=yes
35832 else
35833   echo "$as_me: failed program was:" >&5
35834 sed 's/^/| /' conftest.$ac_ext >&5
35835
35836         ac_cv_type_long_long_int=no
35837 fi
35838
35839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35840 fi
35841 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35842 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35843
35844 # The cast to long int works around a bug in the HP C Compiler
35845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35847 # This bug is HP SR number 8606223364.
35848 { echo "$as_me:$LINENO: checking size of long long int" >&5
35849 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35850 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35851   echo $ECHO_N "(cached) $ECHO_C" >&6
35852 else
35853   if test "$cross_compiling" = yes; then
35854   # Depending upon the size, compute the lo and hi bounds.
35855 cat >conftest.$ac_ext <<_ACEOF
35856 /* confdefs.h.  */
35857 _ACEOF
35858 cat confdefs.h >>conftest.$ac_ext
35859 cat >>conftest.$ac_ext <<_ACEOF
35860 /* end confdefs.h.  */
35861 $ac_includes_default
35862    typedef long long int ac__type_sizeof_;
35863 int
35864 main ()
35865 {
35866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35867 test_array [0] = 0
35868
35869   ;
35870   return 0;
35871 }
35872 _ACEOF
35873 rm -f conftest.$ac_objext
35874 if { (ac_try="$ac_compile"
35875 case "(($ac_try" in
35876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35877   *) ac_try_echo=$ac_try;;
35878 esac
35879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35880   (eval "$ac_compile") 2>conftest.er1
35881   ac_status=$?
35882   grep -v '^ *+' conftest.er1 >conftest.err
35883   rm -f conftest.er1
35884   cat conftest.err >&5
35885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886   (exit $ac_status); } && {
35887          test -z "$ac_c_werror_flag" ||
35888          test ! -s conftest.err
35889        } && test -s conftest.$ac_objext; then
35890   ac_lo=0 ac_mid=0
35891   while :; do
35892     cat >conftest.$ac_ext <<_ACEOF
35893 /* confdefs.h.  */
35894 _ACEOF
35895 cat confdefs.h >>conftest.$ac_ext
35896 cat >>conftest.$ac_ext <<_ACEOF
35897 /* end confdefs.h.  */
35898 $ac_includes_default
35899    typedef long long int ac__type_sizeof_;
35900 int
35901 main ()
35902 {
35903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35904 test_array [0] = 0
35905
35906   ;
35907   return 0;
35908 }
35909 _ACEOF
35910 rm -f conftest.$ac_objext
35911 if { (ac_try="$ac_compile"
35912 case "(($ac_try" in
35913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35914   *) ac_try_echo=$ac_try;;
35915 esac
35916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35917   (eval "$ac_compile") 2>conftest.er1
35918   ac_status=$?
35919   grep -v '^ *+' conftest.er1 >conftest.err
35920   rm -f conftest.er1
35921   cat conftest.err >&5
35922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35923   (exit $ac_status); } && {
35924          test -z "$ac_c_werror_flag" ||
35925          test ! -s conftest.err
35926        } && test -s conftest.$ac_objext; then
35927   ac_hi=$ac_mid; break
35928 else
35929   echo "$as_me: failed program was:" >&5
35930 sed 's/^/| /' conftest.$ac_ext >&5
35931
35932         ac_lo=`expr $ac_mid + 1`
35933                         if test $ac_lo -le $ac_mid; then
35934                           ac_lo= ac_hi=
35935                           break
35936                         fi
35937                         ac_mid=`expr 2 '*' $ac_mid + 1`
35938 fi
35939
35940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35941   done
35942 else
35943   echo "$as_me: failed program was:" >&5
35944 sed 's/^/| /' conftest.$ac_ext >&5
35945
35946         cat >conftest.$ac_ext <<_ACEOF
35947 /* confdefs.h.  */
35948 _ACEOF
35949 cat confdefs.h >>conftest.$ac_ext
35950 cat >>conftest.$ac_ext <<_ACEOF
35951 /* end confdefs.h.  */
35952 $ac_includes_default
35953    typedef long long int ac__type_sizeof_;
35954 int
35955 main ()
35956 {
35957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35958 test_array [0] = 0
35959
35960   ;
35961   return 0;
35962 }
35963 _ACEOF
35964 rm -f conftest.$ac_objext
35965 if { (ac_try="$ac_compile"
35966 case "(($ac_try" in
35967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35968   *) ac_try_echo=$ac_try;;
35969 esac
35970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35971   (eval "$ac_compile") 2>conftest.er1
35972   ac_status=$?
35973   grep -v '^ *+' conftest.er1 >conftest.err
35974   rm -f conftest.er1
35975   cat conftest.err >&5
35976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977   (exit $ac_status); } && {
35978          test -z "$ac_c_werror_flag" ||
35979          test ! -s conftest.err
35980        } && test -s conftest.$ac_objext; then
35981   ac_hi=-1 ac_mid=-1
35982   while :; do
35983     cat >conftest.$ac_ext <<_ACEOF
35984 /* confdefs.h.  */
35985 _ACEOF
35986 cat confdefs.h >>conftest.$ac_ext
35987 cat >>conftest.$ac_ext <<_ACEOF
35988 /* end confdefs.h.  */
35989 $ac_includes_default
35990    typedef long long int ac__type_sizeof_;
35991 int
35992 main ()
35993 {
35994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35995 test_array [0] = 0
35996
35997   ;
35998   return 0;
35999 }
36000 _ACEOF
36001 rm -f conftest.$ac_objext
36002 if { (ac_try="$ac_compile"
36003 case "(($ac_try" in
36004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36005   *) ac_try_echo=$ac_try;;
36006 esac
36007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36008   (eval "$ac_compile") 2>conftest.er1
36009   ac_status=$?
36010   grep -v '^ *+' conftest.er1 >conftest.err
36011   rm -f conftest.er1
36012   cat conftest.err >&5
36013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014   (exit $ac_status); } && {
36015          test -z "$ac_c_werror_flag" ||
36016          test ! -s conftest.err
36017        } && test -s conftest.$ac_objext; then
36018   ac_lo=$ac_mid; break
36019 else
36020   echo "$as_me: failed program was:" >&5
36021 sed 's/^/| /' conftest.$ac_ext >&5
36022
36023         ac_hi=`expr '(' $ac_mid ')' - 1`
36024                         if test $ac_mid -le $ac_hi; then
36025                           ac_lo= ac_hi=
36026                           break
36027                         fi
36028                         ac_mid=`expr 2 '*' $ac_mid`
36029 fi
36030
36031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36032   done
36033 else
36034   echo "$as_me: failed program was:" >&5
36035 sed 's/^/| /' conftest.$ac_ext >&5
36036
36037         ac_lo= ac_hi=
36038 fi
36039
36040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36041 fi
36042
36043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36044 # Binary search between lo and hi bounds.
36045 while test "x$ac_lo" != "x$ac_hi"; do
36046   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36047   cat >conftest.$ac_ext <<_ACEOF
36048 /* confdefs.h.  */
36049 _ACEOF
36050 cat confdefs.h >>conftest.$ac_ext
36051 cat >>conftest.$ac_ext <<_ACEOF
36052 /* end confdefs.h.  */
36053 $ac_includes_default
36054    typedef long long int ac__type_sizeof_;
36055 int
36056 main ()
36057 {
36058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36059 test_array [0] = 0
36060
36061   ;
36062   return 0;
36063 }
36064 _ACEOF
36065 rm -f conftest.$ac_objext
36066 if { (ac_try="$ac_compile"
36067 case "(($ac_try" in
36068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36069   *) ac_try_echo=$ac_try;;
36070 esac
36071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36072   (eval "$ac_compile") 2>conftest.er1
36073   ac_status=$?
36074   grep -v '^ *+' conftest.er1 >conftest.err
36075   rm -f conftest.er1
36076   cat conftest.err >&5
36077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078   (exit $ac_status); } && {
36079          test -z "$ac_c_werror_flag" ||
36080          test ! -s conftest.err
36081        } && test -s conftest.$ac_objext; then
36082   ac_hi=$ac_mid
36083 else
36084   echo "$as_me: failed program was:" >&5
36085 sed 's/^/| /' conftest.$ac_ext >&5
36086
36087         ac_lo=`expr '(' $ac_mid ')' + 1`
36088 fi
36089
36090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36091 done
36092 case $ac_lo in
36093 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36094 '') if test "$ac_cv_type_long_long_int" = yes; then
36095      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36096 See \`config.log' for more details." >&5
36097 echo "$as_me: error: cannot compute sizeof (long long int)
36098 See \`config.log' for more details." >&2;}
36099    { (exit 77); exit 77; }; }
36100    else
36101      ac_cv_sizeof_long_long_int=0
36102    fi ;;
36103 esac
36104 else
36105   cat >conftest.$ac_ext <<_ACEOF
36106 /* confdefs.h.  */
36107 _ACEOF
36108 cat confdefs.h >>conftest.$ac_ext
36109 cat >>conftest.$ac_ext <<_ACEOF
36110 /* end confdefs.h.  */
36111 $ac_includes_default
36112    typedef long long int ac__type_sizeof_;
36113 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36114 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36115 #include <stdio.h>
36116 #include <stdlib.h>
36117 int
36118 main ()
36119 {
36120
36121   FILE *f = fopen ("conftest.val", "w");
36122   if (! f)
36123     return 1;
36124   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36125     {
36126       long int i = longval ();
36127       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36128         return 1;
36129       fprintf (f, "%ld\n", i);
36130     }
36131   else
36132     {
36133       unsigned long int i = ulongval ();
36134       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36135         return 1;
36136       fprintf (f, "%lu\n", i);
36137     }
36138   return ferror (f) || fclose (f) != 0;
36139
36140   ;
36141   return 0;
36142 }
36143 _ACEOF
36144 rm -f conftest$ac_exeext
36145 if { (ac_try="$ac_link"
36146 case "(($ac_try" in
36147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36148   *) ac_try_echo=$ac_try;;
36149 esac
36150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36151   (eval "$ac_link") 2>&5
36152   ac_status=$?
36153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36155   { (case "(($ac_try" in
36156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36157   *) ac_try_echo=$ac_try;;
36158 esac
36159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36160   (eval "$ac_try") 2>&5
36161   ac_status=$?
36162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163   (exit $ac_status); }; }; then
36164   ac_cv_sizeof_long_long_int=`cat conftest.val`
36165 else
36166   echo "$as_me: program exited with status $ac_status" >&5
36167 echo "$as_me: failed program was:" >&5
36168 sed 's/^/| /' conftest.$ac_ext >&5
36169
36170 ( exit $ac_status )
36171 if test "$ac_cv_type_long_long_int" = yes; then
36172      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36173 See \`config.log' for more details." >&5
36174 echo "$as_me: error: cannot compute sizeof (long long int)
36175 See \`config.log' for more details." >&2;}
36176    { (exit 77); exit 77; }; }
36177    else
36178      ac_cv_sizeof_long_long_int=0
36179    fi
36180 fi
36181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36182 fi
36183 rm -f conftest.val
36184 fi
36185 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36186 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36187
36188
36189
36190 cat >>confdefs.h <<_ACEOF
36191 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36192 _ACEOF
36193
36194
36195 { echo "$as_me:$LINENO: checking for int *" >&5
36196 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36197 if test "${ac_cv_type_int_p+set}" = set; then
36198   echo $ECHO_N "(cached) $ECHO_C" >&6
36199 else
36200   cat >conftest.$ac_ext <<_ACEOF
36201 /* confdefs.h.  */
36202 _ACEOF
36203 cat confdefs.h >>conftest.$ac_ext
36204 cat >>conftest.$ac_ext <<_ACEOF
36205 /* end confdefs.h.  */
36206 $ac_includes_default
36207 typedef int * ac__type_new_;
36208 int
36209 main ()
36210 {
36211 if ((ac__type_new_ *) 0)
36212   return 0;
36213 if (sizeof (ac__type_new_))
36214   return 0;
36215   ;
36216   return 0;
36217 }
36218 _ACEOF
36219 rm -f conftest.$ac_objext
36220 if { (ac_try="$ac_compile"
36221 case "(($ac_try" in
36222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36223   *) ac_try_echo=$ac_try;;
36224 esac
36225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36226   (eval "$ac_compile") 2>conftest.er1
36227   ac_status=$?
36228   grep -v '^ *+' conftest.er1 >conftest.err
36229   rm -f conftest.er1
36230   cat conftest.err >&5
36231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36232   (exit $ac_status); } && {
36233          test -z "$ac_c_werror_flag" ||
36234          test ! -s conftest.err
36235        } && test -s conftest.$ac_objext; then
36236   ac_cv_type_int_p=yes
36237 else
36238   echo "$as_me: failed program was:" >&5
36239 sed 's/^/| /' conftest.$ac_ext >&5
36240
36241         ac_cv_type_int_p=no
36242 fi
36243
36244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36245 fi
36246 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36247 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36248
36249 # The cast to long int works around a bug in the HP C Compiler
36250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36252 # This bug is HP SR number 8606223364.
36253 { echo "$as_me:$LINENO: checking size of int *" >&5
36254 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36255 if test "${ac_cv_sizeof_int_p+set}" = set; then
36256   echo $ECHO_N "(cached) $ECHO_C" >&6
36257 else
36258   if test "$cross_compiling" = yes; then
36259   # Depending upon the size, compute the lo and hi bounds.
36260 cat >conftest.$ac_ext <<_ACEOF
36261 /* confdefs.h.  */
36262 _ACEOF
36263 cat confdefs.h >>conftest.$ac_ext
36264 cat >>conftest.$ac_ext <<_ACEOF
36265 /* end confdefs.h.  */
36266 $ac_includes_default
36267    typedef int * ac__type_sizeof_;
36268 int
36269 main ()
36270 {
36271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36272 test_array [0] = 0
36273
36274   ;
36275   return 0;
36276 }
36277 _ACEOF
36278 rm -f conftest.$ac_objext
36279 if { (ac_try="$ac_compile"
36280 case "(($ac_try" in
36281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36282   *) ac_try_echo=$ac_try;;
36283 esac
36284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36285   (eval "$ac_compile") 2>conftest.er1
36286   ac_status=$?
36287   grep -v '^ *+' conftest.er1 >conftest.err
36288   rm -f conftest.er1
36289   cat conftest.err >&5
36290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291   (exit $ac_status); } && {
36292          test -z "$ac_c_werror_flag" ||
36293          test ! -s conftest.err
36294        } && test -s conftest.$ac_objext; then
36295   ac_lo=0 ac_mid=0
36296   while :; do
36297     cat >conftest.$ac_ext <<_ACEOF
36298 /* confdefs.h.  */
36299 _ACEOF
36300 cat confdefs.h >>conftest.$ac_ext
36301 cat >>conftest.$ac_ext <<_ACEOF
36302 /* end confdefs.h.  */
36303 $ac_includes_default
36304    typedef int * ac__type_sizeof_;
36305 int
36306 main ()
36307 {
36308 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36309 test_array [0] = 0
36310
36311   ;
36312   return 0;
36313 }
36314 _ACEOF
36315 rm -f conftest.$ac_objext
36316 if { (ac_try="$ac_compile"
36317 case "(($ac_try" in
36318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36319   *) ac_try_echo=$ac_try;;
36320 esac
36321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36322   (eval "$ac_compile") 2>conftest.er1
36323   ac_status=$?
36324   grep -v '^ *+' conftest.er1 >conftest.err
36325   rm -f conftest.er1
36326   cat conftest.err >&5
36327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36328   (exit $ac_status); } && {
36329          test -z "$ac_c_werror_flag" ||
36330          test ! -s conftest.err
36331        } && test -s conftest.$ac_objext; then
36332   ac_hi=$ac_mid; break
36333 else
36334   echo "$as_me: failed program was:" >&5
36335 sed 's/^/| /' conftest.$ac_ext >&5
36336
36337         ac_lo=`expr $ac_mid + 1`
36338                         if test $ac_lo -le $ac_mid; then
36339                           ac_lo= ac_hi=
36340                           break
36341                         fi
36342                         ac_mid=`expr 2 '*' $ac_mid + 1`
36343 fi
36344
36345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36346   done
36347 else
36348   echo "$as_me: failed program was:" >&5
36349 sed 's/^/| /' conftest.$ac_ext >&5
36350
36351         cat >conftest.$ac_ext <<_ACEOF
36352 /* confdefs.h.  */
36353 _ACEOF
36354 cat confdefs.h >>conftest.$ac_ext
36355 cat >>conftest.$ac_ext <<_ACEOF
36356 /* end confdefs.h.  */
36357 $ac_includes_default
36358    typedef int * ac__type_sizeof_;
36359 int
36360 main ()
36361 {
36362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36363 test_array [0] = 0
36364
36365   ;
36366   return 0;
36367 }
36368 _ACEOF
36369 rm -f conftest.$ac_objext
36370 if { (ac_try="$ac_compile"
36371 case "(($ac_try" in
36372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36373   *) ac_try_echo=$ac_try;;
36374 esac
36375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36376   (eval "$ac_compile") 2>conftest.er1
36377   ac_status=$?
36378   grep -v '^ *+' conftest.er1 >conftest.err
36379   rm -f conftest.er1
36380   cat conftest.err >&5
36381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36382   (exit $ac_status); } && {
36383          test -z "$ac_c_werror_flag" ||
36384          test ! -s conftest.err
36385        } && test -s conftest.$ac_objext; then
36386   ac_hi=-1 ac_mid=-1
36387   while :; do
36388     cat >conftest.$ac_ext <<_ACEOF
36389 /* confdefs.h.  */
36390 _ACEOF
36391 cat confdefs.h >>conftest.$ac_ext
36392 cat >>conftest.$ac_ext <<_ACEOF
36393 /* end confdefs.h.  */
36394 $ac_includes_default
36395    typedef int * ac__type_sizeof_;
36396 int
36397 main ()
36398 {
36399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36400 test_array [0] = 0
36401
36402   ;
36403   return 0;
36404 }
36405 _ACEOF
36406 rm -f conftest.$ac_objext
36407 if { (ac_try="$ac_compile"
36408 case "(($ac_try" in
36409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36410   *) ac_try_echo=$ac_try;;
36411 esac
36412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36413   (eval "$ac_compile") 2>conftest.er1
36414   ac_status=$?
36415   grep -v '^ *+' conftest.er1 >conftest.err
36416   rm -f conftest.er1
36417   cat conftest.err >&5
36418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419   (exit $ac_status); } && {
36420          test -z "$ac_c_werror_flag" ||
36421          test ! -s conftest.err
36422        } && test -s conftest.$ac_objext; then
36423   ac_lo=$ac_mid; break
36424 else
36425   echo "$as_me: failed program was:" >&5
36426 sed 's/^/| /' conftest.$ac_ext >&5
36427
36428         ac_hi=`expr '(' $ac_mid ')' - 1`
36429                         if test $ac_mid -le $ac_hi; then
36430                           ac_lo= ac_hi=
36431                           break
36432                         fi
36433                         ac_mid=`expr 2 '*' $ac_mid`
36434 fi
36435
36436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36437   done
36438 else
36439   echo "$as_me: failed program was:" >&5
36440 sed 's/^/| /' conftest.$ac_ext >&5
36441
36442         ac_lo= ac_hi=
36443 fi
36444
36445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36446 fi
36447
36448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36449 # Binary search between lo and hi bounds.
36450 while test "x$ac_lo" != "x$ac_hi"; do
36451   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36452   cat >conftest.$ac_ext <<_ACEOF
36453 /* confdefs.h.  */
36454 _ACEOF
36455 cat confdefs.h >>conftest.$ac_ext
36456 cat >>conftest.$ac_ext <<_ACEOF
36457 /* end confdefs.h.  */
36458 $ac_includes_default
36459    typedef int * ac__type_sizeof_;
36460 int
36461 main ()
36462 {
36463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36464 test_array [0] = 0
36465
36466   ;
36467   return 0;
36468 }
36469 _ACEOF
36470 rm -f conftest.$ac_objext
36471 if { (ac_try="$ac_compile"
36472 case "(($ac_try" in
36473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36474   *) ac_try_echo=$ac_try;;
36475 esac
36476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36477   (eval "$ac_compile") 2>conftest.er1
36478   ac_status=$?
36479   grep -v '^ *+' conftest.er1 >conftest.err
36480   rm -f conftest.er1
36481   cat conftest.err >&5
36482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36483   (exit $ac_status); } && {
36484          test -z "$ac_c_werror_flag" ||
36485          test ! -s conftest.err
36486        } && test -s conftest.$ac_objext; then
36487   ac_hi=$ac_mid
36488 else
36489   echo "$as_me: failed program was:" >&5
36490 sed 's/^/| /' conftest.$ac_ext >&5
36491
36492         ac_lo=`expr '(' $ac_mid ')' + 1`
36493 fi
36494
36495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36496 done
36497 case $ac_lo in
36498 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36499 '') if test "$ac_cv_type_int_p" = yes; then
36500      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36501 See \`config.log' for more details." >&5
36502 echo "$as_me: error: cannot compute sizeof (int *)
36503 See \`config.log' for more details." >&2;}
36504    { (exit 77); exit 77; }; }
36505    else
36506      ac_cv_sizeof_int_p=0
36507    fi ;;
36508 esac
36509 else
36510   cat >conftest.$ac_ext <<_ACEOF
36511 /* confdefs.h.  */
36512 _ACEOF
36513 cat confdefs.h >>conftest.$ac_ext
36514 cat >>conftest.$ac_ext <<_ACEOF
36515 /* end confdefs.h.  */
36516 $ac_includes_default
36517    typedef int * ac__type_sizeof_;
36518 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36519 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36520 #include <stdio.h>
36521 #include <stdlib.h>
36522 int
36523 main ()
36524 {
36525
36526   FILE *f = fopen ("conftest.val", "w");
36527   if (! f)
36528     return 1;
36529   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36530     {
36531       long int i = longval ();
36532       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36533         return 1;
36534       fprintf (f, "%ld\n", i);
36535     }
36536   else
36537     {
36538       unsigned long int i = ulongval ();
36539       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36540         return 1;
36541       fprintf (f, "%lu\n", i);
36542     }
36543   return ferror (f) || fclose (f) != 0;
36544
36545   ;
36546   return 0;
36547 }
36548 _ACEOF
36549 rm -f conftest$ac_exeext
36550 if { (ac_try="$ac_link"
36551 case "(($ac_try" in
36552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36553   *) ac_try_echo=$ac_try;;
36554 esac
36555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36556   (eval "$ac_link") 2>&5
36557   ac_status=$?
36558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36560   { (case "(($ac_try" in
36561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36562   *) ac_try_echo=$ac_try;;
36563 esac
36564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36565   (eval "$ac_try") 2>&5
36566   ac_status=$?
36567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36568   (exit $ac_status); }; }; then
36569   ac_cv_sizeof_int_p=`cat conftest.val`
36570 else
36571   echo "$as_me: program exited with status $ac_status" >&5
36572 echo "$as_me: failed program was:" >&5
36573 sed 's/^/| /' conftest.$ac_ext >&5
36574
36575 ( exit $ac_status )
36576 if test "$ac_cv_type_int_p" = yes; then
36577      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36578 See \`config.log' for more details." >&5
36579 echo "$as_me: error: cannot compute sizeof (int *)
36580 See \`config.log' for more details." >&2;}
36581    { (exit 77); exit 77; }; }
36582    else
36583      ac_cv_sizeof_int_p=0
36584    fi
36585 fi
36586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36587 fi
36588 rm -f conftest.val
36589 fi
36590 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36591 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36592
36593
36594
36595 cat >>confdefs.h <<_ACEOF
36596 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36597 _ACEOF
36598
36599
36600
36601 { echo "$as_me:$LINENO: checking for u_int type" >&5
36602 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36603 if test "${ac_cv_have_u_int+set}" = set; then
36604   echo $ECHO_N "(cached) $ECHO_C" >&6
36605 else
36606
36607        cat >conftest.$ac_ext <<_ACEOF
36608 /* confdefs.h.  */
36609 _ACEOF
36610 cat confdefs.h >>conftest.$ac_ext
36611 cat >>conftest.$ac_ext <<_ACEOF
36612 /* end confdefs.h.  */
36613
36614               #include <sys/types.h>
36615
36616 int
36617 main ()
36618 {
36619
36620               u_int a; a = 1;
36621
36622   ;
36623   return 0;
36624 }
36625 _ACEOF
36626 rm -f conftest.$ac_objext
36627 if { (ac_try="$ac_compile"
36628 case "(($ac_try" in
36629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36630   *) ac_try_echo=$ac_try;;
36631 esac
36632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36633   (eval "$ac_compile") 2>conftest.er1
36634   ac_status=$?
36635   grep -v '^ *+' conftest.er1 >conftest.err
36636   rm -f conftest.er1
36637   cat conftest.err >&5
36638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36639   (exit $ac_status); } && {
36640          test -z "$ac_c_werror_flag" ||
36641          test ! -s conftest.err
36642        } && test -s conftest.$ac_objext; then
36643
36644               ac_cv_have_u_int="yes"
36645
36646 else
36647   echo "$as_me: failed program was:" >&5
36648 sed 's/^/| /' conftest.$ac_ext >&5
36649
36650
36651               ac_cv_have_u_int="no"
36652
36653
36654 fi
36655
36656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36657
36658
36659 fi
36660 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36661 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36662 if test "x$ac_cv_have_u_int" = "xyes" ; then
36663    cat >>confdefs.h <<\_ACEOF
36664 #define HAVE_U_INT 1
36665 _ACEOF
36666
36667    have_u_int=1
36668 fi
36669
36670 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36671 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36672 if test "${ac_cv_have_intmax_t+set}" = set; then
36673   echo $ECHO_N "(cached) $ECHO_C" >&6
36674 else
36675
36676        cat >conftest.$ac_ext <<_ACEOF
36677 /* confdefs.h.  */
36678 _ACEOF
36679 cat confdefs.h >>conftest.$ac_ext
36680 cat >>conftest.$ac_ext <<_ACEOF
36681 /* end confdefs.h.  */
36682
36683               #include <sys/types.h>
36684
36685 int
36686 main ()
36687 {
36688
36689               intmax_t a; a = 1;
36690
36691   ;
36692   return 0;
36693 }
36694 _ACEOF
36695 rm -f conftest.$ac_objext
36696 if { (ac_try="$ac_compile"
36697 case "(($ac_try" in
36698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36699   *) ac_try_echo=$ac_try;;
36700 esac
36701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36702   (eval "$ac_compile") 2>conftest.er1
36703   ac_status=$?
36704   grep -v '^ *+' conftest.er1 >conftest.err
36705   rm -f conftest.er1
36706   cat conftest.err >&5
36707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36708   (exit $ac_status); } && {
36709          test -z "$ac_c_werror_flag" ||
36710          test ! -s conftest.err
36711        } && test -s conftest.$ac_objext; then
36712
36713               ac_cv_have_intmax_t="yes"
36714
36715 else
36716   echo "$as_me: failed program was:" >&5
36717 sed 's/^/| /' conftest.$ac_ext >&5
36718
36719
36720               cat >conftest.$ac_ext <<_ACEOF
36721 /* confdefs.h.  */
36722 _ACEOF
36723 cat confdefs.h >>conftest.$ac_ext
36724 cat >>conftest.$ac_ext <<_ACEOF
36725 /* end confdefs.h.  */
36726
36727                      #include <stdint.h>
36728
36729 int
36730 main ()
36731 {
36732
36733                      intmax_t a; a = 1;
36734
36735   ;
36736   return 0;
36737 }
36738 _ACEOF
36739 rm -f conftest.$ac_objext
36740 if { (ac_try="$ac_compile"
36741 case "(($ac_try" in
36742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36743   *) ac_try_echo=$ac_try;;
36744 esac
36745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36746   (eval "$ac_compile") 2>conftest.er1
36747   ac_status=$?
36748   grep -v '^ *+' conftest.er1 >conftest.err
36749   rm -f conftest.er1
36750   cat conftest.err >&5
36751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36752   (exit $ac_status); } && {
36753          test -z "$ac_c_werror_flag" ||
36754          test ! -s conftest.err
36755        } && test -s conftest.$ac_objext; then
36756
36757                      ac_cv_have_intmax_t="yes"
36758
36759 else
36760   echo "$as_me: failed program was:" >&5
36761 sed 's/^/| /' conftest.$ac_ext >&5
36762
36763
36764                      ac_cv_have_intmax_t="no"
36765
36766
36767 fi
36768
36769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36770
36771
36772 fi
36773
36774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36775
36776
36777 fi
36778 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36779 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36780 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36781    cat >>confdefs.h <<\_ACEOF
36782 #define HAVE_INTMAX_T 1
36783 _ACEOF
36784
36785    have_intmax_t=1
36786 fi
36787
36788 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36789 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36790 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36791   echo $ECHO_N "(cached) $ECHO_C" >&6
36792 else
36793
36794        cat >conftest.$ac_ext <<_ACEOF
36795 /* confdefs.h.  */
36796 _ACEOF
36797 cat confdefs.h >>conftest.$ac_ext
36798 cat >>conftest.$ac_ext <<_ACEOF
36799 /* end confdefs.h.  */
36800
36801               #include <sys/types.h>
36802
36803 int
36804 main ()
36805 {
36806
36807               u_intmax_t a; a = 1;
36808
36809   ;
36810   return 0;
36811 }
36812 _ACEOF
36813 rm -f conftest.$ac_objext
36814 if { (ac_try="$ac_compile"
36815 case "(($ac_try" in
36816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36817   *) ac_try_echo=$ac_try;;
36818 esac
36819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36820   (eval "$ac_compile") 2>conftest.er1
36821   ac_status=$?
36822   grep -v '^ *+' conftest.er1 >conftest.err
36823   rm -f conftest.er1
36824   cat conftest.err >&5
36825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826   (exit $ac_status); } && {
36827          test -z "$ac_c_werror_flag" ||
36828          test ! -s conftest.err
36829        } && test -s conftest.$ac_objext; then
36830
36831               ac_cv_have_u_intmax_t="yes"
36832
36833 else
36834   echo "$as_me: failed program was:" >&5
36835 sed 's/^/| /' conftest.$ac_ext >&5
36836
36837
36838               cat >conftest.$ac_ext <<_ACEOF
36839 /* confdefs.h.  */
36840 _ACEOF
36841 cat confdefs.h >>conftest.$ac_ext
36842 cat >>conftest.$ac_ext <<_ACEOF
36843 /* end confdefs.h.  */
36844
36845                      #include <stdint.h>
36846
36847 int
36848 main ()
36849 {
36850
36851                     u_intmax_t a; a = 1;
36852
36853   ;
36854   return 0;
36855 }
36856 _ACEOF
36857 rm -f conftest.$ac_objext
36858 if { (ac_try="$ac_compile"
36859 case "(($ac_try" in
36860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36861   *) ac_try_echo=$ac_try;;
36862 esac
36863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36864   (eval "$ac_compile") 2>conftest.er1
36865   ac_status=$?
36866   grep -v '^ *+' conftest.er1 >conftest.err
36867   rm -f conftest.er1
36868   cat conftest.err >&5
36869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870   (exit $ac_status); } && {
36871          test -z "$ac_c_werror_flag" ||
36872          test ! -s conftest.err
36873        } && test -s conftest.$ac_objext; then
36874
36875                     ac_cv_have_u_intmax_t="yes"
36876
36877 else
36878   echo "$as_me: failed program was:" >&5
36879 sed 's/^/| /' conftest.$ac_ext >&5
36880
36881
36882                     ac_cv_have_u_intmax_t="no"
36883
36884
36885 fi
36886
36887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36888
36889
36890 fi
36891
36892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36893
36894
36895 fi
36896 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36897 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36898 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36899    cat >>confdefs.h <<\_ACEOF
36900 #define HAVE_U_INTMAX_T 1
36901 _ACEOF
36902
36903    have_u_intmax_t=1
36904 fi
36905
36906 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36907 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36908 if test "${ac_cv_have_intxx_t+set}" = set; then
36909   echo $ECHO_N "(cached) $ECHO_C" >&6
36910 else
36911
36912        cat >conftest.$ac_ext <<_ACEOF
36913 /* confdefs.h.  */
36914 _ACEOF
36915 cat confdefs.h >>conftest.$ac_ext
36916 cat >>conftest.$ac_ext <<_ACEOF
36917 /* end confdefs.h.  */
36918
36919               #include <sys/types.h>
36920
36921 int
36922 main ()
36923 {
36924
36925               int8_t a; int16_t b; int32_t c; a = b = c = 1;
36926
36927   ;
36928   return 0;
36929 }
36930 _ACEOF
36931 rm -f conftest.$ac_objext
36932 if { (ac_try="$ac_compile"
36933 case "(($ac_try" in
36934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36935   *) ac_try_echo=$ac_try;;
36936 esac
36937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36938   (eval "$ac_compile") 2>conftest.er1
36939   ac_status=$?
36940   grep -v '^ *+' conftest.er1 >conftest.err
36941   rm -f conftest.er1
36942   cat conftest.err >&5
36943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944   (exit $ac_status); } && {
36945          test -z "$ac_c_werror_flag" ||
36946          test ! -s conftest.err
36947        } && test -s conftest.$ac_objext; then
36948
36949               ac_cv_have_intxx_t="yes"
36950
36951 else
36952   echo "$as_me: failed program was:" >&5
36953 sed 's/^/| /' conftest.$ac_ext >&5
36954
36955
36956               ac_cv_have_intxx_t="no"
36957
36958
36959 fi
36960
36961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36962
36963
36964 fi
36965 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36966 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36967 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36968    cat >>confdefs.h <<\_ACEOF
36969 #define HAVE_INTXX_T 1
36970 _ACEOF
36971
36972    have_intxx_t=1
36973 fi
36974
36975 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36976 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36977 if test "${ac_cv_have_int64_t+set}" = set; then
36978   echo $ECHO_N "(cached) $ECHO_C" >&6
36979 else
36980
36981        cat >conftest.$ac_ext <<_ACEOF
36982 /* confdefs.h.  */
36983 _ACEOF
36984 cat confdefs.h >>conftest.$ac_ext
36985 cat >>conftest.$ac_ext <<_ACEOF
36986 /* end confdefs.h.  */
36987
36988               #include <sys/types.h>
36989
36990 int
36991 main ()
36992 {
36993
36994               int64_t a; a = 1;
36995
36996   ;
36997   return 0;
36998 }
36999 _ACEOF
37000 rm -f conftest.$ac_objext
37001 if { (ac_try="$ac_compile"
37002 case "(($ac_try" in
37003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37004   *) ac_try_echo=$ac_try;;
37005 esac
37006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37007   (eval "$ac_compile") 2>conftest.er1
37008   ac_status=$?
37009   grep -v '^ *+' conftest.er1 >conftest.err
37010   rm -f conftest.er1
37011   cat conftest.err >&5
37012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37013   (exit $ac_status); } && {
37014          test -z "$ac_c_werror_flag" ||
37015          test ! -s conftest.err
37016        } && test -s conftest.$ac_objext; then
37017
37018               ac_cv_have_int64_t="yes"
37019
37020 else
37021   echo "$as_me: failed program was:" >&5
37022 sed 's/^/| /' conftest.$ac_ext >&5
37023
37024
37025               ac_cv_have_int64_t="no"
37026
37027
37028 fi
37029
37030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37031
37032
37033 fi
37034 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37035 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37036 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37037    cat >>confdefs.h <<\_ACEOF
37038 #define HAVE_INT64_T 1
37039 _ACEOF
37040
37041    have_int64_t=1
37042 fi
37043
37044 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37045 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37046 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37047   echo $ECHO_N "(cached) $ECHO_C" >&6
37048 else
37049
37050        cat >conftest.$ac_ext <<_ACEOF
37051 /* confdefs.h.  */
37052 _ACEOF
37053 cat confdefs.h >>conftest.$ac_ext
37054 cat >>conftest.$ac_ext <<_ACEOF
37055 /* end confdefs.h.  */
37056
37057               #include <sys/types.h>
37058
37059 int
37060 main ()
37061 {
37062
37063               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37064
37065   ;
37066   return 0;
37067 }
37068 _ACEOF
37069 rm -f conftest.$ac_objext
37070 if { (ac_try="$ac_compile"
37071 case "(($ac_try" in
37072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37073   *) ac_try_echo=$ac_try;;
37074 esac
37075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37076   (eval "$ac_compile") 2>conftest.er1
37077   ac_status=$?
37078   grep -v '^ *+' conftest.er1 >conftest.err
37079   rm -f conftest.er1
37080   cat conftest.err >&5
37081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082   (exit $ac_status); } && {
37083          test -z "$ac_c_werror_flag" ||
37084          test ! -s conftest.err
37085        } && test -s conftest.$ac_objext; then
37086
37087              ac_cv_have_u_intxx_t="yes"
37088
37089 else
37090   echo "$as_me: failed program was:" >&5
37091 sed 's/^/| /' conftest.$ac_ext >&5
37092
37093
37094              ac_cv_have_u_intxx_t="no"
37095
37096
37097 fi
37098
37099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37100
37101
37102 fi
37103 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37104 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37105 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37106    cat >>confdefs.h <<\_ACEOF
37107 #define HAVE_U_INTXX_T 1
37108 _ACEOF
37109
37110    have_u_intxx_t=1
37111 fi
37112
37113 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37114 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37115 if test "${ac_cv_have_u_int64_t+set}" = set; then
37116   echo $ECHO_N "(cached) $ECHO_C" >&6
37117 else
37118
37119        cat >conftest.$ac_ext <<_ACEOF
37120 /* confdefs.h.  */
37121 _ACEOF
37122 cat confdefs.h >>conftest.$ac_ext
37123 cat >>conftest.$ac_ext <<_ACEOF
37124 /* end confdefs.h.  */
37125
37126               #include <sys/types.h>
37127
37128 int
37129 main ()
37130 {
37131
37132               u_int64_t a; a = 1;
37133
37134   ;
37135   return 0;
37136 }
37137 _ACEOF
37138 rm -f conftest.$ac_objext
37139 if { (ac_try="$ac_compile"
37140 case "(($ac_try" in
37141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37142   *) ac_try_echo=$ac_try;;
37143 esac
37144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37145   (eval "$ac_compile") 2>conftest.er1
37146   ac_status=$?
37147   grep -v '^ *+' conftest.er1 >conftest.err
37148   rm -f conftest.er1
37149   cat conftest.err >&5
37150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151   (exit $ac_status); } && {
37152          test -z "$ac_c_werror_flag" ||
37153          test ! -s conftest.err
37154        } && test -s conftest.$ac_objext; then
37155
37156              ac_cv_have_u_int64_t="yes"
37157
37158 else
37159   echo "$as_me: failed program was:" >&5
37160 sed 's/^/| /' conftest.$ac_ext >&5
37161
37162
37163              ac_cv_have_u_int64_t="no"
37164
37165
37166 fi
37167
37168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37169
37170
37171 fi
37172 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37173 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37174 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37175    cat >>confdefs.h <<\_ACEOF
37176 #define HAVE_U_INT64_T 1
37177 _ACEOF
37178
37179    have_u_int64_t=1
37180 fi
37181
37182 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37183     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37184 then
37185    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37186 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37187    cat >conftest.$ac_ext <<_ACEOF
37188 /* confdefs.h.  */
37189 _ACEOF
37190 cat confdefs.h >>conftest.$ac_ext
37191 cat >>conftest.$ac_ext <<_ACEOF
37192 /* end confdefs.h.  */
37193
37194           #include <sys/bitypes.h>
37195
37196 int
37197 main ()
37198 {
37199
37200           int8_t a; int16_t b; int32_t c;
37201           u_int8_t e; u_int16_t f; u_int32_t g;
37202           a = b = c = e = f = g = 1;
37203
37204   ;
37205   return 0;
37206 }
37207 _ACEOF
37208 rm -f conftest.$ac_objext
37209 if { (ac_try="$ac_compile"
37210 case "(($ac_try" in
37211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37212   *) ac_try_echo=$ac_try;;
37213 esac
37214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37215   (eval "$ac_compile") 2>conftest.er1
37216   ac_status=$?
37217   grep -v '^ *+' conftest.er1 >conftest.err
37218   rm -f conftest.er1
37219   cat conftest.err >&5
37220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37221   (exit $ac_status); } && {
37222          test -z "$ac_c_werror_flag" ||
37223          test ! -s conftest.err
37224        } && test -s conftest.$ac_objext; then
37225
37226           cat >>confdefs.h <<\_ACEOF
37227 #define HAVE_U_INTXX_T 1
37228 _ACEOF
37229
37230           cat >>confdefs.h <<\_ACEOF
37231 #define HAVE_INTXX_T 1
37232 _ACEOF
37233
37234           cat >>confdefs.h <<\_ACEOF
37235 #define HAVE_SYS_BITYPES_H 1
37236 _ACEOF
37237
37238           { echo "$as_me:$LINENO: result: yes" >&5
37239 echo "${ECHO_T}yes" >&6; }
37240
37241 else
37242   echo "$as_me: failed program was:" >&5
37243 sed 's/^/| /' conftest.$ac_ext >&5
37244
37245
37246           { echo "$as_me:$LINENO: result: no" >&5
37247 echo "${ECHO_T}no" >&6; }
37248
37249
37250 fi
37251
37252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37253 fi
37254
37255 if test -z "$have_u_intxx_t" ; then
37256    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37257 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37258 if test "${ac_cv_have_uintxx_t+set}" = set; then
37259   echo $ECHO_N "(cached) $ECHO_C" >&6
37260 else
37261
37262           cat >conftest.$ac_ext <<_ACEOF
37263 /* confdefs.h.  */
37264 _ACEOF
37265 cat confdefs.h >>conftest.$ac_ext
37266 cat >>conftest.$ac_ext <<_ACEOF
37267 /* end confdefs.h.  */
37268
37269                  #include <sys/types.h>
37270
37271 int
37272 main ()
37273 {
37274
37275                  uint8_t a; uint16_t b;
37276                  uint32_t c; a = b = c = 1;
37277
37278   ;
37279   return 0;
37280 }
37281 _ACEOF
37282 rm -f conftest.$ac_objext
37283 if { (ac_try="$ac_compile"
37284 case "(($ac_try" in
37285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37286   *) ac_try_echo=$ac_try;;
37287 esac
37288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37289   (eval "$ac_compile") 2>conftest.er1
37290   ac_status=$?
37291   grep -v '^ *+' conftest.er1 >conftest.err
37292   rm -f conftest.er1
37293   cat conftest.err >&5
37294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37295   (exit $ac_status); } && {
37296          test -z "$ac_c_werror_flag" ||
37297          test ! -s conftest.err
37298        } && test -s conftest.$ac_objext; then
37299
37300                 ac_cv_have_uintxx_t="yes"
37301
37302 else
37303   echo "$as_me: failed program was:" >&5
37304 sed 's/^/| /' conftest.$ac_ext >&5
37305
37306
37307                 ac_cv_have_uintxx_t="no"
37308
37309
37310 fi
37311
37312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37313
37314
37315 fi
37316 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37317 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37318    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37319       cat >>confdefs.h <<\_ACEOF
37320 #define HAVE_UINTXX_T 1
37321 _ACEOF
37322
37323    fi
37324 fi
37325
37326 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37327     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37328 then
37329    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37330 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37331    cat >conftest.$ac_ext <<_ACEOF
37332 /* confdefs.h.  */
37333 _ACEOF
37334 cat confdefs.h >>conftest.$ac_ext
37335 cat >>conftest.$ac_ext <<_ACEOF
37336 /* end confdefs.h.  */
37337
37338           #include <sys/bitypes.h>
37339
37340 int
37341 main ()
37342 {
37343
37344           int64_t a; u_int64_t b;
37345           a = b = 1;
37346
37347   ;
37348   return 0;
37349 }
37350 _ACEOF
37351 rm -f conftest.$ac_objext
37352 if { (ac_try="$ac_compile"
37353 case "(($ac_try" in
37354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37355   *) ac_try_echo=$ac_try;;
37356 esac
37357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37358   (eval "$ac_compile") 2>conftest.er1
37359   ac_status=$?
37360   grep -v '^ *+' conftest.er1 >conftest.err
37361   rm -f conftest.er1
37362   cat conftest.err >&5
37363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37364   (exit $ac_status); } && {
37365          test -z "$ac_c_werror_flag" ||
37366          test ! -s conftest.err
37367        } && test -s conftest.$ac_objext; then
37368
37369           cat >>confdefs.h <<\_ACEOF
37370 #define HAVE_U_INT64_T 1
37371 _ACEOF
37372
37373           cat >>confdefs.h <<\_ACEOF
37374 #define HAVE_INT64_T 1
37375 _ACEOF
37376
37377           { echo "$as_me:$LINENO: result: yes" >&5
37378 echo "${ECHO_T}yes" >&6; }
37379
37380 else
37381   echo "$as_me: failed program was:" >&5
37382 sed 's/^/| /' conftest.$ac_ext >&5
37383
37384
37385           { echo "$as_me:$LINENO: result: no" >&5
37386 echo "${ECHO_T}no" >&6; }
37387
37388
37389 fi
37390
37391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37392 fi
37393
37394 if (test -z "$have_uintxx_t" && \
37395     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37396 then
37397    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37398 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37399    cat >conftest.$ac_ext <<_ACEOF
37400 /* confdefs.h.  */
37401 _ACEOF
37402 cat confdefs.h >>conftest.$ac_ext
37403 cat >>conftest.$ac_ext <<_ACEOF
37404 /* end confdefs.h.  */
37405
37406           #include <sys/bitypes.h>
37407
37408 int
37409 main ()
37410 {
37411
37412           uint8_t a; uint16_t b;
37413           uint32_t c; a = b = c = 1;
37414
37415   ;
37416   return 0;
37417 }
37418 _ACEOF
37419 rm -f conftest.$ac_objext
37420 if { (ac_try="$ac_compile"
37421 case "(($ac_try" in
37422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37423   *) ac_try_echo=$ac_try;;
37424 esac
37425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37426   (eval "$ac_compile") 2>conftest.er1
37427   ac_status=$?
37428   grep -v '^ *+' conftest.er1 >conftest.err
37429   rm -f conftest.er1
37430   cat conftest.err >&5
37431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37432   (exit $ac_status); } && {
37433          test -z "$ac_c_werror_flag" ||
37434          test ! -s conftest.err
37435        } && test -s conftest.$ac_objext; then
37436
37437           cat >>confdefs.h <<\_ACEOF
37438 #define HAVE_UINTXX_T 1
37439 _ACEOF
37440
37441           { echo "$as_me:$LINENO: result: yes" >&5
37442 echo "${ECHO_T}yes" >&6; }
37443
37444 else
37445   echo "$as_me: failed program was:" >&5
37446 sed 's/^/| /' conftest.$ac_ext >&5
37447
37448
37449           { echo "$as_me:$LINENO: result: no" >&5
37450 echo "${ECHO_T}no" >&6; }
37451
37452
37453 fi
37454
37455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37456 fi
37457
37458
37459
37460
37461
37462
37463
37464
37465
37466
37467
37468
37469
37470
37471 for ac_func in \
37472    fork \
37473    getcwd \
37474    gethostname \
37475    getpid \
37476    gettimeofday \
37477    setpgid \
37478    setpgrp \
37479    setsid \
37480    signal \
37481    strerror \
37482    strncmp \
37483    strncpy \
37484    vfprintf \
37485
37486 do
37487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37491   echo $ECHO_N "(cached) $ECHO_C" >&6
37492 else
37493   cat >conftest.$ac_ext <<_ACEOF
37494 /* confdefs.h.  */
37495 _ACEOF
37496 cat confdefs.h >>conftest.$ac_ext
37497 cat >>conftest.$ac_ext <<_ACEOF
37498 /* end confdefs.h.  */
37499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37501 #define $ac_func innocuous_$ac_func
37502
37503 /* System header to define __stub macros and hopefully few prototypes,
37504     which can conflict with char $ac_func (); below.
37505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37506     <limits.h> exists even on freestanding compilers.  */
37507
37508 #ifdef __STDC__
37509 # include <limits.h>
37510 #else
37511 # include <assert.h>
37512 #endif
37513
37514 #undef $ac_func
37515
37516 /* Override any GCC internal prototype to avoid an error.
37517    Use char because int might match the return type of a GCC
37518    builtin and then its argument prototype would still apply.  */
37519 #ifdef __cplusplus
37520 extern "C"
37521 #endif
37522 char $ac_func ();
37523 /* The GNU C library defines this for functions which it implements
37524     to always fail with ENOSYS.  Some functions are actually named
37525     something starting with __ and the normal name is an alias.  */
37526 #if defined __stub_$ac_func || defined __stub___$ac_func
37527 choke me
37528 #endif
37529
37530 int
37531 main ()
37532 {
37533 return $ac_func ();
37534   ;
37535   return 0;
37536 }
37537 _ACEOF
37538 rm -f conftest.$ac_objext conftest$ac_exeext
37539 if { (ac_try="$ac_link"
37540 case "(($ac_try" in
37541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37542   *) ac_try_echo=$ac_try;;
37543 esac
37544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37545   (eval "$ac_link") 2>conftest.er1
37546   ac_status=$?
37547   grep -v '^ *+' conftest.er1 >conftest.err
37548   rm -f conftest.er1
37549   cat conftest.err >&5
37550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37551   (exit $ac_status); } && {
37552          test -z "$ac_c_werror_flag" ||
37553          test ! -s conftest.err
37554        } && test -s conftest$ac_exeext &&
37555        $as_test_x conftest$ac_exeext; then
37556   eval "$as_ac_var=yes"
37557 else
37558   echo "$as_me: failed program was:" >&5
37559 sed 's/^/| /' conftest.$ac_ext >&5
37560
37561         eval "$as_ac_var=no"
37562 fi
37563
37564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37565       conftest$ac_exeext conftest.$ac_ext
37566 fi
37567 ac_res=`eval echo '${'$as_ac_var'}'`
37568                { echo "$as_me:$LINENO: result: $ac_res" >&5
37569 echo "${ECHO_T}$ac_res" >&6; }
37570 if test `eval echo '${'$as_ac_var'}'` = yes; then
37571   cat >>confdefs.h <<_ACEOF
37572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37573 _ACEOF
37574
37575 else
37576   echo 'configure: cannot find needed function.'; exit 1
37577
37578 fi
37579 done
37580
37581
37582
37583 for ac_func in fchdir
37584 do
37585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37589   echo $ECHO_N "(cached) $ECHO_C" >&6
37590 else
37591   cat >conftest.$ac_ext <<_ACEOF
37592 /* confdefs.h.  */
37593 _ACEOF
37594 cat confdefs.h >>conftest.$ac_ext
37595 cat >>conftest.$ac_ext <<_ACEOF
37596 /* end confdefs.h.  */
37597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37599 #define $ac_func innocuous_$ac_func
37600
37601 /* System header to define __stub macros and hopefully few prototypes,
37602     which can conflict with char $ac_func (); below.
37603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37604     <limits.h> exists even on freestanding compilers.  */
37605
37606 #ifdef __STDC__
37607 # include <limits.h>
37608 #else
37609 # include <assert.h>
37610 #endif
37611
37612 #undef $ac_func
37613
37614 /* Override any GCC internal prototype to avoid an error.
37615    Use char because int might match the return type of a GCC
37616    builtin and then its argument prototype would still apply.  */
37617 #ifdef __cplusplus
37618 extern "C"
37619 #endif
37620 char $ac_func ();
37621 /* The GNU C library defines this for functions which it implements
37622     to always fail with ENOSYS.  Some functions are actually named
37623     something starting with __ and the normal name is an alias.  */
37624 #if defined __stub_$ac_func || defined __stub___$ac_func
37625 choke me
37626 #endif
37627
37628 int
37629 main ()
37630 {
37631 return $ac_func ();
37632   ;
37633   return 0;
37634 }
37635 _ACEOF
37636 rm -f conftest.$ac_objext conftest$ac_exeext
37637 if { (ac_try="$ac_link"
37638 case "(($ac_try" in
37639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37640   *) ac_try_echo=$ac_try;;
37641 esac
37642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37643   (eval "$ac_link") 2>conftest.er1
37644   ac_status=$?
37645   grep -v '^ *+' conftest.er1 >conftest.err
37646   rm -f conftest.er1
37647   cat conftest.err >&5
37648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37649   (exit $ac_status); } && {
37650          test -z "$ac_c_werror_flag" ||
37651          test ! -s conftest.err
37652        } && test -s conftest$ac_exeext &&
37653        $as_test_x conftest$ac_exeext; then
37654   eval "$as_ac_var=yes"
37655 else
37656   echo "$as_me: failed program was:" >&5
37657 sed 's/^/| /' conftest.$ac_ext >&5
37658
37659         eval "$as_ac_var=no"
37660 fi
37661
37662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37663       conftest$ac_exeext conftest.$ac_ext
37664 fi
37665 ac_res=`eval echo '${'$as_ac_var'}'`
37666                { echo "$as_me:$LINENO: result: $ac_res" >&5
37667 echo "${ECHO_T}$ac_res" >&6; }
37668 if test `eval echo '${'$as_ac_var'}'` = yes; then
37669   cat >>confdefs.h <<_ACEOF
37670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37671 _ACEOF
37672  cat >>confdefs.h <<\_ACEOF
37673 #define HAVE_FCHDIR 1
37674 _ACEOF
37675
37676 fi
37677 done
37678
37679
37680 for ac_func in strtoll
37681 do
37682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37686   echo $ECHO_N "(cached) $ECHO_C" >&6
37687 else
37688   cat >conftest.$ac_ext <<_ACEOF
37689 /* confdefs.h.  */
37690 _ACEOF
37691 cat confdefs.h >>conftest.$ac_ext
37692 cat >>conftest.$ac_ext <<_ACEOF
37693 /* end confdefs.h.  */
37694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37696 #define $ac_func innocuous_$ac_func
37697
37698 /* System header to define __stub macros and hopefully few prototypes,
37699     which can conflict with char $ac_func (); below.
37700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37701     <limits.h> exists even on freestanding compilers.  */
37702
37703 #ifdef __STDC__
37704 # include <limits.h>
37705 #else
37706 # include <assert.h>
37707 #endif
37708
37709 #undef $ac_func
37710
37711 /* Override any GCC internal prototype to avoid an error.
37712    Use char because int might match the return type of a GCC
37713    builtin and then its argument prototype would still apply.  */
37714 #ifdef __cplusplus
37715 extern "C"
37716 #endif
37717 char $ac_func ();
37718 /* The GNU C library defines this for functions which it implements
37719     to always fail with ENOSYS.  Some functions are actually named
37720     something starting with __ and the normal name is an alias.  */
37721 #if defined __stub_$ac_func || defined __stub___$ac_func
37722 choke me
37723 #endif
37724
37725 int
37726 main ()
37727 {
37728 return $ac_func ();
37729   ;
37730   return 0;
37731 }
37732 _ACEOF
37733 rm -f conftest.$ac_objext conftest$ac_exeext
37734 if { (ac_try="$ac_link"
37735 case "(($ac_try" in
37736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37737   *) ac_try_echo=$ac_try;;
37738 esac
37739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37740   (eval "$ac_link") 2>conftest.er1
37741   ac_status=$?
37742   grep -v '^ *+' conftest.er1 >conftest.err
37743   rm -f conftest.er1
37744   cat conftest.err >&5
37745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37746   (exit $ac_status); } && {
37747          test -z "$ac_c_werror_flag" ||
37748          test ! -s conftest.err
37749        } && test -s conftest$ac_exeext &&
37750        $as_test_x conftest$ac_exeext; then
37751   eval "$as_ac_var=yes"
37752 else
37753   echo "$as_me: failed program was:" >&5
37754 sed 's/^/| /' conftest.$ac_ext >&5
37755
37756         eval "$as_ac_var=no"
37757 fi
37758
37759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37760       conftest$ac_exeext conftest.$ac_ext
37761 fi
37762 ac_res=`eval echo '${'$as_ac_var'}'`
37763                { echo "$as_me:$LINENO: result: $ac_res" >&5
37764 echo "${ECHO_T}$ac_res" >&6; }
37765 if test `eval echo '${'$as_ac_var'}'` = yes; then
37766   cat >>confdefs.h <<_ACEOF
37767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37768 _ACEOF
37769  cat >>confdefs.h <<\_ACEOF
37770 #define HAVE_STRTOLL 1
37771 _ACEOF
37772
37773 fi
37774 done
37775
37776
37777 for ac_func in posix_fadvise
37778 do
37779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37783   echo $ECHO_N "(cached) $ECHO_C" >&6
37784 else
37785   cat >conftest.$ac_ext <<_ACEOF
37786 /* confdefs.h.  */
37787 _ACEOF
37788 cat confdefs.h >>conftest.$ac_ext
37789 cat >>conftest.$ac_ext <<_ACEOF
37790 /* end confdefs.h.  */
37791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37793 #define $ac_func innocuous_$ac_func
37794
37795 /* System header to define __stub macros and hopefully few prototypes,
37796     which can conflict with char $ac_func (); below.
37797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37798     <limits.h> exists even on freestanding compilers.  */
37799
37800 #ifdef __STDC__
37801 # include <limits.h>
37802 #else
37803 # include <assert.h>
37804 #endif
37805
37806 #undef $ac_func
37807
37808 /* Override any GCC internal prototype to avoid an error.
37809    Use char because int might match the return type of a GCC
37810    builtin and then its argument prototype would still apply.  */
37811 #ifdef __cplusplus
37812 extern "C"
37813 #endif
37814 char $ac_func ();
37815 /* The GNU C library defines this for functions which it implements
37816     to always fail with ENOSYS.  Some functions are actually named
37817     something starting with __ and the normal name is an alias.  */
37818 #if defined __stub_$ac_func || defined __stub___$ac_func
37819 choke me
37820 #endif
37821
37822 int
37823 main ()
37824 {
37825 return $ac_func ();
37826   ;
37827   return 0;
37828 }
37829 _ACEOF
37830 rm -f conftest.$ac_objext conftest$ac_exeext
37831 if { (ac_try="$ac_link"
37832 case "(($ac_try" in
37833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37834   *) ac_try_echo=$ac_try;;
37835 esac
37836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37837   (eval "$ac_link") 2>conftest.er1
37838   ac_status=$?
37839   grep -v '^ *+' conftest.er1 >conftest.err
37840   rm -f conftest.er1
37841   cat conftest.err >&5
37842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37843   (exit $ac_status); } && {
37844          test -z "$ac_c_werror_flag" ||
37845          test ! -s conftest.err
37846        } && test -s conftest$ac_exeext &&
37847        $as_test_x conftest$ac_exeext; then
37848   eval "$as_ac_var=yes"
37849 else
37850   echo "$as_me: failed program was:" >&5
37851 sed 's/^/| /' conftest.$ac_ext >&5
37852
37853         eval "$as_ac_var=no"
37854 fi
37855
37856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37857       conftest$ac_exeext conftest.$ac_ext
37858 fi
37859 ac_res=`eval echo '${'$as_ac_var'}'`
37860                { echo "$as_me:$LINENO: result: $ac_res" >&5
37861 echo "${ECHO_T}$ac_res" >&6; }
37862 if test `eval echo '${'$as_ac_var'}'` = yes; then
37863   cat >>confdefs.h <<_ACEOF
37864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37865 _ACEOF
37866
37867 fi
37868 done
37869
37870
37871 for ac_func in fdatasync
37872 do
37873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37877   echo $ECHO_N "(cached) $ECHO_C" >&6
37878 else
37879   cat >conftest.$ac_ext <<_ACEOF
37880 /* confdefs.h.  */
37881 _ACEOF
37882 cat confdefs.h >>conftest.$ac_ext
37883 cat >>conftest.$ac_ext <<_ACEOF
37884 /* end confdefs.h.  */
37885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37887 #define $ac_func innocuous_$ac_func
37888
37889 /* System header to define __stub macros and hopefully few prototypes,
37890     which can conflict with char $ac_func (); below.
37891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37892     <limits.h> exists even on freestanding compilers.  */
37893
37894 #ifdef __STDC__
37895 # include <limits.h>
37896 #else
37897 # include <assert.h>
37898 #endif
37899
37900 #undef $ac_func
37901
37902 /* Override any GCC internal prototype to avoid an error.
37903    Use char because int might match the return type of a GCC
37904    builtin and then its argument prototype would still apply.  */
37905 #ifdef __cplusplus
37906 extern "C"
37907 #endif
37908 char $ac_func ();
37909 /* The GNU C library defines this for functions which it implements
37910     to always fail with ENOSYS.  Some functions are actually named
37911     something starting with __ and the normal name is an alias.  */
37912 #if defined __stub_$ac_func || defined __stub___$ac_func
37913 choke me
37914 #endif
37915
37916 int
37917 main ()
37918 {
37919 return $ac_func ();
37920   ;
37921   return 0;
37922 }
37923 _ACEOF
37924 rm -f conftest.$ac_objext conftest$ac_exeext
37925 if { (ac_try="$ac_link"
37926 case "(($ac_try" in
37927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37928   *) ac_try_echo=$ac_try;;
37929 esac
37930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37931   (eval "$ac_link") 2>conftest.er1
37932   ac_status=$?
37933   grep -v '^ *+' conftest.er1 >conftest.err
37934   rm -f conftest.er1
37935   cat conftest.err >&5
37936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937   (exit $ac_status); } && {
37938          test -z "$ac_c_werror_flag" ||
37939          test ! -s conftest.err
37940        } && test -s conftest$ac_exeext &&
37941        $as_test_x conftest$ac_exeext; then
37942   eval "$as_ac_var=yes"
37943 else
37944   echo "$as_me: failed program was:" >&5
37945 sed 's/^/| /' conftest.$ac_ext >&5
37946
37947         eval "$as_ac_var=no"
37948 fi
37949
37950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37951       conftest$ac_exeext conftest.$ac_ext
37952 fi
37953 ac_res=`eval echo '${'$as_ac_var'}'`
37954                { echo "$as_me:$LINENO: result: $ac_res" >&5
37955 echo "${ECHO_T}$ac_res" >&6; }
37956 if test `eval echo '${'$as_ac_var'}'` = yes; then
37957   cat >>confdefs.h <<_ACEOF
37958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37959 _ACEOF
37960
37961 fi
37962 done
37963
37964
37965
37966 for ac_func in chflags
37967 do
37968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37972   echo $ECHO_N "(cached) $ECHO_C" >&6
37973 else
37974   cat >conftest.$ac_ext <<_ACEOF
37975 /* confdefs.h.  */
37976 _ACEOF
37977 cat confdefs.h >>conftest.$ac_ext
37978 cat >>conftest.$ac_ext <<_ACEOF
37979 /* end confdefs.h.  */
37980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37982 #define $ac_func innocuous_$ac_func
37983
37984 /* System header to define __stub macros and hopefully few prototypes,
37985     which can conflict with char $ac_func (); below.
37986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37987     <limits.h> exists even on freestanding compilers.  */
37988
37989 #ifdef __STDC__
37990 # include <limits.h>
37991 #else
37992 # include <assert.h>
37993 #endif
37994
37995 #undef $ac_func
37996
37997 /* Override any GCC internal prototype to avoid an error.
37998    Use char because int might match the return type of a GCC
37999    builtin and then its argument prototype would still apply.  */
38000 #ifdef __cplusplus
38001 extern "C"
38002 #endif
38003 char $ac_func ();
38004 /* The GNU C library defines this for functions which it implements
38005     to always fail with ENOSYS.  Some functions are actually named
38006     something starting with __ and the normal name is an alias.  */
38007 #if defined __stub_$ac_func || defined __stub___$ac_func
38008 choke me
38009 #endif
38010
38011 int
38012 main ()
38013 {
38014 return $ac_func ();
38015   ;
38016   return 0;
38017 }
38018 _ACEOF
38019 rm -f conftest.$ac_objext conftest$ac_exeext
38020 if { (ac_try="$ac_link"
38021 case "(($ac_try" in
38022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38023   *) ac_try_echo=$ac_try;;
38024 esac
38025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38026   (eval "$ac_link") 2>conftest.er1
38027   ac_status=$?
38028   grep -v '^ *+' conftest.er1 >conftest.err
38029   rm -f conftest.er1
38030   cat conftest.err >&5
38031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38032   (exit $ac_status); } && {
38033          test -z "$ac_c_werror_flag" ||
38034          test ! -s conftest.err
38035        } && test -s conftest$ac_exeext &&
38036        $as_test_x conftest$ac_exeext; then
38037   eval "$as_ac_var=yes"
38038 else
38039   echo "$as_me: failed program was:" >&5
38040 sed 's/^/| /' conftest.$ac_ext >&5
38041
38042         eval "$as_ac_var=no"
38043 fi
38044
38045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38046       conftest$ac_exeext conftest.$ac_ext
38047 fi
38048 ac_res=`eval echo '${'$as_ac_var'}'`
38049                { echo "$as_me:$LINENO: result: $ac_res" >&5
38050 echo "${ECHO_T}$ac_res" >&6; }
38051 if test `eval echo '${'$as_ac_var'}'` = yes; then
38052   cat >>confdefs.h <<_ACEOF
38053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38054 _ACEOF
38055
38056 fi
38057 done
38058
38059
38060
38061
38062
38063
38064 for ac_func in snprintf vsnprintf gethostid fseeko
38065 do
38066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38070   echo $ECHO_N "(cached) $ECHO_C" >&6
38071 else
38072   cat >conftest.$ac_ext <<_ACEOF
38073 /* confdefs.h.  */
38074 _ACEOF
38075 cat confdefs.h >>conftest.$ac_ext
38076 cat >>conftest.$ac_ext <<_ACEOF
38077 /* end confdefs.h.  */
38078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38080 #define $ac_func innocuous_$ac_func
38081
38082 /* System header to define __stub macros and hopefully few prototypes,
38083     which can conflict with char $ac_func (); below.
38084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38085     <limits.h> exists even on freestanding compilers.  */
38086
38087 #ifdef __STDC__
38088 # include <limits.h>
38089 #else
38090 # include <assert.h>
38091 #endif
38092
38093 #undef $ac_func
38094
38095 /* Override any GCC internal prototype to avoid an error.
38096    Use char because int might match the return type of a GCC
38097    builtin and then its argument prototype would still apply.  */
38098 #ifdef __cplusplus
38099 extern "C"
38100 #endif
38101 char $ac_func ();
38102 /* The GNU C library defines this for functions which it implements
38103     to always fail with ENOSYS.  Some functions are actually named
38104     something starting with __ and the normal name is an alias.  */
38105 #if defined __stub_$ac_func || defined __stub___$ac_func
38106 choke me
38107 #endif
38108
38109 int
38110 main ()
38111 {
38112 return $ac_func ();
38113   ;
38114   return 0;
38115 }
38116 _ACEOF
38117 rm -f conftest.$ac_objext conftest$ac_exeext
38118 if { (ac_try="$ac_link"
38119 case "(($ac_try" in
38120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38121   *) ac_try_echo=$ac_try;;
38122 esac
38123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38124   (eval "$ac_link") 2>conftest.er1
38125   ac_status=$?
38126   grep -v '^ *+' conftest.er1 >conftest.err
38127   rm -f conftest.er1
38128   cat conftest.err >&5
38129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38130   (exit $ac_status); } && {
38131          test -z "$ac_c_werror_flag" ||
38132          test ! -s conftest.err
38133        } && test -s conftest$ac_exeext &&
38134        $as_test_x conftest$ac_exeext; then
38135   eval "$as_ac_var=yes"
38136 else
38137   echo "$as_me: failed program was:" >&5
38138 sed 's/^/| /' conftest.$ac_ext >&5
38139
38140         eval "$as_ac_var=no"
38141 fi
38142
38143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38144       conftest$ac_exeext conftest.$ac_ext
38145 fi
38146 ac_res=`eval echo '${'$as_ac_var'}'`
38147                { echo "$as_me:$LINENO: result: $ac_res" >&5
38148 echo "${ECHO_T}$ac_res" >&6; }
38149 if test `eval echo '${'$as_ac_var'}'` = yes; then
38150   cat >>confdefs.h <<_ACEOF
38151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38152 _ACEOF
38153
38154 fi
38155 done
38156
38157
38158 { echo "$as_me:$LINENO: checking for va_copy" >&5
38159 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38160 if test "${ba_cv_va_copy+set}" = set; then
38161   echo $ECHO_N "(cached) $ECHO_C" >&6
38162 else
38163
38164        cat >conftest.$ac_ext <<_ACEOF
38165 /* confdefs.h.  */
38166 _ACEOF
38167 cat confdefs.h >>conftest.$ac_ext
38168 cat >>conftest.$ac_ext <<_ACEOF
38169 /* end confdefs.h.  */
38170
38171               #include <stdarg.h>
38172               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38173               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38174
38175 int
38176 main ()
38177 {
38178
38179               call_use_va_copy(1,2,3)
38180
38181   ;
38182   return 0;
38183 }
38184 _ACEOF
38185 rm -f conftest.$ac_objext conftest$ac_exeext
38186 if { (ac_try="$ac_link"
38187 case "(($ac_try" in
38188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38189   *) ac_try_echo=$ac_try;;
38190 esac
38191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38192   (eval "$ac_link") 2>conftest.er1
38193   ac_status=$?
38194   grep -v '^ *+' conftest.er1 >conftest.err
38195   rm -f conftest.er1
38196   cat conftest.err >&5
38197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198   (exit $ac_status); } && {
38199          test -z "$ac_c_werror_flag" ||
38200          test ! -s conftest.err
38201        } && test -s conftest$ac_exeext &&
38202        $as_test_x conftest$ac_exeext; then
38203
38204               ba_cv_va_copy=yes,
38205
38206 else
38207   echo "$as_me: failed program was:" >&5
38208 sed 's/^/| /' conftest.$ac_ext >&5
38209
38210
38211               ba_cv_va_copy=no
38212
38213
38214 fi
38215
38216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38217       conftest$ac_exeext conftest.$ac_ext
38218
38219
38220 fi
38221 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38222 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38223 test $ba_cv_va_copy = yes &&
38224 cat >>confdefs.h <<\_ACEOF
38225 #define HAVE_VA_COPY 1
38226 _ACEOF
38227
38228
38229
38230
38231
38232
38233 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38234 do
38235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38239   echo $ECHO_N "(cached) $ECHO_C" >&6
38240 else
38241   cat >conftest.$ac_ext <<_ACEOF
38242 /* confdefs.h.  */
38243 _ACEOF
38244 cat confdefs.h >>conftest.$ac_ext
38245 cat >>conftest.$ac_ext <<_ACEOF
38246 /* end confdefs.h.  */
38247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38249 #define $ac_func innocuous_$ac_func
38250
38251 /* System header to define __stub macros and hopefully few prototypes,
38252     which can conflict with char $ac_func (); below.
38253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38254     <limits.h> exists even on freestanding compilers.  */
38255
38256 #ifdef __STDC__
38257 # include <limits.h>
38258 #else
38259 # include <assert.h>
38260 #endif
38261
38262 #undef $ac_func
38263
38264 /* Override any GCC internal prototype to avoid an error.
38265    Use char because int might match the return type of a GCC
38266    builtin and then its argument prototype would still apply.  */
38267 #ifdef __cplusplus
38268 extern "C"
38269 #endif
38270 char $ac_func ();
38271 /* The GNU C library defines this for functions which it implements
38272     to always fail with ENOSYS.  Some functions are actually named
38273     something starting with __ and the normal name is an alias.  */
38274 #if defined __stub_$ac_func || defined __stub___$ac_func
38275 choke me
38276 #endif
38277
38278 int
38279 main ()
38280 {
38281 return $ac_func ();
38282   ;
38283   return 0;
38284 }
38285 _ACEOF
38286 rm -f conftest.$ac_objext conftest$ac_exeext
38287 if { (ac_try="$ac_link"
38288 case "(($ac_try" in
38289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38290   *) ac_try_echo=$ac_try;;
38291 esac
38292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38293   (eval "$ac_link") 2>conftest.er1
38294   ac_status=$?
38295   grep -v '^ *+' conftest.er1 >conftest.err
38296   rm -f conftest.er1
38297   cat conftest.err >&5
38298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299   (exit $ac_status); } && {
38300          test -z "$ac_c_werror_flag" ||
38301          test ! -s conftest.err
38302        } && test -s conftest$ac_exeext &&
38303        $as_test_x conftest$ac_exeext; then
38304   eval "$as_ac_var=yes"
38305 else
38306   echo "$as_me: failed program was:" >&5
38307 sed 's/^/| /' conftest.$ac_ext >&5
38308
38309         eval "$as_ac_var=no"
38310 fi
38311
38312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38313       conftest$ac_exeext conftest.$ac_ext
38314 fi
38315 ac_res=`eval echo '${'$as_ac_var'}'`
38316                { echo "$as_me:$LINENO: result: $ac_res" >&5
38317 echo "${ECHO_T}$ac_res" >&6; }
38318 if test `eval echo '${'$as_ac_var'}'` = yes; then
38319   cat >>confdefs.h <<_ACEOF
38320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38321 _ACEOF
38322
38323 fi
38324 done
38325
38326
38327 # If resolver functions are not in libc check for -lnsl or -lresolv.
38328 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38329 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38330 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38331   echo $ECHO_N "(cached) $ECHO_C" >&6
38332 else
38333   cat >conftest.$ac_ext <<_ACEOF
38334 /* confdefs.h.  */
38335 _ACEOF
38336 cat confdefs.h >>conftest.$ac_ext
38337 cat >>conftest.$ac_ext <<_ACEOF
38338 /* end confdefs.h.  */
38339 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38341 #define gethostbyname_r innocuous_gethostbyname_r
38342
38343 /* System header to define __stub macros and hopefully few prototypes,
38344     which can conflict with char gethostbyname_r (); below.
38345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38346     <limits.h> exists even on freestanding compilers.  */
38347
38348 #ifdef __STDC__
38349 # include <limits.h>
38350 #else
38351 # include <assert.h>
38352 #endif
38353
38354 #undef gethostbyname_r
38355
38356 /* Override any GCC internal prototype to avoid an error.
38357    Use char because int might match the return type of a GCC
38358    builtin and then its argument prototype would still apply.  */
38359 #ifdef __cplusplus
38360 extern "C"
38361 #endif
38362 char gethostbyname_r ();
38363 /* The GNU C library defines this for functions which it implements
38364     to always fail with ENOSYS.  Some functions are actually named
38365     something starting with __ and the normal name is an alias.  */
38366 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38367 choke me
38368 #endif
38369
38370 int
38371 main ()
38372 {
38373 return gethostbyname_r ();
38374   ;
38375   return 0;
38376 }
38377 _ACEOF
38378 rm -f conftest.$ac_objext conftest$ac_exeext
38379 if { (ac_try="$ac_link"
38380 case "(($ac_try" in
38381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38382   *) ac_try_echo=$ac_try;;
38383 esac
38384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38385   (eval "$ac_link") 2>conftest.er1
38386   ac_status=$?
38387   grep -v '^ *+' conftest.er1 >conftest.err
38388   rm -f conftest.er1
38389   cat conftest.err >&5
38390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391   (exit $ac_status); } && {
38392          test -z "$ac_c_werror_flag" ||
38393          test ! -s conftest.err
38394        } && test -s conftest$ac_exeext &&
38395        $as_test_x conftest$ac_exeext; then
38396   ac_cv_func_gethostbyname_r=yes
38397 else
38398   echo "$as_me: failed program was:" >&5
38399 sed 's/^/| /' conftest.$ac_ext >&5
38400
38401         ac_cv_func_gethostbyname_r=no
38402 fi
38403
38404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38405       conftest$ac_exeext conftest.$ac_ext
38406 fi
38407 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38408 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38409 if test $ac_cv_func_gethostbyname_r = yes; then
38410   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38411 echo "${ECHO_T}using libc's resolver" >&6; }
38412 else
38413
38414 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38415 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38416 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38417   echo $ECHO_N "(cached) $ECHO_C" >&6
38418 else
38419   ac_check_lib_save_LIBS=$LIBS
38420 LIBS="-lnsl  $LIBS"
38421 cat >conftest.$ac_ext <<_ACEOF
38422 /* confdefs.h.  */
38423 _ACEOF
38424 cat confdefs.h >>conftest.$ac_ext
38425 cat >>conftest.$ac_ext <<_ACEOF
38426 /* end confdefs.h.  */
38427
38428 /* Override any GCC internal prototype to avoid an error.
38429    Use char because int might match the return type of a GCC
38430    builtin and then its argument prototype would still apply.  */
38431 #ifdef __cplusplus
38432 extern "C"
38433 #endif
38434 char gethostbyname_r ();
38435 int
38436 main ()
38437 {
38438 return gethostbyname_r ();
38439   ;
38440   return 0;
38441 }
38442 _ACEOF
38443 rm -f conftest.$ac_objext conftest$ac_exeext
38444 if { (ac_try="$ac_link"
38445 case "(($ac_try" in
38446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38447   *) ac_try_echo=$ac_try;;
38448 esac
38449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38450   (eval "$ac_link") 2>conftest.er1
38451   ac_status=$?
38452   grep -v '^ *+' conftest.er1 >conftest.err
38453   rm -f conftest.er1
38454   cat conftest.err >&5
38455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38456   (exit $ac_status); } && {
38457          test -z "$ac_c_werror_flag" ||
38458          test ! -s conftest.err
38459        } && test -s conftest$ac_exeext &&
38460        $as_test_x conftest$ac_exeext; then
38461   ac_cv_lib_nsl_gethostbyname_r=yes
38462 else
38463   echo "$as_me: failed program was:" >&5
38464 sed 's/^/| /' conftest.$ac_ext >&5
38465
38466         ac_cv_lib_nsl_gethostbyname_r=no
38467 fi
38468
38469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38470       conftest$ac_exeext conftest.$ac_ext
38471 LIBS=$ac_check_lib_save_LIBS
38472 fi
38473 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38474 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38475 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38476   cat >>confdefs.h <<_ACEOF
38477 #define HAVE_LIBNSL 1
38478 _ACEOF
38479
38480   LIBS="-lnsl $LIBS"
38481
38482 fi
38483
38484
38485 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38486 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38487 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38488   echo $ECHO_N "(cached) $ECHO_C" >&6
38489 else
38490   ac_check_lib_save_LIBS=$LIBS
38491 LIBS="-lresolv  $LIBS"
38492 cat >conftest.$ac_ext <<_ACEOF
38493 /* confdefs.h.  */
38494 _ACEOF
38495 cat confdefs.h >>conftest.$ac_ext
38496 cat >>conftest.$ac_ext <<_ACEOF
38497 /* end confdefs.h.  */
38498
38499 /* Override any GCC internal prototype to avoid an error.
38500    Use char because int might match the return type of a GCC
38501    builtin and then its argument prototype would still apply.  */
38502 #ifdef __cplusplus
38503 extern "C"
38504 #endif
38505 char gethostbyname_r ();
38506 int
38507 main ()
38508 {
38509 return gethostbyname_r ();
38510   ;
38511   return 0;
38512 }
38513 _ACEOF
38514 rm -f conftest.$ac_objext conftest$ac_exeext
38515 if { (ac_try="$ac_link"
38516 case "(($ac_try" in
38517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38518   *) ac_try_echo=$ac_try;;
38519 esac
38520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38521   (eval "$ac_link") 2>conftest.er1
38522   ac_status=$?
38523   grep -v '^ *+' conftest.er1 >conftest.err
38524   rm -f conftest.er1
38525   cat conftest.err >&5
38526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527   (exit $ac_status); } && {
38528          test -z "$ac_c_werror_flag" ||
38529          test ! -s conftest.err
38530        } && test -s conftest$ac_exeext &&
38531        $as_test_x conftest$ac_exeext; then
38532   ac_cv_lib_resolv_gethostbyname_r=yes
38533 else
38534   echo "$as_me: failed program was:" >&5
38535 sed 's/^/| /' conftest.$ac_ext >&5
38536
38537         ac_cv_lib_resolv_gethostbyname_r=no
38538 fi
38539
38540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38541       conftest$ac_exeext conftest.$ac_ext
38542 LIBS=$ac_check_lib_save_LIBS
38543 fi
38544 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38545 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38546 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38547   cat >>confdefs.h <<_ACEOF
38548 #define HAVE_LIBRESOLV 1
38549 _ACEOF
38550
38551   LIBS="-lresolv $LIBS"
38552
38553 fi
38554
38555 fi
38556
38557
38558
38559 for ac_func in inet_pton
38560 do
38561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38562 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38565   echo $ECHO_N "(cached) $ECHO_C" >&6
38566 else
38567   cat >conftest.$ac_ext <<_ACEOF
38568 /* confdefs.h.  */
38569 _ACEOF
38570 cat confdefs.h >>conftest.$ac_ext
38571 cat >>conftest.$ac_ext <<_ACEOF
38572 /* end confdefs.h.  */
38573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38575 #define $ac_func innocuous_$ac_func
38576
38577 /* System header to define __stub macros and hopefully few prototypes,
38578     which can conflict with char $ac_func (); below.
38579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38580     <limits.h> exists even on freestanding compilers.  */
38581
38582 #ifdef __STDC__
38583 # include <limits.h>
38584 #else
38585 # include <assert.h>
38586 #endif
38587
38588 #undef $ac_func
38589
38590 /* Override any GCC internal prototype to avoid an error.
38591    Use char because int might match the return type of a GCC
38592    builtin and then its argument prototype would still apply.  */
38593 #ifdef __cplusplus
38594 extern "C"
38595 #endif
38596 char $ac_func ();
38597 /* The GNU C library defines this for functions which it implements
38598     to always fail with ENOSYS.  Some functions are actually named
38599     something starting with __ and the normal name is an alias.  */
38600 #if defined __stub_$ac_func || defined __stub___$ac_func
38601 choke me
38602 #endif
38603
38604 int
38605 main ()
38606 {
38607 return $ac_func ();
38608   ;
38609   return 0;
38610 }
38611 _ACEOF
38612 rm -f conftest.$ac_objext conftest$ac_exeext
38613 if { (ac_try="$ac_link"
38614 case "(($ac_try" in
38615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38616   *) ac_try_echo=$ac_try;;
38617 esac
38618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38619   (eval "$ac_link") 2>conftest.er1
38620   ac_status=$?
38621   grep -v '^ *+' conftest.er1 >conftest.err
38622   rm -f conftest.er1
38623   cat conftest.err >&5
38624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38625   (exit $ac_status); } && {
38626          test -z "$ac_c_werror_flag" ||
38627          test ! -s conftest.err
38628        } && test -s conftest$ac_exeext &&
38629        $as_test_x conftest$ac_exeext; then
38630   eval "$as_ac_var=yes"
38631 else
38632   echo "$as_me: failed program was:" >&5
38633 sed 's/^/| /' conftest.$ac_ext >&5
38634
38635         eval "$as_ac_var=no"
38636 fi
38637
38638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38639       conftest$ac_exeext conftest.$ac_ext
38640 fi
38641 ac_res=`eval echo '${'$as_ac_var'}'`
38642                { echo "$as_me:$LINENO: result: $ac_res" >&5
38643 echo "${ECHO_T}$ac_res" >&6; }
38644 if test `eval echo '${'$as_ac_var'}'` = yes; then
38645   cat >>confdefs.h <<_ACEOF
38646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38647 _ACEOF
38648  cat >>confdefs.h <<\_ACEOF
38649 #define HAVE_INET_PTON 1
38650 _ACEOF
38651
38652 fi
38653 done
38654
38655
38656 for ac_func in inet_ntop
38657 do
38658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38662   echo $ECHO_N "(cached) $ECHO_C" >&6
38663 else
38664   cat >conftest.$ac_ext <<_ACEOF
38665 /* confdefs.h.  */
38666 _ACEOF
38667 cat confdefs.h >>conftest.$ac_ext
38668 cat >>conftest.$ac_ext <<_ACEOF
38669 /* end confdefs.h.  */
38670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38672 #define $ac_func innocuous_$ac_func
38673
38674 /* System header to define __stub macros and hopefully few prototypes,
38675     which can conflict with char $ac_func (); below.
38676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38677     <limits.h> exists even on freestanding compilers.  */
38678
38679 #ifdef __STDC__
38680 # include <limits.h>
38681 #else
38682 # include <assert.h>
38683 #endif
38684
38685 #undef $ac_func
38686
38687 /* Override any GCC internal prototype to avoid an error.
38688    Use char because int might match the return type of a GCC
38689    builtin and then its argument prototype would still apply.  */
38690 #ifdef __cplusplus
38691 extern "C"
38692 #endif
38693 char $ac_func ();
38694 /* The GNU C library defines this for functions which it implements
38695     to always fail with ENOSYS.  Some functions are actually named
38696     something starting with __ and the normal name is an alias.  */
38697 #if defined __stub_$ac_func || defined __stub___$ac_func
38698 choke me
38699 #endif
38700
38701 int
38702 main ()
38703 {
38704 return $ac_func ();
38705   ;
38706   return 0;
38707 }
38708 _ACEOF
38709 rm -f conftest.$ac_objext conftest$ac_exeext
38710 if { (ac_try="$ac_link"
38711 case "(($ac_try" in
38712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38713   *) ac_try_echo=$ac_try;;
38714 esac
38715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38716   (eval "$ac_link") 2>conftest.er1
38717   ac_status=$?
38718   grep -v '^ *+' conftest.er1 >conftest.err
38719   rm -f conftest.er1
38720   cat conftest.err >&5
38721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38722   (exit $ac_status); } && {
38723          test -z "$ac_c_werror_flag" ||
38724          test ! -s conftest.err
38725        } && test -s conftest$ac_exeext &&
38726        $as_test_x conftest$ac_exeext; then
38727   eval "$as_ac_var=yes"
38728 else
38729   echo "$as_me: failed program was:" >&5
38730 sed 's/^/| /' conftest.$ac_ext >&5
38731
38732         eval "$as_ac_var=no"
38733 fi
38734
38735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38736       conftest$ac_exeext conftest.$ac_ext
38737 fi
38738 ac_res=`eval echo '${'$as_ac_var'}'`
38739                { echo "$as_me:$LINENO: result: $ac_res" >&5
38740 echo "${ECHO_T}$ac_res" >&6; }
38741 if test `eval echo '${'$as_ac_var'}'` = yes; then
38742   cat >>confdefs.h <<_ACEOF
38743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38744 _ACEOF
38745  cat >>confdefs.h <<\_ACEOF
38746 #define HAVE_INET_NTOP 1
38747 _ACEOF
38748
38749 fi
38750 done
38751
38752
38753 for ac_func in gethostbyname2
38754 do
38755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38759   echo $ECHO_N "(cached) $ECHO_C" >&6
38760 else
38761   cat >conftest.$ac_ext <<_ACEOF
38762 /* confdefs.h.  */
38763 _ACEOF
38764 cat confdefs.h >>conftest.$ac_ext
38765 cat >>conftest.$ac_ext <<_ACEOF
38766 /* end confdefs.h.  */
38767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38769 #define $ac_func innocuous_$ac_func
38770
38771 /* System header to define __stub macros and hopefully few prototypes,
38772     which can conflict with char $ac_func (); below.
38773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38774     <limits.h> exists even on freestanding compilers.  */
38775
38776 #ifdef __STDC__
38777 # include <limits.h>
38778 #else
38779 # include <assert.h>
38780 #endif
38781
38782 #undef $ac_func
38783
38784 /* Override any GCC internal prototype to avoid an error.
38785    Use char because int might match the return type of a GCC
38786    builtin and then its argument prototype would still apply.  */
38787 #ifdef __cplusplus
38788 extern "C"
38789 #endif
38790 char $ac_func ();
38791 /* The GNU C library defines this for functions which it implements
38792     to always fail with ENOSYS.  Some functions are actually named
38793     something starting with __ and the normal name is an alias.  */
38794 #if defined __stub_$ac_func || defined __stub___$ac_func
38795 choke me
38796 #endif
38797
38798 int
38799 main ()
38800 {
38801 return $ac_func ();
38802   ;
38803   return 0;
38804 }
38805 _ACEOF
38806 rm -f conftest.$ac_objext conftest$ac_exeext
38807 if { (ac_try="$ac_link"
38808 case "(($ac_try" in
38809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38810   *) ac_try_echo=$ac_try;;
38811 esac
38812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38813   (eval "$ac_link") 2>conftest.er1
38814   ac_status=$?
38815   grep -v '^ *+' conftest.er1 >conftest.err
38816   rm -f conftest.er1
38817   cat conftest.err >&5
38818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38819   (exit $ac_status); } && {
38820          test -z "$ac_c_werror_flag" ||
38821          test ! -s conftest.err
38822        } && test -s conftest$ac_exeext &&
38823        $as_test_x conftest$ac_exeext; then
38824   eval "$as_ac_var=yes"
38825 else
38826   echo "$as_me: failed program was:" >&5
38827 sed 's/^/| /' conftest.$ac_ext >&5
38828
38829         eval "$as_ac_var=no"
38830 fi
38831
38832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38833       conftest$ac_exeext conftest.$ac_ext
38834 fi
38835 ac_res=`eval echo '${'$as_ac_var'}'`
38836                { echo "$as_me:$LINENO: result: $ac_res" >&5
38837 echo "${ECHO_T}$ac_res" >&6; }
38838 if test `eval echo '${'$as_ac_var'}'` = yes; then
38839   cat >>confdefs.h <<_ACEOF
38840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38841 _ACEOF
38842  cat >>confdefs.h <<\_ACEOF
38843 #define HAVE_GETHOSTBYNAME2 1
38844 _ACEOF
38845
38846 fi
38847 done
38848
38849
38850 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38851 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38852 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38853   echo $ECHO_N "(cached) $ECHO_C" >&6
38854 else
38855
38856        cat >conftest.$ac_ext <<_ACEOF
38857 /* confdefs.h.  */
38858 _ACEOF
38859 cat confdefs.h >>conftest.$ac_ext
38860 cat >>conftest.$ac_ext <<_ACEOF
38861 /* end confdefs.h.  */
38862
38863               #include <sys/socket.h>
38864
38865 int
38866 main ()
38867 {
38868
38869               struct sockaddr s; s.sa_len;
38870
38871   ;
38872   return 0;
38873 }
38874 _ACEOF
38875 rm -f conftest.$ac_objext
38876 if { (ac_try="$ac_compile"
38877 case "(($ac_try" in
38878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38879   *) ac_try_echo=$ac_try;;
38880 esac
38881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38882   (eval "$ac_compile") 2>conftest.er1
38883   ac_status=$?
38884   grep -v '^ *+' conftest.er1 >conftest.err
38885   rm -f conftest.er1
38886   cat conftest.err >&5
38887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38888   (exit $ac_status); } && {
38889          test -z "$ac_c_werror_flag" ||
38890          test ! -s conftest.err
38891        } && test -s conftest.$ac_objext; then
38892
38893              ac_cv_struct_sockaddr_sa_len=yes
38894
38895 else
38896   echo "$as_me: failed program was:" >&5
38897 sed 's/^/| /' conftest.$ac_ext >&5
38898
38899         ac_cv_struct_sockaddr_sa_len=no
38900
38901
38902 fi
38903
38904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38905
38906
38907 fi
38908 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38909 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38910
38911 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38912
38913 cat >>confdefs.h <<\_ACEOF
38914 #define HAVE_SA_LEN 1
38915 _ACEOF
38916
38917 fi
38918
38919
38920 for ac_func in strftime
38921 do
38922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38926   echo $ECHO_N "(cached) $ECHO_C" >&6
38927 else
38928   cat >conftest.$ac_ext <<_ACEOF
38929 /* confdefs.h.  */
38930 _ACEOF
38931 cat confdefs.h >>conftest.$ac_ext
38932 cat >>conftest.$ac_ext <<_ACEOF
38933 /* end confdefs.h.  */
38934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38936 #define $ac_func innocuous_$ac_func
38937
38938 /* System header to define __stub macros and hopefully few prototypes,
38939     which can conflict with char $ac_func (); below.
38940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38941     <limits.h> exists even on freestanding compilers.  */
38942
38943 #ifdef __STDC__
38944 # include <limits.h>
38945 #else
38946 # include <assert.h>
38947 #endif
38948
38949 #undef $ac_func
38950
38951 /* Override any GCC internal prototype to avoid an error.
38952    Use char because int might match the return type of a GCC
38953    builtin and then its argument prototype would still apply.  */
38954 #ifdef __cplusplus
38955 extern "C"
38956 #endif
38957 char $ac_func ();
38958 /* The GNU C library defines this for functions which it implements
38959     to always fail with ENOSYS.  Some functions are actually named
38960     something starting with __ and the normal name is an alias.  */
38961 #if defined __stub_$ac_func || defined __stub___$ac_func
38962 choke me
38963 #endif
38964
38965 int
38966 main ()
38967 {
38968 return $ac_func ();
38969   ;
38970   return 0;
38971 }
38972 _ACEOF
38973 rm -f conftest.$ac_objext conftest$ac_exeext
38974 if { (ac_try="$ac_link"
38975 case "(($ac_try" in
38976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38977   *) ac_try_echo=$ac_try;;
38978 esac
38979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38980   (eval "$ac_link") 2>conftest.er1
38981   ac_status=$?
38982   grep -v '^ *+' conftest.er1 >conftest.err
38983   rm -f conftest.er1
38984   cat conftest.err >&5
38985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38986   (exit $ac_status); } && {
38987          test -z "$ac_c_werror_flag" ||
38988          test ! -s conftest.err
38989        } && test -s conftest$ac_exeext &&
38990        $as_test_x conftest$ac_exeext; then
38991   eval "$as_ac_var=yes"
38992 else
38993   echo "$as_me: failed program was:" >&5
38994 sed 's/^/| /' conftest.$ac_ext >&5
38995
38996         eval "$as_ac_var=no"
38997 fi
38998
38999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39000       conftest$ac_exeext conftest.$ac_ext
39001 fi
39002 ac_res=`eval echo '${'$as_ac_var'}'`
39003                { echo "$as_me:$LINENO: result: $ac_res" >&5
39004 echo "${ECHO_T}$ac_res" >&6; }
39005 if test `eval echo '${'$as_ac_var'}'` = yes; then
39006   cat >>confdefs.h <<_ACEOF
39007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39008 _ACEOF
39009
39010 else
39011   # strftime is in -lintl on SCO UNIX.
39012 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39013 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39014 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39015   echo $ECHO_N "(cached) $ECHO_C" >&6
39016 else
39017   ac_check_lib_save_LIBS=$LIBS
39018 LIBS="-lintl  $LIBS"
39019 cat >conftest.$ac_ext <<_ACEOF
39020 /* confdefs.h.  */
39021 _ACEOF
39022 cat confdefs.h >>conftest.$ac_ext
39023 cat >>conftest.$ac_ext <<_ACEOF
39024 /* end confdefs.h.  */
39025
39026 /* Override any GCC internal prototype to avoid an error.
39027    Use char because int might match the return type of a GCC
39028    builtin and then its argument prototype would still apply.  */
39029 #ifdef __cplusplus
39030 extern "C"
39031 #endif
39032 char strftime ();
39033 int
39034 main ()
39035 {
39036 return strftime ();
39037   ;
39038   return 0;
39039 }
39040 _ACEOF
39041 rm -f conftest.$ac_objext conftest$ac_exeext
39042 if { (ac_try="$ac_link"
39043 case "(($ac_try" in
39044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39045   *) ac_try_echo=$ac_try;;
39046 esac
39047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39048   (eval "$ac_link") 2>conftest.er1
39049   ac_status=$?
39050   grep -v '^ *+' conftest.er1 >conftest.err
39051   rm -f conftest.er1
39052   cat conftest.err >&5
39053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054   (exit $ac_status); } && {
39055          test -z "$ac_c_werror_flag" ||
39056          test ! -s conftest.err
39057        } && test -s conftest$ac_exeext &&
39058        $as_test_x conftest$ac_exeext; then
39059   ac_cv_lib_intl_strftime=yes
39060 else
39061   echo "$as_me: failed program was:" >&5
39062 sed 's/^/| /' conftest.$ac_ext >&5
39063
39064         ac_cv_lib_intl_strftime=no
39065 fi
39066
39067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39068       conftest$ac_exeext conftest.$ac_ext
39069 LIBS=$ac_check_lib_save_LIBS
39070 fi
39071 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39072 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39073 if test $ac_cv_lib_intl_strftime = yes; then
39074   cat >>confdefs.h <<\_ACEOF
39075 #define HAVE_STRFTIME 1
39076 _ACEOF
39077
39078 LIBS="-lintl $LIBS"
39079 fi
39080
39081 fi
39082 done
39083
39084
39085 for ac_func in vprintf
39086 do
39087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39091   echo $ECHO_N "(cached) $ECHO_C" >&6
39092 else
39093   cat >conftest.$ac_ext <<_ACEOF
39094 /* confdefs.h.  */
39095 _ACEOF
39096 cat confdefs.h >>conftest.$ac_ext
39097 cat >>conftest.$ac_ext <<_ACEOF
39098 /* end confdefs.h.  */
39099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39101 #define $ac_func innocuous_$ac_func
39102
39103 /* System header to define __stub macros and hopefully few prototypes,
39104     which can conflict with char $ac_func (); below.
39105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39106     <limits.h> exists even on freestanding compilers.  */
39107
39108 #ifdef __STDC__
39109 # include <limits.h>
39110 #else
39111 # include <assert.h>
39112 #endif
39113
39114 #undef $ac_func
39115
39116 /* Override any GCC internal prototype to avoid an error.
39117    Use char because int might match the return type of a GCC
39118    builtin and then its argument prototype would still apply.  */
39119 #ifdef __cplusplus
39120 extern "C"
39121 #endif
39122 char $ac_func ();
39123 /* The GNU C library defines this for functions which it implements
39124     to always fail with ENOSYS.  Some functions are actually named
39125     something starting with __ and the normal name is an alias.  */
39126 #if defined __stub_$ac_func || defined __stub___$ac_func
39127 choke me
39128 #endif
39129
39130 int
39131 main ()
39132 {
39133 return $ac_func ();
39134   ;
39135   return 0;
39136 }
39137 _ACEOF
39138 rm -f conftest.$ac_objext conftest$ac_exeext
39139 if { (ac_try="$ac_link"
39140 case "(($ac_try" in
39141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39142   *) ac_try_echo=$ac_try;;
39143 esac
39144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39145   (eval "$ac_link") 2>conftest.er1
39146   ac_status=$?
39147   grep -v '^ *+' conftest.er1 >conftest.err
39148   rm -f conftest.er1
39149   cat conftest.err >&5
39150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39151   (exit $ac_status); } && {
39152          test -z "$ac_c_werror_flag" ||
39153          test ! -s conftest.err
39154        } && test -s conftest$ac_exeext &&
39155        $as_test_x conftest$ac_exeext; then
39156   eval "$as_ac_var=yes"
39157 else
39158   echo "$as_me: failed program was:" >&5
39159 sed 's/^/| /' conftest.$ac_ext >&5
39160
39161         eval "$as_ac_var=no"
39162 fi
39163
39164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39165       conftest$ac_exeext conftest.$ac_ext
39166 fi
39167 ac_res=`eval echo '${'$as_ac_var'}'`
39168                { echo "$as_me:$LINENO: result: $ac_res" >&5
39169 echo "${ECHO_T}$ac_res" >&6; }
39170 if test `eval echo '${'$as_ac_var'}'` = yes; then
39171   cat >>confdefs.h <<_ACEOF
39172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39173 _ACEOF
39174
39175 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39176 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39177 if test "${ac_cv_func__doprnt+set}" = set; then
39178   echo $ECHO_N "(cached) $ECHO_C" >&6
39179 else
39180   cat >conftest.$ac_ext <<_ACEOF
39181 /* confdefs.h.  */
39182 _ACEOF
39183 cat confdefs.h >>conftest.$ac_ext
39184 cat >>conftest.$ac_ext <<_ACEOF
39185 /* end confdefs.h.  */
39186 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39188 #define _doprnt innocuous__doprnt
39189
39190 /* System header to define __stub macros and hopefully few prototypes,
39191     which can conflict with char _doprnt (); below.
39192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39193     <limits.h> exists even on freestanding compilers.  */
39194
39195 #ifdef __STDC__
39196 # include <limits.h>
39197 #else
39198 # include <assert.h>
39199 #endif
39200
39201 #undef _doprnt
39202
39203 /* Override any GCC internal prototype to avoid an error.
39204    Use char because int might match the return type of a GCC
39205    builtin and then its argument prototype would still apply.  */
39206 #ifdef __cplusplus
39207 extern "C"
39208 #endif
39209 char _doprnt ();
39210 /* The GNU C library defines this for functions which it implements
39211     to always fail with ENOSYS.  Some functions are actually named
39212     something starting with __ and the normal name is an alias.  */
39213 #if defined __stub__doprnt || defined __stub____doprnt
39214 choke me
39215 #endif
39216
39217 int
39218 main ()
39219 {
39220 return _doprnt ();
39221   ;
39222   return 0;
39223 }
39224 _ACEOF
39225 rm -f conftest.$ac_objext conftest$ac_exeext
39226 if { (ac_try="$ac_link"
39227 case "(($ac_try" in
39228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39229   *) ac_try_echo=$ac_try;;
39230 esac
39231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39232   (eval "$ac_link") 2>conftest.er1
39233   ac_status=$?
39234   grep -v '^ *+' conftest.er1 >conftest.err
39235   rm -f conftest.er1
39236   cat conftest.err >&5
39237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39238   (exit $ac_status); } && {
39239          test -z "$ac_c_werror_flag" ||
39240          test ! -s conftest.err
39241        } && test -s conftest$ac_exeext &&
39242        $as_test_x conftest$ac_exeext; then
39243   ac_cv_func__doprnt=yes
39244 else
39245   echo "$as_me: failed program was:" >&5
39246 sed 's/^/| /' conftest.$ac_ext >&5
39247
39248         ac_cv_func__doprnt=no
39249 fi
39250
39251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39252       conftest$ac_exeext conftest.$ac_ext
39253 fi
39254 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39255 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39256 if test $ac_cv_func__doprnt = yes; then
39257
39258 cat >>confdefs.h <<\_ACEOF
39259 #define HAVE_DOPRNT 1
39260 _ACEOF
39261
39262 fi
39263
39264 fi
39265 done
39266
39267
39268 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39269 # for constant arguments.  Useless!
39270 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39271 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39272 if test "${ac_cv_working_alloca_h+set}" = set; then
39273   echo $ECHO_N "(cached) $ECHO_C" >&6
39274 else
39275   cat >conftest.$ac_ext <<_ACEOF
39276 /* confdefs.h.  */
39277 _ACEOF
39278 cat confdefs.h >>conftest.$ac_ext
39279 cat >>conftest.$ac_ext <<_ACEOF
39280 /* end confdefs.h.  */
39281 #include <alloca.h>
39282 int
39283 main ()
39284 {
39285 char *p = (char *) alloca (2 * sizeof (int));
39286                           if (p) return 0;
39287   ;
39288   return 0;
39289 }
39290 _ACEOF
39291 rm -f conftest.$ac_objext conftest$ac_exeext
39292 if { (ac_try="$ac_link"
39293 case "(($ac_try" in
39294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39295   *) ac_try_echo=$ac_try;;
39296 esac
39297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39298   (eval "$ac_link") 2>conftest.er1
39299   ac_status=$?
39300   grep -v '^ *+' conftest.er1 >conftest.err
39301   rm -f conftest.er1
39302   cat conftest.err >&5
39303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39304   (exit $ac_status); } && {
39305          test -z "$ac_c_werror_flag" ||
39306          test ! -s conftest.err
39307        } && test -s conftest$ac_exeext &&
39308        $as_test_x conftest$ac_exeext; then
39309   ac_cv_working_alloca_h=yes
39310 else
39311   echo "$as_me: failed program was:" >&5
39312 sed 's/^/| /' conftest.$ac_ext >&5
39313
39314         ac_cv_working_alloca_h=no
39315 fi
39316
39317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39318       conftest$ac_exeext conftest.$ac_ext
39319 fi
39320 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39321 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39322 if test $ac_cv_working_alloca_h = yes; then
39323
39324 cat >>confdefs.h <<\_ACEOF
39325 #define HAVE_ALLOCA_H 1
39326 _ACEOF
39327
39328 fi
39329
39330 { echo "$as_me:$LINENO: checking for alloca" >&5
39331 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39332 if test "${ac_cv_func_alloca_works+set}" = set; then
39333   echo $ECHO_N "(cached) $ECHO_C" >&6
39334 else
39335   cat >conftest.$ac_ext <<_ACEOF
39336 /* confdefs.h.  */
39337 _ACEOF
39338 cat confdefs.h >>conftest.$ac_ext
39339 cat >>conftest.$ac_ext <<_ACEOF
39340 /* end confdefs.h.  */
39341 #ifdef __GNUC__
39342 # define alloca __builtin_alloca
39343 #else
39344 # ifdef _MSC_VER
39345 #  include <malloc.h>
39346 #  define alloca _alloca
39347 # else
39348 #  ifdef HAVE_ALLOCA_H
39349 #   include <alloca.h>
39350 #  else
39351 #   ifdef _AIX
39352  #pragma alloca
39353 #   else
39354 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39355 char *alloca ();
39356 #    endif
39357 #   endif
39358 #  endif
39359 # endif
39360 #endif
39361
39362 int
39363 main ()
39364 {
39365 char *p = (char *) alloca (1);
39366                                     if (p) return 0;
39367   ;
39368   return 0;
39369 }
39370 _ACEOF
39371 rm -f conftest.$ac_objext conftest$ac_exeext
39372 if { (ac_try="$ac_link"
39373 case "(($ac_try" in
39374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39375   *) ac_try_echo=$ac_try;;
39376 esac
39377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39378   (eval "$ac_link") 2>conftest.er1
39379   ac_status=$?
39380   grep -v '^ *+' conftest.er1 >conftest.err
39381   rm -f conftest.er1
39382   cat conftest.err >&5
39383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39384   (exit $ac_status); } && {
39385          test -z "$ac_c_werror_flag" ||
39386          test ! -s conftest.err
39387        } && test -s conftest$ac_exeext &&
39388        $as_test_x conftest$ac_exeext; then
39389   ac_cv_func_alloca_works=yes
39390 else
39391   echo "$as_me: failed program was:" >&5
39392 sed 's/^/| /' conftest.$ac_ext >&5
39393
39394         ac_cv_func_alloca_works=no
39395 fi
39396
39397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39398       conftest$ac_exeext conftest.$ac_ext
39399 fi
39400 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39401 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39402
39403 if test $ac_cv_func_alloca_works = yes; then
39404
39405 cat >>confdefs.h <<\_ACEOF
39406 #define HAVE_ALLOCA 1
39407 _ACEOF
39408
39409 else
39410   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39411 # that cause trouble.  Some versions do not even contain alloca or
39412 # contain a buggy version.  If you still want to use their alloca,
39413 # use ar to extract alloca.o from them instead of compiling alloca.c.
39414
39415 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39416
39417 cat >>confdefs.h <<\_ACEOF
39418 #define C_ALLOCA 1
39419 _ACEOF
39420
39421
39422 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39423 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39424 if test "${ac_cv_os_cray+set}" = set; then
39425   echo $ECHO_N "(cached) $ECHO_C" >&6
39426 else
39427   cat >conftest.$ac_ext <<_ACEOF
39428 /* confdefs.h.  */
39429 _ACEOF
39430 cat confdefs.h >>conftest.$ac_ext
39431 cat >>conftest.$ac_ext <<_ACEOF
39432 /* end confdefs.h.  */
39433 #if defined CRAY && ! defined CRAY2
39434 webecray
39435 #else
39436 wenotbecray
39437 #endif
39438
39439 _ACEOF
39440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39441   $EGREP "webecray" >/dev/null 2>&1; then
39442   ac_cv_os_cray=yes
39443 else
39444   ac_cv_os_cray=no
39445 fi
39446 rm -f conftest*
39447
39448 fi
39449 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39450 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39451 if test $ac_cv_os_cray = yes; then
39452   for ac_func in _getb67 GETB67 getb67; do
39453     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39457   echo $ECHO_N "(cached) $ECHO_C" >&6
39458 else
39459   cat >conftest.$ac_ext <<_ACEOF
39460 /* confdefs.h.  */
39461 _ACEOF
39462 cat confdefs.h >>conftest.$ac_ext
39463 cat >>conftest.$ac_ext <<_ACEOF
39464 /* end confdefs.h.  */
39465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39467 #define $ac_func innocuous_$ac_func
39468
39469 /* System header to define __stub macros and hopefully few prototypes,
39470     which can conflict with char $ac_func (); below.
39471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39472     <limits.h> exists even on freestanding compilers.  */
39473
39474 #ifdef __STDC__
39475 # include <limits.h>
39476 #else
39477 # include <assert.h>
39478 #endif
39479
39480 #undef $ac_func
39481
39482 /* Override any GCC internal prototype to avoid an error.
39483    Use char because int might match the return type of a GCC
39484    builtin and then its argument prototype would still apply.  */
39485 #ifdef __cplusplus
39486 extern "C"
39487 #endif
39488 char $ac_func ();
39489 /* The GNU C library defines this for functions which it implements
39490     to always fail with ENOSYS.  Some functions are actually named
39491     something starting with __ and the normal name is an alias.  */
39492 #if defined __stub_$ac_func || defined __stub___$ac_func
39493 choke me
39494 #endif
39495
39496 int
39497 main ()
39498 {
39499 return $ac_func ();
39500   ;
39501   return 0;
39502 }
39503 _ACEOF
39504 rm -f conftest.$ac_objext conftest$ac_exeext
39505 if { (ac_try="$ac_link"
39506 case "(($ac_try" in
39507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39508   *) ac_try_echo=$ac_try;;
39509 esac
39510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39511   (eval "$ac_link") 2>conftest.er1
39512   ac_status=$?
39513   grep -v '^ *+' conftest.er1 >conftest.err
39514   rm -f conftest.er1
39515   cat conftest.err >&5
39516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39517   (exit $ac_status); } && {
39518          test -z "$ac_c_werror_flag" ||
39519          test ! -s conftest.err
39520        } && test -s conftest$ac_exeext &&
39521        $as_test_x conftest$ac_exeext; then
39522   eval "$as_ac_var=yes"
39523 else
39524   echo "$as_me: failed program was:" >&5
39525 sed 's/^/| /' conftest.$ac_ext >&5
39526
39527         eval "$as_ac_var=no"
39528 fi
39529
39530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39531       conftest$ac_exeext conftest.$ac_ext
39532 fi
39533 ac_res=`eval echo '${'$as_ac_var'}'`
39534                { echo "$as_me:$LINENO: result: $ac_res" >&5
39535 echo "${ECHO_T}$ac_res" >&6; }
39536 if test `eval echo '${'$as_ac_var'}'` = yes; then
39537
39538 cat >>confdefs.h <<_ACEOF
39539 #define CRAY_STACKSEG_END $ac_func
39540 _ACEOF
39541
39542     break
39543 fi
39544
39545   done
39546 fi
39547
39548 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39549 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39550 if test "${ac_cv_c_stack_direction+set}" = set; then
39551   echo $ECHO_N "(cached) $ECHO_C" >&6
39552 else
39553   if test "$cross_compiling" = yes; then
39554   ac_cv_c_stack_direction=0
39555 else
39556   cat >conftest.$ac_ext <<_ACEOF
39557 /* confdefs.h.  */
39558 _ACEOF
39559 cat confdefs.h >>conftest.$ac_ext
39560 cat >>conftest.$ac_ext <<_ACEOF
39561 /* end confdefs.h.  */
39562 $ac_includes_default
39563 int
39564 find_stack_direction ()
39565 {
39566   static char *addr = 0;
39567   auto char dummy;
39568   if (addr == 0)
39569     {
39570       addr = &dummy;
39571       return find_stack_direction ();
39572     }
39573   else
39574     return (&dummy > addr) ? 1 : -1;
39575 }
39576
39577 int
39578 main ()
39579 {
39580   return find_stack_direction () < 0;
39581 }
39582 _ACEOF
39583 rm -f conftest$ac_exeext
39584 if { (ac_try="$ac_link"
39585 case "(($ac_try" in
39586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39587   *) ac_try_echo=$ac_try;;
39588 esac
39589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39590   (eval "$ac_link") 2>&5
39591   ac_status=$?
39592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39594   { (case "(($ac_try" in
39595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39596   *) ac_try_echo=$ac_try;;
39597 esac
39598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39599   (eval "$ac_try") 2>&5
39600   ac_status=$?
39601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39602   (exit $ac_status); }; }; then
39603   ac_cv_c_stack_direction=1
39604 else
39605   echo "$as_me: program exited with status $ac_status" >&5
39606 echo "$as_me: failed program was:" >&5
39607 sed 's/^/| /' conftest.$ac_ext >&5
39608
39609 ( exit $ac_status )
39610 ac_cv_c_stack_direction=-1
39611 fi
39612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39613 fi
39614
39615
39616 fi
39617 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39618 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39619
39620 cat >>confdefs.h <<_ACEOF
39621 #define STACK_DIRECTION $ac_cv_c_stack_direction
39622 _ACEOF
39623
39624
39625 fi
39626
39627 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39628 # -lseq on Dynix/PTX, -lgen on Unixware.
39629 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39630 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39631 if test "${ac_cv_search_getmntent+set}" = set; then
39632   echo $ECHO_N "(cached) $ECHO_C" >&6
39633 else
39634   ac_func_search_save_LIBS=$LIBS
39635 cat >conftest.$ac_ext <<_ACEOF
39636 /* confdefs.h.  */
39637 _ACEOF
39638 cat confdefs.h >>conftest.$ac_ext
39639 cat >>conftest.$ac_ext <<_ACEOF
39640 /* end confdefs.h.  */
39641
39642 /* Override any GCC internal prototype to avoid an error.
39643    Use char because int might match the return type of a GCC
39644    builtin and then its argument prototype would still apply.  */
39645 #ifdef __cplusplus
39646 extern "C"
39647 #endif
39648 char getmntent ();
39649 int
39650 main ()
39651 {
39652 return getmntent ();
39653   ;
39654   return 0;
39655 }
39656 _ACEOF
39657 for ac_lib in '' sun seq gen; do
39658   if test -z "$ac_lib"; then
39659     ac_res="none required"
39660   else
39661     ac_res=-l$ac_lib
39662     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39663   fi
39664   rm -f conftest.$ac_objext conftest$ac_exeext
39665 if { (ac_try="$ac_link"
39666 case "(($ac_try" in
39667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39668   *) ac_try_echo=$ac_try;;
39669 esac
39670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39671   (eval "$ac_link") 2>conftest.er1
39672   ac_status=$?
39673   grep -v '^ *+' conftest.er1 >conftest.err
39674   rm -f conftest.er1
39675   cat conftest.err >&5
39676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39677   (exit $ac_status); } && {
39678          test -z "$ac_c_werror_flag" ||
39679          test ! -s conftest.err
39680        } && test -s conftest$ac_exeext &&
39681        $as_test_x conftest$ac_exeext; then
39682   ac_cv_search_getmntent=$ac_res
39683 else
39684   echo "$as_me: failed program was:" >&5
39685 sed 's/^/| /' conftest.$ac_ext >&5
39686
39687
39688 fi
39689
39690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39691       conftest$ac_exeext
39692   if test "${ac_cv_search_getmntent+set}" = set; then
39693   break
39694 fi
39695 done
39696 if test "${ac_cv_search_getmntent+set}" = set; then
39697   :
39698 else
39699   ac_cv_search_getmntent=no
39700 fi
39701 rm conftest.$ac_ext
39702 LIBS=$ac_func_search_save_LIBS
39703 fi
39704 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39705 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39706 ac_res=$ac_cv_search_getmntent
39707 if test "$ac_res" != no; then
39708   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39709   ac_cv_func_getmntent=yes
39710
39711 cat >>confdefs.h <<\_ACEOF
39712 #define HAVE_GETMNTENT 1
39713 _ACEOF
39714
39715 else
39716   ac_cv_func_getmntent=no
39717 fi
39718
39719
39720 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39721 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39722 if test "${ac_cv_func_closedir_void+set}" = set; then
39723   echo $ECHO_N "(cached) $ECHO_C" >&6
39724 else
39725   if test "$cross_compiling" = yes; then
39726   ac_cv_func_closedir_void=yes
39727 else
39728   cat >conftest.$ac_ext <<_ACEOF
39729 /* confdefs.h.  */
39730 _ACEOF
39731 cat confdefs.h >>conftest.$ac_ext
39732 cat >>conftest.$ac_ext <<_ACEOF
39733 /* end confdefs.h.  */
39734 $ac_includes_default
39735 #include <$ac_header_dirent>
39736 #ifndef __cplusplus
39737 int closedir ();
39738 #endif
39739
39740 int
39741 main ()
39742 {
39743 return closedir (opendir (".")) != 0;
39744   ;
39745   return 0;
39746 }
39747 _ACEOF
39748 rm -f conftest$ac_exeext
39749 if { (ac_try="$ac_link"
39750 case "(($ac_try" in
39751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39752   *) ac_try_echo=$ac_try;;
39753 esac
39754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39755   (eval "$ac_link") 2>&5
39756   ac_status=$?
39757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39759   { (case "(($ac_try" in
39760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39761   *) ac_try_echo=$ac_try;;
39762 esac
39763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39764   (eval "$ac_try") 2>&5
39765   ac_status=$?
39766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39767   (exit $ac_status); }; }; then
39768   ac_cv_func_closedir_void=no
39769 else
39770   echo "$as_me: program exited with status $ac_status" >&5
39771 echo "$as_me: failed program was:" >&5
39772 sed 's/^/| /' conftest.$ac_ext >&5
39773
39774 ( exit $ac_status )
39775 ac_cv_func_closedir_void=yes
39776 fi
39777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39778 fi
39779
39780
39781 fi
39782 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39783 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39784 if test $ac_cv_func_closedir_void = yes; then
39785
39786 cat >>confdefs.h <<\_ACEOF
39787 #define CLOSEDIR_VOID 1
39788 _ACEOF
39789
39790 fi
39791
39792 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39793 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39794 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39795   echo $ECHO_N "(cached) $ECHO_C" >&6
39796 else
39797   if test "$cross_compiling" = yes; then
39798   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39799 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39800    { (exit 1); exit 1; }; }
39801 else
39802   cat >conftest.$ac_ext <<_ACEOF
39803 /* confdefs.h.  */
39804 _ACEOF
39805 cat confdefs.h >>conftest.$ac_ext
39806 cat >>conftest.$ac_ext <<_ACEOF
39807 /* end confdefs.h.  */
39808 $ac_includes_default
39809 int
39810 main ()
39811 {
39812 /* If this system has a BSD-style setpgrp which takes arguments,
39813   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39814   exit successfully. */
39815   return setpgrp (1,1) != -1;
39816   ;
39817   return 0;
39818 }
39819 _ACEOF
39820 rm -f conftest$ac_exeext
39821 if { (ac_try="$ac_link"
39822 case "(($ac_try" in
39823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39824   *) ac_try_echo=$ac_try;;
39825 esac
39826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39827   (eval "$ac_link") 2>&5
39828   ac_status=$?
39829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39831   { (case "(($ac_try" in
39832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39833   *) ac_try_echo=$ac_try;;
39834 esac
39835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39836   (eval "$ac_try") 2>&5
39837   ac_status=$?
39838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839   (exit $ac_status); }; }; then
39840   ac_cv_func_setpgrp_void=no
39841 else
39842   echo "$as_me: program exited with status $ac_status" >&5
39843 echo "$as_me: failed program was:" >&5
39844 sed 's/^/| /' conftest.$ac_ext >&5
39845
39846 ( exit $ac_status )
39847 ac_cv_func_setpgrp_void=yes
39848 fi
39849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39850 fi
39851
39852
39853 fi
39854 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39855 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39856 if test $ac_cv_func_setpgrp_void = yes; then
39857
39858 cat >>confdefs.h <<\_ACEOF
39859 #define SETPGRP_VOID 1
39860 _ACEOF
39861
39862 fi
39863             # AC_FUNC_FNMATCH    dnl use local version
39864
39865 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39866 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39867 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39868   echo $ECHO_N "(cached) $ECHO_C" >&6
39869 else
39870   ac_check_lib_save_LIBS=$LIBS
39871 LIBS="-lintl  $LIBS"
39872 cat >conftest.$ac_ext <<_ACEOF
39873 /* confdefs.h.  */
39874 _ACEOF
39875 cat confdefs.h >>conftest.$ac_ext
39876 cat >>conftest.$ac_ext <<_ACEOF
39877 /* end confdefs.h.  */
39878
39879 /* Override any GCC internal prototype to avoid an error.
39880    Use char because int might match the return type of a GCC
39881    builtin and then its argument prototype would still apply.  */
39882 #ifdef __cplusplus
39883 extern "C"
39884 #endif
39885 char gettext ();
39886 int
39887 main ()
39888 {
39889 return gettext ();
39890   ;
39891   return 0;
39892 }
39893 _ACEOF
39894 rm -f conftest.$ac_objext conftest$ac_exeext
39895 if { (ac_try="$ac_link"
39896 case "(($ac_try" in
39897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39898   *) ac_try_echo=$ac_try;;
39899 esac
39900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39901   (eval "$ac_link") 2>conftest.er1
39902   ac_status=$?
39903   grep -v '^ *+' conftest.er1 >conftest.err
39904   rm -f conftest.er1
39905   cat conftest.err >&5
39906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907   (exit $ac_status); } && {
39908          test -z "$ac_c_werror_flag" ||
39909          test ! -s conftest.err
39910        } && test -s conftest$ac_exeext &&
39911        $as_test_x conftest$ac_exeext; then
39912   ac_cv_lib_intl_gettext=yes
39913 else
39914   echo "$as_me: failed program was:" >&5
39915 sed 's/^/| /' conftest.$ac_ext >&5
39916
39917         ac_cv_lib_intl_gettext=no
39918 fi
39919
39920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39921       conftest$ac_exeext conftest.$ac_ext
39922 LIBS=$ac_check_lib_save_LIBS
39923 fi
39924 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39925 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39926 if test $ac_cv_lib_intl_gettext = yes; then
39927   LIBS="$LIBS -lintl"
39928 fi
39929
39930
39931
39932 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39933 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39934 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39935   echo $ECHO_N "(cached) $ECHO_C" >&6
39936 else
39937   ac_check_lib_save_LIBS=$LIBS
39938 LIBS="-lsun  $LIBS"
39939 cat >conftest.$ac_ext <<_ACEOF
39940 /* confdefs.h.  */
39941 _ACEOF
39942 cat confdefs.h >>conftest.$ac_ext
39943 cat >>conftest.$ac_ext <<_ACEOF
39944 /* end confdefs.h.  */
39945
39946 /* Override any GCC internal prototype to avoid an error.
39947    Use char because int might match the return type of a GCC
39948    builtin and then its argument prototype would still apply.  */
39949 #ifdef __cplusplus
39950 extern "C"
39951 #endif
39952 char getpwnam ();
39953 int
39954 main ()
39955 {
39956 return getpwnam ();
39957   ;
39958   return 0;
39959 }
39960 _ACEOF
39961 rm -f conftest.$ac_objext conftest$ac_exeext
39962 if { (ac_try="$ac_link"
39963 case "(($ac_try" in
39964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39965   *) ac_try_echo=$ac_try;;
39966 esac
39967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39968   (eval "$ac_link") 2>conftest.er1
39969   ac_status=$?
39970   grep -v '^ *+' conftest.er1 >conftest.err
39971   rm -f conftest.er1
39972   cat conftest.err >&5
39973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39974   (exit $ac_status); } && {
39975          test -z "$ac_c_werror_flag" ||
39976          test ! -s conftest.err
39977        } && test -s conftest$ac_exeext &&
39978        $as_test_x conftest$ac_exeext; then
39979   ac_cv_lib_sun_getpwnam=yes
39980 else
39981   echo "$as_me: failed program was:" >&5
39982 sed 's/^/| /' conftest.$ac_ext >&5
39983
39984         ac_cv_lib_sun_getpwnam=no
39985 fi
39986
39987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39988       conftest$ac_exeext conftest.$ac_ext
39989 LIBS=$ac_check_lib_save_LIBS
39990 fi
39991 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39992 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39993 if test $ac_cv_lib_sun_getpwnam = yes; then
39994   cat >>confdefs.h <<_ACEOF
39995 #define HAVE_LIBSUN 1
39996 _ACEOF
39997
39998   LIBS="-lsun $LIBS"
39999
40000 fi
40001
40002
40003
40004 for ac_header in zlib.h
40005 do
40006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40008   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40011   echo $ECHO_N "(cached) $ECHO_C" >&6
40012 fi
40013 ac_res=`eval echo '${'$as_ac_Header'}'`
40014                { echo "$as_me:$LINENO: result: $ac_res" >&5
40015 echo "${ECHO_T}$ac_res" >&6; }
40016 else
40017   # Is the header compilable?
40018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40020 cat >conftest.$ac_ext <<_ACEOF
40021 /* confdefs.h.  */
40022 _ACEOF
40023 cat confdefs.h >>conftest.$ac_ext
40024 cat >>conftest.$ac_ext <<_ACEOF
40025 /* end confdefs.h.  */
40026 $ac_includes_default
40027 #include <$ac_header>
40028 _ACEOF
40029 rm -f conftest.$ac_objext
40030 if { (ac_try="$ac_compile"
40031 case "(($ac_try" in
40032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40033   *) ac_try_echo=$ac_try;;
40034 esac
40035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40036   (eval "$ac_compile") 2>conftest.er1
40037   ac_status=$?
40038   grep -v '^ *+' conftest.er1 >conftest.err
40039   rm -f conftest.er1
40040   cat conftest.err >&5
40041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40042   (exit $ac_status); } && {
40043          test -z "$ac_c_werror_flag" ||
40044          test ! -s conftest.err
40045        } && test -s conftest.$ac_objext; then
40046   ac_header_compiler=yes
40047 else
40048   echo "$as_me: failed program was:" >&5
40049 sed 's/^/| /' conftest.$ac_ext >&5
40050
40051         ac_header_compiler=no
40052 fi
40053
40054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40056 echo "${ECHO_T}$ac_header_compiler" >&6; }
40057
40058 # Is the header present?
40059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40061 cat >conftest.$ac_ext <<_ACEOF
40062 /* confdefs.h.  */
40063 _ACEOF
40064 cat confdefs.h >>conftest.$ac_ext
40065 cat >>conftest.$ac_ext <<_ACEOF
40066 /* end confdefs.h.  */
40067 #include <$ac_header>
40068 _ACEOF
40069 if { (ac_try="$ac_cpp conftest.$ac_ext"
40070 case "(($ac_try" in
40071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40072   *) ac_try_echo=$ac_try;;
40073 esac
40074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40075   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40076   ac_status=$?
40077   grep -v '^ *+' conftest.er1 >conftest.err
40078   rm -f conftest.er1
40079   cat conftest.err >&5
40080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40081   (exit $ac_status); } >/dev/null && {
40082          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40083          test ! -s conftest.err
40084        }; then
40085   ac_header_preproc=yes
40086 else
40087   echo "$as_me: failed program was:" >&5
40088 sed 's/^/| /' conftest.$ac_ext >&5
40089
40090   ac_header_preproc=no
40091 fi
40092
40093 rm -f conftest.err conftest.$ac_ext
40094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40095 echo "${ECHO_T}$ac_header_preproc" >&6; }
40096
40097 # So?  What about this header?
40098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40099   yes:no: )
40100     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40104     ac_header_preproc=yes
40105     ;;
40106   no:yes:* )
40107     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40109     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40110 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40111     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40113     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40114 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40117     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40119
40120     ;;
40121 esac
40122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40125   echo $ECHO_N "(cached) $ECHO_C" >&6
40126 else
40127   eval "$as_ac_Header=\$ac_header_preproc"
40128 fi
40129 ac_res=`eval echo '${'$as_ac_Header'}'`
40130                { echo "$as_me:$LINENO: result: $ac_res" >&5
40131 echo "${ECHO_T}$ac_res" >&6; }
40132
40133 fi
40134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40135   cat >>confdefs.h <<_ACEOF
40136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40137 _ACEOF
40138
40139 fi
40140
40141 done
40142
40143 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40144 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40145 if test "${ac_cv_lib_z_deflate+set}" = set; then
40146   echo $ECHO_N "(cached) $ECHO_C" >&6
40147 else
40148   ac_check_lib_save_LIBS=$LIBS
40149 LIBS="-lz  $LIBS"
40150 cat >conftest.$ac_ext <<_ACEOF
40151 /* confdefs.h.  */
40152 _ACEOF
40153 cat confdefs.h >>conftest.$ac_ext
40154 cat >>conftest.$ac_ext <<_ACEOF
40155 /* end confdefs.h.  */
40156
40157 /* Override any GCC internal prototype to avoid an error.
40158    Use char because int might match the return type of a GCC
40159    builtin and then its argument prototype would still apply.  */
40160 #ifdef __cplusplus
40161 extern "C"
40162 #endif
40163 char deflate ();
40164 int
40165 main ()
40166 {
40167 return deflate ();
40168   ;
40169   return 0;
40170 }
40171 _ACEOF
40172 rm -f conftest.$ac_objext conftest$ac_exeext
40173 if { (ac_try="$ac_link"
40174 case "(($ac_try" in
40175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40176   *) ac_try_echo=$ac_try;;
40177 esac
40178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40179   (eval "$ac_link") 2>conftest.er1
40180   ac_status=$?
40181   grep -v '^ *+' conftest.er1 >conftest.err
40182   rm -f conftest.er1
40183   cat conftest.err >&5
40184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40185   (exit $ac_status); } && {
40186          test -z "$ac_c_werror_flag" ||
40187          test ! -s conftest.err
40188        } && test -s conftest$ac_exeext &&
40189        $as_test_x conftest$ac_exeext; then
40190   ac_cv_lib_z_deflate=yes
40191 else
40192   echo "$as_me: failed program was:" >&5
40193 sed 's/^/| /' conftest.$ac_ext >&5
40194
40195         ac_cv_lib_z_deflate=no
40196 fi
40197
40198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40199       conftest$ac_exeext conftest.$ac_ext
40200 LIBS=$ac_check_lib_save_LIBS
40201 fi
40202 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40203 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40204 if test $ac_cv_lib_z_deflate = yes; then
40205   FDLIBS="-lz"
40206 fi
40207
40208 have_zlib=no
40209 if test x$FDLIBS = x-lz; then
40210    cat >>confdefs.h <<\_ACEOF
40211 #define HAVE_LIBZ 1
40212 _ACEOF
40213
40214    have_zlib=yes
40215 fi
40216
40217 have_acl=no
40218 have_extended_acl=no
40219 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40220   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40221 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40222 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40223   echo $ECHO_N "(cached) $ECHO_C" >&6
40224 fi
40225 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40226 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40227 else
40228   # Is the header compilable?
40229 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40230 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40231 cat >conftest.$ac_ext <<_ACEOF
40232 /* confdefs.h.  */
40233 _ACEOF
40234 cat confdefs.h >>conftest.$ac_ext
40235 cat >>conftest.$ac_ext <<_ACEOF
40236 /* end confdefs.h.  */
40237 $ac_includes_default
40238 #include <sys/acl.h>
40239 _ACEOF
40240 rm -f conftest.$ac_objext
40241 if { (ac_try="$ac_compile"
40242 case "(($ac_try" in
40243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40244   *) ac_try_echo=$ac_try;;
40245 esac
40246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40247   (eval "$ac_compile") 2>conftest.er1
40248   ac_status=$?
40249   grep -v '^ *+' conftest.er1 >conftest.err
40250   rm -f conftest.er1
40251   cat conftest.err >&5
40252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40253   (exit $ac_status); } && {
40254          test -z "$ac_c_werror_flag" ||
40255          test ! -s conftest.err
40256        } && test -s conftest.$ac_objext; then
40257   ac_header_compiler=yes
40258 else
40259   echo "$as_me: failed program was:" >&5
40260 sed 's/^/| /' conftest.$ac_ext >&5
40261
40262         ac_header_compiler=no
40263 fi
40264
40265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40267 echo "${ECHO_T}$ac_header_compiler" >&6; }
40268
40269 # Is the header present?
40270 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40271 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40272 cat >conftest.$ac_ext <<_ACEOF
40273 /* confdefs.h.  */
40274 _ACEOF
40275 cat confdefs.h >>conftest.$ac_ext
40276 cat >>conftest.$ac_ext <<_ACEOF
40277 /* end confdefs.h.  */
40278 #include <sys/acl.h>
40279 _ACEOF
40280 if { (ac_try="$ac_cpp conftest.$ac_ext"
40281 case "(($ac_try" in
40282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40283   *) ac_try_echo=$ac_try;;
40284 esac
40285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40286   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40287   ac_status=$?
40288   grep -v '^ *+' conftest.er1 >conftest.err
40289   rm -f conftest.er1
40290   cat conftest.err >&5
40291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40292   (exit $ac_status); } >/dev/null && {
40293          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40294          test ! -s conftest.err
40295        }; then
40296   ac_header_preproc=yes
40297 else
40298   echo "$as_me: failed program was:" >&5
40299 sed 's/^/| /' conftest.$ac_ext >&5
40300
40301   ac_header_preproc=no
40302 fi
40303
40304 rm -f conftest.err conftest.$ac_ext
40305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40306 echo "${ECHO_T}$ac_header_preproc" >&6; }
40307
40308 # So?  What about this header?
40309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40310   yes:no: )
40311     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40312 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40313     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40314 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40315     ac_header_preproc=yes
40316     ;;
40317   no:yes:* )
40318     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40319 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40320     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40321 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40322     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40323 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40324     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40325 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40326     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40327 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40328     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40329 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40330
40331     ;;
40332 esac
40333 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40334 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40335 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40336   echo $ECHO_N "(cached) $ECHO_C" >&6
40337 else
40338   ac_cv_header_sys_acl_h=$ac_header_preproc
40339 fi
40340 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40341 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40342
40343 fi
40344
40345
40346 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40347 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40348 if test "${ac_cv_func_acl_get_file+set}" = set; then
40349   echo $ECHO_N "(cached) $ECHO_C" >&6
40350 else
40351   cat >conftest.$ac_ext <<_ACEOF
40352 /* confdefs.h.  */
40353 _ACEOF
40354 cat confdefs.h >>conftest.$ac_ext
40355 cat >>conftest.$ac_ext <<_ACEOF
40356 /* end confdefs.h.  */
40357 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40359 #define acl_get_file innocuous_acl_get_file
40360
40361 /* System header to define __stub macros and hopefully few prototypes,
40362     which can conflict with char acl_get_file (); below.
40363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40364     <limits.h> exists even on freestanding compilers.  */
40365
40366 #ifdef __STDC__
40367 # include <limits.h>
40368 #else
40369 # include <assert.h>
40370 #endif
40371
40372 #undef acl_get_file
40373
40374 /* Override any GCC internal prototype to avoid an error.
40375    Use char because int might match the return type of a GCC
40376    builtin and then its argument prototype would still apply.  */
40377 #ifdef __cplusplus
40378 extern "C"
40379 #endif
40380 char acl_get_file ();
40381 /* The GNU C library defines this for functions which it implements
40382     to always fail with ENOSYS.  Some functions are actually named
40383     something starting with __ and the normal name is an alias.  */
40384 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40385 choke me
40386 #endif
40387
40388 int
40389 main ()
40390 {
40391 return acl_get_file ();
40392   ;
40393   return 0;
40394 }
40395 _ACEOF
40396 rm -f conftest.$ac_objext conftest$ac_exeext
40397 if { (ac_try="$ac_link"
40398 case "(($ac_try" in
40399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40400   *) ac_try_echo=$ac_try;;
40401 esac
40402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40403   (eval "$ac_link") 2>conftest.er1
40404   ac_status=$?
40405   grep -v '^ *+' conftest.er1 >conftest.err
40406   rm -f conftest.er1
40407   cat conftest.err >&5
40408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40409   (exit $ac_status); } && {
40410          test -z "$ac_c_werror_flag" ||
40411          test ! -s conftest.err
40412        } && test -s conftest$ac_exeext &&
40413        $as_test_x conftest$ac_exeext; then
40414   ac_cv_func_acl_get_file=yes
40415 else
40416   echo "$as_me: failed program was:" >&5
40417 sed 's/^/| /' conftest.$ac_ext >&5
40418
40419         ac_cv_func_acl_get_file=no
40420 fi
40421
40422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40423       conftest$ac_exeext conftest.$ac_ext
40424 fi
40425 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40426 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40427 if test $ac_cv_func_acl_get_file = yes; then
40428   have_acl=yes
40429 else
40430
40431        { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40432 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40433 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40434   echo $ECHO_N "(cached) $ECHO_C" >&6
40435 else
40436   ac_check_lib_save_LIBS=$LIBS
40437 LIBS="-lacl  $LIBS"
40438 cat >conftest.$ac_ext <<_ACEOF
40439 /* confdefs.h.  */
40440 _ACEOF
40441 cat confdefs.h >>conftest.$ac_ext
40442 cat >>conftest.$ac_ext <<_ACEOF
40443 /* end confdefs.h.  */
40444
40445 /* Override any GCC internal prototype to avoid an error.
40446    Use char because int might match the return type of a GCC
40447    builtin and then its argument prototype would still apply.  */
40448 #ifdef __cplusplus
40449 extern "C"
40450 #endif
40451 char acl_get_file ();
40452 int
40453 main ()
40454 {
40455 return acl_get_file ();
40456   ;
40457   return 0;
40458 }
40459 _ACEOF
40460 rm -f conftest.$ac_objext conftest$ac_exeext
40461 if { (ac_try="$ac_link"
40462 case "(($ac_try" in
40463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40464   *) ac_try_echo=$ac_try;;
40465 esac
40466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40467   (eval "$ac_link") 2>conftest.er1
40468   ac_status=$?
40469   grep -v '^ *+' conftest.er1 >conftest.err
40470   rm -f conftest.er1
40471   cat conftest.err >&5
40472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473   (exit $ac_status); } && {
40474          test -z "$ac_c_werror_flag" ||
40475          test ! -s conftest.err
40476        } && test -s conftest$ac_exeext &&
40477        $as_test_x conftest$ac_exeext; then
40478   ac_cv_lib_acl_acl_get_file=yes
40479 else
40480   echo "$as_me: failed program was:" >&5
40481 sed 's/^/| /' conftest.$ac_ext >&5
40482
40483         ac_cv_lib_acl_acl_get_file=no
40484 fi
40485
40486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40487       conftest$ac_exeext conftest.$ac_ext
40488 LIBS=$ac_check_lib_save_LIBS
40489 fi
40490 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40491 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40492 if test $ac_cv_lib_acl_acl_get_file = yes; then
40493
40494               have_acl=yes;
40495               FDLIBS="-lacl $FDLIBS"
40496
40497 else
40498
40499               { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40500 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40501 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40502   echo $ECHO_N "(cached) $ECHO_C" >&6
40503 else
40504   ac_check_lib_save_LIBS=$LIBS
40505 LIBS="-lsec  $LIBS"
40506 cat >conftest.$ac_ext <<_ACEOF
40507 /* confdefs.h.  */
40508 _ACEOF
40509 cat confdefs.h >>conftest.$ac_ext
40510 cat >>conftest.$ac_ext <<_ACEOF
40511 /* end confdefs.h.  */
40512
40513 /* Override any GCC internal prototype to avoid an error.
40514    Use char because int might match the return type of a GCC
40515    builtin and then its argument prototype would still apply.  */
40516 #ifdef __cplusplus
40517 extern "C"
40518 #endif
40519 char acltotext ();
40520 int
40521 main ()
40522 {
40523 return acltotext ();
40524   ;
40525   return 0;
40526 }
40527 _ACEOF
40528 rm -f conftest.$ac_objext conftest$ac_exeext
40529 if { (ac_try="$ac_link"
40530 case "(($ac_try" in
40531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40532   *) ac_try_echo=$ac_try;;
40533 esac
40534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40535   (eval "$ac_link") 2>conftest.er1
40536   ac_status=$?
40537   grep -v '^ *+' conftest.er1 >conftest.err
40538   rm -f conftest.er1
40539   cat conftest.err >&5
40540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40541   (exit $ac_status); } && {
40542          test -z "$ac_c_werror_flag" ||
40543          test ! -s conftest.err
40544        } && test -s conftest$ac_exeext &&
40545        $as_test_x conftest$ac_exeext; then
40546   ac_cv_lib_sec_acltotext=yes
40547 else
40548   echo "$as_me: failed program was:" >&5
40549 sed 's/^/| /' conftest.$ac_ext >&5
40550
40551         ac_cv_lib_sec_acltotext=no
40552 fi
40553
40554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40555       conftest$ac_exeext conftest.$ac_ext
40556 LIBS=$ac_check_lib_save_LIBS
40557 fi
40558 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40559 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40560 if test $ac_cv_lib_sec_acltotext = yes; then
40561
40562                      have_acl=yes;
40563                      FDLIBS="-lsec $FDLIBS"
40564
40565                      { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40566 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40567 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40568   echo $ECHO_N "(cached) $ECHO_C" >&6
40569 else
40570   ac_check_lib_save_LIBS=$LIBS
40571 LIBS="-lsec  $LIBS"
40572 cat >conftest.$ac_ext <<_ACEOF
40573 /* confdefs.h.  */
40574 _ACEOF
40575 cat confdefs.h >>conftest.$ac_ext
40576 cat >>conftest.$ac_ext <<_ACEOF
40577 /* end confdefs.h.  */
40578
40579 /* Override any GCC internal prototype to avoid an error.
40580    Use char because int might match the return type of a GCC
40581    builtin and then its argument prototype would still apply.  */
40582 #ifdef __cplusplus
40583 extern "C"
40584 #endif
40585 char acl_totext ();
40586 int
40587 main ()
40588 {
40589 return acl_totext ();
40590   ;
40591   return 0;
40592 }
40593 _ACEOF
40594 rm -f conftest.$ac_objext conftest$ac_exeext
40595 if { (ac_try="$ac_link"
40596 case "(($ac_try" in
40597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40598   *) ac_try_echo=$ac_try;;
40599 esac
40600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40601   (eval "$ac_link") 2>conftest.er1
40602   ac_status=$?
40603   grep -v '^ *+' conftest.er1 >conftest.err
40604   rm -f conftest.er1
40605   cat conftest.err >&5
40606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40607   (exit $ac_status); } && {
40608          test -z "$ac_c_werror_flag" ||
40609          test ! -s conftest.err
40610        } && test -s conftest$ac_exeext &&
40611        $as_test_x conftest$ac_exeext; then
40612   ac_cv_lib_sec_acl_totext=yes
40613 else
40614   echo "$as_me: failed program was:" >&5
40615 sed 's/^/| /' conftest.$ac_ext >&5
40616
40617         ac_cv_lib_sec_acl_totext=no
40618 fi
40619
40620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40621       conftest$ac_exeext conftest.$ac_ext
40622 LIBS=$ac_check_lib_save_LIBS
40623 fi
40624 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
40625 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
40626 if test $ac_cv_lib_sec_acl_totext = yes; then
40627
40628                             have_extended_acl=yes
40629
40630
40631 fi
40632
40633
40634
40635 fi
40636
40637
40638
40639 fi
40640
40641
40642
40643 fi
40644
40645 if test $have_acl = yes; then
40646    cat >>confdefs.h <<\_ACEOF
40647 #define HAVE_ACL 1
40648 _ACEOF
40649
40650 fi
40651
40652 if test $have_extended_acl = yes; then
40653    cat >>confdefs.h <<\_ACEOF
40654 #define HAVE_EXTENDED_ACL 1
40655 _ACEOF
40656
40657 fi
40658
40659 PTHREAD_LIB=""
40660 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40661 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40662 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40663   echo $ECHO_N "(cached) $ECHO_C" >&6
40664 else
40665   ac_check_lib_save_LIBS=$LIBS
40666 LIBS="-lpthread  $LIBS"
40667 cat >conftest.$ac_ext <<_ACEOF
40668 /* confdefs.h.  */
40669 _ACEOF
40670 cat confdefs.h >>conftest.$ac_ext
40671 cat >>conftest.$ac_ext <<_ACEOF
40672 /* end confdefs.h.  */
40673
40674 /* Override any GCC internal prototype to avoid an error.
40675    Use char because int might match the return type of a GCC
40676    builtin and then its argument prototype would still apply.  */
40677 #ifdef __cplusplus
40678 extern "C"
40679 #endif
40680 char pthread_create ();
40681 int
40682 main ()
40683 {
40684 return pthread_create ();
40685   ;
40686   return 0;
40687 }
40688 _ACEOF
40689 rm -f conftest.$ac_objext conftest$ac_exeext
40690 if { (ac_try="$ac_link"
40691 case "(($ac_try" in
40692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40693   *) ac_try_echo=$ac_try;;
40694 esac
40695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40696   (eval "$ac_link") 2>conftest.er1
40697   ac_status=$?
40698   grep -v '^ *+' conftest.er1 >conftest.err
40699   rm -f conftest.er1
40700   cat conftest.err >&5
40701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40702   (exit $ac_status); } && {
40703          test -z "$ac_c_werror_flag" ||
40704          test ! -s conftest.err
40705        } && test -s conftest$ac_exeext &&
40706        $as_test_x conftest$ac_exeext; then
40707   ac_cv_lib_pthread_pthread_create=yes
40708 else
40709   echo "$as_me: failed program was:" >&5
40710 sed 's/^/| /' conftest.$ac_ext >&5
40711
40712         ac_cv_lib_pthread_pthread_create=no
40713 fi
40714
40715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40716       conftest$ac_exeext conftest.$ac_ext
40717 LIBS=$ac_check_lib_save_LIBS
40718 fi
40719 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40720 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40721 if test $ac_cv_lib_pthread_pthread_create = yes; then
40722   PTHREAD_LIB="-lpthread"
40723 else
40724
40725        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40726 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40727 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40728   echo $ECHO_N "(cached) $ECHO_C" >&6
40729 else
40730   ac_check_lib_save_LIBS=$LIBS
40731 LIBS="-lpthreads  $LIBS"
40732 cat >conftest.$ac_ext <<_ACEOF
40733 /* confdefs.h.  */
40734 _ACEOF
40735 cat confdefs.h >>conftest.$ac_ext
40736 cat >>conftest.$ac_ext <<_ACEOF
40737 /* end confdefs.h.  */
40738
40739 /* Override any GCC internal prototype to avoid an error.
40740    Use char because int might match the return type of a GCC
40741    builtin and then its argument prototype would still apply.  */
40742 #ifdef __cplusplus
40743 extern "C"
40744 #endif
40745 char pthread_create ();
40746 int
40747 main ()
40748 {
40749 return pthread_create ();
40750   ;
40751   return 0;
40752 }
40753 _ACEOF
40754 rm -f conftest.$ac_objext conftest$ac_exeext
40755 if { (ac_try="$ac_link"
40756 case "(($ac_try" in
40757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40758   *) ac_try_echo=$ac_try;;
40759 esac
40760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40761   (eval "$ac_link") 2>conftest.er1
40762   ac_status=$?
40763   grep -v '^ *+' conftest.er1 >conftest.err
40764   rm -f conftest.er1
40765   cat conftest.err >&5
40766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40767   (exit $ac_status); } && {
40768          test -z "$ac_c_werror_flag" ||
40769          test ! -s conftest.err
40770        } && test -s conftest$ac_exeext &&
40771        $as_test_x conftest$ac_exeext; then
40772   ac_cv_lib_pthreads_pthread_create=yes
40773 else
40774   echo "$as_me: failed program was:" >&5
40775 sed 's/^/| /' conftest.$ac_ext >&5
40776
40777         ac_cv_lib_pthreads_pthread_create=no
40778 fi
40779
40780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40781       conftest$ac_exeext conftest.$ac_ext
40782 LIBS=$ac_check_lib_save_LIBS
40783 fi
40784 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40785 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40786 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40787   PTHREAD_LIB="-lpthreads"
40788 else
40789
40790               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40791 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40792 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40793   echo $ECHO_N "(cached) $ECHO_C" >&6
40794 else
40795   ac_check_lib_save_LIBS=$LIBS
40796 LIBS="-lc_r  $LIBS"
40797 cat >conftest.$ac_ext <<_ACEOF
40798 /* confdefs.h.  */
40799 _ACEOF
40800 cat confdefs.h >>conftest.$ac_ext
40801 cat >>conftest.$ac_ext <<_ACEOF
40802 /* end confdefs.h.  */
40803
40804 /* Override any GCC internal prototype to avoid an error.
40805    Use char because int might match the return type of a GCC
40806    builtin and then its argument prototype would still apply.  */
40807 #ifdef __cplusplus
40808 extern "C"
40809 #endif
40810 char pthread_create ();
40811 int
40812 main ()
40813 {
40814 return pthread_create ();
40815   ;
40816   return 0;
40817 }
40818 _ACEOF
40819 rm -f conftest.$ac_objext conftest$ac_exeext
40820 if { (ac_try="$ac_link"
40821 case "(($ac_try" in
40822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40823   *) ac_try_echo=$ac_try;;
40824 esac
40825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40826   (eval "$ac_link") 2>conftest.er1
40827   ac_status=$?
40828   grep -v '^ *+' conftest.er1 >conftest.err
40829   rm -f conftest.er1
40830   cat conftest.err >&5
40831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40832   (exit $ac_status); } && {
40833          test -z "$ac_c_werror_flag" ||
40834          test ! -s conftest.err
40835        } && test -s conftest$ac_exeext &&
40836        $as_test_x conftest$ac_exeext; then
40837   ac_cv_lib_c_r_pthread_create=yes
40838 else
40839   echo "$as_me: failed program was:" >&5
40840 sed 's/^/| /' conftest.$ac_ext >&5
40841
40842         ac_cv_lib_c_r_pthread_create=no
40843 fi
40844
40845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40846       conftest$ac_exeext conftest.$ac_ext
40847 LIBS=$ac_check_lib_save_LIBS
40848 fi
40849 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40850 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40851 if test $ac_cv_lib_c_r_pthread_create = yes; then
40852   PTHREAD_LIB="-lc_r"
40853 else
40854
40855                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
40856 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40857 if test "${ac_cv_func_pthread_create+set}" = set; then
40858   echo $ECHO_N "(cached) $ECHO_C" >&6
40859 else
40860   cat >conftest.$ac_ext <<_ACEOF
40861 /* confdefs.h.  */
40862 _ACEOF
40863 cat confdefs.h >>conftest.$ac_ext
40864 cat >>conftest.$ac_ext <<_ACEOF
40865 /* end confdefs.h.  */
40866 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40868 #define pthread_create innocuous_pthread_create
40869
40870 /* System header to define __stub macros and hopefully few prototypes,
40871     which can conflict with char pthread_create (); below.
40872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40873     <limits.h> exists even on freestanding compilers.  */
40874
40875 #ifdef __STDC__
40876 # include <limits.h>
40877 #else
40878 # include <assert.h>
40879 #endif
40880
40881 #undef pthread_create
40882
40883 /* Override any GCC internal prototype to avoid an error.
40884    Use char because int might match the return type of a GCC
40885    builtin and then its argument prototype would still apply.  */
40886 #ifdef __cplusplus
40887 extern "C"
40888 #endif
40889 char pthread_create ();
40890 /* The GNU C library defines this for functions which it implements
40891     to always fail with ENOSYS.  Some functions are actually named
40892     something starting with __ and the normal name is an alias.  */
40893 #if defined __stub_pthread_create || defined __stub___pthread_create
40894 choke me
40895 #endif
40896
40897 int
40898 main ()
40899 {
40900 return pthread_create ();
40901   ;
40902   return 0;
40903 }
40904 _ACEOF
40905 rm -f conftest.$ac_objext conftest$ac_exeext
40906 if { (ac_try="$ac_link"
40907 case "(($ac_try" in
40908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40909   *) ac_try_echo=$ac_try;;
40910 esac
40911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40912   (eval "$ac_link") 2>conftest.er1
40913   ac_status=$?
40914   grep -v '^ *+' conftest.er1 >conftest.err
40915   rm -f conftest.er1
40916   cat conftest.err >&5
40917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40918   (exit $ac_status); } && {
40919          test -z "$ac_c_werror_flag" ||
40920          test ! -s conftest.err
40921        } && test -s conftest$ac_exeext &&
40922        $as_test_x conftest$ac_exeext; then
40923   ac_cv_func_pthread_create=yes
40924 else
40925   echo "$as_me: failed program was:" >&5
40926 sed 's/^/| /' conftest.$ac_ext >&5
40927
40928         ac_cv_func_pthread_create=no
40929 fi
40930
40931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40932       conftest$ac_exeext conftest.$ac_ext
40933 fi
40934 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40935 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40936
40937
40938
40939 fi
40940
40941
40942
40943 fi
40944
40945
40946
40947 fi
40948
40949
40950
40951 cat >>confdefs.h <<\_ACEOF
40952 #define FDLIBS 1
40953 _ACEOF
40954
40955
40956 CFLAGS=${CFLAGS--O}
40957
40958 if test x$have_gcc = xyes ; then
40959    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40960    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40961 fi
40962 LDFLAGS=${LDFLAGS--O}
40963 DB_LIBS="${SQL_LFLAGS}"
40964 CPPFLAGS="$CPPFLAGS"
40965 CFLAGS="$CFLAGS"
40966
40967
40968
40969
40970
40971
40972
40973
40974
40975
40976
40977
40978
40979
40980
40981
40982 OBJLIST=
40983
40984
40985 lld="lld"
40986 llu="llu"
40987
40988 WCFLAGS=
40989 WLDFLAGS=
40990
40991 PFILES="platforms/Makefile"
40992 PSCMD="ps -e"
40993 WIN32=
40994 MACOSX=
40995 hostname=`uname -n | cut -d '.' -f 1`
40996 if test x${hostname} = x ; then
40997    hostname="localhost"
40998 fi
40999 case "$DISTNAME" in
41000 aix)
41001    DISTVER=`uname -r`
41002    PSCMD="ps -e -o pid,comm"
41003    PFILES="${PFILES} \
41004       platforms/aix/Makefile"
41005    TAPEDRIVE="/dev/rmt0.1"
41006   ;;
41007 alpha)
41008    DISTVER=`uname -r`
41009    PTHREAD_LIB="-lpthread -lexc"
41010    if test "${CC}" = "gcc" ; then
41011       lld="lld"
41012       llu="llu"
41013    else
41014       lld="ld"
41015       llu="lu"
41016    fi
41017    TAPEDRIVE="/dev/nrmt0"
41018   ;;
41019 bsdi)
41020    DISTVER=`uname -a |awk '{print $3}'`
41021    TAPEDRIVE="/dev/nrmt0"
41022    PTHREAD_LIB="-pthread"
41023    CFLAGS="${CFLAGS} -pthread"
41024    PSCMD="ps -ax -o pid,command"
41025    lld="qd"
41026    llu="qu"
41027    PFILES="${PFILES} \
41028        platforms/bsdi/Makefile \
41029        platforms/bsdi/bacula-fd \
41030        platforms/bsdi/bacula-sd \
41031        platforms/bsdi/bacula-dir"
41032    largefile_support="yes"
41033   ;;
41034 cygwin)
41035    DISTVER=`uname -a |awk '{print $3}'`
41036    TAPEDRIVE="/dev/nrst0"
41037    WIN32=win32
41038    WCFLAGS="-mwindows"
41039    WLDFLAGS="-mwindows"
41040   ;;
41041 darwin)
41042    DISTVER=`uname -r`
41043    TAPEDRIVE="/dev/nst0"
41044    PSCMD="ps -e -o pid,command"
41045    MACOSX=macosx
41046    PFILES="${PFILES} \
41047       platforms/darwin/Makefile"
41048   ;;
41049 debian)
41050       ping -c 1 $hostname 2>&1 1>/dev/null
41051    if test ! $? = 0; then
41052       hostname="localhost"
41053    fi
41054    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
41055       DISTNAME="ubuntu"
41056    fi
41057    DISTVER=`cat /etc/debian_version`
41058    if test -f /etc/lsb-release ; then
41059       . /etc/lsb-release
41060       if test "x$DISTRIB_ID" != "x" ; then
41061          DISTNAME=$DISTRIB_ID
41062       fi
41063       if test "x$DISTRIB_RELEASE" != "x" ; then
41064          DISTVER=$DISTRIB_RELEASE
41065       fi
41066    fi
41067    if test "$DISTNAME" = "Ubuntu" ; then
41068       DISTNAME="ubuntu"
41069    fi
41070    TAPEDRIVE="/dev/nst0"
41071    PSCMD="ps -e -o pid,command"
41072    if test "$DISTNAME" = "ubuntu" ; then
41073       PFILES="${PFILES} \
41074          platforms/ubuntu/Makefile \
41075          platforms/ubuntu/bacula-fd \
41076          platforms/ubuntu/bacula-sd \
41077          platforms/ubuntu/bacula-dir"
41078    else
41079       PFILES="${PFILES} \
41080          platforms/debian/Makefile \
41081          platforms/debian/bacula-fd \
41082          platforms/debian/bacula-sd \
41083          platforms/debian/bacula-dir"
41084    fi
41085   ;;
41086 freebsd)
41087       ping -c 1 $hostname 2>&1 1>/dev/null
41088    if test ! $? = 0; then
41089       hostname="localhost"
41090    fi
41091    DISTVER=`uname -a |awk '{print $3}'`
41092    VER=`echo $DISTVER | cut -c 1`
41093    if test x$VER = x4 ; then
41094       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41095       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41096    fi
41097    lld="qd"
41098    llu="qu"
41099    TAPEDRIVE="/dev/nrsa0"
41100    PSCMD="ps -ax -o pid,command"
41101    PFILES="${PFILES} \
41102        platforms/freebsd/Makefile \
41103        platforms/freebsd/bacula-fd \
41104        platforms/freebsd/bacula-sd \
41105        platforms/freebsd/bacula-dir"
41106    largefile_support="yes"
41107   ;;
41108 hpux)
41109    PSCMD="UNIX95=1; ps -e -o pid,comm"
41110    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41111    DISTVER=`uname -r`
41112    TAPEDRIVE="/dev/rmt/0hnb"
41113    PTHREAD_LIB="-lpthread"
41114    cat >>confdefs.h <<\_ACEOF
41115 #define _INCLUDE_LONGLONG 1
41116 _ACEOF
41117
41118   ;;
41119 irix)
41120    DISTVER=`uname -r`
41121    TAPEDRIVE="/dev/rmt/0cbn"
41122    PSCMD="ps -e -o pid,comm"
41123    PFILES="${PFILES} \
41124        platforms/irix/Makefile \
41125        platforms/irix/bacula-fd \
41126        platforms/irix/bacula-sd \
41127        platforms/irix/bacula-dir"
41128   ;;
41129 netbsd)
41130    DISTVER=`uname -a |awk '{print $3}'`
41131    lld="qd"
41132    llu="qu"
41133    TAPEDRIVE="/dev/nrst0"
41134    PSCMD="ps -ax -o pid,command"
41135    PTHREAD_LIB="-pthread"
41136    CFLAGS="${CFLAGS} -pthread"
41137   ;;
41138 openbsd)
41139    DISTVER=`uname -a |awk '{print $3}'`
41140    lld="qd"
41141    llu="qu"
41142    TAPEDRIVE="/dev/nrst0"
41143    PSCMD="ps -ax -o pid,command"
41144    PTHREAD_LIB="-pthread"
41145    CFLAGS="${CFLAGS} -pthread"
41146    PFILES="${PFILES} \
41147        platforms/openbsd/Makefile \
41148        platforms/openbsd/bacula-fd \
41149        platforms/openbsd/bacula-sd \
41150        platforms/openbsd/bacula-dir"
41151   ;;
41152 redhat)
41153       ping -c 1 $hostname 2>&1 1>/dev/null
41154    if test ! $? = 0; then
41155       hostname="localhost"
41156    fi
41157    if test -f /etc/whitebox-release ; then
41158       f=/etc/whitebox-release
41159    else
41160       f=/etc/redhat-release
41161    fi
41162    if test `cat $f | grep release |\
41163          cut -f 3 -d ' '`x = "Enterprise"x ; then
41164       DISTVER="Enterprise "`cat $f | grep release |\
41165           cut -f 6 -d ' '`
41166    else
41167        DISTVER=`cat /etc/redhat-release | grep release |\
41168            cut -f 5 -d ' '`
41169    fi
41170    TAPEDRIVE="/dev/nst0"
41171    PSCMD="ps -e -o pid,command"
41172    PFILES="${PFILES} \
41173        platforms/redhat/Makefile \
41174        platforms/redhat/bacula-fd \
41175        platforms/redhat/bacula-sd \
41176        platforms/redhat/bacula-dir \
41177        platforms/redhat/bacula.spec \
41178        "
41179   ;;
41180 mandrake)
41181       ping -c 1 $hostname 2>&1 1>/dev/null
41182    if test ! $? = 0; then
41183       hostname="localhost"
41184    fi
41185    DISTVER=`cat /etc/mandrake-release | grep release |\
41186       cut -f 5 -d ' '`
41187    TAPEDRIVE="/dev/nst0"
41188    PSCMD="ps -e -o pid,command"
41189    PFILES="${PFILES} \
41190        platforms/mandrake/Makefile \
41191        platforms/mandrake/bacula-fd \
41192        platforms/mandrake/bacula-sd \
41193        platforms/mandrake/bacula-dir \
41194        platforms/mandrake/bacula.spec \
41195        "
41196   ;;
41197 gentoo)
41198       ping -c 1 $hostname 2>&1 1>/dev/null
41199    if test ! $? = 0; then
41200       hostname="localhost"
41201    fi
41202    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41203    TAPEDRIVE="/dev/nst0"
41204    PSCMD="ps -e -o pid,command"
41205    PFILES="${PFILES} \
41206        platforms/gentoo/Makefile \
41207     platforms/gentoo/bacula-init \
41208        platforms/gentoo/bacula-fd \
41209        platforms/gentoo/bacula-sd \
41210        platforms/gentoo/bacula-dir"
41211   ;;
41212 slackware)
41213       ping -c 1 $hostname 2>&1 1>/dev/null
41214    if test ! $? = 0; then
41215       hostname="localhost"
41216    fi
41217    DISTVER=`cat /etc/slackware-version`
41218    TAPEDRIVE="/dev/nst0"
41219    PSCMD="ps -e -o pid,command"
41220    PFILES="${PFILES} \
41221        platforms/slackware/Makefile \
41222        platforms/slackware/rc.bacula-fd \
41223        platforms/slackware/rc.bacula-sd \
41224        platforms/slackware/rc.bacula-dir\
41225        platforms/slackware/functions.bacula"
41226   ;;
41227 solaris)
41228    DISTVER=`uname -r`
41229    TAPEDRIVE="/dev/rmt/0cbn"
41230    PSCMD="ps -e -o pid,comm"
41231    PFILES="${PFILES} \
41232        platforms/solaris/Makefile \
41233        platforms/solaris/bacula-fd \
41234        platforms/solaris/bacula-sd \
41235        platforms/solaris/bacula-dir"
41236    if test x$DISTVER = x5.6 ; then
41237        cat >>confdefs.h <<\_ACEOF
41238 #define HAVE_OLD_SOCKOPT 1
41239 _ACEOF
41240
41241    fi
41242    LIBS="$LIBS -lresolv"
41243   ;;
41244 suse)
41245       ping -c 1 $hostname 2>&1 1>/dev/null
41246    if test ! $? = 0; then
41247       hostname="localhost"
41248    fi
41249    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41250        cut -f 3 -d ' '`
41251    TAPEDRIVE="/dev/nst0"
41252    PSCMD="ps -e -o pid,command"
41253    PFILES="${PFILES} \
41254        platforms/suse/Makefile \
41255        platforms/suse/bacula-fd \
41256        platforms/suse/bacula-sd \
41257        platforms/suse/bacula-dir \
41258        platforms/suse/bacula \
41259        platforms/suse/bacula.spec"
41260   ;;
41261 suse5)
41262       ping -c 1 $hostname 2>&1 1>/dev/null
41263    if test ! $? = 0; then
41264       hostname="localhost"
41265    fi
41266    DISTNAME=suse
41267    DISTVER=5.x
41268    TAPEDRIVE="/dev/nst0"
41269    PSCMD="ps -e -o pid,command"
41270    PFILES="${PFILES} \
41271        platforms/suse/Makefile \
41272        platforms/suse/bacula-fd \
41273        platforms/suse/bacula-sd \
41274        platforms/suse/bacula-dir"
41275   ;;
41276 unknown)
41277    DISTVER=unknown
41278    TAPEDRIVE="/dev/nst0"
41279   ;;
41280 *)
41281   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41282   ;;
41283 esac
41284
41285
41286
41287 LIBS="$PTHREAD_LIB $LIBS"
41288
41289 cat >>confdefs.h <<_ACEOF
41290 #define lld "$lld"
41291 _ACEOF
41292
41293 cat >>confdefs.h <<_ACEOF
41294 #define llu "$llu"
41295 _ACEOF
41296
41297
41298
41299
41300
41301
41302
41303
41304 MCOMMON=./autoconf/Make.common
41305
41306
41307 if test "x${subsysdir}" = "x${sbindir}" ; then
41308    echo " "
41309    echo " "
41310    echo "You have set both --sbindir and --with-subsys-dir"
41311    echo "  equal to: ${subsysdir} "
41312    echo "This is not permitted. Please reconfigure."
41313    echo " "
41314    echo "Aborting configuration ..."
41315    echo " "
41316    echo " "
41317    exit 1
41318 fi
41319
41320 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"
41321
41322 ac_config_commands="$ac_config_commands default"
41323
41324 cat >confcache <<\_ACEOF
41325 # This file is a shell script that caches the results of configure
41326 # tests run on this system so they can be shared between configure
41327 # scripts and configure runs, see configure's option --config-cache.
41328 # It is not useful on other systems.  If it contains results you don't
41329 # want to keep, you may remove or edit it.
41330 #
41331 # config.status only pays attention to the cache file if you give it
41332 # the --recheck option to rerun configure.
41333 #
41334 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41335 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41336 # following values.
41337
41338 _ACEOF
41339
41340 # The following way of writing the cache mishandles newlines in values,
41341 # but we know of no workaround that is simple, portable, and efficient.
41342 # So, we kill variables containing newlines.
41343 # Ultrix sh set writes to stderr and can't be redirected directly,
41344 # and sets the high bit in the cache file unless we assign to the vars.
41345 (
41346   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41347     eval ac_val=\$$ac_var
41348     case $ac_val in #(
41349     *${as_nl}*)
41350       case $ac_var in #(
41351       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41352 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41353       esac
41354       case $ac_var in #(
41355       _ | IFS | as_nl) ;; #(
41356       *) $as_unset $ac_var ;;
41357       esac ;;
41358     esac
41359   done
41360
41361   (set) 2>&1 |
41362     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41363     *${as_nl}ac_space=\ *)
41364       # `set' does not quote correctly, so add quotes (double-quote
41365       # substitution turns \\\\ into \\, and sed turns \\ into \).
41366       sed -n \
41367         "s/'/'\\\\''/g;
41368           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41369       ;; #(
41370     *)
41371       # `set' quotes correctly as required by POSIX, so do not add quotes.
41372       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41373       ;;
41374     esac |
41375     sort
41376 ) |
41377   sed '
41378      /^ac_cv_env_/b end
41379      t clear
41380      :clear
41381      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41382      t end
41383      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41384      :end' >>confcache
41385 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41386   if test -w "$cache_file"; then
41387     test "x$cache_file" != "x/dev/null" &&
41388       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41389 echo "$as_me: updating cache $cache_file" >&6;}
41390     cat confcache >$cache_file
41391   else
41392     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41393 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41394   fi
41395 fi
41396 rm -f confcache
41397
41398 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41399 # Let make expand exec_prefix.
41400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41401
41402 DEFS=-DHAVE_CONFIG_H
41403
41404 ac_libobjs=
41405 ac_ltlibobjs=
41406 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41407   # 1. Remove the extension, and $U if already installed.
41408   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41409   ac_i=`echo "$ac_i" | sed "$ac_script"`
41410   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41411   #    will be set to the directory where LIBOBJS objects are built.
41412   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41413   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41414 done
41415 LIBOBJS=$ac_libobjs
41416
41417 LTLIBOBJS=$ac_ltlibobjs
41418
41419
41420
41421 : ${CONFIG_STATUS=./config.status}
41422 ac_clean_files_save=$ac_clean_files
41423 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41424 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41425 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41426 cat >$CONFIG_STATUS <<_ACEOF
41427 #! $SHELL
41428 # Generated by $as_me.
41429 # Run this file to recreate the current configuration.
41430 # Compiler output produced by configure, useful for debugging
41431 # configure, is in config.log if it exists.
41432
41433 debug=false
41434 ac_cs_recheck=false
41435 ac_cs_silent=false
41436 SHELL=\${CONFIG_SHELL-$SHELL}
41437 _ACEOF
41438
41439 cat >>$CONFIG_STATUS <<\_ACEOF
41440 ## --------------------- ##
41441 ## M4sh Initialization.  ##
41442 ## --------------------- ##
41443
41444 # Be more Bourne compatible
41445 DUALCASE=1; export DUALCASE # for MKS sh
41446 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41447   emulate sh
41448   NULLCMD=:
41449   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41450   # is contrary to our usage.  Disable this feature.
41451   alias -g '${1+"$@"}'='"$@"'
41452   setopt NO_GLOB_SUBST
41453 else
41454   case `(set -o) 2>/dev/null` in
41455   *posix*) set -o posix ;;
41456 esac
41457
41458 fi
41459
41460
41461
41462
41463 # PATH needs CR
41464 # Avoid depending upon Character Ranges.
41465 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41466 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41467 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41468 as_cr_digits='0123456789'
41469 as_cr_alnum=$as_cr_Letters$as_cr_digits
41470
41471 # The user is always right.
41472 if test "${PATH_SEPARATOR+set}" != set; then
41473   echo "#! /bin/sh" >conf$$.sh
41474   echo  "exit 0"   >>conf$$.sh
41475   chmod +x conf$$.sh
41476   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41477     PATH_SEPARATOR=';'
41478   else
41479     PATH_SEPARATOR=:
41480   fi
41481   rm -f conf$$.sh
41482 fi
41483
41484 # Support unset when possible.
41485 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41486   as_unset=unset
41487 else
41488   as_unset=false
41489 fi
41490
41491
41492 # IFS
41493 # We need space, tab and new line, in precisely that order.  Quoting is
41494 # there to prevent editors from complaining about space-tab.
41495 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41496 # splitting by setting IFS to empty value.)
41497 as_nl='
41498 '
41499 IFS=" ""        $as_nl"
41500
41501 # Find who we are.  Look in the path if we contain no directory separator.
41502 case $0 in
41503   *[\\/]* ) as_myself=$0 ;;
41504   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41505 for as_dir in $PATH
41506 do
41507   IFS=$as_save_IFS
41508   test -z "$as_dir" && as_dir=.
41509   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41510 done
41511 IFS=$as_save_IFS
41512
41513      ;;
41514 esac
41515 # We did not find ourselves, most probably we were run as `sh COMMAND'
41516 # in which case we are not to be found in the path.
41517 if test "x$as_myself" = x; then
41518   as_myself=$0
41519 fi
41520 if test ! -f "$as_myself"; then
41521   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41522   { (exit 1); exit 1; }
41523 fi
41524
41525 # Work around bugs in pre-3.0 UWIN ksh.
41526 for as_var in ENV MAIL MAILPATH
41527 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41528 done
41529 PS1='$ '
41530 PS2='> '
41531 PS4='+ '
41532
41533 # NLS nuisances.
41534 for as_var in \
41535   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41536   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41537   LC_TELEPHONE LC_TIME
41538 do
41539   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41540     eval $as_var=C; export $as_var
41541   else
41542     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41543   fi
41544 done
41545
41546 # Required to use basename.
41547 if expr a : '\(a\)' >/dev/null 2>&1 &&
41548    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41549   as_expr=expr
41550 else
41551   as_expr=false
41552 fi
41553
41554 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41555   as_basename=basename
41556 else
41557   as_basename=false
41558 fi
41559
41560
41561 # Name of the executable.
41562 as_me=`$as_basename -- "$0" ||
41563 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41564          X"$0" : 'X\(//\)$' \| \
41565          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41566 echo X/"$0" |
41567     sed '/^.*\/\([^/][^/]*\)\/*$/{
41568             s//\1/
41569             q
41570           }
41571           /^X\/\(\/\/\)$/{
41572             s//\1/
41573             q
41574           }
41575           /^X\/\(\/\).*/{
41576             s//\1/
41577             q
41578           }
41579           s/.*/./; q'`
41580
41581 # CDPATH.
41582 $as_unset CDPATH
41583
41584
41585
41586   as_lineno_1=$LINENO
41587   as_lineno_2=$LINENO
41588   test "x$as_lineno_1" != "x$as_lineno_2" &&
41589   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41590
41591   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41592   # uniformly replaced by the line number.  The first 'sed' inserts a
41593   # line-number line after each line using $LINENO; the second 'sed'
41594   # does the real work.  The second script uses 'N' to pair each
41595   # line-number line with the line containing $LINENO, and appends
41596   # trailing '-' during substitution so that $LINENO is not a special
41597   # case at line end.
41598   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41599   # scripts with optimization help from Paolo Bonzini.  Blame Lee
41600   # E. McMahon (1931-1989) for sed's syntax.  :-)
41601   sed -n '
41602     p
41603     /[$]LINENO/=
41604   ' <$as_myself |
41605     sed '
41606       s/[$]LINENO.*/&-/
41607       t lineno
41608       b
41609       :lineno
41610       N
41611       :loop
41612       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41613       t loop
41614       s/-\n.*//
41615     ' >$as_me.lineno &&
41616   chmod +x "$as_me.lineno" ||
41617     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41618    { (exit 1); exit 1; }; }
41619
41620   # Don't try to exec as it changes $[0], causing all sort of problems
41621   # (the dirname of $[0] is not the place where we might find the
41622   # original and so on.  Autoconf is especially sensitive to this).
41623   . "./$as_me.lineno"
41624   # Exit status is that of the last command.
41625   exit
41626 }
41627
41628
41629 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41630   as_dirname=dirname
41631 else
41632   as_dirname=false
41633 fi
41634
41635 ECHO_C= ECHO_N= ECHO_T=
41636 case `echo -n x` in
41637 -n*)
41638   case `echo 'x\c'` in
41639   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
41640   *)   ECHO_C='\c';;
41641   esac;;
41642 *)
41643   ECHO_N='-n';;
41644 esac
41645
41646 if expr a : '\(a\)' >/dev/null 2>&1 &&
41647    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41648   as_expr=expr
41649 else
41650   as_expr=false
41651 fi
41652
41653 rm -f conf$$ conf$$.exe conf$$.file
41654 if test -d conf$$.dir; then
41655   rm -f conf$$.dir/conf$$.file
41656 else
41657   rm -f conf$$.dir
41658   mkdir conf$$.dir
41659 fi
41660 echo >conf$$.file
41661 if ln -s conf$$.file conf$$ 2>/dev/null; then
41662   as_ln_s='ln -s'
41663   # ... but there are two gotchas:
41664   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41665   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41666   # In both cases, we have to default to `cp -p'.
41667   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41668     as_ln_s='cp -p'
41669 elif ln conf$$.file conf$$ 2>/dev/null; then
41670   as_ln_s=ln
41671 else
41672   as_ln_s='cp -p'
41673 fi
41674 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41675 rmdir conf$$.dir 2>/dev/null
41676
41677 if mkdir -p . 2>/dev/null; then
41678   as_mkdir_p=:
41679 else
41680   test -d ./-p && rmdir ./-p
41681   as_mkdir_p=false
41682 fi
41683
41684 if test -x / >/dev/null 2>&1; then
41685   as_test_x='test -x'
41686 else
41687   if ls -dL / >/dev/null 2>&1; then
41688     as_ls_L_option=L
41689   else
41690     as_ls_L_option=
41691   fi
41692   as_test_x='
41693     eval sh -c '\''
41694       if test -d "$1"; then
41695         test -d "$1/.";
41696       else
41697         case $1 in
41698         -*)set "./$1";;
41699         esac;
41700         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41701         ???[sx]*):;;*)false;;esac;fi
41702     '\'' sh
41703   '
41704 fi
41705 as_executable_p=$as_test_x
41706
41707 # Sed expression to map a string onto a valid CPP name.
41708 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41709
41710 # Sed expression to map a string onto a valid variable name.
41711 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41712
41713
41714 exec 6>&1
41715
41716 # Save the log message, to keep $[0] and so on meaningful, and to
41717 # report actual input values of CONFIG_FILES etc. instead of their
41718 # values after options handling.
41719 ac_log="
41720 This file was extended by $as_me, which was
41721 generated by GNU Autoconf 2.61.  Invocation command line was
41722
41723   CONFIG_FILES    = $CONFIG_FILES
41724   CONFIG_HEADERS  = $CONFIG_HEADERS
41725   CONFIG_LINKS    = $CONFIG_LINKS
41726   CONFIG_COMMANDS = $CONFIG_COMMANDS
41727   $ $0 $@
41728
41729 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41730 "
41731
41732 _ACEOF
41733
41734 cat >>$CONFIG_STATUS <<_ACEOF
41735 # Files that config.status was made for.
41736 config_files="$ac_config_files"
41737 config_headers="$ac_config_headers"
41738 config_commands="$ac_config_commands"
41739
41740 _ACEOF
41741
41742 cat >>$CONFIG_STATUS <<\_ACEOF
41743 ac_cs_usage="\
41744 \`$as_me' instantiates files from templates according to the
41745 current configuration.
41746
41747 Usage: $0 [OPTIONS] [FILE]...
41748
41749   -h, --help       print this help, then exit
41750   -V, --version    print version number and configuration settings, then exit
41751   -q, --quiet      do not print progress messages
41752   -d, --debug      don't remove temporary files
41753       --recheck    update $as_me by reconfiguring in the same conditions
41754   --file=FILE[:TEMPLATE]
41755                    instantiate the configuration file FILE
41756   --header=FILE[:TEMPLATE]
41757                    instantiate the configuration header FILE
41758
41759 Configuration files:
41760 $config_files
41761
41762 Configuration headers:
41763 $config_headers
41764
41765 Configuration commands:
41766 $config_commands
41767
41768 Report bugs to <bug-autoconf@gnu.org>."
41769
41770 _ACEOF
41771 cat >>$CONFIG_STATUS <<_ACEOF
41772 ac_cs_version="\\
41773 config.status
41774 configured by $0, generated by GNU Autoconf 2.61,
41775   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41776
41777 Copyright (C) 2006 Free Software Foundation, Inc.
41778 This config.status script is free software; the Free Software Foundation
41779 gives unlimited permission to copy, distribute and modify it."
41780
41781 ac_pwd='$ac_pwd'
41782 srcdir='$srcdir'
41783 INSTALL='$INSTALL'
41784 _ACEOF
41785
41786 cat >>$CONFIG_STATUS <<\_ACEOF
41787 # If no file are specified by the user, then we need to provide default
41788 # value.  By we need to know if files were specified by the user.
41789 ac_need_defaults=:
41790 while test $# != 0
41791 do
41792   case $1 in
41793   --*=*)
41794     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41795     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41796     ac_shift=:
41797     ;;
41798   *)
41799     ac_option=$1
41800     ac_optarg=$2
41801     ac_shift=shift
41802     ;;
41803   esac
41804
41805   case $ac_option in
41806   # Handling of the options.
41807   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41808     ac_cs_recheck=: ;;
41809   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41810     echo "$ac_cs_version"; exit ;;
41811   --debug | --debu | --deb | --de | --d | -d )
41812     debug=: ;;
41813   --file | --fil | --fi | --f )
41814     $ac_shift
41815     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41816     ac_need_defaults=false;;
41817   --header | --heade | --head | --hea )
41818     $ac_shift
41819     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41820     ac_need_defaults=false;;
41821   --he | --h)
41822     # Conflict between --help and --header
41823     { echo "$as_me: error: ambiguous option: $1
41824 Try \`$0 --help' for more information." >&2
41825    { (exit 1); exit 1; }; };;
41826   --help | --hel | -h )
41827     echo "$ac_cs_usage"; exit ;;
41828   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41829   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41830     ac_cs_silent=: ;;
41831
41832   # This is an error.
41833   -*) { echo "$as_me: error: unrecognized option: $1
41834 Try \`$0 --help' for more information." >&2
41835    { (exit 1); exit 1; }; } ;;
41836
41837   *) ac_config_targets="$ac_config_targets $1"
41838      ac_need_defaults=false ;;
41839
41840   esac
41841   shift
41842 done
41843
41844 ac_configure_extra_args=
41845
41846 if $ac_cs_silent; then
41847   exec 6>/dev/null
41848   ac_configure_extra_args="$ac_configure_extra_args --silent"
41849 fi
41850
41851 _ACEOF
41852 cat >>$CONFIG_STATUS <<_ACEOF
41853 if \$ac_cs_recheck; then
41854   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41855   CONFIG_SHELL=$SHELL
41856   export CONFIG_SHELL
41857   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41858 fi
41859
41860 _ACEOF
41861 cat >>$CONFIG_STATUS <<\_ACEOF
41862 exec 5>>config.log
41863 {
41864   echo
41865   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41866 ## Running $as_me. ##
41867 _ASBOX
41868   echo "$ac_log"
41869 } >&5
41870
41871 _ACEOF
41872 cat >>$CONFIG_STATUS <<_ACEOF
41873 #
41874 # INIT-COMMANDS
41875 #
41876
41877
41878 # The HP-UX ksh and POSIX shell print the target directory to stdout
41879 # if CDPATH is set.
41880 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41881
41882 sed_quote_subst='$sed_quote_subst'
41883 double_quote_subst='$double_quote_subst'
41884 delay_variable_subst='$delay_variable_subst'
41885 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41886 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41887 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41888 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41889 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41890 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41891 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41892 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41893 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41894 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41895 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41896 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41897 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41898 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41899 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41900 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41901 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41902 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41903 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41904 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41905 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41906 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41907 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41908 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41909 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41910 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41911 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41912 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41913 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41914 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41915 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41916 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41917 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41918 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41919 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41920 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41921 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41922 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41923 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41924 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41925 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41926 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41927 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41928 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41929 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"`'
41930 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"`'
41931 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41932 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41933 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41934 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41935 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41936 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41937 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41938 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41939 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41940 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41941 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41942 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41943 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41944 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41945 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41946 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41947 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41948 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41949 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41950 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41951 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41952 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41953 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41954 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41955 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41956 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41957 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41958 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41959 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41960 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41961 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41962 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41963 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41964 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41965 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41966 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41967 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41968 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41969 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41970 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41971 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41972 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41973 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41974 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41975 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41976 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41977 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41978 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41979 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41980 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41981 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41982 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41983 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41984 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41985 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41986 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41987 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41988 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41989 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41990 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41991 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41992 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41993 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41994 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41995 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41996 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41997 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41998 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41999 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
42000 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
42001 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
42002 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
42003 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
42004 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42005 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42006 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
42007 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
42008 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
42009 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42010 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42011 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42012 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42013 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42014 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42015 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42016 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42017 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42018 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42019 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42020 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42021 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42022 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42023 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42024 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42025 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42026 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42027 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42028 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42029 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42030 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42031 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42032 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42033 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42034 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42035 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42036 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42037 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42038 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42039 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42040 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42041 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42042 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42043 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42044 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42045 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42046 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42047 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42048 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42049 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42050 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42051 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42052 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42053 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42054 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42055 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42056
42057 LTCC='$LTCC'
42058 LTCFLAGS='$LTCFLAGS'
42059 compiler='$compiler_DEFAULT'
42060
42061 # Quote evaled strings.
42062 for var in SED \
42063 GREP \
42064 EGREP \
42065 FGREP \
42066 LD \
42067 NM \
42068 LN_S \
42069 lt_SP2NL \
42070 lt_NL2SP \
42071 reload_flag \
42072 OBJDUMP \
42073 deplibs_check_method \
42074 file_magic_cmd \
42075 AR \
42076 AR_FLAGS \
42077 STRIP \
42078 RANLIB \
42079 CC \
42080 CFLAGS \
42081 compiler \
42082 lt_cv_sys_global_symbol_pipe \
42083 lt_cv_sys_global_symbol_to_cdecl \
42084 lt_cv_sys_global_symbol_to_c_name_address \
42085 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42086 SHELL \
42087 ECHO \
42088 lt_prog_compiler_no_builtin_flag \
42089 lt_prog_compiler_wl \
42090 lt_prog_compiler_pic \
42091 lt_prog_compiler_static \
42092 lt_cv_prog_compiler_c_o \
42093 need_locks \
42094 DSYMUTIL \
42095 NMEDIT \
42096 LIPO \
42097 OTOOL \
42098 OTOOL64 \
42099 shrext_cmds \
42100 export_dynamic_flag_spec \
42101 whole_archive_flag_spec \
42102 compiler_needs_object \
42103 with_gnu_ld \
42104 allow_undefined_flag \
42105 no_undefined_flag \
42106 hardcode_libdir_flag_spec \
42107 hardcode_libdir_flag_spec_ld \
42108 hardcode_libdir_separator \
42109 fix_srcfile_path \
42110 exclude_expsyms \
42111 include_expsyms \
42112 file_list_spec \
42113 variables_saved_for_relink \
42114 libname_spec \
42115 library_names_spec \
42116 soname_spec \
42117 finish_eval \
42118 old_striplib \
42119 striplib \
42120 compiler_lib_search_dirs \
42121 predep_objects \
42122 postdep_objects \
42123 predeps \
42124 postdeps \
42125 compiler_lib_search_path \
42126 LD_CXX \
42127 compiler_CXX \
42128 lt_prog_compiler_no_builtin_flag_CXX \
42129 lt_prog_compiler_wl_CXX \
42130 lt_prog_compiler_pic_CXX \
42131 lt_prog_compiler_static_CXX \
42132 lt_cv_prog_compiler_c_o_CXX \
42133 export_dynamic_flag_spec_CXX \
42134 whole_archive_flag_spec_CXX \
42135 compiler_needs_object_CXX \
42136 with_gnu_ld_CXX \
42137 allow_undefined_flag_CXX \
42138 no_undefined_flag_CXX \
42139 hardcode_libdir_flag_spec_CXX \
42140 hardcode_libdir_flag_spec_ld_CXX \
42141 hardcode_libdir_separator_CXX \
42142 fix_srcfile_path_CXX \
42143 exclude_expsyms_CXX \
42144 include_expsyms_CXX \
42145 file_list_spec_CXX \
42146 compiler_lib_search_dirs_CXX \
42147 predep_objects_CXX \
42148 postdep_objects_CXX \
42149 predeps_CXX \
42150 postdeps_CXX \
42151 compiler_lib_search_path_CXX; do
42152     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42153     *[\\\\\\\`\\"\\\$]*)
42154       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42155       ;;
42156     *)
42157       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42158       ;;
42159     esac
42160 done
42161
42162 # Double-quote double-evaled strings.
42163 for var in reload_cmds \
42164 old_postinstall_cmds \
42165 old_postuninstall_cmds \
42166 old_archive_cmds \
42167 extract_expsyms_cmds \
42168 old_archive_from_new_cmds \
42169 old_archive_from_expsyms_cmds \
42170 archive_cmds \
42171 archive_expsym_cmds \
42172 module_cmds \
42173 module_expsym_cmds \
42174 export_symbols_cmds \
42175 prelink_cmds \
42176 postinstall_cmds \
42177 postuninstall_cmds \
42178 finish_cmds \
42179 sys_lib_search_path_spec \
42180 sys_lib_dlsearch_path_spec \
42181 old_archive_cmds_CXX \
42182 old_archive_from_new_cmds_CXX \
42183 old_archive_from_expsyms_cmds_CXX \
42184 archive_cmds_CXX \
42185 archive_expsym_cmds_CXX \
42186 module_cmds_CXX \
42187 module_expsym_cmds_CXX \
42188 export_symbols_cmds_CXX \
42189 prelink_cmds_CXX; do
42190     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42191     *[\\\\\\\`\\"\\\$]*)
42192       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42193       ;;
42194     *)
42195       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42196       ;;
42197     esac
42198 done
42199
42200 # Fix-up fallback echo if it was mangled by the above quoting rules.
42201 case \$lt_ECHO in
42202 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42203   ;;
42204 esac
42205
42206 ac_aux_dir='$ac_aux_dir'
42207 xsi_shell='$xsi_shell'
42208 lt_shell_append='$lt_shell_append'
42209
42210 # See if we are running on zsh, and set the options which allow our
42211 # commands through without removal of \ escapes INIT.
42212 if test -n "\${ZSH_VERSION+set}" ; then
42213    setopt NO_GLOB_SUBST
42214 fi
42215
42216
42217     PACKAGE='$PACKAGE'
42218     VERSION='$VERSION'
42219     TIMESTAMP='$TIMESTAMP'
42220     RM='$RM'
42221     ofile='$ofile'
42222
42223
42224
42225
42226
42227 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42228     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42229     # from automake.
42230     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42231     # Capture the value of LINGUAS because we need it to compute CATALOGS.
42232     LINGUAS="${LINGUAS-%UNSET%}"
42233
42234
42235 _ACEOF
42236
42237 cat >>$CONFIG_STATUS <<\_ACEOF
42238
42239 # Handling of arguments.
42240 for ac_config_target in $ac_config_targets
42241 do
42242   case $ac_config_target in
42243     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42244     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42245     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42246     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42247     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42248     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42249     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42250     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42251     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42252     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42253     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42254     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42255     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42256     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42257     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42258     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42259     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42260     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42261     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42262     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42263     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42264     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42265     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42266     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42267     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42268     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42269     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42270     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42271     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42272     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42273     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42274     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42275     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42276     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42277     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42278     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42279     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42280     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42281     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42282     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42283     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42284     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42285     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42286     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42287     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42288     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42289     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42290     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42291     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42292     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42293     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42294     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42295     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42296     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42297     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42298     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42299     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42300     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42301     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42302     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42303     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42304     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42305     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42306     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42307     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42308     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42309     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42310     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42311     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42312     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42313     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42314     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42315     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42316     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42317     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42318     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42319     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42320     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42321     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42322     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42323     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42324     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42325     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42326     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42327     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42328     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42329     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42330     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42331     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42332     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42333     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42334     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42335     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42336     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42337     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42338     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42339     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42340     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42341     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42342     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42343     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42344     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42345     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42346     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42347     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42348     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42349     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42350     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42351     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42352     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42353     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42354     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42355     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42356
42357   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42358 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42359    { (exit 1); exit 1; }; };;
42360   esac
42361 done
42362
42363
42364 # If the user did not use the arguments to specify the items to instantiate,
42365 # then the envvar interface is used.  Set only those that are not.
42366 # We use the long form for the default assignment because of an extremely
42367 # bizarre bug on SunOS 4.1.3.
42368 if $ac_need_defaults; then
42369   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42370   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42371   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42372 fi
42373
42374 # Have a temporary directory for convenience.  Make it in the build tree
42375 # simply because there is no reason against having it here, and in addition,
42376 # creating and moving files from /tmp can sometimes cause problems.
42377 # Hook for its removal unless debugging.
42378 # Note that there is a small window in which the directory will not be cleaned:
42379 # after its creation but before its name has been assigned to `$tmp'.
42380 $debug ||
42381 {
42382   tmp=
42383   trap 'exit_status=$?
42384   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42385 ' 0
42386   trap '{ (exit 1); exit 1; }' 1 2 13 15
42387 }
42388 # Create a (secure) tmp directory for tmp files.
42389
42390 {
42391   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42392   test -n "$tmp" && test -d "$tmp"
42393 }  ||
42394 {
42395   tmp=./conf$$-$RANDOM
42396   (umask 077 && mkdir "$tmp")
42397 } ||
42398 {
42399    echo "$me: cannot create a temporary directory in ." >&2
42400    { (exit 1); exit 1; }
42401 }
42402
42403 #
42404 # Set up the sed scripts for CONFIG_FILES section.
42405 #
42406
42407 # No need to generate the scripts if there are no CONFIG_FILES.
42408 # This happens for instance when ./config.status config.h
42409 if test -n "$CONFIG_FILES"; then
42410
42411 _ACEOF
42412
42413 # Create sed commands to just substitute file output variables.
42414
42415 # Remaining file output variables are in a fragment that also has non-file
42416 # output varibles.
42417
42418
42419
42420 ac_delim='%!_!# '
42421 for ac_last_try in false false false false false :; do
42422   cat >conf$$subs.sed <<_ACEOF
42423 SHELL!$SHELL$ac_delim
42424 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42425 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42426 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42427 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42428 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42429 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42430 exec_prefix!$exec_prefix$ac_delim
42431 prefix!$prefix$ac_delim
42432 program_transform_name!$program_transform_name$ac_delim
42433 bindir!$bindir$ac_delim
42434 sbindir!$sbindir$ac_delim
42435 libexecdir!$libexecdir$ac_delim
42436 datarootdir!$datarootdir$ac_delim
42437 datadir!$datadir$ac_delim
42438 sysconfdir!$sysconfdir$ac_delim
42439 sharedstatedir!$sharedstatedir$ac_delim
42440 localstatedir!$localstatedir$ac_delim
42441 includedir!$includedir$ac_delim
42442 oldincludedir!$oldincludedir$ac_delim
42443 docdir!$docdir$ac_delim
42444 infodir!$infodir$ac_delim
42445 htmldir!$htmldir$ac_delim
42446 dvidir!$dvidir$ac_delim
42447 pdfdir!$pdfdir$ac_delim
42448 psdir!$psdir$ac_delim
42449 libdir!$libdir$ac_delim
42450 localedir!$localedir$ac_delim
42451 mandir!$mandir$ac_delim
42452 DEFS!$DEFS$ac_delim
42453 ECHO_C!$ECHO_C$ac_delim
42454 ECHO_N!$ECHO_N$ac_delim
42455 ECHO_T!$ECHO_T$ac_delim
42456 LIBS!$LIBS$ac_delim
42457 build_alias!$build_alias$ac_delim
42458 host_alias!$host_alias$ac_delim
42459 target_alias!$target_alias$ac_delim
42460 BUILD_DIR!$BUILD_DIR$ac_delim
42461 TOP_DIR!$TOP_DIR$ac_delim
42462 TRUEPRG!$TRUEPRG$ac_delim
42463 FALSEPRG!$FALSEPRG$ac_delim
42464 VERSION!$VERSION$ac_delim
42465 DATE!$DATE$ac_delim
42466 LSMDATE!$LSMDATE$ac_delim
42467 BACULA!$BACULA$ac_delim
42468 post_host!$post_host$ac_delim
42469 CC!$CC$ac_delim
42470 CFLAGS!$CFLAGS$ac_delim
42471 LDFLAGS!$LDFLAGS$ac_delim
42472 CPPFLAGS!$CPPFLAGS$ac_delim
42473 ac_ct_CC!$ac_ct_CC$ac_delim
42474 EXEEXT!$EXEEXT$ac_delim
42475 OBJEXT!$OBJEXT$ac_delim
42476 CXX!$CXX$ac_delim
42477 CXXFLAGS!$CXXFLAGS$ac_delim
42478 ac_ct_CXX!$ac_ct_CXX$ac_delim
42479 CPP!$CPP$ac_delim
42480 GREP!$GREP$ac_delim
42481 EGREP!$EGREP$ac_delim
42482 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42483 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42484 INSTALL_DATA!$INSTALL_DATA$ac_delim
42485 MV!$MV$ac_delim
42486 REMOVE!$REMOVE$ac_delim
42487 CP!$CP$ac_delim
42488 SED!$SED$ac_delim
42489 ECHO!$ECHO$ac_delim
42490 CMP!$CMP$ac_delim
42491 TBL!$TBL$ac_delim
42492 AR!$AR$ac_delim
42493 OPENSSL!$OPENSSL$ac_delim
42494 MTX!$MTX$ac_delim
42495 DD!$DD$ac_delim
42496 MKISOFS!$MKISOFS$ac_delim
42497 PYTHON!$PYTHON$ac_delim
42498 GROWISOFS!$GROWISOFS$ac_delim
42499 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42500 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42501 PKGCONFIG!$PKGCONFIG$ac_delim
42502 QMAKE!$QMAKE$ac_delim
42503 QMAKEQT4!$QMAKEQT4$ac_delim
42504 WXCONFIG!$WXCONFIG$ac_delim
42505 WXFLAGS!$WXFLAGS$ac_delim
42506 CDRECORD!$CDRECORD$ac_delim
42507 PIDOF!$PIDOF$ac_delim
42508 AWK!$AWK$ac_delim
42509 ARFLAGS!$ARFLAGS$ac_delim
42510 MAKE_SHELL!$MAKE_SHELL$ac_delim
42511 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42512 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42513 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42514 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42515 LIBTOOL!$LIBTOOL$ac_delim
42516 build!$build$ac_delim
42517 _ACEOF
42518
42519   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42520     break
42521   elif $ac_last_try; then
42522     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42523 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42524    { (exit 1); exit 1; }; }
42525   else
42526     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42527   fi
42528 done
42529
42530 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42531 if test -n "$ac_eof"; then
42532   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42533   ac_eof=`expr $ac_eof + 1`
42534 fi
42535
42536 cat >>$CONFIG_STATUS <<_ACEOF
42537 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42538 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42539 /^[      ]*@MCOMMON@[    ]*$/{
42540 r $MCOMMON
42541 d
42542 }
42543 _ACEOF
42544 sed '
42545 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42546 s/^/s,@/; s/!/@,|#_!!_#|/
42547 :n
42548 t n
42549 s/'"$ac_delim"'$/,g/; t
42550 s/$/\\/; p
42551 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42552 ' >>$CONFIG_STATUS <conf$$subs.sed
42553 rm -f conf$$subs.sed
42554 cat >>$CONFIG_STATUS <<_ACEOF
42555 CEOF$ac_eof
42556 _ACEOF
42557
42558
42559 ac_delim='%!_!# '
42560 for ac_last_try in false false false false false :; do
42561   cat >conf$$subs.sed <<_ACEOF
42562 build_cpu!$build_cpu$ac_delim
42563 build_vendor!$build_vendor$ac_delim
42564 build_os!$build_os$ac_delim
42565 host!$host$ac_delim
42566 host_cpu!$host_cpu$ac_delim
42567 host_vendor!$host_vendor$ac_delim
42568 host_os!$host_os$ac_delim
42569 FGREP!$FGREP$ac_delim
42570 LD!$LD$ac_delim
42571 DUMPBIN!$DUMPBIN$ac_delim
42572 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42573 NM!$NM$ac_delim
42574 LN_S!$LN_S$ac_delim
42575 OBJDUMP!$OBJDUMP$ac_delim
42576 STRIP!$STRIP$ac_delim
42577 RANLIB!$RANLIB$ac_delim
42578 lt_ECHO!$lt_ECHO$ac_delim
42579 DSYMUTIL!$DSYMUTIL$ac_delim
42580 NMEDIT!$NMEDIT$ac_delim
42581 LIPO!$LIPO$ac_delim
42582 OTOOL!$OTOOL$ac_delim
42583 OTOOL64!$OTOOL64$ac_delim
42584 CXXCPP!$CXXCPP$ac_delim
42585 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42586 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42587 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42588 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42589 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42590 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42591 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42592 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42593 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42594 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42595 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42596 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42597 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42598 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42599 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42600 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42601 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42602 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42603 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42604 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42605 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42606 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42607 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42608 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42609 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42610 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42611 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42612 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42613 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42614 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42615 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42616 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42617 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42618 SET_MAKE!$SET_MAKE$ac_delim
42619 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42620 USE_NLS!$USE_NLS$ac_delim
42621 MSGFMT!$MSGFMT$ac_delim
42622 GMSGFMT!$GMSGFMT$ac_delim
42623 XGETTEXT!$XGETTEXT$ac_delim
42624 MSGMERGE!$MSGMERGE$ac_delim
42625 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42626 LIBICONV!$LIBICONV$ac_delim
42627 LTLIBICONV!$LTLIBICONV$ac_delim
42628 INTLLIBS!$INTLLIBS$ac_delim
42629 LIBINTL!$LIBINTL$ac_delim
42630 LTLIBINTL!$LTLIBINTL$ac_delim
42631 POSUB!$POSUB$ac_delim
42632 GLIBC2!$GLIBC2$ac_delim
42633 ALLOCA!$ALLOCA$ac_delim
42634 GLIBC21!$GLIBC21$ac_delim
42635 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42636 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42637 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42638 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42639 INTLBISON!$INTLBISON$ac_delim
42640 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42641 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42642 CATOBJEXT!$CATOBJEXT$ac_delim
42643 DATADIRNAME!$DATADIRNAME$ac_delim
42644 INSTOBJEXT!$INSTOBJEXT$ac_delim
42645 GENCAT!$GENCAT$ac_delim
42646 INTLOBJS!$INTLOBJS$ac_delim
42647 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42648 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42649 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42650 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42651 GNOME_LIBS!$GNOME_LIBS$ac_delim
42652 GNOME_DIR!$GNOME_DIR$ac_delim
42653 BAT_DIR!$BAT_DIR$ac_delim
42654 QWT_INC!$QWT_INC$ac_delim
42655 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42656 QWT_LIB!$QWT_LIB$ac_delim
42657 QWT!$QWT$ac_delim
42658 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42659 _ACEOF
42660
42661   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42662     break
42663   elif $ac_last_try; then
42664     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42665 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42666    { (exit 1); exit 1; }; }
42667   else
42668     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42669   fi
42670 done
42671
42672 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42673 if test -n "$ac_eof"; then
42674   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42675   ac_eof=`expr $ac_eof + 1`
42676 fi
42677
42678 cat >>$CONFIG_STATUS <<_ACEOF
42679 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42681 _ACEOF
42682 sed '
42683 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42684 s/^/s,@/; s/!/@,|#_!!_#|/
42685 :n
42686 t n
42687 s/'"$ac_delim"'$/,g/; t
42688 s/$/\\/; p
42689 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42690 ' >>$CONFIG_STATUS <conf$$subs.sed
42691 rm -f conf$$subs.sed
42692 cat >>$CONFIG_STATUS <<_ACEOF
42693 CEOF$ac_eof
42694 _ACEOF
42695
42696
42697 ac_delim='%!_!# '
42698 for ac_last_try in false false false false false :; do
42699   cat >conf$$subs.sed <<_ACEOF
42700 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42701 WX_DIR!$WX_DIR$ac_delim
42702 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42703 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42704 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42705 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42706 STATIC_FD!$STATIC_FD$ac_delim
42707 STATIC_SD!$STATIC_SD$ac_delim
42708 STATIC_DIR!$STATIC_DIR$ac_delim
42709 STATIC_CONS!$STATIC_CONS$ac_delim
42710 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42711 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42712 ALL_DIRS!$ALL_DIRS$ac_delim
42713 DIRD_DIR!$DIRD_DIR$ac_delim
42714 DIR_TOOLS!$DIR_TOOLS$ac_delim
42715 STORED_DIR!$STORED_DIR$ac_delim
42716 CONS_INC!$CONS_INC$ac_delim
42717 CONS_OBJ!$CONS_OBJ$ac_delim
42718 CONS_SRC!$CONS_SRC$ac_delim
42719 CONS_LIBS!$CONS_LIBS$ac_delim
42720 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42721 READLINE_SRC!$READLINE_SRC$ac_delim
42722 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42723 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42724 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42725 OPENSSL_INC!$OPENSSL_INC$ac_delim
42726 working_dir!$working_dir$ac_delim
42727 archivedir!$archivedir$ac_delim
42728 scriptdir!$scriptdir$ac_delim
42729 plugindir!$plugindir$ac_delim
42730 dump_email!$dump_email$ac_delim
42731 job_email!$job_email$ac_delim
42732 smtp_host!$smtp_host$ac_delim
42733 piddir!$piddir$ac_delim
42734 subsysdir!$subsysdir$ac_delim
42735 baseport!$baseport$ac_delim
42736 dir_port!$dir_port$ac_delim
42737 fd_port!$fd_port$ac_delim
42738 sd_port!$sd_port$ac_delim
42739 dir_password!$dir_password$ac_delim
42740 fd_password!$fd_password$ac_delim
42741 sd_password!$sd_password$ac_delim
42742 mon_dir_password!$mon_dir_password$ac_delim
42743 mon_fd_password!$mon_fd_password$ac_delim
42744 mon_sd_password!$mon_sd_password$ac_delim
42745 db_name!$db_name$ac_delim
42746 db_user!$db_user$ac_delim
42747 db_password!$db_password$ac_delim
42748 db_port!$db_port$ac_delim
42749 dir_user!$dir_user$ac_delim
42750 dir_group!$dir_group$ac_delim
42751 sd_user!$sd_user$ac_delim
42752 sd_group!$sd_group$ac_delim
42753 fd_user!$fd_user$ac_delim
42754 fd_group!$fd_group$ac_delim
42755 SBINPERM!$SBINPERM$ac_delim
42756 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42757 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42758 SQL_BINDIR!$SQL_BINDIR$ac_delim
42759 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42760 uncomment_dbi!$uncomment_dbi$ac_delim
42761 DB_PROG!$DB_PROG$ac_delim
42762 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42763 cats!$cats$ac_delim
42764 DB_TYPE!$DB_TYPE$ac_delim
42765 GETCONF!$GETCONF$ac_delim
42766 XMKMF!$XMKMF$ac_delim
42767 X_CFLAGS!$X_CFLAGS$ac_delim
42768 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42769 X_LIBS!$X_LIBS$ac_delim
42770 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42771 LIBOBJS!$LIBOBJS$ac_delim
42772 FDLIBS!$FDLIBS$ac_delim
42773 DEBUG!$DEBUG$ac_delim
42774 DINCLUDE!$DINCLUDE$ac_delim
42775 DLIB!$DLIB$ac_delim
42776 DB_LIBS!$DB_LIBS$ac_delim
42777 WCFLAGS!$WCFLAGS$ac_delim
42778 WLDFLAGS!$WLDFLAGS$ac_delim
42779 WRAPLIBS!$WRAPLIBS$ac_delim
42780 OBJLIST!$OBJLIST$ac_delim
42781 hostname!$hostname$ac_delim
42782 TAPEDRIVE!$TAPEDRIVE$ac_delim
42783 PSCMD!$PSCMD$ac_delim
42784 WIN32!$WIN32$ac_delim
42785 MACOSX!$MACOSX$ac_delim
42786 DISTNAME!$DISTNAME$ac_delim
42787 DISTVER!$DISTVER$ac_delim
42788 LTLIBOBJS!$LTLIBOBJS$ac_delim
42789 _ACEOF
42790
42791   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42792     break
42793   elif $ac_last_try; then
42794     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42795 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42796    { (exit 1); exit 1; }; }
42797   else
42798     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42799   fi
42800 done
42801
42802 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42803 if test -n "$ac_eof"; then
42804   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42805   ac_eof=`expr $ac_eof + 1`
42806 fi
42807
42808 cat >>$CONFIG_STATUS <<_ACEOF
42809 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42810 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42811 _ACEOF
42812 sed '
42813 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42814 s/^/s,@/; s/!/@,|#_!!_#|/
42815 :n
42816 t n
42817 s/'"$ac_delim"'$/,g/; t
42818 s/$/\\/; p
42819 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42820 ' >>$CONFIG_STATUS <conf$$subs.sed
42821 rm -f conf$$subs.sed
42822 cat >>$CONFIG_STATUS <<_ACEOF
42823 :end
42824 s/|#_!!_#|//g
42825 CEOF$ac_eof
42826 _ACEOF
42827
42828
42829 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42830 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42831 # trailing colons and then remove the whole line if VPATH becomes empty
42832 # (actually we leave an empty line to preserve line numbers).
42833 if test "x$srcdir" = x.; then
42834   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42835 s/:*\$(srcdir):*/:/
42836 s/:*\${srcdir}:*/:/
42837 s/:*@srcdir@:*/:/
42838 s/^\([^=]*=[     ]*\):*/\1/
42839 s/:*$//
42840 s/^[^=]*=[       ]*$//
42841 }'
42842 fi
42843
42844 cat >>$CONFIG_STATUS <<\_ACEOF
42845 fi # test -n "$CONFIG_FILES"
42846
42847
42848 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
42849 do
42850   case $ac_tag in
42851   :[FHLC]) ac_mode=$ac_tag; continue;;
42852   esac
42853   case $ac_mode$ac_tag in
42854   :[FHL]*:*);;
42855   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42856 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42857    { (exit 1); exit 1; }; };;
42858   :[FH]-) ac_tag=-:-;;
42859   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42860   esac
42861   ac_save_IFS=$IFS
42862   IFS=:
42863   set x $ac_tag
42864   IFS=$ac_save_IFS
42865   shift
42866   ac_file=$1
42867   shift
42868
42869   case $ac_mode in
42870   :L) ac_source=$1;;
42871   :[FH])
42872     ac_file_inputs=
42873     for ac_f
42874     do
42875       case $ac_f in
42876       -) ac_f="$tmp/stdin";;
42877       *) # Look for the file first in the build tree, then in the source tree
42878          # (if the path is not absolute).  The absolute path cannot be DOS-style,
42879          # because $ac_f cannot contain `:'.
42880          test -f "$ac_f" ||
42881            case $ac_f in
42882            [\\/$]*) false;;
42883            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42884            esac ||
42885            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42886 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42887    { (exit 1); exit 1; }; };;
42888       esac
42889       ac_file_inputs="$ac_file_inputs $ac_f"
42890     done
42891
42892     # Let's still pretend it is `configure' which instantiates (i.e., don't
42893     # use $as_me), people would be surprised to read:
42894     #    /* config.h.  Generated by config.status.  */
42895     configure_input="Generated from "`IFS=:
42896           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42897     if test x"$ac_file" != x-; then
42898       configure_input="$ac_file.  $configure_input"
42899       { echo "$as_me:$LINENO: creating $ac_file" >&5
42900 echo "$as_me: creating $ac_file" >&6;}
42901     fi
42902
42903     case $ac_tag in
42904     *:-:* | *:-) cat >"$tmp/stdin";;
42905     esac
42906     ;;
42907   esac
42908
42909   ac_dir=`$as_dirname -- "$ac_file" ||
42910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42911          X"$ac_file" : 'X\(//\)[^/]' \| \
42912          X"$ac_file" : 'X\(//\)$' \| \
42913          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42914 echo X"$ac_file" |
42915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42916             s//\1/
42917             q
42918           }
42919           /^X\(\/\/\)[^/].*/{
42920             s//\1/
42921             q
42922           }
42923           /^X\(\/\/\)$/{
42924             s//\1/
42925             q
42926           }
42927           /^X\(\/\).*/{
42928             s//\1/
42929             q
42930           }
42931           s/.*/./; q'`
42932   { as_dir="$ac_dir"
42933   case $as_dir in #(
42934   -*) as_dir=./$as_dir;;
42935   esac
42936   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42937     as_dirs=
42938     while :; do
42939       case $as_dir in #(
42940       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42941       *) as_qdir=$as_dir;;
42942       esac
42943       as_dirs="'$as_qdir' $as_dirs"
42944       as_dir=`$as_dirname -- "$as_dir" ||
42945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42946          X"$as_dir" : 'X\(//\)[^/]' \| \
42947          X"$as_dir" : 'X\(//\)$' \| \
42948          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42949 echo X"$as_dir" |
42950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42951             s//\1/
42952             q
42953           }
42954           /^X\(\/\/\)[^/].*/{
42955             s//\1/
42956             q
42957           }
42958           /^X\(\/\/\)$/{
42959             s//\1/
42960             q
42961           }
42962           /^X\(\/\).*/{
42963             s//\1/
42964             q
42965           }
42966           s/.*/./; q'`
42967       test -d "$as_dir" && break
42968     done
42969     test -z "$as_dirs" || eval "mkdir $as_dirs"
42970   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42971 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42972    { (exit 1); exit 1; }; }; }
42973   ac_builddir=.
42974
42975 case "$ac_dir" in
42976 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42977 *)
42978   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42979   # A ".." for each directory in $ac_dir_suffix.
42980   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42981   case $ac_top_builddir_sub in
42982   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42983   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42984   esac ;;
42985 esac
42986 ac_abs_top_builddir=$ac_pwd
42987 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42988 # for backward compatibility:
42989 ac_top_builddir=$ac_top_build_prefix
42990
42991 case $srcdir in
42992   .)  # We are building in place.
42993     ac_srcdir=.
42994     ac_top_srcdir=$ac_top_builddir_sub
42995     ac_abs_top_srcdir=$ac_pwd ;;
42996   [\\/]* | ?:[\\/]* )  # Absolute name.
42997     ac_srcdir=$srcdir$ac_dir_suffix;
42998     ac_top_srcdir=$srcdir
42999     ac_abs_top_srcdir=$srcdir ;;
43000   *) # Relative name.
43001     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43002     ac_top_srcdir=$ac_top_build_prefix$srcdir
43003     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43004 esac
43005 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43006
43007
43008   case $ac_mode in
43009   :F)
43010   #
43011   # CONFIG_FILE
43012   #
43013
43014   case $INSTALL in
43015   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43016   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43017   esac
43018 _ACEOF
43019
43020 cat >>$CONFIG_STATUS <<\_ACEOF
43021 # If the template does not know about datarootdir, expand it.
43022 # FIXME: This hack should be removed a few years after 2.60.
43023 ac_datarootdir_hack=; ac_datarootdir_seen=
43024
43025 case `sed -n '/datarootdir/ {
43026   p
43027   q
43028 }
43029 /@datadir@/p
43030 /@docdir@/p
43031 /@infodir@/p
43032 /@localedir@/p
43033 /@mandir@/p
43034 ' $ac_file_inputs` in
43035 *datarootdir*) ac_datarootdir_seen=yes;;
43036 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43037   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43038 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43039 _ACEOF
43040 cat >>$CONFIG_STATUS <<_ACEOF
43041   ac_datarootdir_hack='
43042   s&@datadir@&$datadir&g
43043   s&@docdir@&$docdir&g
43044   s&@infodir@&$infodir&g
43045   s&@localedir@&$localedir&g
43046   s&@mandir@&$mandir&g
43047     s&\\\${datarootdir}&$datarootdir&g' ;;
43048 esac
43049 _ACEOF
43050
43051 # Neutralize VPATH when `$srcdir' = `.'.
43052 # Shell code in configure.ac might set extrasub.
43053 # FIXME: do we really want to maintain this feature?
43054 cat >>$CONFIG_STATUS <<_ACEOF
43055   sed "$ac_vpsub
43056 $extrasub
43057 _ACEOF
43058 cat >>$CONFIG_STATUS <<\_ACEOF
43059 :t
43060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43061 s&@configure_input@&$configure_input&;t t
43062 s&@top_builddir@&$ac_top_builddir_sub&;t t
43063 s&@srcdir@&$ac_srcdir&;t t
43064 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43065 s&@top_srcdir@&$ac_top_srcdir&;t t
43066 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43067 s&@builddir@&$ac_builddir&;t t
43068 s&@abs_builddir@&$ac_abs_builddir&;t t
43069 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43070 s&@INSTALL@&$ac_INSTALL&;t t
43071 $ac_datarootdir_hack
43072 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
43073
43074 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43075   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43076   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43077   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43078 which seems to be undefined.  Please make sure it is defined." >&5
43079 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43080 which seems to be undefined.  Please make sure it is defined." >&2;}
43081
43082   rm -f "$tmp/stdin"
43083   case $ac_file in
43084   -) cat "$tmp/out"; rm -f "$tmp/out";;
43085   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43086   esac
43087  ;;
43088   :H)
43089   #
43090   # CONFIG_HEADER
43091   #
43092 _ACEOF
43093
43094 # Transform confdefs.h into a sed script `conftest.defines', that
43095 # substitutes the proper values into config.h.in to produce config.h.
43096 rm -f conftest.defines conftest.tail
43097 # First, append a space to every undef/define line, to ease matching.
43098 echo 's/$/ /' >conftest.defines
43099 # Then, protect against being on the right side of a sed subst, or in
43100 # an unquoted here document, in config.status.  If some macros were
43101 # called several times there might be several #defines for the same
43102 # symbol, which is useless.  But do not sort them, since the last
43103 # AC_DEFINE must be honored.
43104 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43105 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43106 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43107 # PARAMS is the parameter list in the macro definition--in most cases, it's
43108 # just an empty string.
43109 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
43110 ac_dB='\\)[      (].*,\\1define\\2'
43111 ac_dC=' '
43112 ac_dD=' ,'
43113
43114 uniq confdefs.h |
43115   sed -n '
43116         t rset
43117         :rset
43118         s/^[     ]*#[    ]*define[       ][      ]*//
43119         t ok
43120         d
43121         :ok
43122         s/[\\&,]/\\&/g
43123         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43124         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43125   ' >>conftest.defines
43126
43127 # Remove the space that was appended to ease matching.
43128 # Then replace #undef with comments.  This is necessary, for
43129 # example, in the case of _POSIX_SOURCE, which is predefined and required
43130 # on some systems where configure will not decide to define it.
43131 # (The regexp can be short, since the line contains either #define or #undef.)
43132 echo 's/ $//
43133 s,^[     #]*u.*,/* & */,' >>conftest.defines
43134
43135 # Break up conftest.defines:
43136 ac_max_sed_lines=50
43137
43138 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43139 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43140 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43141 # et cetera.
43142 ac_in='$ac_file_inputs'
43143 ac_out='"$tmp/out1"'
43144 ac_nxt='"$tmp/out2"'
43145
43146 while :
43147 do
43148   # Write a here document:
43149     cat >>$CONFIG_STATUS <<_ACEOF
43150     # First, check the format of the line:
43151     cat >"\$tmp/defines.sed" <<\\CEOF
43152 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
43153 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
43154 b
43155 :def
43156 _ACEOF
43157   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43158   echo 'CEOF
43159     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43160   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43161   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43162   grep . conftest.tail >/dev/null || break
43163   rm -f conftest.defines
43164   mv conftest.tail conftest.defines
43165 done
43166 rm -f conftest.defines conftest.tail
43167
43168 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43169 cat >>$CONFIG_STATUS <<\_ACEOF
43170   if test x"$ac_file" != x-; then
43171     echo "/* $configure_input  */" >"$tmp/config.h"
43172     cat "$ac_result" >>"$tmp/config.h"
43173     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43174       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43175 echo "$as_me: $ac_file is unchanged" >&6;}
43176     else
43177       rm -f $ac_file
43178       mv "$tmp/config.h" $ac_file
43179     fi
43180   else
43181     echo "/* $configure_input  */"
43182     cat "$ac_result"
43183   fi
43184   rm -f "$tmp/out12"
43185  ;;
43186
43187   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43188 echo "$as_me: executing $ac_file commands" >&6;}
43189  ;;
43190   esac
43191
43192
43193   case $ac_file$ac_mode in
43194     "libtool":C)
43195
43196     # See if we are running on zsh, and set the options which allow our
43197     # commands through without removal of \ escapes.
43198     if test -n "${ZSH_VERSION+set}" ; then
43199       setopt NO_GLOB_SUBST
43200     fi
43201
43202     cfgfile="${ofile}T"
43203     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43204     $RM "$cfgfile"
43205
43206     cat <<_LT_EOF >> "$cfgfile"
43207 #! $SHELL
43208
43209 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43210 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43212 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43213 #
43214 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43215 #                 2006, 2007, 2008 Free Software Foundation, Inc.
43216 #   Written by Gordon Matzigkeit, 1996
43217 #
43218 #   This file is part of GNU Libtool.
43219 #
43220 # GNU Libtool is free software; you can redistribute it and/or
43221 # modify it under the terms of the GNU General Public License as
43222 # published by the Free Software Foundation; either version 2 of
43223 # the License, or (at your option) any later version.
43224 #
43225 # As a special exception to the GNU General Public License,
43226 # if you distribute this file as part of a program or library that
43227 # is built using GNU Libtool, you may include this file under the
43228 # same distribution terms that you use for the rest of that program.
43229 #
43230 # GNU Libtool is distributed in the hope that it will be useful,
43231 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43232 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43233 # GNU General Public License for more details.
43234 #
43235 # You should have received a copy of the GNU General Public License
43236 # along with GNU Libtool; see the file COPYING.  If not, a copy
43237 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43238 # obtained by writing to the Free Software Foundation, Inc.,
43239 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43240
43241
43242 # The names of the tagged configurations supported by this script.
43243 available_tags="CXX "
43244
43245 # ### BEGIN LIBTOOL CONFIG
43246
43247 # Which release of libtool.m4 was used?
43248 macro_version=$macro_version
43249 macro_revision=$macro_revision
43250
43251 # Whether or not to build shared libraries.
43252 build_libtool_libs=$enable_shared
43253
43254 # Whether or not to build static libraries.
43255 build_old_libs=$enable_static
43256
43257 # What type of objects to build.
43258 pic_mode=$pic_mode
43259
43260 # Whether or not to optimize for fast installation.
43261 fast_install=$enable_fast_install
43262
43263 # The host system.
43264 host_alias=$host_alias
43265 host=$host
43266 host_os=$host_os
43267
43268 # The build system.
43269 build_alias=$build_alias
43270 build=$build
43271 build_os=$build_os
43272
43273 # A sed program that does not truncate output.
43274 SED=$lt_SED
43275
43276 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43277 Xsed="\$SED -e 1s/^X//"
43278
43279 # A grep program that handles long lines.
43280 GREP=$lt_GREP
43281
43282 # An ERE matcher.
43283 EGREP=$lt_EGREP
43284
43285 # A literal string matcher.
43286 FGREP=$lt_FGREP
43287
43288 # A BSD- or MS-compatible name lister.
43289 NM=$lt_NM
43290
43291 # Whether we need soft or hard links.
43292 LN_S=$lt_LN_S
43293
43294 # What is the maximum length of a command?
43295 max_cmd_len=$max_cmd_len
43296
43297 # Object file suffix (normally "o").
43298 objext=$ac_objext
43299
43300 # Executable file suffix (normally "").
43301 exeext=$exeext
43302
43303 # whether the shell understands "unset".
43304 lt_unset=$lt_unset
43305
43306 # turn spaces into newlines.
43307 SP2NL=$lt_lt_SP2NL
43308
43309 # turn newlines into spaces.
43310 NL2SP=$lt_lt_NL2SP
43311
43312 # How to create reloadable object files.
43313 reload_flag=$lt_reload_flag
43314 reload_cmds=$lt_reload_cmds
43315
43316 # An object symbol dumper.
43317 OBJDUMP=$lt_OBJDUMP
43318
43319 # Method to check whether dependent libraries are shared objects.
43320 deplibs_check_method=$lt_deplibs_check_method
43321
43322 # Command to use when deplibs_check_method == "file_magic".
43323 file_magic_cmd=$lt_file_magic_cmd
43324
43325 # The archiver.
43326 AR=$lt_AR
43327 AR_FLAGS=$lt_AR_FLAGS
43328
43329 # A symbol stripping program.
43330 STRIP=$lt_STRIP
43331
43332 # Commands used to install an old-style archive.
43333 RANLIB=$lt_RANLIB
43334 old_postinstall_cmds=$lt_old_postinstall_cmds
43335 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43336
43337 # A C compiler.
43338 LTCC=$lt_CC
43339
43340 # LTCC compiler flags.
43341 LTCFLAGS=$lt_CFLAGS
43342
43343 # Take the output of nm and produce a listing of raw symbols and C names.
43344 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43345
43346 # Transform the output of nm in a proper C declaration.
43347 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43348
43349 # Transform the output of nm in a C name address pair.
43350 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43351
43352 # Transform the output of nm in a C name address pair when lib prefix is needed.
43353 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43354
43355 # The name of the directory that contains temporary libtool files.
43356 objdir=$objdir
43357
43358 # Shell to use when invoking shell scripts.
43359 SHELL=$lt_SHELL
43360
43361 # An echo program that does not interpret backslashes.
43362 ECHO=$lt_ECHO
43363
43364 # Used to examine libraries when file_magic_cmd begins with "file".
43365 MAGIC_CMD=$MAGIC_CMD
43366
43367 # Must we lock files when doing compilation?
43368 need_locks=$lt_need_locks
43369
43370 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43371 DSYMUTIL=$lt_DSYMUTIL
43372
43373 # Tool to change global to local symbols on Mac OS X.
43374 NMEDIT=$lt_NMEDIT
43375
43376 # Tool to manipulate fat objects and archives on Mac OS X.
43377 LIPO=$lt_LIPO
43378
43379 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43380 OTOOL=$lt_OTOOL
43381
43382 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43383 OTOOL64=$lt_OTOOL64
43384
43385 # Old archive suffix (normally "a").
43386 libext=$libext
43387
43388 # Shared library suffix (normally ".so").
43389 shrext_cmds=$lt_shrext_cmds
43390
43391 # The commands to extract the exported symbol list from a shared archive.
43392 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43393
43394 # Variables whose values should be saved in libtool wrapper scripts and
43395 # restored at link time.
43396 variables_saved_for_relink=$lt_variables_saved_for_relink
43397
43398 # Do we need the "lib" prefix for modules?
43399 need_lib_prefix=$need_lib_prefix
43400
43401 # Do we need a version for libraries?
43402 need_version=$need_version
43403
43404 # Library versioning type.
43405 version_type=$version_type
43406
43407 # Shared library runtime path variable.
43408 runpath_var=$runpath_var
43409
43410 # Shared library path variable.
43411 shlibpath_var=$shlibpath_var
43412
43413 # Is shlibpath searched before the hard-coded library search path?
43414 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43415
43416 # Format of library name prefix.
43417 libname_spec=$lt_libname_spec
43418
43419 # List of archive names.  First name is the real one, the rest are links.
43420 # The last name is the one that the linker finds with -lNAME
43421 library_names_spec=$lt_library_names_spec
43422
43423 # The coded name of the library, if different from the real name.
43424 soname_spec=$lt_soname_spec
43425
43426 # Command to use after installation of a shared archive.
43427 postinstall_cmds=$lt_postinstall_cmds
43428
43429 # Command to use after uninstallation of a shared archive.
43430 postuninstall_cmds=$lt_postuninstall_cmds
43431
43432 # Commands used to finish a libtool library installation in a directory.
43433 finish_cmds=$lt_finish_cmds
43434
43435 # As "finish_cmds", except a single script fragment to be evaled but
43436 # not shown.
43437 finish_eval=$lt_finish_eval
43438
43439 # Whether we should hardcode library paths into libraries.
43440 hardcode_into_libs=$hardcode_into_libs
43441
43442 # Compile-time system search path for libraries.
43443 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43444
43445 # Run-time system search path for libraries.
43446 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43447
43448 # Whether dlopen is supported.
43449 dlopen_support=$enable_dlopen
43450
43451 # Whether dlopen of programs is supported.
43452 dlopen_self=$enable_dlopen_self
43453
43454 # Whether dlopen of statically linked programs is supported.
43455 dlopen_self_static=$enable_dlopen_self_static
43456
43457 # Commands to strip libraries.
43458 old_striplib=$lt_old_striplib
43459 striplib=$lt_striplib
43460
43461
43462 # The linker used to build libraries.
43463 LD=$lt_LD
43464
43465 # Commands used to build an old-style archive.
43466 old_archive_cmds=$lt_old_archive_cmds
43467
43468 # A language specific compiler.
43469 CC=$lt_compiler
43470
43471 # Is the compiler the GNU compiler?
43472 with_gcc=$GCC
43473
43474 # Compiler flag to turn off builtin functions.
43475 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43476
43477 # How to pass a linker flag through the compiler.
43478 wl=$lt_lt_prog_compiler_wl
43479
43480 # Additional compiler flags for building library objects.
43481 pic_flag=$lt_lt_prog_compiler_pic
43482
43483 # Compiler flag to prevent dynamic linking.
43484 link_static_flag=$lt_lt_prog_compiler_static
43485
43486 # Does compiler simultaneously support -c and -o options?
43487 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43488
43489 # Whether or not to add -lc for building shared libraries.
43490 build_libtool_need_lc=$archive_cmds_need_lc
43491
43492 # Whether or not to disallow shared libs when runtime libs are static.
43493 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43494
43495 # Compiler flag to allow reflexive dlopens.
43496 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43497
43498 # Compiler flag to generate shared objects directly from archives.
43499 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43500
43501 # Whether the compiler copes with passing no objects directly.
43502 compiler_needs_object=$lt_compiler_needs_object
43503
43504 # Create an old-style archive from a shared archive.
43505 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43506
43507 # Create a temporary old-style archive to link instead of a shared archive.
43508 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43509
43510 # Commands used to build a shared archive.
43511 archive_cmds=$lt_archive_cmds
43512 archive_expsym_cmds=$lt_archive_expsym_cmds
43513
43514 # Commands used to build a loadable module if different from building
43515 # a shared archive.
43516 module_cmds=$lt_module_cmds
43517 module_expsym_cmds=$lt_module_expsym_cmds
43518
43519 # Whether we are building with GNU ld or not.
43520 with_gnu_ld=$lt_with_gnu_ld
43521
43522 # Flag that allows shared libraries with undefined symbols to be built.
43523 allow_undefined_flag=$lt_allow_undefined_flag
43524
43525 # Flag that enforces no undefined symbols.
43526 no_undefined_flag=$lt_no_undefined_flag
43527
43528 # Flag to hardcode \$libdir into a binary during linking.
43529 # This must work even if \$libdir does not exist
43530 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43531
43532 # If ld is used when linking, flag to hardcode \$libdir into a binary
43533 # during linking.  This must work even if \$libdir does not exist.
43534 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43535
43536 # Whether we need a single "-rpath" flag with a separated argument.
43537 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43538
43539 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43540 # DIR into the resulting binary.
43541 hardcode_direct=$hardcode_direct
43542
43543 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43544 # DIR into the resulting binary and the resulting library dependency is
43545 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43546 # library is relocated.
43547 hardcode_direct_absolute=$hardcode_direct_absolute
43548
43549 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43550 # into the resulting binary.
43551 hardcode_minus_L=$hardcode_minus_L
43552
43553 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43554 # into the resulting binary.
43555 hardcode_shlibpath_var=$hardcode_shlibpath_var
43556
43557 # Set to "yes" if building a shared library automatically hardcodes DIR
43558 # into the library and all subsequent libraries and executables linked
43559 # against it.
43560 hardcode_automatic=$hardcode_automatic
43561
43562 # Set to yes if linker adds runtime paths of dependent libraries
43563 # to runtime path list.
43564 inherit_rpath=$inherit_rpath
43565
43566 # Whether libtool must link a program against all its dependency libraries.
43567 link_all_deplibs=$link_all_deplibs
43568
43569 # Fix the shell variable \$srcfile for the compiler.
43570 fix_srcfile_path=$lt_fix_srcfile_path
43571
43572 # Set to "yes" if exported symbols are required.
43573 always_export_symbols=$always_export_symbols
43574
43575 # The commands to list exported symbols.
43576 export_symbols_cmds=$lt_export_symbols_cmds
43577
43578 # Symbols that should not be listed in the preloaded symbols.
43579 exclude_expsyms=$lt_exclude_expsyms
43580
43581 # Symbols that must always be exported.
43582 include_expsyms=$lt_include_expsyms
43583
43584 # Commands necessary for linking programs (against libraries) with templates.
43585 prelink_cmds=$lt_prelink_cmds
43586
43587 # Specify filename containing input files.
43588 file_list_spec=$lt_file_list_spec
43589
43590 # How to hardcode a shared library path into an executable.
43591 hardcode_action=$hardcode_action
43592
43593 # The directories searched by this compiler when creating a shared library.
43594 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43595
43596 # Dependencies to place before and after the objects being linked to
43597 # create a shared library.
43598 predep_objects=$lt_predep_objects
43599 postdep_objects=$lt_postdep_objects
43600 predeps=$lt_predeps
43601 postdeps=$lt_postdeps
43602
43603 # The library search path used internally by the compiler when linking
43604 # a shared library.
43605 compiler_lib_search_path=$lt_compiler_lib_search_path
43606
43607 # ### END LIBTOOL CONFIG
43608
43609 _LT_EOF
43610
43611   case $host_os in
43612   aix3*)
43613     cat <<\_LT_EOF >> "$cfgfile"
43614 # AIX sometimes has problems with the GCC collect2 program.  For some
43615 # reason, if we set the COLLECT_NAMES environment variable, the problems
43616 # vanish in a puff of smoke.
43617 if test "X${COLLECT_NAMES+set}" != Xset; then
43618   COLLECT_NAMES=
43619   export COLLECT_NAMES
43620 fi
43621 _LT_EOF
43622     ;;
43623   esac
43624
43625
43626 ltmain="$ac_aux_dir/ltmain.sh"
43627
43628
43629   # We use sed instead of cat because bash on DJGPP gets confused if
43630   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43631   # text mode, it properly converts lines to CR/LF.  This bash problem
43632   # is reportedly fixed, but why not run on old versions too?
43633   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43634     || (rm -f "$cfgfile"; exit 1)
43635
43636   case $xsi_shell in
43637   yes)
43638     cat << \_LT_EOF >> "$cfgfile"
43639
43640 # func_dirname file append nondir_replacement
43641 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43642 # otherwise set result to NONDIR_REPLACEMENT.
43643 func_dirname ()
43644 {
43645   case ${1} in
43646     */*) func_dirname_result="${1%/*}${2}" ;;
43647     *  ) func_dirname_result="${3}" ;;
43648   esac
43649 }
43650
43651 # func_basename file
43652 func_basename ()
43653 {
43654   func_basename_result="${1##*/}"
43655 }
43656
43657 # func_dirname_and_basename file append nondir_replacement
43658 # perform func_basename and func_dirname in a single function
43659 # call:
43660 #   dirname:  Compute the dirname of FILE.  If nonempty,
43661 #             add APPEND to the result, otherwise set result
43662 #             to NONDIR_REPLACEMENT.
43663 #             value returned in "$func_dirname_result"
43664 #   basename: Compute filename of FILE.
43665 #             value retuned in "$func_basename_result"
43666 # Implementation must be kept synchronized with func_dirname
43667 # and func_basename. For efficiency, we do not delegate to
43668 # those functions but instead duplicate the functionality here.
43669 func_dirname_and_basename ()
43670 {
43671   case ${1} in
43672     */*) func_dirname_result="${1%/*}${2}" ;;
43673     *  ) func_dirname_result="${3}" ;;
43674   esac
43675   func_basename_result="${1##*/}"
43676 }
43677
43678 # func_stripname prefix suffix name
43679 # strip PREFIX and SUFFIX off of NAME.
43680 # PREFIX and SUFFIX must not contain globbing or regex special
43681 # characters, hashes, percent signs, but SUFFIX may contain a leading
43682 # dot (in which case that matches only a dot).
43683 func_stripname ()
43684 {
43685   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43686   # positional parameters, so assign one to ordinary parameter first.
43687   func_stripname_result=${3}
43688   func_stripname_result=${func_stripname_result#"${1}"}
43689   func_stripname_result=${func_stripname_result%"${2}"}
43690 }
43691
43692 # func_opt_split
43693 func_opt_split ()
43694 {
43695   func_opt_split_opt=${1%%=*}
43696   func_opt_split_arg=${1#*=}
43697 }
43698
43699 # func_lo2o object
43700 func_lo2o ()
43701 {
43702   case ${1} in
43703     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43704     *)    func_lo2o_result=${1} ;;
43705   esac
43706 }
43707
43708 # func_xform libobj-or-source
43709 func_xform ()
43710 {
43711   func_xform_result=${1%.*}.lo
43712 }
43713
43714 # func_arith arithmetic-term...
43715 func_arith ()
43716 {
43717   func_arith_result=$(( $* ))
43718 }
43719
43720 # func_len string
43721 # STRING may not start with a hyphen.
43722 func_len ()
43723 {
43724   func_len_result=${#1}
43725 }
43726
43727 _LT_EOF
43728     ;;
43729   *) # Bourne compatible functions.
43730     cat << \_LT_EOF >> "$cfgfile"
43731
43732 # func_dirname file append nondir_replacement
43733 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
43734 # otherwise set result to NONDIR_REPLACEMENT.
43735 func_dirname ()
43736 {
43737   # Extract subdirectory from the argument.
43738   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43739   if test "X$func_dirname_result" = "X${1}"; then
43740     func_dirname_result="${3}"
43741   else
43742     func_dirname_result="$func_dirname_result${2}"
43743   fi
43744 }
43745
43746 # func_basename file
43747 func_basename ()
43748 {
43749   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43750 }
43751
43752
43753 # func_stripname prefix suffix name
43754 # strip PREFIX and SUFFIX off of NAME.
43755 # PREFIX and SUFFIX must not contain globbing or regex special
43756 # characters, hashes, percent signs, but SUFFIX may contain a leading
43757 # dot (in which case that matches only a dot).
43758 # func_strip_suffix prefix name
43759 func_stripname ()
43760 {
43761   case ${2} in
43762     .*) func_stripname_result=`$ECHO "X${3}" \
43763            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43764     *)  func_stripname_result=`$ECHO "X${3}" \
43765            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43766   esac
43767 }
43768
43769 # sed scripts:
43770 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43771 my_sed_long_arg='1s/^-[^=]*=//'
43772
43773 # func_opt_split
43774 func_opt_split ()
43775 {
43776   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43777   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43778 }
43779
43780 # func_lo2o object
43781 func_lo2o ()
43782 {
43783   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43784 }
43785
43786 # func_xform libobj-or-source
43787 func_xform ()
43788 {
43789   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43790 }
43791
43792 # func_arith arithmetic-term...
43793 func_arith ()
43794 {
43795   func_arith_result=`expr "$@"`
43796 }
43797
43798 # func_len string
43799 # STRING may not start with a hyphen.
43800 func_len ()
43801 {
43802   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43803 }
43804
43805 _LT_EOF
43806 esac
43807
43808 case $lt_shell_append in
43809   yes)
43810     cat << \_LT_EOF >> "$cfgfile"
43811
43812 # func_append var value
43813 # Append VALUE to the end of shell variable VAR.
43814 func_append ()
43815 {
43816   eval "$1+=\$2"
43817 }
43818 _LT_EOF
43819     ;;
43820   *)
43821     cat << \_LT_EOF >> "$cfgfile"
43822
43823 # func_append var value
43824 # Append VALUE to the end of shell variable VAR.
43825 func_append ()
43826 {
43827   eval "$1=\$$1\$2"
43828 }
43829
43830 _LT_EOF
43831     ;;
43832   esac
43833
43834
43835   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43836     || (rm -f "$cfgfile"; exit 1)
43837
43838   mv -f "$cfgfile" "$ofile" ||
43839     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43840   chmod +x "$ofile"
43841
43842
43843     cat <<_LT_EOF >> "$ofile"
43844
43845 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43846
43847 # The linker used to build libraries.
43848 LD=$lt_LD_CXX
43849
43850 # Commands used to build an old-style archive.
43851 old_archive_cmds=$lt_old_archive_cmds_CXX
43852
43853 # A language specific compiler.
43854 CC=$lt_compiler_CXX
43855
43856 # Is the compiler the GNU compiler?
43857 with_gcc=$GCC_CXX
43858
43859 # Compiler flag to turn off builtin functions.
43860 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43861
43862 # How to pass a linker flag through the compiler.
43863 wl=$lt_lt_prog_compiler_wl_CXX
43864
43865 # Additional compiler flags for building library objects.
43866 pic_flag=$lt_lt_prog_compiler_pic_CXX
43867
43868 # Compiler flag to prevent dynamic linking.
43869 link_static_flag=$lt_lt_prog_compiler_static_CXX
43870
43871 # Does compiler simultaneously support -c and -o options?
43872 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43873
43874 # Whether or not to add -lc for building shared libraries.
43875 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43876
43877 # Whether or not to disallow shared libs when runtime libs are static.
43878 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43879
43880 # Compiler flag to allow reflexive dlopens.
43881 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43882
43883 # Compiler flag to generate shared objects directly from archives.
43884 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43885
43886 # Whether the compiler copes with passing no objects directly.
43887 compiler_needs_object=$lt_compiler_needs_object_CXX
43888
43889 # Create an old-style archive from a shared archive.
43890 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43891
43892 # Create a temporary old-style archive to link instead of a shared archive.
43893 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43894
43895 # Commands used to build a shared archive.
43896 archive_cmds=$lt_archive_cmds_CXX
43897 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43898
43899 # Commands used to build a loadable module if different from building
43900 # a shared archive.
43901 module_cmds=$lt_module_cmds_CXX
43902 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43903
43904 # Whether we are building with GNU ld or not.
43905 with_gnu_ld=$lt_with_gnu_ld_CXX
43906
43907 # Flag that allows shared libraries with undefined symbols to be built.
43908 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43909
43910 # Flag that enforces no undefined symbols.
43911 no_undefined_flag=$lt_no_undefined_flag_CXX
43912
43913 # Flag to hardcode \$libdir into a binary during linking.
43914 # This must work even if \$libdir does not exist
43915 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43916
43917 # If ld is used when linking, flag to hardcode \$libdir into a binary
43918 # during linking.  This must work even if \$libdir does not exist.
43919 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43920
43921 # Whether we need a single "-rpath" flag with a separated argument.
43922 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43923
43924 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43925 # DIR into the resulting binary.
43926 hardcode_direct=$hardcode_direct_CXX
43927
43928 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43929 # DIR into the resulting binary and the resulting library dependency is
43930 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43931 # library is relocated.
43932 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43933
43934 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43935 # into the resulting binary.
43936 hardcode_minus_L=$hardcode_minus_L_CXX
43937
43938 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43939 # into the resulting binary.
43940 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43941
43942 # Set to "yes" if building a shared library automatically hardcodes DIR
43943 # into the library and all subsequent libraries and executables linked
43944 # against it.
43945 hardcode_automatic=$hardcode_automatic_CXX
43946
43947 # Set to yes if linker adds runtime paths of dependent libraries
43948 # to runtime path list.
43949 inherit_rpath=$inherit_rpath_CXX
43950
43951 # Whether libtool must link a program against all its dependency libraries.
43952 link_all_deplibs=$link_all_deplibs_CXX
43953
43954 # Fix the shell variable \$srcfile for the compiler.
43955 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43956
43957 # Set to "yes" if exported symbols are required.
43958 always_export_symbols=$always_export_symbols_CXX
43959
43960 # The commands to list exported symbols.
43961 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43962
43963 # Symbols that should not be listed in the preloaded symbols.
43964 exclude_expsyms=$lt_exclude_expsyms_CXX
43965
43966 # Symbols that must always be exported.
43967 include_expsyms=$lt_include_expsyms_CXX
43968
43969 # Commands necessary for linking programs (against libraries) with templates.
43970 prelink_cmds=$lt_prelink_cmds_CXX
43971
43972 # Specify filename containing input files.
43973 file_list_spec=$lt_file_list_spec_CXX
43974
43975 # How to hardcode a shared library path into an executable.
43976 hardcode_action=$hardcode_action_CXX
43977
43978 # The directories searched by this compiler when creating a shared library.
43979 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43980
43981 # Dependencies to place before and after the objects being linked to
43982 # create a shared library.
43983 predep_objects=$lt_predep_objects_CXX
43984 postdep_objects=$lt_postdep_objects_CXX
43985 predeps=$lt_predeps_CXX
43986 postdeps=$lt_postdeps_CXX
43987
43988 # The library search path used internally by the compiler when linking
43989 # a shared library.
43990 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43991
43992 # ### END LIBTOOL TAG CONFIG: CXX
43993 _LT_EOF
43994
43995  ;;
43996     "default-1":C)
43997     for ac_file in $CONFIG_FILES; do
43998       # Support "outfile[:infile[:infile...]]"
43999       case "$ac_file" in
44000         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44001       esac
44002       # PO directories have a Makefile.in generated from Makefile.in.in.
44003       case "$ac_file" in */Makefile.in)
44004         # Adjust a relative srcdir.
44005         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44006         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44007         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44008         # In autoconf-2.13 it is called $ac_given_srcdir.
44009         # In autoconf-2.50 it is called $srcdir.
44010         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44011         case "$ac_given_srcdir" in
44012           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44013           /*) top_srcdir="$ac_given_srcdir" ;;
44014           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
44015         esac
44016         # Treat a directory as a PO directory if and only if it has a
44017         # POTFILES.in file. This allows packages to have multiple PO
44018         # directories under different names or in different locations.
44019         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44020           rm -f "$ac_dir/POTFILES"
44021           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44022           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44023           POMAKEFILEDEPS="POTFILES.in"
44024           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44025           # on $ac_dir but don't depend on user-specified configuration
44026           # parameters.
44027           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44028             # The LINGUAS file contains the set of available languages.
44029             if test -n "$OBSOLETE_ALL_LINGUAS"; then
44030               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44031             fi
44032             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44033             # Hide the ALL_LINGUAS assigment from automake.
44034             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44035             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44036           else
44037             # The set of available languages was given in configure.in.
44038             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44039           fi
44040           # Compute POFILES
44041           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44042           # Compute UPDATEPOFILES
44043           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44044           # Compute DUMMYPOFILES
44045           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44046           # Compute GMOFILES
44047           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44048           case "$ac_given_srcdir" in
44049             .) srcdirpre= ;;
44050             *) srcdirpre='$(srcdir)/' ;;
44051           esac
44052           POFILES=
44053           UPDATEPOFILES=
44054           DUMMYPOFILES=
44055           GMOFILES=
44056           for lang in $ALL_LINGUAS; do
44057             POFILES="$POFILES $srcdirpre$lang.po"
44058             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44059             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44060             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44061           done
44062           # CATALOGS depends on both $ac_dir and the user's LINGUAS
44063           # environment variable.
44064           INST_LINGUAS=
44065           if test -n "$ALL_LINGUAS"; then
44066             for presentlang in $ALL_LINGUAS; do
44067               useit=no
44068               if test "%UNSET%" != "$LINGUAS"; then
44069                 desiredlanguages="$LINGUAS"
44070               else
44071                 desiredlanguages="$ALL_LINGUAS"
44072               fi
44073               for desiredlang in $desiredlanguages; do
44074                 # Use the presentlang catalog if desiredlang is
44075                 #   a. equal to presentlang, or
44076                 #   b. a variant of presentlang (because in this case,
44077                 #      presentlang can be used as a fallback for messages
44078                 #      which are not translated in the desiredlang catalog).
44079                 case "$desiredlang" in
44080                   "$presentlang"*) useit=yes;;
44081                 esac
44082               done
44083               if test $useit = yes; then
44084                 INST_LINGUAS="$INST_LINGUAS $presentlang"
44085               fi
44086             done
44087           fi
44088           CATALOGS=
44089           if test -n "$INST_LINGUAS"; then
44090             for lang in $INST_LINGUAS; do
44091               CATALOGS="$CATALOGS $lang.gmo"
44092             done
44093           fi
44094           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44095           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"
44096           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44097             if test -f "$f"; then
44098               case "$f" in
44099                 *.orig | *.bak | *~) ;;
44100                 *) cat "$f" >> "$ac_dir/Makefile" ;;
44101               esac
44102             fi
44103           done
44104         fi
44105         ;;
44106       esac
44107     done ;;
44108     "default":C)
44109  ;;
44110
44111   esac
44112 done # for ac_tag
44113
44114
44115 { (exit 0); exit 0; }
44116 _ACEOF
44117 chmod +x $CONFIG_STATUS
44118 ac_clean_files=$ac_clean_files_save
44119
44120
44121 # configure is writing to config.log, and then calls config.status.
44122 # config.status does its own redirection, appending to config.log.
44123 # Unfortunately, on DOS this fails, as config.log is still kept open
44124 # by configure, so config.status won't be able to write to it; its
44125 # output is simply discarded.  So we exec the FD to /dev/null,
44126 # effectively closing config.log, so it can be properly (re)opened and
44127 # appended to by config.status.  When coming back to configure, we
44128 # need to make the FD available again.
44129 if test "$no_create" != yes; then
44130   ac_cs_success=:
44131   ac_config_status_args=
44132   test "$silent" = yes &&
44133     ac_config_status_args="$ac_config_status_args --quiet"
44134   exec 5>/dev/null
44135   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44136   exec 5>>config.log
44137   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44138   # would make configure fail if this is the last instruction.
44139   $ac_cs_success || { (exit 1); exit 1; }
44140 fi
44141
44142
44143 if test "${support_bat}" = "yes" ; then
44144    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44145       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44146       exit 1
44147    fi
44148
44149    QMAKEBIN="qmake"
44150
44151    if test "x$QMAKEQT4" != "xnone"; then
44152        QMAKEBIN=qmake-qt4
44153    fi
44154
44155    cd src/qt-console
44156    chmod 755 install_conf_file build-depkgs-qt-console
44157    echo "Creating bat Makefile"
44158    $QMAKEBIN
44159    make clean
44160    cd ${BUILD_DIR}
44161 fi
44162
44163 if test X"$GCC" = "Xyes" ; then
44164   echo "Doing make of dependencies"
44165   ${MAKE:-make} depend
44166 fi
44167
44168 cd scripts
44169 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44170 chmod 755 dvd-handler dvd-simulator
44171 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44172 cd ..
44173
44174 c=updatedb
44175 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
44176 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
44177
44178 c=src/cats
44179
44180 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
44181 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
44182
44183 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
44184 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
44185
44186 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
44187 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
44188
44189 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
44190 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
44191
44192 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
44193 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
44194
44195 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
44196 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
44197
44198 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44199 chmod 755 $c/sqlite
44200 chmod 755 $c/mysql
44201
44202 chmod 755 src/win32/build-depkgs-mingw32
44203
44204 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44205    largefile_support="yes"
44206 fi
44207
44208 if test X"$GCC" = "Xyes" ; then
44209                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44210    if test "x${CCVERSION}" = "x" ; then
44211       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44212    fi
44213    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44214    if test x"${CXXVERSION}" = x ; then
44215       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44216    fi
44217 fi
44218
44219 # clean up any old junk
44220 echo " "
44221 echo "Cleaning up"
44222 echo " "
44223 make clean
44224
44225 if test "x${db_type}" = "xInternal" ; then
44226    echo " "
44227    echo " "
44228    echo "You have not specified either --enable-client-only or one of the"
44229    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44230    echo "  This is not permitted. Please reconfigure."
44231    echo " "
44232    echo "Aborting the configuration ..."
44233    echo " "
44234    echo " "
44235    exit 1
44236 fi
44237
44238 echo "
44239 Configuration on `date`:
44240
44241    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44242    Bacula version:          ${BACULA} ${VERSION} (${DATE})
44243    Source code location:    ${srcdir}
44244    Install binaries:        ${sbindir}
44245    Install libraries:       ${libdir}
44246    Install config files:    ${sysconfdir}
44247    Scripts directory:       ${scriptdir}
44248    Archive directory:       ${archivedir}
44249    Working directory:       ${working_dir}
44250    PID directory:           ${piddir}
44251    Subsys directory:        ${subsysdir}
44252    Man directory:           ${mandir}
44253    Data directory:          ${datarootdir}
44254    C Compiler:              ${CC} ${CCVERSION}
44255    C++ Compiler:            ${CXX} ${CXXVERSION}
44256    Compiler flags:          ${WCFLAGS} ${CFLAGS}
44257    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
44258    Libraries:               ${LIBS}
44259    Statically Linked Tools: ${support_static_tools}
44260    Statically Linked FD:    ${support_static_fd}
44261    Statically Linked SD:    ${support_static_sd}
44262    Statically Linked DIR:   ${support_static_dir}
44263    Statically Linked CONS:  ${support_static_cons}
44264    Database type:           ${db_type}
44265    Database port:           ${db_port}
44266    Database lib:            ${DB_LIBS}
44267    Database name:           ${db_name}
44268    Database user:           ${db_user}
44269
44270    Job Output Email:        ${job_email}
44271    Traceback Email:         ${dump_email}
44272    SMTP Host Address:       ${smtp_host}
44273
44274    Director Port:           ${dir_port}
44275    File daemon Port:        ${fd_port}
44276    Storage daemon Port:     ${sd_port}
44277
44278    Director User:           ${dir_user}
44279    Director Group:          ${dir_group}
44280    Storage Daemon User:     ${sd_user}
44281    Storage DaemonGroup:     ${sd_group}
44282    File Daemon User:        ${fd_user}
44283    File Daemon Group:       ${fd_group}
44284
44285    SQL binaries Directory   ${SQL_BINDIR}
44286
44287    Large file support:      $largefile_support
44288    Bacula conio support:    ${got_conio} ${CONS_LIBS}
44289    readline support:        ${got_readline} ${PRTREADLINE_SRC}
44290    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
44291    TLS support:             ${support_tls}
44292    Encryption support:      ${support_crypto}
44293    ZLIB support:            ${have_zlib}
44294    enable-smartalloc:       ${support_smartalloc}
44295    bat support:             ${support_bat} ${QWT_LDFLAGS}
44296    enable-gnome:            ${support_gnome} ${gnome_version}
44297    enable-bwx-console:      ${support_wx_console} ${wx_version}
44298    enable-tray-monitor:     ${support_tray_monitor}
44299    client-only:             ${build_client_only}
44300    build-dird:              ${build_dird}
44301    build-stored:            ${build_stored}
44302    ACL support:             ${have_acl}
44303    Python support:          ${support_python} ${PYTHON_LIBS}
44304    Batch insert enabled:    ${support_batch_insert}
44305
44306   " > config.out
44307
44308 cat config.out