]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
kes Fix configure to do minimum Win32 configure so that make clean
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 WIN32BUILDDIR
805 WIN32MAINDIR
806 WIN32TOPDIR
807 TRUEPRG
808 FALSEPRG
809 VERSION
810 DATE
811 LSMDATE
812 BACULA
813 post_host
814 CC
815 CFLAGS
816 LDFLAGS
817 CPPFLAGS
818 ac_ct_CC
819 EXEEXT
820 OBJEXT
821 CXX
822 CXXFLAGS
823 ac_ct_CXX
824 CPP
825 GREP
826 EGREP
827 INSTALL_PROGRAM
828 INSTALL_SCRIPT
829 INSTALL_DATA
830 MV
831 REMOVE
832 CP
833 SED
834 ECHO
835 CMP
836 TBL
837 AR
838 OPENSSL
839 MTX
840 DD
841 MKISOFS
842 PYTHON
843 GROWISOFS
844 DVDRWMEDIAINFO
845 DVDRWFORMAT
846 PKGCONFIG
847 QMAKE
848 QMAKEQT4
849 WXCONFIG
850 WXFLAGS
851 CDRECORD
852 PIDOF
853 AWK
854 ARFLAGS
855 MAKE_SHELL
856 LOCAL_LIBS
857 LOCAL_CFLAGS
858 LOCAL_LDFLAGS
859 LOCAL_DEFS
860 LIBTOOL
861 build
862 build_cpu
863 build_vendor
864 build_os
865 host
866 host_cpu
867 host_vendor
868 host_os
869 FGREP
870 LD
871 DUMPBIN
872 ac_ct_DUMPBIN
873 NM
874 LN_S
875 OBJDUMP
876 STRIP
877 RANLIB
878 lt_ECHO
879 DSYMUTIL
880 NMEDIT
881 LIPO
882 OTOOL
883 OTOOL64
884 CXXCPP
885 DEFAULT_OBJECT_TYPE
886 DEFAULT_ARCHIVE_TYPE
887 DEFAULT_SHARED_OBJECT_TYPE
888 LIBTOOL_INSTALL_TARGET
889 LIBTOOL_UNINSTALL_TARGET
890 LIBTOOL_CLEAN_TARGET
891 QMAKE_LIBTOOL
892 INCLUDE_INSTALL_TARGET
893 INCLUDE_UNINSTALL_TARGET
894 HAVE_SUN_OS_TRUE
895 HAVE_SUN_OS_FALSE
896 HAVE_OSF1_OS_TRUE
897 HAVE_OSF1_OS_FALSE
898 HAVE_AIX_OS_TRUE
899 HAVE_AIX_OS_FALSE
900 HAVE_HPUX_OS_TRUE
901 HAVE_HPUX_OS_FALSE
902 HAVE_LINUX_OS_TRUE
903 HAVE_LINUX_OS_FALSE
904 HAVE_FREEBSD_OS_TRUE
905 HAVE_FREEBSD_OS_FALSE
906 HAVE_NETBSD_OS_TRUE
907 HAVE_NETBSD_OS_FALSE
908 HAVE_OPENBSD_OS_TRUE
909 HAVE_OPENBSD_OS_FALSE
910 HAVE_BSDI_OS_TRUE
911 HAVE_BSDI_OS_FALSE
912 HAVE_SGI_OS_TRUE
913 HAVE_SGI_OS_FALSE
914 HAVE_IRIX_OS_TRUE
915 HAVE_IRIX_OS_FALSE
916 HAVE_DARWIN_OS_TRUE
917 HAVE_DARWIN_OS_FALSE
918 SET_MAKE
919 MKINSTALLDIRS
920 USE_NLS
921 MSGFMT
922 GMSGFMT
923 XGETTEXT
924 MSGMERGE
925 INTL_MACOSX_LIBS
926 LIBICONV
927 LTLIBICONV
928 INTLLIBS
929 LIBINTL
930 LTLIBINTL
931 POSUB
932 GLIBC2
933 ALLOCA
934 GLIBC21
935 HAVE_POSIX_PRINTF
936 HAVE_ASPRINTF
937 HAVE_SNPRINTF
938 HAVE_WPRINTF
939 INTLBISON
940 BUILD_INCLUDED_LIBINTL
941 USE_INCLUDED_LIBINTL
942 CATOBJEXT
943 DATADIRNAME
944 INSTOBJEXT
945 GENCAT
946 INTLOBJS
947 INTL_LIBTOOL_SUFFIX_PREFIX
948 GNOME_INCLUDEDIR
949 GNOMEUI_LIBS
950 GNOME_LIBDIR
951 GNOME_LIBS
952 GNOME_DIR
953 BAT_DIR
954 QWT_INC
955 QWT_LDFLAGS
956 QWT_LIB
957 QWT
958 WXCONS_CPPFLAGS
959 WXCONS_LDFLAGS
960 WX_DIR
961 TRAY_MONITOR_CPPFLAGS
962 TRAY_MONITOR_LDFLAGS
963 TRAY_MONITOR_DIR
964 TTOOL_LDFLAGS
965 STATIC_FD
966 STATIC_SD
967 STATIC_DIR
968 STATIC_CONS
969 STATIC_GNOME_CONS
970 STATIC_WX_CONS
971 ALL_DIRS
972 DIRD_DIR
973 DIR_TOOLS
974 STORED_DIR
975 CONS_INC
976 CONS_OBJ
977 CONS_SRC
978 CONS_LIBS
979 CONS_LDFLAGS
980 READLINE_SRC
981 PYTHON_LIBS
982 PYTHON_INCDIR
983 OPENSSL_LIBS
984 OPENSSL_INC
985 working_dir
986 archivedir
987 scriptdir
988 plugindir
989 dump_email
990 job_email
991 smtp_host
992 piddir
993 subsysdir
994 baseport
995 dir_port
996 fd_port
997 sd_port
998 dir_password
999 fd_password
1000 sd_password
1001 mon_dir_password
1002 mon_fd_password
1003 mon_sd_password
1004 db_name
1005 db_user
1006 db_password
1007 db_port
1008 dir_user
1009 dir_group
1010 sd_user
1011 sd_group
1012 fd_user
1013 fd_group
1014 SBINPERM
1015 SQL_LFLAGS
1016 SQL_INCLUDE
1017 SQL_BINDIR
1018 DBI_DBD_DRIVERDIR
1019 uncomment_dbi
1020 DB_PROG
1021 DB_PROG_LIB
1022 cats
1023 DB_TYPE
1024 GETCONF
1025 XMKMF
1026 X_CFLAGS
1027 X_PRE_LIBS
1028 X_LIBS
1029 X_EXTRA_LIBS
1030 LIBOBJS
1031 FDLIBS
1032 DEBUG
1033 DINCLUDE
1034 DLIB
1035 DB_LIBS
1036 WCFLAGS
1037 WLDFLAGS
1038 WRAPLIBS
1039 OBJLIST
1040 hostname
1041 TAPEDRIVE
1042 PSCMD
1043 WIN32
1044 MACOSX
1045 DISTNAME
1046 DISTVER
1047 LTLIBOBJS'
1048 ac_subst_files='MCOMMON'
1049       ac_precious_vars='build_alias
1050 host_alias
1051 target_alias
1052 CC
1053 CFLAGS
1054 LDFLAGS
1055 LIBS
1056 CPPFLAGS
1057 CXX
1058 CXXFLAGS
1059 CCC
1060 CPP
1061 WXCONFIG
1062 WXFLAGS
1063 CXXCPP
1064 XMKMF'
1065
1066
1067 # Initialize some variables set by options.
1068 ac_init_help=
1069 ac_init_version=false
1070 # The variables have the same names as the options, with
1071 # dashes changed to underlines.
1072 cache_file=/dev/null
1073 exec_prefix=NONE
1074 no_create=
1075 no_recursion=
1076 prefix=NONE
1077 program_prefix=NONE
1078 program_suffix=NONE
1079 program_transform_name=s,x,x,
1080 silent=
1081 site=
1082 srcdir=
1083 verbose=
1084 x_includes=NONE
1085 x_libraries=NONE
1086
1087 # Installation directory options.
1088 # These are left unexpanded so users can "make install exec_prefix=/foo"
1089 # and all the variables that are supposed to be based on exec_prefix
1090 # by default will actually change.
1091 # Use braces instead of parens because sh, perl, etc. also accept them.
1092 # (The list follows the same order as the GNU Coding Standards.)
1093 bindir='${exec_prefix}/bin'
1094 sbindir='${exec_prefix}/sbin'
1095 libexecdir='${exec_prefix}/libexec'
1096 datarootdir='${prefix}/share'
1097 datadir='${datarootdir}'
1098 sysconfdir='${prefix}/etc'
1099 sharedstatedir='${prefix}/com'
1100 localstatedir='${prefix}/var'
1101 includedir='${prefix}/include'
1102 oldincludedir='/usr/include'
1103 docdir='${datarootdir}/doc/${PACKAGE}'
1104 infodir='${datarootdir}/info'
1105 htmldir='${docdir}'
1106 dvidir='${docdir}'
1107 pdfdir='${docdir}'
1108 psdir='${docdir}'
1109 libdir='${exec_prefix}/lib'
1110 localedir='${datarootdir}/locale'
1111 mandir='${datarootdir}/man'
1112
1113 ac_prev=
1114 ac_dashdash=
1115 for ac_option
1116 do
1117   # If the previous option needs an argument, assign it.
1118   if test -n "$ac_prev"; then
1119     eval $ac_prev=\$ac_option
1120     ac_prev=
1121     continue
1122   fi
1123
1124   case $ac_option in
1125   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1126   *)    ac_optarg=yes ;;
1127   esac
1128
1129   # Accept the important Cygnus configure options, so we can diagnose typos.
1130
1131   case $ac_dashdash$ac_option in
1132   --)
1133     ac_dashdash=yes ;;
1134
1135   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1136     ac_prev=bindir ;;
1137   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1138     bindir=$ac_optarg ;;
1139
1140   -build | --build | --buil | --bui | --bu)
1141     ac_prev=build_alias ;;
1142   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1143     build_alias=$ac_optarg ;;
1144
1145   -cache-file | --cache-file | --cache-fil | --cache-fi \
1146   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1147     ac_prev=cache_file ;;
1148   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1149   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1150     cache_file=$ac_optarg ;;
1151
1152   --config-cache | -C)
1153     cache_file=config.cache ;;
1154
1155   -datadir | --datadir | --datadi | --datad)
1156     ac_prev=datadir ;;
1157   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1158     datadir=$ac_optarg ;;
1159
1160   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1161   | --dataroo | --dataro | --datar)
1162     ac_prev=datarootdir ;;
1163   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1164   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1165     datarootdir=$ac_optarg ;;
1166
1167   -disable-* | --disable-*)
1168     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1169     # Reject names that are not valid shell variable names.
1170     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1172    { (exit 1); exit 1; }; }
1173     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1174     eval enable_$ac_feature=no ;;
1175
1176   -docdir | --docdir | --docdi | --doc | --do)
1177     ac_prev=docdir ;;
1178   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1179     docdir=$ac_optarg ;;
1180
1181   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1182     ac_prev=dvidir ;;
1183   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1184     dvidir=$ac_optarg ;;
1185
1186   -enable-* | --enable-*)
1187     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1191    { (exit 1); exit 1; }; }
1192     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1193     eval enable_$ac_feature=\$ac_optarg ;;
1194
1195   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1196   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1197   | --exec | --exe | --ex)
1198     ac_prev=exec_prefix ;;
1199   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1200   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1201   | --exec=* | --exe=* | --ex=*)
1202     exec_prefix=$ac_optarg ;;
1203
1204   -gas | --gas | --ga | --g)
1205     # Obsolete; use --with-gas.
1206     with_gas=yes ;;
1207
1208   -help | --help | --hel | --he | -h)
1209     ac_init_help=long ;;
1210   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1211     ac_init_help=recursive ;;
1212   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1213     ac_init_help=short ;;
1214
1215   -host | --host | --hos | --ho)
1216     ac_prev=host_alias ;;
1217   -host=* | --host=* | --hos=* | --ho=*)
1218     host_alias=$ac_optarg ;;
1219
1220   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1221     ac_prev=htmldir ;;
1222   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1223   | --ht=*)
1224     htmldir=$ac_optarg ;;
1225
1226   -includedir | --includedir | --includedi | --included | --include \
1227   | --includ | --inclu | --incl | --inc)
1228     ac_prev=includedir ;;
1229   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1230   | --includ=* | --inclu=* | --incl=* | --inc=*)
1231     includedir=$ac_optarg ;;
1232
1233   -infodir | --infodir | --infodi | --infod | --info | --inf)
1234     ac_prev=infodir ;;
1235   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1236     infodir=$ac_optarg ;;
1237
1238   -libdir | --libdir | --libdi | --libd)
1239     ac_prev=libdir ;;
1240   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1241     libdir=$ac_optarg ;;
1242
1243   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1244   | --libexe | --libex | --libe)
1245     ac_prev=libexecdir ;;
1246   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1247   | --libexe=* | --libex=* | --libe=*)
1248     libexecdir=$ac_optarg ;;
1249
1250   -localedir | --localedir | --localedi | --localed | --locale)
1251     ac_prev=localedir ;;
1252   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1253     localedir=$ac_optarg ;;
1254
1255   -localstatedir | --localstatedir | --localstatedi | --localstated \
1256   | --localstate | --localstat | --localsta | --localst | --locals)
1257     ac_prev=localstatedir ;;
1258   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1259   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1260     localstatedir=$ac_optarg ;;
1261
1262   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1263     ac_prev=mandir ;;
1264   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1265     mandir=$ac_optarg ;;
1266
1267   -nfp | --nfp | --nf)
1268     # Obsolete; use --without-fp.
1269     with_fp=no ;;
1270
1271   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1272   | --no-cr | --no-c | -n)
1273     no_create=yes ;;
1274
1275   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1276   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1277     no_recursion=yes ;;
1278
1279   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1280   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1281   | --oldin | --oldi | --old | --ol | --o)
1282     ac_prev=oldincludedir ;;
1283   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1284   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1285   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1286     oldincludedir=$ac_optarg ;;
1287
1288   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1289     ac_prev=prefix ;;
1290   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1291     prefix=$ac_optarg ;;
1292
1293   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1294   | --program-pre | --program-pr | --program-p)
1295     ac_prev=program_prefix ;;
1296   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1297   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1298     program_prefix=$ac_optarg ;;
1299
1300   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1301   | --program-suf | --program-su | --program-s)
1302     ac_prev=program_suffix ;;
1303   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1304   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1305     program_suffix=$ac_optarg ;;
1306
1307   -program-transform-name | --program-transform-name \
1308   | --program-transform-nam | --program-transform-na \
1309   | --program-transform-n | --program-transform- \
1310   | --program-transform | --program-transfor \
1311   | --program-transfo | --program-transf \
1312   | --program-trans | --program-tran \
1313   | --progr-tra | --program-tr | --program-t)
1314     ac_prev=program_transform_name ;;
1315   -program-transform-name=* | --program-transform-name=* \
1316   | --program-transform-nam=* | --program-transform-na=* \
1317   | --program-transform-n=* | --program-transform-=* \
1318   | --program-transform=* | --program-transfor=* \
1319   | --program-transfo=* | --program-transf=* \
1320   | --program-trans=* | --program-tran=* \
1321   | --progr-tra=* | --program-tr=* | --program-t=*)
1322     program_transform_name=$ac_optarg ;;
1323
1324   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1325     ac_prev=pdfdir ;;
1326   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1327     pdfdir=$ac_optarg ;;
1328
1329   -psdir | --psdir | --psdi | --psd | --ps)
1330     ac_prev=psdir ;;
1331   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1332     psdir=$ac_optarg ;;
1333
1334   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1335   | -silent | --silent | --silen | --sile | --sil)
1336     silent=yes ;;
1337
1338   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1339     ac_prev=sbindir ;;
1340   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1341   | --sbi=* | --sb=*)
1342     sbindir=$ac_optarg ;;
1343
1344   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1345   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1346   | --sharedst | --shareds | --shared | --share | --shar \
1347   | --sha | --sh)
1348     ac_prev=sharedstatedir ;;
1349   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1350   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1351   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1352   | --sha=* | --sh=*)
1353     sharedstatedir=$ac_optarg ;;
1354
1355   -site | --site | --sit)
1356     ac_prev=site ;;
1357   -site=* | --site=* | --sit=*)
1358     site=$ac_optarg ;;
1359
1360   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1361     ac_prev=srcdir ;;
1362   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1363     srcdir=$ac_optarg ;;
1364
1365   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1366   | --syscon | --sysco | --sysc | --sys | --sy)
1367     ac_prev=sysconfdir ;;
1368   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1369   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1370     sysconfdir=$ac_optarg ;;
1371
1372   -target | --target | --targe | --targ | --tar | --ta | --t)
1373     ac_prev=target_alias ;;
1374   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1375     target_alias=$ac_optarg ;;
1376
1377   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1378     verbose=yes ;;
1379
1380   -version | --version | --versio | --versi | --vers | -V)
1381     ac_init_version=: ;;
1382
1383   -with-* | --with-*)
1384     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1385     # Reject names that are not valid shell variable names.
1386     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387       { echo "$as_me: error: invalid package name: $ac_package" >&2
1388    { (exit 1); exit 1; }; }
1389     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1390     eval with_$ac_package=\$ac_optarg ;;
1391
1392   -without-* | --without-*)
1393     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1394     # Reject names that are not valid shell variable names.
1395     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396       { echo "$as_me: error: invalid package name: $ac_package" >&2
1397    { (exit 1); exit 1; }; }
1398     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1399     eval with_$ac_package=no ;;
1400
1401   --x)
1402     # Obsolete; use --with-x.
1403     with_x=yes ;;
1404
1405   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1406   | --x-incl | --x-inc | --x-in | --x-i)
1407     ac_prev=x_includes ;;
1408   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1409   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1410     x_includes=$ac_optarg ;;
1411
1412   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1413   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1414     ac_prev=x_libraries ;;
1415   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1416   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1417     x_libraries=$ac_optarg ;;
1418
1419   -*) { echo "$as_me: error: unrecognized option: $ac_option
1420 Try \`$0 --help' for more information." >&2
1421    { (exit 1); exit 1; }; }
1422     ;;
1423
1424   *=*)
1425     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1426     # Reject names that are not valid shell variable names.
1427     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1428       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1429    { (exit 1); exit 1; }; }
1430     eval $ac_envvar=\$ac_optarg
1431     export $ac_envvar ;;
1432
1433   *)
1434     # FIXME: should be removed in autoconf 3.0.
1435     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1437       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1439     ;;
1440
1441   esac
1442 done
1443
1444 if test -n "$ac_prev"; then
1445   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1446   { echo "$as_me: error: missing argument to $ac_option" >&2
1447    { (exit 1); exit 1; }; }
1448 fi
1449
1450 # Be sure to have absolute directory names.
1451 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452                 datadir sysconfdir sharedstatedir localstatedir includedir \
1453                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454                 libdir localedir mandir
1455 do
1456   eval ac_val=\$$ac_var
1457   case $ac_val in
1458     [\\/$]* | ?:[\\/]* )  continue;;
1459     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1460   esac
1461   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1462    { (exit 1); exit 1; }; }
1463 done
1464
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1468 build=$build_alias
1469 host=$host_alias
1470 target=$target_alias
1471
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474   if test "x$build_alias" = x; then
1475     cross_compiling=maybe
1476     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477     If a cross compiler is detected then cross compile mode will be used." >&2
1478   elif test "x$build_alias" != "x$host_alias"; then
1479     cross_compiling=yes
1480   fi
1481 fi
1482
1483 ac_tool_prefix=
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1485
1486 test "$silent" = yes && exec 6>/dev/null
1487
1488
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492   { echo "$as_me: error: Working directory cannot be determined" >&2
1493    { (exit 1); exit 1; }; }
1494 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1495   { echo "$as_me: error: pwd does not report name of working directory" >&2
1496    { (exit 1); exit 1; }; }
1497
1498
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501   ac_srcdir_defaulted=yes
1502   # Try the directory containing this script, then the parent directory.
1503   ac_confdir=`$as_dirname -- "$0" ||
1504 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505          X"$0" : 'X\(//\)[^/]' \| \
1506          X"$0" : 'X\(//\)$' \| \
1507          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1508 echo X"$0" |
1509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\/\)[^/].*/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\/\)$/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\).*/{
1522             s//\1/
1523             q
1524           }
1525           s/.*/./; q'`
1526   srcdir=$ac_confdir
1527   if test ! -r "$srcdir/$ac_unique_file"; then
1528     srcdir=..
1529   fi
1530 else
1531   ac_srcdir_defaulted=no
1532 fi
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1536    { (exit 1); exit 1; }; }
1537 fi
1538 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1539 ac_abs_confdir=`(
1540         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1541    { (exit 1); exit 1; }; }
1542         pwd)`
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1545   srcdir=.
1546 fi
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1550 case $srcdir in
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1552 esac
1553 for ac_var in $ac_precious_vars; do
1554   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555   eval ac_env_${ac_var}_value=\$${ac_var}
1556   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 done
1559
1560 #
1561 # Report the --help message.
1562 #
1563 if test "$ac_init_help" = "long"; then
1564   # Omit some internal or obsolete options to make the list less imposing.
1565   # This message is too long to be a string in the A/UX 3.1 sh.
1566   cat <<_ACEOF
1567 \`configure' configures this package to adapt to many kinds of systems.
1568
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1570
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE.  See below for descriptions of some of the useful variables.
1573
1574 Defaults for the options are specified in brackets.
1575
1576 Configuration:
1577   -h, --help              display this help and exit
1578       --help=short        display options specific to this package
1579       --help=recursive    display the short help of all the included packages
1580   -V, --version           display version information and exit
1581   -q, --quiet, --silent   do not print \`checking...' messages
1582       --cache-file=FILE   cache test results in FILE [disabled]
1583   -C, --config-cache      alias for \`--cache-file=config.cache'
1584   -n, --no-create         do not create output files
1585       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1586
1587 Installation directories:
1588   --prefix=PREFIX         install architecture-independent files in PREFIX
1589                           [$ac_default_prefix]
1590   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1591                           [PREFIX]
1592
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1597
1598 For better control, use the options below.
1599
1600 Fine tuning of the installation directories:
1601   --bindir=DIR           user executables [EPREFIX/bin]
1602   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1603   --libexecdir=DIR       program executables [EPREFIX/libexec]
1604   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1605   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1606   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1607   --libdir=DIR           object code libraries [EPREFIX/lib]
1608   --includedir=DIR       C header files [PREFIX/include]
1609   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1610   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1611   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1612   --infodir=DIR          info documentation [DATAROOTDIR/info]
1613   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1614   --mandir=DIR           man documentation [DATAROOTDIR/man]
1615   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1616   --htmldir=DIR          html documentation [DOCDIR]
1617   --dvidir=DIR           dvi documentation [DOCDIR]
1618   --pdfdir=DIR           pdf documentation [DOCDIR]
1619   --psdir=DIR            ps documentation [DOCDIR]
1620 _ACEOF
1621
1622   cat <<\_ACEOF
1623
1624 X features:
1625   --x-includes=DIR    X include files are in DIR
1626   --x-libraries=DIR   X library files are in DIR
1627
1628 System types:
1629   --build=BUILD     configure for building on BUILD [guessed]
1630   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1631 _ACEOF
1632 fi
1633
1634 if test -n "$ac_init_help"; then
1635
1636   cat <<\_ACEOF
1637
1638 Optional Features:
1639   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1640   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1641   --enable-libtool        enable building using GNU libtool [default=yes]
1642   --enable-shared[=PKGS]  build shared libraries [default=yes]
1643   --enable-static[=PKGS]  build static libraries [default=no]
1644   --enable-fast-install[=PKGS]
1645                           optimize for fast installation [default=yes]
1646   --disable-libtool-lock  avoid locking (might break parallel builds)
1647   --enable-includes       enable installing of include files [default=no]
1648   --disable-nls           do not use Native Language Support
1649   --disable-rpath         do not hardcode runtime library paths
1650   --enable-gnome          enable build of bgnome-console GUI [default=no]
1651   --enable-bat            enable build of bat Qt4 GUI [default=no]
1652   --enable-bwx-console    enable build of wxWidgets console [default=no]
1653   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1654                           KDE [default=no]
1655   --enable-smartalloc     enable smartalloc debugging support [default=no]
1656   --enable-lockmgr        enable lock manager support [default=no]
1657   --enable-static-tools   enable static tape tools [default=no]
1658   --enable-static-fd      enable static File daemon [default=no]
1659   --enable-static-sd      enable static Storage daemon [default=no]
1660   --enable-static-dir     enable static Director [default=no]
1661   --enable-static-cons    enable static Console [default=no]
1662   --enable-client-only    build client (File daemon) only [default=no]
1663   --enable-build-dird     enable building of dird (Director) [default=yes]
1664   --enable-build-stored   enable building of stored (Storage daemon)
1665                           [default=yes]
1666   --disable-conio         disable conio support [default=no]
1667   --enable-ipv6           enable ipv6 support [default=yes]
1668   --disable-readline      disable readline support [default=yes]
1669   --enable-batch-insert   enable the DB batch insert code [default=no]
1670   --disable-largefile     omit support for large files
1671   --disable-acl           disable acl support [default=auto]
1672   --disable-xattr         disable xattr support [default=auto]
1673
1674 Optional Packages:
1675   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1676   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1677   --with-pic              try to use only PIC/non-PIC objects [default=use
1678                           both]
1679   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1680   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1681   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1682   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1683   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1684   --without-libintl-prefix     don't search for libintl in includedir and libdir
1685   --with-included-gettext use the GNU gettext library included here
1686   --with-qwt[=DIR]        specify qwt library directory
1687   --with-readline[=DIR]   specify readline library directory
1688   --with-python[=DIR]     Include Python support. DIR is the Python base
1689                           install directory, default is to search through a
1690                           number of common places for the Python files.
1691   --with-tcp-wrappers[=DIR]
1692                           enable tcpwrappers support
1693   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1694   --with-working-dir=PATH specify path of Bacula working directory
1695   --with-archivedir=PATH  specify path of SD archive directory
1696   --with-scriptdir=PATH   specify path of Bacula scripts directory
1697   --with-plugindir=PATH   specify path of Bacula plugins directory
1698   --with-dump-email=EMAIL dump email address
1699   --with-job-email=EMAIL  job output email address
1700   --with-smtp-host=HOST   SMTP mail host address
1701   --with-pid-dir=PATH     specify location of Bacula pid files
1702   --with-subsys-dir=PATH  specify location of Bacula subsys file
1703   --with-baseport=PORT    specify base port address for daemons
1704   --with-dir-password=PASSWORD
1705                           specify Director's password
1706   --with-fd-password=PASSWORD
1707                           specify Client's password
1708   --with-sd-password=PASSWORD
1709                           specify Storage daemon's password
1710   --with-mon-dir-password=PASSWORD
1711                           specify Director's password used by the monitor
1712   --with-mon-fd-password=PASSWORD
1713                           specify Client's password used by the monitor
1714   --with-mon-sd-password=PASSWORD
1715                           specify Storage daemon's password used by the
1716                           monitor
1717   --with-db-name=DBNAME   specify database name [default=bacula]
1718   --with-db-user=UNAME    specify database user [default=bacula]
1719   --with-db-password=PWD  specify database password [default=*none*]
1720   --with-db-port=DBPORT   specify a database port [default=null]
1721   --with-dir-user=USER    specify user for Director daemon
1722   --with-dir-group=GROUP  specify group for Director daemon
1723   --with-sd-user=USER     specify user for Storage daemon
1724   --with-sd-group=GROUP   specify group for Storage daemon
1725   --with-fd-user=USER     specify user for File daemon
1726   --with-fd-group=GROUP   specify group for File daemon
1727   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1728   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1729                           base install directory, [default=/usr/local/pgsql]
1730   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1731                           directory, default is to search through a number of
1732                           common places for the MySQL files.
1733   --with-embedded-mysql[=DIR]
1734                           Include MySQL support. DIR is the MySQL base install
1735                           directory, default is to search through a number of
1736                           common places for the MySQL files.
1737   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1738                           install directory, default is to search through a
1739                           number of common places for the SQLite3 files.
1740   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1741                           install directory, default is to search through a
1742                           number of common places for the SQLite files.
1743   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1744                           directory, default is to search through a number of
1745                           common places for the DBI files.
1746   --with-dbi-driver[=DRIVER]
1747                           Suport for DBI driver. DRIVER is the one DBI driver
1748                           like Mysql, Postgresql, others. Default is to not
1749                           configure any driver.
1750   --with-x                use the X Window System
1751
1752 Some influential environment variables:
1753   CC          C compiler command
1754   CFLAGS      C compiler flags
1755   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1756               nonstandard directory <lib dir>
1757   LIBS        libraries to pass to the linker, e.g. -l<library>
1758   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1759               you have headers in a nonstandard directory <include dir>
1760   CXX         C++ compiler command
1761   CXXFLAGS    C++ compiler flags
1762   CPP         C preprocessor
1763   WXCONFIG    wx-config command. On some systems, you must set it to
1764               wx-config-2.6 to use wxWidgets 2.6.
1765   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1766   CXXCPP      C++ preprocessor
1767   XMKMF       Path to xmkmf, Makefile generator for X Window System
1768
1769 Use these variables to override the choices made by `configure' or to help
1770 it to find libraries and programs with nonstandard names/locations.
1771
1772 _ACEOF
1773 ac_status=$?
1774 fi
1775
1776 if test "$ac_init_help" = "recursive"; then
1777   # If there are subdirs, report their specific --help.
1778   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1779     test -d "$ac_dir" || continue
1780     ac_builddir=.
1781
1782 case "$ac_dir" in
1783 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 *)
1785   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1786   # A ".." for each directory in $ac_dir_suffix.
1787   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1788   case $ac_top_builddir_sub in
1789   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1790   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1791   esac ;;
1792 esac
1793 ac_abs_top_builddir=$ac_pwd
1794 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1795 # for backward compatibility:
1796 ac_top_builddir=$ac_top_build_prefix
1797
1798 case $srcdir in
1799   .)  # We are building in place.
1800     ac_srcdir=.
1801     ac_top_srcdir=$ac_top_builddir_sub
1802     ac_abs_top_srcdir=$ac_pwd ;;
1803   [\\/]* | ?:[\\/]* )  # Absolute name.
1804     ac_srcdir=$srcdir$ac_dir_suffix;
1805     ac_top_srcdir=$srcdir
1806     ac_abs_top_srcdir=$srcdir ;;
1807   *) # Relative name.
1808     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1809     ac_top_srcdir=$ac_top_build_prefix$srcdir
1810     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1811 esac
1812 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1813
1814     cd "$ac_dir" || { ac_status=$?; continue; }
1815     # Check for guested configure.
1816     if test -f "$ac_srcdir/configure.gnu"; then
1817       echo &&
1818       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1819     elif test -f "$ac_srcdir/configure"; then
1820       echo &&
1821       $SHELL "$ac_srcdir/configure" --help=recursive
1822     else
1823       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1824     fi || ac_status=$?
1825     cd "$ac_pwd" || { ac_status=$?; break; }
1826   done
1827 fi
1828
1829 test -n "$ac_init_help" && exit $ac_status
1830 if $ac_init_version; then
1831   cat <<\_ACEOF
1832 configure
1833 generated by GNU Autoconf 2.61
1834
1835 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1836 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1837 This configure script is free software; the Free Software Foundation
1838 gives unlimited permission to copy, distribute and modify it.
1839 _ACEOF
1840   exit
1841 fi
1842 cat >config.log <<_ACEOF
1843 This file contains any messages produced by compilers while
1844 running configure, to aid debugging if configure makes a mistake.
1845
1846 It was created by $as_me, which was
1847 generated by GNU Autoconf 2.61.  Invocation command line was
1848
1849   $ $0 $@
1850
1851 _ACEOF
1852 exec 5>>config.log
1853 {
1854 cat <<_ASUNAME
1855 ## --------- ##
1856 ## Platform. ##
1857 ## --------- ##
1858
1859 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1860 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1861 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1862 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1863 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1864
1865 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1866 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1867
1868 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1869 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1870 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1871 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1872 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1873 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1874 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1875
1876 _ASUNAME
1877
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883   echo "PATH: $as_dir"
1884 done
1885 IFS=$as_save_IFS
1886
1887 } >&5
1888
1889 cat >&5 <<_ACEOF
1890
1891
1892 ## ----------- ##
1893 ## Core tests. ##
1894 ## ----------- ##
1895
1896 _ACEOF
1897
1898
1899 # Keep a trace of the command line.
1900 # Strip out --no-create and --no-recursion so they do not pile up.
1901 # Strip out --silent because we don't want to record it for future runs.
1902 # Also quote any args containing shell meta-characters.
1903 # Make two passes to allow for proper duplicate-argument suppression.
1904 ac_configure_args=
1905 ac_configure_args0=
1906 ac_configure_args1=
1907 ac_must_keep_next=false
1908 for ac_pass in 1 2
1909 do
1910   for ac_arg
1911   do
1912     case $ac_arg in
1913     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1914     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1915     | -silent | --silent | --silen | --sile | --sil)
1916       continue ;;
1917     *\'*)
1918       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1919     esac
1920     case $ac_pass in
1921     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1922     2)
1923       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1924       if test $ac_must_keep_next = true; then
1925         ac_must_keep_next=false # Got value, back to normal.
1926       else
1927         case $ac_arg in
1928           *=* | --config-cache | -C | -disable-* | --disable-* \
1929           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1930           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1931           | -with-* | --with-* | -without-* | --without-* | --x)
1932             case "$ac_configure_args0 " in
1933               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1934             esac
1935             ;;
1936           -* ) ac_must_keep_next=true ;;
1937         esac
1938       fi
1939       ac_configure_args="$ac_configure_args '$ac_arg'"
1940       ;;
1941     esac
1942   done
1943 done
1944 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1945 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1946
1947 # When interrupted or exit'd, cleanup temporary files, and complete
1948 # config.log.  We remove comments because anyway the quotes in there
1949 # would cause problems or look ugly.
1950 # WARNING: Use '\'' to represent an apostrophe within the trap.
1951 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1952 trap 'exit_status=$?
1953   # Save into config.log some information that might help in debugging.
1954   {
1955     echo
1956
1957     cat <<\_ASBOX
1958 ## ---------------- ##
1959 ## Cache variables. ##
1960 ## ---------------- ##
1961 _ASBOX
1962     echo
1963     # The following way of writing the cache mishandles newlines in values,
1964 (
1965   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1966     eval ac_val=\$$ac_var
1967     case $ac_val in #(
1968     *${as_nl}*)
1969       case $ac_var in #(
1970       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1971 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1972       esac
1973       case $ac_var in #(
1974       _ | IFS | as_nl) ;; #(
1975       *) $as_unset $ac_var ;;
1976       esac ;;
1977     esac
1978   done
1979   (set) 2>&1 |
1980     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1981     *${as_nl}ac_space=\ *)
1982       sed -n \
1983         "s/'\''/'\''\\\\'\'''\''/g;
1984           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1985       ;; #(
1986     *)
1987       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1988       ;;
1989     esac |
1990     sort
1991 )
1992     echo
1993
1994     cat <<\_ASBOX
1995 ## ----------------- ##
1996 ## Output variables. ##
1997 ## ----------------- ##
1998 _ASBOX
1999     echo
2000     for ac_var in $ac_subst_vars
2001     do
2002       eval ac_val=\$$ac_var
2003       case $ac_val in
2004       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005       esac
2006       echo "$ac_var='\''$ac_val'\''"
2007     done | sort
2008     echo
2009
2010     if test -n "$ac_subst_files"; then
2011       cat <<\_ASBOX
2012 ## ------------------- ##
2013 ## File substitutions. ##
2014 ## ------------------- ##
2015 _ASBOX
2016       echo
2017       for ac_var in $ac_subst_files
2018       do
2019         eval ac_val=\$$ac_var
2020         case $ac_val in
2021         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022         esac
2023         echo "$ac_var='\''$ac_val'\''"
2024       done | sort
2025       echo
2026     fi
2027
2028     if test -s confdefs.h; then
2029       cat <<\_ASBOX
2030 ## ----------- ##
2031 ## confdefs.h. ##
2032 ## ----------- ##
2033 _ASBOX
2034       echo
2035       cat confdefs.h
2036       echo
2037     fi
2038     test "$ac_signal" != 0 &&
2039       echo "$as_me: caught signal $ac_signal"
2040     echo "$as_me: exit $exit_status"
2041   } >&5
2042   rm -f core *.core core.conftest.* &&
2043     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2044     exit $exit_status
2045 ' 0
2046 for ac_signal in 1 2 13 15; do
2047   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2048 done
2049 ac_signal=0
2050
2051 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2052 rm -f -r conftest* confdefs.h
2053
2054 # Predefined preprocessor variables.
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_NAME "$PACKAGE_NAME"
2058 _ACEOF
2059
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2063 _ACEOF
2064
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2068 _ACEOF
2069
2070
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_STRING "$PACKAGE_STRING"
2073 _ACEOF
2074
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2078 _ACEOF
2079
2080
2081 # Let the site file select an alternate cache file if it wants to.
2082 # Prefer explicitly selected file to automatically selected ones.
2083 if test -n "$CONFIG_SITE"; then
2084   set x "$CONFIG_SITE"
2085 elif test "x$prefix" != xNONE; then
2086   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2087 else
2088   set x "$ac_default_prefix/share/config.site" \
2089         "$ac_default_prefix/etc/config.site"
2090 fi
2091 shift
2092 for ac_site_file
2093 do
2094   if test -r "$ac_site_file"; then
2095     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2096 echo "$as_me: loading site script $ac_site_file" >&6;}
2097     sed 's/^/| /' "$ac_site_file" >&5
2098     . "$ac_site_file"
2099   fi
2100 done
2101
2102 if test -r "$cache_file"; then
2103   # Some versions of bash will fail to source /dev/null (special
2104   # files actually), so we avoid doing that.
2105   if test -f "$cache_file"; then
2106     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2107 echo "$as_me: loading cache $cache_file" >&6;}
2108     case $cache_file in
2109       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2110       *)                      . "./$cache_file";;
2111     esac
2112   fi
2113 else
2114   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2115 echo "$as_me: creating cache $cache_file" >&6;}
2116   >$cache_file
2117 fi
2118
2119 # Check that the precious variables saved in the cache have kept the same
2120 # value.
2121 ac_cache_corrupted=false
2122 for ac_var in $ac_precious_vars; do
2123   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2124   eval ac_new_set=\$ac_env_${ac_var}_set
2125   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2126   eval ac_new_val=\$ac_env_${ac_var}_value
2127   case $ac_old_set,$ac_new_set in
2128     set,)
2129       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2130 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2131       ac_cache_corrupted=: ;;
2132     ,set)
2133       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2134 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2135       ac_cache_corrupted=: ;;
2136     ,);;
2137     *)
2138       if test "x$ac_old_val" != "x$ac_new_val"; then
2139         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2140 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2141         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2142 echo "$as_me:   former value:  $ac_old_val" >&2;}
2143         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2144 echo "$as_me:   current value: $ac_new_val" >&2;}
2145         ac_cache_corrupted=:
2146       fi;;
2147   esac
2148   # Pass precious variables to config.status.
2149   if test "$ac_new_set" = set; then
2150     case $ac_new_val in
2151     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2152     *) ac_arg=$ac_var=$ac_new_val ;;
2153     esac
2154     case " $ac_configure_args " in
2155       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2156       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2157     esac
2158   fi
2159 done
2160 if $ac_cache_corrupted; then
2161   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2162 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2163   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2164 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2165    { (exit 1); exit 1; }; }
2166 fi
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184 ac_ext=c
2185 ac_cpp='$CPP $CPPFLAGS'
2186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189
2190
2191 BUILD_DIR=`pwd`
2192 cd ..
2193 TOP_DIR=`pwd`
2194 cd ${BUILD_DIR}
2195
2196
2197 ac_aux_dir=
2198 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2199   if test -f "$ac_dir/install-sh"; then
2200     ac_aux_dir=$ac_dir
2201     ac_install_sh="$ac_aux_dir/install-sh -c"
2202     break
2203   elif test -f "$ac_dir/install.sh"; then
2204     ac_aux_dir=$ac_dir
2205     ac_install_sh="$ac_aux_dir/install.sh -c"
2206     break
2207   elif test -f "$ac_dir/shtool"; then
2208     ac_aux_dir=$ac_dir
2209     ac_install_sh="$ac_aux_dir/shtool install -c"
2210     break
2211   fi
2212 done
2213 if test -z "$ac_aux_dir"; then
2214   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2215 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2216    { (exit 1); exit 1; }; }
2217 fi
2218
2219 # These three variables are undocumented and unsupported,
2220 # and are intended to be withdrawn in a future Autoconf release.
2221 # They can cause serious problems if a builder's source tree is in a directory
2222 # whose full name contains unusual characters.
2223 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2224 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2225 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2226
2227
2228 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2229
2230
2231 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2232 WIN32MAINDIR=${BUILD_DIR}
2233 WIN32TOPDIR=${TOP_DIR}
2234
2235
2236
2237
2238
2239
2240
2241 for ac_prog in true
2242 do
2243   # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2248   echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250   case $TRUEPRG in
2251   [\\/]* | ?:[\\/]*)
2252   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2253   ;;
2254   *)
2255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258   IFS=$as_save_IFS
2259   test -z "$as_dir" && as_dir=.
2260   for ac_exec_ext in '' $ac_executable_extensions; do
2261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264     break 2
2265   fi
2266 done
2267 done
2268 IFS=$as_save_IFS
2269
2270   ;;
2271 esac
2272 fi
2273 TRUEPRG=$ac_cv_path_TRUEPRG
2274 if test -n "$TRUEPRG"; then
2275   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2276 echo "${ECHO_T}$TRUEPRG" >&6; }
2277 else
2278   { echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6; }
2280 fi
2281
2282
2283   test -n "$TRUEPRG" && break
2284 done
2285 test -n "$TRUEPRG" || TRUEPRG=":"
2286
2287 for ac_prog in false
2288 do
2289   # Extract the first word of "$ac_prog", so it can be a program name with args.
2290 set dummy $ac_prog; ac_word=$2
2291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2293 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2294   echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296   case $FALSEPRG in
2297   [\\/]* | ?:[\\/]*)
2298   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2299   ;;
2300   *)
2301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304   IFS=$as_save_IFS
2305   test -z "$as_dir" && as_dir=.
2306   for ac_exec_ext in '' $ac_executable_extensions; do
2307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310     break 2
2311   fi
2312 done
2313 done
2314 IFS=$as_save_IFS
2315
2316   ;;
2317 esac
2318 fi
2319 FALSEPRG=$ac_cv_path_FALSEPRG
2320 if test -n "$FALSEPRG"; then
2321   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2322 echo "${ECHO_T}$FALSEPRG" >&6; }
2323 else
2324   { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2326 fi
2327
2328
2329   test -n "$FALSEPRG" && break
2330 done
2331 test -n "$FALSEPRG" || FALSEPRG=":"
2332
2333
2334
2335 post_host=
2336 if test "x$BACULA" != x; then
2337    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2338 fi
2339 BACULA=${BACULA-Bacula}
2340 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2341 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2342 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2343 echo "configuring for ${BACULA} $VERSION ($DATE)"
2344
2345
2346 ac_ext=c
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351 if test -n "$ac_tool_prefix"; then
2352   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2353 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2356 if test "${ac_cv_prog_CC+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359   if test -n "$CC"; then
2360   ac_cv_prog_CC="$CC" # Let the user override the test.
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365   IFS=$as_save_IFS
2366   test -z "$as_dir" && as_dir=.
2367   for ac_exec_ext in '' $ac_executable_extensions; do
2368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371     break 2
2372   fi
2373 done
2374 done
2375 IFS=$as_save_IFS
2376
2377 fi
2378 fi
2379 CC=$ac_cv_prog_CC
2380 if test -n "$CC"; then
2381   { echo "$as_me:$LINENO: result: $CC" >&5
2382 echo "${ECHO_T}$CC" >&6; }
2383 else
2384   { echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6; }
2386 fi
2387
2388
2389 fi
2390 if test -z "$ac_cv_prog_CC"; then
2391   ac_ct_CC=$CC
2392   # Extract the first word of "gcc", so it can be a program name with args.
2393 set dummy gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2397   echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399   if test -n "$ac_ct_CC"; then
2400   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405   IFS=$as_save_IFS
2406   test -z "$as_dir" && as_dir=.
2407   for ac_exec_ext in '' $ac_executable_extensions; do
2408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409     ac_cv_prog_ac_ct_CC="gcc"
2410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411     break 2
2412   fi
2413 done
2414 done
2415 IFS=$as_save_IFS
2416
2417 fi
2418 fi
2419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2420 if test -n "$ac_ct_CC"; then
2421   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2422 echo "${ECHO_T}$ac_ct_CC" >&6; }
2423 else
2424   { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2426 fi
2427
2428   if test "x$ac_ct_CC" = x; then
2429     CC=""
2430   else
2431     case $cross_compiling:$ac_tool_warned in
2432 yes:)
2433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2434 whose name does not start with the host triplet.  If you think this
2435 configuration is useful to you, please write to autoconf@gnu.org." >&5
2436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2437 whose name does not start with the host triplet.  If you think this
2438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2439 ac_tool_warned=yes ;;
2440 esac
2441     CC=$ac_ct_CC
2442   fi
2443 else
2444   CC="$ac_cv_prog_CC"
2445 fi
2446
2447 if test -z "$CC"; then
2448           if test -n "$ac_tool_prefix"; then
2449     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2450 set dummy ${ac_tool_prefix}cc; ac_word=$2
2451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453 if test "${ac_cv_prog_CC+set}" = set; then
2454   echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456   if test -n "$CC"; then
2457   ac_cv_prog_CC="$CC" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462   IFS=$as_save_IFS
2463   test -z "$as_dir" && as_dir=.
2464   for ac_exec_ext in '' $ac_executable_extensions; do
2465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466     ac_cv_prog_CC="${ac_tool_prefix}cc"
2467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468     break 2
2469   fi
2470 done
2471 done
2472 IFS=$as_save_IFS
2473
2474 fi
2475 fi
2476 CC=$ac_cv_prog_CC
2477 if test -n "$CC"; then
2478   { echo "$as_me:$LINENO: result: $CC" >&5
2479 echo "${ECHO_T}$CC" >&6; }
2480 else
2481   { echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6; }
2483 fi
2484
2485
2486   fi
2487 fi
2488 if test -z "$CC"; then
2489   # Extract the first word of "cc", so it can be a program name with args.
2490 set dummy cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494   echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496   if test -n "$CC"; then
2497   ac_cv_prog_CC="$CC" # Let the user override the test.
2498 else
2499   ac_prog_rejected=no
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503   IFS=$as_save_IFS
2504   test -z "$as_dir" && as_dir=.
2505   for ac_exec_ext in '' $ac_executable_extensions; do
2506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2508        ac_prog_rejected=yes
2509        continue
2510      fi
2511     ac_cv_prog_CC="cc"
2512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513     break 2
2514   fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 if test $ac_prog_rejected = yes; then
2520   # We found a bogon in the path, so make sure we never use it.
2521   set dummy $ac_cv_prog_CC
2522   shift
2523   if test $# != 0; then
2524     # We chose a different compiler from the bogus one.
2525     # However, it has the same basename, so the bogon will be chosen
2526     # first if we set CC to just the basename; use the full file name.
2527     shift
2528     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2529   fi
2530 fi
2531 fi
2532 fi
2533 CC=$ac_cv_prog_CC
2534 if test -n "$CC"; then
2535   { echo "$as_me:$LINENO: result: $CC" >&5
2536 echo "${ECHO_T}$CC" >&6; }
2537 else
2538   { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2540 fi
2541
2542
2543 fi
2544 if test -z "$CC"; then
2545   if test -n "$ac_tool_prefix"; then
2546   for ac_prog in cl.exe
2547   do
2548     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2549 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_CC+set}" = set; then
2553   echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555   if test -n "$CC"; then
2556   ac_cv_prog_CC="$CC" # Let the user override the test.
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561   IFS=$as_save_IFS
2562   test -z "$as_dir" && as_dir=.
2563   for ac_exec_ext in '' $ac_executable_extensions; do
2564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567     break 2
2568   fi
2569 done
2570 done
2571 IFS=$as_save_IFS
2572
2573 fi
2574 fi
2575 CC=$ac_cv_prog_CC
2576 if test -n "$CC"; then
2577   { echo "$as_me:$LINENO: result: $CC" >&5
2578 echo "${ECHO_T}$CC" >&6; }
2579 else
2580   { echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6; }
2582 fi
2583
2584
2585     test -n "$CC" && break
2586   done
2587 fi
2588 if test -z "$CC"; then
2589   ac_ct_CC=$CC
2590   for ac_prog in cl.exe
2591 do
2592   # Extract the first word of "$ac_prog", so it can be a program name with args.
2593 set dummy $ac_prog; ac_word=$2
2594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599   if test -n "$ac_ct_CC"; then
2600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605   IFS=$as_save_IFS
2606   test -z "$as_dir" && as_dir=.
2607   for ac_exec_ext in '' $ac_executable_extensions; do
2608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609     ac_cv_prog_ac_ct_CC="$ac_prog"
2610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611     break 2
2612   fi
2613 done
2614 done
2615 IFS=$as_save_IFS
2616
2617 fi
2618 fi
2619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2620 if test -n "$ac_ct_CC"; then
2621   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2622 echo "${ECHO_T}$ac_ct_CC" >&6; }
2623 else
2624   { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2626 fi
2627
2628
2629   test -n "$ac_ct_CC" && break
2630 done
2631
2632   if test "x$ac_ct_CC" = x; then
2633     CC=""
2634   else
2635     case $cross_compiling:$ac_tool_warned in
2636 yes:)
2637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2638 whose name does not start with the host triplet.  If you think this
2639 configuration is useful to you, please write to autoconf@gnu.org." >&5
2640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2641 whose name does not start with the host triplet.  If you think this
2642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2643 ac_tool_warned=yes ;;
2644 esac
2645     CC=$ac_ct_CC
2646   fi
2647 fi
2648
2649 fi
2650
2651
2652 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2653 See \`config.log' for more details." >&5
2654 echo "$as_me: error: no acceptable C compiler found in \$PATH
2655 See \`config.log' for more details." >&2;}
2656    { (exit 1); exit 1; }; }
2657
2658 # Provide some information about the compiler.
2659 echo "$as_me:$LINENO: checking for C compiler version" >&5
2660 ac_compiler=`set X $ac_compile; echo $2`
2661 { (ac_try="$ac_compiler --version >&5"
2662 case "(($ac_try" in
2663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664   *) ac_try_echo=$ac_try;;
2665 esac
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667   (eval "$ac_compiler --version >&5") 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }
2671 { (ac_try="$ac_compiler -v >&5"
2672 case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677   (eval "$ac_compiler -v >&5") 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }
2681 { (ac_try="$ac_compiler -V >&5"
2682 case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687   (eval "$ac_compiler -V >&5") 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }
2691
2692 cat >conftest.$ac_ext <<_ACEOF
2693 /* confdefs.h.  */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h.  */
2698
2699 int
2700 main ()
2701 {
2702
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 ac_clean_files_save=$ac_clean_files
2708 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2709 # Try to create an executable without -o first, disregard a.out.
2710 # It will help us diagnose broken compilers, and finding out an intuition
2711 # of exeext.
2712 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2713 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2714 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2715 #
2716 # List of possible output files, starting from the most likely.
2717 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2718 # only as a last resort.  b.out is created by i960 compilers.
2719 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2720 #
2721 # The IRIX 6 linker writes into existing files which may not be
2722 # executable, retaining their permissions.  Remove them first so a
2723 # subsequent execution test works.
2724 ac_rmfiles=
2725 for ac_file in $ac_files
2726 do
2727   case $ac_file in
2728     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2729     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2730   esac
2731 done
2732 rm -f $ac_rmfiles
2733
2734 if { (ac_try="$ac_link_default"
2735 case "(($ac_try" in
2736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737   *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740   (eval "$ac_link_default") 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; then
2744   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2745 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2746 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2747 # so that the user can short-circuit this test for compilers unknown to
2748 # Autoconf.
2749 for ac_file in $ac_files ''
2750 do
2751   test -f "$ac_file" || continue
2752   case $ac_file in
2753     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2754         ;;
2755     [ab].out )
2756         # We found the default executable, but exeext='' is most
2757         # certainly right.
2758         break;;
2759     *.* )
2760         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2761         then :; else
2762            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2763         fi
2764         # We set ac_cv_exeext here because the later test for it is not
2765         # safe: cross compilers may not add the suffix if given an `-o'
2766         # argument, so we may need to know it at that point already.
2767         # Even if this section looks crufty: it has the advantage of
2768         # actually working.
2769         break;;
2770     * )
2771         break;;
2772   esac
2773 done
2774 test "$ac_cv_exeext" = no && ac_cv_exeext=
2775
2776 else
2777   ac_file=''
2778 fi
2779
2780 { echo "$as_me:$LINENO: result: $ac_file" >&5
2781 echo "${ECHO_T}$ac_file" >&6; }
2782 if test -z "$ac_file"; then
2783   echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2787 See \`config.log' for more details." >&5
2788 echo "$as_me: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&2;}
2790    { (exit 77); exit 77; }; }
2791 fi
2792
2793 ac_exeext=$ac_cv_exeext
2794
2795 # Check that the compiler produces executables we can run.  If not, either
2796 # the compiler is broken, or we cross compile.
2797 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2798 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2799 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2800 # If not cross compiling, check that we can run a simple program.
2801 if test "$cross_compiling" != yes; then
2802   if { ac_try='./$ac_file'
2803   { (case "(($ac_try" in
2804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805   *) ac_try_echo=$ac_try;;
2806 esac
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808   (eval "$ac_try") 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; }; then
2812     cross_compiling=no
2813   else
2814     if test "$cross_compiling" = maybe; then
2815         cross_compiling=yes
2816     else
2817         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2818 If you meant to cross compile, use \`--host'.
2819 See \`config.log' for more details." >&5
2820 echo "$as_me: error: cannot run C compiled programs.
2821 If you meant to cross compile, use \`--host'.
2822 See \`config.log' for more details." >&2;}
2823    { (exit 1); exit 1; }; }
2824     fi
2825   fi
2826 fi
2827 { echo "$as_me:$LINENO: result: yes" >&5
2828 echo "${ECHO_T}yes" >&6; }
2829
2830 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2831 ac_clean_files=$ac_clean_files_save
2832 # Check that the compiler produces executables we can run.  If not, either
2833 # the compiler is broken, or we cross compile.
2834 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2835 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2836 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2837 echo "${ECHO_T}$cross_compiling" >&6; }
2838
2839 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2840 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2841 if { (ac_try="$ac_link"
2842 case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847   (eval "$ac_link") 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; then
2851   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2852 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2853 # work properly (i.e., refer to `conftest.exe'), while it won't with
2854 # `rm'.
2855 for ac_file in conftest.exe conftest conftest.*; do
2856   test -f "$ac_file" || continue
2857   case $ac_file in
2858     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2859     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2860           break;;
2861     * ) break;;
2862   esac
2863 done
2864 else
2865   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2868 See \`config.log' for more details." >&2;}
2869    { (exit 1); exit 1; }; }
2870 fi
2871
2872 rm -f conftest$ac_cv_exeext
2873 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2874 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2875
2876 rm -f conftest.$ac_ext
2877 EXEEXT=$ac_cv_exeext
2878 ac_exeext=$EXEEXT
2879 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2880 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2881 if test "${ac_cv_objext+set}" = set; then
2882   echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884   cat >conftest.$ac_ext <<_ACEOF
2885 /* confdefs.h.  */
2886 _ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h.  */
2890
2891 int
2892 main ()
2893 {
2894
2895   ;
2896   return 0;
2897 }
2898 _ACEOF
2899 rm -f conftest.o conftest.obj
2900 if { (ac_try="$ac_compile"
2901 case "(($ac_try" in
2902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903   *) ac_try_echo=$ac_try;;
2904 esac
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906   (eval "$ac_compile") 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; then
2910   for ac_file in conftest.o conftest.obj conftest.*; do
2911   test -f "$ac_file" || continue;
2912   case $ac_file in
2913     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2914     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2915        break;;
2916   esac
2917 done
2918 else
2919   echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2925 See \`config.log' for more details." >&2;}
2926    { (exit 1); exit 1; }; }
2927 fi
2928
2929 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2930 fi
2931 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2932 echo "${ECHO_T}$ac_cv_objext" >&6; }
2933 OBJEXT=$ac_cv_objext
2934 ac_objext=$OBJEXT
2935 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2936 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2937 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2938   echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940   cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946
2947 int
2948 main ()
2949 {
2950 #ifndef __GNUC__
2951        choke me
2952 #endif
2953
2954   ;
2955   return 0;
2956 }
2957 _ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (ac_try="$ac_compile"
2960 case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965   (eval "$ac_compile") 2>conftest.er1
2966   ac_status=$?
2967   grep -v '^ *+' conftest.er1 >conftest.err
2968   rm -f conftest.er1
2969   cat conftest.err >&5
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); } && {
2972          test -z "$ac_c_werror_flag" ||
2973          test ! -s conftest.err
2974        } && test -s conftest.$ac_objext; then
2975   ac_compiler_gnu=yes
2976 else
2977   echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980         ac_compiler_gnu=no
2981 fi
2982
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2985
2986 fi
2987 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2988 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2989 GCC=`test $ac_compiler_gnu = yes && echo yes`
2990 ac_test_CFLAGS=${CFLAGS+set}
2991 ac_save_CFLAGS=$CFLAGS
2992 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2993 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2994 if test "${ac_cv_prog_cc_g+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   ac_save_c_werror_flag=$ac_c_werror_flag
2998    ac_c_werror_flag=yes
2999    ac_cv_prog_cc_g=no
3000    CFLAGS="-g"
3001    cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007
3008 int
3009 main ()
3010 {
3011
3012   ;
3013   return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023   (eval "$ac_compile") 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } && {
3030          test -z "$ac_c_werror_flag" ||
3031          test ! -s conftest.err
3032        } && test -s conftest.$ac_objext; then
3033   ac_cv_prog_cc_g=yes
3034 else
3035   echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038         CFLAGS=""
3039       cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045
3046 int
3047 main ()
3048 {
3049
3050   ;
3051   return 0;
3052 }
3053 _ACEOF
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3056 case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_compile") 2>conftest.er1
3062   ac_status=$?
3063   grep -v '^ *+' conftest.er1 >conftest.err
3064   rm -f conftest.er1
3065   cat conftest.err >&5
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); } && {
3068          test -z "$ac_c_werror_flag" ||
3069          test ! -s conftest.err
3070        } && test -s conftest.$ac_objext; then
3071   :
3072 else
3073   echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076         ac_c_werror_flag=$ac_save_c_werror_flag
3077          CFLAGS="-g"
3078          cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084
3085 int
3086 main ()
3087 {
3088
3089   ;
3090   return 0;
3091 }
3092 _ACEOF
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3095 case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_compile") 2>conftest.er1
3101   ac_status=$?
3102   grep -v '^ *+' conftest.er1 >conftest.err
3103   rm -f conftest.er1
3104   cat conftest.err >&5
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); } && {
3107          test -z "$ac_c_werror_flag" ||
3108          test ! -s conftest.err
3109        } && test -s conftest.$ac_objext; then
3110   ac_cv_prog_cc_g=yes
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115
3116 fi
3117
3118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119 fi
3120
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 fi
3123
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125    ac_c_werror_flag=$ac_save_c_werror_flag
3126 fi
3127 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3128 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3129 if test "$ac_test_CFLAGS" = set; then
3130   CFLAGS=$ac_save_CFLAGS
3131 elif test $ac_cv_prog_cc_g = yes; then
3132   if test "$GCC" = yes; then
3133     CFLAGS="-g -O2"
3134   else
3135     CFLAGS="-g"
3136   fi
3137 else
3138   if test "$GCC" = yes; then
3139     CFLAGS="-O2"
3140   else
3141     CFLAGS=
3142   fi
3143 fi
3144 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3145 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3146 if test "${ac_cv_prog_cc_c89+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   ac_cv_prog_cc_c89=no
3150 ac_save_CC=$CC
3151 cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h.  */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h.  */
3157 #include <stdarg.h>
3158 #include <stdio.h>
3159 #include <sys/types.h>
3160 #include <sys/stat.h>
3161 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3162 struct buf { int x; };
3163 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3164 static char *e (p, i)
3165      char **p;
3166      int i;
3167 {
3168   return p[i];
3169 }
3170 static char *f (char * (*g) (char **, int), char **p, ...)
3171 {
3172   char *s;
3173   va_list v;
3174   va_start (v,p);
3175   s = g (p, va_arg (v,int));
3176   va_end (v);
3177   return s;
3178 }
3179
3180 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3181    function prototypes and stuff, but not '\xHH' hex character constants.
3182    These don't provoke an error unfortunately, instead are silently treated
3183    as 'x'.  The following induces an error, until -std is added to get
3184    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3185    array size at least.  It's necessary to write '\x00'==0 to get something
3186    that's true only with -std.  */
3187 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3188
3189 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3190    inside strings and character constants.  */
3191 #define FOO(x) 'x'
3192 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3193
3194 int test (int i, double x);
3195 struct s1 {int (*f) (int a);};
3196 struct s2 {int (*f) (double a);};
3197 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3198 int argc;
3199 char **argv;
3200 int
3201 main ()
3202 {
3203 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3204   ;
3205   return 0;
3206 }
3207 _ACEOF
3208 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3209         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3210 do
3211   CC="$ac_save_CC $ac_arg"
3212   rm -f conftest.$ac_objext
3213 if { (ac_try="$ac_compile"
3214 case "(($ac_try" in
3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216   *) ac_try_echo=$ac_try;;
3217 esac
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219   (eval "$ac_compile") 2>conftest.er1
3220   ac_status=$?
3221   grep -v '^ *+' conftest.er1 >conftest.err
3222   rm -f conftest.er1
3223   cat conftest.err >&5
3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225   (exit $ac_status); } && {
3226          test -z "$ac_c_werror_flag" ||
3227          test ! -s conftest.err
3228        } && test -s conftest.$ac_objext; then
3229   ac_cv_prog_cc_c89=$ac_arg
3230 else
3231   echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234
3235 fi
3236
3237 rm -f core conftest.err conftest.$ac_objext
3238   test "x$ac_cv_prog_cc_c89" != "xno" && break
3239 done
3240 rm -f conftest.$ac_ext
3241 CC=$ac_save_CC
3242
3243 fi
3244 # AC_CACHE_VAL
3245 case "x$ac_cv_prog_cc_c89" in
3246   x)
3247     { echo "$as_me:$LINENO: result: none needed" >&5
3248 echo "${ECHO_T}none needed" >&6; } ;;
3249   xno)
3250     { echo "$as_me:$LINENO: result: unsupported" >&5
3251 echo "${ECHO_T}unsupported" >&6; } ;;
3252   *)
3253     CC="$CC $ac_cv_prog_cc_c89"
3254     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3255 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3256 esac
3257
3258
3259 ac_ext=c
3260 ac_cpp='$CPP $CPPFLAGS'
3261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264
3265 ac_ext=cpp
3266 ac_cpp='$CXXCPP $CPPFLAGS'
3267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3270 if test -z "$CXX"; then
3271   if test -n "$CCC"; then
3272     CXX=$CCC
3273   else
3274     if test -n "$ac_tool_prefix"; then
3275   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3276   do
3277     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3281 if test "${ac_cv_prog_CXX+set}" = set; then
3282   echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284   if test -n "$CXX"; then
3285   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290   IFS=$as_save_IFS
3291   test -z "$as_dir" && as_dir=.
3292   for ac_exec_ext in '' $ac_executable_extensions; do
3293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296     break 2
3297   fi
3298 done
3299 done
3300 IFS=$as_save_IFS
3301
3302 fi
3303 fi
3304 CXX=$ac_cv_prog_CXX
3305 if test -n "$CXX"; then
3306   { echo "$as_me:$LINENO: result: $CXX" >&5
3307 echo "${ECHO_T}$CXX" >&6; }
3308 else
3309   { echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6; }
3311 fi
3312
3313
3314     test -n "$CXX" && break
3315   done
3316 fi
3317 if test -z "$CXX"; then
3318   ac_ct_CXX=$CXX
3319   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3320 do
3321   # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3325 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   if test -n "$ac_ct_CXX"; then
3329   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334   IFS=$as_save_IFS
3335   test -z "$as_dir" && as_dir=.
3336   for ac_exec_ext in '' $ac_executable_extensions; do
3337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338     ac_cv_prog_ac_ct_CXX="$ac_prog"
3339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340     break 2
3341   fi
3342 done
3343 done
3344 IFS=$as_save_IFS
3345
3346 fi
3347 fi
3348 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3349 if test -n "$ac_ct_CXX"; then
3350   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3351 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3352 else
3353   { echo "$as_me:$LINENO: result: no" >&5
3354 echo "${ECHO_T}no" >&6; }
3355 fi
3356
3357
3358   test -n "$ac_ct_CXX" && break
3359 done
3360
3361   if test "x$ac_ct_CXX" = x; then
3362     CXX="g++"
3363   else
3364     case $cross_compiling:$ac_tool_warned in
3365 yes:)
3366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3367 whose name does not start with the host triplet.  If you think this
3368 configuration is useful to you, please write to autoconf@gnu.org." >&5
3369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3370 whose name does not start with the host triplet.  If you think this
3371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3372 ac_tool_warned=yes ;;
3373 esac
3374     CXX=$ac_ct_CXX
3375   fi
3376 fi
3377
3378   fi
3379 fi
3380 # Provide some information about the compiler.
3381 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3382 ac_compiler=`set X $ac_compile; echo $2`
3383 { (ac_try="$ac_compiler --version >&5"
3384 case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389   (eval "$ac_compiler --version >&5") 2>&5
3390   ac_status=$?
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); }
3393 { (ac_try="$ac_compiler -v >&5"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399   (eval "$ac_compiler -v >&5") 2>&5
3400   ac_status=$?
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); }
3403 { (ac_try="$ac_compiler -V >&5"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409   (eval "$ac_compiler -V >&5") 2>&5
3410   ac_status=$?
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); }
3413
3414 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3415 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3416 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3417   echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419   cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h.  */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h.  */
3425
3426 int
3427 main ()
3428 {
3429 #ifndef __GNUC__
3430        choke me
3431 #endif
3432
3433   ;
3434   return 0;
3435 }
3436 _ACEOF
3437 rm -f conftest.$ac_objext
3438 if { (ac_try="$ac_compile"
3439 case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444   (eval "$ac_compile") 2>conftest.er1
3445   ac_status=$?
3446   grep -v '^ *+' conftest.er1 >conftest.err
3447   rm -f conftest.er1
3448   cat conftest.err >&5
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); } && {
3451          test -z "$ac_cxx_werror_flag" ||
3452          test ! -s conftest.err
3453        } && test -s conftest.$ac_objext; then
3454   ac_compiler_gnu=yes
3455 else
3456   echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459         ac_compiler_gnu=no
3460 fi
3461
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3464
3465 fi
3466 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3467 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3468 GXX=`test $ac_compiler_gnu = yes && echo yes`
3469 ac_test_CXXFLAGS=${CXXFLAGS+set}
3470 ac_save_CXXFLAGS=$CXXFLAGS
3471 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3472 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3473 if test "${ac_cv_prog_cxx_g+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3477    ac_cxx_werror_flag=yes
3478    ac_cv_prog_cxx_g=no
3479    CXXFLAGS="-g"
3480    cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h.  */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h.  */
3486
3487 int
3488 main ()
3489 {
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502   (eval "$ac_compile") 2>conftest.er1
3503   ac_status=$?
3504   grep -v '^ *+' conftest.er1 >conftest.err
3505   rm -f conftest.er1
3506   cat conftest.err >&5
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } && {
3509          test -z "$ac_cxx_werror_flag" ||
3510          test ! -s conftest.err
3511        } && test -s conftest.$ac_objext; then
3512   ac_cv_prog_cxx_g=yes
3513 else
3514   echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517         CXXFLAGS=""
3518       cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h.  */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 rm -f conftest.$ac_objext
3534 if { (ac_try="$ac_compile"
3535 case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_compile") 2>conftest.er1
3541   ac_status=$?
3542   grep -v '^ *+' conftest.er1 >conftest.err
3543   rm -f conftest.er1
3544   cat conftest.err >&5
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); } && {
3547          test -z "$ac_cxx_werror_flag" ||
3548          test ! -s conftest.err
3549        } && test -s conftest.$ac_objext; then
3550   :
3551 else
3552   echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3556          CXXFLAGS="-g"
3557          cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h.  */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h.  */
3563
3564 int
3565 main ()
3566 {
3567
3568   ;
3569   return 0;
3570 }
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (ac_try="$ac_compile"
3574 case "(($ac_try" in
3575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576   *) ac_try_echo=$ac_try;;
3577 esac
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579   (eval "$ac_compile") 2>conftest.er1
3580   ac_status=$?
3581   grep -v '^ *+' conftest.er1 >conftest.err
3582   rm -f conftest.er1
3583   cat conftest.err >&5
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); } && {
3586          test -z "$ac_cxx_werror_flag" ||
3587          test ! -s conftest.err
3588        } && test -s conftest.$ac_objext; then
3589   ac_cv_prog_cxx_g=yes
3590 else
3591   echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594
3595 fi
3596
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 fi
3599
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 fi
3602
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3605 fi
3606 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3607 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3608 if test "$ac_test_CXXFLAGS" = set; then
3609   CXXFLAGS=$ac_save_CXXFLAGS
3610 elif test $ac_cv_prog_cxx_g = yes; then
3611   if test "$GXX" = yes; then
3612     CXXFLAGS="-g -O2"
3613   else
3614     CXXFLAGS="-g"
3615   fi
3616 else
3617   if test "$GXX" = yes; then
3618     CXXFLAGS="-O2"
3619   else
3620     CXXFLAGS=
3621   fi
3622 fi
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
3629 if test "x$CC" != xcc; then
3630   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3631 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3632 else
3633   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3634 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3635 fi
3636 set dummy $CC; ac_cc=`echo $2 |
3637                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3638 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h.  */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h.  */
3647
3648 int
3649 main ()
3650 {
3651
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 # Make sure it works both with $CC and with simple cc.
3657 # We do the test twice because some compilers refuse to overwrite an
3658 # existing .o file with -o, though they will create one.
3659 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3660 rm -f conftest2.*
3661 if { (case "(($ac_try" in
3662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663   *) ac_try_echo=$ac_try;;
3664 esac
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666   (eval "$ac_try") 2>&5
3667   ac_status=$?
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); } &&
3670    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675   (eval "$ac_try") 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); };
3679 then
3680   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3681   if test "x$CC" != xcc; then
3682     # Test first that cc exists at all.
3683     if { ac_try='cc -c conftest.$ac_ext >&5'
3684   { (case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689   (eval "$ac_try") 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); }; }; then
3693       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3694       rm -f conftest2.*
3695       if { (case "(($ac_try" in
3696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697   *) ac_try_echo=$ac_try;;
3698 esac
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700   (eval "$ac_try") 2>&5
3701   ac_status=$?
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } &&
3704          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706   *) ac_try_echo=$ac_try;;
3707 esac
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709   (eval "$ac_try") 2>&5
3710   ac_status=$?
3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712   (exit $ac_status); };
3713       then
3714         # cc works too.
3715         :
3716       else
3717         # cc exists but doesn't like -o.
3718         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3719       fi
3720     fi
3721   fi
3722 else
3723   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3724 fi
3725 rm -f core conftest*
3726
3727 fi
3728 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3729   { echo "$as_me:$LINENO: result: yes" >&5
3730 echo "${ECHO_T}yes" >&6; }
3731 else
3732   { echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6; }
3734
3735 cat >>confdefs.h <<\_ACEOF
3736 #define NO_MINUS_C_MINUS_O 1
3737 _ACEOF
3738
3739 fi
3740
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3747 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3748 # On Suns, sometimes $CPP names a directory.
3749 if test -n "$CPP" && test -d "$CPP"; then
3750   CPP=
3751 fi
3752 if test -z "$CPP"; then
3753   if test "${ac_cv_prog_CPP+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756       # Double quotes because CPP needs to be expanded
3757     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3758     do
3759       ac_preproc_ok=false
3760 for ac_c_preproc_warn_flag in '' yes
3761 do
3762   # Use a header file that comes with gcc, so configuring glibc
3763   # with a fresh cross-compiler works.
3764   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765   # <limits.h> exists even on freestanding compilers.
3766   # On the NeXT, cc -E runs the code through the compiler's parser,
3767   # not just through cpp. "Syntax error" is here to catch this case.
3768   cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h.  */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h.  */
3774 #ifdef __STDC__
3775 # include <limits.h>
3776 #else
3777 # include <assert.h>
3778 #endif
3779                      Syntax error
3780 _ACEOF
3781 if { (ac_try="$ac_cpp conftest.$ac_ext"
3782 case "(($ac_try" in
3783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784   *) ac_try_echo=$ac_try;;
3785 esac
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3788   ac_status=$?
3789   grep -v '^ *+' conftest.er1 >conftest.err
3790   rm -f conftest.er1
3791   cat conftest.err >&5
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); } >/dev/null && {
3794          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3795          test ! -s conftest.err
3796        }; then
3797   :
3798 else
3799   echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802   # Broken: fails on valid input.
3803 continue
3804 fi
3805
3806 rm -f conftest.err conftest.$ac_ext
3807
3808   # OK, works on sane cases.  Now check whether nonexistent headers
3809   # can be detected and how.
3810   cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h.  */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h.  */
3816 #include <ac_nonexistent.h>
3817 _ACEOF
3818 if { (ac_try="$ac_cpp conftest.$ac_ext"
3819 case "(($ac_try" in
3820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821   *) ac_try_echo=$ac_try;;
3822 esac
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3825   ac_status=$?
3826   grep -v '^ *+' conftest.er1 >conftest.err
3827   rm -f conftest.er1
3828   cat conftest.err >&5
3829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); } >/dev/null && {
3831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3832          test ! -s conftest.err
3833        }; then
3834   # Broken: success on invalid input.
3835 continue
3836 else
3837   echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840   # Passes both tests.
3841 ac_preproc_ok=:
3842 break
3843 fi
3844
3845 rm -f conftest.err conftest.$ac_ext
3846
3847 done
3848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3849 rm -f conftest.err conftest.$ac_ext
3850 if $ac_preproc_ok; then
3851   break
3852 fi
3853
3854     done
3855     ac_cv_prog_CPP=$CPP
3856
3857 fi
3858   CPP=$ac_cv_prog_CPP
3859 else
3860   ac_cv_prog_CPP=$CPP
3861 fi
3862 { echo "$as_me:$LINENO: result: $CPP" >&5
3863 echo "${ECHO_T}$CPP" >&6; }
3864 ac_preproc_ok=false
3865 for ac_c_preproc_warn_flag in '' yes
3866 do
3867   # Use a header file that comes with gcc, so configuring glibc
3868   # with a fresh cross-compiler works.
3869   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870   # <limits.h> exists even on freestanding compilers.
3871   # On the NeXT, cc -E runs the code through the compiler's parser,
3872   # not just through cpp. "Syntax error" is here to catch this case.
3873   cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h.  */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h.  */
3879 #ifdef __STDC__
3880 # include <limits.h>
3881 #else
3882 # include <assert.h>
3883 #endif
3884                      Syntax error
3885 _ACEOF
3886 if { (ac_try="$ac_cpp conftest.$ac_ext"
3887 case "(($ac_try" in
3888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889   *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3893   ac_status=$?
3894   grep -v '^ *+' conftest.er1 >conftest.err
3895   rm -f conftest.er1
3896   cat conftest.err >&5
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); } >/dev/null && {
3899          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3900          test ! -s conftest.err
3901        }; then
3902   :
3903 else
3904   echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907   # Broken: fails on valid input.
3908 continue
3909 fi
3910
3911 rm -f conftest.err conftest.$ac_ext
3912
3913   # OK, works on sane cases.  Now check whether nonexistent headers
3914   # can be detected and how.
3915   cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h.  */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h.  */
3921 #include <ac_nonexistent.h>
3922 _ACEOF
3923 if { (ac_try="$ac_cpp conftest.$ac_ext"
3924 case "(($ac_try" in
3925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926   *) ac_try_echo=$ac_try;;
3927 esac
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3930   ac_status=$?
3931   grep -v '^ *+' conftest.er1 >conftest.err
3932   rm -f conftest.er1
3933   cat conftest.err >&5
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); } >/dev/null && {
3936          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3937          test ! -s conftest.err
3938        }; then
3939   # Broken: success on invalid input.
3940 continue
3941 else
3942   echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3944
3945   # Passes both tests.
3946 ac_preproc_ok=:
3947 break
3948 fi
3949
3950 rm -f conftest.err conftest.$ac_ext
3951
3952 done
3953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3954 rm -f conftest.err conftest.$ac_ext
3955 if $ac_preproc_ok; then
3956   :
3957 else
3958   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3959 See \`config.log' for more details." >&5
3960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3961 See \`config.log' for more details." >&2;}
3962    { (exit 1); exit 1; }; }
3963 fi
3964
3965 ac_ext=c
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970
3971
3972 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3973 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_GREP+set}" = set; then
3975   echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977   # Extract the first word of "grep ggrep" to use in msg output
3978 if test -z "$GREP"; then
3979 set dummy grep ggrep; ac_prog_name=$2
3980 if test "${ac_cv_path_GREP+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   ac_path_GREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987 do
3988   IFS=$as_save_IFS
3989   test -z "$as_dir" && as_dir=.
3990   for ac_prog in grep ggrep; do
3991   for ac_exec_ext in '' $ac_executable_extensions; do
3992     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3993     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3994     # Check for GNU ac_path_GREP and select it if it is found.
3995   # Check for GNU $ac_path_GREP
3996 case `"$ac_path_GREP" --version 2>&1` in
3997 *GNU*)
3998   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3999 *)
4000   ac_count=0
4001   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4002   while :
4003   do
4004     cat "conftest.in" "conftest.in" >"conftest.tmp"
4005     mv "conftest.tmp" "conftest.in"
4006     cp "conftest.in" "conftest.nl"
4007     echo 'GREP' >> "conftest.nl"
4008     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010     ac_count=`expr $ac_count + 1`
4011     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4012       # Best one so far, save it but keep looking for a better one
4013       ac_cv_path_GREP="$ac_path_GREP"
4014       ac_path_GREP_max=$ac_count
4015     fi
4016     # 10*(2^10) chars as input seems more than enough
4017     test $ac_count -gt 10 && break
4018   done
4019   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020 esac
4021
4022
4023     $ac_path_GREP_found && break 3
4024   done
4025 done
4026
4027 done
4028 IFS=$as_save_IFS
4029
4030
4031 fi
4032
4033 GREP="$ac_cv_path_GREP"
4034 if test -z "$GREP"; then
4035   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4036 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4037    { (exit 1); exit 1; }; }
4038 fi
4039
4040 else
4041   ac_cv_path_GREP=$GREP
4042 fi
4043
4044
4045 fi
4046 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4047 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4048  GREP="$ac_cv_path_GREP"
4049
4050
4051 { echo "$as_me:$LINENO: checking for egrep" >&5
4052 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4053 if test "${ac_cv_path_EGREP+set}" = set; then
4054   echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057    then ac_cv_path_EGREP="$GREP -E"
4058    else
4059      # Extract the first word of "egrep" to use in msg output
4060 if test -z "$EGREP"; then
4061 set dummy egrep; ac_prog_name=$2
4062 if test "${ac_cv_path_EGREP+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   ac_path_EGREP_found=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4069 do
4070   IFS=$as_save_IFS
4071   test -z "$as_dir" && as_dir=.
4072   for ac_prog in egrep; do
4073   for ac_exec_ext in '' $ac_executable_extensions; do
4074     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4075     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4076     # Check for GNU ac_path_EGREP and select it if it is found.
4077   # Check for GNU $ac_path_EGREP
4078 case `"$ac_path_EGREP" --version 2>&1` in
4079 *GNU*)
4080   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4081 *)
4082   ac_count=0
4083   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4084   while :
4085   do
4086     cat "conftest.in" "conftest.in" >"conftest.tmp"
4087     mv "conftest.tmp" "conftest.in"
4088     cp "conftest.in" "conftest.nl"
4089     echo 'EGREP' >> "conftest.nl"
4090     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092     ac_count=`expr $ac_count + 1`
4093     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4094       # Best one so far, save it but keep looking for a better one
4095       ac_cv_path_EGREP="$ac_path_EGREP"
4096       ac_path_EGREP_max=$ac_count
4097     fi
4098     # 10*(2^10) chars as input seems more than enough
4099     test $ac_count -gt 10 && break
4100   done
4101   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4102 esac
4103
4104
4105     $ac_path_EGREP_found && break 3
4106   done
4107 done
4108
4109 done
4110 IFS=$as_save_IFS
4111
4112
4113 fi
4114
4115 EGREP="$ac_cv_path_EGREP"
4116 if test -z "$EGREP"; then
4117   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4118 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4119    { (exit 1); exit 1; }; }
4120 fi
4121
4122 else
4123   ac_cv_path_EGREP=$EGREP
4124 fi
4125
4126
4127    fi
4128 fi
4129 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4130 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4131  EGREP="$ac_cv_path_EGREP"
4132
4133
4134 if test $ac_cv_c_compiler_gnu = yes; then
4135     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4136 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4137 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4138   echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140     ac_pattern="Autoconf.*'x'"
4141   cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h.  */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h.  */
4147 #include <sgtty.h>
4148 Autoconf TIOCGETP
4149 _ACEOF
4150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4152   ac_cv_prog_gcc_traditional=yes
4153 else
4154   ac_cv_prog_gcc_traditional=no
4155 fi
4156 rm -f conftest*
4157
4158
4159   if test $ac_cv_prog_gcc_traditional = no; then
4160     cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h.  */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h.  */
4166 #include <termio.h>
4167 Autoconf TCGETA
4168 _ACEOF
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4171   ac_cv_prog_gcc_traditional=yes
4172 fi
4173 rm -f conftest*
4174
4175   fi
4176 fi
4177 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4178 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4179   if test $ac_cv_prog_gcc_traditional = yes; then
4180     CC="$CC -traditional"
4181   fi
4182 fi
4183
4184 BASECC=`basename $CC`
4185 have_gcc=no
4186 if test "x$BASECC" = xgcc; then
4187    cat >>confdefs.h <<\_ACEOF
4188 #define HAVE_GCC 1
4189 _ACEOF
4190
4191    have_gcc=yes
4192 fi
4193 # Extract the first word of "$CXX", so it can be a program name with args.
4194 set dummy $CXX; ac_word=$2
4195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4197 if test "${ac_cv_path_CXX+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   case $CXX in
4201   [\\/]* | ?:[\\/]*)
4202   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4203   ;;
4204   *)
4205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208   IFS=$as_save_IFS
4209   test -z "$as_dir" && as_dir=.
4210   for ac_exec_ext in '' $ac_executable_extensions; do
4211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214     break 2
4215   fi
4216 done
4217 done
4218 IFS=$as_save_IFS
4219
4220   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4221   ;;
4222 esac
4223 fi
4224 CXX=$ac_cv_path_CXX
4225 if test -n "$CXX"; then
4226   { echo "$as_me:$LINENO: result: $CXX" >&5
4227 echo "${ECHO_T}$CXX" >&6; }
4228 else
4229   { echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6; }
4231 fi
4232
4233
4234 if test ! -e $CXX; then
4235    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4236 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4237    { (exit 1); exit 1; }; }
4238 fi
4239
4240 # Find a good install program.  We prefer a C program (faster),
4241 # so one script is as good as another.  But avoid the broken or
4242 # incompatible versions:
4243 # SysV /etc/install, /usr/sbin/install
4244 # SunOS /usr/etc/install
4245 # IRIX /sbin/install
4246 # AIX /bin/install
4247 # AmigaOS /C/install, which installs bootblocks on floppy discs
4248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4251 # OS/2's system install, which has a completely different semantic
4252 # ./install, which can be erroneously created by make from ./install.sh.
4253 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4254 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4255 if test -z "$INSTALL"; then
4256 if test "${ac_cv_path_install+set}" = set; then
4257   echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH
4261 do
4262   IFS=$as_save_IFS
4263   test -z "$as_dir" && as_dir=.
4264   # Account for people who put trailing slashes in PATH elements.
4265 case $as_dir/ in
4266   ./ | .// | /cC/* | \
4267   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4268   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4269   /usr/ucb/* ) ;;
4270   *)
4271     # OSF1 and SCO ODT 3.0 have their own names for install.
4272     # Don't use installbsd from OSF since it installs stuff as root
4273     # by default.
4274     for ac_prog in ginstall scoinst install; do
4275       for ac_exec_ext in '' $ac_executable_extensions; do
4276         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4277           if test $ac_prog = install &&
4278             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4279             # AIX install.  It has an incompatible calling convention.
4280             :
4281           elif test $ac_prog = install &&
4282             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4283             # program-specific install script used by HP pwplus--don't use.
4284             :
4285           else
4286             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4287             break 3
4288           fi
4289         fi
4290       done
4291     done
4292     ;;
4293 esac
4294 done
4295 IFS=$as_save_IFS
4296
4297
4298 fi
4299   if test "${ac_cv_path_install+set}" = set; then
4300     INSTALL=$ac_cv_path_install
4301   else
4302     # As a last resort, use the slow shell script.  Don't cache a
4303     # value for INSTALL within a source directory, because that will
4304     # break other packages using the cache if that directory is
4305     # removed, or if the value is a relative name.
4306     INSTALL=$ac_install_sh
4307   fi
4308 fi
4309 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4310 echo "${ECHO_T}$INSTALL" >&6; }
4311
4312 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4313 # It thinks the first close brace ends the variable substitution.
4314 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4315
4316 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4317
4318 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4319
4320 # Extract the first word of "mv", so it can be a program name with args.
4321 set dummy mv; ac_word=$2
4322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4324 if test "${ac_cv_path_MV+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   case $MV in
4328   [\\/]* | ?:[\\/]*)
4329   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4330   ;;
4331   *)
4332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4334 do
4335   IFS=$as_save_IFS
4336   test -z "$as_dir" && as_dir=.
4337   for ac_exec_ext in '' $ac_executable_extensions; do
4338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341     break 2
4342   fi
4343 done
4344 done
4345 IFS=$as_save_IFS
4346
4347   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4348   ;;
4349 esac
4350 fi
4351 MV=$ac_cv_path_MV
4352 if test -n "$MV"; then
4353   { echo "$as_me:$LINENO: result: $MV" >&5
4354 echo "${ECHO_T}$MV" >&6; }
4355 else
4356   { echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6; }
4358 fi
4359
4360
4361 # Extract the first word of "rm", so it can be a program name with args.
4362 set dummy rm; ac_word=$2
4363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365 if test "${ac_cv_path_REMOVE+set}" = set; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368   case $REMOVE in
4369   [\\/]* | ?:[\\/]*)
4370   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4371   ;;
4372   *)
4373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376   IFS=$as_save_IFS
4377   test -z "$as_dir" && as_dir=.
4378   for ac_exec_ext in '' $ac_executable_extensions; do
4379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382     break 2
4383   fi
4384 done
4385 done
4386 IFS=$as_save_IFS
4387
4388   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4389   ;;
4390 esac
4391 fi
4392 REMOVE=$ac_cv_path_REMOVE
4393 if test -n "$REMOVE"; then
4394   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4395 echo "${ECHO_T}$REMOVE" >&6; }
4396 else
4397   { echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6; }
4399 fi
4400
4401
4402 # Extract the first word of "cp", so it can be a program name with args.
4403 set dummy cp; ac_word=$2
4404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4406 if test "${ac_cv_path_CP+set}" = set; then
4407   echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409   case $CP in
4410   [\\/]* | ?:[\\/]*)
4411   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4412   ;;
4413   *)
4414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417   IFS=$as_save_IFS
4418   test -z "$as_dir" && as_dir=.
4419   for ac_exec_ext in '' $ac_executable_extensions; do
4420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423     break 2
4424   fi
4425 done
4426 done
4427 IFS=$as_save_IFS
4428
4429   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4430   ;;
4431 esac
4432 fi
4433 CP=$ac_cv_path_CP
4434 if test -n "$CP"; then
4435   { echo "$as_me:$LINENO: result: $CP" >&5
4436 echo "${ECHO_T}$CP" >&6; }
4437 else
4438   { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4440 fi
4441
4442
4443 # Extract the first word of "sed", so it can be a program name with args.
4444 set dummy sed; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_path_SED+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   case $SED in
4451   [\\/]* | ?:[\\/]*)
4452   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4453   ;;
4454   *)
4455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460   for ac_exec_ext in '' $ac_executable_extensions; do
4461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464     break 2
4465   fi
4466 done
4467 done
4468 IFS=$as_save_IFS
4469
4470   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4471   ;;
4472 esac
4473 fi
4474 SED=$ac_cv_path_SED
4475 if test -n "$SED"; then
4476   { echo "$as_me:$LINENO: result: $SED" >&5
4477 echo "${ECHO_T}$SED" >&6; }
4478 else
4479   { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4481 fi
4482
4483
4484 # Extract the first word of "echo", so it can be a program name with args.
4485 set dummy echo; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_path_ECHO+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   case $ECHO in
4492   [\\/]* | ?:[\\/]*)
4493   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4494   ;;
4495   *)
4496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499   IFS=$as_save_IFS
4500   test -z "$as_dir" && as_dir=.
4501   for ac_exec_ext in '' $ac_executable_extensions; do
4502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505     break 2
4506   fi
4507 done
4508 done
4509 IFS=$as_save_IFS
4510
4511   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4512   ;;
4513 esac
4514 fi
4515 ECHO=$ac_cv_path_ECHO
4516 if test -n "$ECHO"; then
4517   { echo "$as_me:$LINENO: result: $ECHO" >&5
4518 echo "${ECHO_T}$ECHO" >&6; }
4519 else
4520   { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4522 fi
4523
4524
4525 # Extract the first word of "cmp", so it can be a program name with args.
4526 set dummy cmp; ac_word=$2
4527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4529 if test "${ac_cv_path_CMP+set}" = set; then
4530   echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532   case $CMP in
4533   [\\/]* | ?:[\\/]*)
4534   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4535   ;;
4536   *)
4537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540   IFS=$as_save_IFS
4541   test -z "$as_dir" && as_dir=.
4542   for ac_exec_ext in '' $ac_executable_extensions; do
4543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546     break 2
4547   fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4553   ;;
4554 esac
4555 fi
4556 CMP=$ac_cv_path_CMP
4557 if test -n "$CMP"; then
4558   { echo "$as_me:$LINENO: result: $CMP" >&5
4559 echo "${ECHO_T}$CMP" >&6; }
4560 else
4561   { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4563 fi
4564
4565
4566 # Extract the first word of "tbl", so it can be a program name with args.
4567 set dummy tbl; ac_word=$2
4568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4570 if test "${ac_cv_path_TBL+set}" = set; then
4571   echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573   case $TBL in
4574   [\\/]* | ?:[\\/]*)
4575   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4576   ;;
4577   *)
4578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581   IFS=$as_save_IFS
4582   test -z "$as_dir" && as_dir=.
4583   for ac_exec_ext in '' $ac_executable_extensions; do
4584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587     break 2
4588   fi
4589 done
4590 done
4591 IFS=$as_save_IFS
4592
4593   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4594   ;;
4595 esac
4596 fi
4597 TBL=$ac_cv_path_TBL
4598 if test -n "$TBL"; then
4599   { echo "$as_me:$LINENO: result: $TBL" >&5
4600 echo "${ECHO_T}$TBL" >&6; }
4601 else
4602   { echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6; }
4604 fi
4605
4606
4607 # Extract the first word of "ar", so it can be a program name with args.
4608 set dummy ar; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_path_AR+set}" = set; then
4612   echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614   case $AR in
4615   [\\/]* | ?:[\\/]*)
4616   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4617   ;;
4618   *)
4619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624   for ac_exec_ext in '' $ac_executable_extensions; do
4625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628     break 2
4629   fi
4630 done
4631 done
4632 IFS=$as_save_IFS
4633
4634   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4635   ;;
4636 esac
4637 fi
4638 AR=$ac_cv_path_AR
4639 if test -n "$AR"; then
4640   { echo "$as_me:$LINENO: result: $AR" >&5
4641 echo "${ECHO_T}$AR" >&6; }
4642 else
4643   { echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6; }
4645 fi
4646
4647
4648 # Extract the first word of "openssl", so it can be a program name with args.
4649 set dummy openssl; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_path_OPENSSL+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   case $OPENSSL in
4656   [\\/]* | ?:[\\/]*)
4657   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4658   ;;
4659   *)
4660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665   for ac_exec_ext in '' $ac_executable_extensions; do
4666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4676   ;;
4677 esac
4678 fi
4679 OPENSSL=$ac_cv_path_OPENSSL
4680 if test -n "$OPENSSL"; then
4681   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4682 echo "${ECHO_T}$OPENSSL" >&6; }
4683 else
4684   { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4686 fi
4687
4688
4689 # Extract the first word of "mtx", so it can be a program name with args.
4690 set dummy mtx; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_path_MTX+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   case $MTX in
4697   [\\/]* | ?:[\\/]*)
4698   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4699   ;;
4700   *)
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706   for ac_exec_ext in '' $ac_executable_extensions; do
4707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713 done
4714 IFS=$as_save_IFS
4715
4716   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4717   ;;
4718 esac
4719 fi
4720 MTX=$ac_cv_path_MTX
4721 if test -n "$MTX"; then
4722   { echo "$as_me:$LINENO: result: $MTX" >&5
4723 echo "${ECHO_T}$MTX" >&6; }
4724 else
4725   { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4727 fi
4728
4729
4730 # Extract the first word of "dd", so it can be a program name with args.
4731 set dummy dd; ac_word=$2
4732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4734 if test "${ac_cv_path_DD+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   case $DD in
4738   [\\/]* | ?:[\\/]*)
4739   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4740   ;;
4741   *)
4742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745   IFS=$as_save_IFS
4746   test -z "$as_dir" && as_dir=.
4747   for ac_exec_ext in '' $ac_executable_extensions; do
4748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751     break 2
4752   fi
4753 done
4754 done
4755 IFS=$as_save_IFS
4756
4757   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4758   ;;
4759 esac
4760 fi
4761 DD=$ac_cv_path_DD
4762 if test -n "$DD"; then
4763   { echo "$as_me:$LINENO: result: $DD" >&5
4764 echo "${ECHO_T}$DD" >&6; }
4765 else
4766   { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4768 fi
4769
4770
4771 # Extract the first word of "mkisofs", so it can be a program name with args.
4772 set dummy mkisofs; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_path_MKISOFS+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778   case $MKISOFS in
4779   [\\/]* | ?:[\\/]*)
4780   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4781   ;;
4782   *)
4783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788   for ac_exec_ext in '' $ac_executable_extensions; do
4789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4799   ;;
4800 esac
4801 fi
4802 MKISOFS=$ac_cv_path_MKISOFS
4803 if test -n "$MKISOFS"; then
4804   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4805 echo "${ECHO_T}$MKISOFS" >&6; }
4806 else
4807   { echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6; }
4809 fi
4810
4811
4812 # Extract the first word of "python", so it can be a program name with args.
4813 set dummy python; ac_word=$2
4814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4816 if test "${ac_cv_path_PYTHON+set}" = set; then
4817   echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819   case $PYTHON in
4820   [\\/]* | ?:[\\/]*)
4821   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4822   ;;
4823   *)
4824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827   IFS=$as_save_IFS
4828   test -z "$as_dir" && as_dir=.
4829   for ac_exec_ext in '' $ac_executable_extensions; do
4830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833     break 2
4834   fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4840   ;;
4841 esac
4842 fi
4843 PYTHON=$ac_cv_path_PYTHON
4844 if test -n "$PYTHON"; then
4845   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4846 echo "${ECHO_T}$PYTHON" >&6; }
4847 else
4848   { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4850 fi
4851
4852
4853 # Extract the first word of "growisofs", so it can be a program name with args.
4854 set dummy growisofs; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   case $GROWISOFS in
4861   [\\/]* | ?:[\\/]*)
4862   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4863   ;;
4864   *)
4865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868   IFS=$as_save_IFS
4869   test -z "$as_dir" && as_dir=.
4870   for ac_exec_ext in '' $ac_executable_extensions; do
4871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874     break 2
4875   fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4881   ;;
4882 esac
4883 fi
4884 GROWISOFS=$ac_cv_path_GROWISOFS
4885 if test -n "$GROWISOFS"; then
4886   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4887 echo "${ECHO_T}$GROWISOFS" >&6; }
4888 else
4889   { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4891 fi
4892
4893
4894 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4895 set dummy dvd+rw-mediainfo; ac_word=$2
4896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4898 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901   case $DVDRWMEDIAINFO in
4902   [\\/]* | ?:[\\/]*)
4903   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4904   ;;
4905   *)
4906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911   for ac_exec_ext in '' $ac_executable_extensions; do
4912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4922   ;;
4923 esac
4924 fi
4925 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4926 if test -n "$DVDRWMEDIAINFO"; then
4927   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4928 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4929 else
4930   { echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6; }
4932 fi
4933
4934
4935 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4936 set dummy dvd+rw-format; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942   case $DVDRWFORMAT in
4943   [\\/]* | ?:[\\/]*)
4944   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4945   ;;
4946   *)
4947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952   for ac_exec_ext in '' $ac_executable_extensions; do
4953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956     break 2
4957   fi
4958 done
4959 done
4960 IFS=$as_save_IFS
4961
4962   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4963   ;;
4964 esac
4965 fi
4966 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4967 if test -n "$DVDRWFORMAT"; then
4968   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4969 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4970 else
4971   { echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6; }
4973 fi
4974
4975
4976 # Extract the first word of "pkg-config", so it can be a program name with args.
4977 set dummy pkg-config; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4981   echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983   case $PKGCONFIG in
4984   [\\/]* | ?:[\\/]*)
4985   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4986   ;;
4987   *)
4988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991   IFS=$as_save_IFS
4992   test -z "$as_dir" && as_dir=.
4993   for ac_exec_ext in '' $ac_executable_extensions; do
4994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997     break 2
4998   fi
4999 done
5000 done
5001 IFS=$as_save_IFS
5002
5003   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5004   ;;
5005 esac
5006 fi
5007 PKGCONFIG=$ac_cv_path_PKGCONFIG
5008 if test -n "$PKGCONFIG"; then
5009   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5010 echo "${ECHO_T}$PKGCONFIG" >&6; }
5011 else
5012   { echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6; }
5014 fi
5015
5016
5017 # Extract the first word of "qmake", so it can be a program name with args.
5018 set dummy qmake; ac_word=$2
5019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5021 if test "${ac_cv_path_QMAKE+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   case $QMAKE in
5025   [\\/]* | ?:[\\/]*)
5026   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5027   ;;
5028   *)
5029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034   for ac_exec_ext in '' $ac_executable_extensions; do
5035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041 done
5042 IFS=$as_save_IFS
5043
5044   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5045   ;;
5046 esac
5047 fi
5048 QMAKE=$ac_cv_path_QMAKE
5049 if test -n "$QMAKE"; then
5050   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5051 echo "${ECHO_T}$QMAKE" >&6; }
5052 else
5053   { echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6; }
5055 fi
5056
5057
5058 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5059 set dummy qmake-qt4; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   case $QMAKEQT4 in
5066   [\\/]* | ?:[\\/]*)
5067   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5068   ;;
5069   *)
5070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075   for ac_exec_ext in '' $ac_executable_extensions; do
5076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082 done
5083 IFS=$as_save_IFS
5084
5085   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5086   ;;
5087 esac
5088 fi
5089 QMAKEQT4=$ac_cv_path_QMAKEQT4
5090 if test -n "$QMAKEQT4"; then
5091   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5092 echo "${ECHO_T}$QMAKEQT4" >&6; }
5093 else
5094   { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5096 fi
5097
5098
5099
5100 if test "x$WXCONFIG" = x; then
5101    WXCONFIG=wx-config
5102 fi
5103 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5104 set dummy ${WXCONFIG}; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   case $WXCONFIG in
5111   [\\/]* | ?:[\\/]*)
5112   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5113   ;;
5114   *)
5115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118   IFS=$as_save_IFS
5119   test -z "$as_dir" && as_dir=.
5120   for ac_exec_ext in '' $ac_executable_extensions; do
5121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124     break 2
5125   fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5131   ;;
5132 esac
5133 fi
5134 WXCONFIG=$ac_cv_path_WXCONFIG
5135 if test -n "$WXCONFIG"; then
5136   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5137 echo "${ECHO_T}$WXCONFIG" >&6; }
5138 else
5139   { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5141 fi
5142
5143
5144
5145 # Extract the first word of "cdrecord", so it can be a program name with args.
5146 set dummy cdrecord; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_path_CDRECORD+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   case $CDRECORD in
5153   [\\/]* | ?:[\\/]*)
5154   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5155   ;;
5156   *)
5157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160   IFS=$as_save_IFS
5161   test -z "$as_dir" && as_dir=.
5162   for ac_exec_ext in '' $ac_executable_extensions; do
5163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166     break 2
5167   fi
5168 done
5169 done
5170 IFS=$as_save_IFS
5171
5172   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5173   ;;
5174 esac
5175 fi
5176 CDRECORD=$ac_cv_path_CDRECORD
5177 if test -n "$CDRECORD"; then
5178   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5179 echo "${ECHO_T}$CDRECORD" >&6; }
5180 else
5181   { echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6; }
5183 fi
5184
5185
5186 # Extract the first word of "pidof", so it can be a program name with args.
5187 set dummy pidof; ac_word=$2
5188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5190 if test "${ac_cv_path_PIDOF+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   case $PIDOF in
5194   [\\/]* | ?:[\\/]*)
5195   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5196   ;;
5197   *)
5198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201   IFS=$as_save_IFS
5202   test -z "$as_dir" && as_dir=.
5203   for ac_exec_ext in '' $ac_executable_extensions; do
5204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207     break 2
5208   fi
5209 done
5210 done
5211 IFS=$as_save_IFS
5212
5213   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5214   ;;
5215 esac
5216 fi
5217 PIDOF=$ac_cv_path_PIDOF
5218 if test -n "$PIDOF"; then
5219   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5220 echo "${ECHO_T}$PIDOF" >&6; }
5221 else
5222   { echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6; }
5224 fi
5225
5226
5227 for ac_prog in gawk mawk nawk awk
5228 do
5229   # Extract the first word of "$ac_prog", so it can be a program name with args.
5230 set dummy $ac_prog; ac_word=$2
5231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5233 if test "${ac_cv_prog_AWK+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   if test -n "$AWK"; then
5237   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244   for ac_exec_ext in '' $ac_executable_extensions; do
5245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246     ac_cv_prog_AWK="$ac_prog"
5247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248     break 2
5249   fi
5250 done
5251 done
5252 IFS=$as_save_IFS
5253
5254 fi
5255 fi
5256 AWK=$ac_cv_prog_AWK
5257 if test -n "$AWK"; then
5258   { echo "$as_me:$LINENO: result: $AWK" >&5
5259 echo "${ECHO_T}$AWK" >&6; }
5260 else
5261   { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5263 fi
5264
5265
5266   test -n "$AWK" && break
5267 done
5268
5269 # Some AWK programs fail, so test it and warn the user
5270 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5271       { if ((prog == $2) || (("(" prog ")") == $2) ||
5272       (("" prog "") == $2) ||
5273       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5274 else
5275   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5276    The regex engine of $AWK is too broken to be used you
5277    might want to install GNU AWK.
5278    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5279 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5280    The regex engine of $AWK is too broken to be used you
5281    might want to install GNU AWK.
5282    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5283    { (exit 1); exit 1; }; }
5284 fi
5285 THE_AWK=$AWK
5286 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5287 set dummy $THE_AWK; ac_word=$2
5288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5290 if test "${ac_cv_path_AWK+set}" = set; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293   case $AWK in
5294   [\\/]* | ?:[\\/]*)
5295   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5296   ;;
5297   *)
5298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301   IFS=$as_save_IFS
5302   test -z "$as_dir" && as_dir=.
5303   for ac_exec_ext in '' $ac_executable_extensions; do
5304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307     break 2
5308   fi
5309 done
5310 done
5311 IFS=$as_save_IFS
5312
5313   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5314   ;;
5315 esac
5316 fi
5317 AWK=$ac_cv_path_AWK
5318 if test -n "$AWK"; then
5319   { echo "$as_me:$LINENO: result: $AWK" >&5
5320 echo "${ECHO_T}$AWK" >&6; }
5321 else
5322   { echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6; }
5324 fi
5325
5326
5327
5328
5329 test -n "$ARFLAG" || ARFLAGS="cr"
5330
5331
5332 MAKE_SHELL=/bin/sh
5333
5334
5335
5336
5337
5338
5339
5340 # Check whether --enable-libtool was given.
5341 if test "${enable_libtool+set}" = set; then
5342   enableval=$enable_libtool;
5343        if test x$enableval = xno; then
5344           use_libtool=no
5345        fi
5346
5347
5348 fi
5349
5350 case `pwd` in
5351   *\ * | *\     *)
5352     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5353 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5354 esac
5355
5356
5357
5358 macro_version='2.2.6'
5359 macro_revision='1.3012'
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373 ltmain="$ac_aux_dir/ltmain.sh"
5374
5375 # Make sure we can run config.sub.
5376 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5377   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5378 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5379    { (exit 1); exit 1; }; }
5380
5381 { echo "$as_me:$LINENO: checking build system type" >&5
5382 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5383 if test "${ac_cv_build+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   ac_build_alias=$build_alias
5387 test "x$ac_build_alias" = x &&
5388   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5389 test "x$ac_build_alias" = x &&
5390   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5391 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5392    { (exit 1); exit 1; }; }
5393 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5394   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5395 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5396    { (exit 1); exit 1; }; }
5397
5398 fi
5399 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5400 echo "${ECHO_T}$ac_cv_build" >&6; }
5401 case $ac_cv_build in
5402 *-*-*) ;;
5403 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5404 echo "$as_me: error: invalid value of canonical build" >&2;}
5405    { (exit 1); exit 1; }; };;
5406 esac
5407 build=$ac_cv_build
5408 ac_save_IFS=$IFS; IFS='-'
5409 set x $ac_cv_build
5410 shift
5411 build_cpu=$1
5412 build_vendor=$2
5413 shift; shift
5414 # Remember, the first character of IFS is used to create $*,
5415 # except with old shells:
5416 build_os=$*
5417 IFS=$ac_save_IFS
5418 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5419
5420
5421 { echo "$as_me:$LINENO: checking host system type" >&5
5422 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5423 if test "${ac_cv_host+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426   if test "x$host_alias" = x; then
5427   ac_cv_host=$ac_cv_build
5428 else
5429   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5430     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5431 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5432    { (exit 1); exit 1; }; }
5433 fi
5434
5435 fi
5436 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5437 echo "${ECHO_T}$ac_cv_host" >&6; }
5438 case $ac_cv_host in
5439 *-*-*) ;;
5440 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5441 echo "$as_me: error: invalid value of canonical host" >&2;}
5442    { (exit 1); exit 1; }; };;
5443 esac
5444 host=$ac_cv_host
5445 ac_save_IFS=$IFS; IFS='-'
5446 set x $ac_cv_host
5447 shift
5448 host_cpu=$1
5449 host_vendor=$2
5450 shift; shift
5451 # Remember, the first character of IFS is used to create $*,
5452 # except with old shells:
5453 host_os=$*
5454 IFS=$ac_save_IFS
5455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5456
5457
5458 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5459 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5460 if test "${ac_cv_path_SED+set}" = set; then
5461   echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5464      for ac_i in 1 2 3 4 5 6 7; do
5465        ac_script="$ac_script$as_nl$ac_script"
5466      done
5467      echo "$ac_script" | sed 99q >conftest.sed
5468      $as_unset ac_script || ac_script=
5469      # Extract the first word of "sed gsed" to use in msg output
5470 if test -z "$SED"; then
5471 set dummy sed gsed; ac_prog_name=$2
5472 if test "${ac_cv_path_SED+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   ac_path_SED_found=false
5476 # Loop through the user's path and test for each of PROGNAME-LIST
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5479 do
5480   IFS=$as_save_IFS
5481   test -z "$as_dir" && as_dir=.
5482   for ac_prog in sed gsed; do
5483   for ac_exec_ext in '' $ac_executable_extensions; do
5484     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5485     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5486     # Check for GNU ac_path_SED and select it if it is found.
5487   # Check for GNU $ac_path_SED
5488 case `"$ac_path_SED" --version 2>&1` in
5489 *GNU*)
5490   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5491 *)
5492   ac_count=0
5493   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5494   while :
5495   do
5496     cat "conftest.in" "conftest.in" >"conftest.tmp"
5497     mv "conftest.tmp" "conftest.in"
5498     cp "conftest.in" "conftest.nl"
5499     echo '' >> "conftest.nl"
5500     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5501     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5502     ac_count=`expr $ac_count + 1`
5503     if test $ac_count -gt ${ac_path_SED_max-0}; then
5504       # Best one so far, save it but keep looking for a better one
5505       ac_cv_path_SED="$ac_path_SED"
5506       ac_path_SED_max=$ac_count
5507     fi
5508     # 10*(2^10) chars as input seems more than enough
5509     test $ac_count -gt 10 && break
5510   done
5511   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5512 esac
5513
5514
5515     $ac_path_SED_found && break 3
5516   done
5517 done
5518
5519 done
5520 IFS=$as_save_IFS
5521
5522
5523 fi
5524
5525 SED="$ac_cv_path_SED"
5526 if test -z "$SED"; then
5527   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5528 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5529    { (exit 1); exit 1; }; }
5530 fi
5531
5532 else
5533   ac_cv_path_SED=$SED
5534 fi
5535
5536 fi
5537 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5538 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5539  SED="$ac_cv_path_SED"
5540   rm -f conftest.sed
5541
5542 test -z "$SED" && SED=sed
5543 Xsed="$SED -e 1s/^X//"
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555 { echo "$as_me:$LINENO: checking for fgrep" >&5
5556 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5557 if test "${ac_cv_path_FGREP+set}" = set; then
5558   echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5561    then ac_cv_path_FGREP="$GREP -F"
5562    else
5563      # Extract the first word of "fgrep" to use in msg output
5564 if test -z "$FGREP"; then
5565 set dummy fgrep; ac_prog_name=$2
5566 if test "${ac_cv_path_FGREP+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   ac_path_FGREP_found=false
5570 # Loop through the user's path and test for each of PROGNAME-LIST
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5573 do
5574   IFS=$as_save_IFS
5575   test -z "$as_dir" && as_dir=.
5576   for ac_prog in fgrep; do
5577   for ac_exec_ext in '' $ac_executable_extensions; do
5578     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5579     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5580     # Check for GNU ac_path_FGREP and select it if it is found.
5581   # Check for GNU $ac_path_FGREP
5582 case `"$ac_path_FGREP" --version 2>&1` in
5583 *GNU*)
5584   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5585 *)
5586   ac_count=0
5587   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5588   while :
5589   do
5590     cat "conftest.in" "conftest.in" >"conftest.tmp"
5591     mv "conftest.tmp" "conftest.in"
5592     cp "conftest.in" "conftest.nl"
5593     echo 'FGREP' >> "conftest.nl"
5594     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5595     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5596     ac_count=`expr $ac_count + 1`
5597     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5598       # Best one so far, save it but keep looking for a better one
5599       ac_cv_path_FGREP="$ac_path_FGREP"
5600       ac_path_FGREP_max=$ac_count
5601     fi
5602     # 10*(2^10) chars as input seems more than enough
5603     test $ac_count -gt 10 && break
5604   done
5605   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5606 esac
5607
5608
5609     $ac_path_FGREP_found && break 3
5610   done
5611 done
5612
5613 done
5614 IFS=$as_save_IFS
5615
5616
5617 fi
5618
5619 FGREP="$ac_cv_path_FGREP"
5620 if test -z "$FGREP"; then
5621   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5622 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5623    { (exit 1); exit 1; }; }
5624 fi
5625
5626 else
5627   ac_cv_path_FGREP=$FGREP
5628 fi
5629
5630
5631    fi
5632 fi
5633 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5634 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5635  FGREP="$ac_cv_path_FGREP"
5636
5637
5638 test -z "$GREP" && GREP=grep
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658 # Check whether --with-gnu-ld was given.
5659 if test "${with_gnu_ld+set}" = set; then
5660   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5661 else
5662   with_gnu_ld=no
5663 fi
5664
5665 ac_prog=ld
5666 if test "$GCC" = yes; then
5667   # Check if gcc -print-prog-name=ld gives a path.
5668   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5669 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5670   case $host in
5671   *-*-mingw*)
5672     # gcc leaves a trailing carriage return which upsets mingw
5673     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5674   *)
5675     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5676   esac
5677   case $ac_prog in
5678     # Accept absolute paths.
5679     [\\/]* | ?:[\\/]*)
5680       re_direlt='/[^/][^/]*/\.\./'
5681       # Canonicalize the pathname of ld
5682       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5683       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5684         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5685       done
5686       test -z "$LD" && LD="$ac_prog"
5687       ;;
5688   "")
5689     # If it fails, then pretend we aren't using GCC.
5690     ac_prog=ld
5691     ;;
5692   *)
5693     # If it is relative, then search for the first ld in PATH.
5694     with_gnu_ld=unknown
5695     ;;
5696   esac
5697 elif test "$with_gnu_ld" = yes; then
5698   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5699 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5700 else
5701   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5702 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5703 fi
5704 if test "${lt_cv_path_LD+set}" = set; then
5705   echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707   if test -z "$LD"; then
5708   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5709   for ac_dir in $PATH; do
5710     IFS="$lt_save_ifs"
5711     test -z "$ac_dir" && ac_dir=.
5712     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5713       lt_cv_path_LD="$ac_dir/$ac_prog"
5714       # Check to see if the program is GNU ld.  I'd rather use --version,
5715       # but apparently some variants of GNU ld only accept -v.
5716       # Break only if it was the GNU/non-GNU ld that we prefer.
5717       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5718       *GNU* | *'with BFD'*)
5719         test "$with_gnu_ld" != no && break
5720         ;;
5721       *)
5722         test "$with_gnu_ld" != yes && break
5723         ;;
5724       esac
5725     fi
5726   done
5727   IFS="$lt_save_ifs"
5728 else
5729   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5730 fi
5731 fi
5732
5733 LD="$lt_cv_path_LD"
5734 if test -n "$LD"; then
5735   { echo "$as_me:$LINENO: result: $LD" >&5
5736 echo "${ECHO_T}$LD" >&6; }
5737 else
5738   { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5740 fi
5741 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5742 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5743    { (exit 1); exit 1; }; }
5744 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5745 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5746 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5750 case `$LD -v 2>&1 </dev/null` in
5751 *GNU* | *'with BFD'*)
5752   lt_cv_prog_gnu_ld=yes
5753   ;;
5754 *)
5755   lt_cv_prog_gnu_ld=no
5756   ;;
5757 esac
5758 fi
5759 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5760 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5761 with_gnu_ld=$lt_cv_prog_gnu_ld
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5772 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5773 if test "${lt_cv_path_NM+set}" = set; then
5774   echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776   if test -n "$NM"; then
5777   # Let the user override the test.
5778   lt_cv_path_NM="$NM"
5779 else
5780   lt_nm_to_check="${ac_tool_prefix}nm"
5781   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5782     lt_nm_to_check="$lt_nm_to_check nm"
5783   fi
5784   for lt_tmp_nm in $lt_nm_to_check; do
5785     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5786     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5787       IFS="$lt_save_ifs"
5788       test -z "$ac_dir" && ac_dir=.
5789       tmp_nm="$ac_dir/$lt_tmp_nm"
5790       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5791         # Check to see if the nm accepts a BSD-compat flag.
5792         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5793         #   nm: unknown option "B" ignored
5794         # Tru64's nm complains that /dev/null is an invalid object file
5795         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5796         */dev/null* | *'Invalid file or object type'*)
5797           lt_cv_path_NM="$tmp_nm -B"
5798           break
5799           ;;
5800         *)
5801           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5802           */dev/null*)
5803             lt_cv_path_NM="$tmp_nm -p"
5804             break
5805             ;;
5806           *)
5807             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5808             continue # so that we can try to find one that supports BSD flags
5809             ;;
5810           esac
5811           ;;
5812         esac
5813       fi
5814     done
5815     IFS="$lt_save_ifs"
5816   done
5817   : ${lt_cv_path_NM=no}
5818 fi
5819 fi
5820 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5821 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5822 if test "$lt_cv_path_NM" != "no"; then
5823   NM="$lt_cv_path_NM"
5824 else
5825   # Didn't find any BSD compatible name lister, look for dumpbin.
5826   if test -n "$ac_tool_prefix"; then
5827   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5828   do
5829     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5833 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5834   echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836   if test -n "$DUMPBIN"; then
5837   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844   for ac_exec_ext in '' $ac_executable_extensions; do
5845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851 done
5852 IFS=$as_save_IFS
5853
5854 fi
5855 fi
5856 DUMPBIN=$ac_cv_prog_DUMPBIN
5857 if test -n "$DUMPBIN"; then
5858   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5859 echo "${ECHO_T}$DUMPBIN" >&6; }
5860 else
5861   { echo "$as_me:$LINENO: result: no" >&5
5862 echo "${ECHO_T}no" >&6; }
5863 fi
5864
5865
5866     test -n "$DUMPBIN" && break
5867   done
5868 fi
5869 if test -z "$DUMPBIN"; then
5870   ac_ct_DUMPBIN=$DUMPBIN
5871   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5872 do
5873   # Extract the first word of "$ac_prog", so it can be a program name with args.
5874 set dummy $ac_prog; ac_word=$2
5875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5877 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   if test -n "$ac_ct_DUMPBIN"; then
5881   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888   for ac_exec_ext in '' $ac_executable_extensions; do
5889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5890     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895 done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5901 if test -n "$ac_ct_DUMPBIN"; then
5902   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5903 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5904 else
5905   { echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6; }
5907 fi
5908
5909
5910   test -n "$ac_ct_DUMPBIN" && break
5911 done
5912
5913   if test "x$ac_ct_DUMPBIN" = x; then
5914     DUMPBIN=":"
5915   else
5916     case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5919 whose name does not start with the host triplet.  If you think this
5920 configuration is useful to you, please write to autoconf@gnu.org." >&5
5921 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5922 whose name does not start with the host triplet.  If you think this
5923 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5924 ac_tool_warned=yes ;;
5925 esac
5926     DUMPBIN=$ac_ct_DUMPBIN
5927   fi
5928 fi
5929
5930
5931   if test "$DUMPBIN" != ":"; then
5932     NM="$DUMPBIN"
5933   fi
5934 fi
5935 test -z "$NM" && NM=nm
5936
5937
5938
5939
5940
5941
5942 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5943 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5944 if test "${lt_cv_nm_interface+set}" = set; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947   lt_cv_nm_interface="BSD nm"
5948   echo "int some_variable = 0;" > conftest.$ac_ext
5949   (eval echo "\"\$as_me:5949: $ac_compile\"" >&5)
5950   (eval "$ac_compile" 2>conftest.err)
5951   cat conftest.err >&5
5952   (eval echo "\"\$as_me:5952: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5953   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5954   cat conftest.err >&5
5955   (eval echo "\"\$as_me:5955: output\"" >&5)
5956   cat conftest.out >&5
5957   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5958     lt_cv_nm_interface="MS dumpbin"
5959   fi
5960   rm -f conftest*
5961 fi
5962 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5963 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5964
5965 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5966 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5967 LN_S=$as_ln_s
5968 if test "$LN_S" = "ln -s"; then
5969   { echo "$as_me:$LINENO: result: yes" >&5
5970 echo "${ECHO_T}yes" >&6; }
5971 else
5972   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5973 echo "${ECHO_T}no, using $LN_S" >&6; }
5974 fi
5975
5976 # find the maximum length of command line arguments
5977 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5978 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5979 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982     i=0
5983   teststring="ABCD"
5984
5985   case $build_os in
5986   msdosdjgpp*)
5987     # On DJGPP, this test can blow up pretty badly due to problems in libc
5988     # (any single argument exceeding 2000 bytes causes a buffer overrun
5989     # during glob expansion).  Even if it were fixed, the result of this
5990     # check would be larger than it should be.
5991     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5992     ;;
5993
5994   gnu*)
5995     # Under GNU Hurd, this test is not required because there is
5996     # no limit to the length of command line arguments.
5997     # Libtool will interpret -1 as no limit whatsoever
5998     lt_cv_sys_max_cmd_len=-1;
5999     ;;
6000
6001   cygwin* | mingw* | cegcc*)
6002     # On Win9x/ME, this test blows up -- it succeeds, but takes
6003     # about 5 minutes as the teststring grows exponentially.
6004     # Worse, since 9x/ME are not pre-emptively multitasking,
6005     # you end up with a "frozen" computer, even though with patience
6006     # the test eventually succeeds (with a max line length of 256k).
6007     # Instead, let's just punt: use the minimum linelength reported by
6008     # all of the supported platforms: 8192 (on NT/2K/XP).
6009     lt_cv_sys_max_cmd_len=8192;
6010     ;;
6011
6012   amigaos*)
6013     # On AmigaOS with pdksh, this test takes hours, literally.
6014     # So we just punt and use a minimum line length of 8192.
6015     lt_cv_sys_max_cmd_len=8192;
6016     ;;
6017
6018   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6019     # This has been around since 386BSD, at least.  Likely further.
6020     if test -x /sbin/sysctl; then
6021       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6022     elif test -x /usr/sbin/sysctl; then
6023       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6024     else
6025       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6026     fi
6027     # And add a safety zone
6028     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6029     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6030     ;;
6031
6032   interix*)
6033     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6034     lt_cv_sys_max_cmd_len=196608
6035     ;;
6036
6037   osf*)
6038     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6039     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6040     # nice to cause kernel panics so lets avoid the loop below.
6041     # First set a reasonable default.
6042     lt_cv_sys_max_cmd_len=16384
6043     #
6044     if test -x /sbin/sysconfig; then
6045       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6046         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6047       esac
6048     fi
6049     ;;
6050   sco3.2v5*)
6051     lt_cv_sys_max_cmd_len=102400
6052     ;;
6053   sysv5* | sco5v6* | sysv4.2uw2*)
6054     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6055     if test -n "$kargmax"; then
6056       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6057     else
6058       lt_cv_sys_max_cmd_len=32768
6059     fi
6060     ;;
6061   *)
6062     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6063     if test -n "$lt_cv_sys_max_cmd_len"; then
6064       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6065       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6066     else
6067       # Make teststring a little bigger before we do anything with it.
6068       # a 1K string should be a reasonable start.
6069       for i in 1 2 3 4 5 6 7 8 ; do
6070         teststring=$teststring$teststring
6071       done
6072       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6073       # If test is not a shell built-in, we'll probably end up computing a
6074       # maximum length that is only half of the actual maximum length, but
6075       # we can't tell.
6076       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6077                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6078               test $i != 17 # 1/2 MB should be enough
6079       do
6080         i=`expr $i + 1`
6081         teststring=$teststring$teststring
6082       done
6083       # Only check the string length outside the loop.
6084       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6085       teststring=
6086       # Add a significant safety factor because C++ compilers can tack on
6087       # massive amounts of additional arguments before passing them to the
6088       # linker.  It appears as though 1/2 is a usable value.
6089       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6090     fi
6091     ;;
6092   esac
6093
6094 fi
6095
6096 if test -n $lt_cv_sys_max_cmd_len ; then
6097   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6098 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6099 else
6100   { echo "$as_me:$LINENO: result: none" >&5
6101 echo "${ECHO_T}none" >&6; }
6102 fi
6103 max_cmd_len=$lt_cv_sys_max_cmd_len
6104
6105
6106
6107
6108
6109
6110 : ${CP="cp -f"}
6111 : ${MV="mv -f"}
6112 : ${RM="rm -f"}
6113
6114 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6115 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6116 # Try some XSI features
6117 xsi_shell=no
6118 ( _lt_dummy="a/b/c"
6119   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6120       = c,a/b,, \
6121     && eval 'test $(( 1 + 1 )) -eq 2 \
6122     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6123   && xsi_shell=yes
6124 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6125 echo "${ECHO_T}$xsi_shell" >&6; }
6126
6127
6128 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6129 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6130 lt_shell_append=no
6131 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6132     >/dev/null 2>&1 \
6133   && lt_shell_append=yes
6134 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6135 echo "${ECHO_T}$lt_shell_append" >&6; }
6136
6137
6138 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6139   lt_unset=unset
6140 else
6141   lt_unset=false
6142 fi
6143
6144
6145
6146
6147
6148 # test EBCDIC or ASCII
6149 case `echo X|tr X '\101'` in
6150  A) # ASCII based system
6151     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6152   lt_SP2NL='tr \040 \012'
6153   lt_NL2SP='tr \015\012 \040\040'
6154   ;;
6155  *) # EBCDIC based system
6156   lt_SP2NL='tr \100 \n'
6157   lt_NL2SP='tr \r\n \100\100'
6158   ;;
6159 esac
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6170 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6171 if test "${lt_cv_ld_reload_flag+set}" = set; then
6172   echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174   lt_cv_ld_reload_flag='-r'
6175 fi
6176 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6177 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6178 reload_flag=$lt_cv_ld_reload_flag
6179 case $reload_flag in
6180 "" | " "*) ;;
6181 *) reload_flag=" $reload_flag" ;;
6182 esac
6183 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6184 case $host_os in
6185   darwin*)
6186     if test "$GCC" = yes; then
6187       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6188     else
6189       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6190     fi
6191     ;;
6192 esac
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202 if test -n "$ac_tool_prefix"; then
6203   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6204 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6207 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210   if test -n "$OBJDUMP"; then
6211   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216   IFS=$as_save_IFS
6217   test -z "$as_dir" && as_dir=.
6218   for ac_exec_ext in '' $ac_executable_extensions; do
6219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6220     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222     break 2
6223   fi
6224 done
6225 done
6226 IFS=$as_save_IFS
6227
6228 fi
6229 fi
6230 OBJDUMP=$ac_cv_prog_OBJDUMP
6231 if test -n "$OBJDUMP"; then
6232   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6233 echo "${ECHO_T}$OBJDUMP" >&6; }
6234 else
6235   { echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6; }
6237 fi
6238
6239
6240 fi
6241 if test -z "$ac_cv_prog_OBJDUMP"; then
6242   ac_ct_OBJDUMP=$OBJDUMP
6243   # Extract the first word of "objdump", so it can be a program name with args.
6244 set dummy objdump; ac_word=$2
6245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   if test -n "$ac_ct_OBJDUMP"; then
6251   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256   IFS=$as_save_IFS
6257   test -z "$as_dir" && as_dir=.
6258   for ac_exec_ext in '' $ac_executable_extensions; do
6259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262     break 2
6263   fi
6264 done
6265 done
6266 IFS=$as_save_IFS
6267
6268 fi
6269 fi
6270 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6271 if test -n "$ac_ct_OBJDUMP"; then
6272   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6273 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6274 else
6275   { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6277 fi
6278
6279   if test "x$ac_ct_OBJDUMP" = x; then
6280     OBJDUMP="false"
6281   else
6282     case $cross_compiling:$ac_tool_warned in
6283 yes:)
6284 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6285 whose name does not start with the host triplet.  If you think this
6286 configuration is useful to you, please write to autoconf@gnu.org." >&5
6287 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6288 whose name does not start with the host triplet.  If you think this
6289 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6290 ac_tool_warned=yes ;;
6291 esac
6292     OBJDUMP=$ac_ct_OBJDUMP
6293   fi
6294 else
6295   OBJDUMP="$ac_cv_prog_OBJDUMP"
6296 fi
6297
6298 test -z "$OBJDUMP" && OBJDUMP=objdump
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6309 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6310 if test "${lt_cv_deplibs_check_method+set}" = set; then
6311   echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313   lt_cv_file_magic_cmd='$MAGIC_CMD'
6314 lt_cv_file_magic_test_file=
6315 lt_cv_deplibs_check_method='unknown'
6316 # Need to set the preceding variable on all platforms that support
6317 # interlibrary dependencies.
6318 # 'none' -- dependencies not supported.
6319 # `unknown' -- same as none, but documents that we really don't know.
6320 # 'pass_all' -- all dependencies passed with no checks.
6321 # 'test_compile' -- check by making test program.
6322 # 'file_magic [[regex]]' -- check by looking for files in library path
6323 # which responds to the $file_magic_cmd with a given extended regex.
6324 # If you have `file' or equivalent on your system and you're not sure
6325 # whether `pass_all' will *always* work, you probably want this one.
6326
6327 case $host_os in
6328 aix[4-9]*)
6329   lt_cv_deplibs_check_method=pass_all
6330   ;;
6331
6332 beos*)
6333   lt_cv_deplibs_check_method=pass_all
6334   ;;
6335
6336 bsdi[45]*)
6337   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6338   lt_cv_file_magic_cmd='/usr/bin/file -L'
6339   lt_cv_file_magic_test_file=/shlib/libc.so
6340   ;;
6341
6342 cygwin*)
6343   # func_win32_libid is a shell function defined in ltmain.sh
6344   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6345   lt_cv_file_magic_cmd='func_win32_libid'
6346   ;;
6347
6348 mingw* | pw32*)
6349   # Base MSYS/MinGW do not provide the 'file' command needed by
6350   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6351   # unless we find 'file', for example because we are cross-compiling.
6352   if ( file / ) >/dev/null 2>&1; then
6353     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6354     lt_cv_file_magic_cmd='func_win32_libid'
6355   else
6356     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6357     lt_cv_file_magic_cmd='$OBJDUMP -f'
6358   fi
6359   ;;
6360
6361 cegcc)
6362   # use the weaker test based on 'objdump'. See mingw*.
6363   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6364   lt_cv_file_magic_cmd='$OBJDUMP -f'
6365   ;;
6366
6367 darwin* | rhapsody*)
6368   lt_cv_deplibs_check_method=pass_all
6369   ;;
6370
6371 freebsd* | dragonfly*)
6372   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6373     case $host_cpu in
6374     i*86 )
6375       # Not sure whether the presence of OpenBSD here was a mistake.
6376       # Let's accept both of them until this is cleared up.
6377       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6378       lt_cv_file_magic_cmd=/usr/bin/file
6379       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6380       ;;
6381     esac
6382   else
6383     lt_cv_deplibs_check_method=pass_all
6384   fi
6385   ;;
6386
6387 gnu*)
6388   lt_cv_deplibs_check_method=pass_all
6389   ;;
6390
6391 hpux10.20* | hpux11*)
6392   lt_cv_file_magic_cmd=/usr/bin/file
6393   case $host_cpu in
6394   ia64*)
6395     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6396     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6397     ;;
6398   hppa*64*)
6399     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]'
6400     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6401     ;;
6402   *)
6403     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6404     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6405     ;;
6406   esac
6407   ;;
6408
6409 interix[3-9]*)
6410   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6411   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6412   ;;
6413
6414 irix5* | irix6* | nonstopux*)
6415   case $LD in
6416   *-32|*"-32 ") libmagic=32-bit;;
6417   *-n32|*"-n32 ") libmagic=N32;;
6418   *-64|*"-64 ") libmagic=64-bit;;
6419   *) libmagic=never-match;;
6420   esac
6421   lt_cv_deplibs_check_method=pass_all
6422   ;;
6423
6424 # This must be Linux ELF.
6425 linux* | k*bsd*-gnu)
6426   lt_cv_deplibs_check_method=pass_all
6427   ;;
6428
6429 netbsd*)
6430   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6431     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6432   else
6433     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6434   fi
6435   ;;
6436
6437 newos6*)
6438   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6439   lt_cv_file_magic_cmd=/usr/bin/file
6440   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6441   ;;
6442
6443 *nto* | *qnx*)
6444   lt_cv_deplibs_check_method=pass_all
6445   ;;
6446
6447 openbsd*)
6448   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6449     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6450   else
6451     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6452   fi
6453   ;;
6454
6455 osf3* | osf4* | osf5*)
6456   lt_cv_deplibs_check_method=pass_all
6457   ;;
6458
6459 rdos*)
6460   lt_cv_deplibs_check_method=pass_all
6461   ;;
6462
6463 solaris*)
6464   lt_cv_deplibs_check_method=pass_all
6465   ;;
6466
6467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6468   lt_cv_deplibs_check_method=pass_all
6469   ;;
6470
6471 sysv4 | sysv4.3*)
6472   case $host_vendor in
6473   motorola)
6474     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]'
6475     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6476     ;;
6477   ncr)
6478     lt_cv_deplibs_check_method=pass_all
6479     ;;
6480   sequent)
6481     lt_cv_file_magic_cmd='/bin/file'
6482     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6483     ;;
6484   sni)
6485     lt_cv_file_magic_cmd='/bin/file'
6486     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6487     lt_cv_file_magic_test_file=/lib/libc.so
6488     ;;
6489   siemens)
6490     lt_cv_deplibs_check_method=pass_all
6491     ;;
6492   pc)
6493     lt_cv_deplibs_check_method=pass_all
6494     ;;
6495   esac
6496   ;;
6497
6498 tpf*)
6499   lt_cv_deplibs_check_method=pass_all
6500   ;;
6501 esac
6502
6503 fi
6504 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6505 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6506 file_magic_cmd=$lt_cv_file_magic_cmd
6507 deplibs_check_method=$lt_cv_deplibs_check_method
6508 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521 if test -n "$ac_tool_prefix"; then
6522   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}ar; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_prog_AR+set}" = set; then
6527   echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529   if test -n "$AR"; then
6530   ac_cv_prog_AR="$AR" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535   IFS=$as_save_IFS
6536   test -z "$as_dir" && as_dir=.
6537   for ac_exec_ext in '' $ac_executable_extensions; do
6538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539     ac_cv_prog_AR="${ac_tool_prefix}ar"
6540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541     break 2
6542   fi
6543 done
6544 done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 AR=$ac_cv_prog_AR
6550 if test -n "$AR"; then
6551   { echo "$as_me:$LINENO: result: $AR" >&5
6552 echo "${ECHO_T}$AR" >&6; }
6553 else
6554   { echo "$as_me:$LINENO: result: no" >&5
6555 echo "${ECHO_T}no" >&6; }
6556 fi
6557
6558
6559 fi
6560 if test -z "$ac_cv_prog_AR"; then
6561   ac_ct_AR=$AR
6562   # Extract the first word of "ar", so it can be a program name with args.
6563 set dummy ar; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   if test -n "$ac_ct_AR"; then
6570   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575   IFS=$as_save_IFS
6576   test -z "$as_dir" && as_dir=.
6577   for ac_exec_ext in '' $ac_executable_extensions; do
6578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579     ac_cv_prog_ac_ct_AR="ar"
6580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581     break 2
6582   fi
6583 done
6584 done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6590 if test -n "$ac_ct_AR"; then
6591   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6592 echo "${ECHO_T}$ac_ct_AR" >&6; }
6593 else
6594   { echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6; }
6596 fi
6597
6598   if test "x$ac_ct_AR" = x; then
6599     AR="false"
6600   else
6601     case $cross_compiling:$ac_tool_warned in
6602 yes:)
6603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6604 whose name does not start with the host triplet.  If you think this
6605 configuration is useful to you, please write to autoconf@gnu.org." >&5
6606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6607 whose name does not start with the host triplet.  If you think this
6608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6609 ac_tool_warned=yes ;;
6610 esac
6611     AR=$ac_ct_AR
6612   fi
6613 else
6614   AR="$ac_cv_prog_AR"
6615 fi
6616
6617 test -z "$AR" && AR=ar
6618 test -z "$AR_FLAGS" && AR_FLAGS=cru
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630 if test -n "$ac_tool_prefix"; then
6631   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}strip; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_prog_STRIP+set}" = set; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638   if test -n "$STRIP"; then
6639   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644   IFS=$as_save_IFS
6645   test -z "$as_dir" && as_dir=.
6646   for ac_exec_ext in '' $ac_executable_extensions; do
6647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650     break 2
6651   fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
6658 STRIP=$ac_cv_prog_STRIP
6659 if test -n "$STRIP"; then
6660   { echo "$as_me:$LINENO: result: $STRIP" >&5
6661 echo "${ECHO_T}$STRIP" >&6; }
6662 else
6663   { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6665 fi
6666
6667
6668 fi
6669 if test -z "$ac_cv_prog_STRIP"; then
6670   ac_ct_STRIP=$STRIP
6671   # Extract the first word of "strip", so it can be a program name with args.
6672 set dummy strip; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   if test -n "$ac_ct_STRIP"; then
6679   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684   IFS=$as_save_IFS
6685   test -z "$as_dir" && as_dir=.
6686   for ac_exec_ext in '' $ac_executable_extensions; do
6687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688     ac_cv_prog_ac_ct_STRIP="strip"
6689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690     break 2
6691   fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6695
6696 fi
6697 fi
6698 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6699 if test -n "$ac_ct_STRIP"; then
6700   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6701 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6702 else
6703   { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6705 fi
6706
6707   if test "x$ac_ct_STRIP" = x; then
6708     STRIP=":"
6709   else
6710     case $cross_compiling:$ac_tool_warned in
6711 yes:)
6712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6713 whose name does not start with the host triplet.  If you think this
6714 configuration is useful to you, please write to autoconf@gnu.org." >&5
6715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6716 whose name does not start with the host triplet.  If you think this
6717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6718 ac_tool_warned=yes ;;
6719 esac
6720     STRIP=$ac_ct_STRIP
6721   fi
6722 else
6723   STRIP="$ac_cv_prog_STRIP"
6724 fi
6725
6726 test -z "$STRIP" && STRIP=:
6727
6728
6729
6730
6731
6732
6733 if test -n "$ac_tool_prefix"; then
6734   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6735 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738 if test "${ac_cv_prog_RANLIB+set}" = set; then
6739   echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741   if test -n "$RANLIB"; then
6742   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747   IFS=$as_save_IFS
6748   test -z "$as_dir" && as_dir=.
6749   for ac_exec_ext in '' $ac_executable_extensions; do
6750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753     break 2
6754   fi
6755 done
6756 done
6757 IFS=$as_save_IFS
6758
6759 fi
6760 fi
6761 RANLIB=$ac_cv_prog_RANLIB
6762 if test -n "$RANLIB"; then
6763   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6764 echo "${ECHO_T}$RANLIB" >&6; }
6765 else
6766   { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6768 fi
6769
6770
6771 fi
6772 if test -z "$ac_cv_prog_RANLIB"; then
6773   ac_ct_RANLIB=$RANLIB
6774   # Extract the first word of "ranlib", so it can be a program name with args.
6775 set dummy ranlib; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   if test -n "$ac_ct_RANLIB"; then
6782   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789   for ac_exec_ext in '' $ac_executable_extensions; do
6790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_prog_ac_ct_RANLIB="ranlib"
6792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796 done
6797 IFS=$as_save_IFS
6798
6799 fi
6800 fi
6801 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6802 if test -n "$ac_ct_RANLIB"; then
6803   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6804 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6805 else
6806   { echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6; }
6808 fi
6809
6810   if test "x$ac_ct_RANLIB" = x; then
6811     RANLIB=":"
6812   else
6813     case $cross_compiling:$ac_tool_warned in
6814 yes:)
6815 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6816 whose name does not start with the host triplet.  If you think this
6817 configuration is useful to you, please write to autoconf@gnu.org." >&5
6818 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6819 whose name does not start with the host triplet.  If you think this
6820 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6821 ac_tool_warned=yes ;;
6822 esac
6823     RANLIB=$ac_ct_RANLIB
6824   fi
6825 else
6826   RANLIB="$ac_cv_prog_RANLIB"
6827 fi
6828
6829 test -z "$RANLIB" && RANLIB=:
6830
6831
6832
6833
6834
6835
6836 # Determine commands to create old-style static archives.
6837 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6838 old_postinstall_cmds='chmod 644 $oldlib'
6839 old_postuninstall_cmds=
6840
6841 if test -n "$RANLIB"; then
6842   case $host_os in
6843   openbsd*)
6844     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6845     ;;
6846   *)
6847     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6848     ;;
6849   esac
6850   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6851 fi
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886 # If no C compiler was specified, use CC.
6887 LTCC=${LTCC-"$CC"}
6888
6889 # If no C compiler flags were specified, use CFLAGS.
6890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6891
6892 # Allow CC to be a program name with arguments.
6893 compiler=$CC
6894
6895
6896 # Check for command to grab the raw symbol name followed by C symbol from nm.
6897 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6898 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6899 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6900   echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902
6903 # These are sane defaults that work on at least a few old systems.
6904 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6905
6906 # Character class describing NM global symbol codes.
6907 symcode='[BCDEGRST]'
6908
6909 # Regexp to match symbols that can be accessed directly from C.
6910 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6911
6912 # Define system-specific variables.
6913 case $host_os in
6914 aix*)
6915   symcode='[BCDT]'
6916   ;;
6917 cygwin* | mingw* | pw32* | cegcc*)
6918   symcode='[ABCDGISTW]'
6919   ;;
6920 hpux*)
6921   if test "$host_cpu" = ia64; then
6922     symcode='[ABCDEGRST]'
6923   fi
6924   ;;
6925 irix* | nonstopux*)
6926   symcode='[BCDEGRST]'
6927   ;;
6928 osf*)
6929   symcode='[BCDEGQRST]'
6930   ;;
6931 solaris*)
6932   symcode='[BDRT]'
6933   ;;
6934 sco3.2v5*)
6935   symcode='[DT]'
6936   ;;
6937 sysv4.2uw2*)
6938   symcode='[DT]'
6939   ;;
6940 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6941   symcode='[ABDT]'
6942   ;;
6943 sysv4)
6944   symcode='[DFNSTU]'
6945   ;;
6946 esac
6947
6948 # If we're using GNU nm, then use its standard symbol codes.
6949 case `$NM -V 2>&1` in
6950 *GNU* | *'with BFD'*)
6951   symcode='[ABCDGIRSTW]' ;;
6952 esac
6953
6954 # Transform an extracted symbol line into a proper C declaration.
6955 # Some systems (esp. on ia64) link data and code symbols differently,
6956 # so use this general approach.
6957 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6958
6959 # Transform an extracted symbol line into symbol name and symbol address
6960 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6961 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'"
6962
6963 # Handle CRLF in mingw tool chain
6964 opt_cr=
6965 case $build_os in
6966 mingw*)
6967   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6968   ;;
6969 esac
6970
6971 # Try without a prefix underscore, then with it.
6972 for ac_symprfx in "" "_"; do
6973
6974   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6975   symxfrm="\\1 $ac_symprfx\\2 \\2"
6976
6977   # Write the raw and C identifiers.
6978   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6979     # Fake it for dumpbin and say T for any non-static function
6980     # and D for any global variable.
6981     # Also find C++ and __fastcall symbols from MSVC++,
6982     # which start with @ or ?.
6983     lt_cv_sys_global_symbol_pipe="$AWK '"\
6984 "     {last_section=section; section=\$ 3};"\
6985 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6986 "     \$ 0!~/External *\|/{next};"\
6987 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6988 "     {if(hide[section]) next};"\
6989 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6990 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6991 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6992 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6993 "     ' prfx=^$ac_symprfx"
6994   else
6995     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6996   fi
6997
6998   # Check to see that the pipe works correctly.
6999   pipe_works=no
7000
7001   rm -f conftest*
7002   cat > conftest.$ac_ext <<_LT_EOF
7003 #ifdef __cplusplus
7004 extern "C" {
7005 #endif
7006 char nm_test_var;
7007 void nm_test_func(void);
7008 void nm_test_func(void){}
7009 #ifdef __cplusplus
7010 }
7011 #endif
7012 int main(){nm_test_var='a';nm_test_func();return(0);}
7013 _LT_EOF
7014
7015   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7016   (eval $ac_compile) 2>&5
7017   ac_status=$?
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }; then
7020     # Now try to grab the symbols.
7021     nlist=conftest.nm
7022     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7023   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7024   ac_status=$?
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); } && test -s "$nlist"; then
7027       # Try sorting and uniquifying the output.
7028       if sort "$nlist" | uniq > "$nlist"T; then
7029         mv -f "$nlist"T "$nlist"
7030       else
7031         rm -f "$nlist"T
7032       fi
7033
7034       # Make sure that we snagged all the symbols we need.
7035       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7036         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7037           cat <<_LT_EOF > conftest.$ac_ext
7038 #ifdef __cplusplus
7039 extern "C" {
7040 #endif
7041
7042 _LT_EOF
7043           # Now generate the symbol file.
7044           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7045
7046           cat <<_LT_EOF >> conftest.$ac_ext
7047
7048 /* The mapping between symbol names and symbols.  */
7049 const struct {
7050   const char *name;
7051   void       *address;
7052 }
7053 lt__PROGRAM__LTX_preloaded_symbols[] =
7054 {
7055   { "@PROGRAM@", (void *) 0 },
7056 _LT_EOF
7057           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7058           cat <<\_LT_EOF >> conftest.$ac_ext
7059   {0, (void *) 0}
7060 };
7061
7062 /* This works around a problem in FreeBSD linker */
7063 #ifdef FREEBSD_WORKAROUND
7064 static const void *lt_preloaded_setup() {
7065   return lt__PROGRAM__LTX_preloaded_symbols;
7066 }
7067 #endif
7068
7069 #ifdef __cplusplus
7070 }
7071 #endif
7072 _LT_EOF
7073           # Now try linking the two files.
7074           mv conftest.$ac_objext conftstm.$ac_objext
7075           lt_save_LIBS="$LIBS"
7076           lt_save_CFLAGS="$CFLAGS"
7077           LIBS="conftstm.$ac_objext"
7078           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7079           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7080   (eval $ac_link) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7084             pipe_works=yes
7085           fi
7086           LIBS="$lt_save_LIBS"
7087           CFLAGS="$lt_save_CFLAGS"
7088         else
7089           echo "cannot find nm_test_func in $nlist" >&5
7090         fi
7091       else
7092         echo "cannot find nm_test_var in $nlist" >&5
7093       fi
7094     else
7095       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7096     fi
7097   else
7098     echo "$progname: failed program was:" >&5
7099     cat conftest.$ac_ext >&5
7100   fi
7101   rm -rf conftest* conftst*
7102
7103   # Do not use the global_symbol_pipe unless it works.
7104   if test "$pipe_works" = yes; then
7105     break
7106   else
7107     lt_cv_sys_global_symbol_pipe=
7108   fi
7109 done
7110
7111 fi
7112
7113 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7114   lt_cv_sys_global_symbol_to_cdecl=
7115 fi
7116 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7117   { echo "$as_me:$LINENO: result: failed" >&5
7118 echo "${ECHO_T}failed" >&6; }
7119 else
7120   { echo "$as_me:$LINENO: result: ok" >&5
7121 echo "${ECHO_T}ok" >&6; }
7122 fi
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145 # Check whether --enable-libtool-lock was given.
7146 if test "${enable_libtool_lock+set}" = set; then
7147   enableval=$enable_libtool_lock;
7148 fi
7149
7150 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7151
7152 # Some flags need to be propagated to the compiler or linker for good
7153 # libtool support.
7154 case $host in
7155 ia64-*-hpux*)
7156   # Find out which ABI we are using.
7157   echo 'int i;' > conftest.$ac_ext
7158   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159   (eval $ac_compile) 2>&5
7160   ac_status=$?
7161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162   (exit $ac_status); }; then
7163     case `/usr/bin/file conftest.$ac_objext` in
7164       *ELF-32*)
7165         HPUX_IA64_MODE="32"
7166         ;;
7167       *ELF-64*)
7168         HPUX_IA64_MODE="64"
7169         ;;
7170     esac
7171   fi
7172   rm -rf conftest*
7173   ;;
7174 *-*-irix6*)
7175   # Find out which ABI we are using.
7176   echo '#line 7176 "configure"' > conftest.$ac_ext
7177   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7178   (eval $ac_compile) 2>&5
7179   ac_status=$?
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); }; then
7182     if test "$lt_cv_prog_gnu_ld" = yes; then
7183       case `/usr/bin/file conftest.$ac_objext` in
7184         *32-bit*)
7185           LD="${LD-ld} -melf32bsmip"
7186           ;;
7187         *N32*)
7188           LD="${LD-ld} -melf32bmipn32"
7189           ;;
7190         *64-bit*)
7191           LD="${LD-ld} -melf64bmip"
7192         ;;
7193       esac
7194     else
7195       case `/usr/bin/file conftest.$ac_objext` in
7196         *32-bit*)
7197           LD="${LD-ld} -32"
7198           ;;
7199         *N32*)
7200           LD="${LD-ld} -n32"
7201           ;;
7202         *64-bit*)
7203           LD="${LD-ld} -64"
7204           ;;
7205       esac
7206     fi
7207   fi
7208   rm -rf conftest*
7209   ;;
7210
7211 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7212 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7213   # Find out which ABI we are using.
7214   echo 'int i;' > conftest.$ac_ext
7215   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7216   (eval $ac_compile) 2>&5
7217   ac_status=$?
7218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219   (exit $ac_status); }; then
7220     case `/usr/bin/file conftest.o` in
7221       *32-bit*)
7222         case $host in
7223           x86_64-*kfreebsd*-gnu)
7224             LD="${LD-ld} -m elf_i386_fbsd"
7225             ;;
7226           x86_64-*linux*)
7227             LD="${LD-ld} -m elf_i386"
7228             ;;
7229           ppc64-*linux*|powerpc64-*linux*)
7230             LD="${LD-ld} -m elf32ppclinux"
7231             ;;
7232           s390x-*linux*)
7233             LD="${LD-ld} -m elf_s390"
7234             ;;
7235           sparc64-*linux*)
7236             LD="${LD-ld} -m elf32_sparc"
7237             ;;
7238         esac
7239         ;;
7240       *64-bit*)
7241         case $host in
7242           x86_64-*kfreebsd*-gnu)
7243             LD="${LD-ld} -m elf_x86_64_fbsd"
7244             ;;
7245           x86_64-*linux*)
7246             LD="${LD-ld} -m elf_x86_64"
7247             ;;
7248           ppc*-*linux*|powerpc*-*linux*)
7249             LD="${LD-ld} -m elf64ppc"
7250             ;;
7251           s390*-*linux*|s390*-*tpf*)
7252             LD="${LD-ld} -m elf64_s390"
7253             ;;
7254           sparc*-*linux*)
7255             LD="${LD-ld} -m elf64_sparc"
7256             ;;
7257         esac
7258         ;;
7259     esac
7260   fi
7261   rm -rf conftest*
7262   ;;
7263
7264 *-*-sco3.2v5*)
7265   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7266   SAVE_CFLAGS="$CFLAGS"
7267   CFLAGS="$CFLAGS -belf"
7268   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7269 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7270 if test "${lt_cv_cc_needs_belf+set}" = set; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   ac_ext=c
7274 ac_cpp='$CPP $CPPFLAGS'
7275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7278
7279      cat >conftest.$ac_ext <<_ACEOF
7280 /* confdefs.h.  */
7281 _ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h.  */
7285
7286 int
7287 main ()
7288 {
7289
7290   ;
7291   return 0;
7292 }
7293 _ACEOF
7294 rm -f conftest.$ac_objext conftest$ac_exeext
7295 if { (ac_try="$ac_link"
7296 case "(($ac_try" in
7297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7298   *) ac_try_echo=$ac_try;;
7299 esac
7300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7301   (eval "$ac_link") 2>conftest.er1
7302   ac_status=$?
7303   grep -v '^ *+' conftest.er1 >conftest.err
7304   rm -f conftest.er1
7305   cat conftest.err >&5
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); } && {
7308          test -z "$ac_c_werror_flag" ||
7309          test ! -s conftest.err
7310        } && test -s conftest$ac_exeext &&
7311        $as_test_x conftest$ac_exeext; then
7312   lt_cv_cc_needs_belf=yes
7313 else
7314   echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7316
7317         lt_cv_cc_needs_belf=no
7318 fi
7319
7320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7321       conftest$ac_exeext conftest.$ac_ext
7322      ac_ext=c
7323 ac_cpp='$CPP $CPPFLAGS'
7324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327
7328 fi
7329 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7330 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7331   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7332     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7333     CFLAGS="$SAVE_CFLAGS"
7334   fi
7335   ;;
7336 sparc*-*solaris*)
7337   # Find out which ABI we are using.
7338   echo 'int i;' > conftest.$ac_ext
7339   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340   (eval $ac_compile) 2>&5
7341   ac_status=$?
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); }; then
7344     case `/usr/bin/file conftest.o` in
7345     *64-bit*)
7346       case $lt_cv_prog_gnu_ld in
7347       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7348       *)
7349         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7350           LD="${LD-ld} -64"
7351         fi
7352         ;;
7353       esac
7354       ;;
7355     esac
7356   fi
7357   rm -rf conftest*
7358   ;;
7359 esac
7360
7361 need_locks="$enable_libtool_lock"
7362
7363
7364   case $host_os in
7365     rhapsody* | darwin*)
7366     if test -n "$ac_tool_prefix"; then
7367   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7368 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7371 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   if test -n "$DSYMUTIL"; then
7375   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380   IFS=$as_save_IFS
7381   test -z "$as_dir" && as_dir=.
7382   for ac_exec_ext in '' $ac_executable_extensions; do
7383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386     break 2
7387   fi
7388 done
7389 done
7390 IFS=$as_save_IFS
7391
7392 fi
7393 fi
7394 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7395 if test -n "$DSYMUTIL"; then
7396   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7397 echo "${ECHO_T}$DSYMUTIL" >&6; }
7398 else
7399   { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7401 fi
7402
7403
7404 fi
7405 if test -z "$ac_cv_prog_DSYMUTIL"; then
7406   ac_ct_DSYMUTIL=$DSYMUTIL
7407   # Extract the first word of "dsymutil", so it can be a program name with args.
7408 set dummy dsymutil; ac_word=$2
7409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7411 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   if test -n "$ac_ct_DSYMUTIL"; then
7415   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420   IFS=$as_save_IFS
7421   test -z "$as_dir" && as_dir=.
7422   for ac_exec_ext in '' $ac_executable_extensions; do
7423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426     break 2
7427   fi
7428 done
7429 done
7430 IFS=$as_save_IFS
7431
7432 fi
7433 fi
7434 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7435 if test -n "$ac_ct_DSYMUTIL"; then
7436   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7437 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7438 else
7439   { echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6; }
7441 fi
7442
7443   if test "x$ac_ct_DSYMUTIL" = x; then
7444     DSYMUTIL=":"
7445   else
7446     case $cross_compiling:$ac_tool_warned in
7447 yes:)
7448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7449 whose name does not start with the host triplet.  If you think this
7450 configuration is useful to you, please write to autoconf@gnu.org." >&5
7451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7452 whose name does not start with the host triplet.  If you think this
7453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7454 ac_tool_warned=yes ;;
7455 esac
7456     DSYMUTIL=$ac_ct_DSYMUTIL
7457   fi
7458 else
7459   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7460 fi
7461
7462     if test -n "$ac_tool_prefix"; then
7463   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7464 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   if test -n "$NMEDIT"; then
7471   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476   IFS=$as_save_IFS
7477   test -z "$as_dir" && as_dir=.
7478   for ac_exec_ext in '' $ac_executable_extensions; do
7479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482     break 2
7483   fi
7484 done
7485 done
7486 IFS=$as_save_IFS
7487
7488 fi
7489 fi
7490 NMEDIT=$ac_cv_prog_NMEDIT
7491 if test -n "$NMEDIT"; then
7492   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7493 echo "${ECHO_T}$NMEDIT" >&6; }
7494 else
7495   { echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6; }
7497 fi
7498
7499
7500 fi
7501 if test -z "$ac_cv_prog_NMEDIT"; then
7502   ac_ct_NMEDIT=$NMEDIT
7503   # Extract the first word of "nmedit", so it can be a program name with args.
7504 set dummy nmedit; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   if test -n "$ac_ct_NMEDIT"; then
7511   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516   IFS=$as_save_IFS
7517   test -z "$as_dir" && as_dir=.
7518   for ac_exec_ext in '' $ac_executable_extensions; do
7519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522     break 2
7523   fi
7524 done
7525 done
7526 IFS=$as_save_IFS
7527
7528 fi
7529 fi
7530 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7531 if test -n "$ac_ct_NMEDIT"; then
7532   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7533 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7534 else
7535   { echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6; }
7537 fi
7538
7539   if test "x$ac_ct_NMEDIT" = x; then
7540     NMEDIT=":"
7541   else
7542     case $cross_compiling:$ac_tool_warned in
7543 yes:)
7544 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7545 whose name does not start with the host triplet.  If you think this
7546 configuration is useful to you, please write to autoconf@gnu.org." >&5
7547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7548 whose name does not start with the host triplet.  If you think this
7549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7550 ac_tool_warned=yes ;;
7551 esac
7552     NMEDIT=$ac_ct_NMEDIT
7553   fi
7554 else
7555   NMEDIT="$ac_cv_prog_NMEDIT"
7556 fi
7557
7558     if test -n "$ac_tool_prefix"; then
7559   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7560 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7563 if test "${ac_cv_prog_LIPO+set}" = set; then
7564   echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566   if test -n "$LIPO"; then
7567   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7571 do
7572   IFS=$as_save_IFS
7573   test -z "$as_dir" && as_dir=.
7574   for ac_exec_ext in '' $ac_executable_extensions; do
7575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578     break 2
7579   fi
7580 done
7581 done
7582 IFS=$as_save_IFS
7583
7584 fi
7585 fi
7586 LIPO=$ac_cv_prog_LIPO
7587 if test -n "$LIPO"; then
7588   { echo "$as_me:$LINENO: result: $LIPO" >&5
7589 echo "${ECHO_T}$LIPO" >&6; }
7590 else
7591   { echo "$as_me:$LINENO: result: no" >&5
7592 echo "${ECHO_T}no" >&6; }
7593 fi
7594
7595
7596 fi
7597 if test -z "$ac_cv_prog_LIPO"; then
7598   ac_ct_LIPO=$LIPO
7599   # Extract the first word of "lipo", so it can be a program name with args.
7600 set dummy lipo; ac_word=$2
7601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7603 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7604   echo $ECHO_N "(cached) $ECHO_C" >&6
7605 else
7606   if test -n "$ac_ct_LIPO"; then
7607   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612   IFS=$as_save_IFS
7613   test -z "$as_dir" && as_dir=.
7614   for ac_exec_ext in '' $ac_executable_extensions; do
7615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616     ac_cv_prog_ac_ct_LIPO="lipo"
7617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618     break 2
7619   fi
7620 done
7621 done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7627 if test -n "$ac_ct_LIPO"; then
7628   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7629 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7630 else
7631   { echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6; }
7633 fi
7634
7635   if test "x$ac_ct_LIPO" = x; then
7636     LIPO=":"
7637   else
7638     case $cross_compiling:$ac_tool_warned in
7639 yes:)
7640 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7641 whose name does not start with the host triplet.  If you think this
7642 configuration is useful to you, please write to autoconf@gnu.org." >&5
7643 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7644 whose name does not start with the host triplet.  If you think this
7645 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7646 ac_tool_warned=yes ;;
7647 esac
7648     LIPO=$ac_ct_LIPO
7649   fi
7650 else
7651   LIPO="$ac_cv_prog_LIPO"
7652 fi
7653
7654     if test -n "$ac_tool_prefix"; then
7655   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7656 set dummy ${ac_tool_prefix}otool; ac_word=$2
7657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659 if test "${ac_cv_prog_OTOOL+set}" = set; then
7660   echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662   if test -n "$OTOOL"; then
7663   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7664 else
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668   IFS=$as_save_IFS
7669   test -z "$as_dir" && as_dir=.
7670   for ac_exec_ext in '' $ac_executable_extensions; do
7671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7672     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7674     break 2
7675   fi
7676 done
7677 done
7678 IFS=$as_save_IFS
7679
7680 fi
7681 fi
7682 OTOOL=$ac_cv_prog_OTOOL
7683 if test -n "$OTOOL"; then
7684   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7685 echo "${ECHO_T}$OTOOL" >&6; }
7686 else
7687   { echo "$as_me:$LINENO: result: no" >&5
7688 echo "${ECHO_T}no" >&6; }
7689 fi
7690
7691
7692 fi
7693 if test -z "$ac_cv_prog_OTOOL"; then
7694   ac_ct_OTOOL=$OTOOL
7695   # Extract the first word of "otool", so it can be a program name with args.
7696 set dummy otool; ac_word=$2
7697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7699 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702   if test -n "$ac_ct_OTOOL"; then
7703   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708   IFS=$as_save_IFS
7709   test -z "$as_dir" && as_dir=.
7710   for ac_exec_ext in '' $ac_executable_extensions; do
7711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712     ac_cv_prog_ac_ct_OTOOL="otool"
7713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7714     break 2
7715   fi
7716 done
7717 done
7718 IFS=$as_save_IFS
7719
7720 fi
7721 fi
7722 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7723 if test -n "$ac_ct_OTOOL"; then
7724   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7725 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7726 else
7727   { echo "$as_me:$LINENO: result: no" >&5
7728 echo "${ECHO_T}no" >&6; }
7729 fi
7730
7731   if test "x$ac_ct_OTOOL" = x; then
7732     OTOOL=":"
7733   else
7734     case $cross_compiling:$ac_tool_warned in
7735 yes:)
7736 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7737 whose name does not start with the host triplet.  If you think this
7738 configuration is useful to you, please write to autoconf@gnu.org." >&5
7739 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7740 whose name does not start with the host triplet.  If you think this
7741 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7742 ac_tool_warned=yes ;;
7743 esac
7744     OTOOL=$ac_ct_OTOOL
7745   fi
7746 else
7747   OTOOL="$ac_cv_prog_OTOOL"
7748 fi
7749
7750     if test -n "$ac_tool_prefix"; then
7751   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7752 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7755 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7756   echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758   if test -n "$OTOOL64"; then
7759   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764   IFS=$as_save_IFS
7765   test -z "$as_dir" && as_dir=.
7766   for ac_exec_ext in '' $ac_executable_extensions; do
7767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7768     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770     break 2
7771   fi
7772 done
7773 done
7774 IFS=$as_save_IFS
7775
7776 fi
7777 fi
7778 OTOOL64=$ac_cv_prog_OTOOL64
7779 if test -n "$OTOOL64"; then
7780   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7781 echo "${ECHO_T}$OTOOL64" >&6; }
7782 else
7783   { echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6; }
7785 fi
7786
7787
7788 fi
7789 if test -z "$ac_cv_prog_OTOOL64"; then
7790   ac_ct_OTOOL64=$OTOOL64
7791   # Extract the first word of "otool64", so it can be a program name with args.
7792 set dummy otool64; ac_word=$2
7793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7795 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7796   echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798   if test -n "$ac_ct_OTOOL64"; then
7799   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7803 do
7804   IFS=$as_save_IFS
7805   test -z "$as_dir" && as_dir=.
7806   for ac_exec_ext in '' $ac_executable_extensions; do
7807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808     ac_cv_prog_ac_ct_OTOOL64="otool64"
7809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7810     break 2
7811   fi
7812 done
7813 done
7814 IFS=$as_save_IFS
7815
7816 fi
7817 fi
7818 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7819 if test -n "$ac_ct_OTOOL64"; then
7820   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7821 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7822 else
7823   { echo "$as_me:$LINENO: result: no" >&5
7824 echo "${ECHO_T}no" >&6; }
7825 fi
7826
7827   if test "x$ac_ct_OTOOL64" = x; then
7828     OTOOL64=":"
7829   else
7830     case $cross_compiling:$ac_tool_warned in
7831 yes:)
7832 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7833 whose name does not start with the host triplet.  If you think this
7834 configuration is useful to you, please write to autoconf@gnu.org." >&5
7835 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7836 whose name does not start with the host triplet.  If you think this
7837 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7838 ac_tool_warned=yes ;;
7839 esac
7840     OTOOL64=$ac_ct_OTOOL64
7841   fi
7842 else
7843   OTOOL64="$ac_cv_prog_OTOOL64"
7844 fi
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7873 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7874 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   lt_cv_apple_cc_single_mod=no
7878       if test -z "${LT_MULTI_MODULE}"; then
7879         # By default we will add the -single_module flag. You can override
7880         # by either setting the environment variable LT_MULTI_MODULE
7881         # non-empty at configure time, or by adding -multi_module to the
7882         # link flags.
7883         rm -rf libconftest.dylib*
7884         echo "int foo(void){return 1;}" > conftest.c
7885         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7886 -dynamiclib -Wl,-single_module conftest.c" >&5
7887         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7888           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7889         _lt_result=$?
7890         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7891           lt_cv_apple_cc_single_mod=yes
7892         else
7893           cat conftest.err >&5
7894         fi
7895         rm -rf libconftest.dylib*
7896         rm -f conftest.*
7897       fi
7898 fi
7899 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7900 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7901     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7902 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7903 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7904   echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906   lt_cv_ld_exported_symbols_list=no
7907       save_LDFLAGS=$LDFLAGS
7908       echo "_main" > conftest.sym
7909       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7910       cat >conftest.$ac_ext <<_ACEOF
7911 /* confdefs.h.  */
7912 _ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h.  */
7916
7917 int
7918 main ()
7919 {
7920
7921   ;
7922   return 0;
7923 }
7924 _ACEOF
7925 rm -f conftest.$ac_objext conftest$ac_exeext
7926 if { (ac_try="$ac_link"
7927 case "(($ac_try" in
7928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929   *) ac_try_echo=$ac_try;;
7930 esac
7931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932   (eval "$ac_link") 2>conftest.er1
7933   ac_status=$?
7934   grep -v '^ *+' conftest.er1 >conftest.err
7935   rm -f conftest.er1
7936   cat conftest.err >&5
7937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938   (exit $ac_status); } && {
7939          test -z "$ac_c_werror_flag" ||
7940          test ! -s conftest.err
7941        } && test -s conftest$ac_exeext &&
7942        $as_test_x conftest$ac_exeext; then
7943   lt_cv_ld_exported_symbols_list=yes
7944 else
7945   echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7947
7948         lt_cv_ld_exported_symbols_list=no
7949 fi
7950
7951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7952       conftest$ac_exeext conftest.$ac_ext
7953         LDFLAGS="$save_LDFLAGS"
7954
7955 fi
7956 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7957 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7958     case $host_os in
7959     rhapsody* | darwin1.[012])
7960       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7961     darwin1.*)
7962       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7963     darwin*) # darwin 5.x on
7964       # if running on 10.5 or later, the deployment target defaults
7965       # to the OS version, if on x86, and 10.4, the deployment
7966       # target defaults to 10.4. Don't you love it?
7967       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7968         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7969           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7970         10.[012]*)
7971           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7972         10.*)
7973           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7974       esac
7975     ;;
7976   esac
7977     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7978       _lt_dar_single_mod='$single_module'
7979     fi
7980     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7981       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7982     else
7983       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7984     fi
7985     if test "$DSYMUTIL" != ":"; then
7986       _lt_dsymutil='~$DSYMUTIL $lib || :'
7987     else
7988       _lt_dsymutil=
7989     fi
7990     ;;
7991   esac
7992
7993 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7994 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7995 if test "${ac_cv_header_stdc+set}" = set; then
7996   echo $ECHO_N "(cached) $ECHO_C" >&6
7997 else
7998   cat >conftest.$ac_ext <<_ACEOF
7999 /* confdefs.h.  */
8000 _ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h.  */
8004 #include <stdlib.h>
8005 #include <stdarg.h>
8006 #include <string.h>
8007 #include <float.h>
8008
8009 int
8010 main ()
8011 {
8012
8013   ;
8014   return 0;
8015 }
8016 _ACEOF
8017 rm -f conftest.$ac_objext
8018 if { (ac_try="$ac_compile"
8019 case "(($ac_try" in
8020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021   *) ac_try_echo=$ac_try;;
8022 esac
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024   (eval "$ac_compile") 2>conftest.er1
8025   ac_status=$?
8026   grep -v '^ *+' conftest.er1 >conftest.err
8027   rm -f conftest.er1
8028   cat conftest.err >&5
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); } && {
8031          test -z "$ac_c_werror_flag" ||
8032          test ! -s conftest.err
8033        } && test -s conftest.$ac_objext; then
8034   ac_cv_header_stdc=yes
8035 else
8036   echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8038
8039         ac_cv_header_stdc=no
8040 fi
8041
8042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8043
8044 if test $ac_cv_header_stdc = yes; then
8045   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8046   cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h.  */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h.  */
8052 #include <string.h>
8053
8054 _ACEOF
8055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8056   $EGREP "memchr" >/dev/null 2>&1; then
8057   :
8058 else
8059   ac_cv_header_stdc=no
8060 fi
8061 rm -f conftest*
8062
8063 fi
8064
8065 if test $ac_cv_header_stdc = yes; then
8066   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8067   cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073 #include <stdlib.h>
8074
8075 _ACEOF
8076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8077   $EGREP "free" >/dev/null 2>&1; then
8078   :
8079 else
8080   ac_cv_header_stdc=no
8081 fi
8082 rm -f conftest*
8083
8084 fi
8085
8086 if test $ac_cv_header_stdc = yes; then
8087   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8088   if test "$cross_compiling" = yes; then
8089   :
8090 else
8091   cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h.  */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h.  */
8097 #include <ctype.h>
8098 #include <stdlib.h>
8099 #if ((' ' & 0x0FF) == 0x020)
8100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8102 #else
8103 # define ISLOWER(c) \
8104                    (('a' <= (c) && (c) <= 'i') \
8105                      || ('j' <= (c) && (c) <= 'r') \
8106                      || ('s' <= (c) && (c) <= 'z'))
8107 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8108 #endif
8109
8110 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8111 int
8112 main ()
8113 {
8114   int i;
8115   for (i = 0; i < 256; i++)
8116     if (XOR (islower (i), ISLOWER (i))
8117         || toupper (i) != TOUPPER (i))
8118       return 2;
8119   return 0;
8120 }
8121 _ACEOF
8122 rm -f conftest$ac_exeext
8123 if { (ac_try="$ac_link"
8124 case "(($ac_try" in
8125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8126   *) ac_try_echo=$ac_try;;
8127 esac
8128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8129   (eval "$ac_link") 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8133   { (case "(($ac_try" in
8134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135   *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138   (eval "$ac_try") 2>&5
8139   ac_status=$?
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); }; }; then
8142   :
8143 else
8144   echo "$as_me: program exited with status $ac_status" >&5
8145 echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8147
8148 ( exit $ac_status )
8149 ac_cv_header_stdc=no
8150 fi
8151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8152 fi
8153
8154
8155 fi
8156 fi
8157 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8158 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8159 if test $ac_cv_header_stdc = yes; then
8160
8161 cat >>confdefs.h <<\_ACEOF
8162 #define STDC_HEADERS 1
8163 _ACEOF
8164
8165 fi
8166
8167 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8178                   inttypes.h stdint.h unistd.h
8179 do
8180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8184   echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186   cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h.  */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h.  */
8192 $ac_includes_default
8193
8194 #include <$ac_header>
8195 _ACEOF
8196 rm -f conftest.$ac_objext
8197 if { (ac_try="$ac_compile"
8198 case "(($ac_try" in
8199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200   *) ac_try_echo=$ac_try;;
8201 esac
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203   (eval "$ac_compile") 2>conftest.er1
8204   ac_status=$?
8205   grep -v '^ *+' conftest.er1 >conftest.err
8206   rm -f conftest.er1
8207   cat conftest.err >&5
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } && {
8210          test -z "$ac_c_werror_flag" ||
8211          test ! -s conftest.err
8212        } && test -s conftest.$ac_objext; then
8213   eval "$as_ac_Header=yes"
8214 else
8215   echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8217
8218         eval "$as_ac_Header=no"
8219 fi
8220
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 fi
8223 ac_res=`eval echo '${'$as_ac_Header'}'`
8224                { echo "$as_me:$LINENO: result: $ac_res" >&5
8225 echo "${ECHO_T}$ac_res" >&6; }
8226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8227   cat >>confdefs.h <<_ACEOF
8228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8229 _ACEOF
8230
8231 fi
8232
8233 done
8234
8235
8236
8237 for ac_header in dlfcn.h
8238 do
8239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245   cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h.  */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h.  */
8251 $ac_includes_default
8252
8253 #include <$ac_header>
8254 _ACEOF
8255 rm -f conftest.$ac_objext
8256 if { (ac_try="$ac_compile"
8257 case "(($ac_try" in
8258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259   *) ac_try_echo=$ac_try;;
8260 esac
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262   (eval "$ac_compile") 2>conftest.er1
8263   ac_status=$?
8264   grep -v '^ *+' conftest.er1 >conftest.err
8265   rm -f conftest.er1
8266   cat conftest.err >&5
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); } && {
8269          test -z "$ac_c_werror_flag" ||
8270          test ! -s conftest.err
8271        } && test -s conftest.$ac_objext; then
8272   eval "$as_ac_Header=yes"
8273 else
8274   echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8276
8277         eval "$as_ac_Header=no"
8278 fi
8279
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281 fi
8282 ac_res=`eval echo '${'$as_ac_Header'}'`
8283                { echo "$as_me:$LINENO: result: $ac_res" >&5
8284 echo "${ECHO_T}$ac_res" >&6; }
8285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8286   cat >>confdefs.h <<_ACEOF
8287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8288 _ACEOF
8289
8290 fi
8291
8292 done
8293
8294
8295
8296 ac_ext=cpp
8297 ac_cpp='$CXXCPP $CPPFLAGS'
8298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8301 if test -z "$CXX"; then
8302   if test -n "$CCC"; then
8303     CXX=$CCC
8304   else
8305     if test -n "$ac_tool_prefix"; then
8306   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8307   do
8308     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8312 if test "${ac_cv_prog_CXX+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   if test -n "$CXX"; then
8316   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321   IFS=$as_save_IFS
8322   test -z "$as_dir" && as_dir=.
8323   for ac_exec_ext in '' $ac_executable_extensions; do
8324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8327     break 2
8328   fi
8329 done
8330 done
8331 IFS=$as_save_IFS
8332
8333 fi
8334 fi
8335 CXX=$ac_cv_prog_CXX
8336 if test -n "$CXX"; then
8337   { echo "$as_me:$LINENO: result: $CXX" >&5
8338 echo "${ECHO_T}$CXX" >&6; }
8339 else
8340   { echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6; }
8342 fi
8343
8344
8345     test -n "$CXX" && break
8346   done
8347 fi
8348 if test -z "$CXX"; then
8349   ac_ct_CXX=$CXX
8350   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8351 do
8352   # Extract the first word of "$ac_prog", so it can be a program name with args.
8353 set dummy $ac_prog; ac_word=$2
8354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8356 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8357   echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359   if test -n "$ac_ct_CXX"; then
8360   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8361 else
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8364 do
8365   IFS=$as_save_IFS
8366   test -z "$as_dir" && as_dir=.
8367   for ac_exec_ext in '' $ac_executable_extensions; do
8368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369     ac_cv_prog_ac_ct_CXX="$ac_prog"
8370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8371     break 2
8372   fi
8373 done
8374 done
8375 IFS=$as_save_IFS
8376
8377 fi
8378 fi
8379 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8380 if test -n "$ac_ct_CXX"; then
8381   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8382 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8383 else
8384   { echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6; }
8386 fi
8387
8388
8389   test -n "$ac_ct_CXX" && break
8390 done
8391
8392   if test "x$ac_ct_CXX" = x; then
8393     CXX="g++"
8394   else
8395     case $cross_compiling:$ac_tool_warned in
8396 yes:)
8397 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8398 whose name does not start with the host triplet.  If you think this
8399 configuration is useful to you, please write to autoconf@gnu.org." >&5
8400 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8401 whose name does not start with the host triplet.  If you think this
8402 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8403 ac_tool_warned=yes ;;
8404 esac
8405     CXX=$ac_ct_CXX
8406   fi
8407 fi
8408
8409   fi
8410 fi
8411 # Provide some information about the compiler.
8412 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8413 ac_compiler=`set X $ac_compile; echo $2`
8414 { (ac_try="$ac_compiler --version >&5"
8415 case "(($ac_try" in
8416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417   *) ac_try_echo=$ac_try;;
8418 esac
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420   (eval "$ac_compiler --version >&5") 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }
8424 { (ac_try="$ac_compiler -v >&5"
8425 case "(($ac_try" in
8426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427   *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430   (eval "$ac_compiler -v >&5") 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }
8434 { (ac_try="$ac_compiler -V >&5"
8435 case "(($ac_try" in
8436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437   *) ac_try_echo=$ac_try;;
8438 esac
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440   (eval "$ac_compiler -V >&5") 2>&5
8441   ac_status=$?
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); }
8444
8445 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8446 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8447 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8448   echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450   cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456
8457 int
8458 main ()
8459 {
8460 #ifndef __GNUC__
8461        choke me
8462 #endif
8463
8464   ;
8465   return 0;
8466 }
8467 _ACEOF
8468 rm -f conftest.$ac_objext
8469 if { (ac_try="$ac_compile"
8470 case "(($ac_try" in
8471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472   *) ac_try_echo=$ac_try;;
8473 esac
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475   (eval "$ac_compile") 2>conftest.er1
8476   ac_status=$?
8477   grep -v '^ *+' conftest.er1 >conftest.err
8478   rm -f conftest.er1
8479   cat conftest.err >&5
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } && {
8482          test -z "$ac_cxx_werror_flag" ||
8483          test ! -s conftest.err
8484        } && test -s conftest.$ac_objext; then
8485   ac_compiler_gnu=yes
8486 else
8487   echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8489
8490         ac_compiler_gnu=no
8491 fi
8492
8493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8495
8496 fi
8497 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8498 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8499 GXX=`test $ac_compiler_gnu = yes && echo yes`
8500 ac_test_CXXFLAGS=${CXXFLAGS+set}
8501 ac_save_CXXFLAGS=$CXXFLAGS
8502 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8504 if test "${ac_cv_prog_cxx_g+set}" = set; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8508    ac_cxx_werror_flag=yes
8509    ac_cv_prog_cxx_g=no
8510    CXXFLAGS="-g"
8511    cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h.  */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h.  */
8517
8518 int
8519 main ()
8520 {
8521
8522   ;
8523   return 0;
8524 }
8525 _ACEOF
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8528 case "(($ac_try" in
8529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530   *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533   (eval "$ac_compile") 2>conftest.er1
8534   ac_status=$?
8535   grep -v '^ *+' conftest.er1 >conftest.err
8536   rm -f conftest.er1
8537   cat conftest.err >&5
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } && {
8540          test -z "$ac_cxx_werror_flag" ||
8541          test ! -s conftest.err
8542        } && test -s conftest.$ac_objext; then
8543   ac_cv_prog_cxx_g=yes
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548         CXXFLAGS=""
8549       cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h.  */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h.  */
8555
8556 int
8557 main ()
8558 {
8559
8560   ;
8561   return 0;
8562 }
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8566 case "(($ac_try" in
8567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568   *) ac_try_echo=$ac_try;;
8569 esac
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571   (eval "$ac_compile") 2>conftest.er1
8572   ac_status=$?
8573   grep -v '^ *+' conftest.er1 >conftest.err
8574   rm -f conftest.er1
8575   cat conftest.err >&5
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); } && {
8578          test -z "$ac_cxx_werror_flag" ||
8579          test ! -s conftest.err
8580        } && test -s conftest.$ac_objext; then
8581   :
8582 else
8583   echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8585
8586         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8587          CXXFLAGS="-g"
8588          cat >conftest.$ac_ext <<_ACEOF
8589 /* confdefs.h.  */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h.  */
8594
8595 int
8596 main ()
8597 {
8598
8599   ;
8600   return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext
8604 if { (ac_try="$ac_compile"
8605 case "(($ac_try" in
8606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607   *) ac_try_echo=$ac_try;;
8608 esac
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610   (eval "$ac_compile") 2>conftest.er1
8611   ac_status=$?
8612   grep -v '^ *+' conftest.er1 >conftest.err
8613   rm -f conftest.er1
8614   cat conftest.err >&5
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); } && {
8617          test -z "$ac_cxx_werror_flag" ||
8618          test ! -s conftest.err
8619        } && test -s conftest.$ac_objext; then
8620   ac_cv_prog_cxx_g=yes
8621 else
8622   echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8624
8625
8626 fi
8627
8628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 fi
8630
8631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632 fi
8633
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8636 fi
8637 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8638 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8639 if test "$ac_test_CXXFLAGS" = set; then
8640   CXXFLAGS=$ac_save_CXXFLAGS
8641 elif test $ac_cv_prog_cxx_g = yes; then
8642   if test "$GXX" = yes; then
8643     CXXFLAGS="-g -O2"
8644   else
8645     CXXFLAGS="-g"
8646   fi
8647 else
8648   if test "$GXX" = yes; then
8649     CXXFLAGS="-O2"
8650   else
8651     CXXFLAGS=
8652   fi
8653 fi
8654 ac_ext=c
8655 ac_cpp='$CPP $CPPFLAGS'
8656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8659
8660 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8661     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8662     (test "X$CXX" != "Xg++"))) ; then
8663   ac_ext=cpp
8664 ac_cpp='$CXXCPP $CPPFLAGS'
8665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8668 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8669 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8670 if test -z "$CXXCPP"; then
8671   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8672   echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674       # Double quotes because CXXCPP needs to be expanded
8675     for CXXCPP in "$CXX -E" "/lib/cpp"
8676     do
8677       ac_preproc_ok=false
8678 for ac_cxx_preproc_warn_flag in '' yes
8679 do
8680   # Use a header file that comes with gcc, so configuring glibc
8681   # with a fresh cross-compiler works.
8682   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8683   # <limits.h> exists even on freestanding compilers.
8684   # On the NeXT, cc -E runs the code through the compiler's parser,
8685   # not just through cpp. "Syntax error" is here to catch this case.
8686   cat >conftest.$ac_ext <<_ACEOF
8687 /* confdefs.h.  */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h.  */
8692 #ifdef __STDC__
8693 # include <limits.h>
8694 #else
8695 # include <assert.h>
8696 #endif
8697                      Syntax error
8698 _ACEOF
8699 if { (ac_try="$ac_cpp conftest.$ac_ext"
8700 case "(($ac_try" in
8701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702   *) ac_try_echo=$ac_try;;
8703 esac
8704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8706   ac_status=$?
8707   grep -v '^ *+' conftest.er1 >conftest.err
8708   rm -f conftest.er1
8709   cat conftest.err >&5
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); } >/dev/null && {
8712          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8713          test ! -s conftest.err
8714        }; then
8715   :
8716 else
8717   echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8719
8720   # Broken: fails on valid input.
8721 continue
8722 fi
8723
8724 rm -f conftest.err conftest.$ac_ext
8725
8726   # OK, works on sane cases.  Now check whether nonexistent headers
8727   # can be detected and how.
8728   cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734 #include <ac_nonexistent.h>
8735 _ACEOF
8736 if { (ac_try="$ac_cpp conftest.$ac_ext"
8737 case "(($ac_try" in
8738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739   *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8743   ac_status=$?
8744   grep -v '^ *+' conftest.er1 >conftest.err
8745   rm -f conftest.er1
8746   cat conftest.err >&5
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); } >/dev/null && {
8749          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8750          test ! -s conftest.err
8751        }; then
8752   # Broken: success on invalid input.
8753 continue
8754 else
8755   echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8757
8758   # Passes both tests.
8759 ac_preproc_ok=:
8760 break
8761 fi
8762
8763 rm -f conftest.err conftest.$ac_ext
8764
8765 done
8766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8767 rm -f conftest.err conftest.$ac_ext
8768 if $ac_preproc_ok; then
8769   break
8770 fi
8771
8772     done
8773     ac_cv_prog_CXXCPP=$CXXCPP
8774
8775 fi
8776   CXXCPP=$ac_cv_prog_CXXCPP
8777 else
8778   ac_cv_prog_CXXCPP=$CXXCPP
8779 fi
8780 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8781 echo "${ECHO_T}$CXXCPP" >&6; }
8782 ac_preproc_ok=false
8783 for ac_cxx_preproc_warn_flag in '' yes
8784 do
8785   # Use a header file that comes with gcc, so configuring glibc
8786   # with a fresh cross-compiler works.
8787   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8788   # <limits.h> exists even on freestanding compilers.
8789   # On the NeXT, cc -E runs the code through the compiler's parser,
8790   # not just through cpp. "Syntax error" is here to catch this case.
8791   cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h.  */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h.  */
8797 #ifdef __STDC__
8798 # include <limits.h>
8799 #else
8800 # include <assert.h>
8801 #endif
8802                      Syntax error
8803 _ACEOF
8804 if { (ac_try="$ac_cpp conftest.$ac_ext"
8805 case "(($ac_try" in
8806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807   *) ac_try_echo=$ac_try;;
8808 esac
8809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8811   ac_status=$?
8812   grep -v '^ *+' conftest.er1 >conftest.err
8813   rm -f conftest.er1
8814   cat conftest.err >&5
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); } >/dev/null && {
8817          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8818          test ! -s conftest.err
8819        }; then
8820   :
8821 else
8822   echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8824
8825   # Broken: fails on valid input.
8826 continue
8827 fi
8828
8829 rm -f conftest.err conftest.$ac_ext
8830
8831   # OK, works on sane cases.  Now check whether nonexistent headers
8832   # can be detected and how.
8833   cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h.  */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h.  */
8839 #include <ac_nonexistent.h>
8840 _ACEOF
8841 if { (ac_try="$ac_cpp conftest.$ac_ext"
8842 case "(($ac_try" in
8843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844   *) ac_try_echo=$ac_try;;
8845 esac
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8848   ac_status=$?
8849   grep -v '^ *+' conftest.er1 >conftest.err
8850   rm -f conftest.er1
8851   cat conftest.err >&5
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); } >/dev/null && {
8854          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8855          test ! -s conftest.err
8856        }; then
8857   # Broken: success on invalid input.
8858 continue
8859 else
8860   echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8862
8863   # Passes both tests.
8864 ac_preproc_ok=:
8865 break
8866 fi
8867
8868 rm -f conftest.err conftest.$ac_ext
8869
8870 done
8871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8872 rm -f conftest.err conftest.$ac_ext
8873 if $ac_preproc_ok; then
8874   :
8875 else
8876   _lt_caught_CXX_error=yes
8877 fi
8878
8879 ac_ext=c
8880 ac_cpp='$CPP $CPPFLAGS'
8881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8884
8885 else
8886   _lt_caught_CXX_error=yes
8887 fi
8888
8889
8890
8891
8892
8893 # Set options
8894 # Check whether --enable-shared was given.
8895 if test "${enable_shared+set}" = set; then
8896   enableval=$enable_shared; p=${PACKAGE-default}
8897     case $enableval in
8898     yes) enable_shared=yes ;;
8899     no) enable_shared=no ;;
8900     *)
8901       enable_shared=no
8902       # Look at the argument we got.  We use all the common list separators.
8903       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8904       for pkg in $enableval; do
8905         IFS="$lt_save_ifs"
8906         if test "X$pkg" = "X$p"; then
8907           enable_shared=yes
8908         fi
8909       done
8910       IFS="$lt_save_ifs"
8911       ;;
8912     esac
8913 else
8914   enable_shared=yes
8915 fi
8916
8917
8918
8919
8920
8921
8922
8923 # Check whether --enable-static was given.
8924 if test "${enable_static+set}" = set; then
8925   enableval=$enable_static; p=${PACKAGE-default}
8926     case $enableval in
8927     yes) enable_static=yes ;;
8928     no) enable_static=no ;;
8929     *)
8930      enable_static=no
8931       # Look at the argument we got.  We use all the common list separators.
8932       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8933       for pkg in $enableval; do
8934         IFS="$lt_save_ifs"
8935         if test "X$pkg" = "X$p"; then
8936           enable_static=yes
8937         fi
8938       done
8939       IFS="$lt_save_ifs"
8940       ;;
8941     esac
8942 else
8943   enable_static=no
8944 fi
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955         enable_dlopen=no
8956
8957
8958   enable_win32_dll=no
8959
8960
8961
8962
8963
8964 # Check whether --with-pic was given.
8965 if test "${with_pic+set}" = set; then
8966   withval=$with_pic; pic_mode="$withval"
8967 else
8968   pic_mode=default
8969 fi
8970
8971
8972 test -z "$pic_mode" && pic_mode=default
8973
8974
8975
8976
8977
8978
8979
8980   # Check whether --enable-fast-install was given.
8981 if test "${enable_fast_install+set}" = set; then
8982   enableval=$enable_fast_install; p=${PACKAGE-default}
8983     case $enableval in
8984     yes) enable_fast_install=yes ;;
8985     no) enable_fast_install=no ;;
8986     *)
8987       enable_fast_install=no
8988       # Look at the argument we got.  We use all the common list separators.
8989       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8990       for pkg in $enableval; do
8991         IFS="$lt_save_ifs"
8992         if test "X$pkg" = "X$p"; then
8993           enable_fast_install=yes
8994         fi
8995       done
8996       IFS="$lt_save_ifs"
8997       ;;
8998     esac
8999 else
9000   enable_fast_install=yes
9001 fi
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013 # This can be used to rebuild libtool when needed
9014 LIBTOOL_DEPS="$ltmain"
9015
9016 # Always use our own libtool.
9017 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043 test -z "$LN_S" && LN_S="ln -s"
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058 if test -n "${ZSH_VERSION+set}" ; then
9059    setopt NO_GLOB_SUBST
9060 fi
9061
9062 { echo "$as_me:$LINENO: checking for objdir" >&5
9063 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9064 if test "${lt_cv_objdir+set}" = set; then
9065   echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067   rm -f .libs 2>/dev/null
9068 mkdir .libs 2>/dev/null
9069 if test -d .libs; then
9070   lt_cv_objdir=.libs
9071 else
9072   # MS-DOS does not allow filenames that begin with a dot.
9073   lt_cv_objdir=_libs
9074 fi
9075 rmdir .libs 2>/dev/null
9076 fi
9077 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9078 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9079 objdir=$lt_cv_objdir
9080
9081
9082
9083
9084
9085 cat >>confdefs.h <<_ACEOF
9086 #define LT_OBJDIR "$lt_cv_objdir/"
9087 _ACEOF
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105 case $host_os in
9106 aix3*)
9107   # AIX sometimes has problems with the GCC collect2 program.  For some
9108   # reason, if we set the COLLECT_NAMES environment variable, the problems
9109   # vanish in a puff of smoke.
9110   if test "X${COLLECT_NAMES+set}" != Xset; then
9111     COLLECT_NAMES=
9112     export COLLECT_NAMES
9113   fi
9114   ;;
9115 esac
9116
9117 # Sed substitution that helps us do robust quoting.  It backslashifies
9118 # metacharacters that are still active within double-quoted strings.
9119 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9120
9121 # Same as above, but do not quote variable references.
9122 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9123
9124 # Sed substitution to delay expansion of an escaped shell variable in a
9125 # double_quote_subst'ed string.
9126 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9127
9128 # Sed substitution to delay expansion of an escaped single quote.
9129 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9130
9131 # Sed substitution to avoid accidental globbing in evaled expressions
9132 no_glob_subst='s/\*/\\\*/g'
9133
9134 # Global variables:
9135 ofile=libtool
9136 can_build_shared=yes
9137
9138 # All known linkers require a `.a' archive for static linking (except MSVC,
9139 # which needs '.lib').
9140 libext=a
9141
9142 with_gnu_ld="$lt_cv_prog_gnu_ld"
9143
9144 old_CC="$CC"
9145 old_CFLAGS="$CFLAGS"
9146
9147 # Set sane defaults for various variables
9148 test -z "$CC" && CC=cc
9149 test -z "$LTCC" && LTCC=$CC
9150 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9151 test -z "$LD" && LD=ld
9152 test -z "$ac_objext" && ac_objext=o
9153
9154 for cc_temp in $compiler""; do
9155   case $cc_temp in
9156     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9157     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9158     \-*) ;;
9159     *) break;;
9160   esac
9161 done
9162 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9163
9164
9165 # Only perform the check for file, if the check method requires it
9166 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9167 case $deplibs_check_method in
9168 file_magic*)
9169   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9170     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9171 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9172 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9173   echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175   case $MAGIC_CMD in
9176 [\\/*] |  ?:[\\/]*)
9177   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9178   ;;
9179 *)
9180   lt_save_MAGIC_CMD="$MAGIC_CMD"
9181   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9182   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9183   for ac_dir in $ac_dummy; do
9184     IFS="$lt_save_ifs"
9185     test -z "$ac_dir" && ac_dir=.
9186     if test -f $ac_dir/${ac_tool_prefix}file; then
9187       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9188       if test -n "$file_magic_test_file"; then
9189         case $deplibs_check_method in
9190         "file_magic "*)
9191           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9192           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9193           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9194             $EGREP "$file_magic_regex" > /dev/null; then
9195             :
9196           else
9197             cat <<_LT_EOF 1>&2
9198
9199 *** Warning: the command libtool uses to detect shared libraries,
9200 *** $file_magic_cmd, produces output that libtool cannot recognize.
9201 *** The result is that libtool may fail to recognize shared libraries
9202 *** as such.  This will affect the creation of libtool libraries that
9203 *** depend on shared libraries, but programs linked with such libtool
9204 *** libraries will work regardless of this problem.  Nevertheless, you
9205 *** may want to report the problem to your system manager and/or to
9206 *** bug-libtool@gnu.org
9207
9208 _LT_EOF
9209           fi ;;
9210         esac
9211       fi
9212       break
9213     fi
9214   done
9215   IFS="$lt_save_ifs"
9216   MAGIC_CMD="$lt_save_MAGIC_CMD"
9217   ;;
9218 esac
9219 fi
9220
9221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9222 if test -n "$MAGIC_CMD"; then
9223   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9224 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9225 else
9226   { echo "$as_me:$LINENO: result: no" >&5
9227 echo "${ECHO_T}no" >&6; }
9228 fi
9229
9230
9231
9232
9233
9234 if test -z "$lt_cv_path_MAGIC_CMD"; then
9235   if test -n "$ac_tool_prefix"; then
9236     { echo "$as_me:$LINENO: checking for file" >&5
9237 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9238 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9239   echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241   case $MAGIC_CMD in
9242 [\\/*] |  ?:[\\/]*)
9243   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9244   ;;
9245 *)
9246   lt_save_MAGIC_CMD="$MAGIC_CMD"
9247   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9248   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9249   for ac_dir in $ac_dummy; do
9250     IFS="$lt_save_ifs"
9251     test -z "$ac_dir" && ac_dir=.
9252     if test -f $ac_dir/file; then
9253       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9254       if test -n "$file_magic_test_file"; then
9255         case $deplibs_check_method in
9256         "file_magic "*)
9257           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9258           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9259           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9260             $EGREP "$file_magic_regex" > /dev/null; then
9261             :
9262           else
9263             cat <<_LT_EOF 1>&2
9264
9265 *** Warning: the command libtool uses to detect shared libraries,
9266 *** $file_magic_cmd, produces output that libtool cannot recognize.
9267 *** The result is that libtool may fail to recognize shared libraries
9268 *** as such.  This will affect the creation of libtool libraries that
9269 *** depend on shared libraries, but programs linked with such libtool
9270 *** libraries will work regardless of this problem.  Nevertheless, you
9271 *** may want to report the problem to your system manager and/or to
9272 *** bug-libtool@gnu.org
9273
9274 _LT_EOF
9275           fi ;;
9276         esac
9277       fi
9278       break
9279     fi
9280   done
9281   IFS="$lt_save_ifs"
9282   MAGIC_CMD="$lt_save_MAGIC_CMD"
9283   ;;
9284 esac
9285 fi
9286
9287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9288 if test -n "$MAGIC_CMD"; then
9289   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9290 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9291 else
9292   { echo "$as_me:$LINENO: result: no" >&5
9293 echo "${ECHO_T}no" >&6; }
9294 fi
9295
9296
9297   else
9298     MAGIC_CMD=:
9299   fi
9300 fi
9301
9302   fi
9303   ;;
9304 esac
9305
9306 # Use C for the default configuration in the libtool script
9307
9308 lt_save_CC="$CC"
9309 ac_ext=c
9310 ac_cpp='$CPP $CPPFLAGS'
9311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9314
9315
9316 # Source file extension for C test sources.
9317 ac_ext=c
9318
9319 # Object file extension for compiled C test sources.
9320 objext=o
9321 objext=$objext
9322
9323 # Code to be used in simple compile tests
9324 lt_simple_compile_test_code="int some_variable = 0;"
9325
9326 # Code to be used in simple link tests
9327 lt_simple_link_test_code='int main(){return(0);}'
9328
9329
9330
9331
9332
9333
9334
9335 # If no C compiler was specified, use CC.
9336 LTCC=${LTCC-"$CC"}
9337
9338 # If no C compiler flags were specified, use CFLAGS.
9339 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9340
9341 # Allow CC to be a program name with arguments.
9342 compiler=$CC
9343
9344 # Save the default compiler, since it gets overwritten when the other
9345 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9346 compiler_DEFAULT=$CC
9347
9348 # save warnings/boilerplate of simple test code
9349 ac_outfile=conftest.$ac_objext
9350 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9351 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9352 _lt_compiler_boilerplate=`cat conftest.err`
9353 $RM conftest*
9354
9355 ac_outfile=conftest.$ac_objext
9356 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9357 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9358 _lt_linker_boilerplate=`cat conftest.err`
9359 $RM -r conftest*
9360
9361
9362 ## CAVEAT EMPTOR:
9363 ## There is no encapsulation within the following macros, do not change
9364 ## the running order or otherwise move them around unless you know exactly
9365 ## what you are doing...
9366 if test -n "$compiler"; then
9367
9368 lt_prog_compiler_no_builtin_flag=
9369
9370 if test "$GCC" = yes; then
9371   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9372
9373   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9374 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9375 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9376   echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378   lt_cv_prog_compiler_rtti_exceptions=no
9379    ac_outfile=conftest.$ac_objext
9380    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9381    lt_compiler_flag="-fno-rtti -fno-exceptions"
9382    # Insert the option either (1) after the last *FLAGS variable, or
9383    # (2) before a word containing "conftest.", or (3) at the end.
9384    # Note that $ac_compile itself does not contain backslashes and begins
9385    # with a dollar sign (not a hyphen), so the echo should work correctly.
9386    # The option is referenced via a variable to avoid confusing sed.
9387    lt_compile=`echo "$ac_compile" | $SED \
9388    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9389    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9390    -e 's:$: $lt_compiler_flag:'`
9391    (eval echo "\"\$as_me:9391: $lt_compile\"" >&5)
9392    (eval "$lt_compile" 2>conftest.err)
9393    ac_status=$?
9394    cat conftest.err >&5
9395    echo "$as_me:9395: \$? = $ac_status" >&5
9396    if (exit $ac_status) && test -s "$ac_outfile"; then
9397      # The compiler can only warn and ignore the option if not recognized
9398      # So say no if there are warnings other than the usual output.
9399      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9400      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9401      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9402        lt_cv_prog_compiler_rtti_exceptions=yes
9403      fi
9404    fi
9405    $RM conftest*
9406
9407 fi
9408 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9409 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9410
9411 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9412     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9413 else
9414     :
9415 fi
9416
9417 fi
9418
9419
9420
9421
9422
9423
9424   lt_prog_compiler_wl=
9425 lt_prog_compiler_pic=
9426 lt_prog_compiler_static=
9427
9428 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9429 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9430
9431   if test "$GCC" = yes; then
9432     lt_prog_compiler_wl='-Wl,'
9433     lt_prog_compiler_static='-static'
9434
9435     case $host_os in
9436       aix*)
9437       # All AIX code is PIC.
9438       if test "$host_cpu" = ia64; then
9439         # AIX 5 now supports IA64 processor
9440         lt_prog_compiler_static='-Bstatic'
9441       fi
9442       ;;
9443
9444     amigaos*)
9445       case $host_cpu in
9446       powerpc)
9447             # see comment about AmigaOS4 .so support
9448             lt_prog_compiler_pic='-fPIC'
9449         ;;
9450       m68k)
9451             # FIXME: we need at least 68020 code to build shared libraries, but
9452             # adding the `-m68020' flag to GCC prevents building anything better,
9453             # like `-m68040'.
9454             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9455         ;;
9456       esac
9457       ;;
9458
9459     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9460       # PIC is the default for these OSes.
9461       ;;
9462
9463     mingw* | cygwin* | pw32* | os2* | cegcc*)
9464       # This hack is so that the source file can tell whether it is being
9465       # built for inclusion in a dll (and should export symbols for example).
9466       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9467       # (--disable-auto-import) libraries
9468       lt_prog_compiler_pic='-DDLL_EXPORT'
9469       ;;
9470
9471     darwin* | rhapsody*)
9472       # PIC is the default on this platform
9473       # Common symbols not allowed in MH_DYLIB files
9474       lt_prog_compiler_pic='-fno-common'
9475       ;;
9476
9477     hpux*)
9478       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9479       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9480       # sets the default TLS model and affects inlining.
9481       case $host_cpu in
9482       hppa*64*)
9483         # +Z the default
9484         ;;
9485       *)
9486         lt_prog_compiler_pic='-fPIC'
9487         ;;
9488       esac
9489       ;;
9490
9491     interix[3-9]*)
9492       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9493       # Instead, we relocate shared libraries at runtime.
9494       ;;
9495
9496     msdosdjgpp*)
9497       # Just because we use GCC doesn't mean we suddenly get shared libraries
9498       # on systems that don't support them.
9499       lt_prog_compiler_can_build_shared=no
9500       enable_shared=no
9501       ;;
9502
9503     *nto* | *qnx*)
9504       # QNX uses GNU C++, but need to define -shared option too, otherwise
9505       # it will coredump.
9506       lt_prog_compiler_pic='-fPIC -shared'
9507       ;;
9508
9509     sysv4*MP*)
9510       if test -d /usr/nec; then
9511         lt_prog_compiler_pic=-Kconform_pic
9512       fi
9513       ;;
9514
9515     *)
9516       lt_prog_compiler_pic='-fPIC'
9517       ;;
9518     esac
9519   else
9520     # PORTME Check for flag to pass linker flags through the system compiler.
9521     case $host_os in
9522     aix*)
9523       lt_prog_compiler_wl='-Wl,'
9524       if test "$host_cpu" = ia64; then
9525         # AIX 5 now supports IA64 processor
9526         lt_prog_compiler_static='-Bstatic'
9527       else
9528         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9529       fi
9530       ;;
9531
9532     mingw* | cygwin* | pw32* | os2* | cegcc*)
9533       # This hack is so that the source file can tell whether it is being
9534       # built for inclusion in a dll (and should export symbols for example).
9535       lt_prog_compiler_pic='-DDLL_EXPORT'
9536       ;;
9537
9538     hpux9* | hpux10* | hpux11*)
9539       lt_prog_compiler_wl='-Wl,'
9540       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9541       # not for PA HP-UX.
9542       case $host_cpu in
9543       hppa*64*|ia64*)
9544         # +Z the default
9545         ;;
9546       *)
9547         lt_prog_compiler_pic='+Z'
9548         ;;
9549       esac
9550       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9551       lt_prog_compiler_static='${wl}-a ${wl}archive'
9552       ;;
9553
9554     irix5* | irix6* | nonstopux*)
9555       lt_prog_compiler_wl='-Wl,'
9556       # PIC (with -KPIC) is the default.
9557       lt_prog_compiler_static='-non_shared'
9558       ;;
9559
9560     linux* | k*bsd*-gnu)
9561       case $cc_basename in
9562       # old Intel for x86_64 which still supported -KPIC.
9563       ecc*)
9564         lt_prog_compiler_wl='-Wl,'
9565         lt_prog_compiler_pic='-KPIC'
9566         lt_prog_compiler_static='-static'
9567         ;;
9568       # icc used to be incompatible with GCC.
9569       # ICC 10 doesn't accept -KPIC any more.
9570       icc* | ifort*)
9571         lt_prog_compiler_wl='-Wl,'
9572         lt_prog_compiler_pic='-fPIC'
9573         lt_prog_compiler_static='-static'
9574         ;;
9575       # Lahey Fortran 8.1.
9576       lf95*)
9577         lt_prog_compiler_wl='-Wl,'
9578         lt_prog_compiler_pic='--shared'
9579         lt_prog_compiler_static='--static'
9580         ;;
9581       pgcc* | pgf77* | pgf90* | pgf95*)
9582         # Portland Group compilers (*not* the Pentium gcc compiler,
9583         # which looks to be a dead project)
9584         lt_prog_compiler_wl='-Wl,'
9585         lt_prog_compiler_pic='-fpic'
9586         lt_prog_compiler_static='-Bstatic'
9587         ;;
9588       ccc*)
9589         lt_prog_compiler_wl='-Wl,'
9590         # All Alpha code is PIC.
9591         lt_prog_compiler_static='-non_shared'
9592         ;;
9593       xl*)
9594         # IBM XL C 8.0/Fortran 10.1 on PPC
9595         lt_prog_compiler_wl='-Wl,'
9596         lt_prog_compiler_pic='-qpic'
9597         lt_prog_compiler_static='-qstaticlink'
9598         ;;
9599       *)
9600         case `$CC -V 2>&1 | sed 5q` in
9601         *Sun\ C*)
9602           # Sun C 5.9
9603           lt_prog_compiler_pic='-KPIC'
9604           lt_prog_compiler_static='-Bstatic'
9605           lt_prog_compiler_wl='-Wl,'
9606           ;;
9607         *Sun\ F*)
9608           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9609           lt_prog_compiler_pic='-KPIC'
9610           lt_prog_compiler_static='-Bstatic'
9611           lt_prog_compiler_wl=''
9612           ;;
9613         esac
9614         ;;
9615       esac
9616       ;;
9617
9618     newsos6)
9619       lt_prog_compiler_pic='-KPIC'
9620       lt_prog_compiler_static='-Bstatic'
9621       ;;
9622
9623     *nto* | *qnx*)
9624       # QNX uses GNU C++, but need to define -shared option too, otherwise
9625       # it will coredump.
9626       lt_prog_compiler_pic='-fPIC -shared'
9627       ;;
9628
9629     osf3* | osf4* | osf5*)
9630       lt_prog_compiler_wl='-Wl,'
9631       # All OSF/1 code is PIC.
9632       lt_prog_compiler_static='-non_shared'
9633       ;;
9634
9635     rdos*)
9636       lt_prog_compiler_static='-non_shared'
9637       ;;
9638
9639     solaris*)
9640       lt_prog_compiler_pic='-KPIC'
9641       lt_prog_compiler_static='-Bstatic'
9642       case $cc_basename in
9643       f77* | f90* | f95*)
9644         lt_prog_compiler_wl='-Qoption ld ';;
9645       *)
9646         lt_prog_compiler_wl='-Wl,';;
9647       esac
9648       ;;
9649
9650     sunos4*)
9651       lt_prog_compiler_wl='-Qoption ld '
9652       lt_prog_compiler_pic='-PIC'
9653       lt_prog_compiler_static='-Bstatic'
9654       ;;
9655
9656     sysv4 | sysv4.2uw2* | sysv4.3*)
9657       lt_prog_compiler_wl='-Wl,'
9658       lt_prog_compiler_pic='-KPIC'
9659       lt_prog_compiler_static='-Bstatic'
9660       ;;
9661
9662     sysv4*MP*)
9663       if test -d /usr/nec ;then
9664         lt_prog_compiler_pic='-Kconform_pic'
9665         lt_prog_compiler_static='-Bstatic'
9666       fi
9667       ;;
9668
9669     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9670       lt_prog_compiler_wl='-Wl,'
9671       lt_prog_compiler_pic='-KPIC'
9672       lt_prog_compiler_static='-Bstatic'
9673       ;;
9674
9675     unicos*)
9676       lt_prog_compiler_wl='-Wl,'
9677       lt_prog_compiler_can_build_shared=no
9678       ;;
9679
9680     uts4*)
9681       lt_prog_compiler_pic='-pic'
9682       lt_prog_compiler_static='-Bstatic'
9683       ;;
9684
9685     *)
9686       lt_prog_compiler_can_build_shared=no
9687       ;;
9688     esac
9689   fi
9690
9691 case $host_os in
9692   # For platforms which do not support PIC, -DPIC is meaningless:
9693   *djgpp*)
9694     lt_prog_compiler_pic=
9695     ;;
9696   *)
9697     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9698     ;;
9699 esac
9700 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9701 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9702
9703
9704
9705
9706
9707
9708 #
9709 # Check to make sure the PIC flag actually works.
9710 #
9711 if test -n "$lt_prog_compiler_pic"; then
9712   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9713 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9714 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9715   echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717   lt_cv_prog_compiler_pic_works=no
9718    ac_outfile=conftest.$ac_objext
9719    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9720    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9721    # Insert the option either (1) after the last *FLAGS variable, or
9722    # (2) before a word containing "conftest.", or (3) at the end.
9723    # Note that $ac_compile itself does not contain backslashes and begins
9724    # with a dollar sign (not a hyphen), so the echo should work correctly.
9725    # The option is referenced via a variable to avoid confusing sed.
9726    lt_compile=`echo "$ac_compile" | $SED \
9727    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9728    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9729    -e 's:$: $lt_compiler_flag:'`
9730    (eval echo "\"\$as_me:9730: $lt_compile\"" >&5)
9731    (eval "$lt_compile" 2>conftest.err)
9732    ac_status=$?
9733    cat conftest.err >&5
9734    echo "$as_me:9734: \$? = $ac_status" >&5
9735    if (exit $ac_status) && test -s "$ac_outfile"; then
9736      # The compiler can only warn and ignore the option if not recognized
9737      # So say no if there are warnings other than the usual output.
9738      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9739      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9740      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9741        lt_cv_prog_compiler_pic_works=yes
9742      fi
9743    fi
9744    $RM conftest*
9745
9746 fi
9747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9748 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9749
9750 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9751     case $lt_prog_compiler_pic in
9752      "" | " "*) ;;
9753      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9754      esac
9755 else
9756     lt_prog_compiler_pic=
9757      lt_prog_compiler_can_build_shared=no
9758 fi
9759
9760 fi
9761
9762
9763
9764
9765
9766
9767 #
9768 # Check to make sure the static flag actually works.
9769 #
9770 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9771 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9772 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9773 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9774   echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776   lt_cv_prog_compiler_static_works=no
9777    save_LDFLAGS="$LDFLAGS"
9778    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9779    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9780    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9781      # The linker can only warn and ignore the option if not recognized
9782      # So say no if there are warnings
9783      if test -s conftest.err; then
9784        # Append any errors to the config.log.
9785        cat conftest.err 1>&5
9786        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9787        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9788        if diff conftest.exp conftest.er2 >/dev/null; then
9789          lt_cv_prog_compiler_static_works=yes
9790        fi
9791      else
9792        lt_cv_prog_compiler_static_works=yes
9793      fi
9794    fi
9795    $RM -r conftest*
9796    LDFLAGS="$save_LDFLAGS"
9797
9798 fi
9799 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9800 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9801
9802 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9803     :
9804 else
9805     lt_prog_compiler_static=
9806 fi
9807
9808
9809
9810
9811
9812
9813
9814   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9815 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9816 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   lt_cv_prog_compiler_c_o=no
9820    $RM -r conftest 2>/dev/null
9821    mkdir conftest
9822    cd conftest
9823    mkdir out
9824    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9825
9826    lt_compiler_flag="-o out/conftest2.$ac_objext"
9827    # Insert the option either (1) after the last *FLAGS variable, or
9828    # (2) before a word containing "conftest.", or (3) at the end.
9829    # Note that $ac_compile itself does not contain backslashes and begins
9830    # with a dollar sign (not a hyphen), so the echo should work correctly.
9831    lt_compile=`echo "$ac_compile" | $SED \
9832    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9833    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9834    -e 's:$: $lt_compiler_flag:'`
9835    (eval echo "\"\$as_me:9835: $lt_compile\"" >&5)
9836    (eval "$lt_compile" 2>out/conftest.err)
9837    ac_status=$?
9838    cat out/conftest.err >&5
9839    echo "$as_me:9839: \$? = $ac_status" >&5
9840    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9841    then
9842      # The compiler can only warn and ignore the option if not recognized
9843      # So say no if there are warnings
9844      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9845      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9846      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9847        lt_cv_prog_compiler_c_o=yes
9848      fi
9849    fi
9850    chmod u+w . 2>&5
9851    $RM conftest*
9852    # SGI C++ compiler will create directory out/ii_files/ for
9853    # template instantiation
9854    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9855    $RM out/* && rmdir out
9856    cd ..
9857    $RM -r conftest
9858    $RM conftest*
9859
9860 fi
9861 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9863
9864
9865
9866
9867
9868
9869   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9871 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9872   echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874   lt_cv_prog_compiler_c_o=no
9875    $RM -r conftest 2>/dev/null
9876    mkdir conftest
9877    cd conftest
9878    mkdir out
9879    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9880
9881    lt_compiler_flag="-o out/conftest2.$ac_objext"
9882    # Insert the option either (1) after the last *FLAGS variable, or
9883    # (2) before a word containing "conftest.", or (3) at the end.
9884    # Note that $ac_compile itself does not contain backslashes and begins
9885    # with a dollar sign (not a hyphen), so the echo should work correctly.
9886    lt_compile=`echo "$ac_compile" | $SED \
9887    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9889    -e 's:$: $lt_compiler_flag:'`
9890    (eval echo "\"\$as_me:9890: $lt_compile\"" >&5)
9891    (eval "$lt_compile" 2>out/conftest.err)
9892    ac_status=$?
9893    cat out/conftest.err >&5
9894    echo "$as_me:9894: \$? = $ac_status" >&5
9895    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9896    then
9897      # The compiler can only warn and ignore the option if not recognized
9898      # So say no if there are warnings
9899      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9900      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9901      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9902        lt_cv_prog_compiler_c_o=yes
9903      fi
9904    fi
9905    chmod u+w . 2>&5
9906    $RM conftest*
9907    # SGI C++ compiler will create directory out/ii_files/ for
9908    # template instantiation
9909    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9910    $RM out/* && rmdir out
9911    cd ..
9912    $RM -r conftest
9913    $RM conftest*
9914
9915 fi
9916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9918
9919
9920
9921
9922 hard_links="nottested"
9923 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9924   # do not overwrite the value of need_locks provided by the user
9925   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9926 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9927   hard_links=yes
9928   $RM conftest*
9929   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9930   touch conftest.a
9931   ln conftest.a conftest.b 2>&5 || hard_links=no
9932   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9933   { echo "$as_me:$LINENO: result: $hard_links" >&5
9934 echo "${ECHO_T}$hard_links" >&6; }
9935   if test "$hard_links" = no; then
9936     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9937 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9938     need_locks=warn
9939   fi
9940 else
9941   need_locks=no
9942 fi
9943
9944
9945
9946
9947
9948
9949   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9950 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9951
9952   runpath_var=
9953   allow_undefined_flag=
9954   always_export_symbols=no
9955   archive_cmds=
9956   archive_expsym_cmds=
9957   compiler_needs_object=no
9958   enable_shared_with_static_runtimes=no
9959   export_dynamic_flag_spec=
9960   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9961   hardcode_automatic=no
9962   hardcode_direct=no
9963   hardcode_direct_absolute=no
9964   hardcode_libdir_flag_spec=
9965   hardcode_libdir_flag_spec_ld=
9966   hardcode_libdir_separator=
9967   hardcode_minus_L=no
9968   hardcode_shlibpath_var=unsupported
9969   inherit_rpath=no
9970   link_all_deplibs=unknown
9971   module_cmds=
9972   module_expsym_cmds=
9973   old_archive_from_new_cmds=
9974   old_archive_from_expsyms_cmds=
9975   thread_safe_flag_spec=
9976   whole_archive_flag_spec=
9977   # include_expsyms should be a list of space-separated symbols to be *always*
9978   # included in the symbol list
9979   include_expsyms=
9980   # exclude_expsyms can be an extended regexp of symbols to exclude
9981   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9982   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9983   # as well as any symbol that contains `d'.
9984   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9985   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9986   # platforms (ab)use it in PIC code, but their linkers get confused if
9987   # the symbol is explicitly referenced.  Since portable code cannot
9988   # rely on this symbol name, it's probably fine to never include it in
9989   # preloaded symbol tables.
9990   # Exclude shared library initialization/finalization symbols.
9991   extract_expsyms_cmds=
9992
9993   case $host_os in
9994   cygwin* | mingw* | pw32* | cegcc*)
9995     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9996     # When not using gcc, we currently assume that we are using
9997     # Microsoft Visual C++.
9998     if test "$GCC" != yes; then
9999       with_gnu_ld=no
10000     fi
10001     ;;
10002   interix*)
10003     # we just hope/assume this is gcc and not c89 (= MSVC++)
10004     with_gnu_ld=yes
10005     ;;
10006   openbsd*)
10007     with_gnu_ld=no
10008     ;;
10009   esac
10010
10011   ld_shlibs=yes
10012   if test "$with_gnu_ld" = yes; then
10013     # If archive_cmds runs LD, not CC, wlarc should be empty
10014     wlarc='${wl}'
10015
10016     # Set some defaults for GNU ld with shared library support. These
10017     # are reset later if shared libraries are not supported. Putting them
10018     # here allows them to be overridden if necessary.
10019     runpath_var=LD_RUN_PATH
10020     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10021     export_dynamic_flag_spec='${wl}--export-dynamic'
10022     # ancient GNU ld didn't support --whole-archive et. al.
10023     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10024       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10025     else
10026       whole_archive_flag_spec=
10027     fi
10028     supports_anon_versioning=no
10029     case `$LD -v 2>&1` in
10030       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10031       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10032       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10033       *\ 2.11.*) ;; # other 2.11 versions
10034       *) supports_anon_versioning=yes ;;
10035     esac
10036
10037     # See if GNU ld supports shared libraries.
10038     case $host_os in
10039     aix[3-9]*)
10040       # On AIX/PPC, the GNU linker is very broken
10041       if test "$host_cpu" != ia64; then
10042         ld_shlibs=no
10043         cat <<_LT_EOF 1>&2
10044
10045 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10046 *** to be unable to reliably create shared libraries on AIX.
10047 *** Therefore, libtool is disabling shared libraries support.  If you
10048 *** really care for shared libraries, you may want to modify your PATH
10049 *** so that a non-GNU linker is found, and then restart.
10050
10051 _LT_EOF
10052       fi
10053       ;;
10054
10055     amigaos*)
10056       case $host_cpu in
10057       powerpc)
10058             # see comment about AmigaOS4 .so support
10059             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10060             archive_expsym_cmds=''
10061         ;;
10062       m68k)
10063             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)'
10064             hardcode_libdir_flag_spec='-L$libdir'
10065             hardcode_minus_L=yes
10066         ;;
10067       esac
10068       ;;
10069
10070     beos*)
10071       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10072         allow_undefined_flag=unsupported
10073         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10074         # support --undefined.  This deserves some investigation.  FIXME
10075         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076       else
10077         ld_shlibs=no
10078       fi
10079       ;;
10080
10081     cygwin* | mingw* | pw32* | cegcc*)
10082       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10083       # as there is no search path for DLLs.
10084       hardcode_libdir_flag_spec='-L$libdir'
10085       allow_undefined_flag=unsupported
10086       always_export_symbols=no
10087       enable_shared_with_static_runtimes=yes
10088       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10089
10090       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10091         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10092         # If the export-symbols file already is a .def file (1st line
10093         # is EXPORTS), use it as is; otherwise, prepend...
10094         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10095           cp $export_symbols $output_objdir/$soname.def;
10096         else
10097           echo EXPORTS > $output_objdir/$soname.def;
10098           cat $export_symbols >> $output_objdir/$soname.def;
10099         fi~
10100         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10101       else
10102         ld_shlibs=no
10103       fi
10104       ;;
10105
10106     interix[3-9]*)
10107       hardcode_direct=no
10108       hardcode_shlibpath_var=no
10109       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10110       export_dynamic_flag_spec='${wl}-E'
10111       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10112       # Instead, shared libraries are loaded at an image base (0x10000000 by
10113       # default) and relocated if they conflict, which is a slow very memory
10114       # consuming and fragmenting process.  To avoid this, we pick a random,
10115       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10116       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10117       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10118       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'
10119       ;;
10120
10121     gnu* | linux* | tpf* | k*bsd*-gnu)
10122       tmp_diet=no
10123       if test "$host_os" = linux-dietlibc; then
10124         case $cc_basename in
10125           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10126         esac
10127       fi
10128       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10129          && test "$tmp_diet" = no
10130       then
10131         tmp_addflag=
10132         tmp_sharedflag='-shared'
10133         case $cc_basename,$host_cpu in
10134         pgcc*)                          # Portland Group C compiler
10135           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'
10136           tmp_addflag=' $pic_flag'
10137           ;;
10138         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10139           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'
10140           tmp_addflag=' $pic_flag -Mnomain' ;;
10141         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10142           tmp_addflag=' -i_dynamic' ;;
10143         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10144           tmp_addflag=' -i_dynamic -nofor_main' ;;
10145         ifc* | ifort*)                  # Intel Fortran compiler
10146           tmp_addflag=' -nofor_main' ;;
10147         lf95*)                          # Lahey Fortran 8.1
10148           whole_archive_flag_spec=
10149           tmp_sharedflag='--shared' ;;
10150         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10151           tmp_sharedflag='-qmkshrobj'
10152           tmp_addflag= ;;
10153         esac
10154         case `$CC -V 2>&1 | sed 5q` in
10155         *Sun\ C*)                       # Sun C 5.9
10156           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'
10157           compiler_needs_object=yes
10158           tmp_sharedflag='-G' ;;
10159         *Sun\ F*)                       # Sun Fortran 8.3
10160           tmp_sharedflag='-G' ;;
10161         esac
10162         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10163
10164         if test "x$supports_anon_versioning" = xyes; then
10165           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10166             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10167             echo "local: *; };" >> $output_objdir/$libname.ver~
10168             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10169         fi
10170
10171         case $cc_basename in
10172         xlf*)
10173           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10174           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10175           hardcode_libdir_flag_spec=
10176           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10177           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10178           if test "x$supports_anon_versioning" = xyes; then
10179             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10180               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10181               echo "local: *; };" >> $output_objdir/$libname.ver~
10182               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10183           fi
10184           ;;
10185         esac
10186       else
10187         ld_shlibs=no
10188       fi
10189       ;;
10190
10191     netbsd*)
10192       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10193         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10194         wlarc=
10195       else
10196         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10197         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10198       fi
10199       ;;
10200
10201     solaris*)
10202       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10203         ld_shlibs=no
10204         cat <<_LT_EOF 1>&2
10205
10206 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10207 *** create shared libraries on Solaris systems.  Therefore, libtool
10208 *** is disabling shared libraries support.  We urge you to upgrade GNU
10209 *** binutils to release 2.9.1 or newer.  Another option is to modify
10210 *** your PATH or compiler configuration so that the native linker is
10211 *** used, and then restart.
10212
10213 _LT_EOF
10214       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10215         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10216         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10217       else
10218         ld_shlibs=no
10219       fi
10220       ;;
10221
10222     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10223       case `$LD -v 2>&1` in
10224         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10225         ld_shlibs=no
10226         cat <<_LT_EOF 1>&2
10227
10228 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10229 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10230 *** is disabling shared libraries support.  We urge you to upgrade GNU
10231 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10232 *** your PATH or compiler configuration so that the native linker is
10233 *** used, and then restart.
10234
10235 _LT_EOF
10236         ;;
10237         *)
10238           # For security reasons, it is highly recommended that you always
10239           # use absolute paths for naming shared libraries, and exclude the
10240           # DT_RUNPATH tag from executables and libraries.  But doing so
10241           # requires that you compile everything twice, which is a pain.
10242           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10243             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10244             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10245             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10246           else
10247             ld_shlibs=no
10248           fi
10249         ;;
10250       esac
10251       ;;
10252
10253     sunos4*)
10254       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10255       wlarc=
10256       hardcode_direct=yes
10257       hardcode_shlibpath_var=no
10258       ;;
10259
10260     *)
10261       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10262         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10263         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10264       else
10265         ld_shlibs=no
10266       fi
10267       ;;
10268     esac
10269
10270     if test "$ld_shlibs" = no; then
10271       runpath_var=
10272       hardcode_libdir_flag_spec=
10273       export_dynamic_flag_spec=
10274       whole_archive_flag_spec=
10275     fi
10276   else
10277     # PORTME fill in a description of your system's linker (not GNU ld)
10278     case $host_os in
10279     aix3*)
10280       allow_undefined_flag=unsupported
10281       always_export_symbols=yes
10282       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'
10283       # Note: this linker hardcodes the directories in LIBPATH if there
10284       # are no directories specified by -L.
10285       hardcode_minus_L=yes
10286       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10287         # Neither direct hardcoding nor static linking is supported with a
10288         # broken collect2.
10289         hardcode_direct=unsupported
10290       fi
10291       ;;
10292
10293     aix[4-9]*)
10294       if test "$host_cpu" = ia64; then
10295         # On IA64, the linker does run time linking by default, so we don't
10296         # have to do anything special.
10297         aix_use_runtimelinking=no
10298         exp_sym_flag='-Bexport'
10299         no_entry_flag=""
10300       else
10301         # If we're using GNU nm, then we don't want the "-C" option.
10302         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10303         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10304           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'
10305         else
10306           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'
10307         fi
10308         aix_use_runtimelinking=no
10309
10310         # Test if we are trying to use run time linking or normal
10311         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10312         # need to do runtime linking.
10313         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10314           for ld_flag in $LDFLAGS; do
10315           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10316             aix_use_runtimelinking=yes
10317             break
10318           fi
10319           done
10320           ;;
10321         esac
10322
10323         exp_sym_flag='-bexport'
10324         no_entry_flag='-bnoentry'
10325       fi
10326
10327       # When large executables or shared objects are built, AIX ld can
10328       # have problems creating the table of contents.  If linking a library
10329       # or program results in "error TOC overflow" add -mminimal-toc to
10330       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10331       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10332
10333       archive_cmds=''
10334       hardcode_direct=yes
10335       hardcode_direct_absolute=yes
10336       hardcode_libdir_separator=':'
10337       link_all_deplibs=yes
10338       file_list_spec='${wl}-f,'
10339
10340       if test "$GCC" = yes; then
10341         case $host_os in aix4.[012]|aix4.[012].*)
10342         # We only want to do this on AIX 4.2 and lower, the check
10343         # below for broken collect2 doesn't work under 4.3+
10344           collect2name=`${CC} -print-prog-name=collect2`
10345           if test -f "$collect2name" &&
10346            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10347           then
10348           # We have reworked collect2
10349           :
10350           else
10351           # We have old collect2
10352           hardcode_direct=unsupported
10353           # It fails to find uninstalled libraries when the uninstalled
10354           # path is not listed in the libpath.  Setting hardcode_minus_L
10355           # to unsupported forces relinking
10356           hardcode_minus_L=yes
10357           hardcode_libdir_flag_spec='-L$libdir'
10358           hardcode_libdir_separator=
10359           fi
10360           ;;
10361         esac
10362         shared_flag='-shared'
10363         if test "$aix_use_runtimelinking" = yes; then
10364           shared_flag="$shared_flag "'${wl}-G'
10365         fi
10366       else
10367         # not using gcc
10368         if test "$host_cpu" = ia64; then
10369         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10370         # chokes on -Wl,-G. The following line is correct:
10371           shared_flag='-G'
10372         else
10373           if test "$aix_use_runtimelinking" = yes; then
10374             shared_flag='${wl}-G'
10375           else
10376             shared_flag='${wl}-bM:SRE'
10377           fi
10378         fi
10379       fi
10380
10381       export_dynamic_flag_spec='${wl}-bexpall'
10382       # It seems that -bexpall does not export symbols beginning with
10383       # underscore (_), so it is better to generate a list of symbols to export.
10384       always_export_symbols=yes
10385       if test "$aix_use_runtimelinking" = yes; then
10386         # Warning - without using the other runtime loading flags (-brtl),
10387         # -berok will link without error, but may produce a broken library.
10388         allow_undefined_flag='-berok'
10389         # Determine the default libpath from the value encoded in an
10390         # empty executable.
10391         cat >conftest.$ac_ext <<_ACEOF
10392 /* confdefs.h.  */
10393 _ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h.  */
10397
10398 int
10399 main ()
10400 {
10401
10402   ;
10403   return 0;
10404 }
10405 _ACEOF
10406 rm -f conftest.$ac_objext conftest$ac_exeext
10407 if { (ac_try="$ac_link"
10408 case "(($ac_try" in
10409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410   *) ac_try_echo=$ac_try;;
10411 esac
10412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413   (eval "$ac_link") 2>conftest.er1
10414   ac_status=$?
10415   grep -v '^ *+' conftest.er1 >conftest.err
10416   rm -f conftest.er1
10417   cat conftest.err >&5
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); } && {
10420          test -z "$ac_c_werror_flag" ||
10421          test ! -s conftest.err
10422        } && test -s conftest$ac_exeext &&
10423        $as_test_x conftest$ac_exeext; then
10424
10425 lt_aix_libpath_sed='
10426     /Import File Strings/,/^$/ {
10427         /^0/ {
10428             s/^0  *\(.*\)$/\1/
10429             p
10430         }
10431     }'
10432 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10433 # Check for a 64-bit object if we didn't find anything.
10434 if test -z "$aix_libpath"; then
10435   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10436 fi
10437 else
10438   echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10440
10441
10442 fi
10443
10444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445       conftest$ac_exeext conftest.$ac_ext
10446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10447
10448         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10449         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"
10450       else
10451         if test "$host_cpu" = ia64; then
10452           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10453           allow_undefined_flag="-z nodefs"
10454           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"
10455         else
10456          # Determine the default libpath from the value encoded in an
10457          # empty executable.
10458          cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h.  */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h.  */
10464
10465 int
10466 main ()
10467 {
10468
10469   ;
10470   return 0;
10471 }
10472 _ACEOF
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (ac_try="$ac_link"
10475 case "(($ac_try" in
10476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477   *) ac_try_echo=$ac_try;;
10478 esac
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480   (eval "$ac_link") 2>conftest.er1
10481   ac_status=$?
10482   grep -v '^ *+' conftest.er1 >conftest.err
10483   rm -f conftest.er1
10484   cat conftest.err >&5
10485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486   (exit $ac_status); } && {
10487          test -z "$ac_c_werror_flag" ||
10488          test ! -s conftest.err
10489        } && test -s conftest$ac_exeext &&
10490        $as_test_x conftest$ac_exeext; then
10491
10492 lt_aix_libpath_sed='
10493     /Import File Strings/,/^$/ {
10494         /^0/ {
10495             s/^0  *\(.*\)$/\1/
10496             p
10497         }
10498     }'
10499 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10500 # Check for a 64-bit object if we didn't find anything.
10501 if test -z "$aix_libpath"; then
10502   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10503 fi
10504 else
10505   echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10507
10508
10509 fi
10510
10511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10512       conftest$ac_exeext conftest.$ac_ext
10513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10514
10515          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10516           # Warning - without using the other run time loading flags,
10517           # -berok will link without error, but may produce a broken library.
10518           no_undefined_flag=' ${wl}-bernotok'
10519           allow_undefined_flag=' ${wl}-berok'
10520           # Exported symbols can be pulled into shared objects from archives
10521           whole_archive_flag_spec='$convenience'
10522           archive_cmds_need_lc=yes
10523           # This is similar to how AIX traditionally builds its shared libraries.
10524           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'
10525         fi
10526       fi
10527       ;;
10528
10529     amigaos*)
10530       case $host_cpu in
10531       powerpc)
10532             # see comment about AmigaOS4 .so support
10533             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10534             archive_expsym_cmds=''
10535         ;;
10536       m68k)
10537             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)'
10538             hardcode_libdir_flag_spec='-L$libdir'
10539             hardcode_minus_L=yes
10540         ;;
10541       esac
10542       ;;
10543
10544     bsdi[45]*)
10545       export_dynamic_flag_spec=-rdynamic
10546       ;;
10547
10548     cygwin* | mingw* | pw32* | cegcc*)
10549       # When not using gcc, we currently assume that we are using
10550       # Microsoft Visual C++.
10551       # hardcode_libdir_flag_spec is actually meaningless, as there is
10552       # no search path for DLLs.
10553       hardcode_libdir_flag_spec=' '
10554       allow_undefined_flag=unsupported
10555       # Tell ltmain to make .lib files, not .a files.
10556       libext=lib
10557       # Tell ltmain to make .dll files, not .so files.
10558       shrext_cmds=".dll"
10559       # FIXME: Setting linknames here is a bad hack.
10560       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10561       # The linker will automatically build a .lib file if we build a DLL.
10562       old_archive_from_new_cmds='true'
10563       # FIXME: Should let the user specify the lib program.
10564       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10565       fix_srcfile_path='`cygpath -w "$srcfile"`'
10566       enable_shared_with_static_runtimes=yes
10567       ;;
10568
10569     darwin* | rhapsody*)
10570
10571
10572   archive_cmds_need_lc=no
10573   hardcode_direct=no
10574   hardcode_automatic=yes
10575   hardcode_shlibpath_var=unsupported
10576   whole_archive_flag_spec=''
10577   link_all_deplibs=yes
10578   allow_undefined_flag="$_lt_dar_allow_undefined"
10579   case $cc_basename in
10580      ifort*) _lt_dar_can_shared=yes ;;
10581      *) _lt_dar_can_shared=$GCC ;;
10582   esac
10583   if test "$_lt_dar_can_shared" = "yes"; then
10584     output_verbose_link_cmd=echo
10585     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10586     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10587     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}"
10588     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}"
10589
10590   else
10591   ld_shlibs=no
10592   fi
10593
10594       ;;
10595
10596     dgux*)
10597       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10598       hardcode_libdir_flag_spec='-L$libdir'
10599       hardcode_shlibpath_var=no
10600       ;;
10601
10602     freebsd1*)
10603       ld_shlibs=no
10604       ;;
10605
10606     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10607     # support.  Future versions do this automatically, but an explicit c++rt0.o
10608     # does not break anything, and helps significantly (at the cost of a little
10609     # extra space).
10610     freebsd2.2*)
10611       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10612       hardcode_libdir_flag_spec='-R$libdir'
10613       hardcode_direct=yes
10614       hardcode_shlibpath_var=no
10615       ;;
10616
10617     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10618     freebsd2*)
10619       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10620       hardcode_direct=yes
10621       hardcode_minus_L=yes
10622       hardcode_shlibpath_var=no
10623       ;;
10624
10625     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10626     freebsd* | dragonfly*)
10627       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10628       hardcode_libdir_flag_spec='-R$libdir'
10629       hardcode_direct=yes
10630       hardcode_shlibpath_var=no
10631       ;;
10632
10633     hpux9*)
10634       if test "$GCC" = yes; then
10635         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'
10636       else
10637         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'
10638       fi
10639       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10640       hardcode_libdir_separator=:
10641       hardcode_direct=yes
10642
10643       # hardcode_minus_L: Not really in the search PATH,
10644       # but as the default location of the library.
10645       hardcode_minus_L=yes
10646       export_dynamic_flag_spec='${wl}-E'
10647       ;;
10648
10649     hpux10*)
10650       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10651         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10652       else
10653         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10654       fi
10655       if test "$with_gnu_ld" = no; then
10656         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10657         hardcode_libdir_flag_spec_ld='+b $libdir'
10658         hardcode_libdir_separator=:
10659         hardcode_direct=yes
10660         hardcode_direct_absolute=yes
10661         export_dynamic_flag_spec='${wl}-E'
10662         # hardcode_minus_L: Not really in the search PATH,
10663         # but as the default location of the library.
10664         hardcode_minus_L=yes
10665       fi
10666       ;;
10667
10668     hpux11*)
10669       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10670         case $host_cpu in
10671         hppa*64*)
10672           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10673           ;;
10674         ia64*)
10675           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10676           ;;
10677         *)
10678           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10679           ;;
10680         esac
10681       else
10682         case $host_cpu in
10683         hppa*64*)
10684           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10685           ;;
10686         ia64*)
10687           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10688           ;;
10689         *)
10690           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10691           ;;
10692         esac
10693       fi
10694       if test "$with_gnu_ld" = no; then
10695         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10696         hardcode_libdir_separator=:
10697
10698         case $host_cpu in
10699         hppa*64*|ia64*)
10700           hardcode_direct=no
10701           hardcode_shlibpath_var=no
10702           ;;
10703         *)
10704           hardcode_direct=yes
10705           hardcode_direct_absolute=yes
10706           export_dynamic_flag_spec='${wl}-E'
10707
10708           # hardcode_minus_L: Not really in the search PATH,
10709           # but as the default location of the library.
10710           hardcode_minus_L=yes
10711           ;;
10712         esac
10713       fi
10714       ;;
10715
10716     irix5* | irix6* | nonstopux*)
10717       if test "$GCC" = yes; then
10718         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'
10719         # Try to use the -exported_symbol ld option, if it does not
10720         # work, assume that -exports_file does not work either and
10721         # implicitly export all symbols.
10722         save_LDFLAGS="$LDFLAGS"
10723         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10724         cat >conftest.$ac_ext <<_ACEOF
10725 int foo(void) {}
10726 _ACEOF
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (ac_try="$ac_link"
10729 case "(($ac_try" in
10730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731   *) ac_try_echo=$ac_try;;
10732 esac
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734   (eval "$ac_link") 2>conftest.er1
10735   ac_status=$?
10736   grep -v '^ *+' conftest.er1 >conftest.err
10737   rm -f conftest.er1
10738   cat conftest.err >&5
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); } && {
10741          test -z "$ac_c_werror_flag" ||
10742          test ! -s conftest.err
10743        } && test -s conftest$ac_exeext &&
10744        $as_test_x conftest$ac_exeext; then
10745   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'
10746
10747 else
10748   echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10750
10751
10752 fi
10753
10754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755       conftest$ac_exeext conftest.$ac_ext
10756         LDFLAGS="$save_LDFLAGS"
10757       else
10758         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'
10759         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'
10760       fi
10761       archive_cmds_need_lc='no'
10762       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10763       hardcode_libdir_separator=:
10764       inherit_rpath=yes
10765       link_all_deplibs=yes
10766       ;;
10767
10768     netbsd*)
10769       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10770         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10771       else
10772         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10773       fi
10774       hardcode_libdir_flag_spec='-R$libdir'
10775       hardcode_direct=yes
10776       hardcode_shlibpath_var=no
10777       ;;
10778
10779     newsos6)
10780       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10781       hardcode_direct=yes
10782       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10783       hardcode_libdir_separator=:
10784       hardcode_shlibpath_var=no
10785       ;;
10786
10787     *nto* | *qnx*)
10788       ;;
10789
10790     openbsd*)
10791       if test -f /usr/libexec/ld.so; then
10792         hardcode_direct=yes
10793         hardcode_shlibpath_var=no
10794         hardcode_direct_absolute=yes
10795         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10796           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10797           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10798           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10799           export_dynamic_flag_spec='${wl}-E'
10800         else
10801           case $host_os in
10802            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10803              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10804              hardcode_libdir_flag_spec='-R$libdir'
10805              ;;
10806            *)
10807              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10808              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10809              ;;
10810           esac
10811         fi
10812       else
10813         ld_shlibs=no
10814       fi
10815       ;;
10816
10817     os2*)
10818       hardcode_libdir_flag_spec='-L$libdir'
10819       hardcode_minus_L=yes
10820       allow_undefined_flag=unsupported
10821       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'
10822       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10823       ;;
10824
10825     osf3*)
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}-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       else
10830         allow_undefined_flag=' -expect_unresolved \*'
10831         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'
10832       fi
10833       archive_cmds_need_lc='no'
10834       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10835       hardcode_libdir_separator=:
10836       ;;
10837
10838     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10839       if test "$GCC" = yes; then
10840         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10841         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'
10842         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10843       else
10844         allow_undefined_flag=' -expect_unresolved \*'
10845         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'
10846         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~
10847         $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'
10848
10849         # Both c and cxx compiler support -rpath directly
10850         hardcode_libdir_flag_spec='-rpath $libdir'
10851       fi
10852       archive_cmds_need_lc='no'
10853       hardcode_libdir_separator=:
10854       ;;
10855
10856     solaris*)
10857       no_undefined_flag=' -z defs'
10858       if test "$GCC" = yes; then
10859         wlarc='${wl}'
10860         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$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 -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10863       else
10864         case `$CC -V 2>&1` in
10865         *"Compilers 5.0"*)
10866           wlarc=''
10867           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10868           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10869           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10870           ;;
10871         *)
10872           wlarc='${wl}'
10873           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10874           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10875           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10876           ;;
10877         esac
10878       fi
10879       hardcode_libdir_flag_spec='-R$libdir'
10880       hardcode_shlibpath_var=no
10881       case $host_os in
10882       solaris2.[0-5] | solaris2.[0-5].*) ;;
10883       *)
10884         # The compiler driver will combine and reorder linker options,
10885         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10886         # but is careful enough not to reorder.
10887         # Supported since Solaris 2.6 (maybe 2.5.1?)
10888         if test "$GCC" = yes; then
10889           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10890         else
10891           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10892         fi
10893         ;;
10894       esac
10895       link_all_deplibs=yes
10896       ;;
10897
10898     sunos4*)
10899       if test "x$host_vendor" = xsequent; then
10900         # Use $CC to link under sequent, because it throws in some extra .o
10901         # files that make .init and .fini sections work.
10902         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10903       else
10904         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10905       fi
10906       hardcode_libdir_flag_spec='-L$libdir'
10907       hardcode_direct=yes
10908       hardcode_minus_L=yes
10909       hardcode_shlibpath_var=no
10910       ;;
10911
10912     sysv4)
10913       case $host_vendor in
10914         sni)
10915           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916           hardcode_direct=yes # is this really true???
10917         ;;
10918         siemens)
10919           ## LD is ld it makes a PLAMLIB
10920           ## CC just makes a GrossModule.
10921           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10922           reload_cmds='$CC -r -o $output$reload_objs'
10923           hardcode_direct=no
10924         ;;
10925         motorola)
10926           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10927           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10928         ;;
10929       esac
10930       runpath_var='LD_RUN_PATH'
10931       hardcode_shlibpath_var=no
10932       ;;
10933
10934     sysv4.3*)
10935       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10936       hardcode_shlibpath_var=no
10937       export_dynamic_flag_spec='-Bexport'
10938       ;;
10939
10940     sysv4*MP*)
10941       if test -d /usr/nec; then
10942         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10943         hardcode_shlibpath_var=no
10944         runpath_var=LD_RUN_PATH
10945         hardcode_runpath_var=yes
10946         ld_shlibs=yes
10947       fi
10948       ;;
10949
10950     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10951       no_undefined_flag='${wl}-z,text'
10952       archive_cmds_need_lc=no
10953       hardcode_shlibpath_var=no
10954       runpath_var='LD_RUN_PATH'
10955
10956       if test "$GCC" = yes; then
10957         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10958         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10959       else
10960         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10962       fi
10963       ;;
10964
10965     sysv5* | sco3.2v5* | sco5v6*)
10966       # Note: We can NOT use -z defs as we might desire, because we do not
10967       # link with -lc, and that would cause any symbols used from libc to
10968       # always be unresolved, which means just about no library would
10969       # ever link correctly.  If we're not using GNU ld we use -z text
10970       # though, which does catch some bad symbols but isn't as heavy-handed
10971       # as -z defs.
10972       no_undefined_flag='${wl}-z,text'
10973       allow_undefined_flag='${wl}-z,nodefs'
10974       archive_cmds_need_lc=no
10975       hardcode_shlibpath_var=no
10976       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10977       hardcode_libdir_separator=':'
10978       link_all_deplibs=yes
10979       export_dynamic_flag_spec='${wl}-Bexport'
10980       runpath_var='LD_RUN_PATH'
10981
10982       if test "$GCC" = yes; then
10983         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10984         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10985       else
10986         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10987         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10988       fi
10989       ;;
10990
10991     uts4*)
10992       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10993       hardcode_libdir_flag_spec='-L$libdir'
10994       hardcode_shlibpath_var=no
10995       ;;
10996
10997     *)
10998       ld_shlibs=no
10999       ;;
11000     esac
11001
11002     if test x$host_vendor = xsni; then
11003       case $host in
11004       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11005         export_dynamic_flag_spec='${wl}-Blargedynsym'
11006         ;;
11007       esac
11008     fi
11009   fi
11010
11011 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11012 echo "${ECHO_T}$ld_shlibs" >&6; }
11013 test "$ld_shlibs" = no && can_build_shared=no
11014
11015 with_gnu_ld=$with_gnu_ld
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031 #
11032 # Do we need to explicitly link libc?
11033 #
11034 case "x$archive_cmds_need_lc" in
11035 x|xyes)
11036   # Assume -lc should be added
11037   archive_cmds_need_lc=yes
11038
11039   if test "$enable_shared" = yes && test "$GCC" = yes; then
11040     case $archive_cmds in
11041     *'~'*)
11042       # FIXME: we may have to deal with multi-command sequences.
11043       ;;
11044     '$CC '*)
11045       # Test whether the compiler implicitly links with -lc since on some
11046       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11047       # to ld, don't add -lc before -lgcc.
11048       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11049 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11050       $RM conftest*
11051       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11052
11053       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11054   (eval $ac_compile) 2>&5
11055   ac_status=$?
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } 2>conftest.err; then
11058         soname=conftest
11059         lib=conftest
11060         libobjs=conftest.$ac_objext
11061         deplibs=
11062         wl=$lt_prog_compiler_wl
11063         pic_flag=$lt_prog_compiler_pic
11064         compiler_flags=-v
11065         linker_flags=-v
11066         verstring=
11067         output_objdir=.
11068         libname=conftest
11069         lt_save_allow_undefined_flag=$allow_undefined_flag
11070         allow_undefined_flag=
11071         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11072   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11073   ac_status=$?
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); }
11076         then
11077           archive_cmds_need_lc=no
11078         else
11079           archive_cmds_need_lc=yes
11080         fi
11081         allow_undefined_flag=$lt_save_allow_undefined_flag
11082       else
11083         cat conftest.err 1>&5
11084       fi
11085       $RM conftest*
11086       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11087 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11088       ;;
11089     esac
11090   fi
11091   ;;
11092 esac
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11251 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11252
11253 if test "$GCC" = yes; then
11254   case $host_os in
11255     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11256     *) lt_awk_arg="/^libraries:/" ;;
11257   esac
11258   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11259   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11260     # if the path contains ";" then we assume it to be the separator
11261     # otherwise default to the standard path separator (i.e. ":") - it is
11262     # assumed that no part of a normal pathname contains ";" but that should
11263     # okay in the real world where ";" in dirpaths is itself problematic.
11264     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11265   else
11266     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11267   fi
11268   # Ok, now we have the path, separated by spaces, we can step through it
11269   # and add multilib dir if necessary.
11270   lt_tmp_lt_search_path_spec=
11271   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11272   for lt_sys_path in $lt_search_path_spec; do
11273     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11274       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11275     else
11276       test -d "$lt_sys_path" && \
11277         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11278     fi
11279   done
11280   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11281 BEGIN {RS=" "; FS="/|\n";} {
11282   lt_foo="";
11283   lt_count=0;
11284   for (lt_i = NF; lt_i > 0; lt_i--) {
11285     if ($lt_i != "" && $lt_i != ".") {
11286       if ($lt_i == "..") {
11287         lt_count++;
11288       } else {
11289         if (lt_count == 0) {
11290           lt_foo="/" $lt_i lt_foo;
11291         } else {
11292           lt_count--;
11293         }
11294       }
11295     }
11296   }
11297   if (lt_foo != "") { lt_freq[lt_foo]++; }
11298   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11299 }'`
11300   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11301 else
11302   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11303 fi
11304 library_names_spec=
11305 libname_spec='lib$name'
11306 soname_spec=
11307 shrext_cmds=".so"
11308 postinstall_cmds=
11309 postuninstall_cmds=
11310 finish_cmds=
11311 finish_eval=
11312 shlibpath_var=
11313 shlibpath_overrides_runpath=unknown
11314 version_type=none
11315 dynamic_linker="$host_os ld.so"
11316 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11317 need_lib_prefix=unknown
11318 hardcode_into_libs=no
11319
11320 # when you set need_version to no, make sure it does not cause -set_version
11321 # flags to be left without arguments
11322 need_version=unknown
11323
11324 case $host_os in
11325 aix3*)
11326   version_type=linux
11327   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11328   shlibpath_var=LIBPATH
11329
11330   # AIX 3 has no versioning support, so we append a major version to the name.
11331   soname_spec='${libname}${release}${shared_ext}$major'
11332   ;;
11333
11334 aix[4-9]*)
11335   version_type=linux
11336   need_lib_prefix=no
11337   need_version=no
11338   hardcode_into_libs=yes
11339   if test "$host_cpu" = ia64; then
11340     # AIX 5 supports IA64
11341     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11342     shlibpath_var=LD_LIBRARY_PATH
11343   else
11344     # With GCC up to 2.95.x, collect2 would create an import file
11345     # for dependence libraries.  The import file would start with
11346     # the line `#! .'.  This would cause the generated library to
11347     # depend on `.', always an invalid library.  This was fixed in
11348     # development snapshots of GCC prior to 3.0.
11349     case $host_os in
11350       aix4 | aix4.[01] | aix4.[01].*)
11351       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11352            echo ' yes '
11353            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11354         :
11355       else
11356         can_build_shared=no
11357       fi
11358       ;;
11359     esac
11360     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11361     # soname into executable. Probably we can add versioning support to
11362     # collect2, so additional links can be useful in future.
11363     if test "$aix_use_runtimelinking" = yes; then
11364       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11365       # instead of lib<name>.a to let people know that these are not
11366       # typical AIX shared libraries.
11367       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368     else
11369       # We preserve .a as extension for shared libraries through AIX4.2
11370       # and later when we are not doing run time linking.
11371       library_names_spec='${libname}${release}.a $libname.a'
11372       soname_spec='${libname}${release}${shared_ext}$major'
11373     fi
11374     shlibpath_var=LIBPATH
11375   fi
11376   ;;
11377
11378 amigaos*)
11379   case $host_cpu in
11380   powerpc)
11381     # Since July 2007 AmigaOS4 officially supports .so libraries.
11382     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11383     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11384     ;;
11385   m68k)
11386     library_names_spec='$libname.ixlibrary $libname.a'
11387     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11388     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'
11389     ;;
11390   esac
11391   ;;
11392
11393 beos*)
11394   library_names_spec='${libname}${shared_ext}'
11395   dynamic_linker="$host_os ld.so"
11396   shlibpath_var=LIBRARY_PATH
11397   ;;
11398
11399 bsdi[45]*)
11400   version_type=linux
11401   need_version=no
11402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11403   soname_spec='${libname}${release}${shared_ext}$major'
11404   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11405   shlibpath_var=LD_LIBRARY_PATH
11406   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11407   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11408   # the default ld.so.conf also contains /usr/contrib/lib and
11409   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11410   # libtool to hard-code these into programs
11411   ;;
11412
11413 cygwin* | mingw* | pw32* | cegcc*)
11414   version_type=windows
11415   shrext_cmds=".dll"
11416   need_version=no
11417   need_lib_prefix=no
11418
11419   case $GCC,$host_os in
11420   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11421     library_names_spec='$libname.dll.a'
11422     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11423     postinstall_cmds='base_file=`basename \${file}`~
11424       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11425       dldir=$destdir/`dirname \$dlpath`~
11426       test -d \$dldir || mkdir -p \$dldir~
11427       $install_prog $dir/$dlname \$dldir/$dlname~
11428       chmod a+x \$dldir/$dlname~
11429       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11430         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11431       fi'
11432     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11433       dlpath=$dir/\$dldll~
11434        $RM \$dlpath'
11435     shlibpath_overrides_runpath=yes
11436
11437     case $host_os in
11438     cygwin*)
11439       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11440       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11441       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11442       ;;
11443     mingw* | cegcc*)
11444       # MinGW DLLs use traditional 'lib' prefix
11445       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11446       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11447       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11448         # It is most probably a Windows format PATH printed by
11449         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11450         # path with ; separators, and with drive letters. We can handle the
11451         # drive letters (cygwin fileutils understands them), so leave them,
11452         # especially as we might pass files found there to a mingw objdump,
11453         # which wouldn't understand a cygwinified path. Ahh.
11454         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11455       else
11456         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11457       fi
11458       ;;
11459     pw32*)
11460       # pw32 DLLs use 'pw' prefix rather than 'lib'
11461       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11462       ;;
11463     esac
11464     ;;
11465
11466   *)
11467     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11468     ;;
11469   esac
11470   dynamic_linker='Win32 ld.exe'
11471   # FIXME: first we should search . and the directory the executable is in
11472   shlibpath_var=PATH
11473   ;;
11474
11475 darwin* | rhapsody*)
11476   dynamic_linker="$host_os dyld"
11477   version_type=darwin
11478   need_lib_prefix=no
11479   need_version=no
11480   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11481   soname_spec='${libname}${release}${major}$shared_ext'
11482   shlibpath_overrides_runpath=yes
11483   shlibpath_var=DYLD_LIBRARY_PATH
11484   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11485
11486   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11487   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11488   ;;
11489
11490 dgux*)
11491   version_type=linux
11492   need_lib_prefix=no
11493   need_version=no
11494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11495   soname_spec='${libname}${release}${shared_ext}$major'
11496   shlibpath_var=LD_LIBRARY_PATH
11497   ;;
11498
11499 freebsd1*)
11500   dynamic_linker=no
11501   ;;
11502
11503 freebsd* | dragonfly*)
11504   # DragonFly does not have aout.  When/if they implement a new
11505   # versioning mechanism, adjust this.
11506   if test -x /usr/bin/objformat; then
11507     objformat=`/usr/bin/objformat`
11508   else
11509     case $host_os in
11510     freebsd[123]*) objformat=aout ;;
11511     *) objformat=elf ;;
11512     esac
11513   fi
11514   version_type=freebsd-$objformat
11515   case $version_type in
11516     freebsd-elf*)
11517       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11518       need_version=no
11519       need_lib_prefix=no
11520       ;;
11521     freebsd-*)
11522       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11523       need_version=yes
11524       ;;
11525   esac
11526   shlibpath_var=LD_LIBRARY_PATH
11527   case $host_os in
11528   freebsd2*)
11529     shlibpath_overrides_runpath=yes
11530     ;;
11531   freebsd3.[01]* | freebsdelf3.[01]*)
11532     shlibpath_overrides_runpath=yes
11533     hardcode_into_libs=yes
11534     ;;
11535   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11536   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11537     shlibpath_overrides_runpath=no
11538     hardcode_into_libs=yes
11539     ;;
11540   *) # from 4.6 on, and DragonFly
11541     shlibpath_overrides_runpath=yes
11542     hardcode_into_libs=yes
11543     ;;
11544   esac
11545   ;;
11546
11547 gnu*)
11548   version_type=linux
11549   need_lib_prefix=no
11550   need_version=no
11551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11552   soname_spec='${libname}${release}${shared_ext}$major'
11553   shlibpath_var=LD_LIBRARY_PATH
11554   hardcode_into_libs=yes
11555   ;;
11556
11557 hpux9* | hpux10* | hpux11*)
11558   # Give a soname corresponding to the major version so that dld.sl refuses to
11559   # link against other versions.
11560   version_type=sunos
11561   need_lib_prefix=no
11562   need_version=no
11563   case $host_cpu in
11564   ia64*)
11565     shrext_cmds='.so'
11566     hardcode_into_libs=yes
11567     dynamic_linker="$host_os dld.so"
11568     shlibpath_var=LD_LIBRARY_PATH
11569     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11570     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571     soname_spec='${libname}${release}${shared_ext}$major'
11572     if test "X$HPUX_IA64_MODE" = X32; then
11573       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11574     else
11575       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11576     fi
11577     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11578     ;;
11579   hppa*64*)
11580     shrext_cmds='.sl'
11581     hardcode_into_libs=yes
11582     dynamic_linker="$host_os dld.sl"
11583     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11584     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11585     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586     soname_spec='${libname}${release}${shared_ext}$major'
11587     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11588     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11589     ;;
11590   *)
11591     shrext_cmds='.sl'
11592     dynamic_linker="$host_os dld.sl"
11593     shlibpath_var=SHLIB_PATH
11594     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11595     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596     soname_spec='${libname}${release}${shared_ext}$major'
11597     ;;
11598   esac
11599   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11600   postinstall_cmds='chmod 555 $lib'
11601   ;;
11602
11603 interix[3-9]*)
11604   version_type=linux
11605   need_lib_prefix=no
11606   need_version=no
11607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11608   soname_spec='${libname}${release}${shared_ext}$major'
11609   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11610   shlibpath_var=LD_LIBRARY_PATH
11611   shlibpath_overrides_runpath=no
11612   hardcode_into_libs=yes
11613   ;;
11614
11615 irix5* | irix6* | nonstopux*)
11616   case $host_os in
11617     nonstopux*) version_type=nonstopux ;;
11618     *)
11619         if test "$lt_cv_prog_gnu_ld" = yes; then
11620                 version_type=linux
11621         else
11622                 version_type=irix
11623         fi ;;
11624   esac
11625   need_lib_prefix=no
11626   need_version=no
11627   soname_spec='${libname}${release}${shared_ext}$major'
11628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11629   case $host_os in
11630   irix5* | nonstopux*)
11631     libsuff= shlibsuff=
11632     ;;
11633   *)
11634     case $LD in # libtool.m4 will add one of these switches to LD
11635     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11636       libsuff= shlibsuff= libmagic=32-bit;;
11637     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11638       libsuff=32 shlibsuff=N32 libmagic=N32;;
11639     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11640       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11641     *) libsuff= shlibsuff= libmagic=never-match;;
11642     esac
11643     ;;
11644   esac
11645   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11646   shlibpath_overrides_runpath=no
11647   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11648   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11649   hardcode_into_libs=yes
11650   ;;
11651
11652 # No shared lib support for Linux oldld, aout, or coff.
11653 linux*oldld* | linux*aout* | linux*coff*)
11654   dynamic_linker=no
11655   ;;
11656
11657 # This must be Linux ELF.
11658 linux* | k*bsd*-gnu)
11659   version_type=linux
11660   need_lib_prefix=no
11661   need_version=no
11662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11663   soname_spec='${libname}${release}${shared_ext}$major'
11664   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11665   shlibpath_var=LD_LIBRARY_PATH
11666   shlibpath_overrides_runpath=no
11667   # Some binutils ld are patched to set DT_RUNPATH
11668   save_LDFLAGS=$LDFLAGS
11669   save_libdir=$libdir
11670   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11671        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11672   cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h.  */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h.  */
11678
11679 int
11680 main ()
11681 {
11682
11683   ;
11684   return 0;
11685 }
11686 _ACEOF
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (ac_try="$ac_link"
11689 case "(($ac_try" in
11690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691   *) ac_try_echo=$ac_try;;
11692 esac
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694   (eval "$ac_link") 2>conftest.er1
11695   ac_status=$?
11696   grep -v '^ *+' conftest.er1 >conftest.err
11697   rm -f conftest.er1
11698   cat conftest.err >&5
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); } && {
11701          test -z "$ac_c_werror_flag" ||
11702          test ! -s conftest.err
11703        } && test -s conftest$ac_exeext &&
11704        $as_test_x conftest$ac_exeext; then
11705   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11706   shlibpath_overrides_runpath=yes
11707 fi
11708
11709 else
11710   echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713
11714 fi
11715
11716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11717       conftest$ac_exeext conftest.$ac_ext
11718   LDFLAGS=$save_LDFLAGS
11719   libdir=$save_libdir
11720
11721   # This implies no fast_install, which is unacceptable.
11722   # Some rework will be needed to allow for fast_install
11723   # before this can be enabled.
11724   hardcode_into_libs=yes
11725
11726   # Append ld.so.conf contents to the search path
11727   if test -f /etc/ld.so.conf; then
11728     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' ' '`
11729     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11730   fi
11731
11732   # We used to test for /lib/ld.so.1 and disable shared libraries on
11733   # powerpc, because MkLinux only supported shared libraries with the
11734   # GNU dynamic linker.  Since this was broken with cross compilers,
11735   # most powerpc-linux boxes support dynamic linking these days and
11736   # people can always --disable-shared, the test was removed, and we
11737   # assume the GNU/Linux dynamic linker is in use.
11738   dynamic_linker='GNU/Linux ld.so'
11739   ;;
11740
11741 netbsd*)
11742   version_type=sunos
11743   need_lib_prefix=no
11744   need_version=no
11745   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11746     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11747     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11748     dynamic_linker='NetBSD (a.out) ld.so'
11749   else
11750     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11751     soname_spec='${libname}${release}${shared_ext}$major'
11752     dynamic_linker='NetBSD ld.elf_so'
11753   fi
11754   shlibpath_var=LD_LIBRARY_PATH
11755   shlibpath_overrides_runpath=yes
11756   hardcode_into_libs=yes
11757   ;;
11758
11759 newsos6)
11760   version_type=linux
11761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762   shlibpath_var=LD_LIBRARY_PATH
11763   shlibpath_overrides_runpath=yes
11764   ;;
11765
11766 *nto* | *qnx*)
11767   version_type=qnx
11768   need_lib_prefix=no
11769   need_version=no
11770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771   soname_spec='${libname}${release}${shared_ext}$major'
11772   shlibpath_var=LD_LIBRARY_PATH
11773   shlibpath_overrides_runpath=no
11774   hardcode_into_libs=yes
11775   dynamic_linker='ldqnx.so'
11776   ;;
11777
11778 openbsd*)
11779   version_type=sunos
11780   sys_lib_dlsearch_path_spec="/usr/lib"
11781   need_lib_prefix=no
11782   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11783   case $host_os in
11784     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11785     *)                          need_version=no  ;;
11786   esac
11787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11788   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11789   shlibpath_var=LD_LIBRARY_PATH
11790   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11791     case $host_os in
11792       openbsd2.[89] | openbsd2.[89].*)
11793         shlibpath_overrides_runpath=no
11794         ;;
11795       *)
11796         shlibpath_overrides_runpath=yes
11797         ;;
11798       esac
11799   else
11800     shlibpath_overrides_runpath=yes
11801   fi
11802   ;;
11803
11804 os2*)
11805   libname_spec='$name'
11806   shrext_cmds=".dll"
11807   need_lib_prefix=no
11808   library_names_spec='$libname${shared_ext} $libname.a'
11809   dynamic_linker='OS/2 ld.exe'
11810   shlibpath_var=LIBPATH
11811   ;;
11812
11813 osf3* | osf4* | osf5*)
11814   version_type=osf
11815   need_lib_prefix=no
11816   need_version=no
11817   soname_spec='${libname}${release}${shared_ext}$major'
11818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819   shlibpath_var=LD_LIBRARY_PATH
11820   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11821   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11822   ;;
11823
11824 rdos*)
11825   dynamic_linker=no
11826   ;;
11827
11828 solaris*)
11829   version_type=linux
11830   need_lib_prefix=no
11831   need_version=no
11832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11833   soname_spec='${libname}${release}${shared_ext}$major'
11834   shlibpath_var=LD_LIBRARY_PATH
11835   shlibpath_overrides_runpath=yes
11836   hardcode_into_libs=yes
11837   # ldd complains unless libraries are executable
11838   postinstall_cmds='chmod +x $lib'
11839   ;;
11840
11841 sunos4*)
11842   version_type=sunos
11843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11844   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11845   shlibpath_var=LD_LIBRARY_PATH
11846   shlibpath_overrides_runpath=yes
11847   if test "$with_gnu_ld" = yes; then
11848     need_lib_prefix=no
11849   fi
11850   need_version=yes
11851   ;;
11852
11853 sysv4 | sysv4.3*)
11854   version_type=linux
11855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11856   soname_spec='${libname}${release}${shared_ext}$major'
11857   shlibpath_var=LD_LIBRARY_PATH
11858   case $host_vendor in
11859     sni)
11860       shlibpath_overrides_runpath=no
11861       need_lib_prefix=no
11862       runpath_var=LD_RUN_PATH
11863       ;;
11864     siemens)
11865       need_lib_prefix=no
11866       ;;
11867     motorola)
11868       need_lib_prefix=no
11869       need_version=no
11870       shlibpath_overrides_runpath=no
11871       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11872       ;;
11873   esac
11874   ;;
11875
11876 sysv4*MP*)
11877   if test -d /usr/nec ;then
11878     version_type=linux
11879     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11880     soname_spec='$libname${shared_ext}.$major'
11881     shlibpath_var=LD_LIBRARY_PATH
11882   fi
11883   ;;
11884
11885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11886   version_type=freebsd-elf
11887   need_lib_prefix=no
11888   need_version=no
11889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11890   soname_spec='${libname}${release}${shared_ext}$major'
11891   shlibpath_var=LD_LIBRARY_PATH
11892   shlibpath_overrides_runpath=yes
11893   hardcode_into_libs=yes
11894   if test "$with_gnu_ld" = yes; then
11895     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11896   else
11897     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11898     case $host_os in
11899       sco3.2v5*)
11900         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11901         ;;
11902     esac
11903   fi
11904   sys_lib_dlsearch_path_spec='/usr/lib'
11905   ;;
11906
11907 tpf*)
11908   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11909   version_type=linux
11910   need_lib_prefix=no
11911   need_version=no
11912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11913   shlibpath_var=LD_LIBRARY_PATH
11914   shlibpath_overrides_runpath=no
11915   hardcode_into_libs=yes
11916   ;;
11917
11918 uts4*)
11919   version_type=linux
11920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11921   soname_spec='${libname}${release}${shared_ext}$major'
11922   shlibpath_var=LD_LIBRARY_PATH
11923   ;;
11924
11925 *)
11926   dynamic_linker=no
11927   ;;
11928 esac
11929 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11930 echo "${ECHO_T}$dynamic_linker" >&6; }
11931 test "$dynamic_linker" = no && can_build_shared=no
11932
11933 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11934 if test "$GCC" = yes; then
11935   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11936 fi
11937
11938 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11939   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11940 fi
11941 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11942   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11943 fi
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12032 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12033 hardcode_action=
12034 if test -n "$hardcode_libdir_flag_spec" ||
12035    test -n "$runpath_var" ||
12036    test "X$hardcode_automatic" = "Xyes" ; then
12037
12038   # We can hardcode non-existent directories.
12039   if test "$hardcode_direct" != no &&
12040      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12041      # have to relink, otherwise we might link with an installed library
12042      # when we should be linking with a yet-to-be-installed one
12043      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12044      test "$hardcode_minus_L" != no; then
12045     # Linking always hardcodes the temporary library directory.
12046     hardcode_action=relink
12047   else
12048     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12049     hardcode_action=immediate
12050   fi
12051 else
12052   # We cannot hardcode anything, or else we can only hardcode existing
12053   # directories.
12054   hardcode_action=unsupported
12055 fi
12056 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12057 echo "${ECHO_T}$hardcode_action" >&6; }
12058
12059 if test "$hardcode_action" = relink ||
12060    test "$inherit_rpath" = yes; then
12061   # Fast installation is not supported
12062   enable_fast_install=no
12063 elif test "$shlibpath_overrides_runpath" = yes ||
12064      test "$enable_shared" = no; then
12065   # Fast installation is not necessary
12066   enable_fast_install=needless
12067 fi
12068
12069
12070
12071
12072
12073
12074   if test "x$enable_dlopen" != xyes; then
12075   enable_dlopen=unknown
12076   enable_dlopen_self=unknown
12077   enable_dlopen_self_static=unknown
12078 else
12079   lt_cv_dlopen=no
12080   lt_cv_dlopen_libs=
12081
12082   case $host_os in
12083   beos*)
12084     lt_cv_dlopen="load_add_on"
12085     lt_cv_dlopen_libs=
12086     lt_cv_dlopen_self=yes
12087     ;;
12088
12089   mingw* | pw32* | cegcc*)
12090     lt_cv_dlopen="LoadLibrary"
12091     lt_cv_dlopen_libs=
12092     ;;
12093
12094   cygwin*)
12095     lt_cv_dlopen="dlopen"
12096     lt_cv_dlopen_libs=
12097     ;;
12098
12099   darwin*)
12100   # if libdl is installed we need to link against it
12101     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12102 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12103 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12104   echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106   ac_check_lib_save_LIBS=$LIBS
12107 LIBS="-ldl  $LIBS"
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h.  */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h.  */
12114
12115 /* Override any GCC internal prototype to avoid an error.
12116    Use char because int might match the return type of a GCC
12117    builtin and then its argument prototype would still apply.  */
12118 #ifdef __cplusplus
12119 extern "C"
12120 #endif
12121 char dlopen ();
12122 int
12123 main ()
12124 {
12125 return dlopen ();
12126   ;
12127   return 0;
12128 }
12129 _ACEOF
12130 rm -f conftest.$ac_objext conftest$ac_exeext
12131 if { (ac_try="$ac_link"
12132 case "(($ac_try" in
12133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134   *) ac_try_echo=$ac_try;;
12135 esac
12136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137   (eval "$ac_link") 2>conftest.er1
12138   ac_status=$?
12139   grep -v '^ *+' conftest.er1 >conftest.err
12140   rm -f conftest.er1
12141   cat conftest.err >&5
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); } && {
12144          test -z "$ac_c_werror_flag" ||
12145          test ! -s conftest.err
12146        } && test -s conftest$ac_exeext &&
12147        $as_test_x conftest$ac_exeext; then
12148   ac_cv_lib_dl_dlopen=yes
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153         ac_cv_lib_dl_dlopen=no
12154 fi
12155
12156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12157       conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12159 fi
12160 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12161 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12162 if test $ac_cv_lib_dl_dlopen = yes; then
12163   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12164 else
12165
12166     lt_cv_dlopen="dyld"
12167     lt_cv_dlopen_libs=
12168     lt_cv_dlopen_self=yes
12169
12170 fi
12171
12172     ;;
12173
12174   *)
12175     { echo "$as_me:$LINENO: checking for shl_load" >&5
12176 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12177 if test "${ac_cv_func_shl_load+set}" = set; then
12178   echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180   cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h.  */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h.  */
12186 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12188 #define shl_load innocuous_shl_load
12189
12190 /* System header to define __stub macros and hopefully few prototypes,
12191     which can conflict with char shl_load (); below.
12192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12193     <limits.h> exists even on freestanding compilers.  */
12194
12195 #ifdef __STDC__
12196 # include <limits.h>
12197 #else
12198 # include <assert.h>
12199 #endif
12200
12201 #undef shl_load
12202
12203 /* Override any GCC internal prototype to avoid an error.
12204    Use char because int might match the return type of a GCC
12205    builtin and then its argument prototype would still apply.  */
12206 #ifdef __cplusplus
12207 extern "C"
12208 #endif
12209 char shl_load ();
12210 /* The GNU C library defines this for functions which it implements
12211     to always fail with ENOSYS.  Some functions are actually named
12212     something starting with __ and the normal name is an alias.  */
12213 #if defined __stub_shl_load || defined __stub___shl_load
12214 choke me
12215 #endif
12216
12217 int
12218 main ()
12219 {
12220 return shl_load ();
12221   ;
12222   return 0;
12223 }
12224 _ACEOF
12225 rm -f conftest.$ac_objext conftest$ac_exeext
12226 if { (ac_try="$ac_link"
12227 case "(($ac_try" in
12228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229   *) ac_try_echo=$ac_try;;
12230 esac
12231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232   (eval "$ac_link") 2>conftest.er1
12233   ac_status=$?
12234   grep -v '^ *+' conftest.er1 >conftest.err
12235   rm -f conftest.er1
12236   cat conftest.err >&5
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); } && {
12239          test -z "$ac_c_werror_flag" ||
12240          test ! -s conftest.err
12241        } && test -s conftest$ac_exeext &&
12242        $as_test_x conftest$ac_exeext; then
12243   ac_cv_func_shl_load=yes
12244 else
12245   echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12247
12248         ac_cv_func_shl_load=no
12249 fi
12250
12251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12252       conftest$ac_exeext conftest.$ac_ext
12253 fi
12254 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12255 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12256 if test $ac_cv_func_shl_load = yes; then
12257   lt_cv_dlopen="shl_load"
12258 else
12259   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12260 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12261 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12262   echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264   ac_check_lib_save_LIBS=$LIBS
12265 LIBS="-ldld  $LIBS"
12266 cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h.  */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h.  */
12272
12273 /* Override any GCC internal prototype to avoid an error.
12274    Use char because int might match the return type of a GCC
12275    builtin and then its argument prototype would still apply.  */
12276 #ifdef __cplusplus
12277 extern "C"
12278 #endif
12279 char shl_load ();
12280 int
12281 main ()
12282 {
12283 return shl_load ();
12284   ;
12285   return 0;
12286 }
12287 _ACEOF
12288 rm -f conftest.$ac_objext conftest$ac_exeext
12289 if { (ac_try="$ac_link"
12290 case "(($ac_try" in
12291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292   *) ac_try_echo=$ac_try;;
12293 esac
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295   (eval "$ac_link") 2>conftest.er1
12296   ac_status=$?
12297   grep -v '^ *+' conftest.er1 >conftest.err
12298   rm -f conftest.er1
12299   cat conftest.err >&5
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); } && {
12302          test -z "$ac_c_werror_flag" ||
12303          test ! -s conftest.err
12304        } && test -s conftest$ac_exeext &&
12305        $as_test_x conftest$ac_exeext; then
12306   ac_cv_lib_dld_shl_load=yes
12307 else
12308   echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311         ac_cv_lib_dld_shl_load=no
12312 fi
12313
12314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12315       conftest$ac_exeext conftest.$ac_ext
12316 LIBS=$ac_check_lib_save_LIBS
12317 fi
12318 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12319 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12320 if test $ac_cv_lib_dld_shl_load = yes; then
12321   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12322 else
12323   { echo "$as_me:$LINENO: checking for dlopen" >&5
12324 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12325 if test "${ac_cv_func_dlopen+set}" = set; then
12326   echo $ECHO_N "(cached) $ECHO_C" >&6
12327 else
12328   cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h.  */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h.  */
12334 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12336 #define dlopen innocuous_dlopen
12337
12338 /* System header to define __stub macros and hopefully few prototypes,
12339     which can conflict with char dlopen (); below.
12340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12341     <limits.h> exists even on freestanding compilers.  */
12342
12343 #ifdef __STDC__
12344 # include <limits.h>
12345 #else
12346 # include <assert.h>
12347 #endif
12348
12349 #undef dlopen
12350
12351 /* Override any GCC internal prototype to avoid an error.
12352    Use char because int might match the return type of a GCC
12353    builtin and then its argument prototype would still apply.  */
12354 #ifdef __cplusplus
12355 extern "C"
12356 #endif
12357 char dlopen ();
12358 /* The GNU C library defines this for functions which it implements
12359     to always fail with ENOSYS.  Some functions are actually named
12360     something starting with __ and the normal name is an alias.  */
12361 #if defined __stub_dlopen || defined __stub___dlopen
12362 choke me
12363 #endif
12364
12365 int
12366 main ()
12367 {
12368 return dlopen ();
12369   ;
12370   return 0;
12371 }
12372 _ACEOF
12373 rm -f conftest.$ac_objext conftest$ac_exeext
12374 if { (ac_try="$ac_link"
12375 case "(($ac_try" in
12376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377   *) ac_try_echo=$ac_try;;
12378 esac
12379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380   (eval "$ac_link") 2>conftest.er1
12381   ac_status=$?
12382   grep -v '^ *+' conftest.er1 >conftest.err
12383   rm -f conftest.er1
12384   cat conftest.err >&5
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); } && {
12387          test -z "$ac_c_werror_flag" ||
12388          test ! -s conftest.err
12389        } && test -s conftest$ac_exeext &&
12390        $as_test_x conftest$ac_exeext; then
12391   ac_cv_func_dlopen=yes
12392 else
12393   echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12395
12396         ac_cv_func_dlopen=no
12397 fi
12398
12399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12400       conftest$ac_exeext conftest.$ac_ext
12401 fi
12402 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12403 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12404 if test $ac_cv_func_dlopen = yes; then
12405   lt_cv_dlopen="dlopen"
12406 else
12407   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12408 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12409 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12410   echo $ECHO_N "(cached) $ECHO_C" >&6
12411 else
12412   ac_check_lib_save_LIBS=$LIBS
12413 LIBS="-ldl  $LIBS"
12414 cat >conftest.$ac_ext <<_ACEOF
12415 /* confdefs.h.  */
12416 _ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h.  */
12420
12421 /* Override any GCC internal prototype to avoid an error.
12422    Use char because int might match the return type of a GCC
12423    builtin and then its argument prototype would still apply.  */
12424 #ifdef __cplusplus
12425 extern "C"
12426 #endif
12427 char dlopen ();
12428 int
12429 main ()
12430 {
12431 return dlopen ();
12432   ;
12433   return 0;
12434 }
12435 _ACEOF
12436 rm -f conftest.$ac_objext conftest$ac_exeext
12437 if { (ac_try="$ac_link"
12438 case "(($ac_try" in
12439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440   *) ac_try_echo=$ac_try;;
12441 esac
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443   (eval "$ac_link") 2>conftest.er1
12444   ac_status=$?
12445   grep -v '^ *+' conftest.er1 >conftest.err
12446   rm -f conftest.er1
12447   cat conftest.err >&5
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); } && {
12450          test -z "$ac_c_werror_flag" ||
12451          test ! -s conftest.err
12452        } && test -s conftest$ac_exeext &&
12453        $as_test_x conftest$ac_exeext; then
12454   ac_cv_lib_dl_dlopen=yes
12455 else
12456   echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12458
12459         ac_cv_lib_dl_dlopen=no
12460 fi
12461
12462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12463       conftest$ac_exeext conftest.$ac_ext
12464 LIBS=$ac_check_lib_save_LIBS
12465 fi
12466 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12467 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12468 if test $ac_cv_lib_dl_dlopen = yes; then
12469   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12470 else
12471   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12472 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12473 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12474   echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476   ac_check_lib_save_LIBS=$LIBS
12477 LIBS="-lsvld  $LIBS"
12478 cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h.  */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h.  */
12484
12485 /* Override any GCC internal prototype to avoid an error.
12486    Use char because int might match the return type of a GCC
12487    builtin and then its argument prototype would still apply.  */
12488 #ifdef __cplusplus
12489 extern "C"
12490 #endif
12491 char dlopen ();
12492 int
12493 main ()
12494 {
12495 return dlopen ();
12496   ;
12497   return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (ac_try="$ac_link"
12502 case "(($ac_try" in
12503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504   *) ac_try_echo=$ac_try;;
12505 esac
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507   (eval "$ac_link") 2>conftest.er1
12508   ac_status=$?
12509   grep -v '^ *+' conftest.er1 >conftest.err
12510   rm -f conftest.er1
12511   cat conftest.err >&5
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); } && {
12514          test -z "$ac_c_werror_flag" ||
12515          test ! -s conftest.err
12516        } && test -s conftest$ac_exeext &&
12517        $as_test_x conftest$ac_exeext; then
12518   ac_cv_lib_svld_dlopen=yes
12519 else
12520   echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12522
12523         ac_cv_lib_svld_dlopen=no
12524 fi
12525
12526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12527       conftest$ac_exeext conftest.$ac_ext
12528 LIBS=$ac_check_lib_save_LIBS
12529 fi
12530 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12531 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12532 if test $ac_cv_lib_svld_dlopen = yes; then
12533   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12534 else
12535   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12536 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12537 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12538   echo $ECHO_N "(cached) $ECHO_C" >&6
12539 else
12540   ac_check_lib_save_LIBS=$LIBS
12541 LIBS="-ldld  $LIBS"
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h.  */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h.  */
12548
12549 /* Override any GCC internal prototype to avoid an error.
12550    Use char because int might match the return type of a GCC
12551    builtin and then its argument prototype would still apply.  */
12552 #ifdef __cplusplus
12553 extern "C"
12554 #endif
12555 char dld_link ();
12556 int
12557 main ()
12558 {
12559 return dld_link ();
12560   ;
12561   return 0;
12562 }
12563 _ACEOF
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (ac_try="$ac_link"
12566 case "(($ac_try" in
12567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568   *) ac_try_echo=$ac_try;;
12569 esac
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571   (eval "$ac_link") 2>conftest.er1
12572   ac_status=$?
12573   grep -v '^ *+' conftest.er1 >conftest.err
12574   rm -f conftest.er1
12575   cat conftest.err >&5
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); } && {
12578          test -z "$ac_c_werror_flag" ||
12579          test ! -s conftest.err
12580        } && test -s conftest$ac_exeext &&
12581        $as_test_x conftest$ac_exeext; then
12582   ac_cv_lib_dld_dld_link=yes
12583 else
12584   echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12586
12587         ac_cv_lib_dld_dld_link=no
12588 fi
12589
12590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12591       conftest$ac_exeext conftest.$ac_ext
12592 LIBS=$ac_check_lib_save_LIBS
12593 fi
12594 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12595 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12596 if test $ac_cv_lib_dld_dld_link = yes; then
12597   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12598 fi
12599
12600
12601 fi
12602
12603
12604 fi
12605
12606
12607 fi
12608
12609
12610 fi
12611
12612
12613 fi
12614
12615     ;;
12616   esac
12617
12618   if test "x$lt_cv_dlopen" != xno; then
12619     enable_dlopen=yes
12620   else
12621     enable_dlopen=no
12622   fi
12623
12624   case $lt_cv_dlopen in
12625   dlopen)
12626     save_CPPFLAGS="$CPPFLAGS"
12627     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12628
12629     save_LDFLAGS="$LDFLAGS"
12630     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12631
12632     save_LIBS="$LIBS"
12633     LIBS="$lt_cv_dlopen_libs $LIBS"
12634
12635     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12636 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12637 if test "${lt_cv_dlopen_self+set}" = set; then
12638   echo $ECHO_N "(cached) $ECHO_C" >&6
12639 else
12640           if test "$cross_compiling" = yes; then :
12641   lt_cv_dlopen_self=cross
12642 else
12643   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12644   lt_status=$lt_dlunknown
12645   cat > conftest.$ac_ext <<_LT_EOF
12646 #line 12646 "configure"
12647 #include "confdefs.h"
12648
12649 #if HAVE_DLFCN_H
12650 #include <dlfcn.h>
12651 #endif
12652
12653 #include <stdio.h>
12654
12655 #ifdef RTLD_GLOBAL
12656 #  define LT_DLGLOBAL           RTLD_GLOBAL
12657 #else
12658 #  ifdef DL_GLOBAL
12659 #    define LT_DLGLOBAL         DL_GLOBAL
12660 #  else
12661 #    define LT_DLGLOBAL         0
12662 #  endif
12663 #endif
12664
12665 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12666    find out it does not work in some platform. */
12667 #ifndef LT_DLLAZY_OR_NOW
12668 #  ifdef RTLD_LAZY
12669 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12670 #  else
12671 #    ifdef DL_LAZY
12672 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12673 #    else
12674 #      ifdef RTLD_NOW
12675 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12676 #      else
12677 #        ifdef DL_NOW
12678 #          define LT_DLLAZY_OR_NOW      DL_NOW
12679 #        else
12680 #          define LT_DLLAZY_OR_NOW      0
12681 #        endif
12682 #      endif
12683 #    endif
12684 #  endif
12685 #endif
12686
12687 void fnord() { int i=42;}
12688 int main ()
12689 {
12690   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12691   int status = $lt_dlunknown;
12692
12693   if (self)
12694     {
12695       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12696       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12697       /* dlclose (self); */
12698     }
12699   else
12700     puts (dlerror ());
12701
12702   return status;
12703 }
12704 _LT_EOF
12705   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12706   (eval $ac_link) 2>&5
12707   ac_status=$?
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12710     (./conftest; exit; ) >&5 2>/dev/null
12711     lt_status=$?
12712     case x$lt_status in
12713       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12714       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12715       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12716     esac
12717   else :
12718     # compilation failed
12719     lt_cv_dlopen_self=no
12720   fi
12721 fi
12722 rm -fr conftest*
12723
12724
12725 fi
12726 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12727 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12728
12729     if test "x$lt_cv_dlopen_self" = xyes; then
12730       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12731       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12732 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12733 if test "${lt_cv_dlopen_self_static+set}" = set; then
12734   echo $ECHO_N "(cached) $ECHO_C" >&6
12735 else
12736           if test "$cross_compiling" = yes; then :
12737   lt_cv_dlopen_self_static=cross
12738 else
12739   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12740   lt_status=$lt_dlunknown
12741   cat > conftest.$ac_ext <<_LT_EOF
12742 #line 12742 "configure"
12743 #include "confdefs.h"
12744
12745 #if HAVE_DLFCN_H
12746 #include <dlfcn.h>
12747 #endif
12748
12749 #include <stdio.h>
12750
12751 #ifdef RTLD_GLOBAL
12752 #  define LT_DLGLOBAL           RTLD_GLOBAL
12753 #else
12754 #  ifdef DL_GLOBAL
12755 #    define LT_DLGLOBAL         DL_GLOBAL
12756 #  else
12757 #    define LT_DLGLOBAL         0
12758 #  endif
12759 #endif
12760
12761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12762    find out it does not work in some platform. */
12763 #ifndef LT_DLLAZY_OR_NOW
12764 #  ifdef RTLD_LAZY
12765 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12766 #  else
12767 #    ifdef DL_LAZY
12768 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12769 #    else
12770 #      ifdef RTLD_NOW
12771 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12772 #      else
12773 #        ifdef DL_NOW
12774 #          define LT_DLLAZY_OR_NOW      DL_NOW
12775 #        else
12776 #          define LT_DLLAZY_OR_NOW      0
12777 #        endif
12778 #      endif
12779 #    endif
12780 #  endif
12781 #endif
12782
12783 void fnord() { int i=42;}
12784 int main ()
12785 {
12786   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12787   int status = $lt_dlunknown;
12788
12789   if (self)
12790     {
12791       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12792       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12793       /* dlclose (self); */
12794     }
12795   else
12796     puts (dlerror ());
12797
12798   return status;
12799 }
12800 _LT_EOF
12801   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802   (eval $ac_link) 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12806     (./conftest; exit; ) >&5 2>/dev/null
12807     lt_status=$?
12808     case x$lt_status in
12809       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12810       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12811       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12812     esac
12813   else :
12814     # compilation failed
12815     lt_cv_dlopen_self_static=no
12816   fi
12817 fi
12818 rm -fr conftest*
12819
12820
12821 fi
12822 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12823 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12824     fi
12825
12826     CPPFLAGS="$save_CPPFLAGS"
12827     LDFLAGS="$save_LDFLAGS"
12828     LIBS="$save_LIBS"
12829     ;;
12830   esac
12831
12832   case $lt_cv_dlopen_self in
12833   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12834   *) enable_dlopen_self=unknown ;;
12835   esac
12836
12837   case $lt_cv_dlopen_self_static in
12838   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12839   *) enable_dlopen_self_static=unknown ;;
12840   esac
12841 fi
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859 striplib=
12860 old_striplib=
12861 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12862 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12863 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12864   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12865   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12866   { echo "$as_me:$LINENO: result: yes" >&5
12867 echo "${ECHO_T}yes" >&6; }
12868 else
12869 # FIXME - insert some real tests, host_os isn't really good enough
12870   case $host_os in
12871   darwin*)
12872     if test -n "$STRIP" ; then
12873       striplib="$STRIP -x"
12874       old_striplib="$STRIP -S"
12875       { echo "$as_me:$LINENO: result: yes" >&5
12876 echo "${ECHO_T}yes" >&6; }
12877     else
12878       { echo "$as_me:$LINENO: result: no" >&5
12879 echo "${ECHO_T}no" >&6; }
12880     fi
12881     ;;
12882   *)
12883     { echo "$as_me:$LINENO: result: no" >&5
12884 echo "${ECHO_T}no" >&6; }
12885     ;;
12886   esac
12887 fi
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900   # Report which library types will actually be built
12901   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12902 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12903   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12904 echo "${ECHO_T}$can_build_shared" >&6; }
12905
12906   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12907 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12908   test "$can_build_shared" = "no" && enable_shared=no
12909
12910   # On AIX, shared libraries and static libraries use the same namespace, and
12911   # are all built from PIC.
12912   case $host_os in
12913   aix3*)
12914     test "$enable_shared" = yes && enable_static=no
12915     if test -n "$RANLIB"; then
12916       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12917       postinstall_cmds='$RANLIB $lib'
12918     fi
12919     ;;
12920
12921   aix[4-9]*)
12922     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12923       test "$enable_shared" = yes && enable_static=no
12924     fi
12925     ;;
12926   esac
12927   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12928 echo "${ECHO_T}$enable_shared" >&6; }
12929
12930   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12931 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12932   # Make sure either enable_shared or enable_static is yes.
12933   test "$enable_shared" = yes || enable_static=yes
12934   { echo "$as_me:$LINENO: result: $enable_static" >&5
12935 echo "${ECHO_T}$enable_static" >&6; }
12936
12937
12938
12939
12940 fi
12941 ac_ext=c
12942 ac_cpp='$CPP $CPPFLAGS'
12943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12946
12947 CC="$lt_save_CC"
12948
12949
12950 ac_ext=cpp
12951 ac_cpp='$CXXCPP $CPPFLAGS'
12952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12955
12956 archive_cmds_need_lc_CXX=no
12957 allow_undefined_flag_CXX=
12958 always_export_symbols_CXX=no
12959 archive_expsym_cmds_CXX=
12960 compiler_needs_object_CXX=no
12961 export_dynamic_flag_spec_CXX=
12962 hardcode_direct_CXX=no
12963 hardcode_direct_absolute_CXX=no
12964 hardcode_libdir_flag_spec_CXX=
12965 hardcode_libdir_flag_spec_ld_CXX=
12966 hardcode_libdir_separator_CXX=
12967 hardcode_minus_L_CXX=no
12968 hardcode_shlibpath_var_CXX=unsupported
12969 hardcode_automatic_CXX=no
12970 inherit_rpath_CXX=no
12971 module_cmds_CXX=
12972 module_expsym_cmds_CXX=
12973 link_all_deplibs_CXX=unknown
12974 old_archive_cmds_CXX=$old_archive_cmds
12975 no_undefined_flag_CXX=
12976 whole_archive_flag_spec_CXX=
12977 enable_shared_with_static_runtimes_CXX=no
12978
12979 # Source file extension for C++ test sources.
12980 ac_ext=cpp
12981
12982 # Object file extension for compiled C++ test sources.
12983 objext=o
12984 objext_CXX=$objext
12985
12986 # No sense in running all these tests if we already determined that
12987 # the CXX compiler isn't working.  Some variables (like enable_shared)
12988 # are currently assumed to apply to all compilers on this platform,
12989 # and will be corrupted by setting them based on a non-working compiler.
12990 if test "$_lt_caught_CXX_error" != yes; then
12991   # Code to be used in simple compile tests
12992   lt_simple_compile_test_code="int some_variable = 0;"
12993
12994   # Code to be used in simple link tests
12995   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12996
12997   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12998
12999
13000
13001
13002
13003
13004 # If no C compiler was specified, use CC.
13005 LTCC=${LTCC-"$CC"}
13006
13007 # If no C compiler flags were specified, use CFLAGS.
13008 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13009
13010 # Allow CC to be a program name with arguments.
13011 compiler=$CC
13012
13013
13014   # save warnings/boilerplate of simple test code
13015   ac_outfile=conftest.$ac_objext
13016 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13017 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13018 _lt_compiler_boilerplate=`cat conftest.err`
13019 $RM conftest*
13020
13021   ac_outfile=conftest.$ac_objext
13022 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13023 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13024 _lt_linker_boilerplate=`cat conftest.err`
13025 $RM -r conftest*
13026
13027
13028   # Allow CC to be a program name with arguments.
13029   lt_save_CC=$CC
13030   lt_save_LD=$LD
13031   lt_save_GCC=$GCC
13032   GCC=$GXX
13033   lt_save_with_gnu_ld=$with_gnu_ld
13034   lt_save_path_LD=$lt_cv_path_LD
13035   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13036     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13037   else
13038     $as_unset lt_cv_prog_gnu_ld
13039   fi
13040   if test -n "${lt_cv_path_LDCXX+set}"; then
13041     lt_cv_path_LD=$lt_cv_path_LDCXX
13042   else
13043     $as_unset lt_cv_path_LD
13044   fi
13045   test -z "${LDCXX+set}" || LD=$LDCXX
13046   CC=${CXX-"c++"}
13047   compiler=$CC
13048   compiler_CXX=$CC
13049   for cc_temp in $compiler""; do
13050   case $cc_temp in
13051     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13052     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13053     \-*) ;;
13054     *) break;;
13055   esac
13056 done
13057 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13058
13059
13060   if test -n "$compiler"; then
13061     # We don't want -fno-exception when compiling C++ code, so set the
13062     # no_builtin_flag separately
13063     if test "$GXX" = yes; then
13064       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13065     else
13066       lt_prog_compiler_no_builtin_flag_CXX=
13067     fi
13068
13069     if test "$GXX" = yes; then
13070       # Set up default GNU C++ configuration
13071
13072
13073
13074 # Check whether --with-gnu-ld was given.
13075 if test "${with_gnu_ld+set}" = set; then
13076   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13077 else
13078   with_gnu_ld=no
13079 fi
13080
13081 ac_prog=ld
13082 if test "$GCC" = yes; then
13083   # Check if gcc -print-prog-name=ld gives a path.
13084   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13085 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13086   case $host in
13087   *-*-mingw*)
13088     # gcc leaves a trailing carriage return which upsets mingw
13089     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13090   *)
13091     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13092   esac
13093   case $ac_prog in
13094     # Accept absolute paths.
13095     [\\/]* | ?:[\\/]*)
13096       re_direlt='/[^/][^/]*/\.\./'
13097       # Canonicalize the pathname of ld
13098       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13099       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13100         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13101       done
13102       test -z "$LD" && LD="$ac_prog"
13103       ;;
13104   "")
13105     # If it fails, then pretend we aren't using GCC.
13106     ac_prog=ld
13107     ;;
13108   *)
13109     # If it is relative, then search for the first ld in PATH.
13110     with_gnu_ld=unknown
13111     ;;
13112   esac
13113 elif test "$with_gnu_ld" = yes; then
13114   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13115 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13116 else
13117   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13118 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13119 fi
13120 if test "${lt_cv_path_LD+set}" = set; then
13121   echo $ECHO_N "(cached) $ECHO_C" >&6
13122 else
13123   if test -z "$LD"; then
13124   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13125   for ac_dir in $PATH; do
13126     IFS="$lt_save_ifs"
13127     test -z "$ac_dir" && ac_dir=.
13128     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13129       lt_cv_path_LD="$ac_dir/$ac_prog"
13130       # Check to see if the program is GNU ld.  I'd rather use --version,
13131       # but apparently some variants of GNU ld only accept -v.
13132       # Break only if it was the GNU/non-GNU ld that we prefer.
13133       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13134       *GNU* | *'with BFD'*)
13135         test "$with_gnu_ld" != no && break
13136         ;;
13137       *)
13138         test "$with_gnu_ld" != yes && break
13139         ;;
13140       esac
13141     fi
13142   done
13143   IFS="$lt_save_ifs"
13144 else
13145   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13146 fi
13147 fi
13148
13149 LD="$lt_cv_path_LD"
13150 if test -n "$LD"; then
13151   { echo "$as_me:$LINENO: result: $LD" >&5
13152 echo "${ECHO_T}$LD" >&6; }
13153 else
13154   { echo "$as_me:$LINENO: result: no" >&5
13155 echo "${ECHO_T}no" >&6; }
13156 fi
13157 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13158 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13159    { (exit 1); exit 1; }; }
13160 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13161 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13162 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13166 case `$LD -v 2>&1 </dev/null` in
13167 *GNU* | *'with BFD'*)
13168   lt_cv_prog_gnu_ld=yes
13169   ;;
13170 *)
13171   lt_cv_prog_gnu_ld=no
13172   ;;
13173 esac
13174 fi
13175 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13176 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13177 with_gnu_ld=$lt_cv_prog_gnu_ld
13178
13179
13180
13181
13182
13183
13184
13185       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13186       # archiving commands below assume that GNU ld is being used.
13187       if test "$with_gnu_ld" = yes; then
13188         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13189         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'
13190
13191         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13192         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13193
13194         # If archive_cmds runs LD, not CC, wlarc should be empty
13195         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13196         #     investigate it a little bit more. (MM)
13197         wlarc='${wl}'
13198
13199         # ancient GNU ld didn't support --whole-archive et. al.
13200         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13201           $GREP 'no-whole-archive' > /dev/null; then
13202           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13203         else
13204           whole_archive_flag_spec_CXX=
13205         fi
13206       else
13207         with_gnu_ld=no
13208         wlarc=
13209
13210         # A generic and very simple default shared library creation
13211         # command for GNU C++ for the case where it uses the native
13212         # linker, instead of GNU ld.  If possible, this setting should
13213         # overridden to take advantage of the native linker features on
13214         # the platform it is being used on.
13215         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13216       fi
13217
13218       # Commands to make compiler produce verbose output that lists
13219       # what "hidden" libraries, object files and flags are used when
13220       # linking a shared library.
13221       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13222
13223     else
13224       GXX=no
13225       with_gnu_ld=no
13226       wlarc=
13227     fi
13228
13229     # PORTME: fill in a description of your system's C++ link characteristics
13230     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13231 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13232     ld_shlibs_CXX=yes
13233     case $host_os in
13234       aix3*)
13235         # FIXME: insert proper C++ library support
13236         ld_shlibs_CXX=no
13237         ;;
13238       aix[4-9]*)
13239         if test "$host_cpu" = ia64; then
13240           # On IA64, the linker does run time linking by default, so we don't
13241           # have to do anything special.
13242           aix_use_runtimelinking=no
13243           exp_sym_flag='-Bexport'
13244           no_entry_flag=""
13245         else
13246           aix_use_runtimelinking=no
13247
13248           # Test if we are trying to use run time linking or normal
13249           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13250           # need to do runtime linking.
13251           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13252             for ld_flag in $LDFLAGS; do
13253               case $ld_flag in
13254               *-brtl*)
13255                 aix_use_runtimelinking=yes
13256                 break
13257                 ;;
13258               esac
13259             done
13260             ;;
13261           esac
13262
13263           exp_sym_flag='-bexport'
13264           no_entry_flag='-bnoentry'
13265         fi
13266
13267         # When large executables or shared objects are built, AIX ld can
13268         # have problems creating the table of contents.  If linking a library
13269         # or program results in "error TOC overflow" add -mminimal-toc to
13270         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13271         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13272
13273         archive_cmds_CXX=''
13274         hardcode_direct_CXX=yes
13275         hardcode_direct_absolute_CXX=yes
13276         hardcode_libdir_separator_CXX=':'
13277         link_all_deplibs_CXX=yes
13278         file_list_spec_CXX='${wl}-f,'
13279
13280         if test "$GXX" = yes; then
13281           case $host_os in aix4.[012]|aix4.[012].*)
13282           # We only want to do this on AIX 4.2 and lower, the check
13283           # below for broken collect2 doesn't work under 4.3+
13284           collect2name=`${CC} -print-prog-name=collect2`
13285           if test -f "$collect2name" &&
13286              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13287           then
13288             # We have reworked collect2
13289             :
13290           else
13291             # We have old collect2
13292             hardcode_direct_CXX=unsupported
13293             # It fails to find uninstalled libraries when the uninstalled
13294             # path is not listed in the libpath.  Setting hardcode_minus_L
13295             # to unsupported forces relinking
13296             hardcode_minus_L_CXX=yes
13297             hardcode_libdir_flag_spec_CXX='-L$libdir'
13298             hardcode_libdir_separator_CXX=
13299           fi
13300           esac
13301           shared_flag='-shared'
13302           if test "$aix_use_runtimelinking" = yes; then
13303             shared_flag="$shared_flag "'${wl}-G'
13304           fi
13305         else
13306           # not using gcc
13307           if test "$host_cpu" = ia64; then
13308           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13309           # chokes on -Wl,-G. The following line is correct:
13310           shared_flag='-G'
13311           else
13312             if test "$aix_use_runtimelinking" = yes; then
13313               shared_flag='${wl}-G'
13314             else
13315               shared_flag='${wl}-bM:SRE'
13316             fi
13317           fi
13318         fi
13319
13320         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13321         # It seems that -bexpall does not export symbols beginning with
13322         # underscore (_), so it is better to generate a list of symbols to
13323         # export.
13324         always_export_symbols_CXX=yes
13325         if test "$aix_use_runtimelinking" = yes; then
13326           # Warning - without using the other runtime loading flags (-brtl),
13327           # -berok will link without error, but may produce a broken library.
13328           allow_undefined_flag_CXX='-berok'
13329           # Determine the default libpath from the value encoded in an empty
13330           # executable.
13331           cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h.  */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h.  */
13337
13338 int
13339 main ()
13340 {
13341
13342   ;
13343   return 0;
13344 }
13345 _ACEOF
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (ac_try="$ac_link"
13348 case "(($ac_try" in
13349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350   *) ac_try_echo=$ac_try;;
13351 esac
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353   (eval "$ac_link") 2>conftest.er1
13354   ac_status=$?
13355   grep -v '^ *+' conftest.er1 >conftest.err
13356   rm -f conftest.er1
13357   cat conftest.err >&5
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); } && {
13360          test -z "$ac_cxx_werror_flag" ||
13361          test ! -s conftest.err
13362        } && test -s conftest$ac_exeext &&
13363        $as_test_x conftest$ac_exeext; then
13364
13365 lt_aix_libpath_sed='
13366     /Import File Strings/,/^$/ {
13367         /^0/ {
13368             s/^0  *\(.*\)$/\1/
13369             p
13370         }
13371     }'
13372 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13373 # Check for a 64-bit object if we didn't find anything.
13374 if test -z "$aix_libpath"; then
13375   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13376 fi
13377 else
13378   echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13380
13381
13382 fi
13383
13384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13385       conftest$ac_exeext conftest.$ac_ext
13386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13387
13388           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13389
13390           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"
13391         else
13392           if test "$host_cpu" = ia64; then
13393             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13394             allow_undefined_flag_CXX="-z nodefs"
13395             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"
13396           else
13397             # Determine the default libpath from the value encoded in an
13398             # empty executable.
13399             cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h.  */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h.  */
13405
13406 int
13407 main ()
13408 {
13409
13410   ;
13411   return 0;
13412 }
13413 _ACEOF
13414 rm -f conftest.$ac_objext conftest$ac_exeext
13415 if { (ac_try="$ac_link"
13416 case "(($ac_try" in
13417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418   *) ac_try_echo=$ac_try;;
13419 esac
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421   (eval "$ac_link") 2>conftest.er1
13422   ac_status=$?
13423   grep -v '^ *+' conftest.er1 >conftest.err
13424   rm -f conftest.er1
13425   cat conftest.err >&5
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); } && {
13428          test -z "$ac_cxx_werror_flag" ||
13429          test ! -s conftest.err
13430        } && test -s conftest$ac_exeext &&
13431        $as_test_x conftest$ac_exeext; then
13432
13433 lt_aix_libpath_sed='
13434     /Import File Strings/,/^$/ {
13435         /^0/ {
13436             s/^0  *\(.*\)$/\1/
13437             p
13438         }
13439     }'
13440 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13441 # Check for a 64-bit object if we didn't find anything.
13442 if test -z "$aix_libpath"; then
13443   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13444 fi
13445 else
13446   echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13448
13449
13450 fi
13451
13452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13453       conftest$ac_exeext conftest.$ac_ext
13454 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13455
13456             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13457             # Warning - without using the other run time loading flags,
13458             # -berok will link without error, but may produce a broken library.
13459             no_undefined_flag_CXX=' ${wl}-bernotok'
13460             allow_undefined_flag_CXX=' ${wl}-berok'
13461             # Exported symbols can be pulled into shared objects from archives
13462             whole_archive_flag_spec_CXX='$convenience'
13463             archive_cmds_need_lc_CXX=yes
13464             # This is similar to how AIX traditionally builds its shared
13465             # libraries.
13466             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'
13467           fi
13468         fi
13469         ;;
13470
13471       beos*)
13472         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13473           allow_undefined_flag_CXX=unsupported
13474           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13475           # support --undefined.  This deserves some investigation.  FIXME
13476           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13477         else
13478           ld_shlibs_CXX=no
13479         fi
13480         ;;
13481
13482       chorus*)
13483         case $cc_basename in
13484           *)
13485           # FIXME: insert proper C++ library support
13486           ld_shlibs_CXX=no
13487           ;;
13488         esac
13489         ;;
13490
13491       cygwin* | mingw* | pw32* | cegcc*)
13492         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13493         # as there is no search path for DLLs.
13494         hardcode_libdir_flag_spec_CXX='-L$libdir'
13495         allow_undefined_flag_CXX=unsupported
13496         always_export_symbols_CXX=no
13497         enable_shared_with_static_runtimes_CXX=yes
13498
13499         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13500           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'
13501           # If the export-symbols file already is a .def file (1st line
13502           # is EXPORTS), use it as is; otherwise, prepend...
13503           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13504             cp $export_symbols $output_objdir/$soname.def;
13505           else
13506             echo EXPORTS > $output_objdir/$soname.def;
13507             cat $export_symbols >> $output_objdir/$soname.def;
13508           fi~
13509           $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'
13510         else
13511           ld_shlibs_CXX=no
13512         fi
13513         ;;
13514       darwin* | rhapsody*)
13515
13516
13517   archive_cmds_need_lc_CXX=no
13518   hardcode_direct_CXX=no
13519   hardcode_automatic_CXX=yes
13520   hardcode_shlibpath_var_CXX=unsupported
13521   whole_archive_flag_spec_CXX=''
13522   link_all_deplibs_CXX=yes
13523   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13524   case $cc_basename in
13525      ifort*) _lt_dar_can_shared=yes ;;
13526      *) _lt_dar_can_shared=$GCC ;;
13527   esac
13528   if test "$_lt_dar_can_shared" = "yes"; then
13529     output_verbose_link_cmd=echo
13530     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}"
13531     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13532     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}"
13533     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}"
13534        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13535       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}"
13536       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}"
13537     fi
13538
13539   else
13540   ld_shlibs_CXX=no
13541   fi
13542
13543         ;;
13544
13545       dgux*)
13546         case $cc_basename in
13547           ec++*)
13548             # FIXME: insert proper C++ library support
13549             ld_shlibs_CXX=no
13550             ;;
13551           ghcx*)
13552             # Green Hills C++ Compiler
13553             # FIXME: insert proper C++ library support
13554             ld_shlibs_CXX=no
13555             ;;
13556           *)
13557             # FIXME: insert proper C++ library support
13558             ld_shlibs_CXX=no
13559             ;;
13560         esac
13561         ;;
13562
13563       freebsd[12]*)
13564         # C++ shared libraries reported to be fairly broken before
13565         # switch to ELF
13566         ld_shlibs_CXX=no
13567         ;;
13568
13569       freebsd-elf*)
13570         archive_cmds_need_lc_CXX=no
13571         ;;
13572
13573       freebsd* | dragonfly*)
13574         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13575         # conventions
13576         ld_shlibs_CXX=yes
13577         ;;
13578
13579       gnu*)
13580         ;;
13581
13582       hpux9*)
13583         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13584         hardcode_libdir_separator_CXX=:
13585         export_dynamic_flag_spec_CXX='${wl}-E'
13586         hardcode_direct_CXX=yes
13587         hardcode_minus_L_CXX=yes # Not in the search PATH,
13588                                              # but as the default
13589                                              # location of the library.
13590
13591         case $cc_basename in
13592           CC*)
13593             # FIXME: insert proper C++ library support
13594             ld_shlibs_CXX=no
13595             ;;
13596           aCC*)
13597             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'
13598             # Commands to make compiler produce verbose output that lists
13599             # what "hidden" libraries, object files and flags are used when
13600             # linking a shared library.
13601             #
13602             # There doesn't appear to be a way to prevent this compiler from
13603             # explicitly linking system object files so we need to strip them
13604             # from the output so that they don't get included in the library
13605             # dependencies.
13606             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'
13607             ;;
13608           *)
13609             if test "$GXX" = yes; then
13610               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'
13611             else
13612               # FIXME: insert proper C++ library support
13613               ld_shlibs_CXX=no
13614             fi
13615             ;;
13616         esac
13617         ;;
13618
13619       hpux10*|hpux11*)
13620         if test $with_gnu_ld = no; then
13621           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13622           hardcode_libdir_separator_CXX=:
13623
13624           case $host_cpu in
13625             hppa*64*|ia64*)
13626               ;;
13627             *)
13628               export_dynamic_flag_spec_CXX='${wl}-E'
13629               ;;
13630           esac
13631         fi
13632         case $host_cpu in
13633           hppa*64*|ia64*)
13634             hardcode_direct_CXX=no
13635             hardcode_shlibpath_var_CXX=no
13636             ;;
13637           *)
13638             hardcode_direct_CXX=yes
13639             hardcode_direct_absolute_CXX=yes
13640             hardcode_minus_L_CXX=yes # Not in the search PATH,
13641                                                  # but as the default
13642                                                  # location of the library.
13643             ;;
13644         esac
13645
13646         case $cc_basename in
13647           CC*)
13648             # FIXME: insert proper C++ library support
13649             ld_shlibs_CXX=no
13650             ;;
13651           aCC*)
13652             case $host_cpu in
13653               hppa*64*)
13654                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13655                 ;;
13656               ia64*)
13657                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13658                 ;;
13659               *)
13660                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13661                 ;;
13662             esac
13663             # Commands to make compiler produce verbose output that lists
13664             # what "hidden" libraries, object files and flags are used when
13665             # linking a shared library.
13666             #
13667             # There doesn't appear to be a way to prevent this compiler from
13668             # explicitly linking system object files so we need to strip them
13669             # from the output so that they don't get included in the library
13670             # dependencies.
13671             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'
13672             ;;
13673           *)
13674             if test "$GXX" = yes; then
13675               if test $with_gnu_ld = no; then
13676                 case $host_cpu in
13677                   hppa*64*)
13678                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13679                     ;;
13680                   ia64*)
13681                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13682                     ;;
13683                   *)
13684                     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'
13685                     ;;
13686                 esac
13687               fi
13688             else
13689               # FIXME: insert proper C++ library support
13690               ld_shlibs_CXX=no
13691             fi
13692             ;;
13693         esac
13694         ;;
13695
13696       interix[3-9]*)
13697         hardcode_direct_CXX=no
13698         hardcode_shlibpath_var_CXX=no
13699         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13700         export_dynamic_flag_spec_CXX='${wl}-E'
13701         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13702         # Instead, shared libraries are loaded at an image base (0x10000000 by
13703         # default) and relocated if they conflict, which is a slow very memory
13704         # consuming and fragmenting process.  To avoid this, we pick a random,
13705         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13706         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13707         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'
13708         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'
13709         ;;
13710       irix5* | irix6*)
13711         case $cc_basename in
13712           CC*)
13713             # SGI C++
13714             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'
13715
13716             # Archives containing C++ object files must be created using
13717             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13718             # necessary to make sure instantiated templates are included
13719             # in the archive.
13720             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13721             ;;
13722           *)
13723             if test "$GXX" = yes; then
13724               if test "$with_gnu_ld" = no; then
13725                 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'
13726               else
13727                 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'
13728               fi
13729             fi
13730             link_all_deplibs_CXX=yes
13731             ;;
13732         esac
13733         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13734         hardcode_libdir_separator_CXX=:
13735         inherit_rpath_CXX=yes
13736         ;;
13737
13738       linux* | k*bsd*-gnu)
13739         case $cc_basename in
13740           KCC*)
13741             # Kuck and Associates, Inc. (KAI) C++ Compiler
13742
13743             # KCC will only create a shared library if the output file
13744             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13745             # to its proper name (with version) after linking.
13746             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'
13747             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'
13748             # Commands to make compiler produce verbose output that lists
13749             # what "hidden" libraries, object files and flags are used when
13750             # linking a shared library.
13751             #
13752             # There doesn't appear to be a way to prevent this compiler from
13753             # explicitly linking system object files so we need to strip them
13754             # from the output so that they don't get included in the library
13755             # dependencies.
13756             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'
13757
13758             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13759             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13760
13761             # Archives containing C++ object files must be created using
13762             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13763             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13764             ;;
13765           icpc* | ecpc* )
13766             # Intel C++
13767             with_gnu_ld=yes
13768             # version 8.0 and above of icpc choke on multiply defined symbols
13769             # if we add $predep_objects and $postdep_objects, however 7.1 and
13770             # earlier do not add the objects themselves.
13771             case `$CC -V 2>&1` in
13772               *"Version 7."*)
13773                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13774                 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'
13775                 ;;
13776               *)  # Version 8.0 or newer
13777                 tmp_idyn=
13778                 case $host_cpu in
13779                   ia64*) tmp_idyn=' -i_dynamic';;
13780                 esac
13781                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13782                 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'
13783                 ;;
13784             esac
13785             archive_cmds_need_lc_CXX=no
13786             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13787             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13788             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13789             ;;
13790           pgCC* | pgcpp*)
13791             # Portland Group C++ compiler
13792             case `$CC -V` in
13793             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13794               prelink_cmds_CXX='tpldir=Template.dir~
13795                 rm -rf $tpldir~
13796                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13797                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13798               old_archive_cmds_CXX='tpldir=Template.dir~
13799                 rm -rf $tpldir~
13800                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13801                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13802                 $RANLIB $oldlib'
13803               archive_cmds_CXX='tpldir=Template.dir~
13804                 rm -rf $tpldir~
13805                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13806                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13807               archive_expsym_cmds_CXX='tpldir=Template.dir~
13808                 rm -rf $tpldir~
13809                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13810                 $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'
13811               ;;
13812             *) # Version 6 will use weak symbols
13813               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13814               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'
13815               ;;
13816             esac
13817
13818             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13819             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13820             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'
13821             ;;
13822           cxx*)
13823             # Compaq C++
13824             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13825             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'
13826
13827             runpath_var=LD_RUN_PATH
13828             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13829             hardcode_libdir_separator_CXX=:
13830
13831             # Commands to make compiler produce verbose output that lists
13832             # what "hidden" libraries, object files and flags are used when
13833             # linking a shared library.
13834             #
13835             # There doesn't appear to be a way to prevent this compiler from
13836             # explicitly linking system object files so we need to strip them
13837             # from the output so that they don't get included in the library
13838             # dependencies.
13839             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'
13840             ;;
13841           xl*)
13842             # IBM XL 8.0 on PPC, with GNU ld
13843             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13844             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13845             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13846             if test "x$supports_anon_versioning" = xyes; then
13847               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13848                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13849                 echo "local: *; };" >> $output_objdir/$libname.ver~
13850                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13851             fi
13852             ;;
13853           *)
13854             case `$CC -V 2>&1 | sed 5q` in
13855             *Sun\ C*)
13856               # Sun C++ 5.9
13857               no_undefined_flag_CXX=' -zdefs'
13858               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13859               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'
13860               hardcode_libdir_flag_spec_CXX='-R$libdir'
13861               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'
13862               compiler_needs_object_CXX=yes
13863
13864               # Not sure whether something based on
13865               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13866               # would be better.
13867               output_verbose_link_cmd='echo'
13868
13869               # Archives containing C++ object files must be created using
13870               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13871               # necessary to make sure instantiated templates are included
13872               # in the archive.
13873               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13874               ;;
13875             esac
13876             ;;
13877         esac
13878         ;;
13879
13880       lynxos*)
13881         # FIXME: insert proper C++ library support
13882         ld_shlibs_CXX=no
13883         ;;
13884
13885       m88k*)
13886         # FIXME: insert proper C++ library support
13887         ld_shlibs_CXX=no
13888         ;;
13889
13890       mvs*)
13891         case $cc_basename in
13892           cxx*)
13893             # FIXME: insert proper C++ library support
13894             ld_shlibs_CXX=no
13895             ;;
13896           *)
13897             # FIXME: insert proper C++ library support
13898             ld_shlibs_CXX=no
13899             ;;
13900         esac
13901         ;;
13902
13903       netbsd*)
13904         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13905           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13906           wlarc=
13907           hardcode_libdir_flag_spec_CXX='-R$libdir'
13908           hardcode_direct_CXX=yes
13909           hardcode_shlibpath_var_CXX=no
13910         fi
13911         # Workaround some broken pre-1.5 toolchains
13912         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13913         ;;
13914
13915       *nto* | *qnx*)
13916         ld_shlibs_CXX=yes
13917         ;;
13918
13919       openbsd2*)
13920         # C++ shared libraries are fairly broken
13921         ld_shlibs_CXX=no
13922         ;;
13923
13924       openbsd*)
13925         if test -f /usr/libexec/ld.so; then
13926           hardcode_direct_CXX=yes
13927           hardcode_shlibpath_var_CXX=no
13928           hardcode_direct_absolute_CXX=yes
13929           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13930           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13931           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13932             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13933             export_dynamic_flag_spec_CXX='${wl}-E'
13934             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13935           fi
13936           output_verbose_link_cmd=echo
13937         else
13938           ld_shlibs_CXX=no
13939         fi
13940         ;;
13941
13942       osf3* | osf4* | osf5*)
13943         case $cc_basename in
13944           KCC*)
13945             # Kuck and Associates, Inc. (KAI) C++ Compiler
13946
13947             # KCC will only create a shared library if the output file
13948             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13949             # to its proper name (with version) after linking.
13950             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'
13951
13952             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13953             hardcode_libdir_separator_CXX=:
13954
13955             # Archives containing C++ object files must be created using
13956             # the KAI C++ compiler.
13957             case $host in
13958               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13959               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13960             esac
13961             ;;
13962           RCC*)
13963             # Rational C++ 2.4.1
13964             # FIXME: insert proper C++ library support
13965             ld_shlibs_CXX=no
13966             ;;
13967           cxx*)
13968             case $host in
13969               osf3*)
13970                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13971                 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'
13972                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13973                 ;;
13974               *)
13975                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13976                 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'
13977                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13978                   echo "-hidden">> $lib.exp~
13979                   $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~
13980                   $RM $lib.exp'
13981                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13982                 ;;
13983             esac
13984
13985             hardcode_libdir_separator_CXX=:
13986
13987             # Commands to make compiler produce verbose output that lists
13988             # what "hidden" libraries, object files and flags are used when
13989             # linking a shared library.
13990             #
13991             # There doesn't appear to be a way to prevent this compiler from
13992             # explicitly linking system object files so we need to strip them
13993             # from the output so that they don't get included in the library
13994             # dependencies.
13995             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'
13996             ;;
13997           *)
13998             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13999               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14000               case $host in
14001                 osf3*)
14002                   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'
14003                   ;;
14004                 *)
14005                   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'
14006                   ;;
14007               esac
14008
14009               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14010               hardcode_libdir_separator_CXX=:
14011
14012               # Commands to make compiler produce verbose output that lists
14013               # what "hidden" libraries, object files and flags are used when
14014               # linking a shared library.
14015               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14016
14017             else
14018               # FIXME: insert proper C++ library support
14019               ld_shlibs_CXX=no
14020             fi
14021             ;;
14022         esac
14023         ;;
14024
14025       psos*)
14026         # FIXME: insert proper C++ library support
14027         ld_shlibs_CXX=no
14028         ;;
14029
14030       sunos4*)
14031         case $cc_basename in
14032           CC*)
14033             # Sun C++ 4.x
14034             # FIXME: insert proper C++ library support
14035             ld_shlibs_CXX=no
14036             ;;
14037           lcc*)
14038             # Lucid
14039             # FIXME: insert proper C++ library support
14040             ld_shlibs_CXX=no
14041             ;;
14042           *)
14043             # FIXME: insert proper C++ library support
14044             ld_shlibs_CXX=no
14045             ;;
14046         esac
14047         ;;
14048
14049       solaris*)
14050         case $cc_basename in
14051           CC*)
14052             # Sun C++ 4.2, 5.x and Centerline C++
14053             archive_cmds_need_lc_CXX=yes
14054             no_undefined_flag_CXX=' -zdefs'
14055             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14056             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14057               $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'
14058
14059             hardcode_libdir_flag_spec_CXX='-R$libdir'
14060             hardcode_shlibpath_var_CXX=no
14061             case $host_os in
14062               solaris2.[0-5] | solaris2.[0-5].*) ;;
14063               *)
14064                 # The compiler driver will combine and reorder linker options,
14065                 # but understands `-z linker_flag'.
14066                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14067                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14068                 ;;
14069             esac
14070             link_all_deplibs_CXX=yes
14071
14072             output_verbose_link_cmd='echo'
14073
14074             # Archives containing C++ object files must be created using
14075             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14076             # necessary to make sure instantiated templates are included
14077             # in the archive.
14078             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14079             ;;
14080           gcx*)
14081             # Green Hills C++ Compiler
14082             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14083
14084             # The C++ compiler must be used to create the archive.
14085             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14086             ;;
14087           *)
14088             # GNU C++ compiler with Solaris linker
14089             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14090               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14091               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14092                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14093                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14094                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14095
14096                 # Commands to make compiler produce verbose output that lists
14097                 # what "hidden" libraries, object files and flags are used when
14098                 # linking a shared library.
14099                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14100               else
14101                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14102                 # platform.
14103                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14104                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14105                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14106
14107                 # Commands to make compiler produce verbose output that lists
14108                 # what "hidden" libraries, object files and flags are used when
14109                 # linking a shared library.
14110                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14111               fi
14112
14113               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14114               case $host_os in
14115                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14116                 *)
14117                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14118                   ;;
14119               esac
14120             fi
14121             ;;
14122         esac
14123         ;;
14124
14125     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14126       no_undefined_flag_CXX='${wl}-z,text'
14127       archive_cmds_need_lc_CXX=no
14128       hardcode_shlibpath_var_CXX=no
14129       runpath_var='LD_RUN_PATH'
14130
14131       case $cc_basename in
14132         CC*)
14133           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14134           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14135           ;;
14136         *)
14137           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14138           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14139           ;;
14140       esac
14141       ;;
14142
14143       sysv5* | sco3.2v5* | sco5v6*)
14144         # Note: We can NOT use -z defs as we might desire, because we do not
14145         # link with -lc, and that would cause any symbols used from libc to
14146         # always be unresolved, which means just about no library would
14147         # ever link correctly.  If we're not using GNU ld we use -z text
14148         # though, which does catch some bad symbols but isn't as heavy-handed
14149         # as -z defs.
14150         no_undefined_flag_CXX='${wl}-z,text'
14151         allow_undefined_flag_CXX='${wl}-z,nodefs'
14152         archive_cmds_need_lc_CXX=no
14153         hardcode_shlibpath_var_CXX=no
14154         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14155         hardcode_libdir_separator_CXX=':'
14156         link_all_deplibs_CXX=yes
14157         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14158         runpath_var='LD_RUN_PATH'
14159
14160         case $cc_basename in
14161           CC*)
14162             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14163             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14164             ;;
14165           *)
14166             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14167             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14168             ;;
14169         esac
14170       ;;
14171
14172       tandem*)
14173         case $cc_basename in
14174           NCC*)
14175             # NonStop-UX NCC 3.20
14176             # FIXME: insert proper C++ library support
14177             ld_shlibs_CXX=no
14178             ;;
14179           *)
14180             # FIXME: insert proper C++ library support
14181             ld_shlibs_CXX=no
14182             ;;
14183         esac
14184         ;;
14185
14186       vxworks*)
14187         # FIXME: insert proper C++ library support
14188         ld_shlibs_CXX=no
14189         ;;
14190
14191       *)
14192         # FIXME: insert proper C++ library support
14193         ld_shlibs_CXX=no
14194         ;;
14195     esac
14196
14197     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14198 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14199     test "$ld_shlibs_CXX" = no && can_build_shared=no
14200
14201     GCC_CXX="$GXX"
14202     LD_CXX="$LD"
14203
14204     ## CAVEAT EMPTOR:
14205     ## There is no encapsulation within the following macros, do not change
14206     ## the running order or otherwise move them around unless you know exactly
14207     ## what you are doing...
14208     # Dependencies to place before and after the object being linked:
14209 predep_objects_CXX=
14210 postdep_objects_CXX=
14211 predeps_CXX=
14212 postdeps_CXX=
14213 compiler_lib_search_path_CXX=
14214
14215 cat > conftest.$ac_ext <<_LT_EOF
14216 class Foo
14217 {
14218 public:
14219   Foo (void) { a = 0; }
14220 private:
14221   int a;
14222 };
14223 _LT_EOF
14224
14225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226   (eval $ac_compile) 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; then
14230   # Parse the compiler output and extract the necessary
14231   # objects, libraries and library flags.
14232
14233   # Sentinel used to keep track of whether or not we are before
14234   # the conftest object file.
14235   pre_test_object_deps_done=no
14236
14237   for p in `eval "$output_verbose_link_cmd"`; do
14238     case $p in
14239
14240     -L* | -R* | -l*)
14241        # Some compilers place space between "-{L,R}" and the path.
14242        # Remove the space.
14243        if test $p = "-L" ||
14244           test $p = "-R"; then
14245          prev=$p
14246          continue
14247        else
14248          prev=
14249        fi
14250
14251        if test "$pre_test_object_deps_done" = no; then
14252          case $p in
14253          -L* | -R*)
14254            # Internal compiler library paths should come after those
14255            # provided the user.  The postdeps already come after the
14256            # user supplied libs so there is no need to process them.
14257            if test -z "$compiler_lib_search_path_CXX"; then
14258              compiler_lib_search_path_CXX="${prev}${p}"
14259            else
14260              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14261            fi
14262            ;;
14263          # The "-l" case would never come before the object being
14264          # linked, so don't bother handling this case.
14265          esac
14266        else
14267          if test -z "$postdeps_CXX"; then
14268            postdeps_CXX="${prev}${p}"
14269          else
14270            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14271          fi
14272        fi
14273        ;;
14274
14275     *.$objext)
14276        # This assumes that the test object file only shows up
14277        # once in the compiler output.
14278        if test "$p" = "conftest.$objext"; then
14279          pre_test_object_deps_done=yes
14280          continue
14281        fi
14282
14283        if test "$pre_test_object_deps_done" = no; then
14284          if test -z "$predep_objects_CXX"; then
14285            predep_objects_CXX="$p"
14286          else
14287            predep_objects_CXX="$predep_objects_CXX $p"
14288          fi
14289        else
14290          if test -z "$postdep_objects_CXX"; then
14291            postdep_objects_CXX="$p"
14292          else
14293            postdep_objects_CXX="$postdep_objects_CXX $p"
14294          fi
14295        fi
14296        ;;
14297
14298     *) ;; # Ignore the rest.
14299
14300     esac
14301   done
14302
14303   # Clean up.
14304   rm -f a.out a.exe
14305 else
14306   echo "libtool.m4: error: problem compiling CXX test program"
14307 fi
14308
14309 $RM -f confest.$objext
14310
14311 # PORTME: override above test on systems where it is broken
14312 case $host_os in
14313 interix[3-9]*)
14314   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14315   # hack all around it, let's just trust "g++" to DTRT.
14316   predep_objects_CXX=
14317   postdep_objects_CXX=
14318   postdeps_CXX=
14319   ;;
14320
14321 linux*)
14322   case `$CC -V 2>&1 | sed 5q` in
14323   *Sun\ C*)
14324     # Sun C++ 5.9
14325
14326     # The more standards-conforming stlport4 library is
14327     # incompatible with the Cstd library. Avoid specifying
14328     # it if it's in CXXFLAGS. Ignore libCrun as
14329     # -library=stlport4 depends on it.
14330     case " $CXX $CXXFLAGS " in
14331     *" -library=stlport4 "*)
14332       solaris_use_stlport4=yes
14333       ;;
14334     esac
14335
14336     if test "$solaris_use_stlport4" != yes; then
14337       postdeps_CXX='-library=Cstd -library=Crun'
14338     fi
14339     ;;
14340   esac
14341   ;;
14342
14343 solaris*)
14344   case $cc_basename in
14345   CC*)
14346     # The more standards-conforming stlport4 library is
14347     # incompatible with the Cstd library. Avoid specifying
14348     # it if it's in CXXFLAGS. Ignore libCrun as
14349     # -library=stlport4 depends on it.
14350     case " $CXX $CXXFLAGS " in
14351     *" -library=stlport4 "*)
14352       solaris_use_stlport4=yes
14353       ;;
14354     esac
14355
14356     # Adding this requires a known-good setup of shared libraries for
14357     # Sun compiler versions before 5.6, else PIC objects from an old
14358     # archive will be linked into the output, leading to subtle bugs.
14359     if test "$solaris_use_stlport4" != yes; then
14360       postdeps_CXX='-library=Cstd -library=Crun'
14361     fi
14362     ;;
14363   esac
14364   ;;
14365 esac
14366
14367
14368 case " $postdeps_CXX " in
14369 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14370 esac
14371  compiler_lib_search_dirs_CXX=
14372 if test -n "${compiler_lib_search_path_CXX}"; then
14373  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14374 fi
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406     lt_prog_compiler_wl_CXX=
14407 lt_prog_compiler_pic_CXX=
14408 lt_prog_compiler_static_CXX=
14409
14410 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14411 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14412
14413   # C++ specific cases for pic, static, wl, etc.
14414   if test "$GXX" = yes; then
14415     lt_prog_compiler_wl_CXX='-Wl,'
14416     lt_prog_compiler_static_CXX='-static'
14417
14418     case $host_os in
14419     aix*)
14420       # All AIX code is PIC.
14421       if test "$host_cpu" = ia64; then
14422         # AIX 5 now supports IA64 processor
14423         lt_prog_compiler_static_CXX='-Bstatic'
14424       fi
14425       ;;
14426
14427     amigaos*)
14428       case $host_cpu in
14429       powerpc)
14430             # see comment about AmigaOS4 .so support
14431             lt_prog_compiler_pic_CXX='-fPIC'
14432         ;;
14433       m68k)
14434             # FIXME: we need at least 68020 code to build shared libraries, but
14435             # adding the `-m68020' flag to GCC prevents building anything better,
14436             # like `-m68040'.
14437             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14438         ;;
14439       esac
14440       ;;
14441
14442     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14443       # PIC is the default for these OSes.
14444       ;;
14445     mingw* | cygwin* | os2* | pw32* | cegcc*)
14446       # This hack is so that the source file can tell whether it is being
14447       # built for inclusion in a dll (and should export symbols for example).
14448       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14449       # (--disable-auto-import) libraries
14450       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14451       ;;
14452     darwin* | rhapsody*)
14453       # PIC is the default on this platform
14454       # Common symbols not allowed in MH_DYLIB files
14455       lt_prog_compiler_pic_CXX='-fno-common'
14456       ;;
14457     *djgpp*)
14458       # DJGPP does not support shared libraries at all
14459       lt_prog_compiler_pic_CXX=
14460       ;;
14461     interix[3-9]*)
14462       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14463       # Instead, we relocate shared libraries at runtime.
14464       ;;
14465     sysv4*MP*)
14466       if test -d /usr/nec; then
14467         lt_prog_compiler_pic_CXX=-Kconform_pic
14468       fi
14469       ;;
14470     hpux*)
14471       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14472       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14473       # sets the default TLS model and affects inlining.
14474       case $host_cpu in
14475       hppa*64*)
14476         ;;
14477       *)
14478         lt_prog_compiler_pic_CXX='-fPIC'
14479         ;;
14480       esac
14481       ;;
14482     *qnx* | *nto*)
14483       # QNX uses GNU C++, but need to define -shared option too, otherwise
14484       # it will coredump.
14485       lt_prog_compiler_pic_CXX='-fPIC -shared'
14486       ;;
14487     *)
14488       lt_prog_compiler_pic_CXX='-fPIC'
14489       ;;
14490     esac
14491   else
14492     case $host_os in
14493       aix[4-9]*)
14494         # All AIX code is PIC.
14495         if test "$host_cpu" = ia64; then
14496           # AIX 5 now supports IA64 processor
14497           lt_prog_compiler_static_CXX='-Bstatic'
14498         else
14499           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14500         fi
14501         ;;
14502       chorus*)
14503         case $cc_basename in
14504         cxch68*)
14505           # Green Hills C++ Compiler
14506           # _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"
14507           ;;
14508         esac
14509         ;;
14510       dgux*)
14511         case $cc_basename in
14512           ec++*)
14513             lt_prog_compiler_pic_CXX='-KPIC'
14514             ;;
14515           ghcx*)
14516             # Green Hills C++ Compiler
14517             lt_prog_compiler_pic_CXX='-pic'
14518             ;;
14519           *)
14520             ;;
14521         esac
14522         ;;
14523       freebsd* | dragonfly*)
14524         # FreeBSD uses GNU C++
14525         ;;
14526       hpux9* | hpux10* | hpux11*)
14527         case $cc_basename in
14528           CC*)
14529             lt_prog_compiler_wl_CXX='-Wl,'
14530             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14531             if test "$host_cpu" != ia64; then
14532               lt_prog_compiler_pic_CXX='+Z'
14533             fi
14534             ;;
14535           aCC*)
14536             lt_prog_compiler_wl_CXX='-Wl,'
14537             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14538             case $host_cpu in
14539             hppa*64*|ia64*)
14540               # +Z the default
14541               ;;
14542             *)
14543               lt_prog_compiler_pic_CXX='+Z'
14544               ;;
14545             esac
14546             ;;
14547           *)
14548             ;;
14549         esac
14550         ;;
14551       interix*)
14552         # This is c89, which is MS Visual C++ (no shared libs)
14553         # Anyone wants to do a port?
14554         ;;
14555       irix5* | irix6* | nonstopux*)
14556         case $cc_basename in
14557           CC*)
14558             lt_prog_compiler_wl_CXX='-Wl,'
14559             lt_prog_compiler_static_CXX='-non_shared'
14560             # CC pic flag -KPIC is the default.
14561             ;;
14562           *)
14563             ;;
14564         esac
14565         ;;
14566       linux* | k*bsd*-gnu)
14567         case $cc_basename in
14568           KCC*)
14569             # KAI C++ Compiler
14570             lt_prog_compiler_wl_CXX='--backend -Wl,'
14571             lt_prog_compiler_pic_CXX='-fPIC'
14572             ;;
14573           ecpc* )
14574             # old Intel C++ for x86_64 which still supported -KPIC.
14575             lt_prog_compiler_wl_CXX='-Wl,'
14576             lt_prog_compiler_pic_CXX='-KPIC'
14577             lt_prog_compiler_static_CXX='-static'
14578             ;;
14579           icpc* )
14580             # Intel C++, used to be incompatible with GCC.
14581             # ICC 10 doesn't accept -KPIC any more.
14582             lt_prog_compiler_wl_CXX='-Wl,'
14583             lt_prog_compiler_pic_CXX='-fPIC'
14584             lt_prog_compiler_static_CXX='-static'
14585             ;;
14586           pgCC* | pgcpp*)
14587             # Portland Group C++ compiler
14588             lt_prog_compiler_wl_CXX='-Wl,'
14589             lt_prog_compiler_pic_CXX='-fpic'
14590             lt_prog_compiler_static_CXX='-Bstatic'
14591             ;;
14592           cxx*)
14593             # Compaq C++
14594             # Make sure the PIC flag is empty.  It appears that all Alpha
14595             # Linux and Compaq Tru64 Unix objects are PIC.
14596             lt_prog_compiler_pic_CXX=
14597             lt_prog_compiler_static_CXX='-non_shared'
14598             ;;
14599           xlc* | xlC*)
14600             # IBM XL 8.0 on PPC
14601             lt_prog_compiler_wl_CXX='-Wl,'
14602             lt_prog_compiler_pic_CXX='-qpic'
14603             lt_prog_compiler_static_CXX='-qstaticlink'
14604             ;;
14605           *)
14606             case `$CC -V 2>&1 | sed 5q` in
14607             *Sun\ C*)
14608               # Sun C++ 5.9
14609               lt_prog_compiler_pic_CXX='-KPIC'
14610               lt_prog_compiler_static_CXX='-Bstatic'
14611               lt_prog_compiler_wl_CXX='-Qoption ld '
14612               ;;
14613             esac
14614             ;;
14615         esac
14616         ;;
14617       lynxos*)
14618         ;;
14619       m88k*)
14620         ;;
14621       mvs*)
14622         case $cc_basename in
14623           cxx*)
14624             lt_prog_compiler_pic_CXX='-W c,exportall'
14625             ;;
14626           *)
14627             ;;
14628         esac
14629         ;;
14630       netbsd*)
14631         ;;
14632       *qnx* | *nto*)
14633         # QNX uses GNU C++, but need to define -shared option too, otherwise
14634         # it will coredump.
14635         lt_prog_compiler_pic_CXX='-fPIC -shared'
14636         ;;
14637       osf3* | osf4* | osf5*)
14638         case $cc_basename in
14639           KCC*)
14640             lt_prog_compiler_wl_CXX='--backend -Wl,'
14641             ;;
14642           RCC*)
14643             # Rational C++ 2.4.1
14644             lt_prog_compiler_pic_CXX='-pic'
14645             ;;
14646           cxx*)
14647             # Digital/Compaq C++
14648             lt_prog_compiler_wl_CXX='-Wl,'
14649             # Make sure the PIC flag is empty.  It appears that all Alpha
14650             # Linux and Compaq Tru64 Unix objects are PIC.
14651             lt_prog_compiler_pic_CXX=
14652             lt_prog_compiler_static_CXX='-non_shared'
14653             ;;
14654           *)
14655             ;;
14656         esac
14657         ;;
14658       psos*)
14659         ;;
14660       solaris*)
14661         case $cc_basename in
14662           CC*)
14663             # Sun C++ 4.2, 5.x and Centerline C++
14664             lt_prog_compiler_pic_CXX='-KPIC'
14665             lt_prog_compiler_static_CXX='-Bstatic'
14666             lt_prog_compiler_wl_CXX='-Qoption ld '
14667             ;;
14668           gcx*)
14669             # Green Hills C++ Compiler
14670             lt_prog_compiler_pic_CXX='-PIC'
14671             ;;
14672           *)
14673             ;;
14674         esac
14675         ;;
14676       sunos4*)
14677         case $cc_basename in
14678           CC*)
14679             # Sun C++ 4.x
14680             lt_prog_compiler_pic_CXX='-pic'
14681             lt_prog_compiler_static_CXX='-Bstatic'
14682             ;;
14683           lcc*)
14684             # Lucid
14685             lt_prog_compiler_pic_CXX='-pic'
14686             ;;
14687           *)
14688             ;;
14689         esac
14690         ;;
14691       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14692         case $cc_basename in
14693           CC*)
14694             lt_prog_compiler_wl_CXX='-Wl,'
14695             lt_prog_compiler_pic_CXX='-KPIC'
14696             lt_prog_compiler_static_CXX='-Bstatic'
14697             ;;
14698         esac
14699         ;;
14700       tandem*)
14701         case $cc_basename in
14702           NCC*)
14703             # NonStop-UX NCC 3.20
14704             lt_prog_compiler_pic_CXX='-KPIC'
14705             ;;
14706           *)
14707             ;;
14708         esac
14709         ;;
14710       vxworks*)
14711         ;;
14712       *)
14713         lt_prog_compiler_can_build_shared_CXX=no
14714         ;;
14715     esac
14716   fi
14717
14718 case $host_os in
14719   # For platforms which do not support PIC, -DPIC is meaningless:
14720   *djgpp*)
14721     lt_prog_compiler_pic_CXX=
14722     ;;
14723   *)
14724     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14725     ;;
14726 esac
14727 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14728 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14729
14730
14731
14732 #
14733 # Check to make sure the PIC flag actually works.
14734 #
14735 if test -n "$lt_prog_compiler_pic_CXX"; then
14736   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14737 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14738 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14739   echo $ECHO_N "(cached) $ECHO_C" >&6
14740 else
14741   lt_cv_prog_compiler_pic_works_CXX=no
14742    ac_outfile=conftest.$ac_objext
14743    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14744    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14745    # Insert the option either (1) after the last *FLAGS variable, or
14746    # (2) before a word containing "conftest.", or (3) at the end.
14747    # Note that $ac_compile itself does not contain backslashes and begins
14748    # with a dollar sign (not a hyphen), so the echo should work correctly.
14749    # The option is referenced via a variable to avoid confusing sed.
14750    lt_compile=`echo "$ac_compile" | $SED \
14751    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14752    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14753    -e 's:$: $lt_compiler_flag:'`
14754    (eval echo "\"\$as_me:14754: $lt_compile\"" >&5)
14755    (eval "$lt_compile" 2>conftest.err)
14756    ac_status=$?
14757    cat conftest.err >&5
14758    echo "$as_me:14758: \$? = $ac_status" >&5
14759    if (exit $ac_status) && test -s "$ac_outfile"; then
14760      # The compiler can only warn and ignore the option if not recognized
14761      # So say no if there are warnings other than the usual output.
14762      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14763      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14764      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14765        lt_cv_prog_compiler_pic_works_CXX=yes
14766      fi
14767    fi
14768    $RM conftest*
14769
14770 fi
14771 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14772 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14773
14774 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14775     case $lt_prog_compiler_pic_CXX in
14776      "" | " "*) ;;
14777      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14778      esac
14779 else
14780     lt_prog_compiler_pic_CXX=
14781      lt_prog_compiler_can_build_shared_CXX=no
14782 fi
14783
14784 fi
14785
14786
14787
14788 #
14789 # Check to make sure the static flag actually works.
14790 #
14791 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14792 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14793 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14794 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14795   echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797   lt_cv_prog_compiler_static_works_CXX=no
14798    save_LDFLAGS="$LDFLAGS"
14799    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14800    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14801    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14802      # The linker can only warn and ignore the option if not recognized
14803      # So say no if there are warnings
14804      if test -s conftest.err; then
14805        # Append any errors to the config.log.
14806        cat conftest.err 1>&5
14807        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14808        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14809        if diff conftest.exp conftest.er2 >/dev/null; then
14810          lt_cv_prog_compiler_static_works_CXX=yes
14811        fi
14812      else
14813        lt_cv_prog_compiler_static_works_CXX=yes
14814      fi
14815    fi
14816    $RM -r conftest*
14817    LDFLAGS="$save_LDFLAGS"
14818
14819 fi
14820 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14821 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14822
14823 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14824     :
14825 else
14826     lt_prog_compiler_static_CXX=
14827 fi
14828
14829
14830
14831
14832     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14833 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14834 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14835   echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837   lt_cv_prog_compiler_c_o_CXX=no
14838    $RM -r conftest 2>/dev/null
14839    mkdir conftest
14840    cd conftest
14841    mkdir out
14842    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14843
14844    lt_compiler_flag="-o out/conftest2.$ac_objext"
14845    # Insert the option either (1) after the last *FLAGS variable, or
14846    # (2) before a word containing "conftest.", or (3) at the end.
14847    # Note that $ac_compile itself does not contain backslashes and begins
14848    # with a dollar sign (not a hyphen), so the echo should work correctly.
14849    lt_compile=`echo "$ac_compile" | $SED \
14850    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14851    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14852    -e 's:$: $lt_compiler_flag:'`
14853    (eval echo "\"\$as_me:14853: $lt_compile\"" >&5)
14854    (eval "$lt_compile" 2>out/conftest.err)
14855    ac_status=$?
14856    cat out/conftest.err >&5
14857    echo "$as_me:14857: \$? = $ac_status" >&5
14858    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14859    then
14860      # The compiler can only warn and ignore the option if not recognized
14861      # So say no if there are warnings
14862      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14863      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14864      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14865        lt_cv_prog_compiler_c_o_CXX=yes
14866      fi
14867    fi
14868    chmod u+w . 2>&5
14869    $RM conftest*
14870    # SGI C++ compiler will create directory out/ii_files/ for
14871    # template instantiation
14872    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14873    $RM out/* && rmdir out
14874    cd ..
14875    $RM -r conftest
14876    $RM conftest*
14877
14878 fi
14879 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14880 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14881
14882
14883
14884     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14885 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14886 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14887   echo $ECHO_N "(cached) $ECHO_C" >&6
14888 else
14889   lt_cv_prog_compiler_c_o_CXX=no
14890    $RM -r conftest 2>/dev/null
14891    mkdir conftest
14892    cd conftest
14893    mkdir out
14894    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14895
14896    lt_compiler_flag="-o out/conftest2.$ac_objext"
14897    # Insert the option either (1) after the last *FLAGS variable, or
14898    # (2) before a word containing "conftest.", or (3) at the end.
14899    # Note that $ac_compile itself does not contain backslashes and begins
14900    # with a dollar sign (not a hyphen), so the echo should work correctly.
14901    lt_compile=`echo "$ac_compile" | $SED \
14902    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14903    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14904    -e 's:$: $lt_compiler_flag:'`
14905    (eval echo "\"\$as_me:14905: $lt_compile\"" >&5)
14906    (eval "$lt_compile" 2>out/conftest.err)
14907    ac_status=$?
14908    cat out/conftest.err >&5
14909    echo "$as_me:14909: \$? = $ac_status" >&5
14910    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14911    then
14912      # The compiler can only warn and ignore the option if not recognized
14913      # So say no if there are warnings
14914      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14915      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14916      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14917        lt_cv_prog_compiler_c_o_CXX=yes
14918      fi
14919    fi
14920    chmod u+w . 2>&5
14921    $RM conftest*
14922    # SGI C++ compiler will create directory out/ii_files/ for
14923    # template instantiation
14924    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14925    $RM out/* && rmdir out
14926    cd ..
14927    $RM -r conftest
14928    $RM conftest*
14929
14930 fi
14931 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14932 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14933
14934
14935
14936
14937 hard_links="nottested"
14938 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14939   # do not overwrite the value of need_locks provided by the user
14940   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14941 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14942   hard_links=yes
14943   $RM conftest*
14944   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14945   touch conftest.a
14946   ln conftest.a conftest.b 2>&5 || hard_links=no
14947   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14948   { echo "$as_me:$LINENO: result: $hard_links" >&5
14949 echo "${ECHO_T}$hard_links" >&6; }
14950   if test "$hard_links" = no; then
14951     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14952 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14953     need_locks=warn
14954   fi
14955 else
14956   need_locks=no
14957 fi
14958
14959
14960
14961     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14962 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14963
14964   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14965   case $host_os in
14966   aix[4-9]*)
14967     # If we're using GNU nm, then we don't want the "-C" option.
14968     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14969     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14970       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'
14971     else
14972       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'
14973     fi
14974     ;;
14975   pw32*)
14976     export_symbols_cmds_CXX="$ltdll_cmds"
14977   ;;
14978   cygwin* | mingw* | cegcc*)
14979     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'
14980   ;;
14981   *)
14982     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14983   ;;
14984   esac
14985   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14986
14987 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14988 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14989 test "$ld_shlibs_CXX" = no && can_build_shared=no
14990
14991 with_gnu_ld_CXX=$with_gnu_ld
14992
14993
14994
14995
14996
14997
14998 #
14999 # Do we need to explicitly link libc?
15000 #
15001 case "x$archive_cmds_need_lc_CXX" in
15002 x|xyes)
15003   # Assume -lc should be added
15004   archive_cmds_need_lc_CXX=yes
15005
15006   if test "$enable_shared" = yes && test "$GCC" = yes; then
15007     case $archive_cmds_CXX in
15008     *'~'*)
15009       # FIXME: we may have to deal with multi-command sequences.
15010       ;;
15011     '$CC '*)
15012       # Test whether the compiler implicitly links with -lc since on some
15013       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15014       # to ld, don't add -lc before -lgcc.
15015       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15016 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15017       $RM conftest*
15018       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15019
15020       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15021   (eval $ac_compile) 2>&5
15022   ac_status=$?
15023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); } 2>conftest.err; then
15025         soname=conftest
15026         lib=conftest
15027         libobjs=conftest.$ac_objext
15028         deplibs=
15029         wl=$lt_prog_compiler_wl_CXX
15030         pic_flag=$lt_prog_compiler_pic_CXX
15031         compiler_flags=-v
15032         linker_flags=-v
15033         verstring=
15034         output_objdir=.
15035         libname=conftest
15036         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15037         allow_undefined_flag_CXX=
15038         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15039   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15040   ac_status=$?
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); }
15043         then
15044           archive_cmds_need_lc_CXX=no
15045         else
15046           archive_cmds_need_lc_CXX=yes
15047         fi
15048         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15049       else
15050         cat conftest.err 1>&5
15051       fi
15052       $RM conftest*
15053       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15054 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15055       ;;
15056     esac
15057   fi
15058   ;;
15059 esac
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15125 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15126
15127 library_names_spec=
15128 libname_spec='lib$name'
15129 soname_spec=
15130 shrext_cmds=".so"
15131 postinstall_cmds=
15132 postuninstall_cmds=
15133 finish_cmds=
15134 finish_eval=
15135 shlibpath_var=
15136 shlibpath_overrides_runpath=unknown
15137 version_type=none
15138 dynamic_linker="$host_os ld.so"
15139 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15140 need_lib_prefix=unknown
15141 hardcode_into_libs=no
15142
15143 # when you set need_version to no, make sure it does not cause -set_version
15144 # flags to be left without arguments
15145 need_version=unknown
15146
15147 case $host_os in
15148 aix3*)
15149   version_type=linux
15150   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15151   shlibpath_var=LIBPATH
15152
15153   # AIX 3 has no versioning support, so we append a major version to the name.
15154   soname_spec='${libname}${release}${shared_ext}$major'
15155   ;;
15156
15157 aix[4-9]*)
15158   version_type=linux
15159   need_lib_prefix=no
15160   need_version=no
15161   hardcode_into_libs=yes
15162   if test "$host_cpu" = ia64; then
15163     # AIX 5 supports IA64
15164     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15165     shlibpath_var=LD_LIBRARY_PATH
15166   else
15167     # With GCC up to 2.95.x, collect2 would create an import file
15168     # for dependence libraries.  The import file would start with
15169     # the line `#! .'.  This would cause the generated library to
15170     # depend on `.', always an invalid library.  This was fixed in
15171     # development snapshots of GCC prior to 3.0.
15172     case $host_os in
15173       aix4 | aix4.[01] | aix4.[01].*)
15174       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15175            echo ' yes '
15176            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15177         :
15178       else
15179         can_build_shared=no
15180       fi
15181       ;;
15182     esac
15183     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15184     # soname into executable. Probably we can add versioning support to
15185     # collect2, so additional links can be useful in future.
15186     if test "$aix_use_runtimelinking" = yes; then
15187       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15188       # instead of lib<name>.a to let people know that these are not
15189       # typical AIX shared libraries.
15190       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191     else
15192       # We preserve .a as extension for shared libraries through AIX4.2
15193       # and later when we are not doing run time linking.
15194       library_names_spec='${libname}${release}.a $libname.a'
15195       soname_spec='${libname}${release}${shared_ext}$major'
15196     fi
15197     shlibpath_var=LIBPATH
15198   fi
15199   ;;
15200
15201 amigaos*)
15202   case $host_cpu in
15203   powerpc)
15204     # Since July 2007 AmigaOS4 officially supports .so libraries.
15205     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15207     ;;
15208   m68k)
15209     library_names_spec='$libname.ixlibrary $libname.a'
15210     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15211     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'
15212     ;;
15213   esac
15214   ;;
15215
15216 beos*)
15217   library_names_spec='${libname}${shared_ext}'
15218   dynamic_linker="$host_os ld.so"
15219   shlibpath_var=LIBRARY_PATH
15220   ;;
15221
15222 bsdi[45]*)
15223   version_type=linux
15224   need_version=no
15225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226   soname_spec='${libname}${release}${shared_ext}$major'
15227   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15228   shlibpath_var=LD_LIBRARY_PATH
15229   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15230   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15231   # the default ld.so.conf also contains /usr/contrib/lib and
15232   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15233   # libtool to hard-code these into programs
15234   ;;
15235
15236 cygwin* | mingw* | pw32* | cegcc*)
15237   version_type=windows
15238   shrext_cmds=".dll"
15239   need_version=no
15240   need_lib_prefix=no
15241
15242   case $GCC,$host_os in
15243   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15244     library_names_spec='$libname.dll.a'
15245     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15246     postinstall_cmds='base_file=`basename \${file}`~
15247       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15248       dldir=$destdir/`dirname \$dlpath`~
15249       test -d \$dldir || mkdir -p \$dldir~
15250       $install_prog $dir/$dlname \$dldir/$dlname~
15251       chmod a+x \$dldir/$dlname~
15252       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15253         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15254       fi'
15255     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15256       dlpath=$dir/\$dldll~
15257        $RM \$dlpath'
15258     shlibpath_overrides_runpath=yes
15259
15260     case $host_os in
15261     cygwin*)
15262       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15263       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15264       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15265       ;;
15266     mingw* | cegcc*)
15267       # MinGW DLLs use traditional 'lib' prefix
15268       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15269       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15270       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15271         # It is most probably a Windows format PATH printed by
15272         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15273         # path with ; separators, and with drive letters. We can handle the
15274         # drive letters (cygwin fileutils understands them), so leave them,
15275         # especially as we might pass files found there to a mingw objdump,
15276         # which wouldn't understand a cygwinified path. Ahh.
15277         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15278       else
15279         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15280       fi
15281       ;;
15282     pw32*)
15283       # pw32 DLLs use 'pw' prefix rather than 'lib'
15284       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15285       ;;
15286     esac
15287     ;;
15288
15289   *)
15290     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15291     ;;
15292   esac
15293   dynamic_linker='Win32 ld.exe'
15294   # FIXME: first we should search . and the directory the executable is in
15295   shlibpath_var=PATH
15296   ;;
15297
15298 darwin* | rhapsody*)
15299   dynamic_linker="$host_os dyld"
15300   version_type=darwin
15301   need_lib_prefix=no
15302   need_version=no
15303   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15304   soname_spec='${libname}${release}${major}$shared_ext'
15305   shlibpath_overrides_runpath=yes
15306   shlibpath_var=DYLD_LIBRARY_PATH
15307   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15308
15309   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15310   ;;
15311
15312 dgux*)
15313   version_type=linux
15314   need_lib_prefix=no
15315   need_version=no
15316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15317   soname_spec='${libname}${release}${shared_ext}$major'
15318   shlibpath_var=LD_LIBRARY_PATH
15319   ;;
15320
15321 freebsd1*)
15322   dynamic_linker=no
15323   ;;
15324
15325 freebsd* | dragonfly*)
15326   # DragonFly does not have aout.  When/if they implement a new
15327   # versioning mechanism, adjust this.
15328   if test -x /usr/bin/objformat; then
15329     objformat=`/usr/bin/objformat`
15330   else
15331     case $host_os in
15332     freebsd[123]*) objformat=aout ;;
15333     *) objformat=elf ;;
15334     esac
15335   fi
15336   version_type=freebsd-$objformat
15337   case $version_type in
15338     freebsd-elf*)
15339       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15340       need_version=no
15341       need_lib_prefix=no
15342       ;;
15343     freebsd-*)
15344       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15345       need_version=yes
15346       ;;
15347   esac
15348   shlibpath_var=LD_LIBRARY_PATH
15349   case $host_os in
15350   freebsd2*)
15351     shlibpath_overrides_runpath=yes
15352     ;;
15353   freebsd3.[01]* | freebsdelf3.[01]*)
15354     shlibpath_overrides_runpath=yes
15355     hardcode_into_libs=yes
15356     ;;
15357   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15358   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15359     shlibpath_overrides_runpath=no
15360     hardcode_into_libs=yes
15361     ;;
15362   *) # from 4.6 on, and DragonFly
15363     shlibpath_overrides_runpath=yes
15364     hardcode_into_libs=yes
15365     ;;
15366   esac
15367   ;;
15368
15369 gnu*)
15370   version_type=linux
15371   need_lib_prefix=no
15372   need_version=no
15373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15374   soname_spec='${libname}${release}${shared_ext}$major'
15375   shlibpath_var=LD_LIBRARY_PATH
15376   hardcode_into_libs=yes
15377   ;;
15378
15379 hpux9* | hpux10* | hpux11*)
15380   # Give a soname corresponding to the major version so that dld.sl refuses to
15381   # link against other versions.
15382   version_type=sunos
15383   need_lib_prefix=no
15384   need_version=no
15385   case $host_cpu in
15386   ia64*)
15387     shrext_cmds='.so'
15388     hardcode_into_libs=yes
15389     dynamic_linker="$host_os dld.so"
15390     shlibpath_var=LD_LIBRARY_PATH
15391     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393     soname_spec='${libname}${release}${shared_ext}$major'
15394     if test "X$HPUX_IA64_MODE" = X32; then
15395       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15396     else
15397       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15398     fi
15399     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15400     ;;
15401   hppa*64*)
15402     shrext_cmds='.sl'
15403     hardcode_into_libs=yes
15404     dynamic_linker="$host_os dld.sl"
15405     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15406     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408     soname_spec='${libname}${release}${shared_ext}$major'
15409     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15410     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15411     ;;
15412   *)
15413     shrext_cmds='.sl'
15414     dynamic_linker="$host_os dld.sl"
15415     shlibpath_var=SHLIB_PATH
15416     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418     soname_spec='${libname}${release}${shared_ext}$major'
15419     ;;
15420   esac
15421   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15422   postinstall_cmds='chmod 555 $lib'
15423   ;;
15424
15425 interix[3-9]*)
15426   version_type=linux
15427   need_lib_prefix=no
15428   need_version=no
15429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15430   soname_spec='${libname}${release}${shared_ext}$major'
15431   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15432   shlibpath_var=LD_LIBRARY_PATH
15433   shlibpath_overrides_runpath=no
15434   hardcode_into_libs=yes
15435   ;;
15436
15437 irix5* | irix6* | nonstopux*)
15438   case $host_os in
15439     nonstopux*) version_type=nonstopux ;;
15440     *)
15441         if test "$lt_cv_prog_gnu_ld" = yes; then
15442                 version_type=linux
15443         else
15444                 version_type=irix
15445         fi ;;
15446   esac
15447   need_lib_prefix=no
15448   need_version=no
15449   soname_spec='${libname}${release}${shared_ext}$major'
15450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15451   case $host_os in
15452   irix5* | nonstopux*)
15453     libsuff= shlibsuff=
15454     ;;
15455   *)
15456     case $LD in # libtool.m4 will add one of these switches to LD
15457     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15458       libsuff= shlibsuff= libmagic=32-bit;;
15459     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15460       libsuff=32 shlibsuff=N32 libmagic=N32;;
15461     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15462       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15463     *) libsuff= shlibsuff= libmagic=never-match;;
15464     esac
15465     ;;
15466   esac
15467   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15468   shlibpath_overrides_runpath=no
15469   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15470   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15471   hardcode_into_libs=yes
15472   ;;
15473
15474 # No shared lib support for Linux oldld, aout, or coff.
15475 linux*oldld* | linux*aout* | linux*coff*)
15476   dynamic_linker=no
15477   ;;
15478
15479 # This must be Linux ELF.
15480 linux* | k*bsd*-gnu)
15481   version_type=linux
15482   need_lib_prefix=no
15483   need_version=no
15484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485   soname_spec='${libname}${release}${shared_ext}$major'
15486   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15487   shlibpath_var=LD_LIBRARY_PATH
15488   shlibpath_overrides_runpath=no
15489   # Some binutils ld are patched to set DT_RUNPATH
15490   save_LDFLAGS=$LDFLAGS
15491   save_libdir=$libdir
15492   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15493        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15494   cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h.  */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h.  */
15500
15501 int
15502 main ()
15503 {
15504
15505   ;
15506   return 0;
15507 }
15508 _ACEOF
15509 rm -f conftest.$ac_objext conftest$ac_exeext
15510 if { (ac_try="$ac_link"
15511 case "(($ac_try" in
15512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513   *) ac_try_echo=$ac_try;;
15514 esac
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516   (eval "$ac_link") 2>conftest.er1
15517   ac_status=$?
15518   grep -v '^ *+' conftest.er1 >conftest.err
15519   rm -f conftest.er1
15520   cat conftest.err >&5
15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522   (exit $ac_status); } && {
15523          test -z "$ac_cxx_werror_flag" ||
15524          test ! -s conftest.err
15525        } && test -s conftest$ac_exeext &&
15526        $as_test_x conftest$ac_exeext; then
15527   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15528   shlibpath_overrides_runpath=yes
15529 fi
15530
15531 else
15532   echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15534
15535
15536 fi
15537
15538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15539       conftest$ac_exeext conftest.$ac_ext
15540   LDFLAGS=$save_LDFLAGS
15541   libdir=$save_libdir
15542
15543   # This implies no fast_install, which is unacceptable.
15544   # Some rework will be needed to allow for fast_install
15545   # before this can be enabled.
15546   hardcode_into_libs=yes
15547
15548   # Append ld.so.conf contents to the search path
15549   if test -f /etc/ld.so.conf; then
15550     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' ' '`
15551     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15552   fi
15553
15554   # We used to test for /lib/ld.so.1 and disable shared libraries on
15555   # powerpc, because MkLinux only supported shared libraries with the
15556   # GNU dynamic linker.  Since this was broken with cross compilers,
15557   # most powerpc-linux boxes support dynamic linking these days and
15558   # people can always --disable-shared, the test was removed, and we
15559   # assume the GNU/Linux dynamic linker is in use.
15560   dynamic_linker='GNU/Linux ld.so'
15561   ;;
15562
15563 netbsd*)
15564   version_type=sunos
15565   need_lib_prefix=no
15566   need_version=no
15567   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15568     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15569     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15570     dynamic_linker='NetBSD (a.out) ld.so'
15571   else
15572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15573     soname_spec='${libname}${release}${shared_ext}$major'
15574     dynamic_linker='NetBSD ld.elf_so'
15575   fi
15576   shlibpath_var=LD_LIBRARY_PATH
15577   shlibpath_overrides_runpath=yes
15578   hardcode_into_libs=yes
15579   ;;
15580
15581 newsos6)
15582   version_type=linux
15583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15584   shlibpath_var=LD_LIBRARY_PATH
15585   shlibpath_overrides_runpath=yes
15586   ;;
15587
15588 *nto* | *qnx*)
15589   version_type=qnx
15590   need_lib_prefix=no
15591   need_version=no
15592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593   soname_spec='${libname}${release}${shared_ext}$major'
15594   shlibpath_var=LD_LIBRARY_PATH
15595   shlibpath_overrides_runpath=no
15596   hardcode_into_libs=yes
15597   dynamic_linker='ldqnx.so'
15598   ;;
15599
15600 openbsd*)
15601   version_type=sunos
15602   sys_lib_dlsearch_path_spec="/usr/lib"
15603   need_lib_prefix=no
15604   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15605   case $host_os in
15606     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15607     *)                          need_version=no  ;;
15608   esac
15609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15610   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15611   shlibpath_var=LD_LIBRARY_PATH
15612   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15613     case $host_os in
15614       openbsd2.[89] | openbsd2.[89].*)
15615         shlibpath_overrides_runpath=no
15616         ;;
15617       *)
15618         shlibpath_overrides_runpath=yes
15619         ;;
15620       esac
15621   else
15622     shlibpath_overrides_runpath=yes
15623   fi
15624   ;;
15625
15626 os2*)
15627   libname_spec='$name'
15628   shrext_cmds=".dll"
15629   need_lib_prefix=no
15630   library_names_spec='$libname${shared_ext} $libname.a'
15631   dynamic_linker='OS/2 ld.exe'
15632   shlibpath_var=LIBPATH
15633   ;;
15634
15635 osf3* | osf4* | osf5*)
15636   version_type=osf
15637   need_lib_prefix=no
15638   need_version=no
15639   soname_spec='${libname}${release}${shared_ext}$major'
15640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641   shlibpath_var=LD_LIBRARY_PATH
15642   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15643   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15644   ;;
15645
15646 rdos*)
15647   dynamic_linker=no
15648   ;;
15649
15650 solaris*)
15651   version_type=linux
15652   need_lib_prefix=no
15653   need_version=no
15654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655   soname_spec='${libname}${release}${shared_ext}$major'
15656   shlibpath_var=LD_LIBRARY_PATH
15657   shlibpath_overrides_runpath=yes
15658   hardcode_into_libs=yes
15659   # ldd complains unless libraries are executable
15660   postinstall_cmds='chmod +x $lib'
15661   ;;
15662
15663 sunos4*)
15664   version_type=sunos
15665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15666   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15667   shlibpath_var=LD_LIBRARY_PATH
15668   shlibpath_overrides_runpath=yes
15669   if test "$with_gnu_ld" = yes; then
15670     need_lib_prefix=no
15671   fi
15672   need_version=yes
15673   ;;
15674
15675 sysv4 | sysv4.3*)
15676   version_type=linux
15677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678   soname_spec='${libname}${release}${shared_ext}$major'
15679   shlibpath_var=LD_LIBRARY_PATH
15680   case $host_vendor in
15681     sni)
15682       shlibpath_overrides_runpath=no
15683       need_lib_prefix=no
15684       runpath_var=LD_RUN_PATH
15685       ;;
15686     siemens)
15687       need_lib_prefix=no
15688       ;;
15689     motorola)
15690       need_lib_prefix=no
15691       need_version=no
15692       shlibpath_overrides_runpath=no
15693       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15694       ;;
15695   esac
15696   ;;
15697
15698 sysv4*MP*)
15699   if test -d /usr/nec ;then
15700     version_type=linux
15701     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15702     soname_spec='$libname${shared_ext}.$major'
15703     shlibpath_var=LD_LIBRARY_PATH
15704   fi
15705   ;;
15706
15707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15708   version_type=freebsd-elf
15709   need_lib_prefix=no
15710   need_version=no
15711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15712   soname_spec='${libname}${release}${shared_ext}$major'
15713   shlibpath_var=LD_LIBRARY_PATH
15714   shlibpath_overrides_runpath=yes
15715   hardcode_into_libs=yes
15716   if test "$with_gnu_ld" = yes; then
15717     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15718   else
15719     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15720     case $host_os in
15721       sco3.2v5*)
15722         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15723         ;;
15724     esac
15725   fi
15726   sys_lib_dlsearch_path_spec='/usr/lib'
15727   ;;
15728
15729 tpf*)
15730   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15731   version_type=linux
15732   need_lib_prefix=no
15733   need_version=no
15734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15735   shlibpath_var=LD_LIBRARY_PATH
15736   shlibpath_overrides_runpath=no
15737   hardcode_into_libs=yes
15738   ;;
15739
15740 uts4*)
15741   version_type=linux
15742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743   soname_spec='${libname}${release}${shared_ext}$major'
15744   shlibpath_var=LD_LIBRARY_PATH
15745   ;;
15746
15747 *)
15748   dynamic_linker=no
15749   ;;
15750 esac
15751 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15752 echo "${ECHO_T}$dynamic_linker" >&6; }
15753 test "$dynamic_linker" = no && can_build_shared=no
15754
15755 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15756 if test "$GCC" = yes; then
15757   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15758 fi
15759
15760 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15761   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15762 fi
15763 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15764   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15765 fi
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15803 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15804 hardcode_action_CXX=
15805 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15806    test -n "$runpath_var_CXX" ||
15807    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15808
15809   # We can hardcode non-existent directories.
15810   if test "$hardcode_direct_CXX" != no &&
15811      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15812      # have to relink, otherwise we might link with an installed library
15813      # when we should be linking with a yet-to-be-installed one
15814      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15815      test "$hardcode_minus_L_CXX" != no; then
15816     # Linking always hardcodes the temporary library directory.
15817     hardcode_action_CXX=relink
15818   else
15819     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15820     hardcode_action_CXX=immediate
15821   fi
15822 else
15823   # We cannot hardcode anything, or else we can only hardcode existing
15824   # directories.
15825   hardcode_action_CXX=unsupported
15826 fi
15827 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15828 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15829
15830 if test "$hardcode_action_CXX" = relink ||
15831    test "$inherit_rpath_CXX" = yes; then
15832   # Fast installation is not supported
15833   enable_fast_install=no
15834 elif test "$shlibpath_overrides_runpath" = yes ||
15835      test "$enable_shared" = no; then
15836   # Fast installation is not necessary
15837   enable_fast_install=needless
15838 fi
15839
15840
15841
15842
15843
15844
15845
15846   fi # test -n "$compiler"
15847
15848   CC=$lt_save_CC
15849   LDCXX=$LD
15850   LD=$lt_save_LD
15851   GCC=$lt_save_GCC
15852   with_gnu_ld=$lt_save_with_gnu_ld
15853   lt_cv_path_LDCXX=$lt_cv_path_LD
15854   lt_cv_path_LD=$lt_save_path_LD
15855   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15856   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15857 fi # test "$_lt_caught_CXX_error" != yes
15858
15859 ac_ext=c
15860 ac_cpp='$CPP $CPPFLAGS'
15861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877         ac_config_commands="$ac_config_commands libtool"
15878
15879
15880
15881
15882 # Only expand once:
15883
15884
15885
15886
15887 if test x$use_libtool != xno; then
15888    DEFAULT_OBJECT_TYPE=".lo"
15889    DEFAULT_ARCHIVE_TYPE=".la"
15890    DEFAULT_SHARED_OBJECT_TYPE=".la"
15891    LIBTOOL="\$(LIBTOOL)"
15892    LIBTOOL_INSTALL_TARGET="libtool-install"
15893    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15894    LIBTOOL_CLEAN_TARGET="libtool-clean"
15895    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15896 else
15897    DEFAULT_OBJECT_TYPE=".o"
15898    DEFAULT_ARCHIVE_TYPE=".a"
15899    DEFAULT_SHARED_OBJECT_TYPE=".so"
15900    LIBTOOL="# \$(LIBTOOL)"
15901    LIBTOOL_INSTALL_TARGET=""
15902    LIBTOOL_UNINSTALL_TARGET=""
15903    LIBTOOL_CLEAN_TARGET=""
15904    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15905 fi
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916 # Check whether --enable-includes was given.
15917 if test "${enable_includes+set}" = set; then
15918   enableval=$enable_includes;
15919        if test x$enableval = xyes; then
15920           install_includes=yes
15921        fi
15922
15923
15924 fi
15925
15926
15927
15928 if test x$use_libtool != xno -a x$install_includes = xyes; then
15929    INCLUDE_INSTALL_TARGET="install-includes"
15930    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15931 else
15932    INCLUDE_INSTALL_TARGET=""
15933    INCLUDE_UNINSTALL_TARGET=""
15934 fi
15935
15936
15937
15938
15939 { echo "$as_me:$LINENO: checking host system type" >&5
15940 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15941 if test "${ac_cv_host+set}" = set; then
15942   echo $ECHO_N "(cached) $ECHO_C" >&6
15943 else
15944   if test "x$host_alias" = x; then
15945   ac_cv_host=$ac_cv_build
15946 else
15947   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15948     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15949 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15950    { (exit 1); exit 1; }; }
15951 fi
15952
15953 fi
15954 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15955 echo "${ECHO_T}$ac_cv_host" >&6; }
15956 case $ac_cv_host in
15957 *-*-*) ;;
15958 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15959 echo "$as_me: error: invalid value of canonical host" >&2;}
15960    { (exit 1); exit 1; }; };;
15961 esac
15962 host=$ac_cv_host
15963 ac_save_IFS=$IFS; IFS='-'
15964 set x $ac_cv_host
15965 shift
15966 host_cpu=$1
15967 host_vendor=$2
15968 shift; shift
15969 # Remember, the first character of IFS is used to create $*,
15970 # except with old shells:
15971 host_os=$*
15972 IFS=$ac_save_IFS
15973 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15974
15975
15976 case $host_os in
15977   *cygwin* ) CYGWIN=yes;;
15978          * ) CYGWIN=no;;
15979 esac
15980
15981 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15982 then
15983
15984
15985 if $TRUEPRG; then
15986   HAVE_SUN_OS_TRUE=
15987   HAVE_SUN_OS_FALSE='#'
15988 else
15989   HAVE_SUN_OS_TRUE='#'
15990   HAVE_SUN_OS_FALSE=
15991 fi
15992         cat >>confdefs.h <<\_ACEOF
15993 #define HAVE_SUN_OS 1
15994 _ACEOF
15995
15996 else
15997
15998
15999 if $FALSEPRG; then
16000   HAVE_SUN_OS_TRUE=
16001   HAVE_SUN_OS_FALSE='#'
16002 else
16003   HAVE_SUN_OS_TRUE='#'
16004   HAVE_SUN_OS_FALSE=
16005 fi
16006 fi
16007
16008 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16009 then
16010
16011
16012 if $TRUEPRG; then
16013   HAVE_OSF1_OS_TRUE=
16014   HAVE_OSF1_OS_FALSE='#'
16015 else
16016   HAVE_OSF1_OS_TRUE='#'
16017   HAVE_OSF1_OS_FALSE=
16018 fi
16019         cat >>confdefs.h <<\_ACEOF
16020 #define HAVE_OSF1_OS 1
16021 _ACEOF
16022
16023 else
16024
16025
16026 if $FALSEPRG; then
16027   HAVE_OSF1_OS_TRUE=
16028   HAVE_OSF1_OS_FALSE='#'
16029 else
16030   HAVE_OSF1_OS_TRUE='#'
16031   HAVE_OSF1_OS_FALSE=
16032 fi
16033 fi
16034
16035 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16036 then
16037
16038
16039 if $TRUEPRG; then
16040   HAVE_AIX_OS_TRUE=
16041   HAVE_AIX_OS_FALSE='#'
16042 else
16043   HAVE_AIX_OS_TRUE='#'
16044   HAVE_AIX_OS_FALSE=
16045 fi
16046         cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_AIX_OS 1
16048 _ACEOF
16049
16050 else
16051
16052
16053 if $FALSEPRG; then
16054   HAVE_AIX_OS_TRUE=
16055   HAVE_AIX_OS_FALSE='#'
16056 else
16057   HAVE_AIX_OS_TRUE='#'
16058   HAVE_AIX_OS_FALSE=
16059 fi
16060 fi
16061
16062 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16063 then
16064
16065
16066 if $TRUEPRG; then
16067   HAVE_HPUX_OS_TRUE=
16068   HAVE_HPUX_OS_FALSE='#'
16069 else
16070   HAVE_HPUX_OS_TRUE='#'
16071   HAVE_HPUX_OS_FALSE=
16072 fi
16073         cat >>confdefs.h <<\_ACEOF
16074 #define HAVE_HPUX_OS 1
16075 _ACEOF
16076
16077 else
16078
16079
16080 if $FALSEPRG; then
16081   HAVE_HPUX_OS_TRUE=
16082   HAVE_HPUX_OS_FALSE='#'
16083 else
16084   HAVE_HPUX_OS_TRUE='#'
16085   HAVE_HPUX_OS_FALSE=
16086 fi
16087 fi
16088
16089 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16090 then
16091
16092
16093 if $TRUEPRG; then
16094   HAVE_LINUX_OS_TRUE=
16095   HAVE_LINUX_OS_FALSE='#'
16096 else
16097   HAVE_LINUX_OS_TRUE='#'
16098   HAVE_LINUX_OS_FALSE=
16099 fi
16100         cat >>confdefs.h <<\_ACEOF
16101 #define HAVE_LINUX_OS 1
16102 _ACEOF
16103
16104 else
16105
16106
16107 if $FALSEPRG; then
16108   HAVE_LINUX_OS_TRUE=
16109   HAVE_LINUX_OS_FALSE='#'
16110 else
16111   HAVE_LINUX_OS_TRUE='#'
16112   HAVE_LINUX_OS_FALSE=
16113 fi
16114 fi
16115
16116 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16117 then
16118
16119
16120 if $TRUEPRG; then
16121   HAVE_FREEBSD_OS_TRUE=
16122   HAVE_FREEBSD_OS_FALSE='#'
16123 else
16124   HAVE_FREEBSD_OS_TRUE='#'
16125   HAVE_FREEBSD_OS_FALSE=
16126 fi
16127         cat >>confdefs.h <<\_ACEOF
16128 #define HAVE_FREEBSD_OS 1
16129 _ACEOF
16130
16131 else
16132
16133
16134 if $FALSEPRG; then
16135   HAVE_FREEBSD_OS_TRUE=
16136   HAVE_FREEBSD_OS_FALSE='#'
16137 else
16138   HAVE_FREEBSD_OS_TRUE='#'
16139   HAVE_FREEBSD_OS_FALSE=
16140 fi
16141 fi
16142
16143 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16144 then
16145
16146
16147 if $TRUEPRG; then
16148   HAVE_NETBSD_OS_TRUE=
16149   HAVE_NETBSD_OS_FALSE='#'
16150 else
16151   HAVE_NETBSD_OS_TRUE='#'
16152   HAVE_NETBSD_OS_FALSE=
16153 fi
16154         cat >>confdefs.h <<\_ACEOF
16155 #define HAVE_NETBSD_OS 1
16156 _ACEOF
16157
16158 else
16159
16160
16161 if $FALSEPRG; then
16162   HAVE_NETBSD_OS_TRUE=
16163   HAVE_NETBSD_OS_FALSE='#'
16164 else
16165   HAVE_NETBSD_OS_TRUE='#'
16166   HAVE_NETBSD_OS_FALSE=
16167 fi
16168 fi
16169
16170 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16171 then
16172
16173
16174 if $TRUEPRG; then
16175   HAVE_OPENBSD_OS_TRUE=
16176   HAVE_OPENBSD_OS_FALSE='#'
16177 else
16178   HAVE_OPENBSD_OS_TRUE='#'
16179   HAVE_OPENBSD_OS_FALSE=
16180 fi
16181         cat >>confdefs.h <<\_ACEOF
16182 #define HAVE_OPENBSD_OS 1
16183 _ACEOF
16184
16185 else
16186
16187
16188 if $FALSEPRG; then
16189   HAVE_OPENBSD_OS_TRUE=
16190   HAVE_OPENBSD_OS_FALSE='#'
16191 else
16192   HAVE_OPENBSD_OS_TRUE='#'
16193   HAVE_OPENBSD_OS_FALSE=
16194 fi
16195 fi
16196
16197 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16198 then
16199
16200
16201 if $TRUEPRG; then
16202   HAVE_BSDI_OS_TRUE=
16203   HAVE_BSDI_OS_FALSE='#'
16204 else
16205   HAVE_BSDI_OS_TRUE='#'
16206   HAVE_BSDI_OS_FALSE=
16207 fi
16208         cat >>confdefs.h <<\_ACEOF
16209 #define HAVE_BSDI_OS 1
16210 _ACEOF
16211
16212 else
16213
16214
16215 if $FALSEPRG; then
16216   HAVE_BSDI_OS_TRUE=
16217   HAVE_BSDI_OS_FALSE='#'
16218 else
16219   HAVE_BSDI_OS_TRUE='#'
16220   HAVE_BSDI_OS_FALSE=
16221 fi
16222 fi
16223
16224 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16225 then
16226
16227
16228 if $TRUEPRG; then
16229   HAVE_SGI_OS_TRUE=
16230   HAVE_SGI_OS_FALSE='#'
16231 else
16232   HAVE_SGI_OS_TRUE='#'
16233   HAVE_SGI_OS_FALSE=
16234 fi
16235         cat >>confdefs.h <<\_ACEOF
16236 #define HAVE_SGI_OS 1
16237 _ACEOF
16238
16239 else
16240
16241
16242 if $FALSEPRG; then
16243   HAVE_SGI_OS_TRUE=
16244   HAVE_SGI_OS_FALSE='#'
16245 else
16246   HAVE_SGI_OS_TRUE='#'
16247   HAVE_SGI_OS_FALSE=
16248 fi
16249 fi
16250
16251 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16252 then
16253
16254
16255 if $TRUEPRG; then
16256   HAVE_IRIX_OS_TRUE=
16257   HAVE_IRIX_OS_FALSE='#'
16258 else
16259   HAVE_IRIX_OS_TRUE='#'
16260   HAVE_IRIX_OS_FALSE=
16261 fi
16262         cat >>confdefs.h <<\_ACEOF
16263 #define HAVE_IRIX_OS 1
16264 _ACEOF
16265
16266 else
16267
16268
16269 if $FALSEPRG; then
16270   HAVE_IRIX_OS_TRUE=
16271   HAVE_IRIX_OS_FALSE='#'
16272 else
16273   HAVE_IRIX_OS_TRUE='#'
16274   HAVE_IRIX_OS_FALSE=
16275 fi
16276 fi
16277
16278 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16279 then
16280
16281
16282 if $TRUEPRG; then
16283   HAVE_DARWIN_OS_TRUE=
16284   HAVE_DARWIN_OS_FALSE='#'
16285 else
16286   HAVE_DARWIN_OS_TRUE='#'
16287   HAVE_DARWIN_OS_FALSE=
16288 fi
16289     cat >>confdefs.h <<\_ACEOF
16290 #define HAVE_DARWIN_OS 1
16291 _ACEOF
16292
16293 else
16294
16295
16296 if $FALSEPRG; then
16297   HAVE_DARWIN_OS_TRUE=
16298   HAVE_DARWIN_OS_FALSE='#'
16299 else
16300   HAVE_DARWIN_OS_TRUE='#'
16301   HAVE_DARWIN_OS_FALSE=
16302 fi
16303 fi
16304
16305
16306 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16307 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16308 if test "x$DISTNAME" != "x"
16309 then
16310         echo "distname set to $DISTNAME"
16311 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16312 then
16313         DISTNAME=alpha
16314 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16315 then
16316         DISTNAME=aix
16317 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16318 then
16319         DISTNAME=hpux
16320 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16321 then
16322         DISTNAME=solaris
16323 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16324 then
16325         DISTNAME=freebsd
16326 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16327 then
16328         DISTNAME=netbsd
16329 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16330 then
16331         DISTNAME=openbsd
16332 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16333 then
16334         DISTNAME=irix
16335 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16336 then
16337         DISTNAME=bsdi
16338 elif test -f /etc/SuSE-release
16339 then
16340         DISTNAME=suse
16341 elif test -d /etc/SuSEconfig
16342 then
16343         DISTNAME=suse5
16344 elif test -f /etc/mandrake-release
16345 then
16346         DISTNAME=mandrake
16347 elif test -f /etc/whitebox-release
16348 then
16349        DISTNAME=redhat
16350 elif test -f /etc/redhat-release
16351 then
16352         DISTNAME=redhat
16353 elif test -f /etc/gentoo-release
16354 then
16355         DISTNAME=gentoo
16356 elif test -f /etc/debian_version
16357 then
16358         DISTNAME=debian
16359 elif test -f /etc/slackware-version
16360 then
16361         DISTNAME=slackware
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16363 then
16364     DISTNAME=darwin
16365 elif test -f /etc/engarde-version
16366 then
16367         DISTNAME=engarde
16368 elif test "$CYGWIN" = yes
16369 then
16370         DISTNAME=cygwin
16371         cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_CYGWIN 1
16373 _ACEOF
16374
16375 else
16376         DISTNAME=unknown
16377 fi
16378 { echo "$as_me:$LINENO: result: done" >&5
16379 echo "${ECHO_T}done" >&6; }
16380
16381
16382 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16383 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16384 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16385 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16386   echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388   cat >conftest.make <<\_ACEOF
16389 SHELL = /bin/sh
16390 all:
16391         @echo '@@@%%%=$(MAKE)=@@@%%%'
16392 _ACEOF
16393 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16394 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16395   *@@@%%%=?*=@@@%%%*)
16396     eval ac_cv_prog_make_${ac_make}_set=yes;;
16397   *)
16398     eval ac_cv_prog_make_${ac_make}_set=no;;
16399 esac
16400 rm -f conftest.make
16401 fi
16402 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16403   { echo "$as_me:$LINENO: result: yes" >&5
16404 echo "${ECHO_T}yes" >&6; }
16405   SET_MAKE=
16406 else
16407   { echo "$as_me:$LINENO: result: no" >&5
16408 echo "${ECHO_T}no" >&6; }
16409   SET_MAKE="MAKE=${MAKE-make}"
16410 fi
16411
16412
16413
16414         MKINSTALLDIRS=
16415   if test -n "$ac_aux_dir"; then
16416     case "$ac_aux_dir" in
16417       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16418       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16419     esac
16420   fi
16421   if test -z "$MKINSTALLDIRS"; then
16422     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16423   fi
16424
16425
16426
16427   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16428 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16429     # Check whether --enable-nls was given.
16430 if test "${enable_nls+set}" = set; then
16431   enableval=$enable_nls; USE_NLS=$enableval
16432 else
16433   USE_NLS=yes
16434 fi
16435
16436   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16437 echo "${ECHO_T}$USE_NLS" >&6; }
16438
16439
16440
16441
16442
16443
16444 # Prepare PATH_SEPARATOR.
16445 # The user is always right.
16446 if test "${PATH_SEPARATOR+set}" != set; then
16447   echo "#! /bin/sh" >conf$$.sh
16448   echo  "exit 0"   >>conf$$.sh
16449   chmod +x conf$$.sh
16450   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16451     PATH_SEPARATOR=';'
16452   else
16453     PATH_SEPARATOR=:
16454   fi
16455   rm -f conf$$.sh
16456 fi
16457
16458 # Find out how to test for executable files. Don't use a zero-byte file,
16459 # as systems may use methods other than mode bits to determine executability.
16460 cat >conf$$.file <<_ASEOF
16461 #! /bin/sh
16462 exit 0
16463 _ASEOF
16464 chmod +x conf$$.file
16465 if test -x conf$$.file >/dev/null 2>&1; then
16466   ac_executable_p="test -x"
16467 else
16468   ac_executable_p="test -f"
16469 fi
16470 rm -f conf$$.file
16471
16472 # Extract the first word of "msgfmt", so it can be a program name with args.
16473 set dummy msgfmt; ac_word=$2
16474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16476 if test "${ac_cv_path_MSGFMT+set}" = set; then
16477   echo $ECHO_N "(cached) $ECHO_C" >&6
16478 else
16479   case "$MSGFMT" in
16480   [\\/]* | ?:[\\/]*)
16481     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16482     ;;
16483   *)
16484     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16485     for ac_dir in $PATH; do
16486       IFS="$ac_save_IFS"
16487       test -z "$ac_dir" && ac_dir=.
16488       for ac_exec_ext in '' $ac_executable_extensions; do
16489         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16490           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16491           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16492      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16493             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16494             break 2
16495           fi
16496         fi
16497       done
16498     done
16499     IFS="$ac_save_IFS"
16500   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16501     ;;
16502 esac
16503 fi
16504 MSGFMT="$ac_cv_path_MSGFMT"
16505 if test "$MSGFMT" != ":"; then
16506   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16507 echo "${ECHO_T}$MSGFMT" >&6; }
16508 else
16509   { echo "$as_me:$LINENO: result: no" >&5
16510 echo "${ECHO_T}no" >&6; }
16511 fi
16512
16513   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16514 set dummy gmsgfmt; ac_word=$2
16515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16517 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16518   echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520   case $GMSGFMT in
16521   [\\/]* | ?:[\\/]*)
16522   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16523   ;;
16524   *)
16525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16526 for as_dir in $PATH
16527 do
16528   IFS=$as_save_IFS
16529   test -z "$as_dir" && as_dir=.
16530   for ac_exec_ext in '' $ac_executable_extensions; do
16531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16532     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16534     break 2
16535   fi
16536 done
16537 done
16538 IFS=$as_save_IFS
16539
16540   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16541   ;;
16542 esac
16543 fi
16544 GMSGFMT=$ac_cv_path_GMSGFMT
16545 if test -n "$GMSGFMT"; then
16546   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16547 echo "${ECHO_T}$GMSGFMT" >&6; }
16548 else
16549   { echo "$as_me:$LINENO: result: no" >&5
16550 echo "${ECHO_T}no" >&6; }
16551 fi
16552
16553
16554
16555
16556 # Prepare PATH_SEPARATOR.
16557 # The user is always right.
16558 if test "${PATH_SEPARATOR+set}" != set; then
16559   echo "#! /bin/sh" >conf$$.sh
16560   echo  "exit 0"   >>conf$$.sh
16561   chmod +x conf$$.sh
16562   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16563     PATH_SEPARATOR=';'
16564   else
16565     PATH_SEPARATOR=:
16566   fi
16567   rm -f conf$$.sh
16568 fi
16569
16570 # Find out how to test for executable files. Don't use a zero-byte file,
16571 # as systems may use methods other than mode bits to determine executability.
16572 cat >conf$$.file <<_ASEOF
16573 #! /bin/sh
16574 exit 0
16575 _ASEOF
16576 chmod +x conf$$.file
16577 if test -x conf$$.file >/dev/null 2>&1; then
16578   ac_executable_p="test -x"
16579 else
16580   ac_executable_p="test -f"
16581 fi
16582 rm -f conf$$.file
16583
16584 # Extract the first word of "xgettext", so it can be a program name with args.
16585 set dummy xgettext; ac_word=$2
16586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16588 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16589   echo $ECHO_N "(cached) $ECHO_C" >&6
16590 else
16591   case "$XGETTEXT" in
16592   [\\/]* | ?:[\\/]*)
16593     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16594     ;;
16595   *)
16596     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16597     for ac_dir in $PATH; do
16598       IFS="$ac_save_IFS"
16599       test -z "$ac_dir" && ac_dir=.
16600       for ac_exec_ext in '' $ac_executable_extensions; do
16601         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16602           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16603           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16604      (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
16605             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16606             break 2
16607           fi
16608         fi
16609       done
16610     done
16611     IFS="$ac_save_IFS"
16612   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16613     ;;
16614 esac
16615 fi
16616 XGETTEXT="$ac_cv_path_XGETTEXT"
16617 if test "$XGETTEXT" != ":"; then
16618   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16619 echo "${ECHO_T}$XGETTEXT" >&6; }
16620 else
16621   { echo "$as_me:$LINENO: result: no" >&5
16622 echo "${ECHO_T}no" >&6; }
16623 fi
16624
16625     rm -f messages.po
16626
16627
16628 # Prepare PATH_SEPARATOR.
16629 # The user is always right.
16630 if test "${PATH_SEPARATOR+set}" != set; then
16631   echo "#! /bin/sh" >conf$$.sh
16632   echo  "exit 0"   >>conf$$.sh
16633   chmod +x conf$$.sh
16634   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16635     PATH_SEPARATOR=';'
16636   else
16637     PATH_SEPARATOR=:
16638   fi
16639   rm -f conf$$.sh
16640 fi
16641
16642 # Find out how to test for executable files. Don't use a zero-byte file,
16643 # as systems may use methods other than mode bits to determine executability.
16644 cat >conf$$.file <<_ASEOF
16645 #! /bin/sh
16646 exit 0
16647 _ASEOF
16648 chmod +x conf$$.file
16649 if test -x conf$$.file >/dev/null 2>&1; then
16650   ac_executable_p="test -x"
16651 else
16652   ac_executable_p="test -f"
16653 fi
16654 rm -f conf$$.file
16655
16656 # Extract the first word of "msgmerge", so it can be a program name with args.
16657 set dummy msgmerge; ac_word=$2
16658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16660 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16661   echo $ECHO_N "(cached) $ECHO_C" >&6
16662 else
16663   case "$MSGMERGE" in
16664   [\\/]* | ?:[\\/]*)
16665     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16666     ;;
16667   *)
16668     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16669     for ac_dir in $PATH; do
16670       IFS="$ac_save_IFS"
16671       test -z "$ac_dir" && ac_dir=.
16672       for ac_exec_ext in '' $ac_executable_extensions; do
16673         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16674           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16675           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16676             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16677             break 2
16678           fi
16679         fi
16680       done
16681     done
16682     IFS="$ac_save_IFS"
16683   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16684     ;;
16685 esac
16686 fi
16687 MSGMERGE="$ac_cv_path_MSGMERGE"
16688 if test "$MSGMERGE" != ":"; then
16689   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16690 echo "${ECHO_T}$MSGMERGE" >&6; }
16691 else
16692   { echo "$as_me:$LINENO: result: no" >&5
16693 echo "${ECHO_T}no" >&6; }
16694 fi
16695
16696
16697       if test "$GMSGFMT" != ":"; then
16698             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16699        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16700       : ;
16701     else
16702       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16703       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16704 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16705       GMSGFMT=":"
16706     fi
16707   fi
16708
16709       if test "$XGETTEXT" != ":"; then
16710             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16711        (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
16712       : ;
16713     else
16714       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16715 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16716       XGETTEXT=":"
16717     fi
16718         rm -f messages.po
16719   fi
16720
16721   ac_config_commands="$ac_config_commands default-1"
16722
16723
16724
16725       if test "X$prefix" = "XNONE"; then
16726     acl_final_prefix="$ac_default_prefix"
16727   else
16728     acl_final_prefix="$prefix"
16729   fi
16730   if test "X$exec_prefix" = "XNONE"; then
16731     acl_final_exec_prefix='${prefix}'
16732   else
16733     acl_final_exec_prefix="$exec_prefix"
16734   fi
16735   acl_save_prefix="$prefix"
16736   prefix="$acl_final_prefix"
16737   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16738   prefix="$acl_save_prefix"
16739
16740
16741 # Check whether --with-gnu-ld was given.
16742 if test "${with_gnu_ld+set}" = set; then
16743   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16744 else
16745   with_gnu_ld=no
16746 fi
16747
16748 # Prepare PATH_SEPARATOR.
16749 # The user is always right.
16750 if test "${PATH_SEPARATOR+set}" != set; then
16751   echo "#! /bin/sh" >conf$$.sh
16752   echo  "exit 0"   >>conf$$.sh
16753   chmod +x conf$$.sh
16754   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16755     PATH_SEPARATOR=';'
16756   else
16757     PATH_SEPARATOR=:
16758   fi
16759   rm -f conf$$.sh
16760 fi
16761 ac_prog=ld
16762 if test "$GCC" = yes; then
16763   # Check if gcc -print-prog-name=ld gives a path.
16764   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16765 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16766   case $host in
16767   *-*-mingw*)
16768     # gcc leaves a trailing carriage return which upsets mingw
16769     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16770   *)
16771     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16772   esac
16773   case $ac_prog in
16774     # Accept absolute paths.
16775     [\\/]* | [A-Za-z]:[\\/]*)
16776       re_direlt='/[^/][^/]*/\.\./'
16777       # Canonicalize the path of ld
16778       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16779       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16780         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16781       done
16782       test -z "$LD" && LD="$ac_prog"
16783       ;;
16784   "")
16785     # If it fails, then pretend we aren't using GCC.
16786     ac_prog=ld
16787     ;;
16788   *)
16789     # If it is relative, then search for the first ld in PATH.
16790     with_gnu_ld=unknown
16791     ;;
16792   esac
16793 elif test "$with_gnu_ld" = yes; then
16794   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16795 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16796 else
16797   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16798 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16799 fi
16800 if test "${acl_cv_path_LD+set}" = set; then
16801   echo $ECHO_N "(cached) $ECHO_C" >&6
16802 else
16803   if test -z "$LD"; then
16804   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16805   for ac_dir in $PATH; do
16806     test -z "$ac_dir" && ac_dir=.
16807     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16808       acl_cv_path_LD="$ac_dir/$ac_prog"
16809       # Check to see if the program is GNU ld.  I'd rather use --version,
16810       # but apparently some GNU ld's only accept -v.
16811       # Break only if it was the GNU/non-GNU ld that we prefer.
16812       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16813       *GNU* | *'with BFD'*)
16814         test "$with_gnu_ld" != no && break ;;
16815       *)
16816         test "$with_gnu_ld" != yes && break ;;
16817       esac
16818     fi
16819   done
16820   IFS="$ac_save_ifs"
16821 else
16822   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16823 fi
16824 fi
16825
16826 LD="$acl_cv_path_LD"
16827 if test -n "$LD"; then
16828   { echo "$as_me:$LINENO: result: $LD" >&5
16829 echo "${ECHO_T}$LD" >&6; }
16830 else
16831   { echo "$as_me:$LINENO: result: no" >&5
16832 echo "${ECHO_T}no" >&6; }
16833 fi
16834 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16835 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16836    { (exit 1); exit 1; }; }
16837 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16838 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16839 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16840   echo $ECHO_N "(cached) $ECHO_C" >&6
16841 else
16842   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16843 case `$LD -v 2>&1 </dev/null` in
16844 *GNU* | *'with BFD'*)
16845   acl_cv_prog_gnu_ld=yes ;;
16846 *)
16847   acl_cv_prog_gnu_ld=no ;;
16848 esac
16849 fi
16850 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16851 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16852 with_gnu_ld=$acl_cv_prog_gnu_ld
16853
16854
16855
16856
16857                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16858 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16859 if test "${acl_cv_rpath+set}" = set; then
16860   echo $ECHO_N "(cached) $ECHO_C" >&6
16861 else
16862
16863     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16864     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16865     . ./conftest.sh
16866     rm -f ./conftest.sh
16867     acl_cv_rpath=done
16868
16869 fi
16870 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16871 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16872   wl="$acl_cv_wl"
16873   libext="$acl_cv_libext"
16874   shlibext="$acl_cv_shlibext"
16875   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16876   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16877   hardcode_direct="$acl_cv_hardcode_direct"
16878   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16879     # Check whether --enable-rpath was given.
16880 if test "${enable_rpath+set}" = set; then
16881   enableval=$enable_rpath; :
16882 else
16883   enable_rpath=yes
16884 fi
16885
16886
16887
16888
16889
16890
16891
16892
16893     use_additional=yes
16894
16895   acl_save_prefix="$prefix"
16896   prefix="$acl_final_prefix"
16897   acl_save_exec_prefix="$exec_prefix"
16898   exec_prefix="$acl_final_exec_prefix"
16899
16900     eval additional_includedir=\"$includedir\"
16901     eval additional_libdir=\"$libdir\"
16902
16903   exec_prefix="$acl_save_exec_prefix"
16904   prefix="$acl_save_prefix"
16905
16906
16907 # Check whether --with-libiconv-prefix was given.
16908 if test "${with_libiconv_prefix+set}" = set; then
16909   withval=$with_libiconv_prefix;
16910     if test "X$withval" = "Xno"; then
16911       use_additional=no
16912     else
16913       if test "X$withval" = "X"; then
16914
16915   acl_save_prefix="$prefix"
16916   prefix="$acl_final_prefix"
16917   acl_save_exec_prefix="$exec_prefix"
16918   exec_prefix="$acl_final_exec_prefix"
16919
16920           eval additional_includedir=\"$includedir\"
16921           eval additional_libdir=\"$libdir\"
16922
16923   exec_prefix="$acl_save_exec_prefix"
16924   prefix="$acl_save_prefix"
16925
16926       else
16927         additional_includedir="$withval/include"
16928         additional_libdir="$withval/lib"
16929       fi
16930     fi
16931
16932 fi
16933
16934       LIBICONV=
16935   LTLIBICONV=
16936   INCICONV=
16937   rpathdirs=
16938   ltrpathdirs=
16939   names_already_handled=
16940   names_next_round='iconv '
16941   while test -n "$names_next_round"; do
16942     names_this_round="$names_next_round"
16943     names_next_round=
16944     for name in $names_this_round; do
16945       already_handled=
16946       for n in $names_already_handled; do
16947         if test "$n" = "$name"; then
16948           already_handled=yes
16949           break
16950         fi
16951       done
16952       if test -z "$already_handled"; then
16953         names_already_handled="$names_already_handled $name"
16954                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16955         eval value=\"\$HAVE_LIB$uppername\"
16956         if test -n "$value"; then
16957           if test "$value" = yes; then
16958             eval value=\"\$LIB$uppername\"
16959             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16960             eval value=\"\$LTLIB$uppername\"
16961             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16962           else
16963                                     :
16964           fi
16965         else
16966                               found_dir=
16967           found_la=
16968           found_so=
16969           found_a=
16970           if test $use_additional = yes; then
16971             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16972               found_dir="$additional_libdir"
16973               found_so="$additional_libdir/lib$name.$shlibext"
16974               if test -f "$additional_libdir/lib$name.la"; then
16975                 found_la="$additional_libdir/lib$name.la"
16976               fi
16977             else
16978               if test -f "$additional_libdir/lib$name.$libext"; then
16979                 found_dir="$additional_libdir"
16980                 found_a="$additional_libdir/lib$name.$libext"
16981                 if test -f "$additional_libdir/lib$name.la"; then
16982                   found_la="$additional_libdir/lib$name.la"
16983                 fi
16984               fi
16985             fi
16986           fi
16987           if test "X$found_dir" = "X"; then
16988             for x in $LDFLAGS $LTLIBICONV; do
16989
16990   acl_save_prefix="$prefix"
16991   prefix="$acl_final_prefix"
16992   acl_save_exec_prefix="$exec_prefix"
16993   exec_prefix="$acl_final_exec_prefix"
16994   eval x=\"$x\"
16995   exec_prefix="$acl_save_exec_prefix"
16996   prefix="$acl_save_prefix"
16997
16998               case "$x" in
16999                 -L*)
17000                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17001                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17002                     found_dir="$dir"
17003                     found_so="$dir/lib$name.$shlibext"
17004                     if test -f "$dir/lib$name.la"; then
17005                       found_la="$dir/lib$name.la"
17006                     fi
17007                   else
17008                     if test -f "$dir/lib$name.$libext"; then
17009                       found_dir="$dir"
17010                       found_a="$dir/lib$name.$libext"
17011                       if test -f "$dir/lib$name.la"; then
17012                         found_la="$dir/lib$name.la"
17013                       fi
17014                     fi
17015                   fi
17016                   ;;
17017               esac
17018               if test "X$found_dir" != "X"; then
17019                 break
17020               fi
17021             done
17022           fi
17023           if test "X$found_dir" != "X"; then
17024                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17025             if test "X$found_so" != "X"; then
17026                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17027                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17028               else
17029                                                                                 haveit=
17030                 for x in $ltrpathdirs; do
17031                   if test "X$x" = "X$found_dir"; then
17032                     haveit=yes
17033                     break
17034                   fi
17035                 done
17036                 if test -z "$haveit"; then
17037                   ltrpathdirs="$ltrpathdirs $found_dir"
17038                 fi
17039                                 if test "$hardcode_direct" = yes; then
17040                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17041                 else
17042                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17043                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17044                                                             haveit=
17045                     for x in $rpathdirs; do
17046                       if test "X$x" = "X$found_dir"; then
17047                         haveit=yes
17048                         break
17049                       fi
17050                     done
17051                     if test -z "$haveit"; then
17052                       rpathdirs="$rpathdirs $found_dir"
17053                     fi
17054                   else
17055                                                                                 haveit=
17056                     for x in $LDFLAGS $LIBICONV; do
17057
17058   acl_save_prefix="$prefix"
17059   prefix="$acl_final_prefix"
17060   acl_save_exec_prefix="$exec_prefix"
17061   exec_prefix="$acl_final_exec_prefix"
17062   eval x=\"$x\"
17063   exec_prefix="$acl_save_exec_prefix"
17064   prefix="$acl_save_prefix"
17065
17066                       if test "X$x" = "X-L$found_dir"; then
17067                         haveit=yes
17068                         break
17069                       fi
17070                     done
17071                     if test -z "$haveit"; then
17072                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17073                     fi
17074                     if test "$hardcode_minus_L" != no; then
17075                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17076                     else
17077                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17078                     fi
17079                   fi
17080                 fi
17081               fi
17082             else
17083               if test "X$found_a" != "X"; then
17084                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17085               else
17086                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17087               fi
17088             fi
17089                         additional_includedir=
17090             case "$found_dir" in
17091               */lib | */lib/)
17092                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17093                 additional_includedir="$basedir/include"
17094                 ;;
17095             esac
17096             if test "X$additional_includedir" != "X"; then
17097                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17098                 haveit=
17099                 if test "X$additional_includedir" = "X/usr/local/include"; then
17100                   if test -n "$GCC"; then
17101                     case $host_os in
17102                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17103                     esac
17104                   fi
17105                 fi
17106                 if test -z "$haveit"; then
17107                   for x in $CPPFLAGS $INCICONV; do
17108
17109   acl_save_prefix="$prefix"
17110   prefix="$acl_final_prefix"
17111   acl_save_exec_prefix="$exec_prefix"
17112   exec_prefix="$acl_final_exec_prefix"
17113   eval x=\"$x\"
17114   exec_prefix="$acl_save_exec_prefix"
17115   prefix="$acl_save_prefix"
17116
17117                     if test "X$x" = "X-I$additional_includedir"; then
17118                       haveit=yes
17119                       break
17120                     fi
17121                   done
17122                   if test -z "$haveit"; then
17123                     if test -d "$additional_includedir"; then
17124                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17125                     fi
17126                   fi
17127                 fi
17128               fi
17129             fi
17130                         if test -n "$found_la"; then
17131                                                         save_libdir="$libdir"
17132               case "$found_la" in
17133                 */* | *\\*) . "$found_la" ;;
17134                 *) . "./$found_la" ;;
17135               esac
17136               libdir="$save_libdir"
17137                             for dep in $dependency_libs; do
17138                 case "$dep" in
17139                   -L*)
17140                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17141                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17142                       haveit=
17143                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17144                         if test -n "$GCC"; then
17145                           case $host_os in
17146                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17147                           esac
17148                         fi
17149                       fi
17150                       if test -z "$haveit"; then
17151                         haveit=
17152                         for x in $LDFLAGS $LIBICONV; do
17153
17154   acl_save_prefix="$prefix"
17155   prefix="$acl_final_prefix"
17156   acl_save_exec_prefix="$exec_prefix"
17157   exec_prefix="$acl_final_exec_prefix"
17158   eval x=\"$x\"
17159   exec_prefix="$acl_save_exec_prefix"
17160   prefix="$acl_save_prefix"
17161
17162                           if test "X$x" = "X-L$additional_libdir"; then
17163                             haveit=yes
17164                             break
17165                           fi
17166                         done
17167                         if test -z "$haveit"; then
17168                           if test -d "$additional_libdir"; then
17169                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17170                           fi
17171                         fi
17172                         haveit=
17173                         for x in $LDFLAGS $LTLIBICONV; do
17174
17175   acl_save_prefix="$prefix"
17176   prefix="$acl_final_prefix"
17177   acl_save_exec_prefix="$exec_prefix"
17178   exec_prefix="$acl_final_exec_prefix"
17179   eval x=\"$x\"
17180   exec_prefix="$acl_save_exec_prefix"
17181   prefix="$acl_save_prefix"
17182
17183                           if test "X$x" = "X-L$additional_libdir"; then
17184                             haveit=yes
17185                             break
17186                           fi
17187                         done
17188                         if test -z "$haveit"; then
17189                           if test -d "$additional_libdir"; then
17190                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17191                           fi
17192                         fi
17193                       fi
17194                     fi
17195                     ;;
17196                   -R*)
17197                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17198                     if test "$enable_rpath" != no; then
17199                                                                   haveit=
17200                       for x in $rpathdirs; do
17201                         if test "X$x" = "X$dir"; then
17202                           haveit=yes
17203                           break
17204                         fi
17205                       done
17206                       if test -z "$haveit"; then
17207                         rpathdirs="$rpathdirs $dir"
17208                       fi
17209                                                                   haveit=
17210                       for x in $ltrpathdirs; do
17211                         if test "X$x" = "X$dir"; then
17212                           haveit=yes
17213                           break
17214                         fi
17215                       done
17216                       if test -z "$haveit"; then
17217                         ltrpathdirs="$ltrpathdirs $dir"
17218                       fi
17219                     fi
17220                     ;;
17221                   -l*)
17222                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17223                     ;;
17224                   *.la)
17225                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17226                     ;;
17227                   *)
17228                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17229                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17230                     ;;
17231                 esac
17232               done
17233             fi
17234           else
17235                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17236             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17237           fi
17238         fi
17239       fi
17240     done
17241   done
17242   if test "X$rpathdirs" != "X"; then
17243     if test -n "$hardcode_libdir_separator"; then
17244                         alldirs=
17245       for found_dir in $rpathdirs; do
17246         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17247       done
17248             acl_save_libdir="$libdir"
17249       libdir="$alldirs"
17250       eval flag=\"$hardcode_libdir_flag_spec\"
17251       libdir="$acl_save_libdir"
17252       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17253     else
17254             for found_dir in $rpathdirs; do
17255         acl_save_libdir="$libdir"
17256         libdir="$found_dir"
17257         eval flag=\"$hardcode_libdir_flag_spec\"
17258         libdir="$acl_save_libdir"
17259         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17260       done
17261     fi
17262   fi
17263   if test "X$ltrpathdirs" != "X"; then
17264             for found_dir in $ltrpathdirs; do
17265       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17266     done
17267   fi
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17287 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17288 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17289   echo $ECHO_N "(cached) $ECHO_C" >&6
17290 else
17291   gt_save_CPPFLAGS="$CPPFLAGS"
17292      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17293      gt_save_LIBS="$LIBS"
17294      LIBS="$LIBS -framework CoreFoundation"
17295      cat >conftest.$ac_ext <<_ACEOF
17296 /* confdefs.h.  */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h.  */
17301 #include <CFPreferences.h>
17302 int
17303 main ()
17304 {
17305 CFPreferencesCopyAppValue(NULL, NULL)
17306   ;
17307   return 0;
17308 }
17309 _ACEOF
17310 rm -f conftest.$ac_objext conftest$ac_exeext
17311 if { (ac_try="$ac_link"
17312 case "(($ac_try" in
17313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314   *) ac_try_echo=$ac_try;;
17315 esac
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317   (eval "$ac_link") 2>conftest.er1
17318   ac_status=$?
17319   grep -v '^ *+' conftest.er1 >conftest.err
17320   rm -f conftest.er1
17321   cat conftest.err >&5
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); } && {
17324          test -z "$ac_c_werror_flag" ||
17325          test ! -s conftest.err
17326        } && test -s conftest$ac_exeext &&
17327        $as_test_x conftest$ac_exeext; then
17328   gt_cv_func_CFPreferencesCopyAppValue=yes
17329 else
17330   echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17332
17333         gt_cv_func_CFPreferencesCopyAppValue=no
17334 fi
17335
17336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17337       conftest$ac_exeext conftest.$ac_ext
17338      CPPFLAGS="$gt_save_CPPFLAGS"
17339      LIBS="$gt_save_LIBS"
17340 fi
17341 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17342 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17343   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17344
17345 cat >>confdefs.h <<\_ACEOF
17346 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17347 _ACEOF
17348
17349   fi
17350     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17351 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17352 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17353   echo $ECHO_N "(cached) $ECHO_C" >&6
17354 else
17355   gt_save_CPPFLAGS="$CPPFLAGS"
17356      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17357      gt_save_LIBS="$LIBS"
17358      LIBS="$LIBS -framework CoreFoundation"
17359      cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h.  */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h.  */
17365 #include <CFLocale.h>
17366 int
17367 main ()
17368 {
17369 CFLocaleCopyCurrent();
17370   ;
17371   return 0;
17372 }
17373 _ACEOF
17374 rm -f conftest.$ac_objext conftest$ac_exeext
17375 if { (ac_try="$ac_link"
17376 case "(($ac_try" in
17377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378   *) ac_try_echo=$ac_try;;
17379 esac
17380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381   (eval "$ac_link") 2>conftest.er1
17382   ac_status=$?
17383   grep -v '^ *+' conftest.er1 >conftest.err
17384   rm -f conftest.er1
17385   cat conftest.err >&5
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); } && {
17388          test -z "$ac_c_werror_flag" ||
17389          test ! -s conftest.err
17390        } && test -s conftest$ac_exeext &&
17391        $as_test_x conftest$ac_exeext; then
17392   gt_cv_func_CFLocaleCopyCurrent=yes
17393 else
17394   echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17396
17397         gt_cv_func_CFLocaleCopyCurrent=no
17398 fi
17399
17400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17401       conftest$ac_exeext conftest.$ac_ext
17402      CPPFLAGS="$gt_save_CPPFLAGS"
17403      LIBS="$gt_save_LIBS"
17404 fi
17405 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17406 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17407   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17408
17409 cat >>confdefs.h <<\_ACEOF
17410 #define HAVE_CFLOCALECOPYCURRENT 1
17411 _ACEOF
17412
17413   fi
17414   INTL_MACOSX_LIBS=
17415   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17416     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17417   fi
17418
17419
17420
17421
17422   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17423 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17424     # Check whether --enable-nls was given.
17425 if test "${enable_nls+set}" = set; then
17426   enableval=$enable_nls; USE_NLS=$enableval
17427 else
17428   USE_NLS=yes
17429 fi
17430
17431   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17432 echo "${ECHO_T}$USE_NLS" >&6; }
17433
17434
17435
17436
17437   LIBINTL=
17438   LTLIBINTL=
17439   POSUB=
17440
17441     if test "$USE_NLS" = "yes"; then
17442     gt_use_preinstalled_gnugettext=no
17443
17444
17445
17446
17447
17448
17449         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17450 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17451 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17452   echo $ECHO_N "(cached) $ECHO_C" >&6
17453 else
17454   cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h.  */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h.  */
17460 #include <libintl.h>
17461 extern int _nl_msg_cat_cntr;
17462 extern int *_nl_domain_bindings;
17463 int
17464 main ()
17465 {
17466 bindtextdomain ("", "");
17467 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17468   ;
17469   return 0;
17470 }
17471 _ACEOF
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (ac_try="$ac_link"
17474 case "(($ac_try" in
17475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476   *) ac_try_echo=$ac_try;;
17477 esac
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479   (eval "$ac_link") 2>conftest.er1
17480   ac_status=$?
17481   grep -v '^ *+' conftest.er1 >conftest.err
17482   rm -f conftest.er1
17483   cat conftest.err >&5
17484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485   (exit $ac_status); } && {
17486          test -z "$ac_c_werror_flag" ||
17487          test ! -s conftest.err
17488        } && test -s conftest$ac_exeext &&
17489        $as_test_x conftest$ac_exeext; then
17490   gt_cv_func_gnugettext1_libc=yes
17491 else
17492   echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17494
17495         gt_cv_func_gnugettext1_libc=no
17496 fi
17497
17498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17499       conftest$ac_exeext conftest.$ac_ext
17500 fi
17501 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17502 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17503
17504         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17505
17506
17507
17508
17509
17510           am_save_CPPFLAGS="$CPPFLAGS"
17511
17512   for element in $INCICONV; do
17513     haveit=
17514     for x in $CPPFLAGS; do
17515
17516   acl_save_prefix="$prefix"
17517   prefix="$acl_final_prefix"
17518   acl_save_exec_prefix="$exec_prefix"
17519   exec_prefix="$acl_final_exec_prefix"
17520   eval x=\"$x\"
17521   exec_prefix="$acl_save_exec_prefix"
17522   prefix="$acl_save_prefix"
17523
17524       if test "X$x" = "X$element"; then
17525         haveit=yes
17526         break
17527       fi
17528     done
17529     if test -z "$haveit"; then
17530       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17531     fi
17532   done
17533
17534
17535   { echo "$as_me:$LINENO: checking for iconv" >&5
17536 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17537 if test "${am_cv_func_iconv+set}" = set; then
17538   echo $ECHO_N "(cached) $ECHO_C" >&6
17539 else
17540
17541     am_cv_func_iconv="no, consider installing GNU libiconv"
17542     am_cv_lib_iconv=no
17543     cat >conftest.$ac_ext <<_ACEOF
17544 /* confdefs.h.  */
17545 _ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h.  */
17549 #include <stdlib.h>
17550 #include <iconv.h>
17551 int
17552 main ()
17553 {
17554 iconv_t cd = iconv_open("","");
17555        iconv(cd,NULL,NULL,NULL,NULL);
17556        iconv_close(cd);
17557   ;
17558   return 0;
17559 }
17560 _ACEOF
17561 rm -f conftest.$ac_objext conftest$ac_exeext
17562 if { (ac_try="$ac_link"
17563 case "(($ac_try" in
17564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565   *) ac_try_echo=$ac_try;;
17566 esac
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568   (eval "$ac_link") 2>conftest.er1
17569   ac_status=$?
17570   grep -v '^ *+' conftest.er1 >conftest.err
17571   rm -f conftest.er1
17572   cat conftest.err >&5
17573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574   (exit $ac_status); } && {
17575          test -z "$ac_c_werror_flag" ||
17576          test ! -s conftest.err
17577        } && test -s conftest$ac_exeext &&
17578        $as_test_x conftest$ac_exeext; then
17579   am_cv_func_iconv=yes
17580 else
17581   echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17583
17584
17585 fi
17586
17587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17588       conftest$ac_exeext conftest.$ac_ext
17589     if test "$am_cv_func_iconv" != yes; then
17590       am_save_LIBS="$LIBS"
17591       LIBS="$LIBS $LIBICONV"
17592       cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h.  */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h.  */
17598 #include <stdlib.h>
17599 #include <iconv.h>
17600 int
17601 main ()
17602 {
17603 iconv_t cd = iconv_open("","");
17604          iconv(cd,NULL,NULL,NULL,NULL);
17605          iconv_close(cd);
17606   ;
17607   return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614   *) ac_try_echo=$ac_try;;
17615 esac
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617   (eval "$ac_link") 2>conftest.er1
17618   ac_status=$?
17619   grep -v '^ *+' conftest.er1 >conftest.err
17620   rm -f conftest.er1
17621   cat conftest.err >&5
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); } && {
17624          test -z "$ac_c_werror_flag" ||
17625          test ! -s conftest.err
17626        } && test -s conftest$ac_exeext &&
17627        $as_test_x conftest$ac_exeext; then
17628   am_cv_lib_iconv=yes
17629         am_cv_func_iconv=yes
17630 else
17631   echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17633
17634
17635 fi
17636
17637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17638       conftest$ac_exeext conftest.$ac_ext
17639       LIBS="$am_save_LIBS"
17640     fi
17641
17642 fi
17643 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17644 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17645   if test "$am_cv_func_iconv" = yes; then
17646
17647 cat >>confdefs.h <<\_ACEOF
17648 #define HAVE_ICONV 1
17649 _ACEOF
17650
17651   fi
17652   if test "$am_cv_lib_iconv" = yes; then
17653     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17654 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17655     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17656 echo "${ECHO_T}$LIBICONV" >&6; }
17657   else
17658             CPPFLAGS="$am_save_CPPFLAGS"
17659     LIBICONV=
17660     LTLIBICONV=
17661   fi
17662
17663
17664
17665
17666
17667
17668     use_additional=yes
17669
17670   acl_save_prefix="$prefix"
17671   prefix="$acl_final_prefix"
17672   acl_save_exec_prefix="$exec_prefix"
17673   exec_prefix="$acl_final_exec_prefix"
17674
17675     eval additional_includedir=\"$includedir\"
17676     eval additional_libdir=\"$libdir\"
17677
17678   exec_prefix="$acl_save_exec_prefix"
17679   prefix="$acl_save_prefix"
17680
17681
17682 # Check whether --with-libintl-prefix was given.
17683 if test "${with_libintl_prefix+set}" = set; then
17684   withval=$with_libintl_prefix;
17685     if test "X$withval" = "Xno"; then
17686       use_additional=no
17687     else
17688       if test "X$withval" = "X"; then
17689
17690   acl_save_prefix="$prefix"
17691   prefix="$acl_final_prefix"
17692   acl_save_exec_prefix="$exec_prefix"
17693   exec_prefix="$acl_final_exec_prefix"
17694
17695           eval additional_includedir=\"$includedir\"
17696           eval additional_libdir=\"$libdir\"
17697
17698   exec_prefix="$acl_save_exec_prefix"
17699   prefix="$acl_save_prefix"
17700
17701       else
17702         additional_includedir="$withval/include"
17703         additional_libdir="$withval/lib"
17704       fi
17705     fi
17706
17707 fi
17708
17709       LIBINTL=
17710   LTLIBINTL=
17711   INCINTL=
17712   rpathdirs=
17713   ltrpathdirs=
17714   names_already_handled=
17715   names_next_round='intl '
17716   while test -n "$names_next_round"; do
17717     names_this_round="$names_next_round"
17718     names_next_round=
17719     for name in $names_this_round; do
17720       already_handled=
17721       for n in $names_already_handled; do
17722         if test "$n" = "$name"; then
17723           already_handled=yes
17724           break
17725         fi
17726       done
17727       if test -z "$already_handled"; then
17728         names_already_handled="$names_already_handled $name"
17729                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17730         eval value=\"\$HAVE_LIB$uppername\"
17731         if test -n "$value"; then
17732           if test "$value" = yes; then
17733             eval value=\"\$LIB$uppername\"
17734             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17735             eval value=\"\$LTLIB$uppername\"
17736             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17737           else
17738                                     :
17739           fi
17740         else
17741                               found_dir=
17742           found_la=
17743           found_so=
17744           found_a=
17745           if test $use_additional = yes; then
17746             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17747               found_dir="$additional_libdir"
17748               found_so="$additional_libdir/lib$name.$shlibext"
17749               if test -f "$additional_libdir/lib$name.la"; then
17750                 found_la="$additional_libdir/lib$name.la"
17751               fi
17752             else
17753               if test -f "$additional_libdir/lib$name.$libext"; then
17754                 found_dir="$additional_libdir"
17755                 found_a="$additional_libdir/lib$name.$libext"
17756                 if test -f "$additional_libdir/lib$name.la"; then
17757                   found_la="$additional_libdir/lib$name.la"
17758                 fi
17759               fi
17760             fi
17761           fi
17762           if test "X$found_dir" = "X"; then
17763             for x in $LDFLAGS $LTLIBINTL; do
17764
17765   acl_save_prefix="$prefix"
17766   prefix="$acl_final_prefix"
17767   acl_save_exec_prefix="$exec_prefix"
17768   exec_prefix="$acl_final_exec_prefix"
17769   eval x=\"$x\"
17770   exec_prefix="$acl_save_exec_prefix"
17771   prefix="$acl_save_prefix"
17772
17773               case "$x" in
17774                 -L*)
17775                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17776                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17777                     found_dir="$dir"
17778                     found_so="$dir/lib$name.$shlibext"
17779                     if test -f "$dir/lib$name.la"; then
17780                       found_la="$dir/lib$name.la"
17781                     fi
17782                   else
17783                     if test -f "$dir/lib$name.$libext"; then
17784                       found_dir="$dir"
17785                       found_a="$dir/lib$name.$libext"
17786                       if test -f "$dir/lib$name.la"; then
17787                         found_la="$dir/lib$name.la"
17788                       fi
17789                     fi
17790                   fi
17791                   ;;
17792               esac
17793               if test "X$found_dir" != "X"; then
17794                 break
17795               fi
17796             done
17797           fi
17798           if test "X$found_dir" != "X"; then
17799                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17800             if test "X$found_so" != "X"; then
17801                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17802                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17803               else
17804                                                                                 haveit=
17805                 for x in $ltrpathdirs; do
17806                   if test "X$x" = "X$found_dir"; then
17807                     haveit=yes
17808                     break
17809                   fi
17810                 done
17811                 if test -z "$haveit"; then
17812                   ltrpathdirs="$ltrpathdirs $found_dir"
17813                 fi
17814                                 if test "$hardcode_direct" = yes; then
17815                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17816                 else
17817                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17818                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17819                                                             haveit=
17820                     for x in $rpathdirs; do
17821                       if test "X$x" = "X$found_dir"; then
17822                         haveit=yes
17823                         break
17824                       fi
17825                     done
17826                     if test -z "$haveit"; then
17827                       rpathdirs="$rpathdirs $found_dir"
17828                     fi
17829                   else
17830                                                                                 haveit=
17831                     for x in $LDFLAGS $LIBINTL; do
17832
17833   acl_save_prefix="$prefix"
17834   prefix="$acl_final_prefix"
17835   acl_save_exec_prefix="$exec_prefix"
17836   exec_prefix="$acl_final_exec_prefix"
17837   eval x=\"$x\"
17838   exec_prefix="$acl_save_exec_prefix"
17839   prefix="$acl_save_prefix"
17840
17841                       if test "X$x" = "X-L$found_dir"; then
17842                         haveit=yes
17843                         break
17844                       fi
17845                     done
17846                     if test -z "$haveit"; then
17847                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17848                     fi
17849                     if test "$hardcode_minus_L" != no; then
17850                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17851                     else
17852                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17853                     fi
17854                   fi
17855                 fi
17856               fi
17857             else
17858               if test "X$found_a" != "X"; then
17859                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17860               else
17861                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17862               fi
17863             fi
17864                         additional_includedir=
17865             case "$found_dir" in
17866               */lib | */lib/)
17867                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17868                 additional_includedir="$basedir/include"
17869                 ;;
17870             esac
17871             if test "X$additional_includedir" != "X"; then
17872                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17873                 haveit=
17874                 if test "X$additional_includedir" = "X/usr/local/include"; then
17875                   if test -n "$GCC"; then
17876                     case $host_os in
17877                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17878                     esac
17879                   fi
17880                 fi
17881                 if test -z "$haveit"; then
17882                   for x in $CPPFLAGS $INCINTL; do
17883
17884   acl_save_prefix="$prefix"
17885   prefix="$acl_final_prefix"
17886   acl_save_exec_prefix="$exec_prefix"
17887   exec_prefix="$acl_final_exec_prefix"
17888   eval x=\"$x\"
17889   exec_prefix="$acl_save_exec_prefix"
17890   prefix="$acl_save_prefix"
17891
17892                     if test "X$x" = "X-I$additional_includedir"; then
17893                       haveit=yes
17894                       break
17895                     fi
17896                   done
17897                   if test -z "$haveit"; then
17898                     if test -d "$additional_includedir"; then
17899                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17900                     fi
17901                   fi
17902                 fi
17903               fi
17904             fi
17905                         if test -n "$found_la"; then
17906                                                         save_libdir="$libdir"
17907               case "$found_la" in
17908                 */* | *\\*) . "$found_la" ;;
17909                 *) . "./$found_la" ;;
17910               esac
17911               libdir="$save_libdir"
17912                             for dep in $dependency_libs; do
17913                 case "$dep" in
17914                   -L*)
17915                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17916                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17917                       haveit=
17918                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17919                         if test -n "$GCC"; then
17920                           case $host_os in
17921                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17922                           esac
17923                         fi
17924                       fi
17925                       if test -z "$haveit"; then
17926                         haveit=
17927                         for x in $LDFLAGS $LIBINTL; do
17928
17929   acl_save_prefix="$prefix"
17930   prefix="$acl_final_prefix"
17931   acl_save_exec_prefix="$exec_prefix"
17932   exec_prefix="$acl_final_exec_prefix"
17933   eval x=\"$x\"
17934   exec_prefix="$acl_save_exec_prefix"
17935   prefix="$acl_save_prefix"
17936
17937                           if test "X$x" = "X-L$additional_libdir"; then
17938                             haveit=yes
17939                             break
17940                           fi
17941                         done
17942                         if test -z "$haveit"; then
17943                           if test -d "$additional_libdir"; then
17944                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17945                           fi
17946                         fi
17947                         haveit=
17948                         for x in $LDFLAGS $LTLIBINTL; do
17949
17950   acl_save_prefix="$prefix"
17951   prefix="$acl_final_prefix"
17952   acl_save_exec_prefix="$exec_prefix"
17953   exec_prefix="$acl_final_exec_prefix"
17954   eval x=\"$x\"
17955   exec_prefix="$acl_save_exec_prefix"
17956   prefix="$acl_save_prefix"
17957
17958                           if test "X$x" = "X-L$additional_libdir"; then
17959                             haveit=yes
17960                             break
17961                           fi
17962                         done
17963                         if test -z "$haveit"; then
17964                           if test -d "$additional_libdir"; then
17965                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17966                           fi
17967                         fi
17968                       fi
17969                     fi
17970                     ;;
17971                   -R*)
17972                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17973                     if test "$enable_rpath" != no; then
17974                                                                   haveit=
17975                       for x in $rpathdirs; do
17976                         if test "X$x" = "X$dir"; then
17977                           haveit=yes
17978                           break
17979                         fi
17980                       done
17981                       if test -z "$haveit"; then
17982                         rpathdirs="$rpathdirs $dir"
17983                       fi
17984                                                                   haveit=
17985                       for x in $ltrpathdirs; do
17986                         if test "X$x" = "X$dir"; then
17987                           haveit=yes
17988                           break
17989                         fi
17990                       done
17991                       if test -z "$haveit"; then
17992                         ltrpathdirs="$ltrpathdirs $dir"
17993                       fi
17994                     fi
17995                     ;;
17996                   -l*)
17997                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17998                     ;;
17999                   *.la)
18000                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18001                     ;;
18002                   *)
18003                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18004                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18005                     ;;
18006                 esac
18007               done
18008             fi
18009           else
18010                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18011             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18012           fi
18013         fi
18014       fi
18015     done
18016   done
18017   if test "X$rpathdirs" != "X"; then
18018     if test -n "$hardcode_libdir_separator"; then
18019                         alldirs=
18020       for found_dir in $rpathdirs; do
18021         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18022       done
18023             acl_save_libdir="$libdir"
18024       libdir="$alldirs"
18025       eval flag=\"$hardcode_libdir_flag_spec\"
18026       libdir="$acl_save_libdir"
18027       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18028     else
18029             for found_dir in $rpathdirs; do
18030         acl_save_libdir="$libdir"
18031         libdir="$found_dir"
18032         eval flag=\"$hardcode_libdir_flag_spec\"
18033         libdir="$acl_save_libdir"
18034         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18035       done
18036     fi
18037   fi
18038   if test "X$ltrpathdirs" != "X"; then
18039             for found_dir in $ltrpathdirs; do
18040       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18041     done
18042   fi
18043
18044           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18045 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18046 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18047   echo $ECHO_N "(cached) $ECHO_C" >&6
18048 else
18049   gt_save_CPPFLAGS="$CPPFLAGS"
18050             CPPFLAGS="$CPPFLAGS $INCINTL"
18051             gt_save_LIBS="$LIBS"
18052             LIBS="$LIBS $LIBINTL"
18053                         cat >conftest.$ac_ext <<_ACEOF
18054 /* confdefs.h.  */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h.  */
18059 #include <libintl.h>
18060 extern int _nl_msg_cat_cntr;
18061 extern
18062 #ifdef __cplusplus
18063 "C"
18064 #endif
18065 const char *_nl_expand_alias (const char *);
18066 int
18067 main ()
18068 {
18069 bindtextdomain ("", "");
18070 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18071   ;
18072   return 0;
18073 }
18074 _ACEOF
18075 rm -f conftest.$ac_objext conftest$ac_exeext
18076 if { (ac_try="$ac_link"
18077 case "(($ac_try" in
18078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079   *) ac_try_echo=$ac_try;;
18080 esac
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082   (eval "$ac_link") 2>conftest.er1
18083   ac_status=$?
18084   grep -v '^ *+' conftest.er1 >conftest.err
18085   rm -f conftest.er1
18086   cat conftest.err >&5
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); } && {
18089          test -z "$ac_c_werror_flag" ||
18090          test ! -s conftest.err
18091        } && test -s conftest$ac_exeext &&
18092        $as_test_x conftest$ac_exeext; then
18093   gt_cv_func_gnugettext1_libintl=yes
18094 else
18095   echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18097
18098         gt_cv_func_gnugettext1_libintl=no
18099 fi
18100
18101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18102       conftest$ac_exeext conftest.$ac_ext
18103                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18104               LIBS="$LIBS $LIBICONV"
18105               cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h.  */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h.  */
18111 #include <libintl.h>
18112 extern int _nl_msg_cat_cntr;
18113 extern
18114 #ifdef __cplusplus
18115 "C"
18116 #endif
18117 const char *_nl_expand_alias (const char *);
18118 int
18119 main ()
18120 {
18121 bindtextdomain ("", "");
18122 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18123   ;
18124   return 0;
18125 }
18126 _ACEOF
18127 rm -f conftest.$ac_objext conftest$ac_exeext
18128 if { (ac_try="$ac_link"
18129 case "(($ac_try" in
18130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131   *) ac_try_echo=$ac_try;;
18132 esac
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134   (eval "$ac_link") 2>conftest.er1
18135   ac_status=$?
18136   grep -v '^ *+' conftest.er1 >conftest.err
18137   rm -f conftest.er1
18138   cat conftest.err >&5
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   (exit $ac_status); } && {
18141          test -z "$ac_c_werror_flag" ||
18142          test ! -s conftest.err
18143        } && test -s conftest$ac_exeext &&
18144        $as_test_x conftest$ac_exeext; then
18145   LIBINTL="$LIBINTL $LIBICONV"
18146                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18147                 gt_cv_func_gnugettext1_libintl=yes
18148
18149 else
18150   echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.$ac_ext >&5
18152
18153
18154 fi
18155
18156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18157       conftest$ac_exeext conftest.$ac_ext
18158             fi
18159             CPPFLAGS="$gt_save_CPPFLAGS"
18160             LIBS="$gt_save_LIBS"
18161 fi
18162 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18163 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18164         fi
18165
18166                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18167            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18168                 && test "$PACKAGE" != gettext-runtime \
18169                 && test "$PACKAGE" != gettext-tools; }; then
18170           gt_use_preinstalled_gnugettext=yes
18171         else
18172                     LIBINTL=
18173           LTLIBINTL=
18174           INCINTL=
18175         fi
18176
18177
18178
18179     if test -n "$INTL_MACOSX_LIBS"; then
18180       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18181          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18182                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18183         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18184       fi
18185     fi
18186
18187     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18188        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18189
18190 cat >>confdefs.h <<\_ACEOF
18191 #define ENABLE_NLS 1
18192 _ACEOF
18193
18194     else
18195       USE_NLS=no
18196     fi
18197   fi
18198
18199   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18200 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18201   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18202 echo "${ECHO_T}$USE_NLS" >&6; }
18203   if test "$USE_NLS" = "yes"; then
18204     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18205 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18206     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18207       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18208         gt_source="external libintl"
18209       else
18210         gt_source="libc"
18211       fi
18212     else
18213       gt_source="included intl directory"
18214     fi
18215     { echo "$as_me:$LINENO: result: $gt_source" >&5
18216 echo "${ECHO_T}$gt_source" >&6; }
18217   fi
18218
18219   if test "$USE_NLS" = "yes"; then
18220
18221     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18222       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18223         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18224 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18225         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18226 echo "${ECHO_T}$LIBINTL" >&6; }
18227
18228   for element in $INCINTL; do
18229     haveit=
18230     for x in $CPPFLAGS; do
18231
18232   acl_save_prefix="$prefix"
18233   prefix="$acl_final_prefix"
18234   acl_save_exec_prefix="$exec_prefix"
18235   exec_prefix="$acl_final_exec_prefix"
18236   eval x=\"$x\"
18237   exec_prefix="$acl_save_exec_prefix"
18238   prefix="$acl_save_prefix"
18239
18240       if test "X$x" = "X$element"; then
18241         haveit=yes
18242         break
18243       fi
18244     done
18245     if test -z "$haveit"; then
18246       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18247     fi
18248   done
18249
18250       fi
18251
18252
18253 cat >>confdefs.h <<\_ACEOF
18254 #define HAVE_GETTEXT 1
18255 _ACEOF
18256
18257
18258 cat >>confdefs.h <<\_ACEOF
18259 #define HAVE_DCGETTEXT 1
18260 _ACEOF
18261
18262     fi
18263
18264         POSUB=po
18265   fi
18266
18267
18268
18269     INTLLIBS="$LIBINTL"
18270
18271
18272
18273
18274
18275
18276 if test x${prefix} = xNONE ; then
18277    if test `eval echo ${datarootdir}` = NONE/share ; then
18278       datarootdir=/usr/share
18279    fi
18280 fi
18281
18282 if test x${prefix} = xNONE ; then
18283    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18284       sysconfdir=/etc/bacula
18285    fi
18286
18287    if test `eval echo ${libdir}` = NONE/lib ; then
18288       libdir=/usr/lib
18289    fi
18290
18291    if test `eval echo ${includedir}` = NONE/include ; then
18292       includedir=/usr/include
18293    fi
18294
18295    prefix=
18296 fi
18297
18298 if test x${exec_prefix} = xNONE ; then
18299    exec_prefix=${prefix}
18300 fi
18301
18302 sysconfdir=`eval echo ${sysconfdir}`
18303 datarootdir=`eval echo ${datarootdir}`
18304 libdir=`eval echo ${libdir}`
18305 includedir=`eval echo ${includedir}`
18306 localedir=`eval echo ${datarootdir}/locale`
18307 cat >>confdefs.h <<_ACEOF
18308 #define SYSCONFDIR "$sysconfdir"
18309 _ACEOF
18310
18311 cat >>confdefs.h <<_ACEOF
18312 #define LOCALEDIR "$localedir"
18313 _ACEOF
18314
18315
18316 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18317    sbindir=${exec_prefix}/sbin
18318 fi
18319 sbindir=`eval echo ${sbindir}`
18320
18321 if test x$mandir = x'${prefix}/man' ; then
18322    mandir=/usr/share/man
18323 fi
18324
18325 for ac_prog in msgfmt
18326 do
18327   # Extract the first word of "$ac_prog", so it can be a program name with args.
18328 set dummy $ac_prog; ac_word=$2
18329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18331 if test "${ac_cv_path_MSGFMT+set}" = set; then
18332   echo $ECHO_N "(cached) $ECHO_C" >&6
18333 else
18334   case $MSGFMT in
18335   [\\/]* | ?:[\\/]*)
18336   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18337   ;;
18338   *)
18339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18340 for as_dir in $PATH
18341 do
18342   IFS=$as_save_IFS
18343   test -z "$as_dir" && as_dir=.
18344   for ac_exec_ext in '' $ac_executable_extensions; do
18345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18346     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18348     break 2
18349   fi
18350 done
18351 done
18352 IFS=$as_save_IFS
18353
18354   ;;
18355 esac
18356 fi
18357 MSGFMT=$ac_cv_path_MSGFMT
18358 if test -n "$MSGFMT"; then
18359   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18360 echo "${ECHO_T}$MSGFMT" >&6; }
18361 else
18362   { echo "$as_me:$LINENO: result: no" >&5
18363 echo "${ECHO_T}no" >&6; }
18364 fi
18365
18366
18367   test -n "$MSGFMT" && break
18368 done
18369 test -n "$MSGFMT" || MSGFMT="no"
18370
18371 if test "$MSGFMT" = "no"
18372 then
18373    echo 'msgfmt program not found, disabling NLS !'
18374    USE_NLS=no
18375    USE_INCLUDED_LIBINTL=no
18376 #else
18377
18378     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18379 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18380 if test "${ac_cv_gnu_library_2+set}" = set; then
18381   echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383   cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h.  */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h.  */
18389
18390 #include <features.h>
18391 #ifdef __GNU_LIBRARY__
18392  #if (__GLIBC__ >= 2)
18393   Lucky GNU user
18394  #endif
18395 #endif
18396
18397 _ACEOF
18398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18399   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18400   ac_cv_gnu_library_2=yes
18401 else
18402   ac_cv_gnu_library_2=no
18403 fi
18404 rm -f conftest*
18405
18406
18407
18408 fi
18409 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18410 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18411
18412     GLIBC2="$ac_cv_gnu_library_2"
18413
18414
18415 if test -n "$ac_tool_prefix"; then
18416   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18420 if test "${ac_cv_prog_RANLIB+set}" = set; then
18421   echo $ECHO_N "(cached) $ECHO_C" >&6
18422 else
18423   if test -n "$RANLIB"; then
18424   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18425 else
18426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18427 for as_dir in $PATH
18428 do
18429   IFS=$as_save_IFS
18430   test -z "$as_dir" && as_dir=.
18431   for ac_exec_ext in '' $ac_executable_extensions; do
18432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18433     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18435     break 2
18436   fi
18437 done
18438 done
18439 IFS=$as_save_IFS
18440
18441 fi
18442 fi
18443 RANLIB=$ac_cv_prog_RANLIB
18444 if test -n "$RANLIB"; then
18445   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18446 echo "${ECHO_T}$RANLIB" >&6; }
18447 else
18448   { echo "$as_me:$LINENO: result: no" >&5
18449 echo "${ECHO_T}no" >&6; }
18450 fi
18451
18452
18453 fi
18454 if test -z "$ac_cv_prog_RANLIB"; then
18455   ac_ct_RANLIB=$RANLIB
18456   # Extract the first word of "ranlib", so it can be a program name with args.
18457 set dummy ranlib; ac_word=$2
18458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18460 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18461   echo $ECHO_N "(cached) $ECHO_C" >&6
18462 else
18463   if test -n "$ac_ct_RANLIB"; then
18464   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18465 else
18466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18467 for as_dir in $PATH
18468 do
18469   IFS=$as_save_IFS
18470   test -z "$as_dir" && as_dir=.
18471   for ac_exec_ext in '' $ac_executable_extensions; do
18472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18473     ac_cv_prog_ac_ct_RANLIB="ranlib"
18474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18475     break 2
18476   fi
18477 done
18478 done
18479 IFS=$as_save_IFS
18480
18481 fi
18482 fi
18483 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18484 if test -n "$ac_ct_RANLIB"; then
18485   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18486 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18487 else
18488   { echo "$as_me:$LINENO: result: no" >&5
18489 echo "${ECHO_T}no" >&6; }
18490 fi
18491
18492   if test "x$ac_ct_RANLIB" = x; then
18493     RANLIB=":"
18494   else
18495     case $cross_compiling:$ac_tool_warned in
18496 yes:)
18497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18498 whose name does not start with the host triplet.  If you think this
18499 configuration is useful to you, please write to autoconf@gnu.org." >&5
18500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18501 whose name does not start with the host triplet.  If you think this
18502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18503 ac_tool_warned=yes ;;
18504 esac
18505     RANLIB=$ac_ct_RANLIB
18506   fi
18507 else
18508   RANLIB="$ac_cv_prog_RANLIB"
18509 fi
18510
18511
18512         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18513 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18514 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18515   echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517   ac_check_lib_save_LIBS=$LIBS
18518 LIBS="-lcposix  $LIBS"
18519 cat >conftest.$ac_ext <<_ACEOF
18520 /* confdefs.h.  */
18521 _ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h.  */
18525
18526 /* Override any GCC internal prototype to avoid an error.
18527    Use char because int might match the return type of a GCC
18528    builtin and then its argument prototype would still apply.  */
18529 #ifdef __cplusplus
18530 extern "C"
18531 #endif
18532 char strerror ();
18533 int
18534 main ()
18535 {
18536 return strerror ();
18537   ;
18538   return 0;
18539 }
18540 _ACEOF
18541 rm -f conftest.$ac_objext conftest$ac_exeext
18542 if { (ac_try="$ac_link"
18543 case "(($ac_try" in
18544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545   *) ac_try_echo=$ac_try;;
18546 esac
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548   (eval "$ac_link") 2>conftest.er1
18549   ac_status=$?
18550   grep -v '^ *+' conftest.er1 >conftest.err
18551   rm -f conftest.er1
18552   cat conftest.err >&5
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); } && {
18555          test -z "$ac_c_werror_flag" ||
18556          test ! -s conftest.err
18557        } && test -s conftest$ac_exeext &&
18558        $as_test_x conftest$ac_exeext; then
18559   ac_cv_lib_cposix_strerror=yes
18560 else
18561   echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18563
18564         ac_cv_lib_cposix_strerror=no
18565 fi
18566
18567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18568       conftest$ac_exeext conftest.$ac_ext
18569 LIBS=$ac_check_lib_save_LIBS
18570 fi
18571 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18572 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18573 if test $ac_cv_lib_cposix_strerror = yes; then
18574   LIBS="$LIBS -lcposix"
18575 fi
18576
18577
18578
18579 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18580 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18581 if test "${ac_cv_c_const+set}" = set; then
18582   echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584   cat >conftest.$ac_ext <<_ACEOF
18585 /* confdefs.h.  */
18586 _ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h.  */
18590
18591 int
18592 main ()
18593 {
18594 /* FIXME: Include the comments suggested by Paul. */
18595 #ifndef __cplusplus
18596   /* Ultrix mips cc rejects this.  */
18597   typedef int charset[2];
18598   const charset cs;
18599   /* SunOS 4.1.1 cc rejects this.  */
18600   char const *const *pcpcc;
18601   char **ppc;
18602   /* NEC SVR4.0.2 mips cc rejects this.  */
18603   struct point {int x, y;};
18604   static struct point const zero = {0,0};
18605   /* AIX XL C 1.02.0.0 rejects this.
18606      It does not let you subtract one const X* pointer from another in
18607      an arm of an if-expression whose if-part is not a constant
18608      expression */
18609   const char *g = "string";
18610   pcpcc = &g + (g ? g-g : 0);
18611   /* HPUX 7.0 cc rejects these. */
18612   ++pcpcc;
18613   ppc = (char**) pcpcc;
18614   pcpcc = (char const *const *) ppc;
18615   { /* SCO 3.2v4 cc rejects this.  */
18616     char *t;
18617     char const *s = 0 ? (char *) 0 : (char const *) 0;
18618
18619     *t++ = 0;
18620     if (s) return 0;
18621   }
18622   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18623     int x[] = {25, 17};
18624     const int *foo = &x[0];
18625     ++foo;
18626   }
18627   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18628     typedef const int *iptr;
18629     iptr p = 0;
18630     ++p;
18631   }
18632   { /* AIX XL C 1.02.0.0 rejects this saying
18633        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18634     struct s { int j; const int *ap[3]; };
18635     struct s *b; b->j = 5;
18636   }
18637   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18638     const int foo = 10;
18639     if (!foo) return 0;
18640   }
18641   return !cs[0] && !zero.x;
18642 #endif
18643
18644   ;
18645   return 0;
18646 }
18647 _ACEOF
18648 rm -f conftest.$ac_objext
18649 if { (ac_try="$ac_compile"
18650 case "(($ac_try" in
18651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652   *) ac_try_echo=$ac_try;;
18653 esac
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655   (eval "$ac_compile") 2>conftest.er1
18656   ac_status=$?
18657   grep -v '^ *+' conftest.er1 >conftest.err
18658   rm -f conftest.er1
18659   cat conftest.err >&5
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); } && {
18662          test -z "$ac_c_werror_flag" ||
18663          test ! -s conftest.err
18664        } && test -s conftest.$ac_objext; then
18665   ac_cv_c_const=yes
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670         ac_cv_c_const=no
18671 fi
18672
18673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18674 fi
18675 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18676 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18677 if test $ac_cv_c_const = no; then
18678
18679 cat >>confdefs.h <<\_ACEOF
18680 #define const
18681 _ACEOF
18682
18683 fi
18684
18685
18686   { echo "$as_me:$LINENO: checking for signed" >&5
18687 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18688 if test "${bh_cv_c_signed+set}" = set; then
18689   echo $ECHO_N "(cached) $ECHO_C" >&6
18690 else
18691   cat >conftest.$ac_ext <<_ACEOF
18692 /* confdefs.h.  */
18693 _ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h.  */
18697
18698 int
18699 main ()
18700 {
18701 signed char x;
18702   ;
18703   return 0;
18704 }
18705 _ACEOF
18706 rm -f conftest.$ac_objext
18707 if { (ac_try="$ac_compile"
18708 case "(($ac_try" in
18709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710   *) ac_try_echo=$ac_try;;
18711 esac
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713   (eval "$ac_compile") 2>conftest.er1
18714   ac_status=$?
18715   grep -v '^ *+' conftest.er1 >conftest.err
18716   rm -f conftest.er1
18717   cat conftest.err >&5
18718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719   (exit $ac_status); } && {
18720          test -z "$ac_c_werror_flag" ||
18721          test ! -s conftest.err
18722        } && test -s conftest.$ac_objext; then
18723   bh_cv_c_signed=yes
18724 else
18725   echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18727
18728         bh_cv_c_signed=no
18729 fi
18730
18731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18732 fi
18733 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18734 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18735   if test $bh_cv_c_signed = no; then
18736
18737 cat >>confdefs.h <<\_ACEOF
18738 #define signed
18739 _ACEOF
18740
18741   fi
18742
18743 { echo "$as_me:$LINENO: checking for inline" >&5
18744 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18745 if test "${ac_cv_c_inline+set}" = set; then
18746   echo $ECHO_N "(cached) $ECHO_C" >&6
18747 else
18748   ac_cv_c_inline=no
18749 for ac_kw in inline __inline__ __inline; do
18750   cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756 #ifndef __cplusplus
18757 typedef int foo_t;
18758 static $ac_kw foo_t static_foo () {return 0; }
18759 $ac_kw foo_t foo () {return 0; }
18760 #endif
18761
18762 _ACEOF
18763 rm -f conftest.$ac_objext
18764 if { (ac_try="$ac_compile"
18765 case "(($ac_try" in
18766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767   *) ac_try_echo=$ac_try;;
18768 esac
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770   (eval "$ac_compile") 2>conftest.er1
18771   ac_status=$?
18772   grep -v '^ *+' conftest.er1 >conftest.err
18773   rm -f conftest.er1
18774   cat conftest.err >&5
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); } && {
18777          test -z "$ac_c_werror_flag" ||
18778          test ! -s conftest.err
18779        } && test -s conftest.$ac_objext; then
18780   ac_cv_c_inline=$ac_kw
18781 else
18782   echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18784
18785
18786 fi
18787
18788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18789   test "$ac_cv_c_inline" != no && break
18790 done
18791
18792 fi
18793 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18794 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18795
18796
18797 case $ac_cv_c_inline in
18798   inline | yes) ;;
18799   *)
18800     case $ac_cv_c_inline in
18801       no) ac_val=;;
18802       *) ac_val=$ac_cv_c_inline;;
18803     esac
18804     cat >>confdefs.h <<_ACEOF
18805 #ifndef __cplusplus
18806 #define inline $ac_val
18807 #endif
18808 _ACEOF
18809     ;;
18810 esac
18811
18812 { echo "$as_me:$LINENO: checking for off_t" >&5
18813 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18814 if test "${ac_cv_type_off_t+set}" = set; then
18815   echo $ECHO_N "(cached) $ECHO_C" >&6
18816 else
18817   cat >conftest.$ac_ext <<_ACEOF
18818 /* confdefs.h.  */
18819 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h.  */
18823 $ac_includes_default
18824 typedef off_t ac__type_new_;
18825 int
18826 main ()
18827 {
18828 if ((ac__type_new_ *) 0)
18829   return 0;
18830 if (sizeof (ac__type_new_))
18831   return 0;
18832   ;
18833   return 0;
18834 }
18835 _ACEOF
18836 rm -f conftest.$ac_objext
18837 if { (ac_try="$ac_compile"
18838 case "(($ac_try" in
18839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840   *) ac_try_echo=$ac_try;;
18841 esac
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843   (eval "$ac_compile") 2>conftest.er1
18844   ac_status=$?
18845   grep -v '^ *+' conftest.er1 >conftest.err
18846   rm -f conftest.er1
18847   cat conftest.err >&5
18848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849   (exit $ac_status); } && {
18850          test -z "$ac_c_werror_flag" ||
18851          test ! -s conftest.err
18852        } && test -s conftest.$ac_objext; then
18853   ac_cv_type_off_t=yes
18854 else
18855   echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18857
18858         ac_cv_type_off_t=no
18859 fi
18860
18861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862 fi
18863 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18864 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18865 if test $ac_cv_type_off_t = yes; then
18866   :
18867 else
18868
18869 cat >>confdefs.h <<_ACEOF
18870 #define off_t long int
18871 _ACEOF
18872
18873 fi
18874
18875 { echo "$as_me:$LINENO: checking for size_t" >&5
18876 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18877 if test "${ac_cv_type_size_t+set}" = set; then
18878   echo $ECHO_N "(cached) $ECHO_C" >&6
18879 else
18880   cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h.  */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h.  */
18886 $ac_includes_default
18887 typedef size_t ac__type_new_;
18888 int
18889 main ()
18890 {
18891 if ((ac__type_new_ *) 0)
18892   return 0;
18893 if (sizeof (ac__type_new_))
18894   return 0;
18895   ;
18896   return 0;
18897 }
18898 _ACEOF
18899 rm -f conftest.$ac_objext
18900 if { (ac_try="$ac_compile"
18901 case "(($ac_try" in
18902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903   *) ac_try_echo=$ac_try;;
18904 esac
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906   (eval "$ac_compile") 2>conftest.er1
18907   ac_status=$?
18908   grep -v '^ *+' conftest.er1 >conftest.err
18909   rm -f conftest.er1
18910   cat conftest.err >&5
18911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912   (exit $ac_status); } && {
18913          test -z "$ac_c_werror_flag" ||
18914          test ! -s conftest.err
18915        } && test -s conftest.$ac_objext; then
18916   ac_cv_type_size_t=yes
18917 else
18918   echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18920
18921         ac_cv_type_size_t=no
18922 fi
18923
18924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18925 fi
18926 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18927 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18928 if test $ac_cv_type_size_t = yes; then
18929   :
18930 else
18931
18932 cat >>confdefs.h <<_ACEOF
18933 #define size_t unsigned int
18934 _ACEOF
18935
18936 fi
18937
18938
18939   { echo "$as_me:$LINENO: checking for long long" >&5
18940 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18941 if test "${ac_cv_type_long_long+set}" = set; then
18942   echo $ECHO_N "(cached) $ECHO_C" >&6
18943 else
18944   cat >conftest.$ac_ext <<_ACEOF
18945 /* confdefs.h.  */
18946 _ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
18949 /* end confdefs.h.  */
18950 long long ll = 1LL; int i = 63;
18951 int
18952 main ()
18953 {
18954 long long llmax = (long long) -1;
18955      return ll << i | ll >> i | llmax / ll | llmax % ll;
18956   ;
18957   return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_link") 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } && {
18974          test -z "$ac_c_werror_flag" ||
18975          test ! -s conftest.err
18976        } && test -s conftest$ac_exeext &&
18977        $as_test_x conftest$ac_exeext; then
18978   ac_cv_type_long_long=yes
18979 else
18980   echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18982
18983         ac_cv_type_long_long=no
18984 fi
18985
18986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18987       conftest$ac_exeext conftest.$ac_ext
18988 fi
18989 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18990 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18991   if test $ac_cv_type_long_long = yes; then
18992
18993 cat >>confdefs.h <<\_ACEOF
18994 #define HAVE_LONG_LONG 1
18995 _ACEOF
18996
18997   fi
18998
18999
19000   { echo "$as_me:$LINENO: checking for long double" >&5
19001 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19002 if test "${gt_cv_c_long_double+set}" = set; then
19003   echo $ECHO_N "(cached) $ECHO_C" >&6
19004 else
19005   if test "$GCC" = yes; then
19006        gt_cv_c_long_double=yes
19007      else
19008        cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h.  */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h.  */
19014
19015          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19016          long double foo = 0.0;
19017          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19018          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19019
19020 int
19021 main ()
19022 {
19023
19024   ;
19025   return 0;
19026 }
19027 _ACEOF
19028 rm -f conftest.$ac_objext
19029 if { (ac_try="$ac_compile"
19030 case "(($ac_try" in
19031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032   *) ac_try_echo=$ac_try;;
19033 esac
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035   (eval "$ac_compile") 2>conftest.er1
19036   ac_status=$?
19037   grep -v '^ *+' conftest.er1 >conftest.err
19038   rm -f conftest.er1
19039   cat conftest.err >&5
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); } && {
19042          test -z "$ac_c_werror_flag" ||
19043          test ! -s conftest.err
19044        } && test -s conftest.$ac_objext; then
19045   gt_cv_c_long_double=yes
19046 else
19047   echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19049
19050         gt_cv_c_long_double=no
19051 fi
19052
19053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19054      fi
19055 fi
19056 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19057 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19058   if test $gt_cv_c_long_double = yes; then
19059
19060 cat >>confdefs.h <<\_ACEOF
19061 #define HAVE_LONG_DOUBLE 1
19062 _ACEOF
19063
19064   fi
19065
19066
19067   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19068 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19069 if test "${gt_cv_c_wchar_t+set}" = set; then
19070   echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072   cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078 #include <stddef.h>
19079        wchar_t foo = (wchar_t)'\0';
19080 int
19081 main ()
19082 {
19083
19084   ;
19085   return 0;
19086 }
19087 _ACEOF
19088 rm -f conftest.$ac_objext
19089 if { (ac_try="$ac_compile"
19090 case "(($ac_try" in
19091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092   *) ac_try_echo=$ac_try;;
19093 esac
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095   (eval "$ac_compile") 2>conftest.er1
19096   ac_status=$?
19097   grep -v '^ *+' conftest.er1 >conftest.err
19098   rm -f conftest.er1
19099   cat conftest.err >&5
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); } && {
19102          test -z "$ac_c_werror_flag" ||
19103          test ! -s conftest.err
19104        } && test -s conftest.$ac_objext; then
19105   gt_cv_c_wchar_t=yes
19106 else
19107   echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19109
19110         gt_cv_c_wchar_t=no
19111 fi
19112
19113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19114 fi
19115 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19116 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19117   if test $gt_cv_c_wchar_t = yes; then
19118
19119 cat >>confdefs.h <<\_ACEOF
19120 #define HAVE_WCHAR_T 1
19121 _ACEOF
19122
19123   fi
19124
19125
19126   { echo "$as_me:$LINENO: checking for wint_t" >&5
19127 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19128 if test "${gt_cv_c_wint_t+set}" = set; then
19129   echo $ECHO_N "(cached) $ECHO_C" >&6
19130 else
19131   cat >conftest.$ac_ext <<_ACEOF
19132 /* confdefs.h.  */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h.  */
19137 #include <wchar.h>
19138        wint_t foo = (wchar_t)'\0';
19139 int
19140 main ()
19141 {
19142
19143   ;
19144   return 0;
19145 }
19146 _ACEOF
19147 rm -f conftest.$ac_objext
19148 if { (ac_try="$ac_compile"
19149 case "(($ac_try" in
19150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151   *) ac_try_echo=$ac_try;;
19152 esac
19153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154   (eval "$ac_compile") 2>conftest.er1
19155   ac_status=$?
19156   grep -v '^ *+' conftest.er1 >conftest.err
19157   rm -f conftest.er1
19158   cat conftest.err >&5
19159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160   (exit $ac_status); } && {
19161          test -z "$ac_c_werror_flag" ||
19162          test ! -s conftest.err
19163        } && test -s conftest.$ac_objext; then
19164   gt_cv_c_wint_t=yes
19165 else
19166   echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19168
19169         gt_cv_c_wint_t=no
19170 fi
19171
19172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173 fi
19174 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19175 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19176   if test $gt_cv_c_wint_t = yes; then
19177
19178 cat >>confdefs.h <<\_ACEOF
19179 #define HAVE_WINT_T 1
19180 _ACEOF
19181
19182   fi
19183
19184
19185   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19186 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19187 if test "${gl_cv_header_inttypes_h+set}" = set; then
19188   echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190   cat >conftest.$ac_ext <<_ACEOF
19191 /* confdefs.h.  */
19192 _ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h.  */
19196 #include <sys/types.h>
19197 #include <inttypes.h>
19198 int
19199 main ()
19200 {
19201 uintmax_t i = (uintmax_t) -1;
19202   ;
19203   return 0;
19204 }
19205 _ACEOF
19206 rm -f conftest.$ac_objext
19207 if { (ac_try="$ac_compile"
19208 case "(($ac_try" in
19209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210   *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213   (eval "$ac_compile") 2>conftest.er1
19214   ac_status=$?
19215   grep -v '^ *+' conftest.er1 >conftest.err
19216   rm -f conftest.er1
19217   cat conftest.err >&5
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); } && {
19220          test -z "$ac_c_werror_flag" ||
19221          test ! -s conftest.err
19222        } && test -s conftest.$ac_objext; then
19223   gl_cv_header_inttypes_h=yes
19224 else
19225   echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19227
19228         gl_cv_header_inttypes_h=no
19229 fi
19230
19231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19232 fi
19233 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19234 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19235   if test $gl_cv_header_inttypes_h = yes; then
19236
19237 cat >>confdefs.h <<_ACEOF
19238 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19239 _ACEOF
19240
19241   fi
19242
19243
19244   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19245 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19246 if test "${gl_cv_header_stdint_h+set}" = set; then
19247   echo $ECHO_N "(cached) $ECHO_C" >&6
19248 else
19249   cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h.  */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h.  */
19255 #include <sys/types.h>
19256 #include <stdint.h>
19257 int
19258 main ()
19259 {
19260 uintmax_t i = (uintmax_t) -1;
19261   ;
19262   return 0;
19263 }
19264 _ACEOF
19265 rm -f conftest.$ac_objext
19266 if { (ac_try="$ac_compile"
19267 case "(($ac_try" in
19268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269   *) ac_try_echo=$ac_try;;
19270 esac
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272   (eval "$ac_compile") 2>conftest.er1
19273   ac_status=$?
19274   grep -v '^ *+' conftest.er1 >conftest.err
19275   rm -f conftest.er1
19276   cat conftest.err >&5
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); } && {
19279          test -z "$ac_c_werror_flag" ||
19280          test ! -s conftest.err
19281        } && test -s conftest.$ac_objext; then
19282   gl_cv_header_stdint_h=yes
19283 else
19284   echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19286
19287         gl_cv_header_stdint_h=no
19288 fi
19289
19290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19291 fi
19292 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19293 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19294   if test $gl_cv_header_stdint_h = yes; then
19295
19296 cat >>confdefs.h <<_ACEOF
19297 #define HAVE_STDINT_H_WITH_UINTMAX 1
19298 _ACEOF
19299
19300   fi
19301
19302
19303
19304
19305   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19306 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19307 if test "${gt_cv_c_intmax_t+set}" = set; then
19308   echo $ECHO_N "(cached) $ECHO_C" >&6
19309 else
19310   cat >conftest.$ac_ext <<_ACEOF
19311 /* confdefs.h.  */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h.  */
19316
19317 #include <stddef.h>
19318 #include <stdlib.h>
19319 #if HAVE_STDINT_H_WITH_UINTMAX
19320 #include <stdint.h>
19321 #endif
19322 #if HAVE_INTTYPES_H_WITH_UINTMAX
19323 #include <inttypes.h>
19324 #endif
19325
19326 int
19327 main ()
19328 {
19329 intmax_t x = -1;
19330   ;
19331   return 0;
19332 }
19333 _ACEOF
19334 rm -f conftest.$ac_objext
19335 if { (ac_try="$ac_compile"
19336 case "(($ac_try" in
19337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338   *) ac_try_echo=$ac_try;;
19339 esac
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341   (eval "$ac_compile") 2>conftest.er1
19342   ac_status=$?
19343   grep -v '^ *+' conftest.er1 >conftest.err
19344   rm -f conftest.er1
19345   cat conftest.err >&5
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); } && {
19348          test -z "$ac_c_werror_flag" ||
19349          test ! -s conftest.err
19350        } && test -s conftest.$ac_objext; then
19351   gt_cv_c_intmax_t=yes
19352 else
19353   echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19355
19356         gt_cv_c_intmax_t=no
19357 fi
19358
19359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19360 fi
19361 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19362 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19363   if test $gt_cv_c_intmax_t = yes; then
19364
19365 cat >>confdefs.h <<\_ACEOF
19366 #define HAVE_INTMAX_T 1
19367 _ACEOF
19368
19369   fi
19370
19371
19372
19373   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19374 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19375 if test "${gt_cv_func_printf_posix+set}" = set; then
19376   echo $ECHO_N "(cached) $ECHO_C" >&6
19377 else
19378
19379       if test "$cross_compiling" = yes; then
19380
19381         cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h.  */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h.  */
19387
19388 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19389   notposix
19390 #endif
19391
19392 _ACEOF
19393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19394   $EGREP "notposix" >/dev/null 2>&1; then
19395   gt_cv_func_printf_posix="guessing no"
19396 else
19397   gt_cv_func_printf_posix="guessing yes"
19398 fi
19399 rm -f conftest*
19400
19401
19402 else
19403   cat >conftest.$ac_ext <<_ACEOF
19404 /* confdefs.h.  */
19405 _ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h.  */
19409
19410 #include <stdio.h>
19411 #include <string.h>
19412 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19413    dollar expansion (possibly an autoconf bug).  */
19414 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19415 static char buf[100];
19416 int main ()
19417 {
19418   sprintf (buf, format, 33, 55);
19419   return (strcmp (buf, "55 33") != 0);
19420 }
19421 _ACEOF
19422 rm -f conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426   *) ac_try_echo=$ac_try;;
19427 esac
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429   (eval "$ac_link") 2>&5
19430   ac_status=$?
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19433   { (case "(($ac_try" in
19434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435   *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438   (eval "$ac_try") 2>&5
19439   ac_status=$?
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); }; }; then
19442   gt_cv_func_printf_posix=yes
19443 else
19444   echo "$as_me: program exited with status $ac_status" >&5
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19447
19448 ( exit $ac_status )
19449 gt_cv_func_printf_posix=no
19450 fi
19451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19452 fi
19453
19454
19455
19456 fi
19457 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19458 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19459   case $gt_cv_func_printf_posix in
19460     *yes)
19461
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE_POSIX_PRINTF 1
19464 _ACEOF
19465
19466       ;;
19467   esac
19468
19469 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19470 # for constant arguments.  Useless!
19471 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19472 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19473 if test "${ac_cv_working_alloca_h+set}" = set; then
19474   echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476   cat >conftest.$ac_ext <<_ACEOF
19477 /* confdefs.h.  */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h.  */
19482 #include <alloca.h>
19483 int
19484 main ()
19485 {
19486 char *p = (char *) alloca (2 * sizeof (int));
19487                           if (p) return 0;
19488   ;
19489   return 0;
19490 }
19491 _ACEOF
19492 rm -f conftest.$ac_objext conftest$ac_exeext
19493 if { (ac_try="$ac_link"
19494 case "(($ac_try" in
19495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496   *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499   (eval "$ac_link") 2>conftest.er1
19500   ac_status=$?
19501   grep -v '^ *+' conftest.er1 >conftest.err
19502   rm -f conftest.er1
19503   cat conftest.err >&5
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); } && {
19506          test -z "$ac_c_werror_flag" ||
19507          test ! -s conftest.err
19508        } && test -s conftest$ac_exeext &&
19509        $as_test_x conftest$ac_exeext; then
19510   ac_cv_working_alloca_h=yes
19511 else
19512   echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19514
19515         ac_cv_working_alloca_h=no
19516 fi
19517
19518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19519       conftest$ac_exeext conftest.$ac_ext
19520 fi
19521 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19522 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19523 if test $ac_cv_working_alloca_h = yes; then
19524
19525 cat >>confdefs.h <<\_ACEOF
19526 #define HAVE_ALLOCA_H 1
19527 _ACEOF
19528
19529 fi
19530
19531 { echo "$as_me:$LINENO: checking for alloca" >&5
19532 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19533 if test "${ac_cv_func_alloca_works+set}" = set; then
19534   echo $ECHO_N "(cached) $ECHO_C" >&6
19535 else
19536   cat >conftest.$ac_ext <<_ACEOF
19537 /* confdefs.h.  */
19538 _ACEOF
19539 cat confdefs.h >>conftest.$ac_ext
19540 cat >>conftest.$ac_ext <<_ACEOF
19541 /* end confdefs.h.  */
19542 #ifdef __GNUC__
19543 # define alloca __builtin_alloca
19544 #else
19545 # ifdef _MSC_VER
19546 #  include <malloc.h>
19547 #  define alloca _alloca
19548 # else
19549 #  ifdef HAVE_ALLOCA_H
19550 #   include <alloca.h>
19551 #  else
19552 #   ifdef _AIX
19553  #pragma alloca
19554 #   else
19555 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19556 char *alloca ();
19557 #    endif
19558 #   endif
19559 #  endif
19560 # endif
19561 #endif
19562
19563 int
19564 main ()
19565 {
19566 char *p = (char *) alloca (1);
19567                                     if (p) return 0;
19568   ;
19569   return 0;
19570 }
19571 _ACEOF
19572 rm -f conftest.$ac_objext conftest$ac_exeext
19573 if { (ac_try="$ac_link"
19574 case "(($ac_try" in
19575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576   *) ac_try_echo=$ac_try;;
19577 esac
19578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19579   (eval "$ac_link") 2>conftest.er1
19580   ac_status=$?
19581   grep -v '^ *+' conftest.er1 >conftest.err
19582   rm -f conftest.er1
19583   cat conftest.err >&5
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); } && {
19586          test -z "$ac_c_werror_flag" ||
19587          test ! -s conftest.err
19588        } && test -s conftest$ac_exeext &&
19589        $as_test_x conftest$ac_exeext; then
19590   ac_cv_func_alloca_works=yes
19591 else
19592   echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19594
19595         ac_cv_func_alloca_works=no
19596 fi
19597
19598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19599       conftest$ac_exeext conftest.$ac_ext
19600 fi
19601 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19602 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19603
19604 if test $ac_cv_func_alloca_works = yes; then
19605
19606 cat >>confdefs.h <<\_ACEOF
19607 #define HAVE_ALLOCA 1
19608 _ACEOF
19609
19610 else
19611   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19612 # that cause trouble.  Some versions do not even contain alloca or
19613 # contain a buggy version.  If you still want to use their alloca,
19614 # use ar to extract alloca.o from them instead of compiling alloca.c.
19615
19616 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19617
19618 cat >>confdefs.h <<\_ACEOF
19619 #define C_ALLOCA 1
19620 _ACEOF
19621
19622
19623 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19624 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19625 if test "${ac_cv_os_cray+set}" = set; then
19626   echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628   cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h.  */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h.  */
19634 #if defined CRAY && ! defined CRAY2
19635 webecray
19636 #else
19637 wenotbecray
19638 #endif
19639
19640 _ACEOF
19641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19642   $EGREP "webecray" >/dev/null 2>&1; then
19643   ac_cv_os_cray=yes
19644 else
19645   ac_cv_os_cray=no
19646 fi
19647 rm -f conftest*
19648
19649 fi
19650 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19651 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19652 if test $ac_cv_os_cray = yes; then
19653   for ac_func in _getb67 GETB67 getb67; do
19654     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19658   echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660   cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h.  */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h.  */
19666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19668 #define $ac_func innocuous_$ac_func
19669
19670 /* System header to define __stub macros and hopefully few prototypes,
19671     which can conflict with char $ac_func (); below.
19672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19673     <limits.h> exists even on freestanding compilers.  */
19674
19675 #ifdef __STDC__
19676 # include <limits.h>
19677 #else
19678 # include <assert.h>
19679 #endif
19680
19681 #undef $ac_func
19682
19683 /* Override any GCC internal prototype to avoid an error.
19684    Use char because int might match the return type of a GCC
19685    builtin and then its argument prototype would still apply.  */
19686 #ifdef __cplusplus
19687 extern "C"
19688 #endif
19689 char $ac_func ();
19690 /* The GNU C library defines this for functions which it implements
19691     to always fail with ENOSYS.  Some functions are actually named
19692     something starting with __ and the normal name is an alias.  */
19693 #if defined __stub_$ac_func || defined __stub___$ac_func
19694 choke me
19695 #endif
19696
19697 int
19698 main ()
19699 {
19700 return $ac_func ();
19701   ;
19702   return 0;
19703 }
19704 _ACEOF
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (ac_try="$ac_link"
19707 case "(($ac_try" in
19708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709   *) ac_try_echo=$ac_try;;
19710 esac
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712   (eval "$ac_link") 2>conftest.er1
19713   ac_status=$?
19714   grep -v '^ *+' conftest.er1 >conftest.err
19715   rm -f conftest.er1
19716   cat conftest.err >&5
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); } && {
19719          test -z "$ac_c_werror_flag" ||
19720          test ! -s conftest.err
19721        } && test -s conftest$ac_exeext &&
19722        $as_test_x conftest$ac_exeext; then
19723   eval "$as_ac_var=yes"
19724 else
19725   echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19727
19728         eval "$as_ac_var=no"
19729 fi
19730
19731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19732       conftest$ac_exeext conftest.$ac_ext
19733 fi
19734 ac_res=`eval echo '${'$as_ac_var'}'`
19735                { echo "$as_me:$LINENO: result: $ac_res" >&5
19736 echo "${ECHO_T}$ac_res" >&6; }
19737 if test `eval echo '${'$as_ac_var'}'` = yes; then
19738
19739 cat >>confdefs.h <<_ACEOF
19740 #define CRAY_STACKSEG_END $ac_func
19741 _ACEOF
19742
19743     break
19744 fi
19745
19746   done
19747 fi
19748
19749 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19750 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19751 if test "${ac_cv_c_stack_direction+set}" = set; then
19752   echo $ECHO_N "(cached) $ECHO_C" >&6
19753 else
19754   if test "$cross_compiling" = yes; then
19755   ac_cv_c_stack_direction=0
19756 else
19757   cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h.  */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h.  */
19763 $ac_includes_default
19764 int
19765 find_stack_direction ()
19766 {
19767   static char *addr = 0;
19768   auto char dummy;
19769   if (addr == 0)
19770     {
19771       addr = &dummy;
19772       return find_stack_direction ();
19773     }
19774   else
19775     return (&dummy > addr) ? 1 : -1;
19776 }
19777
19778 int
19779 main ()
19780 {
19781   return find_stack_direction () < 0;
19782 }
19783 _ACEOF
19784 rm -f conftest$ac_exeext
19785 if { (ac_try="$ac_link"
19786 case "(($ac_try" in
19787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788   *) ac_try_echo=$ac_try;;
19789 esac
19790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791   (eval "$ac_link") 2>&5
19792   ac_status=$?
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19795   { (case "(($ac_try" in
19796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797   *) ac_try_echo=$ac_try;;
19798 esac
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800   (eval "$ac_try") 2>&5
19801   ac_status=$?
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); }; }; then
19804   ac_cv_c_stack_direction=1
19805 else
19806   echo "$as_me: program exited with status $ac_status" >&5
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19809
19810 ( exit $ac_status )
19811 ac_cv_c_stack_direction=-1
19812 fi
19813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19814 fi
19815
19816
19817 fi
19818 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19819 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19820
19821 cat >>confdefs.h <<_ACEOF
19822 #define STACK_DIRECTION $ac_cv_c_stack_direction
19823 _ACEOF
19824
19825
19826 fi
19827
19828
19829
19830 for ac_header in stdlib.h unistd.h
19831 do
19832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19834   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19837   echo $ECHO_N "(cached) $ECHO_C" >&6
19838 fi
19839 ac_res=`eval echo '${'$as_ac_Header'}'`
19840                { echo "$as_me:$LINENO: result: $ac_res" >&5
19841 echo "${ECHO_T}$ac_res" >&6; }
19842 else
19843   # Is the header compilable?
19844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19846 cat >conftest.$ac_ext <<_ACEOF
19847 /* confdefs.h.  */
19848 _ACEOF
19849 cat confdefs.h >>conftest.$ac_ext
19850 cat >>conftest.$ac_ext <<_ACEOF
19851 /* end confdefs.h.  */
19852 $ac_includes_default
19853 #include <$ac_header>
19854 _ACEOF
19855 rm -f conftest.$ac_objext
19856 if { (ac_try="$ac_compile"
19857 case "(($ac_try" in
19858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859   *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862   (eval "$ac_compile") 2>conftest.er1
19863   ac_status=$?
19864   grep -v '^ *+' conftest.er1 >conftest.err
19865   rm -f conftest.er1
19866   cat conftest.err >&5
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); } && {
19869          test -z "$ac_c_werror_flag" ||
19870          test ! -s conftest.err
19871        } && test -s conftest.$ac_objext; then
19872   ac_header_compiler=yes
19873 else
19874   echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877         ac_header_compiler=no
19878 fi
19879
19880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19882 echo "${ECHO_T}$ac_header_compiler" >&6; }
19883
19884 # Is the header present?
19885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19887 cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h.  */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h.  */
19893 #include <$ac_header>
19894 _ACEOF
19895 if { (ac_try="$ac_cpp conftest.$ac_ext"
19896 case "(($ac_try" in
19897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898   *) ac_try_echo=$ac_try;;
19899 esac
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19902   ac_status=$?
19903   grep -v '^ *+' conftest.er1 >conftest.err
19904   rm -f conftest.er1
19905   cat conftest.err >&5
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); } >/dev/null && {
19908          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19909          test ! -s conftest.err
19910        }; then
19911   ac_header_preproc=yes
19912 else
19913   echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19915
19916   ac_header_preproc=no
19917 fi
19918
19919 rm -f conftest.err conftest.$ac_ext
19920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19921 echo "${ECHO_T}$ac_header_preproc" >&6; }
19922
19923 # So?  What about this header?
19924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19925   yes:no: )
19926     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19930     ac_header_preproc=yes
19931     ;;
19932   no:yes:* )
19933     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19935     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19936 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19937     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19939     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19940 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19943     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19945
19946     ;;
19947 esac
19948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19951   echo $ECHO_N "(cached) $ECHO_C" >&6
19952 else
19953   eval "$as_ac_Header=\$ac_header_preproc"
19954 fi
19955 ac_res=`eval echo '${'$as_ac_Header'}'`
19956                { echo "$as_me:$LINENO: result: $ac_res" >&5
19957 echo "${ECHO_T}$ac_res" >&6; }
19958
19959 fi
19960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19961   cat >>confdefs.h <<_ACEOF
19962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19963 _ACEOF
19964
19965 fi
19966
19967 done
19968
19969
19970 for ac_func in getpagesize
19971 do
19972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19973 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19976   echo $ECHO_N "(cached) $ECHO_C" >&6
19977 else
19978   cat >conftest.$ac_ext <<_ACEOF
19979 /* confdefs.h.  */
19980 _ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h.  */
19984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19986 #define $ac_func innocuous_$ac_func
19987
19988 /* System header to define __stub macros and hopefully few prototypes,
19989     which can conflict with char $ac_func (); below.
19990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19991     <limits.h> exists even on freestanding compilers.  */
19992
19993 #ifdef __STDC__
19994 # include <limits.h>
19995 #else
19996 # include <assert.h>
19997 #endif
19998
19999 #undef $ac_func
20000
20001 /* Override any GCC internal prototype to avoid an error.
20002    Use char because int might match the return type of a GCC
20003    builtin and then its argument prototype would still apply.  */
20004 #ifdef __cplusplus
20005 extern "C"
20006 #endif
20007 char $ac_func ();
20008 /* The GNU C library defines this for functions which it implements
20009     to always fail with ENOSYS.  Some functions are actually named
20010     something starting with __ and the normal name is an alias.  */
20011 #if defined __stub_$ac_func || defined __stub___$ac_func
20012 choke me
20013 #endif
20014
20015 int
20016 main ()
20017 {
20018 return $ac_func ();
20019   ;
20020   return 0;
20021 }
20022 _ACEOF
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027   *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030   (eval "$ac_link") 2>conftest.er1
20031   ac_status=$?
20032   grep -v '^ *+' conftest.er1 >conftest.err
20033   rm -f conftest.er1
20034   cat conftest.err >&5
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); } && {
20037          test -z "$ac_c_werror_flag" ||
20038          test ! -s conftest.err
20039        } && test -s conftest$ac_exeext &&
20040        $as_test_x conftest$ac_exeext; then
20041   eval "$as_ac_var=yes"
20042 else
20043   echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20045
20046         eval "$as_ac_var=no"
20047 fi
20048
20049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20050       conftest$ac_exeext conftest.$ac_ext
20051 fi
20052 ac_res=`eval echo '${'$as_ac_var'}'`
20053                { echo "$as_me:$LINENO: result: $ac_res" >&5
20054 echo "${ECHO_T}$ac_res" >&6; }
20055 if test `eval echo '${'$as_ac_var'}'` = yes; then
20056   cat >>confdefs.h <<_ACEOF
20057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20058 _ACEOF
20059
20060 fi
20061 done
20062
20063 { echo "$as_me:$LINENO: checking for working mmap" >&5
20064 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20065 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20066   echo $ECHO_N "(cached) $ECHO_C" >&6
20067 else
20068   if test "$cross_compiling" = yes; then
20069   ac_cv_func_mmap_fixed_mapped=no
20070 else
20071   cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h.  */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h.  */
20077 $ac_includes_default
20078 /* malloc might have been renamed as rpl_malloc. */
20079 #undef malloc
20080
20081 /* Thanks to Mike Haertel and Jim Avera for this test.
20082    Here is a matrix of mmap possibilities:
20083         mmap private not fixed
20084         mmap private fixed at somewhere currently unmapped
20085         mmap private fixed at somewhere already mapped
20086         mmap shared not fixed
20087         mmap shared fixed at somewhere currently unmapped
20088         mmap shared fixed at somewhere already mapped
20089    For private mappings, we should verify that changes cannot be read()
20090    back from the file, nor mmap's back from the file at a different
20091    address.  (There have been systems where private was not correctly
20092    implemented like the infamous i386 svr4.0, and systems where the
20093    VM page cache was not coherent with the file system buffer cache
20094    like early versions of FreeBSD and possibly contemporary NetBSD.)
20095    For shared mappings, we should conversely verify that changes get
20096    propagated back to all the places they're supposed to be.
20097
20098    Grep wants private fixed already mapped.
20099    The main things grep needs to know about mmap are:
20100    * does it exist and is it safe to write into the mmap'd area
20101    * how to use it (BSD variants)  */
20102
20103 #include <fcntl.h>
20104 #include <sys/mman.h>
20105
20106 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20107 char *malloc ();
20108 #endif
20109
20110 /* This mess was copied from the GNU getpagesize.h.  */
20111 #ifndef HAVE_GETPAGESIZE
20112 /* Assume that all systems that can run configure have sys/param.h.  */
20113 # ifndef HAVE_SYS_PARAM_H
20114 #  define HAVE_SYS_PARAM_H 1
20115 # endif
20116
20117 # ifdef _SC_PAGESIZE
20118 #  define getpagesize() sysconf(_SC_PAGESIZE)
20119 # else /* no _SC_PAGESIZE */
20120 #  ifdef HAVE_SYS_PARAM_H
20121 #   include <sys/param.h>
20122 #   ifdef EXEC_PAGESIZE
20123 #    define getpagesize() EXEC_PAGESIZE
20124 #   else /* no EXEC_PAGESIZE */
20125 #    ifdef NBPG
20126 #     define getpagesize() NBPG * CLSIZE
20127 #     ifndef CLSIZE
20128 #      define CLSIZE 1
20129 #     endif /* no CLSIZE */
20130 #    else /* no NBPG */
20131 #     ifdef NBPC
20132 #      define getpagesize() NBPC
20133 #     else /* no NBPC */
20134 #      ifdef PAGESIZE
20135 #       define getpagesize() PAGESIZE
20136 #      endif /* PAGESIZE */
20137 #     endif /* no NBPC */
20138 #    endif /* no NBPG */
20139 #   endif /* no EXEC_PAGESIZE */
20140 #  else /* no HAVE_SYS_PARAM_H */
20141 #   define getpagesize() 8192   /* punt totally */
20142 #  endif /* no HAVE_SYS_PARAM_H */
20143 # endif /* no _SC_PAGESIZE */
20144
20145 #endif /* no HAVE_GETPAGESIZE */
20146
20147 int
20148 main ()
20149 {
20150   char *data, *data2, *data3;
20151   int i, pagesize;
20152   int fd;
20153
20154   pagesize = getpagesize ();
20155
20156   /* First, make a file with some known garbage in it. */
20157   data = (char *) malloc (pagesize);
20158   if (!data)
20159     return 1;
20160   for (i = 0; i < pagesize; ++i)
20161     *(data + i) = rand ();
20162   umask (0);
20163   fd = creat ("conftest.mmap", 0600);
20164   if (fd < 0)
20165     return 1;
20166   if (write (fd, data, pagesize) != pagesize)
20167     return 1;
20168   close (fd);
20169
20170   /* Next, try to mmap the file at a fixed address which already has
20171      something else allocated at it.  If we can, also make sure that
20172      we see the same garbage.  */
20173   fd = open ("conftest.mmap", O_RDWR);
20174   if (fd < 0)
20175     return 1;
20176   data2 = (char *) malloc (2 * pagesize);
20177   if (!data2)
20178     return 1;
20179   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20180   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20181                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20182     return 1;
20183   for (i = 0; i < pagesize; ++i)
20184     if (*(data + i) != *(data2 + i))
20185       return 1;
20186
20187   /* Finally, make sure that changes to the mapped area do not
20188      percolate back to the file as seen by read().  (This is a bug on
20189      some variants of i386 svr4.0.)  */
20190   for (i = 0; i < pagesize; ++i)
20191     *(data2 + i) = *(data2 + i) + 1;
20192   data3 = (char *) malloc (pagesize);
20193   if (!data3)
20194     return 1;
20195   if (read (fd, data3, pagesize) != pagesize)
20196     return 1;
20197   for (i = 0; i < pagesize; ++i)
20198     if (*(data + i) != *(data3 + i))
20199       return 1;
20200   close (fd);
20201   return 0;
20202 }
20203 _ACEOF
20204 rm -f conftest$ac_exeext
20205 if { (ac_try="$ac_link"
20206 case "(($ac_try" in
20207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208   *) ac_try_echo=$ac_try;;
20209 esac
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211   (eval "$ac_link") 2>&5
20212   ac_status=$?
20213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20215   { (case "(($ac_try" in
20216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217   *) ac_try_echo=$ac_try;;
20218 esac
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220   (eval "$ac_try") 2>&5
20221   ac_status=$?
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); }; }; then
20224   ac_cv_func_mmap_fixed_mapped=yes
20225 else
20226   echo "$as_me: program exited with status $ac_status" >&5
20227 echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20229
20230 ( exit $ac_status )
20231 ac_cv_func_mmap_fixed_mapped=no
20232 fi
20233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20234 fi
20235
20236
20237 fi
20238 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20239 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20240 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20241
20242 cat >>confdefs.h <<\_ACEOF
20243 #define HAVE_MMAP 1
20244 _ACEOF
20245
20246 fi
20247 rm -f conftest.mmap
20248
20249
20250     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20251 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20252 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20253   echo $ECHO_N "(cached) $ECHO_C" >&6
20254 else
20255   cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h.  */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h.  */
20261
20262 #include <features.h>
20263 #ifdef __GNU_LIBRARY__
20264  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20265   Lucky GNU user
20266  #endif
20267 #endif
20268
20269 _ACEOF
20270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20271   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20272   ac_cv_gnu_library_2_1=yes
20273 else
20274   ac_cv_gnu_library_2_1=no
20275 fi
20276 rm -f conftest*
20277
20278
20279
20280 fi
20281 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20282 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20283
20284     GLIBC21="$ac_cv_gnu_library_2_1"
20285
20286
20287
20288
20289   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20290 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20291 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20292   echo $ECHO_N "(cached) $ECHO_C" >&6
20293 else
20294
20295       if test "$cross_compiling" = yes; then
20296
20297           # Guess based on the CPU.
20298           case "$host_cpu" in
20299             alpha* | i3456786 | m68k | s390*)
20300               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20301             *)
20302               gt_cv_int_divbyzero_sigfpe="guessing no";;
20303           esac
20304
20305 else
20306   cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h.  */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h.  */
20312
20313 #include <stdlib.h>
20314 #include <signal.h>
20315
20316 static void
20317 #ifdef __cplusplus
20318 sigfpe_handler (int sig)
20319 #else
20320 sigfpe_handler (sig) int sig;
20321 #endif
20322 {
20323   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20324   exit (sig != SIGFPE);
20325 }
20326
20327 int x = 1;
20328 int y = 0;
20329 int z;
20330 int nan;
20331
20332 int main ()
20333 {
20334   signal (SIGFPE, sigfpe_handler);
20335 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20336 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20337   signal (SIGTRAP, sigfpe_handler);
20338 #endif
20339 /* Linux/SPARC yields signal SIGILL.  */
20340 #if defined (__sparc__) && defined (__linux__)
20341   signal (SIGILL, sigfpe_handler);
20342 #endif
20343
20344   z = x / y;
20345   nan = y / y;
20346   exit (1);
20347 }
20348
20349 _ACEOF
20350 rm -f conftest$ac_exeext
20351 if { (ac_try="$ac_link"
20352 case "(($ac_try" in
20353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354   *) ac_try_echo=$ac_try;;
20355 esac
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357   (eval "$ac_link") 2>&5
20358   ac_status=$?
20359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20361   { (case "(($ac_try" in
20362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363   *) ac_try_echo=$ac_try;;
20364 esac
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366   (eval "$ac_try") 2>&5
20367   ac_status=$?
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); }; }; then
20370   gt_cv_int_divbyzero_sigfpe=yes
20371 else
20372   echo "$as_me: program exited with status $ac_status" >&5
20373 echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20375
20376 ( exit $ac_status )
20377 gt_cv_int_divbyzero_sigfpe=no
20378 fi
20379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20380 fi
20381
20382
20383
20384 fi
20385 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20386 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20387   case "$gt_cv_int_divbyzero_sigfpe" in
20388     *yes) value=1;;
20389     *) value=0;;
20390   esac
20391
20392 cat >>confdefs.h <<_ACEOF
20393 #define INTDIV0_RAISES_SIGFPE $value
20394 _ACEOF
20395
20396
20397
20398   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20399 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20400 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20401   echo $ECHO_N "(cached) $ECHO_C" >&6
20402 else
20403   cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h.  */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h.  */
20409 unsigned long long ull = 1ULL; int i = 63;
20410 int
20411 main ()
20412 {
20413 unsigned long long ullmax = (unsigned long long) -1;
20414      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20415   ;
20416   return 0;
20417 }
20418 _ACEOF
20419 rm -f conftest.$ac_objext conftest$ac_exeext
20420 if { (ac_try="$ac_link"
20421 case "(($ac_try" in
20422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423   *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426   (eval "$ac_link") 2>conftest.er1
20427   ac_status=$?
20428   grep -v '^ *+' conftest.er1 >conftest.err
20429   rm -f conftest.er1
20430   cat conftest.err >&5
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); } && {
20433          test -z "$ac_c_werror_flag" ||
20434          test ! -s conftest.err
20435        } && test -s conftest$ac_exeext &&
20436        $as_test_x conftest$ac_exeext; then
20437   ac_cv_type_unsigned_long_long=yes
20438 else
20439   echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20441
20442         ac_cv_type_unsigned_long_long=no
20443 fi
20444
20445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20446       conftest$ac_exeext conftest.$ac_ext
20447 fi
20448 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20449 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20450   if test $ac_cv_type_unsigned_long_long = yes; then
20451
20452 cat >>confdefs.h <<\_ACEOF
20453 #define HAVE_UNSIGNED_LONG_LONG 1
20454 _ACEOF
20455
20456   fi
20457
20458
20459
20460
20461   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20462
20463     test $ac_cv_type_unsigned_long_long = yes \
20464       && ac_type='unsigned long long' \
20465       || ac_type='unsigned long'
20466
20467 cat >>confdefs.h <<_ACEOF
20468 #define uintmax_t $ac_type
20469 _ACEOF
20470
20471   else
20472
20473 cat >>confdefs.h <<\_ACEOF
20474 #define HAVE_UINTMAX_T 1
20475 _ACEOF
20476
20477   fi
20478
20479
20480   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20481 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20482 if test "${gt_cv_header_inttypes_h+set}" = set; then
20483   echo $ECHO_N "(cached) $ECHO_C" >&6
20484 else
20485
20486     cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h.  */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h.  */
20492 #include <sys/types.h>
20493 #include <inttypes.h>
20494 int
20495 main ()
20496 {
20497
20498   ;
20499   return 0;
20500 }
20501 _ACEOF
20502 rm -f conftest.$ac_objext
20503 if { (ac_try="$ac_compile"
20504 case "(($ac_try" in
20505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506   *) ac_try_echo=$ac_try;;
20507 esac
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509   (eval "$ac_compile") 2>conftest.er1
20510   ac_status=$?
20511   grep -v '^ *+' conftest.er1 >conftest.err
20512   rm -f conftest.er1
20513   cat conftest.err >&5
20514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515   (exit $ac_status); } && {
20516          test -z "$ac_c_werror_flag" ||
20517          test ! -s conftest.err
20518        } && test -s conftest.$ac_objext; then
20519   gt_cv_header_inttypes_h=yes
20520 else
20521   echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20523
20524         gt_cv_header_inttypes_h=no
20525 fi
20526
20527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20528
20529 fi
20530 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20531 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20532   if test $gt_cv_header_inttypes_h = yes; then
20533
20534 cat >>confdefs.h <<_ACEOF
20535 #define HAVE_INTTYPES_H 1
20536 _ACEOF
20537
20538   fi
20539
20540
20541
20542   if test $gt_cv_header_inttypes_h = yes; then
20543     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20544 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20545 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20546   echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548
20549         cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h.  */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h.  */
20555 #include <inttypes.h>
20556 #ifdef PRId32
20557 char *p = PRId32;
20558 #endif
20559
20560 int
20561 main ()
20562 {
20563
20564   ;
20565   return 0;
20566 }
20567 _ACEOF
20568 rm -f conftest.$ac_objext
20569 if { (ac_try="$ac_compile"
20570 case "(($ac_try" in
20571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572   *) ac_try_echo=$ac_try;;
20573 esac
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575   (eval "$ac_compile") 2>conftest.er1
20576   ac_status=$?
20577   grep -v '^ *+' conftest.er1 >conftest.err
20578   rm -f conftest.er1
20579   cat conftest.err >&5
20580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581   (exit $ac_status); } && {
20582          test -z "$ac_c_werror_flag" ||
20583          test ! -s conftest.err
20584        } && test -s conftest.$ac_objext; then
20585   gt_cv_inttypes_pri_broken=no
20586 else
20587   echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20589
20590         gt_cv_inttypes_pri_broken=yes
20591 fi
20592
20593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20594
20595 fi
20596 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20597 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20598   fi
20599   if test "$gt_cv_inttypes_pri_broken" = yes; then
20600
20601 cat >>confdefs.h <<_ACEOF
20602 #define PRI_MACROS_BROKEN 1
20603 _ACEOF
20604
20605   fi
20606
20607
20608
20609 for ac_header in stdint.h
20610 do
20611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20613   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20616   echo $ECHO_N "(cached) $ECHO_C" >&6
20617 fi
20618 ac_res=`eval echo '${'$as_ac_Header'}'`
20619                { echo "$as_me:$LINENO: result: $ac_res" >&5
20620 echo "${ECHO_T}$ac_res" >&6; }
20621 else
20622   # Is the header compilable?
20623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20625 cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h.  */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h.  */
20631 $ac_includes_default
20632 #include <$ac_header>
20633 _ACEOF
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638   *) ac_try_echo=$ac_try;;
20639 esac
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641   (eval "$ac_compile") 2>conftest.er1
20642   ac_status=$?
20643   grep -v '^ *+' conftest.er1 >conftest.err
20644   rm -f conftest.er1
20645   cat conftest.err >&5
20646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647   (exit $ac_status); } && {
20648          test -z "$ac_c_werror_flag" ||
20649          test ! -s conftest.err
20650        } && test -s conftest.$ac_objext; then
20651   ac_header_compiler=yes
20652 else
20653   echo "$as_me: failed program was:" >&5
20654 sed 's/^/| /' conftest.$ac_ext >&5
20655
20656         ac_header_compiler=no
20657 fi
20658
20659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20661 echo "${ECHO_T}$ac_header_compiler" >&6; }
20662
20663 # Is the header present?
20664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20666 cat >conftest.$ac_ext <<_ACEOF
20667 /* confdefs.h.  */
20668 _ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h.  */
20672 #include <$ac_header>
20673 _ACEOF
20674 if { (ac_try="$ac_cpp conftest.$ac_ext"
20675 case "(($ac_try" in
20676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677   *) ac_try_echo=$ac_try;;
20678 esac
20679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20681   ac_status=$?
20682   grep -v '^ *+' conftest.er1 >conftest.err
20683   rm -f conftest.er1
20684   cat conftest.err >&5
20685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686   (exit $ac_status); } >/dev/null && {
20687          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20688          test ! -s conftest.err
20689        }; then
20690   ac_header_preproc=yes
20691 else
20692   echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695   ac_header_preproc=no
20696 fi
20697
20698 rm -f conftest.err conftest.$ac_ext
20699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20700 echo "${ECHO_T}$ac_header_preproc" >&6; }
20701
20702 # So?  What about this header?
20703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20704   yes:no: )
20705     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20709     ac_header_preproc=yes
20710     ;;
20711   no:yes:* )
20712     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20714     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20715 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20716     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20718     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20719 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20722     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20724
20725     ;;
20726 esac
20727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20730   echo $ECHO_N "(cached) $ECHO_C" >&6
20731 else
20732   eval "$as_ac_Header=\$ac_header_preproc"
20733 fi
20734 ac_res=`eval echo '${'$as_ac_Header'}'`
20735                { echo "$as_me:$LINENO: result: $ac_res" >&5
20736 echo "${ECHO_T}$ac_res" >&6; }
20737
20738 fi
20739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20740   cat >>confdefs.h <<_ACEOF
20741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20742 _ACEOF
20743
20744 fi
20745
20746 done
20747
20748     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20749 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20750   result=
20751   cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h.  */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h.  */
20757
20758 #include <limits.h>
20759 #if HAVE_STDINT_H
20760 #include <stdint.h>
20761 #endif
20762 #ifdef SIZE_MAX
20763 Found it
20764 #endif
20765
20766 _ACEOF
20767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20768   $EGREP "Found it" >/dev/null 2>&1; then
20769   result=yes
20770 fi
20771 rm -f conftest*
20772
20773   if test -z "$result"; then
20774                     if test "$cross_compiling" = yes; then
20775   # Depending upon the size, compute the lo and hi bounds.
20776 cat >conftest.$ac_ext <<_ACEOF
20777 /* confdefs.h.  */
20778 _ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h.  */
20782 #include <stddef.h>
20783 int
20784 main ()
20785 {
20786 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20787 test_array [0] = 0
20788
20789   ;
20790   return 0;
20791 }
20792 _ACEOF
20793 rm -f conftest.$ac_objext
20794 if { (ac_try="$ac_compile"
20795 case "(($ac_try" in
20796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797   *) ac_try_echo=$ac_try;;
20798 esac
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800   (eval "$ac_compile") 2>conftest.er1
20801   ac_status=$?
20802   grep -v '^ *+' conftest.er1 >conftest.err
20803   rm -f conftest.er1
20804   cat conftest.err >&5
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); } && {
20807          test -z "$ac_c_werror_flag" ||
20808          test ! -s conftest.err
20809        } && test -s conftest.$ac_objext; then
20810   ac_lo=0 ac_mid=0
20811   while :; do
20812     cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h.  */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h.  */
20818 #include <stddef.h>
20819 int
20820 main ()
20821 {
20822 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20823 test_array [0] = 0
20824
20825   ;
20826   return 0;
20827 }
20828 _ACEOF
20829 rm -f conftest.$ac_objext
20830 if { (ac_try="$ac_compile"
20831 case "(($ac_try" in
20832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833   *) ac_try_echo=$ac_try;;
20834 esac
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836   (eval "$ac_compile") 2>conftest.er1
20837   ac_status=$?
20838   grep -v '^ *+' conftest.er1 >conftest.err
20839   rm -f conftest.er1
20840   cat conftest.err >&5
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); } && {
20843          test -z "$ac_c_werror_flag" ||
20844          test ! -s conftest.err
20845        } && test -s conftest.$ac_objext; then
20846   ac_hi=$ac_mid; break
20847 else
20848   echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20850
20851         ac_lo=`expr $ac_mid + 1`
20852                         if test $ac_lo -le $ac_mid; then
20853                           ac_lo= ac_hi=
20854                           break
20855                         fi
20856                         ac_mid=`expr 2 '*' $ac_mid + 1`
20857 fi
20858
20859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20860   done
20861 else
20862   echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20864
20865         cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h.  */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h.  */
20871 #include <stddef.h>
20872 int
20873 main ()
20874 {
20875 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20876 test_array [0] = 0
20877
20878   ;
20879   return 0;
20880 }
20881 _ACEOF
20882 rm -f conftest.$ac_objext
20883 if { (ac_try="$ac_compile"
20884 case "(($ac_try" in
20885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886   *) ac_try_echo=$ac_try;;
20887 esac
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889   (eval "$ac_compile") 2>conftest.er1
20890   ac_status=$?
20891   grep -v '^ *+' conftest.er1 >conftest.err
20892   rm -f conftest.er1
20893   cat conftest.err >&5
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); } && {
20896          test -z "$ac_c_werror_flag" ||
20897          test ! -s conftest.err
20898        } && test -s conftest.$ac_objext; then
20899   ac_hi=-1 ac_mid=-1
20900   while :; do
20901     cat >conftest.$ac_ext <<_ACEOF
20902 /* confdefs.h.  */
20903 _ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h.  */
20907 #include <stddef.h>
20908 int
20909 main ()
20910 {
20911 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20912 test_array [0] = 0
20913
20914   ;
20915   return 0;
20916 }
20917 _ACEOF
20918 rm -f conftest.$ac_objext
20919 if { (ac_try="$ac_compile"
20920 case "(($ac_try" in
20921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922   *) ac_try_echo=$ac_try;;
20923 esac
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925   (eval "$ac_compile") 2>conftest.er1
20926   ac_status=$?
20927   grep -v '^ *+' conftest.er1 >conftest.err
20928   rm -f conftest.er1
20929   cat conftest.err >&5
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); } && {
20932          test -z "$ac_c_werror_flag" ||
20933          test ! -s conftest.err
20934        } && test -s conftest.$ac_objext; then
20935   ac_lo=$ac_mid; break
20936 else
20937   echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940         ac_hi=`expr '(' $ac_mid ')' - 1`
20941                         if test $ac_mid -le $ac_hi; then
20942                           ac_lo= ac_hi=
20943                           break
20944                         fi
20945                         ac_mid=`expr 2 '*' $ac_mid`
20946 fi
20947
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20949   done
20950 else
20951   echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20953
20954         ac_lo= ac_hi=
20955 fi
20956
20957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20958 fi
20959
20960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961 # Binary search between lo and hi bounds.
20962 while test "x$ac_lo" != "x$ac_hi"; do
20963   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20964   cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h.  */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h.  */
20970 #include <stddef.h>
20971 int
20972 main ()
20973 {
20974 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20975 test_array [0] = 0
20976
20977   ;
20978   return 0;
20979 }
20980 _ACEOF
20981 rm -f conftest.$ac_objext
20982 if { (ac_try="$ac_compile"
20983 case "(($ac_try" in
20984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985   *) ac_try_echo=$ac_try;;
20986 esac
20987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20988   (eval "$ac_compile") 2>conftest.er1
20989   ac_status=$?
20990   grep -v '^ *+' conftest.er1 >conftest.err
20991   rm -f conftest.er1
20992   cat conftest.err >&5
20993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994   (exit $ac_status); } && {
20995          test -z "$ac_c_werror_flag" ||
20996          test ! -s conftest.err
20997        } && test -s conftest.$ac_objext; then
20998   ac_hi=$ac_mid
20999 else
21000   echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003         ac_lo=`expr '(' $ac_mid ')' + 1`
21004 fi
21005
21006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007 done
21008 case $ac_lo in
21009 ?*) res_hi=$ac_lo;;
21010 '') result=? ;;
21011 esac
21012 else
21013   cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h.  */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h.  */
21019 #include <stddef.h>
21020 static long int longval () { return ~(size_t)0 / 10; }
21021 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21022 #include <stdio.h>
21023 #include <stdlib.h>
21024 int
21025 main ()
21026 {
21027
21028   FILE *f = fopen ("conftest.val", "w");
21029   if (! f)
21030     return 1;
21031   if ((~(size_t)0 / 10) < 0)
21032     {
21033       long int i = longval ();
21034       if (i != (~(size_t)0 / 10))
21035         return 1;
21036       fprintf (f, "%ld\n", i);
21037     }
21038   else
21039     {
21040       unsigned long int i = ulongval ();
21041       if (i != (~(size_t)0 / 10))
21042         return 1;
21043       fprintf (f, "%lu\n", i);
21044     }
21045   return ferror (f) || fclose (f) != 0;
21046
21047   ;
21048   return 0;
21049 }
21050 _ACEOF
21051 rm -f conftest$ac_exeext
21052 if { (ac_try="$ac_link"
21053 case "(($ac_try" in
21054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055   *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058   (eval "$ac_link") 2>&5
21059   ac_status=$?
21060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21062   { (case "(($ac_try" in
21063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064   *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067   (eval "$ac_try") 2>&5
21068   ac_status=$?
21069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070   (exit $ac_status); }; }; then
21071   res_hi=`cat conftest.val`
21072 else
21073   echo "$as_me: program exited with status $ac_status" >&5
21074 echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21076
21077 ( exit $ac_status )
21078 result=?
21079 fi
21080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21081 fi
21082 rm -f conftest.val
21083
21084     if test "$cross_compiling" = yes; then
21085   # Depending upon the size, compute the lo and hi bounds.
21086 cat >conftest.$ac_ext <<_ACEOF
21087 /* confdefs.h.  */
21088 _ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h.  */
21092 #include <stddef.h>
21093 int
21094 main ()
21095 {
21096 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21097 test_array [0] = 0
21098
21099   ;
21100   return 0;
21101 }
21102 _ACEOF
21103 rm -f conftest.$ac_objext
21104 if { (ac_try="$ac_compile"
21105 case "(($ac_try" in
21106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107   *) ac_try_echo=$ac_try;;
21108 esac
21109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110   (eval "$ac_compile") 2>conftest.er1
21111   ac_status=$?
21112   grep -v '^ *+' conftest.er1 >conftest.err
21113   rm -f conftest.er1
21114   cat conftest.err >&5
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); } && {
21117          test -z "$ac_c_werror_flag" ||
21118          test ! -s conftest.err
21119        } && test -s conftest.$ac_objext; then
21120   ac_lo=0 ac_mid=0
21121   while :; do
21122     cat >conftest.$ac_ext <<_ACEOF
21123 /* confdefs.h.  */
21124 _ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h.  */
21128 #include <stddef.h>
21129 int
21130 main ()
21131 {
21132 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21133 test_array [0] = 0
21134
21135   ;
21136   return 0;
21137 }
21138 _ACEOF
21139 rm -f conftest.$ac_objext
21140 if { (ac_try="$ac_compile"
21141 case "(($ac_try" in
21142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143   *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146   (eval "$ac_compile") 2>conftest.er1
21147   ac_status=$?
21148   grep -v '^ *+' conftest.er1 >conftest.err
21149   rm -f conftest.er1
21150   cat conftest.err >&5
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); } && {
21153          test -z "$ac_c_werror_flag" ||
21154          test ! -s conftest.err
21155        } && test -s conftest.$ac_objext; then
21156   ac_hi=$ac_mid; break
21157 else
21158   echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21160
21161         ac_lo=`expr $ac_mid + 1`
21162                         if test $ac_lo -le $ac_mid; then
21163                           ac_lo= ac_hi=
21164                           break
21165                         fi
21166                         ac_mid=`expr 2 '*' $ac_mid + 1`
21167 fi
21168
21169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21170   done
21171 else
21172   echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21174
21175         cat >conftest.$ac_ext <<_ACEOF
21176 /* confdefs.h.  */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h.  */
21181 #include <stddef.h>
21182 int
21183 main ()
21184 {
21185 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21186 test_array [0] = 0
21187
21188   ;
21189   return 0;
21190 }
21191 _ACEOF
21192 rm -f conftest.$ac_objext
21193 if { (ac_try="$ac_compile"
21194 case "(($ac_try" in
21195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21196   *) ac_try_echo=$ac_try;;
21197 esac
21198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21199   (eval "$ac_compile") 2>conftest.er1
21200   ac_status=$?
21201   grep -v '^ *+' conftest.er1 >conftest.err
21202   rm -f conftest.er1
21203   cat conftest.err >&5
21204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205   (exit $ac_status); } && {
21206          test -z "$ac_c_werror_flag" ||
21207          test ! -s conftest.err
21208        } && test -s conftest.$ac_objext; then
21209   ac_hi=-1 ac_mid=-1
21210   while :; do
21211     cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h.  */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h.  */
21217 #include <stddef.h>
21218 int
21219 main ()
21220 {
21221 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21222 test_array [0] = 0
21223
21224   ;
21225   return 0;
21226 }
21227 _ACEOF
21228 rm -f conftest.$ac_objext
21229 if { (ac_try="$ac_compile"
21230 case "(($ac_try" in
21231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232   *) ac_try_echo=$ac_try;;
21233 esac
21234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235   (eval "$ac_compile") 2>conftest.er1
21236   ac_status=$?
21237   grep -v '^ *+' conftest.er1 >conftest.err
21238   rm -f conftest.er1
21239   cat conftest.err >&5
21240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241   (exit $ac_status); } && {
21242          test -z "$ac_c_werror_flag" ||
21243          test ! -s conftest.err
21244        } && test -s conftest.$ac_objext; then
21245   ac_lo=$ac_mid; break
21246 else
21247   echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21249
21250         ac_hi=`expr '(' $ac_mid ')' - 1`
21251                         if test $ac_mid -le $ac_hi; then
21252                           ac_lo= ac_hi=
21253                           break
21254                         fi
21255                         ac_mid=`expr 2 '*' $ac_mid`
21256 fi
21257
21258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21259   done
21260 else
21261   echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264         ac_lo= ac_hi=
21265 fi
21266
21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268 fi
21269
21270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21271 # Binary search between lo and hi bounds.
21272 while test "x$ac_lo" != "x$ac_hi"; do
21273   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21274   cat >conftest.$ac_ext <<_ACEOF
21275 /* confdefs.h.  */
21276 _ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h.  */
21280 #include <stddef.h>
21281 int
21282 main ()
21283 {
21284 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21285 test_array [0] = 0
21286
21287   ;
21288   return 0;
21289 }
21290 _ACEOF
21291 rm -f conftest.$ac_objext
21292 if { (ac_try="$ac_compile"
21293 case "(($ac_try" in
21294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295   *) ac_try_echo=$ac_try;;
21296 esac
21297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298   (eval "$ac_compile") 2>conftest.er1
21299   ac_status=$?
21300   grep -v '^ *+' conftest.er1 >conftest.err
21301   rm -f conftest.er1
21302   cat conftest.err >&5
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); } && {
21305          test -z "$ac_c_werror_flag" ||
21306          test ! -s conftest.err
21307        } && test -s conftest.$ac_objext; then
21308   ac_hi=$ac_mid
21309 else
21310   echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21312
21313         ac_lo=`expr '(' $ac_mid ')' + 1`
21314 fi
21315
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 done
21318 case $ac_lo in
21319 ?*) res_lo=$ac_lo;;
21320 '') result=? ;;
21321 esac
21322 else
21323   cat >conftest.$ac_ext <<_ACEOF
21324 /* confdefs.h.  */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h.  */
21329 #include <stddef.h>
21330 static long int longval () { return ~(size_t)0 % 10; }
21331 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21332 #include <stdio.h>
21333 #include <stdlib.h>
21334 int
21335 main ()
21336 {
21337
21338   FILE *f = fopen ("conftest.val", "w");
21339   if (! f)
21340     return 1;
21341   if ((~(size_t)0 % 10) < 0)
21342     {
21343       long int i = longval ();
21344       if (i != (~(size_t)0 % 10))
21345         return 1;
21346       fprintf (f, "%ld\n", i);
21347     }
21348   else
21349     {
21350       unsigned long int i = ulongval ();
21351       if (i != (~(size_t)0 % 10))
21352         return 1;
21353       fprintf (f, "%lu\n", i);
21354     }
21355   return ferror (f) || fclose (f) != 0;
21356
21357   ;
21358   return 0;
21359 }
21360 _ACEOF
21361 rm -f conftest$ac_exeext
21362 if { (ac_try="$ac_link"
21363 case "(($ac_try" in
21364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365   *) ac_try_echo=$ac_try;;
21366 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368   (eval "$ac_link") 2>&5
21369   ac_status=$?
21370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21372   { (case "(($ac_try" in
21373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374   *) ac_try_echo=$ac_try;;
21375 esac
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377   (eval "$ac_try") 2>&5
21378   ac_status=$?
21379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380   (exit $ac_status); }; }; then
21381   res_lo=`cat conftest.val`
21382 else
21383   echo "$as_me: program exited with status $ac_status" >&5
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 ( exit $ac_status )
21388 result=?
21389 fi
21390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21391 fi
21392 rm -f conftest.val
21393
21394     if test "$cross_compiling" = yes; then
21395   # Depending upon the size, compute the lo and hi bounds.
21396 cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h.  */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h.  */
21402 #include <stddef.h>
21403 int
21404 main ()
21405 {
21406 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21407 test_array [0] = 0
21408
21409   ;
21410   return 0;
21411 }
21412 _ACEOF
21413 rm -f conftest.$ac_objext
21414 if { (ac_try="$ac_compile"
21415 case "(($ac_try" in
21416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417   *) ac_try_echo=$ac_try;;
21418 esac
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420   (eval "$ac_compile") 2>conftest.er1
21421   ac_status=$?
21422   grep -v '^ *+' conftest.er1 >conftest.err
21423   rm -f conftest.er1
21424   cat conftest.err >&5
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); } && {
21427          test -z "$ac_c_werror_flag" ||
21428          test ! -s conftest.err
21429        } && test -s conftest.$ac_objext; then
21430   ac_lo=0 ac_mid=0
21431   while :; do
21432     cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h.  */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h.  */
21438 #include <stddef.h>
21439 int
21440 main ()
21441 {
21442 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21443 test_array [0] = 0
21444
21445   ;
21446   return 0;
21447 }
21448 _ACEOF
21449 rm -f conftest.$ac_objext
21450 if { (ac_try="$ac_compile"
21451 case "(($ac_try" in
21452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453   *) ac_try_echo=$ac_try;;
21454 esac
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456   (eval "$ac_compile") 2>conftest.er1
21457   ac_status=$?
21458   grep -v '^ *+' conftest.er1 >conftest.err
21459   rm -f conftest.er1
21460   cat conftest.err >&5
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); } && {
21463          test -z "$ac_c_werror_flag" ||
21464          test ! -s conftest.err
21465        } && test -s conftest.$ac_objext; then
21466   ac_hi=$ac_mid; break
21467 else
21468   echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
21471         ac_lo=`expr $ac_mid + 1`
21472                         if test $ac_lo -le $ac_mid; then
21473                           ac_lo= ac_hi=
21474                           break
21475                         fi
21476                         ac_mid=`expr 2 '*' $ac_mid + 1`
21477 fi
21478
21479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21480   done
21481 else
21482   echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21484
21485         cat >conftest.$ac_ext <<_ACEOF
21486 /* confdefs.h.  */
21487 _ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h.  */
21491 #include <stddef.h>
21492 int
21493 main ()
21494 {
21495 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21496 test_array [0] = 0
21497
21498   ;
21499   return 0;
21500 }
21501 _ACEOF
21502 rm -f conftest.$ac_objext
21503 if { (ac_try="$ac_compile"
21504 case "(($ac_try" in
21505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506   *) ac_try_echo=$ac_try;;
21507 esac
21508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21509   (eval "$ac_compile") 2>conftest.er1
21510   ac_status=$?
21511   grep -v '^ *+' conftest.er1 >conftest.err
21512   rm -f conftest.er1
21513   cat conftest.err >&5
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); } && {
21516          test -z "$ac_c_werror_flag" ||
21517          test ! -s conftest.err
21518        } && test -s conftest.$ac_objext; then
21519   ac_hi=-1 ac_mid=-1
21520   while :; do
21521     cat >conftest.$ac_ext <<_ACEOF
21522 /* confdefs.h.  */
21523 _ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h.  */
21527 #include <stddef.h>
21528 int
21529 main ()
21530 {
21531 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21532 test_array [0] = 0
21533
21534   ;
21535   return 0;
21536 }
21537 _ACEOF
21538 rm -f conftest.$ac_objext
21539 if { (ac_try="$ac_compile"
21540 case "(($ac_try" in
21541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542   *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545   (eval "$ac_compile") 2>conftest.er1
21546   ac_status=$?
21547   grep -v '^ *+' conftest.er1 >conftest.err
21548   rm -f conftest.er1
21549   cat conftest.err >&5
21550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); } && {
21552          test -z "$ac_c_werror_flag" ||
21553          test ! -s conftest.err
21554        } && test -s conftest.$ac_objext; then
21555   ac_lo=$ac_mid; break
21556 else
21557   echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560         ac_hi=`expr '(' $ac_mid ')' - 1`
21561                         if test $ac_mid -le $ac_hi; then
21562                           ac_lo= ac_hi=
21563                           break
21564                         fi
21565                         ac_mid=`expr 2 '*' $ac_mid`
21566 fi
21567
21568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21569   done
21570 else
21571   echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21573
21574         ac_lo= ac_hi=
21575 fi
21576
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21578 fi
21579
21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581 # Binary search between lo and hi bounds.
21582 while test "x$ac_lo" != "x$ac_hi"; do
21583   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21584   cat >conftest.$ac_ext <<_ACEOF
21585 /* confdefs.h.  */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h.  */
21590 #include <stddef.h>
21591 int
21592 main ()
21593 {
21594 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21595 test_array [0] = 0
21596
21597   ;
21598   return 0;
21599 }
21600 _ACEOF
21601 rm -f conftest.$ac_objext
21602 if { (ac_try="$ac_compile"
21603 case "(($ac_try" in
21604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605   *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608   (eval "$ac_compile") 2>conftest.er1
21609   ac_status=$?
21610   grep -v '^ *+' conftest.er1 >conftest.err
21611   rm -f conftest.er1
21612   cat conftest.err >&5
21613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614   (exit $ac_status); } && {
21615          test -z "$ac_c_werror_flag" ||
21616          test ! -s conftest.err
21617        } && test -s conftest.$ac_objext; then
21618   ac_hi=$ac_mid
21619 else
21620   echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21622
21623         ac_lo=`expr '(' $ac_mid ')' + 1`
21624 fi
21625
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21627 done
21628 case $ac_lo in
21629 ?*) fits_in_uint=$ac_lo;;
21630 '') result=? ;;
21631 esac
21632 else
21633   cat >conftest.$ac_ext <<_ACEOF
21634 /* confdefs.h.  */
21635 _ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h.  */
21639 #include <stddef.h>
21640 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21641 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21642 #include <stdio.h>
21643 #include <stdlib.h>
21644 int
21645 main ()
21646 {
21647
21648   FILE *f = fopen ("conftest.val", "w");
21649   if (! f)
21650     return 1;
21651   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21652     {
21653       long int i = longval ();
21654       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21655         return 1;
21656       fprintf (f, "%ld\n", i);
21657     }
21658   else
21659     {
21660       unsigned long int i = ulongval ();
21661       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21662         return 1;
21663       fprintf (f, "%lu\n", i);
21664     }
21665   return ferror (f) || fclose (f) != 0;
21666
21667   ;
21668   return 0;
21669 }
21670 _ACEOF
21671 rm -f conftest$ac_exeext
21672 if { (ac_try="$ac_link"
21673 case "(($ac_try" in
21674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675   *) ac_try_echo=$ac_try;;
21676 esac
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678   (eval "$ac_link") 2>&5
21679   ac_status=$?
21680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21682   { (case "(($ac_try" in
21683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684   *) ac_try_echo=$ac_try;;
21685 esac
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687   (eval "$ac_try") 2>&5
21688   ac_status=$?
21689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690   (exit $ac_status); }; }; then
21691   fits_in_uint=`cat conftest.val`
21692 else
21693   echo "$as_me: program exited with status $ac_status" >&5
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21696
21697 ( exit $ac_status )
21698 result=?
21699 fi
21700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21701 fi
21702 rm -f conftest.val
21703
21704     if test "$fits_in_uint" = 1; then
21705                   cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711 #include <stddef.h>
21712         extern size_t foo;
21713         extern unsigned long foo;
21714
21715 int
21716 main ()
21717 {
21718
21719   ;
21720   return 0;
21721 }
21722 _ACEOF
21723 rm -f conftest.$ac_objext
21724 if { (ac_try="$ac_compile"
21725 case "(($ac_try" in
21726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727   *) ac_try_echo=$ac_try;;
21728 esac
21729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21730   (eval "$ac_compile") 2>conftest.er1
21731   ac_status=$?
21732   grep -v '^ *+' conftest.er1 >conftest.err
21733   rm -f conftest.er1
21734   cat conftest.err >&5
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); } && {
21737          test -z "$ac_c_werror_flag" ||
21738          test ! -s conftest.err
21739        } && test -s conftest.$ac_objext; then
21740   fits_in_uint=0
21741 else
21742   echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21744
21745
21746 fi
21747
21748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21749     fi
21750     if test -z "$result"; then
21751       if test "$fits_in_uint" = 1; then
21752         result="$res_hi$res_lo"U
21753       else
21754         result="$res_hi$res_lo"UL
21755       fi
21756     else
21757             result='~(size_t)0'
21758     fi
21759   fi
21760   { echo "$as_me:$LINENO: result: $result" >&5
21761 echo "${ECHO_T}$result" >&6; }
21762   if test "$result" != yes; then
21763
21764 cat >>confdefs.h <<_ACEOF
21765 #define SIZE_MAX $result
21766 _ACEOF
21767
21768   fi
21769
21770
21771
21772
21773
21774 for ac_header in stdint.h
21775 do
21776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21778   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21781   echo $ECHO_N "(cached) $ECHO_C" >&6
21782 fi
21783 ac_res=`eval echo '${'$as_ac_Header'}'`
21784                { echo "$as_me:$LINENO: result: $ac_res" >&5
21785 echo "${ECHO_T}$ac_res" >&6; }
21786 else
21787   # Is the header compilable?
21788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21790 cat >conftest.$ac_ext <<_ACEOF
21791 /* confdefs.h.  */
21792 _ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h.  */
21796 $ac_includes_default
21797 #include <$ac_header>
21798 _ACEOF
21799 rm -f conftest.$ac_objext
21800 if { (ac_try="$ac_compile"
21801 case "(($ac_try" in
21802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803   *) ac_try_echo=$ac_try;;
21804 esac
21805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21806   (eval "$ac_compile") 2>conftest.er1
21807   ac_status=$?
21808   grep -v '^ *+' conftest.er1 >conftest.err
21809   rm -f conftest.er1
21810   cat conftest.err >&5
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); } && {
21813          test -z "$ac_c_werror_flag" ||
21814          test ! -s conftest.err
21815        } && test -s conftest.$ac_objext; then
21816   ac_header_compiler=yes
21817 else
21818   echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21820
21821         ac_header_compiler=no
21822 fi
21823
21824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21826 echo "${ECHO_T}$ac_header_compiler" >&6; }
21827
21828 # Is the header present?
21829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21831 cat >conftest.$ac_ext <<_ACEOF
21832 /* confdefs.h.  */
21833 _ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h.  */
21837 #include <$ac_header>
21838 _ACEOF
21839 if { (ac_try="$ac_cpp conftest.$ac_ext"
21840 case "(($ac_try" in
21841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842   *) ac_try_echo=$ac_try;;
21843 esac
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21846   ac_status=$?
21847   grep -v '^ *+' conftest.er1 >conftest.err
21848   rm -f conftest.er1
21849   cat conftest.err >&5
21850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851   (exit $ac_status); } >/dev/null && {
21852          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21853          test ! -s conftest.err
21854        }; then
21855   ac_header_preproc=yes
21856 else
21857   echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21859
21860   ac_header_preproc=no
21861 fi
21862
21863 rm -f conftest.err conftest.$ac_ext
21864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21865 echo "${ECHO_T}$ac_header_preproc" >&6; }
21866
21867 # So?  What about this header?
21868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21869   yes:no: )
21870     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21874     ac_header_preproc=yes
21875     ;;
21876   no:yes:* )
21877     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21879     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21880 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21881     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21883     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21884 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21887     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21889
21890     ;;
21891 esac
21892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21895   echo $ECHO_N "(cached) $ECHO_C" >&6
21896 else
21897   eval "$as_ac_Header=\$ac_header_preproc"
21898 fi
21899 ac_res=`eval echo '${'$as_ac_Header'}'`
21900                { echo "$as_me:$LINENO: result: $ac_res" >&5
21901 echo "${ECHO_T}$ac_res" >&6; }
21902
21903 fi
21904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21905   cat >>confdefs.h <<_ACEOF
21906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21907 _ACEOF
21908
21909 fi
21910
21911 done
21912
21913
21914
21915
21916
21917
21918
21919
21920   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21921 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21922 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21923   echo $ECHO_N "(cached) $ECHO_C" >&6
21924 else
21925   cat >conftest.$ac_ext <<_ACEOF
21926 /* confdefs.h.  */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h.  */
21931 $ac_includes_default
21932 typedef ptrdiff_t ac__type_new_;
21933 int
21934 main ()
21935 {
21936 if ((ac__type_new_ *) 0)
21937   return 0;
21938 if (sizeof (ac__type_new_))
21939   return 0;
21940   ;
21941   return 0;
21942 }
21943 _ACEOF
21944 rm -f conftest.$ac_objext
21945 if { (ac_try="$ac_compile"
21946 case "(($ac_try" in
21947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948   *) ac_try_echo=$ac_try;;
21949 esac
21950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951   (eval "$ac_compile") 2>conftest.er1
21952   ac_status=$?
21953   grep -v '^ *+' conftest.er1 >conftest.err
21954   rm -f conftest.er1
21955   cat conftest.err >&5
21956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957   (exit $ac_status); } && {
21958          test -z "$ac_c_werror_flag" ||
21959          test ! -s conftest.err
21960        } && test -s conftest.$ac_objext; then
21961   ac_cv_type_ptrdiff_t=yes
21962 else
21963   echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21965
21966         ac_cv_type_ptrdiff_t=no
21967 fi
21968
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970 fi
21971 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21972 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21973 if test $ac_cv_type_ptrdiff_t = yes; then
21974   :
21975 else
21976
21977 cat >>confdefs.h <<\_ACEOF
21978 #define ptrdiff_t long
21979 _ACEOF
21980
21981
21982 fi
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21995 stdlib.h string.h unistd.h sys/param.h
21996 do
21997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21999   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22002   echo $ECHO_N "(cached) $ECHO_C" >&6
22003 fi
22004 ac_res=`eval echo '${'$as_ac_Header'}'`
22005                { echo "$as_me:$LINENO: result: $ac_res" >&5
22006 echo "${ECHO_T}$ac_res" >&6; }
22007 else
22008   # Is the header compilable?
22009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22011 cat >conftest.$ac_ext <<_ACEOF
22012 /* confdefs.h.  */
22013 _ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h.  */
22017 $ac_includes_default
22018 #include <$ac_header>
22019 _ACEOF
22020 rm -f conftest.$ac_objext
22021 if { (ac_try="$ac_compile"
22022 case "(($ac_try" in
22023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024   *) ac_try_echo=$ac_try;;
22025 esac
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027   (eval "$ac_compile") 2>conftest.er1
22028   ac_status=$?
22029   grep -v '^ *+' conftest.er1 >conftest.err
22030   rm -f conftest.er1
22031   cat conftest.err >&5
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); } && {
22034          test -z "$ac_c_werror_flag" ||
22035          test ! -s conftest.err
22036        } && test -s conftest.$ac_objext; then
22037   ac_header_compiler=yes
22038 else
22039   echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042         ac_header_compiler=no
22043 fi
22044
22045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22047 echo "${ECHO_T}$ac_header_compiler" >&6; }
22048
22049 # Is the header present?
22050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22052 cat >conftest.$ac_ext <<_ACEOF
22053 /* confdefs.h.  */
22054 _ACEOF
22055 cat confdefs.h >>conftest.$ac_ext
22056 cat >>conftest.$ac_ext <<_ACEOF
22057 /* end confdefs.h.  */
22058 #include <$ac_header>
22059 _ACEOF
22060 if { (ac_try="$ac_cpp conftest.$ac_ext"
22061 case "(($ac_try" in
22062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22063   *) ac_try_echo=$ac_try;;
22064 esac
22065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22067   ac_status=$?
22068   grep -v '^ *+' conftest.er1 >conftest.err
22069   rm -f conftest.er1
22070   cat conftest.err >&5
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); } >/dev/null && {
22073          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22074          test ! -s conftest.err
22075        }; then
22076   ac_header_preproc=yes
22077 else
22078   echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22080
22081   ac_header_preproc=no
22082 fi
22083
22084 rm -f conftest.err conftest.$ac_ext
22085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22086 echo "${ECHO_T}$ac_header_preproc" >&6; }
22087
22088 # So?  What about this header?
22089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22090   yes:no: )
22091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22095     ac_header_preproc=yes
22096     ;;
22097   no:yes:* )
22098     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22100     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22101 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22102     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22104     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22105 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22108     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22110
22111     ;;
22112 esac
22113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22116   echo $ECHO_N "(cached) $ECHO_C" >&6
22117 else
22118   eval "$as_ac_Header=\$ac_header_preproc"
22119 fi
22120 ac_res=`eval echo '${'$as_ac_Header'}'`
22121                { echo "$as_me:$LINENO: result: $ac_res" >&5
22122 echo "${ECHO_T}$ac_res" >&6; }
22123
22124 fi
22125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22126   cat >>confdefs.h <<_ACEOF
22127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22128 _ACEOF
22129
22130 fi
22131
22132 done
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22158 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22159 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22160 __fsetlocking
22161 do
22162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22166   echo $ECHO_N "(cached) $ECHO_C" >&6
22167 else
22168   cat >conftest.$ac_ext <<_ACEOF
22169 /* confdefs.h.  */
22170 _ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h.  */
22174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22176 #define $ac_func innocuous_$ac_func
22177
22178 /* System header to define __stub macros and hopefully few prototypes,
22179     which can conflict with char $ac_func (); below.
22180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22181     <limits.h> exists even on freestanding compilers.  */
22182
22183 #ifdef __STDC__
22184 # include <limits.h>
22185 #else
22186 # include <assert.h>
22187 #endif
22188
22189 #undef $ac_func
22190
22191 /* Override any GCC internal prototype to avoid an error.
22192    Use char because int might match the return type of a GCC
22193    builtin and then its argument prototype would still apply.  */
22194 #ifdef __cplusplus
22195 extern "C"
22196 #endif
22197 char $ac_func ();
22198 /* The GNU C library defines this for functions which it implements
22199     to always fail with ENOSYS.  Some functions are actually named
22200     something starting with __ and the normal name is an alias.  */
22201 #if defined __stub_$ac_func || defined __stub___$ac_func
22202 choke me
22203 #endif
22204
22205 int
22206 main ()
22207 {
22208 return $ac_func ();
22209   ;
22210   return 0;
22211 }
22212 _ACEOF
22213 rm -f conftest.$ac_objext conftest$ac_exeext
22214 if { (ac_try="$ac_link"
22215 case "(($ac_try" in
22216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217   *) ac_try_echo=$ac_try;;
22218 esac
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220   (eval "$ac_link") 2>conftest.er1
22221   ac_status=$?
22222   grep -v '^ *+' conftest.er1 >conftest.err
22223   rm -f conftest.er1
22224   cat conftest.err >&5
22225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226   (exit $ac_status); } && {
22227          test -z "$ac_c_werror_flag" ||
22228          test ! -s conftest.err
22229        } && test -s conftest$ac_exeext &&
22230        $as_test_x conftest$ac_exeext; then
22231   eval "$as_ac_var=yes"
22232 else
22233   echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22235
22236         eval "$as_ac_var=no"
22237 fi
22238
22239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22240       conftest$ac_exeext conftest.$ac_ext
22241 fi
22242 ac_res=`eval echo '${'$as_ac_var'}'`
22243                { echo "$as_me:$LINENO: result: $ac_res" >&5
22244 echo "${ECHO_T}$ac_res" >&6; }
22245 if test `eval echo '${'$as_ac_var'}'` = yes; then
22246   cat >>confdefs.h <<_ACEOF
22247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22248 _ACEOF
22249
22250 fi
22251 done
22252
22253
22254
22255   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22256 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22257 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22258   echo $ECHO_N "(cached) $ECHO_C" >&6
22259 else
22260   cat >conftest.$ac_ext <<_ACEOF
22261 /* confdefs.h.  */
22262 _ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h.  */
22266 #include <stdio.h>
22267 int
22268 main ()
22269 {
22270
22271 #ifndef _snprintf
22272   char *p = (char *) _snprintf;
22273 #endif
22274
22275   ;
22276   return 0;
22277 }
22278 _ACEOF
22279 rm -f conftest.$ac_objext
22280 if { (ac_try="$ac_compile"
22281 case "(($ac_try" in
22282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283   *) ac_try_echo=$ac_try;;
22284 esac
22285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286   (eval "$ac_compile") 2>conftest.er1
22287   ac_status=$?
22288   grep -v '^ *+' conftest.er1 >conftest.err
22289   rm -f conftest.er1
22290   cat conftest.err >&5
22291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292   (exit $ac_status); } && {
22293          test -z "$ac_c_werror_flag" ||
22294          test ! -s conftest.err
22295        } && test -s conftest.$ac_objext; then
22296   ac_cv_have_decl__snprintf=yes
22297 else
22298   echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22300
22301         ac_cv_have_decl__snprintf=no
22302 fi
22303
22304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305 fi
22306 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22307 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22308   if test $ac_cv_have_decl__snprintf = yes; then
22309     gt_value=1
22310   else
22311     gt_value=0
22312   fi
22313
22314 cat >>confdefs.h <<_ACEOF
22315 #define HAVE_DECL__SNPRINTF $gt_value
22316 _ACEOF
22317
22318
22319
22320   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22321 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22322 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22323   echo $ECHO_N "(cached) $ECHO_C" >&6
22324 else
22325   cat >conftest.$ac_ext <<_ACEOF
22326 /* confdefs.h.  */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h.  */
22331 #include <stdio.h>
22332 int
22333 main ()
22334 {
22335
22336 #ifndef _snwprintf
22337   char *p = (char *) _snwprintf;
22338 #endif
22339
22340   ;
22341   return 0;
22342 }
22343 _ACEOF
22344 rm -f conftest.$ac_objext
22345 if { (ac_try="$ac_compile"
22346 case "(($ac_try" in
22347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348   *) ac_try_echo=$ac_try;;
22349 esac
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351   (eval "$ac_compile") 2>conftest.er1
22352   ac_status=$?
22353   grep -v '^ *+' conftest.er1 >conftest.err
22354   rm -f conftest.er1
22355   cat conftest.err >&5
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); } && {
22358          test -z "$ac_c_werror_flag" ||
22359          test ! -s conftest.err
22360        } && test -s conftest.$ac_objext; then
22361   ac_cv_have_decl__snwprintf=yes
22362 else
22363   echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22365
22366         ac_cv_have_decl__snwprintf=no
22367 fi
22368
22369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22370 fi
22371 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22372 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22373   if test $ac_cv_have_decl__snwprintf = yes; then
22374     gt_value=1
22375   else
22376     gt_value=0
22377   fi
22378
22379 cat >>confdefs.h <<_ACEOF
22380 #define HAVE_DECL__SNWPRINTF $gt_value
22381 _ACEOF
22382
22383
22384
22385
22386   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22387 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22388 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22389   echo $ECHO_N "(cached) $ECHO_C" >&6
22390 else
22391   cat >conftest.$ac_ext <<_ACEOF
22392 /* confdefs.h.  */
22393 _ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h.  */
22397 #include <stdio.h>
22398 int
22399 main ()
22400 {
22401
22402 #ifndef feof_unlocked
22403   char *p = (char *) feof_unlocked;
22404 #endif
22405
22406   ;
22407   return 0;
22408 }
22409 _ACEOF
22410 rm -f conftest.$ac_objext
22411 if { (ac_try="$ac_compile"
22412 case "(($ac_try" in
22413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22414   *) ac_try_echo=$ac_try;;
22415 esac
22416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22417   (eval "$ac_compile") 2>conftest.er1
22418   ac_status=$?
22419   grep -v '^ *+' conftest.er1 >conftest.err
22420   rm -f conftest.er1
22421   cat conftest.err >&5
22422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423   (exit $ac_status); } && {
22424          test -z "$ac_c_werror_flag" ||
22425          test ! -s conftest.err
22426        } && test -s conftest.$ac_objext; then
22427   ac_cv_have_decl_feof_unlocked=yes
22428 else
22429   echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22431
22432         ac_cv_have_decl_feof_unlocked=no
22433 fi
22434
22435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22436 fi
22437 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22438 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22439   if test $ac_cv_have_decl_feof_unlocked = yes; then
22440     gt_value=1
22441   else
22442     gt_value=0
22443   fi
22444
22445 cat >>confdefs.h <<_ACEOF
22446 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22447 _ACEOF
22448
22449
22450
22451   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22452 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22453 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22454   echo $ECHO_N "(cached) $ECHO_C" >&6
22455 else
22456   cat >conftest.$ac_ext <<_ACEOF
22457 /* confdefs.h.  */
22458 _ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h.  */
22462 #include <stdio.h>
22463 int
22464 main ()
22465 {
22466
22467 #ifndef fgets_unlocked
22468   char *p = (char *) fgets_unlocked;
22469 #endif
22470
22471   ;
22472   return 0;
22473 }
22474 _ACEOF
22475 rm -f conftest.$ac_objext
22476 if { (ac_try="$ac_compile"
22477 case "(($ac_try" in
22478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479   *) ac_try_echo=$ac_try;;
22480 esac
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482   (eval "$ac_compile") 2>conftest.er1
22483   ac_status=$?
22484   grep -v '^ *+' conftest.er1 >conftest.err
22485   rm -f conftest.er1
22486   cat conftest.err >&5
22487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488   (exit $ac_status); } && {
22489          test -z "$ac_c_werror_flag" ||
22490          test ! -s conftest.err
22491        } && test -s conftest.$ac_objext; then
22492   ac_cv_have_decl_fgets_unlocked=yes
22493 else
22494   echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22496
22497         ac_cv_have_decl_fgets_unlocked=no
22498 fi
22499
22500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501 fi
22502 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22503 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22504   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22505     gt_value=1
22506   else
22507     gt_value=0
22508   fi
22509
22510 cat >>confdefs.h <<_ACEOF
22511 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22512 _ACEOF
22513
22514
22515
22516   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22517 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22518 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22519   echo $ECHO_N "(cached) $ECHO_C" >&6
22520 else
22521   cat >conftest.$ac_ext <<_ACEOF
22522 /* confdefs.h.  */
22523 _ACEOF
22524 cat confdefs.h >>conftest.$ac_ext
22525 cat >>conftest.$ac_ext <<_ACEOF
22526 /* end confdefs.h.  */
22527 #include <stdio.h>
22528 int
22529 main ()
22530 {
22531
22532 #ifndef getc_unlocked
22533   char *p = (char *) getc_unlocked;
22534 #endif
22535
22536   ;
22537   return 0;
22538 }
22539 _ACEOF
22540 rm -f conftest.$ac_objext
22541 if { (ac_try="$ac_compile"
22542 case "(($ac_try" in
22543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544   *) ac_try_echo=$ac_try;;
22545 esac
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547   (eval "$ac_compile") 2>conftest.er1
22548   ac_status=$?
22549   grep -v '^ *+' conftest.er1 >conftest.err
22550   rm -f conftest.er1
22551   cat conftest.err >&5
22552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553   (exit $ac_status); } && {
22554          test -z "$ac_c_werror_flag" ||
22555          test ! -s conftest.err
22556        } && test -s conftest.$ac_objext; then
22557   ac_cv_have_decl_getc_unlocked=yes
22558 else
22559   echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22561
22562         ac_cv_have_decl_getc_unlocked=no
22563 fi
22564
22565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22566 fi
22567 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22568 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22569   if test $ac_cv_have_decl_getc_unlocked = yes; then
22570     gt_value=1
22571   else
22572     gt_value=0
22573   fi
22574
22575 cat >>confdefs.h <<_ACEOF
22576 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22577 _ACEOF
22578
22579
22580
22581   case $gt_cv_func_printf_posix in
22582     *yes) HAVE_POSIX_PRINTF=1 ;;
22583     *) HAVE_POSIX_PRINTF=0 ;;
22584   esac
22585
22586   if test "$ac_cv_func_asprintf" = yes; then
22587     HAVE_ASPRINTF=1
22588   else
22589     HAVE_ASPRINTF=0
22590   fi
22591
22592   if test "$ac_cv_func_snprintf" = yes; then
22593     HAVE_SNPRINTF=1
22594   else
22595     HAVE_SNPRINTF=0
22596   fi
22597
22598   if test "$ac_cv_func_wprintf" = yes; then
22599     HAVE_WPRINTF=1
22600   else
22601     HAVE_WPRINTF=0
22602   fi
22603
22604
22605
22606
22607
22608
22609
22610           am_save_CPPFLAGS="$CPPFLAGS"
22611
22612   for element in $INCICONV; do
22613     haveit=
22614     for x in $CPPFLAGS; do
22615
22616   acl_save_prefix="$prefix"
22617   prefix="$acl_final_prefix"
22618   acl_save_exec_prefix="$exec_prefix"
22619   exec_prefix="$acl_final_exec_prefix"
22620   eval x=\"$x\"
22621   exec_prefix="$acl_save_exec_prefix"
22622   prefix="$acl_save_prefix"
22623
22624       if test "X$x" = "X$element"; then
22625         haveit=yes
22626         break
22627       fi
22628     done
22629     if test -z "$haveit"; then
22630       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22631     fi
22632   done
22633
22634
22635   { echo "$as_me:$LINENO: checking for iconv" >&5
22636 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22637 if test "${am_cv_func_iconv+set}" = set; then
22638   echo $ECHO_N "(cached) $ECHO_C" >&6
22639 else
22640
22641     am_cv_func_iconv="no, consider installing GNU libiconv"
22642     am_cv_lib_iconv=no
22643     cat >conftest.$ac_ext <<_ACEOF
22644 /* confdefs.h.  */
22645 _ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h.  */
22649 #include <stdlib.h>
22650 #include <iconv.h>
22651 int
22652 main ()
22653 {
22654 iconv_t cd = iconv_open("","");
22655        iconv(cd,NULL,NULL,NULL,NULL);
22656        iconv_close(cd);
22657   ;
22658   return 0;
22659 }
22660 _ACEOF
22661 rm -f conftest.$ac_objext conftest$ac_exeext
22662 if { (ac_try="$ac_link"
22663 case "(($ac_try" in
22664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665   *) ac_try_echo=$ac_try;;
22666 esac
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668   (eval "$ac_link") 2>conftest.er1
22669   ac_status=$?
22670   grep -v '^ *+' conftest.er1 >conftest.err
22671   rm -f conftest.er1
22672   cat conftest.err >&5
22673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); } && {
22675          test -z "$ac_c_werror_flag" ||
22676          test ! -s conftest.err
22677        } && test -s conftest$ac_exeext &&
22678        $as_test_x conftest$ac_exeext; then
22679   am_cv_func_iconv=yes
22680 else
22681   echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22683
22684
22685 fi
22686
22687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22688       conftest$ac_exeext conftest.$ac_ext
22689     if test "$am_cv_func_iconv" != yes; then
22690       am_save_LIBS="$LIBS"
22691       LIBS="$LIBS $LIBICONV"
22692       cat >conftest.$ac_ext <<_ACEOF
22693 /* confdefs.h.  */
22694 _ACEOF
22695 cat confdefs.h >>conftest.$ac_ext
22696 cat >>conftest.$ac_ext <<_ACEOF
22697 /* end confdefs.h.  */
22698 #include <stdlib.h>
22699 #include <iconv.h>
22700 int
22701 main ()
22702 {
22703 iconv_t cd = iconv_open("","");
22704          iconv(cd,NULL,NULL,NULL,NULL);
22705          iconv_close(cd);
22706   ;
22707   return 0;
22708 }
22709 _ACEOF
22710 rm -f conftest.$ac_objext conftest$ac_exeext
22711 if { (ac_try="$ac_link"
22712 case "(($ac_try" in
22713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714   *) ac_try_echo=$ac_try;;
22715 esac
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717   (eval "$ac_link") 2>conftest.er1
22718   ac_status=$?
22719   grep -v '^ *+' conftest.er1 >conftest.err
22720   rm -f conftest.er1
22721   cat conftest.err >&5
22722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723   (exit $ac_status); } && {
22724          test -z "$ac_c_werror_flag" ||
22725          test ! -s conftest.err
22726        } && test -s conftest$ac_exeext &&
22727        $as_test_x conftest$ac_exeext; then
22728   am_cv_lib_iconv=yes
22729         am_cv_func_iconv=yes
22730 else
22731   echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22733
22734
22735 fi
22736
22737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22738       conftest$ac_exeext conftest.$ac_ext
22739       LIBS="$am_save_LIBS"
22740     fi
22741
22742 fi
22743 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22744 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22745   if test "$am_cv_func_iconv" = yes; then
22746
22747 cat >>confdefs.h <<\_ACEOF
22748 #define HAVE_ICONV 1
22749 _ACEOF
22750
22751   fi
22752   if test "$am_cv_lib_iconv" = yes; then
22753     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22754 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22755     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22756 echo "${ECHO_T}$LIBICONV" >&6; }
22757   else
22758             CPPFLAGS="$am_save_CPPFLAGS"
22759     LIBICONV=
22760     LTLIBICONV=
22761   fi
22762
22763
22764
22765   if test "$am_cv_func_iconv" = yes; then
22766     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22767 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22768     if test "${am_cv_proto_iconv+set}" = set; then
22769   echo $ECHO_N "(cached) $ECHO_C" >&6
22770 else
22771
22772       cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h.  */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h.  */
22778
22779 #include <stdlib.h>
22780 #include <iconv.h>
22781 extern
22782 #ifdef __cplusplus
22783 "C"
22784 #endif
22785 #if defined(__STDC__) || defined(__cplusplus)
22786 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22787 #else
22788 size_t iconv();
22789 #endif
22790
22791 int
22792 main ()
22793 {
22794
22795   ;
22796   return 0;
22797 }
22798 _ACEOF
22799 rm -f conftest.$ac_objext
22800 if { (ac_try="$ac_compile"
22801 case "(($ac_try" in
22802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803   *) ac_try_echo=$ac_try;;
22804 esac
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806   (eval "$ac_compile") 2>conftest.er1
22807   ac_status=$?
22808   grep -v '^ *+' conftest.er1 >conftest.err
22809   rm -f conftest.er1
22810   cat conftest.err >&5
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); } && {
22813          test -z "$ac_c_werror_flag" ||
22814          test ! -s conftest.err
22815        } && test -s conftest.$ac_objext; then
22816   am_cv_proto_iconv_arg1=""
22817 else
22818   echo "$as_me: failed program was:" >&5
22819 sed 's/^/| /' conftest.$ac_ext >&5
22820
22821         am_cv_proto_iconv_arg1="const"
22822 fi
22823
22824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22825       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);"
22826 fi
22827
22828     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22829     { echo "$as_me:$LINENO: result: ${ac_t:-
22830          }$am_cv_proto_iconv" >&5
22831 echo "${ECHO_T}${ac_t:-
22832          }$am_cv_proto_iconv" >&6; }
22833
22834 cat >>confdefs.h <<_ACEOF
22835 #define ICONV_CONST $am_cv_proto_iconv_arg1
22836 _ACEOF
22837
22838   fi
22839
22840
22841   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22842 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22843 if test "${am_cv_langinfo_codeset+set}" = set; then
22844   echo $ECHO_N "(cached) $ECHO_C" >&6
22845 else
22846   cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h.  */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h.  */
22852 #include <langinfo.h>
22853 int
22854 main ()
22855 {
22856 char* cs = nl_langinfo(CODESET);
22857   ;
22858   return 0;
22859 }
22860 _ACEOF
22861 rm -f conftest.$ac_objext conftest$ac_exeext
22862 if { (ac_try="$ac_link"
22863 case "(($ac_try" in
22864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865   *) ac_try_echo=$ac_try;;
22866 esac
22867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868   (eval "$ac_link") 2>conftest.er1
22869   ac_status=$?
22870   grep -v '^ *+' conftest.er1 >conftest.err
22871   rm -f conftest.er1
22872   cat conftest.err >&5
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); } && {
22875          test -z "$ac_c_werror_flag" ||
22876          test ! -s conftest.err
22877        } && test -s conftest$ac_exeext &&
22878        $as_test_x conftest$ac_exeext; then
22879   am_cv_langinfo_codeset=yes
22880 else
22881   echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22883
22884         am_cv_langinfo_codeset=no
22885 fi
22886
22887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22888       conftest$ac_exeext conftest.$ac_ext
22889
22890 fi
22891 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22892 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22893   if test $am_cv_langinfo_codeset = yes; then
22894
22895 cat >>confdefs.h <<\_ACEOF
22896 #define HAVE_LANGINFO_CODESET 1
22897 _ACEOF
22898
22899   fi
22900
22901   if test $ac_cv_header_locale_h = yes; then
22902
22903   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22904 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22905 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22906   echo $ECHO_N "(cached) $ECHO_C" >&6
22907 else
22908   cat >conftest.$ac_ext <<_ACEOF
22909 /* confdefs.h.  */
22910 _ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h.  */
22914 #include <locale.h>
22915 int
22916 main ()
22917 {
22918 return LC_MESSAGES
22919   ;
22920   return 0;
22921 }
22922 _ACEOF
22923 rm -f conftest.$ac_objext conftest$ac_exeext
22924 if { (ac_try="$ac_link"
22925 case "(($ac_try" in
22926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927   *) ac_try_echo=$ac_try;;
22928 esac
22929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22930   (eval "$ac_link") 2>conftest.er1
22931   ac_status=$?
22932   grep -v '^ *+' conftest.er1 >conftest.err
22933   rm -f conftest.er1
22934   cat conftest.err >&5
22935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936   (exit $ac_status); } && {
22937          test -z "$ac_c_werror_flag" ||
22938          test ! -s conftest.err
22939        } && test -s conftest$ac_exeext &&
22940        $as_test_x conftest$ac_exeext; then
22941   gt_cv_val_LC_MESSAGES=yes
22942 else
22943   echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22945
22946         gt_cv_val_LC_MESSAGES=no
22947 fi
22948
22949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22950       conftest$ac_exeext conftest.$ac_ext
22951 fi
22952 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22953 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22954   if test $gt_cv_val_LC_MESSAGES = yes; then
22955
22956 cat >>confdefs.h <<\_ACEOF
22957 #define HAVE_LC_MESSAGES 1
22958 _ACEOF
22959
22960   fi
22961
22962   fi
22963
22964   if test -n "$INTL_MACOSX_LIBS"; then
22965     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22966   fi
22967
22968                       for ac_prog in bison
22969 do
22970   # Extract the first word of "$ac_prog", so it can be a program name with args.
22971 set dummy $ac_prog; ac_word=$2
22972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22974 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22975   echo $ECHO_N "(cached) $ECHO_C" >&6
22976 else
22977   if test -n "$INTLBISON"; then
22978   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22979 else
22980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22981 for as_dir in $PATH
22982 do
22983   IFS=$as_save_IFS
22984   test -z "$as_dir" && as_dir=.
22985   for ac_exec_ext in '' $ac_executable_extensions; do
22986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22987     ac_cv_prog_INTLBISON="$ac_prog"
22988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22989     break 2
22990   fi
22991 done
22992 done
22993 IFS=$as_save_IFS
22994
22995 fi
22996 fi
22997 INTLBISON=$ac_cv_prog_INTLBISON
22998 if test -n "$INTLBISON"; then
22999   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23000 echo "${ECHO_T}$INTLBISON" >&6; }
23001 else
23002   { echo "$as_me:$LINENO: result: no" >&5
23003 echo "${ECHO_T}no" >&6; }
23004 fi
23005
23006
23007   test -n "$INTLBISON" && break
23008 done
23009
23010   if test -z "$INTLBISON"; then
23011     ac_verc_fail=yes
23012   else
23013         { echo "$as_me:$LINENO: checking version of bison" >&5
23014 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23015     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23016     case $ac_prog_version in
23017       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23018       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23019          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23020       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23021     esac
23022     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23023 echo "${ECHO_T}$ac_prog_version" >&6; }
23024   fi
23025   if test $ac_verc_fail = yes; then
23026     INTLBISON=:
23027   fi
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23045 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23046 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23047   echo $ECHO_N "(cached) $ECHO_C" >&6
23048 else
23049   gt_save_CPPFLAGS="$CPPFLAGS"
23050      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23051      gt_save_LIBS="$LIBS"
23052      LIBS="$LIBS -framework CoreFoundation"
23053      cat >conftest.$ac_ext <<_ACEOF
23054 /* confdefs.h.  */
23055 _ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h.  */
23059 #include <CFPreferences.h>
23060 int
23061 main ()
23062 {
23063 CFPreferencesCopyAppValue(NULL, NULL)
23064   ;
23065   return 0;
23066 }
23067 _ACEOF
23068 rm -f conftest.$ac_objext conftest$ac_exeext
23069 if { (ac_try="$ac_link"
23070 case "(($ac_try" in
23071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072   *) ac_try_echo=$ac_try;;
23073 esac
23074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23075   (eval "$ac_link") 2>conftest.er1
23076   ac_status=$?
23077   grep -v '^ *+' conftest.er1 >conftest.err
23078   rm -f conftest.er1
23079   cat conftest.err >&5
23080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); } && {
23082          test -z "$ac_c_werror_flag" ||
23083          test ! -s conftest.err
23084        } && test -s conftest$ac_exeext &&
23085        $as_test_x conftest$ac_exeext; then
23086   gt_cv_func_CFPreferencesCopyAppValue=yes
23087 else
23088   echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23090
23091         gt_cv_func_CFPreferencesCopyAppValue=no
23092 fi
23093
23094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23095       conftest$ac_exeext conftest.$ac_ext
23096      CPPFLAGS="$gt_save_CPPFLAGS"
23097      LIBS="$gt_save_LIBS"
23098 fi
23099 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23100 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23101   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23102
23103 cat >>confdefs.h <<\_ACEOF
23104 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23105 _ACEOF
23106
23107   fi
23108     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23109 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23110 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23111   echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113   gt_save_CPPFLAGS="$CPPFLAGS"
23114      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23115      gt_save_LIBS="$LIBS"
23116      LIBS="$LIBS -framework CoreFoundation"
23117      cat >conftest.$ac_ext <<_ACEOF
23118 /* confdefs.h.  */
23119 _ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h.  */
23123 #include <CFLocale.h>
23124 int
23125 main ()
23126 {
23127 CFLocaleCopyCurrent();
23128   ;
23129   return 0;
23130 }
23131 _ACEOF
23132 rm -f conftest.$ac_objext conftest$ac_exeext
23133 if { (ac_try="$ac_link"
23134 case "(($ac_try" in
23135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136   *) ac_try_echo=$ac_try;;
23137 esac
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139   (eval "$ac_link") 2>conftest.er1
23140   ac_status=$?
23141   grep -v '^ *+' conftest.er1 >conftest.err
23142   rm -f conftest.er1
23143   cat conftest.err >&5
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); } && {
23146          test -z "$ac_c_werror_flag" ||
23147          test ! -s conftest.err
23148        } && test -s conftest$ac_exeext &&
23149        $as_test_x conftest$ac_exeext; then
23150   gt_cv_func_CFLocaleCopyCurrent=yes
23151 else
23152   echo "$as_me: failed program was:" >&5
23153 sed 's/^/| /' conftest.$ac_ext >&5
23154
23155         gt_cv_func_CFLocaleCopyCurrent=no
23156 fi
23157
23158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23159       conftest$ac_exeext conftest.$ac_ext
23160      CPPFLAGS="$gt_save_CPPFLAGS"
23161      LIBS="$gt_save_LIBS"
23162 fi
23163 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23164 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23165   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23166
23167 cat >>confdefs.h <<\_ACEOF
23168 #define HAVE_CFLOCALECOPYCURRENT 1
23169 _ACEOF
23170
23171   fi
23172   INTL_MACOSX_LIBS=
23173   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23174     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23175   fi
23176
23177
23178
23179
23180   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23181 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23182     # Check whether --enable-nls was given.
23183 if test "${enable_nls+set}" = set; then
23184   enableval=$enable_nls; USE_NLS=$enableval
23185 else
23186   USE_NLS=yes
23187 fi
23188
23189   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23190 echo "${ECHO_T}$USE_NLS" >&6; }
23191
23192
23193
23194
23195     BUILD_INCLUDED_LIBINTL=no
23196     USE_INCLUDED_LIBINTL=no
23197
23198   LIBINTL=
23199   LTLIBINTL=
23200   POSUB=
23201
23202     if test "$USE_NLS" = "yes"; then
23203     gt_use_preinstalled_gnugettext=no
23204
23205       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23206 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23207
23208 # Check whether --with-included-gettext was given.
23209 if test "${with_included_gettext+set}" = set; then
23210   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23211 else
23212   nls_cv_force_use_gnu_gettext=no
23213 fi
23214
23215       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23216 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23217
23218       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23219       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23220
23221
23222
23223
23224
23225
23226         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23227 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23228 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23229   echo $ECHO_N "(cached) $ECHO_C" >&6
23230 else
23231   cat >conftest.$ac_ext <<_ACEOF
23232 /* confdefs.h.  */
23233 _ACEOF
23234 cat confdefs.h >>conftest.$ac_ext
23235 cat >>conftest.$ac_ext <<_ACEOF
23236 /* end confdefs.h.  */
23237 #include <libintl.h>
23238 extern int _nl_msg_cat_cntr;
23239 extern int *_nl_domain_bindings;
23240 int
23241 main ()
23242 {
23243 bindtextdomain ("", "");
23244 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23245   ;
23246   return 0;
23247 }
23248 _ACEOF
23249 rm -f conftest.$ac_objext conftest$ac_exeext
23250 if { (ac_try="$ac_link"
23251 case "(($ac_try" in
23252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253   *) ac_try_echo=$ac_try;;
23254 esac
23255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23256   (eval "$ac_link") 2>conftest.er1
23257   ac_status=$?
23258   grep -v '^ *+' conftest.er1 >conftest.err
23259   rm -f conftest.er1
23260   cat conftest.err >&5
23261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262   (exit $ac_status); } && {
23263          test -z "$ac_c_werror_flag" ||
23264          test ! -s conftest.err
23265        } && test -s conftest$ac_exeext &&
23266        $as_test_x conftest$ac_exeext; then
23267   gt_cv_func_gnugettext1_libc=yes
23268 else
23269   echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23271
23272         gt_cv_func_gnugettext1_libc=no
23273 fi
23274
23275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23276       conftest$ac_exeext conftest.$ac_ext
23277 fi
23278 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23279 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23280
23281         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23282
23283
23284
23285     use_additional=yes
23286
23287   acl_save_prefix="$prefix"
23288   prefix="$acl_final_prefix"
23289   acl_save_exec_prefix="$exec_prefix"
23290   exec_prefix="$acl_final_exec_prefix"
23291
23292     eval additional_includedir=\"$includedir\"
23293     eval additional_libdir=\"$libdir\"
23294
23295   exec_prefix="$acl_save_exec_prefix"
23296   prefix="$acl_save_prefix"
23297
23298
23299 # Check whether --with-libintl-prefix was given.
23300 if test "${with_libintl_prefix+set}" = set; then
23301   withval=$with_libintl_prefix;
23302     if test "X$withval" = "Xno"; then
23303       use_additional=no
23304     else
23305       if test "X$withval" = "X"; then
23306
23307   acl_save_prefix="$prefix"
23308   prefix="$acl_final_prefix"
23309   acl_save_exec_prefix="$exec_prefix"
23310   exec_prefix="$acl_final_exec_prefix"
23311
23312           eval additional_includedir=\"$includedir\"
23313           eval additional_libdir=\"$libdir\"
23314
23315   exec_prefix="$acl_save_exec_prefix"
23316   prefix="$acl_save_prefix"
23317
23318       else
23319         additional_includedir="$withval/include"
23320         additional_libdir="$withval/lib"
23321       fi
23322     fi
23323
23324 fi
23325
23326       LIBINTL=
23327   LTLIBINTL=
23328   INCINTL=
23329   rpathdirs=
23330   ltrpathdirs=
23331   names_already_handled=
23332   names_next_round='intl '
23333   while test -n "$names_next_round"; do
23334     names_this_round="$names_next_round"
23335     names_next_round=
23336     for name in $names_this_round; do
23337       already_handled=
23338       for n in $names_already_handled; do
23339         if test "$n" = "$name"; then
23340           already_handled=yes
23341           break
23342         fi
23343       done
23344       if test -z "$already_handled"; then
23345         names_already_handled="$names_already_handled $name"
23346                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23347         eval value=\"\$HAVE_LIB$uppername\"
23348         if test -n "$value"; then
23349           if test "$value" = yes; then
23350             eval value=\"\$LIB$uppername\"
23351             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23352             eval value=\"\$LTLIB$uppername\"
23353             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23354           else
23355                                     :
23356           fi
23357         else
23358                               found_dir=
23359           found_la=
23360           found_so=
23361           found_a=
23362           if test $use_additional = yes; then
23363             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23364               found_dir="$additional_libdir"
23365               found_so="$additional_libdir/lib$name.$shlibext"
23366               if test -f "$additional_libdir/lib$name.la"; then
23367                 found_la="$additional_libdir/lib$name.la"
23368               fi
23369             else
23370               if test -f "$additional_libdir/lib$name.$libext"; then
23371                 found_dir="$additional_libdir"
23372                 found_a="$additional_libdir/lib$name.$libext"
23373                 if test -f "$additional_libdir/lib$name.la"; then
23374                   found_la="$additional_libdir/lib$name.la"
23375                 fi
23376               fi
23377             fi
23378           fi
23379           if test "X$found_dir" = "X"; then
23380             for x in $LDFLAGS $LTLIBINTL; do
23381
23382   acl_save_prefix="$prefix"
23383   prefix="$acl_final_prefix"
23384   acl_save_exec_prefix="$exec_prefix"
23385   exec_prefix="$acl_final_exec_prefix"
23386   eval x=\"$x\"
23387   exec_prefix="$acl_save_exec_prefix"
23388   prefix="$acl_save_prefix"
23389
23390               case "$x" in
23391                 -L*)
23392                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23393                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23394                     found_dir="$dir"
23395                     found_so="$dir/lib$name.$shlibext"
23396                     if test -f "$dir/lib$name.la"; then
23397                       found_la="$dir/lib$name.la"
23398                     fi
23399                   else
23400                     if test -f "$dir/lib$name.$libext"; then
23401                       found_dir="$dir"
23402                       found_a="$dir/lib$name.$libext"
23403                       if test -f "$dir/lib$name.la"; then
23404                         found_la="$dir/lib$name.la"
23405                       fi
23406                     fi
23407                   fi
23408                   ;;
23409               esac
23410               if test "X$found_dir" != "X"; then
23411                 break
23412               fi
23413             done
23414           fi
23415           if test "X$found_dir" != "X"; then
23416                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23417             if test "X$found_so" != "X"; then
23418                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23419                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23420               else
23421                                                                                 haveit=
23422                 for x in $ltrpathdirs; do
23423                   if test "X$x" = "X$found_dir"; then
23424                     haveit=yes
23425                     break
23426                   fi
23427                 done
23428                 if test -z "$haveit"; then
23429                   ltrpathdirs="$ltrpathdirs $found_dir"
23430                 fi
23431                                 if test "$hardcode_direct" = yes; then
23432                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23433                 else
23434                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23435                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23436                                                             haveit=
23437                     for x in $rpathdirs; do
23438                       if test "X$x" = "X$found_dir"; then
23439                         haveit=yes
23440                         break
23441                       fi
23442                     done
23443                     if test -z "$haveit"; then
23444                       rpathdirs="$rpathdirs $found_dir"
23445                     fi
23446                   else
23447                                                                                 haveit=
23448                     for x in $LDFLAGS $LIBINTL; do
23449
23450   acl_save_prefix="$prefix"
23451   prefix="$acl_final_prefix"
23452   acl_save_exec_prefix="$exec_prefix"
23453   exec_prefix="$acl_final_exec_prefix"
23454   eval x=\"$x\"
23455   exec_prefix="$acl_save_exec_prefix"
23456   prefix="$acl_save_prefix"
23457
23458                       if test "X$x" = "X-L$found_dir"; then
23459                         haveit=yes
23460                         break
23461                       fi
23462                     done
23463                     if test -z "$haveit"; then
23464                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23465                     fi
23466                     if test "$hardcode_minus_L" != no; then
23467                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23468                     else
23469                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23470                     fi
23471                   fi
23472                 fi
23473               fi
23474             else
23475               if test "X$found_a" != "X"; then
23476                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23477               else
23478                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23479               fi
23480             fi
23481                         additional_includedir=
23482             case "$found_dir" in
23483               */lib | */lib/)
23484                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23485                 additional_includedir="$basedir/include"
23486                 ;;
23487             esac
23488             if test "X$additional_includedir" != "X"; then
23489                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23490                 haveit=
23491                 if test "X$additional_includedir" = "X/usr/local/include"; then
23492                   if test -n "$GCC"; then
23493                     case $host_os in
23494                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23495                     esac
23496                   fi
23497                 fi
23498                 if test -z "$haveit"; then
23499                   for x in $CPPFLAGS $INCINTL; do
23500
23501   acl_save_prefix="$prefix"
23502   prefix="$acl_final_prefix"
23503   acl_save_exec_prefix="$exec_prefix"
23504   exec_prefix="$acl_final_exec_prefix"
23505   eval x=\"$x\"
23506   exec_prefix="$acl_save_exec_prefix"
23507   prefix="$acl_save_prefix"
23508
23509                     if test "X$x" = "X-I$additional_includedir"; then
23510                       haveit=yes
23511                       break
23512                     fi
23513                   done
23514                   if test -z "$haveit"; then
23515                     if test -d "$additional_includedir"; then
23516                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23517                     fi
23518                   fi
23519                 fi
23520               fi
23521             fi
23522                         if test -n "$found_la"; then
23523                                                         save_libdir="$libdir"
23524               case "$found_la" in
23525                 */* | *\\*) . "$found_la" ;;
23526                 *) . "./$found_la" ;;
23527               esac
23528               libdir="$save_libdir"
23529                             for dep in $dependency_libs; do
23530                 case "$dep" in
23531                   -L*)
23532                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23533                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23534                       haveit=
23535                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23536                         if test -n "$GCC"; then
23537                           case $host_os in
23538                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23539                           esac
23540                         fi
23541                       fi
23542                       if test -z "$haveit"; then
23543                         haveit=
23544                         for x in $LDFLAGS $LIBINTL; do
23545
23546   acl_save_prefix="$prefix"
23547   prefix="$acl_final_prefix"
23548   acl_save_exec_prefix="$exec_prefix"
23549   exec_prefix="$acl_final_exec_prefix"
23550   eval x=\"$x\"
23551   exec_prefix="$acl_save_exec_prefix"
23552   prefix="$acl_save_prefix"
23553
23554                           if test "X$x" = "X-L$additional_libdir"; then
23555                             haveit=yes
23556                             break
23557                           fi
23558                         done
23559                         if test -z "$haveit"; then
23560                           if test -d "$additional_libdir"; then
23561                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23562                           fi
23563                         fi
23564                         haveit=
23565                         for x in $LDFLAGS $LTLIBINTL; do
23566
23567   acl_save_prefix="$prefix"
23568   prefix="$acl_final_prefix"
23569   acl_save_exec_prefix="$exec_prefix"
23570   exec_prefix="$acl_final_exec_prefix"
23571   eval x=\"$x\"
23572   exec_prefix="$acl_save_exec_prefix"
23573   prefix="$acl_save_prefix"
23574
23575                           if test "X$x" = "X-L$additional_libdir"; then
23576                             haveit=yes
23577                             break
23578                           fi
23579                         done
23580                         if test -z "$haveit"; then
23581                           if test -d "$additional_libdir"; then
23582                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23583                           fi
23584                         fi
23585                       fi
23586                     fi
23587                     ;;
23588                   -R*)
23589                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23590                     if test "$enable_rpath" != no; then
23591                                                                   haveit=
23592                       for x in $rpathdirs; do
23593                         if test "X$x" = "X$dir"; then
23594                           haveit=yes
23595                           break
23596                         fi
23597                       done
23598                       if test -z "$haveit"; then
23599                         rpathdirs="$rpathdirs $dir"
23600                       fi
23601                                                                   haveit=
23602                       for x in $ltrpathdirs; do
23603                         if test "X$x" = "X$dir"; then
23604                           haveit=yes
23605                           break
23606                         fi
23607                       done
23608                       if test -z "$haveit"; then
23609                         ltrpathdirs="$ltrpathdirs $dir"
23610                       fi
23611                     fi
23612                     ;;
23613                   -l*)
23614                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23615                     ;;
23616                   *.la)
23617                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23618                     ;;
23619                   *)
23620                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23621                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23622                     ;;
23623                 esac
23624               done
23625             fi
23626           else
23627                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23628             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23629           fi
23630         fi
23631       fi
23632     done
23633   done
23634   if test "X$rpathdirs" != "X"; then
23635     if test -n "$hardcode_libdir_separator"; then
23636                         alldirs=
23637       for found_dir in $rpathdirs; do
23638         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23639       done
23640             acl_save_libdir="$libdir"
23641       libdir="$alldirs"
23642       eval flag=\"$hardcode_libdir_flag_spec\"
23643       libdir="$acl_save_libdir"
23644       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23645     else
23646             for found_dir in $rpathdirs; do
23647         acl_save_libdir="$libdir"
23648         libdir="$found_dir"
23649         eval flag=\"$hardcode_libdir_flag_spec\"
23650         libdir="$acl_save_libdir"
23651         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23652       done
23653     fi
23654   fi
23655   if test "X$ltrpathdirs" != "X"; then
23656             for found_dir in $ltrpathdirs; do
23657       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23658     done
23659   fi
23660
23661           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23662 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23663 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23664   echo $ECHO_N "(cached) $ECHO_C" >&6
23665 else
23666   gt_save_CPPFLAGS="$CPPFLAGS"
23667             CPPFLAGS="$CPPFLAGS $INCINTL"
23668             gt_save_LIBS="$LIBS"
23669             LIBS="$LIBS $LIBINTL"
23670                         cat >conftest.$ac_ext <<_ACEOF
23671 /* confdefs.h.  */
23672 _ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h.  */
23676 #include <libintl.h>
23677 extern int _nl_msg_cat_cntr;
23678 extern
23679 #ifdef __cplusplus
23680 "C"
23681 #endif
23682 const char *_nl_expand_alias (const char *);
23683 int
23684 main ()
23685 {
23686 bindtextdomain ("", "");
23687 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23688   ;
23689   return 0;
23690 }
23691 _ACEOF
23692 rm -f conftest.$ac_objext conftest$ac_exeext
23693 if { (ac_try="$ac_link"
23694 case "(($ac_try" in
23695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23696   *) ac_try_echo=$ac_try;;
23697 esac
23698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23699   (eval "$ac_link") 2>conftest.er1
23700   ac_status=$?
23701   grep -v '^ *+' conftest.er1 >conftest.err
23702   rm -f conftest.er1
23703   cat conftest.err >&5
23704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705   (exit $ac_status); } && {
23706          test -z "$ac_c_werror_flag" ||
23707          test ! -s conftest.err
23708        } && test -s conftest$ac_exeext &&
23709        $as_test_x conftest$ac_exeext; then
23710   gt_cv_func_gnugettext1_libintl=yes
23711 else
23712   echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23714
23715         gt_cv_func_gnugettext1_libintl=no
23716 fi
23717
23718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23719       conftest$ac_exeext conftest.$ac_ext
23720                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23721               LIBS="$LIBS $LIBICONV"
23722               cat >conftest.$ac_ext <<_ACEOF
23723 /* confdefs.h.  */
23724 _ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h.  */
23728 #include <libintl.h>
23729 extern int _nl_msg_cat_cntr;
23730 extern
23731 #ifdef __cplusplus
23732 "C"
23733 #endif
23734 const char *_nl_expand_alias (const char *);
23735 int
23736 main ()
23737 {
23738 bindtextdomain ("", "");
23739 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23740   ;
23741   return 0;
23742 }
23743 _ACEOF
23744 rm -f conftest.$ac_objext conftest$ac_exeext
23745 if { (ac_try="$ac_link"
23746 case "(($ac_try" in
23747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23748   *) ac_try_echo=$ac_try;;
23749 esac
23750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23751   (eval "$ac_link") 2>conftest.er1
23752   ac_status=$?
23753   grep -v '^ *+' conftest.er1 >conftest.err
23754   rm -f conftest.er1
23755   cat conftest.err >&5
23756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757   (exit $ac_status); } && {
23758          test -z "$ac_c_werror_flag" ||
23759          test ! -s conftest.err
23760        } && test -s conftest$ac_exeext &&
23761        $as_test_x conftest$ac_exeext; then
23762   LIBINTL="$LIBINTL $LIBICONV"
23763                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23764                 gt_cv_func_gnugettext1_libintl=yes
23765
23766 else
23767   echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23769
23770
23771 fi
23772
23773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23774       conftest$ac_exeext conftest.$ac_ext
23775             fi
23776             CPPFLAGS="$gt_save_CPPFLAGS"
23777             LIBS="$gt_save_LIBS"
23778 fi
23779 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23780 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23781         fi
23782
23783                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23784            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23785                 && test "$PACKAGE" != gettext-runtime \
23786                 && test "$PACKAGE" != gettext-tools; }; then
23787           gt_use_preinstalled_gnugettext=yes
23788         else
23789                     LIBINTL=
23790           LTLIBINTL=
23791           INCINTL=
23792         fi
23793
23794
23795         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23796                               nls_cv_use_gnu_gettext=yes
23797         fi
23798       fi
23799
23800       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23801                 BUILD_INCLUDED_LIBINTL=yes
23802         USE_INCLUDED_LIBINTL=yes
23803         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23804         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23805         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23806       fi
23807
23808       CATOBJEXT=
23809       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23810          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23811                 CATOBJEXT=.gmo
23812       fi
23813
23814
23815     if test -n "$INTL_MACOSX_LIBS"; then
23816       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23817          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23818                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23819         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23820       fi
23821     fi
23822
23823     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23824        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23825
23826 cat >>confdefs.h <<\_ACEOF
23827 #define ENABLE_NLS 1
23828 _ACEOF
23829
23830     else
23831       USE_NLS=no
23832     fi
23833   fi
23834
23835   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23836 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23837   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23838 echo "${ECHO_T}$USE_NLS" >&6; }
23839   if test "$USE_NLS" = "yes"; then
23840     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23841 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23842     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23843       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23844         gt_source="external libintl"
23845       else
23846         gt_source="libc"
23847       fi
23848     else
23849       gt_source="included intl directory"
23850     fi
23851     { echo "$as_me:$LINENO: result: $gt_source" >&5
23852 echo "${ECHO_T}$gt_source" >&6; }
23853   fi
23854
23855   if test "$USE_NLS" = "yes"; then
23856
23857     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23858       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23859         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23860 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23861         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23862 echo "${ECHO_T}$LIBINTL" >&6; }
23863
23864   for element in $INCINTL; do
23865     haveit=
23866     for x in $CPPFLAGS; do
23867
23868   acl_save_prefix="$prefix"
23869   prefix="$acl_final_prefix"
23870   acl_save_exec_prefix="$exec_prefix"
23871   exec_prefix="$acl_final_exec_prefix"
23872   eval x=\"$x\"
23873   exec_prefix="$acl_save_exec_prefix"
23874   prefix="$acl_save_prefix"
23875
23876       if test "X$x" = "X$element"; then
23877         haveit=yes
23878         break
23879       fi
23880     done
23881     if test -z "$haveit"; then
23882       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23883     fi
23884   done
23885
23886       fi
23887
23888
23889 cat >>confdefs.h <<\_ACEOF
23890 #define HAVE_GETTEXT 1
23891 _ACEOF
23892
23893
23894 cat >>confdefs.h <<\_ACEOF
23895 #define HAVE_DCGETTEXT 1
23896 _ACEOF
23897
23898     fi
23899
23900         POSUB=po
23901   fi
23902
23903
23904             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23905       BUILD_INCLUDED_LIBINTL=yes
23906     fi
23907
23908
23909
23910
23911
23912         nls_cv_header_intl=
23913     nls_cv_header_libgt=
23914
23915         DATADIRNAME=share
23916
23917
23918         INSTOBJEXT=.mo
23919
23920
23921         GENCAT=gencat
23922
23923
23924         INTLOBJS=
23925     if test "$USE_INCLUDED_LIBINTL" = yes; then
23926       INTLOBJS="\$(GETTOBJS)"
23927     fi
23928
23929
23930         INTL_LIBTOOL_SUFFIX_PREFIX=
23931
23932
23933
23934     INTLLIBS="$LIBINTL"
23935
23936
23937
23938
23939
23940
23941 fi
23942
23943 support_mysql=no
23944 support_sqlite=no
23945 support_sqlite3=no
23946 support_postgresql=no
23947 support_dbi=no
23948 support_smartalloc=yes
23949 support_readline=yes
23950 support_conio=yes
23951 support_gnome=no
23952 support_bat=no
23953 support_wx_console=no
23954 support_tray_monitor=no
23955 support_tls=no
23956 support_crypto=no
23957 gnome_version=
23958 wx_version=
23959 support_static_tools=no
23960 support_static_fd=no
23961 support_static_sd=no
23962 support_static_dir=no
23963 support_static_cons=no
23964 support_python=no
23965 build_client_only=no
23966 build_dird=yes
23967 build_stored=yes
23968 cats=
23969 db_type=Internal
23970 support_lockmgr=no
23971 DB_TYPE=bdb
23972
23973
23974 # Check whether --enable-gnome was given.
23975 if test "${enable_gnome+set}" = set; then
23976   enableval=$enable_gnome;
23977        if test x$enableval = xyes; then
23978           support_gnome=yes
23979        fi
23980
23981
23982 fi
23983
23984
23985 GNOME_DIR=
23986 if test x$support_gnome = xyes; then
23987    abc=`$PKGCONFIG --exists libgnomeui-2.0`
23988    pkg=$?
23989    if test $pkg = 0; then
23990       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23991       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23992       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23993       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23994
23995
23996
23997
23998       GNOME_DIR=src/gnome2-console
23999       gnome_version="Version 2.x"
24000    else
24001       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24002 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24003    { (exit 1); exit 1; }; }
24004    fi
24005 fi
24006
24007
24008 # Check whether --enable-bat was given.
24009 if test "${enable_bat+set}" = set; then
24010   enableval=$enable_bat;
24011        if test x$enableval = xyes; then
24012
24013 cat >>confdefs.h <<\_ACEOF
24014 #define HAVE_BAT 1
24015 _ACEOF
24016
24017           support_bat=yes
24018        fi
24019
24020
24021 fi
24022
24023
24024 BAT_DIR=
24025 if test x$support_bat = xyes; then
24026    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24027    pkg=$?
24028    if test $pkg = 0; then
24029       BAT_DIR=src/qt-console
24030    else
24031       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24032 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24033    { (exit 1); exit 1; }; }
24034    fi
24035 fi
24036
24037 got_qwt=no
24038 QWT_INC=
24039 QWT_LDFLAGS=
24040 QWT_LIB=
24041 QWT=
24042 no_qwt=no
24043 if test x$support_bat = xyes; then
24044    { echo "$as_me:$LINENO: checking for qwt support" >&5
24045 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24046
24047 # Check whether --with-qwt was given.
24048 if test "${with_qwt+set}" = set; then
24049   withval=$with_qwt;
24050           case "$with_qwt" in
24051           no)
24052              no_qwt=yes
24053              ;;
24054           yes|*)
24055              if test -f ${with_qwt}/include/qwt.h; then
24056                 QWT_INC="${with_qwt}/include"
24057                 QWT_LDFLAGS="-L${with_qwt}/lib"
24058                 QWT_LIB="-lqwt"
24059                 QWT="qwt"
24060              fi
24061              ;;
24062           esac
24063
24064
24065 fi
24066
24067
24068             if test $no_qwt = no; then
24069       if test x$QWT_INC = x; then
24070          for root in /usr /usr/local; do
24071             for ver in qwt qwt5 qwt-qt4; do
24072                if test -f ${root}/include/${ver}/qwt.h; then
24073                   QWT_INC="${root}/include/${ver}"
24074                   if test -d ${root}/lib64/; then
24075                      QWT_LDFLAGS="-L${root}/lib64"
24076                   elif test -d ${root}/lib/64/; then
24077                      QWT_LDFLAGS="-L${root}/64"
24078                   else
24079                      QWT_LDFLAGS="-L${root}/lib"
24080                   fi
24081                   QWT_LIB="-lqwt"
24082                   QWT="qwt"
24083                   got_qwt=yes
24084                   break;
24085                fi
24086             done
24087          done
24088       fi
24089    fi
24090    if test x$QWT_INC = x; then
24091       { echo "$as_me:$LINENO: result: no" >&5
24092 echo "${ECHO_T}no" >&6; }
24093    else
24094
24095 cat >>confdefs.h <<\_ACEOF
24096 #define HAVE_QWT 1
24097 _ACEOF
24098
24099       { echo "$as_me:$LINENO: result: yes" >&5
24100 echo "${ECHO_T}yes" >&6; }
24101    fi
24102 fi
24103
24104
24105
24106
24107
24108
24109
24110 # Check whether --enable-bwx-console was given.
24111 if test "${enable_bwx_console+set}" = set; then
24112   enableval=$enable_bwx_console;
24113        if test x$enableval = xyes; then
24114           support_wx_console=yes
24115        fi
24116
24117
24118 fi
24119
24120
24121 WX_DIR=
24122 if test x$support_wx_console = xyes; then
24123    abc=`$WXCONFIG $WXFLAGS --cppflags`
24124    pkg=$?
24125    if test $pkg = 0; then
24126       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24127       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24128       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24129
24130
24131
24132       WX_DIR=src/wx-console
24133    else
24134       echo " "
24135       echo "wx-config program not found. bwx-console disabled."
24136       echo " "
24137       support_wx_console=no
24138    fi
24139 fi
24140
24141
24142 # Check whether --enable-tray-monitor was given.
24143 if test "${enable_tray_monitor+set}" = set; then
24144   enableval=$enable_tray_monitor;
24145        if test x$enableval = xyes; then
24146           support_tray_monitor=yes
24147        fi
24148
24149
24150 fi
24151
24152
24153 TRAY_MONITOR_DIR=
24154 if test x$support_tray_monitor = xyes; then
24155    abc=`$PKGCONFIG --exists gtk+-2.0`
24156    pkg=$?
24157    if test $pkg = 0; then
24158       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24159       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24160
24161
24162       TRAY_MONITOR_DIR=src/tray-monitor
24163       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24164       pkg=$?
24165       if test $pkg = 0; then
24166
24167 cat >>confdefs.h <<\_ACEOF
24168 #define HAVE_GTK_2_4 1
24169 _ACEOF
24170
24171       fi
24172    fi
24173 fi
24174
24175
24176 # Check whether --enable-smartalloc was given.
24177 if test "${enable_smartalloc+set}" = set; then
24178   enableval=$enable_smartalloc;
24179        if test x$enableval = xno; then
24180           support_smartalloc=no
24181        fi
24182
24183
24184 fi
24185
24186
24187 if test x$support_smartalloc = xyes; then
24188
24189 cat >>confdefs.h <<\_ACEOF
24190 #define SMARTALLOC 1
24191 _ACEOF
24192
24193 fi
24194
24195 # Check whether --enable-lockmgr was given.
24196 if test "${enable_lockmgr+set}" = set; then
24197   enableval=$enable_lockmgr;
24198        if test x$enableval = xyes; then
24199           support_lockmgr=yes
24200        fi
24201
24202
24203 fi
24204
24205
24206 if test x$support_lockmgr = xyes; then
24207
24208 cat >>confdefs.h <<\_ACEOF
24209 #define _USE_LOCKMGR 1
24210 _ACEOF
24211
24212 fi
24213
24214
24215 # Check whether --enable-static-tools was given.
24216 if test "${enable_static_tools+set}" = set; then
24217   enableval=$enable_static_tools;
24218        if test x$enableval = xyes; then
24219           support_static_tools=yes
24220        fi
24221
24222
24223 fi
24224
24225
24226 TTOOL_LDFLAGS=
24227 if test x$support_static_tools = xyes; then
24228    TTOOL_LDFLAGS="-static"
24229 fi
24230
24231
24232 # Check whether --enable-static-fd was given.
24233 if test "${enable_static_fd+set}" = set; then
24234   enableval=$enable_static_fd;
24235        if test x$enableval = xyes; then
24236           support_static_fd=yes
24237        fi
24238
24239
24240 fi
24241
24242
24243 STATIC_FD=
24244 if test x$support_static_fd = xyes; then
24245    STATIC_FD="static-bacula-fd"
24246 fi
24247
24248
24249 # Check whether --enable-static-sd was given.
24250 if test "${enable_static_sd+set}" = set; then
24251   enableval=$enable_static_sd;
24252        if test x$enableval = xyes; then
24253           support_static_sd=yes
24254        fi
24255
24256
24257 fi
24258
24259
24260 STATIC_SD=
24261 if test x$support_static_sd = xyes; then
24262    STATIC_SD="static-bacula-sd"
24263 fi
24264
24265
24266 # Check whether --enable-static-dir was given.
24267 if test "${enable_static_dir+set}" = set; then
24268   enableval=$enable_static_dir;
24269        if test x$enableval = xyes; then
24270           support_static_dir=yes
24271        fi
24272
24273
24274 fi
24275
24276
24277 STATIC_DIR=
24278 if test x$support_static_dir = xyes; then
24279    STATIC_DIR="static-bacula-dir"
24280 fi
24281
24282
24283 # Check whether --enable-static-cons was given.
24284 if test "${enable_static_cons+set}" = set; then
24285   enableval=$enable_static_cons;
24286        if test x$enableval = xyes; then
24287           support_static_cons=yes
24288        fi
24289
24290
24291 fi
24292
24293
24294 STATIC_CONS=
24295 STATIC_GNOME_CONS=
24296 STATIC_WX_CONS=
24297 if test x$support_static_cons = xyes; then
24298    STATIC_CONS="static-bconsole"
24299    STATIC_GNOME_CONS="static-bgnome-console"
24300    STATIC_WX_CONS="static-bwx-console"
24301 fi
24302
24303
24304
24305
24306 # Check whether --enable-client-only was given.
24307 if test "${enable_client_only+set}" = set; then
24308   enableval=$enable_client_only;
24309        if test x$enableval = xyes; then
24310           build_client_only=yes
24311           db_type=None
24312           DB_TYPE=none
24313        fi
24314
24315
24316 fi
24317
24318 if test x$build_client_only = xno; then
24319    ALL_DIRS="subdirs"
24320 else
24321    ALL_DIRS=""
24322 fi
24323
24324
24325 # Check whether --enable-build-dird was given.
24326 if test "${enable_build_dird+set}" = set; then
24327   enableval=$enable_build_dird;
24328        if test x$enableval = xno; then
24329           build_dird=no
24330        fi
24331
24332
24333 fi
24334
24335 if test x$build_dird = xyes; then
24336    DIRD_DIR="src/dird"
24337    DIR_TOOLS="DIRTOOLS"
24338 else
24339    DIRD_DIR=""
24340    DIR_TOOLS="NODIRTOOLS"
24341 fi
24342
24343
24344
24345 # Check whether --enable-build-stored was given.
24346 if test "${enable_build_stored+set}" = set; then
24347   enableval=$enable_build_stored;
24348       if test x$enableval = xno; then
24349          build_stored=no
24350       fi
24351
24352
24353 fi
24354
24355 if test x$build_stored = xyes; then
24356    STORED_DIR="src/stored"
24357 else
24358    STORED_DIR=""
24359 fi
24360
24361
24362 # Check whether --enable-conio was given.
24363 if test "${enable_conio+set}" = set; then
24364   enableval=$enable_conio;
24365        if test x$enableval = xno; then
24366           support_conio=no
24367        fi
24368
24369
24370 fi
24371
24372
24373
24374 support_ipv6=yes
24375 # Check whether --enable-ipv6 was given.
24376 if test "${enable_ipv6+set}" = set; then
24377   enableval=$enable_ipv6;
24378        if test x$enableval = xno; then
24379           support_ipv6=no
24380        fi
24381
24382
24383 fi
24384
24385
24386 if test x$support_ipv6 = xyes; then
24387     cat >conftest.$ac_ext <<_ACEOF
24388 /* confdefs.h.  */
24389 _ACEOF
24390 cat confdefs.h >>conftest.$ac_ext
24391 cat >>conftest.$ac_ext <<_ACEOF
24392 /* end confdefs.h.  */
24393  #include <sys/types.h>
24394 #include <sys/socket.h>
24395 #include <netinet/in.h>
24396 int
24397 main ()
24398 {
24399 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24400   ;
24401   return 0;
24402 }
24403 _ACEOF
24404 rm -f conftest.$ac_objext conftest$ac_exeext
24405 if { (ac_try="$ac_link"
24406 case "(($ac_try" in
24407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24408   *) ac_try_echo=$ac_try;;
24409 esac
24410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24411   (eval "$ac_link") 2>conftest.er1
24412   ac_status=$?
24413   grep -v '^ *+' conftest.er1 >conftest.err
24414   rm -f conftest.er1
24415   cat conftest.err >&5
24416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417   (exit $ac_status); } && {
24418          test -z "$ac_c_werror_flag" ||
24419          test ! -s conftest.err
24420        } && test -s conftest$ac_exeext &&
24421        $as_test_x conftest$ac_exeext; then
24422   support_ipv6=yes
24423 else
24424   echo "$as_me: failed program was:" >&5
24425 sed 's/^/| /' conftest.$ac_ext >&5
24426
24427         support_ipv6=no
24428 fi
24429
24430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24431       conftest$ac_exeext conftest.$ac_ext
24432 fi
24433
24434 if test x$support_ipv6 = xyes; then
24435
24436 cat >>confdefs.h <<\_ACEOF
24437 #define HAVE_IPV6 1
24438 _ACEOF
24439
24440 fi
24441
24442 got_conio="no"
24443 if test x$support_conio = xyes; then
24444    if test "${ac_cv_header_termcap_h+set}" = set; then
24445   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24446 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24447 if test "${ac_cv_header_termcap_h+set}" = set; then
24448   echo $ECHO_N "(cached) $ECHO_C" >&6
24449 fi
24450 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24451 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24452 else
24453   # Is the header compilable?
24454 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24455 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24456 cat >conftest.$ac_ext <<_ACEOF
24457 /* confdefs.h.  */
24458 _ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h.  */
24462 $ac_includes_default
24463 #include <termcap.h>
24464 _ACEOF
24465 rm -f conftest.$ac_objext
24466 if { (ac_try="$ac_compile"
24467 case "(($ac_try" in
24468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24469   *) ac_try_echo=$ac_try;;
24470 esac
24471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24472   (eval "$ac_compile") 2>conftest.er1
24473   ac_status=$?
24474   grep -v '^ *+' conftest.er1 >conftest.err
24475   rm -f conftest.er1
24476   cat conftest.err >&5
24477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478   (exit $ac_status); } && {
24479          test -z "$ac_c_werror_flag" ||
24480          test ! -s conftest.err
24481        } && test -s conftest.$ac_objext; then
24482   ac_header_compiler=yes
24483 else
24484   echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.$ac_ext >&5
24486
24487         ac_header_compiler=no
24488 fi
24489
24490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24492 echo "${ECHO_T}$ac_header_compiler" >&6; }
24493
24494 # Is the header present?
24495 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24496 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24497 cat >conftest.$ac_ext <<_ACEOF
24498 /* confdefs.h.  */
24499 _ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h.  */
24503 #include <termcap.h>
24504 _ACEOF
24505 if { (ac_try="$ac_cpp conftest.$ac_ext"
24506 case "(($ac_try" in
24507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508   *) ac_try_echo=$ac_try;;
24509 esac
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24512   ac_status=$?
24513   grep -v '^ *+' conftest.er1 >conftest.err
24514   rm -f conftest.er1
24515   cat conftest.err >&5
24516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517   (exit $ac_status); } >/dev/null && {
24518          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24519          test ! -s conftest.err
24520        }; then
24521   ac_header_preproc=yes
24522 else
24523   echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24525
24526   ac_header_preproc=no
24527 fi
24528
24529 rm -f conftest.err conftest.$ac_ext
24530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24531 echo "${ECHO_T}$ac_header_preproc" >&6; }
24532
24533 # So?  What about this header?
24534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24535   yes:no: )
24536     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24537 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24538     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24539 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24540     ac_header_preproc=yes
24541     ;;
24542   no:yes:* )
24543     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24544 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24545     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24546 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24547     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24548 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24549     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24550 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24551     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24552 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24553     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24554 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24555
24556     ;;
24557 esac
24558 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24559 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24560 if test "${ac_cv_header_termcap_h+set}" = set; then
24561   echo $ECHO_N "(cached) $ECHO_C" >&6
24562 else
24563   ac_cv_header_termcap_h=$ac_header_preproc
24564 fi
24565 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24566 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24567
24568 fi
24569 if test $ac_cv_header_termcap_h = yes; then
24570    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24571 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24572 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24573   echo $ECHO_N "(cached) $ECHO_C" >&6
24574 else
24575   ac_check_lib_save_LIBS=$LIBS
24576 LIBS="-ltermcap  $LIBS"
24577 cat >conftest.$ac_ext <<_ACEOF
24578 /* confdefs.h.  */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h.  */
24583
24584 /* Override any GCC internal prototype to avoid an error.
24585    Use char because int might match the return type of a GCC
24586    builtin and then its argument prototype would still apply.  */
24587 #ifdef __cplusplus
24588 extern "C"
24589 #endif
24590 char tgetent ();
24591 int
24592 main ()
24593 {
24594 return tgetent ();
24595   ;
24596   return 0;
24597 }
24598 _ACEOF
24599 rm -f conftest.$ac_objext conftest$ac_exeext
24600 if { (ac_try="$ac_link"
24601 case "(($ac_try" in
24602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24603   *) ac_try_echo=$ac_try;;
24604 esac
24605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24606   (eval "$ac_link") 2>conftest.er1
24607   ac_status=$?
24608   grep -v '^ *+' conftest.er1 >conftest.err
24609   rm -f conftest.er1
24610   cat conftest.err >&5
24611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612   (exit $ac_status); } && {
24613          test -z "$ac_c_werror_flag" ||
24614          test ! -s conftest.err
24615        } && test -s conftest$ac_exeext &&
24616        $as_test_x conftest$ac_exeext; then
24617   ac_cv_lib_termcap_tgetent=yes
24618 else
24619   echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24621
24622         ac_cv_lib_termcap_tgetent=no
24623 fi
24624
24625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24626       conftest$ac_exeext conftest.$ac_ext
24627 LIBS=$ac_check_lib_save_LIBS
24628 fi
24629 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24630 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24631 if test $ac_cv_lib_termcap_tgetent = yes; then
24632    CONS_LIBS="-ltermcap"
24633     CONS_OBJ="conio.o"
24634     CONS_SRC="conio.c"
24635     got_conio="yes"
24636     support_readline=no
24637
24638 cat >>confdefs.h <<\_ACEOF
24639 #define HAVE_CONIO 1
24640 _ACEOF
24641
24642
24643 else
24644    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24645 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24646 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24647   echo $ECHO_N "(cached) $ECHO_C" >&6
24648 else
24649   ac_check_lib_save_LIBS=$LIBS
24650 LIBS="-lncurses  $LIBS"
24651 cat >conftest.$ac_ext <<_ACEOF
24652 /* confdefs.h.  */
24653 _ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h.  */
24657
24658 /* Override any GCC internal prototype to avoid an error.
24659    Use char because int might match the return type of a GCC
24660    builtin and then its argument prototype would still apply.  */
24661 #ifdef __cplusplus
24662 extern "C"
24663 #endif
24664 char tgetent ();
24665 int
24666 main ()
24667 {
24668 return tgetent ();
24669   ;
24670   return 0;
24671 }
24672 _ACEOF
24673 rm -f conftest.$ac_objext conftest$ac_exeext
24674 if { (ac_try="$ac_link"
24675 case "(($ac_try" in
24676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677   *) ac_try_echo=$ac_try;;
24678 esac
24679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680   (eval "$ac_link") 2>conftest.er1
24681   ac_status=$?
24682   grep -v '^ *+' conftest.er1 >conftest.err
24683   rm -f conftest.er1
24684   cat conftest.err >&5
24685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686   (exit $ac_status); } && {
24687          test -z "$ac_c_werror_flag" ||
24688          test ! -s conftest.err
24689        } && test -s conftest$ac_exeext &&
24690        $as_test_x conftest$ac_exeext; then
24691   ac_cv_lib_ncurses_tgetent=yes
24692 else
24693   echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24695
24696         ac_cv_lib_ncurses_tgetent=no
24697 fi
24698
24699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24700       conftest$ac_exeext conftest.$ac_ext
24701 LIBS=$ac_check_lib_save_LIBS
24702 fi
24703 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24704 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24705 if test $ac_cv_lib_ncurses_tgetent = yes; then
24706    CONS_LIBS="-lncurses"
24707       CONS_OBJ="conio.o"
24708       CONS_SRC="conio.c"
24709       got_conio="yes"
24710       support_readline=no
24711
24712 cat >>confdefs.h <<\_ACEOF
24713 #define HAVE_CONIO 1
24714 _ACEOF
24715
24716
24717 fi
24718
24719
24720 fi
24721
24722
24723 else
24724
24725
24726 for ac_header in curses.h
24727 do
24728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24730   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24733   echo $ECHO_N "(cached) $ECHO_C" >&6
24734 fi
24735 ac_res=`eval echo '${'$as_ac_Header'}'`
24736                { echo "$as_me:$LINENO: result: $ac_res" >&5
24737 echo "${ECHO_T}$ac_res" >&6; }
24738 else
24739   # Is the header compilable?
24740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24742 cat >conftest.$ac_ext <<_ACEOF
24743 /* confdefs.h.  */
24744 _ACEOF
24745 cat confdefs.h >>conftest.$ac_ext
24746 cat >>conftest.$ac_ext <<_ACEOF
24747 /* end confdefs.h.  */
24748 $ac_includes_default
24749 #include <$ac_header>
24750 _ACEOF
24751 rm -f conftest.$ac_objext
24752 if { (ac_try="$ac_compile"
24753 case "(($ac_try" in
24754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24755   *) ac_try_echo=$ac_try;;
24756 esac
24757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24758   (eval "$ac_compile") 2>conftest.er1
24759   ac_status=$?
24760   grep -v '^ *+' conftest.er1 >conftest.err
24761   rm -f conftest.er1
24762   cat conftest.err >&5
24763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764   (exit $ac_status); } && {
24765          test -z "$ac_c_werror_flag" ||
24766          test ! -s conftest.err
24767        } && test -s conftest.$ac_objext; then
24768   ac_header_compiler=yes
24769 else
24770   echo "$as_me: failed program was:" >&5
24771 sed 's/^/| /' conftest.$ac_ext >&5
24772
24773         ac_header_compiler=no
24774 fi
24775
24776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24778 echo "${ECHO_T}$ac_header_compiler" >&6; }
24779
24780 # Is the header present?
24781 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24783 cat >conftest.$ac_ext <<_ACEOF
24784 /* confdefs.h.  */
24785 _ACEOF
24786 cat confdefs.h >>conftest.$ac_ext
24787 cat >>conftest.$ac_ext <<_ACEOF
24788 /* end confdefs.h.  */
24789 #include <$ac_header>
24790 _ACEOF
24791 if { (ac_try="$ac_cpp conftest.$ac_ext"
24792 case "(($ac_try" in
24793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794   *) ac_try_echo=$ac_try;;
24795 esac
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24798   ac_status=$?
24799   grep -v '^ *+' conftest.er1 >conftest.err
24800   rm -f conftest.er1
24801   cat conftest.err >&5
24802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803   (exit $ac_status); } >/dev/null && {
24804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24805          test ! -s conftest.err
24806        }; then
24807   ac_header_preproc=yes
24808 else
24809   echo "$as_me: failed program was:" >&5
24810 sed 's/^/| /' conftest.$ac_ext >&5
24811
24812   ac_header_preproc=no
24813 fi
24814
24815 rm -f conftest.err conftest.$ac_ext
24816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24817 echo "${ECHO_T}$ac_header_preproc" >&6; }
24818
24819 # So?  What about this header?
24820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24821   yes:no: )
24822     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24826     ac_header_preproc=yes
24827     ;;
24828   no:yes:* )
24829     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24831     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24832 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24833     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24835     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24836 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24839     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24841
24842     ;;
24843 esac
24844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24847   echo $ECHO_N "(cached) $ECHO_C" >&6
24848 else
24849   eval "$as_ac_Header=\$ac_header_preproc"
24850 fi
24851 ac_res=`eval echo '${'$as_ac_Header'}'`
24852                { echo "$as_me:$LINENO: result: $ac_res" >&5
24853 echo "${ECHO_T}$ac_res" >&6; }
24854
24855 fi
24856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24857   cat >>confdefs.h <<_ACEOF
24858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24859 _ACEOF
24860
24861 fi
24862
24863 done
24864
24865     { echo "$as_me:$LINENO: checking for term.h" >&5
24866 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24867 if test "${ac_cv_header_term_h+set}" = set; then
24868   echo $ECHO_N "(cached) $ECHO_C" >&6
24869 else
24870   cat >conftest.$ac_ext <<_ACEOF
24871 /* confdefs.h.  */
24872 _ACEOF
24873 cat confdefs.h >>conftest.$ac_ext
24874 cat >>conftest.$ac_ext <<_ACEOF
24875 /* end confdefs.h.  */
24876 #if HAVE_CURSES_H
24877 #include <curses.h>
24878 #endif
24879
24880
24881 #include <term.h>
24882 _ACEOF
24883 rm -f conftest.$ac_objext
24884 if { (ac_try="$ac_compile"
24885 case "(($ac_try" in
24886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887   *) ac_try_echo=$ac_try;;
24888 esac
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890   (eval "$ac_compile") 2>conftest.er1
24891   ac_status=$?
24892   grep -v '^ *+' conftest.er1 >conftest.err
24893   rm -f conftest.er1
24894   cat conftest.err >&5
24895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896   (exit $ac_status); } && {
24897          test -z "$ac_c_werror_flag" ||
24898          test ! -s conftest.err
24899        } && test -s conftest.$ac_objext; then
24900   ac_cv_header_term_h=yes
24901 else
24902   echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24904
24905         ac_cv_header_term_h=no
24906 fi
24907
24908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24909 fi
24910 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24911 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24912 if test $ac_cv_header_term_h = yes; then
24913    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24914 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24915 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24916   echo $ECHO_N "(cached) $ECHO_C" >&6
24917 else
24918   ac_check_lib_save_LIBS=$LIBS
24919 LIBS="-lcurses  $LIBS"
24920 cat >conftest.$ac_ext <<_ACEOF
24921 /* confdefs.h.  */
24922 _ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h.  */
24926
24927 /* Override any GCC internal prototype to avoid an error.
24928    Use char because int might match the return type of a GCC
24929    builtin and then its argument prototype would still apply.  */
24930 #ifdef __cplusplus
24931 extern "C"
24932 #endif
24933 char tgetent ();
24934 int
24935 main ()
24936 {
24937 return tgetent ();
24938   ;
24939   return 0;
24940 }
24941 _ACEOF
24942 rm -f conftest.$ac_objext conftest$ac_exeext
24943 if { (ac_try="$ac_link"
24944 case "(($ac_try" in
24945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24946   *) ac_try_echo=$ac_try;;
24947 esac
24948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24949   (eval "$ac_link") 2>conftest.er1
24950   ac_status=$?
24951   grep -v '^ *+' conftest.er1 >conftest.err
24952   rm -f conftest.er1
24953   cat conftest.err >&5
24954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955   (exit $ac_status); } && {
24956          test -z "$ac_c_werror_flag" ||
24957          test ! -s conftest.err
24958        } && test -s conftest$ac_exeext &&
24959        $as_test_x conftest$ac_exeext; then
24960   ac_cv_lib_curses_tgetent=yes
24961 else
24962   echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24964
24965         ac_cv_lib_curses_tgetent=no
24966 fi
24967
24968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24969       conftest$ac_exeext conftest.$ac_ext
24970 LIBS=$ac_check_lib_save_LIBS
24971 fi
24972 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24973 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24974 if test $ac_cv_lib_curses_tgetent = yes; then
24975    CONS_LIBS="-lcurses"
24976          CONS_OBJ="conio.o"
24977          CONS_SRC="conio.c"
24978          got_conio="yes"
24979          support_readline=no
24980
24981 cat >>confdefs.h <<\_ACEOF
24982 #define HAVE_CONIO 1
24983 _ACEOF
24984
24985
24986 fi
24987
24988
24989 else
24990    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24991 fi
24992
24993
24994
24995 fi
24996
24997
24998 fi
24999
25000
25001 # Check whether --enable-readline was given.
25002 if test "${enable_readline+set}" = set; then
25003   enableval=$enable_readline;
25004        if test x$enableval = xno; then
25005           support_readline=no
25006        fi
25007
25008
25009 fi
25010
25011
25012 got_readline="no"
25013 READLINE_SRC=
25014 if test x$support_readline = xyes; then
25015
25016 # Check whether --with-readline was given.
25017 if test "${with_readline+set}" = set; then
25018   withval=$with_readline;
25019           case "$with_readline" in
25020           no)
25021              :
25022              ;;
25023           yes|*)
25024              if test -f ${with_readline}/readline.h; then
25025                 CONS_INC="-I${with_readline}"
25026                 CONS_LDFLAGS="-L$with_readline"
25027              elif test -f ${with_readline}/include/readline/readline.h; then
25028                 CONS_INC="-I${with_readline}/include/readline"
25029                 CONS_LDFLAGS="-L${with_readline}/lib"
25030                 with_readline="${with_readline}/include/readline"
25031              else
25032                 with_readline="/usr/include/readline"
25033              fi
25034
25035              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25037   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25038 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25040   echo $ECHO_N "(cached) $ECHO_C" >&6
25041 fi
25042 ac_res=`eval echo '${'$as_ac_Header'}'`
25043                { echo "$as_me:$LINENO: result: $ac_res" >&5
25044 echo "${ECHO_T}$ac_res" >&6; }
25045 else
25046   # Is the header compilable?
25047 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25048 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25049 cat >conftest.$ac_ext <<_ACEOF
25050 /* confdefs.h.  */
25051 _ACEOF
25052 cat confdefs.h >>conftest.$ac_ext
25053 cat >>conftest.$ac_ext <<_ACEOF
25054 /* end confdefs.h.  */
25055 $ac_includes_default
25056 #include <${with_readline}/readline.h>
25057 _ACEOF
25058 rm -f conftest.$ac_objext
25059 if { (ac_try="$ac_compile"
25060 case "(($ac_try" in
25061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25062   *) ac_try_echo=$ac_try;;
25063 esac
25064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25065   (eval "$ac_compile") 2>conftest.er1
25066   ac_status=$?
25067   grep -v '^ *+' conftest.er1 >conftest.err
25068   rm -f conftest.er1
25069   cat conftest.err >&5
25070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071   (exit $ac_status); } && {
25072          test -z "$ac_c_werror_flag" ||
25073          test ! -s conftest.err
25074        } && test -s conftest.$ac_objext; then
25075   ac_header_compiler=yes
25076 else
25077   echo "$as_me: failed program was:" >&5
25078 sed 's/^/| /' conftest.$ac_ext >&5
25079
25080         ac_header_compiler=no
25081 fi
25082
25083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25085 echo "${ECHO_T}$ac_header_compiler" >&6; }
25086
25087 # Is the header present?
25088 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25089 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25090 cat >conftest.$ac_ext <<_ACEOF
25091 /* confdefs.h.  */
25092 _ACEOF
25093 cat confdefs.h >>conftest.$ac_ext
25094 cat >>conftest.$ac_ext <<_ACEOF
25095 /* end confdefs.h.  */
25096 #include <${with_readline}/readline.h>
25097 _ACEOF
25098 if { (ac_try="$ac_cpp conftest.$ac_ext"
25099 case "(($ac_try" in
25100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25101   *) ac_try_echo=$ac_try;;
25102 esac
25103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25105   ac_status=$?
25106   grep -v '^ *+' conftest.er1 >conftest.err
25107   rm -f conftest.er1
25108   cat conftest.err >&5
25109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110   (exit $ac_status); } >/dev/null && {
25111          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25112          test ! -s conftest.err
25113        }; then
25114   ac_header_preproc=yes
25115 else
25116   echo "$as_me: failed program was:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25118
25119   ac_header_preproc=no
25120 fi
25121
25122 rm -f conftest.err conftest.$ac_ext
25123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25124 echo "${ECHO_T}$ac_header_preproc" >&6; }
25125
25126 # So?  What about this header?
25127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25128   yes:no: )
25129     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25130 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25131     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25132 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25133     ac_header_preproc=yes
25134     ;;
25135   no:yes:* )
25136     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25137 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25138     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25139 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25140     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25141 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25142     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25143 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25144     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25145 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25146     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25147 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25148
25149     ;;
25150 esac
25151 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25152 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25154   echo $ECHO_N "(cached) $ECHO_C" >&6
25155 else
25156   eval "$as_ac_Header=\$ac_header_preproc"
25157 fi
25158 ac_res=`eval echo '${'$as_ac_Header'}'`
25159                { echo "$as_me:$LINENO: result: $ac_res" >&5
25160 echo "${ECHO_T}$ac_res" >&6; }
25161
25162 fi
25163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25164
25165
25166 cat >>confdefs.h <<\_ACEOF
25167 #define HAVE_READLINE 1
25168 _ACEOF
25169
25170                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25171                     got_readline="yes"
25172
25173 else
25174
25175                     echo " "
25176                     echo "readline.h not found. readline turned off ..."
25177                     echo " "
25178
25179
25180 fi
25181
25182
25183              ;;
25184           esac
25185
25186 else
25187
25188                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25189   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25190 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25191 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25192   echo $ECHO_N "(cached) $ECHO_C" >&6
25193 fi
25194 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25195 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25196 else
25197   # Is the header compilable?
25198 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25199 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25200 cat >conftest.$ac_ext <<_ACEOF
25201 /* confdefs.h.  */
25202 _ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h.  */
25206 $ac_includes_default
25207 #include </usr/include/readline/readline.h>
25208 _ACEOF
25209 rm -f conftest.$ac_objext
25210 if { (ac_try="$ac_compile"
25211 case "(($ac_try" in
25212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25213   *) ac_try_echo=$ac_try;;
25214 esac
25215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25216   (eval "$ac_compile") 2>conftest.er1
25217   ac_status=$?
25218   grep -v '^ *+' conftest.er1 >conftest.err
25219   rm -f conftest.er1
25220   cat conftest.err >&5
25221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222   (exit $ac_status); } && {
25223          test -z "$ac_c_werror_flag" ||
25224          test ! -s conftest.err
25225        } && test -s conftest.$ac_objext; then
25226   ac_header_compiler=yes
25227 else
25228   echo "$as_me: failed program was:" >&5
25229 sed 's/^/| /' conftest.$ac_ext >&5
25230
25231         ac_header_compiler=no
25232 fi
25233
25234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25236 echo "${ECHO_T}$ac_header_compiler" >&6; }
25237
25238 # Is the header present?
25239 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25240 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25241 cat >conftest.$ac_ext <<_ACEOF
25242 /* confdefs.h.  */
25243 _ACEOF
25244 cat confdefs.h >>conftest.$ac_ext
25245 cat >>conftest.$ac_ext <<_ACEOF
25246 /* end confdefs.h.  */
25247 #include </usr/include/readline/readline.h>
25248 _ACEOF
25249 if { (ac_try="$ac_cpp conftest.$ac_ext"
25250 case "(($ac_try" in
25251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25252   *) ac_try_echo=$ac_try;;
25253 esac
25254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25256   ac_status=$?
25257   grep -v '^ *+' conftest.er1 >conftest.err
25258   rm -f conftest.er1
25259   cat conftest.err >&5
25260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261   (exit $ac_status); } >/dev/null && {
25262          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25263          test ! -s conftest.err
25264        }; then
25265   ac_header_preproc=yes
25266 else
25267   echo "$as_me: failed program was:" >&5
25268 sed 's/^/| /' conftest.$ac_ext >&5
25269
25270   ac_header_preproc=no
25271 fi
25272
25273 rm -f conftest.err conftest.$ac_ext
25274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25275 echo "${ECHO_T}$ac_header_preproc" >&6; }
25276
25277 # So?  What about this header?
25278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25279   yes:no: )
25280     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25281 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25282     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25283 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25284     ac_header_preproc=yes
25285     ;;
25286   no:yes:* )
25287     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25288 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25289     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25290 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25291     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25292 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25293     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25294 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25295     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25296 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25297     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25298 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25299
25300     ;;
25301 esac
25302 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25303 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25304 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25305   echo $ECHO_N "(cached) $ECHO_C" >&6
25306 else
25307   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25308 fi
25309 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25310 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25311
25312 fi
25313 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25314
25315
25316 cat >>confdefs.h <<\_ACEOF
25317 #define HAVE_READLINE 1
25318 _ACEOF
25319
25320                 got_readline="yes"
25321                 CONS_INC="-I/usr/include/readline"
25322                 CONS_LIBS="-lreadline -ltermcap"
25323
25324 else
25325
25326                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25328   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25329 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25331   echo $ECHO_N "(cached) $ECHO_C" >&6
25332 fi
25333 ac_res=`eval echo '${'$as_ac_Header'}'`
25334                { echo "$as_me:$LINENO: result: $ac_res" >&5
25335 echo "${ECHO_T}$ac_res" >&6; }
25336 else
25337   # Is the header compilable?
25338 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25339 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25340 cat >conftest.$ac_ext <<_ACEOF
25341 /* confdefs.h.  */
25342 _ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h.  */
25346 $ac_includes_default
25347 #include <${TOP_DIR}/depkgs/readline/readline.h>
25348 _ACEOF
25349 rm -f conftest.$ac_objext
25350 if { (ac_try="$ac_compile"
25351 case "(($ac_try" in
25352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25353   *) ac_try_echo=$ac_try;;
25354 esac
25355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25356   (eval "$ac_compile") 2>conftest.er1
25357   ac_status=$?
25358   grep -v '^ *+' conftest.er1 >conftest.err
25359   rm -f conftest.er1
25360   cat conftest.err >&5
25361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362   (exit $ac_status); } && {
25363          test -z "$ac_c_werror_flag" ||
25364          test ! -s conftest.err
25365        } && test -s conftest.$ac_objext; then
25366   ac_header_compiler=yes
25367 else
25368   echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25370
25371         ac_header_compiler=no
25372 fi
25373
25374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25376 echo "${ECHO_T}$ac_header_compiler" >&6; }
25377
25378 # Is the header present?
25379 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25380 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25381 cat >conftest.$ac_ext <<_ACEOF
25382 /* confdefs.h.  */
25383 _ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h.  */
25387 #include <${TOP_DIR}/depkgs/readline/readline.h>
25388 _ACEOF
25389 if { (ac_try="$ac_cpp conftest.$ac_ext"
25390 case "(($ac_try" in
25391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25392   *) ac_try_echo=$ac_try;;
25393 esac
25394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25396   ac_status=$?
25397   grep -v '^ *+' conftest.er1 >conftest.err
25398   rm -f conftest.er1
25399   cat conftest.err >&5
25400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401   (exit $ac_status); } >/dev/null && {
25402          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25403          test ! -s conftest.err
25404        }; then
25405   ac_header_preproc=yes
25406 else
25407   echo "$as_me: failed program was:" >&5
25408 sed 's/^/| /' conftest.$ac_ext >&5
25409
25410   ac_header_preproc=no
25411 fi
25412
25413 rm -f conftest.err conftest.$ac_ext
25414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25415 echo "${ECHO_T}$ac_header_preproc" >&6; }
25416
25417 # So?  What about this header?
25418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25419   yes:no: )
25420     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25421 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25422     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25423 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25424     ac_header_preproc=yes
25425     ;;
25426   no:yes:* )
25427     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25428 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25429     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25430 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25431     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25432 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25433     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25434 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25435     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25436 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25437     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25438 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25439
25440     ;;
25441 esac
25442 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25443 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25445   echo $ECHO_N "(cached) $ECHO_C" >&6
25446 else
25447   eval "$as_ac_Header=\$ac_header_preproc"
25448 fi
25449 ac_res=`eval echo '${'$as_ac_Header'}'`
25450                { echo "$as_me:$LINENO: result: $ac_res" >&5
25451 echo "${ECHO_T}$ac_res" >&6; }
25452
25453 fi
25454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25455
25456
25457 cat >>confdefs.h <<\_ACEOF
25458 #define HAVE_READLINE 1
25459 _ACEOF
25460
25461                         got_readline="yes"
25462                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25463                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25464                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25465                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25466
25467 else
25468
25469                         echo " "
25470                         echo "readline.h not found. readline turned off ..."
25471                         echo " "
25472
25473
25474 fi
25475
25476
25477
25478
25479 fi
25480
25481
25482
25483
25484 fi
25485
25486 fi
25487
25488
25489
25490
25491
25492
25493
25494
25495 MAKE_SHELL=/bin/sh
25496
25497 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25498 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25499 if test "${ac_cv_header_stat_broken+set}" = set; then
25500   echo $ECHO_N "(cached) $ECHO_C" >&6
25501 else
25502   cat >conftest.$ac_ext <<_ACEOF
25503 /* confdefs.h.  */
25504 _ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h.  */
25508 #include <sys/types.h>
25509 #include <sys/stat.h>
25510
25511 #if defined S_ISBLK && defined S_IFDIR
25512 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25513 #endif
25514
25515 #if defined S_ISBLK && defined S_IFCHR
25516 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25517 #endif
25518
25519 #if defined S_ISLNK && defined S_IFREG
25520 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25521 #endif
25522
25523 #if defined S_ISSOCK && defined S_IFREG
25524 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25525 #endif
25526
25527 _ACEOF
25528 rm -f conftest.$ac_objext
25529 if { (ac_try="$ac_compile"
25530 case "(($ac_try" in
25531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532   *) ac_try_echo=$ac_try;;
25533 esac
25534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25535   (eval "$ac_compile") 2>conftest.er1
25536   ac_status=$?
25537   grep -v '^ *+' conftest.er1 >conftest.err
25538   rm -f conftest.er1
25539   cat conftest.err >&5
25540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541   (exit $ac_status); } && {
25542          test -z "$ac_c_werror_flag" ||
25543          test ! -s conftest.err
25544        } && test -s conftest.$ac_objext; then
25545   ac_cv_header_stat_broken=no
25546 else
25547   echo "$as_me: failed program was:" >&5
25548 sed 's/^/| /' conftest.$ac_ext >&5
25549
25550         ac_cv_header_stat_broken=yes
25551 fi
25552
25553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25554 fi
25555 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25556 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25557 if test $ac_cv_header_stat_broken = yes; then
25558
25559 cat >>confdefs.h <<\_ACEOF
25560 #define STAT_MACROS_BROKEN 1
25561 _ACEOF
25562
25563 fi
25564
25565
25566
25567
25568
25569
25570 ac_header_dirent=no
25571 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25572   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25573 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25574 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25576   echo $ECHO_N "(cached) $ECHO_C" >&6
25577 else
25578   cat >conftest.$ac_ext <<_ACEOF
25579 /* confdefs.h.  */
25580 _ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h.  */
25584 #include <sys/types.h>
25585 #include <$ac_hdr>
25586
25587 int
25588 main ()
25589 {
25590 if ((DIR *) 0)
25591 return 0;
25592   ;
25593   return 0;
25594 }
25595 _ACEOF
25596 rm -f conftest.$ac_objext
25597 if { (ac_try="$ac_compile"
25598 case "(($ac_try" in
25599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600   *) ac_try_echo=$ac_try;;
25601 esac
25602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25603   (eval "$ac_compile") 2>conftest.er1
25604   ac_status=$?
25605   grep -v '^ *+' conftest.er1 >conftest.err
25606   rm -f conftest.er1
25607   cat conftest.err >&5
25608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609   (exit $ac_status); } && {
25610          test -z "$ac_c_werror_flag" ||
25611          test ! -s conftest.err
25612        } && test -s conftest.$ac_objext; then
25613   eval "$as_ac_Header=yes"
25614 else
25615   echo "$as_me: failed program was:" >&5
25616 sed 's/^/| /' conftest.$ac_ext >&5
25617
25618         eval "$as_ac_Header=no"
25619 fi
25620
25621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25622 fi
25623 ac_res=`eval echo '${'$as_ac_Header'}'`
25624                { echo "$as_me:$LINENO: result: $ac_res" >&5
25625 echo "${ECHO_T}$ac_res" >&6; }
25626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25627   cat >>confdefs.h <<_ACEOF
25628 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25629 _ACEOF
25630
25631 ac_header_dirent=$ac_hdr; break
25632 fi
25633
25634 done
25635 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25636 if test $ac_header_dirent = dirent.h; then
25637   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25638 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25639 if test "${ac_cv_search_opendir+set}" = set; then
25640   echo $ECHO_N "(cached) $ECHO_C" >&6
25641 else
25642   ac_func_search_save_LIBS=$LIBS
25643 cat >conftest.$ac_ext <<_ACEOF
25644 /* confdefs.h.  */
25645 _ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h.  */
25649
25650 /* Override any GCC internal prototype to avoid an error.
25651    Use char because int might match the return type of a GCC
25652    builtin and then its argument prototype would still apply.  */
25653 #ifdef __cplusplus
25654 extern "C"
25655 #endif
25656 char opendir ();
25657 int
25658 main ()
25659 {
25660 return opendir ();
25661   ;
25662   return 0;
25663 }
25664 _ACEOF
25665 for ac_lib in '' dir; do
25666   if test -z "$ac_lib"; then
25667     ac_res="none required"
25668   else
25669     ac_res=-l$ac_lib
25670     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25671   fi
25672   rm -f conftest.$ac_objext conftest$ac_exeext
25673 if { (ac_try="$ac_link"
25674 case "(($ac_try" in
25675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676   *) ac_try_echo=$ac_try;;
25677 esac
25678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25679   (eval "$ac_link") 2>conftest.er1
25680   ac_status=$?
25681   grep -v '^ *+' conftest.er1 >conftest.err
25682   rm -f conftest.er1
25683   cat conftest.err >&5
25684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685   (exit $ac_status); } && {
25686          test -z "$ac_c_werror_flag" ||
25687          test ! -s conftest.err
25688        } && test -s conftest$ac_exeext &&
25689        $as_test_x conftest$ac_exeext; then
25690   ac_cv_search_opendir=$ac_res
25691 else
25692   echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.$ac_ext >&5
25694
25695
25696 fi
25697
25698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25699       conftest$ac_exeext
25700   if test "${ac_cv_search_opendir+set}" = set; then
25701   break
25702 fi
25703 done
25704 if test "${ac_cv_search_opendir+set}" = set; then
25705   :
25706 else
25707   ac_cv_search_opendir=no
25708 fi
25709 rm conftest.$ac_ext
25710 LIBS=$ac_func_search_save_LIBS
25711 fi
25712 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25713 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25714 ac_res=$ac_cv_search_opendir
25715 if test "$ac_res" != no; then
25716   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25717
25718 fi
25719
25720 else
25721   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25722 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25723 if test "${ac_cv_search_opendir+set}" = set; then
25724   echo $ECHO_N "(cached) $ECHO_C" >&6
25725 else
25726   ac_func_search_save_LIBS=$LIBS
25727 cat >conftest.$ac_ext <<_ACEOF
25728 /* confdefs.h.  */
25729 _ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h.  */
25733
25734 /* Override any GCC internal prototype to avoid an error.
25735    Use char because int might match the return type of a GCC
25736    builtin and then its argument prototype would still apply.  */
25737 #ifdef __cplusplus
25738 extern "C"
25739 #endif
25740 char opendir ();
25741 int
25742 main ()
25743 {
25744 return opendir ();
25745   ;
25746   return 0;
25747 }
25748 _ACEOF
25749 for ac_lib in '' x; do
25750   if test -z "$ac_lib"; then
25751     ac_res="none required"
25752   else
25753     ac_res=-l$ac_lib
25754     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25755   fi
25756   rm -f conftest.$ac_objext conftest$ac_exeext
25757 if { (ac_try="$ac_link"
25758 case "(($ac_try" in
25759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25760   *) ac_try_echo=$ac_try;;
25761 esac
25762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25763   (eval "$ac_link") 2>conftest.er1
25764   ac_status=$?
25765   grep -v '^ *+' conftest.er1 >conftest.err
25766   rm -f conftest.er1
25767   cat conftest.err >&5
25768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769   (exit $ac_status); } && {
25770          test -z "$ac_c_werror_flag" ||
25771          test ! -s conftest.err
25772        } && test -s conftest$ac_exeext &&
25773        $as_test_x conftest$ac_exeext; then
25774   ac_cv_search_opendir=$ac_res
25775 else
25776   echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25778
25779
25780 fi
25781
25782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25783       conftest$ac_exeext
25784   if test "${ac_cv_search_opendir+set}" = set; then
25785   break
25786 fi
25787 done
25788 if test "${ac_cv_search_opendir+set}" = set; then
25789   :
25790 else
25791   ac_cv_search_opendir=no
25792 fi
25793 rm conftest.$ac_ext
25794 LIBS=$ac_func_search_save_LIBS
25795 fi
25796 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25797 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25798 ac_res=$ac_cv_search_opendir
25799 if test "$ac_res" != no; then
25800   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25801
25802 fi
25803
25804 fi
25805
25806
25807
25808
25809
25810
25811
25812
25813 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25814 do
25815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25819   echo $ECHO_N "(cached) $ECHO_C" >&6
25820 else
25821   cat >conftest.$ac_ext <<_ACEOF
25822 /* confdefs.h.  */
25823 _ACEOF
25824 cat confdefs.h >>conftest.$ac_ext
25825 cat >>conftest.$ac_ext <<_ACEOF
25826 /* end confdefs.h.  */
25827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25829 #define $ac_func innocuous_$ac_func
25830
25831 /* System header to define __stub macros and hopefully few prototypes,
25832     which can conflict with char $ac_func (); below.
25833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25834     <limits.h> exists even on freestanding compilers.  */
25835
25836 #ifdef __STDC__
25837 # include <limits.h>
25838 #else
25839 # include <assert.h>
25840 #endif
25841
25842 #undef $ac_func
25843
25844 /* Override any GCC internal prototype to avoid an error.
25845    Use char because int might match the return type of a GCC
25846    builtin and then its argument prototype would still apply.  */
25847 #ifdef __cplusplus
25848 extern "C"
25849 #endif
25850 char $ac_func ();
25851 /* The GNU C library defines this for functions which it implements
25852     to always fail with ENOSYS.  Some functions are actually named
25853     something starting with __ and the normal name is an alias.  */
25854 #if defined __stub_$ac_func || defined __stub___$ac_func
25855 choke me
25856 #endif
25857
25858 int
25859 main ()
25860 {
25861 return $ac_func ();
25862   ;
25863   return 0;
25864 }
25865 _ACEOF
25866 rm -f conftest.$ac_objext conftest$ac_exeext
25867 if { (ac_try="$ac_link"
25868 case "(($ac_try" in
25869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25870   *) ac_try_echo=$ac_try;;
25871 esac
25872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25873   (eval "$ac_link") 2>conftest.er1
25874   ac_status=$?
25875   grep -v '^ *+' conftest.er1 >conftest.err
25876   rm -f conftest.er1
25877   cat conftest.err >&5
25878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879   (exit $ac_status); } && {
25880          test -z "$ac_c_werror_flag" ||
25881          test ! -s conftest.err
25882        } && test -s conftest$ac_exeext &&
25883        $as_test_x conftest$ac_exeext; then
25884   eval "$as_ac_var=yes"
25885 else
25886   echo "$as_me: failed program was:" >&5
25887 sed 's/^/| /' conftest.$ac_ext >&5
25888
25889         eval "$as_ac_var=no"
25890 fi
25891
25892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25893       conftest$ac_exeext conftest.$ac_ext
25894 fi
25895 ac_res=`eval echo '${'$as_ac_var'}'`
25896                { echo "$as_me:$LINENO: result: $ac_res" >&5
25897 echo "${ECHO_T}$ac_res" >&6; }
25898 if test `eval echo '${'$as_ac_var'}'` = yes; then
25899   cat >>confdefs.h <<_ACEOF
25900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25901 _ACEOF
25902
25903 fi
25904 done
25905
25906
25907
25908 for ac_func in nanosleep nl_langinfo
25909 do
25910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25914   echo $ECHO_N "(cached) $ECHO_C" >&6
25915 else
25916   cat >conftest.$ac_ext <<_ACEOF
25917 /* confdefs.h.  */
25918 _ACEOF
25919 cat confdefs.h >>conftest.$ac_ext
25920 cat >>conftest.$ac_ext <<_ACEOF
25921 /* end confdefs.h.  */
25922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25924 #define $ac_func innocuous_$ac_func
25925
25926 /* System header to define __stub macros and hopefully few prototypes,
25927     which can conflict with char $ac_func (); below.
25928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25929     <limits.h> exists even on freestanding compilers.  */
25930
25931 #ifdef __STDC__
25932 # include <limits.h>
25933 #else
25934 # include <assert.h>
25935 #endif
25936
25937 #undef $ac_func
25938
25939 /* Override any GCC internal prototype to avoid an error.
25940    Use char because int might match the return type of a GCC
25941    builtin and then its argument prototype would still apply.  */
25942 #ifdef __cplusplus
25943 extern "C"
25944 #endif
25945 char $ac_func ();
25946 /* The GNU C library defines this for functions which it implements
25947     to always fail with ENOSYS.  Some functions are actually named
25948     something starting with __ and the normal name is an alias.  */
25949 #if defined __stub_$ac_func || defined __stub___$ac_func
25950 choke me
25951 #endif
25952
25953 int
25954 main ()
25955 {
25956 return $ac_func ();
25957   ;
25958   return 0;
25959 }
25960 _ACEOF
25961 rm -f conftest.$ac_objext conftest$ac_exeext
25962 if { (ac_try="$ac_link"
25963 case "(($ac_try" in
25964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25965   *) ac_try_echo=$ac_try;;
25966 esac
25967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25968   (eval "$ac_link") 2>conftest.er1
25969   ac_status=$?
25970   grep -v '^ *+' conftest.er1 >conftest.err
25971   rm -f conftest.er1
25972   cat conftest.err >&5
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); } && {
25975          test -z "$ac_c_werror_flag" ||
25976          test ! -s conftest.err
25977        } && test -s conftest$ac_exeext &&
25978        $as_test_x conftest$ac_exeext; then
25979   eval "$as_ac_var=yes"
25980 else
25981   echo "$as_me: failed program was:" >&5
25982 sed 's/^/| /' conftest.$ac_ext >&5
25983
25984         eval "$as_ac_var=no"
25985 fi
25986
25987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25988       conftest$ac_exeext conftest.$ac_ext
25989 fi
25990 ac_res=`eval echo '${'$as_ac_var'}'`
25991                { echo "$as_me:$LINENO: result: $ac_res" >&5
25992 echo "${ECHO_T}$ac_res" >&6; }
25993 if test `eval echo '${'$as_ac_var'}'` = yes; then
25994   cat >>confdefs.h <<_ACEOF
25995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25996 _ACEOF
25997
25998 fi
25999 done
26000
26001
26002 for ac_header in varargs.h
26003 do
26004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26006   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26009   echo $ECHO_N "(cached) $ECHO_C" >&6
26010 fi
26011 ac_res=`eval echo '${'$as_ac_Header'}'`
26012                { echo "$as_me:$LINENO: result: $ac_res" >&5
26013 echo "${ECHO_T}$ac_res" >&6; }
26014 else
26015   # Is the header compilable?
26016 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26018 cat >conftest.$ac_ext <<_ACEOF
26019 /* confdefs.h.  */
26020 _ACEOF
26021 cat confdefs.h >>conftest.$ac_ext
26022 cat >>conftest.$ac_ext <<_ACEOF
26023 /* end confdefs.h.  */
26024 $ac_includes_default
26025 #include <$ac_header>
26026 _ACEOF
26027 rm -f conftest.$ac_objext
26028 if { (ac_try="$ac_compile"
26029 case "(($ac_try" in
26030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26031   *) ac_try_echo=$ac_try;;
26032 esac
26033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26034   (eval "$ac_compile") 2>conftest.er1
26035   ac_status=$?
26036   grep -v '^ *+' conftest.er1 >conftest.err
26037   rm -f conftest.er1
26038   cat conftest.err >&5
26039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040   (exit $ac_status); } && {
26041          test -z "$ac_c_werror_flag" ||
26042          test ! -s conftest.err
26043        } && test -s conftest.$ac_objext; then
26044   ac_header_compiler=yes
26045 else
26046   echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26048
26049         ac_header_compiler=no
26050 fi
26051
26052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26054 echo "${ECHO_T}$ac_header_compiler" >&6; }
26055
26056 # Is the header present?
26057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26059 cat >conftest.$ac_ext <<_ACEOF
26060 /* confdefs.h.  */
26061 _ACEOF
26062 cat confdefs.h >>conftest.$ac_ext
26063 cat >>conftest.$ac_ext <<_ACEOF
26064 /* end confdefs.h.  */
26065 #include <$ac_header>
26066 _ACEOF
26067 if { (ac_try="$ac_cpp conftest.$ac_ext"
26068 case "(($ac_try" in
26069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070   *) ac_try_echo=$ac_try;;
26071 esac
26072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26074   ac_status=$?
26075   grep -v '^ *+' conftest.er1 >conftest.err
26076   rm -f conftest.er1
26077   cat conftest.err >&5
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); } >/dev/null && {
26080          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26081          test ! -s conftest.err
26082        }; then
26083   ac_header_preproc=yes
26084 else
26085   echo "$as_me: failed program was:" >&5
26086 sed 's/^/| /' conftest.$ac_ext >&5
26087
26088   ac_header_preproc=no
26089 fi
26090
26091 rm -f conftest.err conftest.$ac_ext
26092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26093 echo "${ECHO_T}$ac_header_preproc" >&6; }
26094
26095 # So?  What about this header?
26096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26097   yes:no: )
26098     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26102     ac_header_preproc=yes
26103     ;;
26104   no:yes:* )
26105     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26107     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26108 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26109     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26111     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26112 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26115     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26117
26118     ;;
26119 esac
26120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26123   echo $ECHO_N "(cached) $ECHO_C" >&6
26124 else
26125   eval "$as_ac_Header=\$ac_header_preproc"
26126 fi
26127 ac_res=`eval echo '${'$as_ac_Header'}'`
26128                { echo "$as_me:$LINENO: result: $ac_res" >&5
26129 echo "${ECHO_T}$ac_res" >&6; }
26130
26131 fi
26132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26133   cat >>confdefs.h <<_ACEOF
26134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26135 _ACEOF
26136
26137 fi
26138
26139 done
26140
26141
26142
26143 { echo "$as_me:$LINENO: checking for Python support" >&5
26144 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26145
26146 # Check whether --with-python was given.
26147 if test "${with_python+set}" = set; then
26148   withval=$with_python;
26149        PYTHON_INCDIR=
26150        PYTHON_LIBS=
26151        if test "$withval" != "no"; then
26152           if test "$withval" = "yes"; then
26153              for python_root in /usr /usr/local /usr/sfw; do
26154                 for ver in python2.2 python2.3 python2.4 python2.5; do
26155                    if test -f $python_root/include/${ver}/Python.h; then
26156                       PYTHON_INCDIR=-I$python_root/include/${ver}
26157                       if test -d $python_root/lib64/${ver}/config; then
26158                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26159                       else
26160                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26161                       fi
26162                       break
26163                    fi
26164                 done
26165              done
26166
26167              if test x$PYTHON_INCDIR = x; then
26168                 if test -f $prefix/include/Python.h; then
26169                    PYTHON_INCDIR=-I$prefix/include
26170                    if test -d $prefix/lib64/config; then
26171                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26172                    else
26173                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26174                    fi
26175                 else
26176                    { echo "$as_me:$LINENO: result: no" >&5
26177 echo "${ECHO_T}no" >&6; }
26178                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26179 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26180    { (exit 1); exit 1; }; }
26181                 fi
26182              fi
26183           else
26184              if test -f $withval/Python.h; then
26185                 PYTHON_INCDIR=-I$withval
26186                 PYTHON_LIBS="-L$withval/config -lpython"
26187              elif test -f $withval/include/Python.h; then
26188                 PYTHON_INCDIR=-I$withval/include
26189                 if test -d $withval/lib64/config; then
26190                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26191                 else
26192                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26193                 fi
26194              elif test -f $withval/include/python/Python.h; then
26195                 PYTHON_INCDIR=-I$withval/include/python
26196                 if test -d $withval/lib64/python/config; then
26197                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26198                 else
26199                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26200                 fi
26201              else
26202                 { echo "$as_me:$LINENO: result: no" >&5
26203 echo "${ECHO_T}no" >&6; }
26204                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26205 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26206    { (exit 1); exit 1; }; }
26207              fi
26208           fi
26209
26210           cat >>confdefs.h <<\_ACEOF
26211 #define HAVE_PYTHON 1
26212 _ACEOF
26213
26214           { echo "$as_me:$LINENO: result: yes" >&5
26215 echo "${ECHO_T}yes" >&6; }
26216           support_python=yes
26217           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26218 echo "$as_me: checking for more Python libs" >&6;}
26219           saved_LIBS="$LIBS"; LIBS=
26220           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26221 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26222 if test "${ac_cv_search_shm_open+set}" = set; then
26223   echo $ECHO_N "(cached) $ECHO_C" >&6
26224 else
26225   ac_func_search_save_LIBS=$LIBS
26226 cat >conftest.$ac_ext <<_ACEOF
26227 /* confdefs.h.  */
26228 _ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h.  */
26232
26233 /* Override any GCC internal prototype to avoid an error.
26234    Use char because int might match the return type of a GCC
26235    builtin and then its argument prototype would still apply.  */
26236 #ifdef __cplusplus
26237 extern "C"
26238 #endif
26239 char shm_open ();
26240 int
26241 main ()
26242 {
26243 return shm_open ();
26244   ;
26245   return 0;
26246 }
26247 _ACEOF
26248 for ac_lib in '' rt; do
26249   if test -z "$ac_lib"; then
26250     ac_res="none required"
26251   else
26252     ac_res=-l$ac_lib
26253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26254   fi
26255   rm -f conftest.$ac_objext conftest$ac_exeext
26256 if { (ac_try="$ac_link"
26257 case "(($ac_try" in
26258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26259   *) ac_try_echo=$ac_try;;
26260 esac
26261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26262   (eval "$ac_link") 2>conftest.er1
26263   ac_status=$?
26264   grep -v '^ *+' conftest.er1 >conftest.err
26265   rm -f conftest.er1
26266   cat conftest.err >&5
26267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268   (exit $ac_status); } && {
26269          test -z "$ac_c_werror_flag" ||
26270          test ! -s conftest.err
26271        } && test -s conftest$ac_exeext &&
26272        $as_test_x conftest$ac_exeext; then
26273   ac_cv_search_shm_open=$ac_res
26274 else
26275   echo "$as_me: failed program was:" >&5
26276 sed 's/^/| /' conftest.$ac_ext >&5
26277
26278
26279 fi
26280
26281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26282       conftest$ac_exeext
26283   if test "${ac_cv_search_shm_open+set}" = set; then
26284   break
26285 fi
26286 done
26287 if test "${ac_cv_search_shm_open+set}" = set; then
26288   :
26289 else
26290   ac_cv_search_shm_open=no
26291 fi
26292 rm conftest.$ac_ext
26293 LIBS=$ac_func_search_save_LIBS
26294 fi
26295 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26296 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26297 ac_res=$ac_cv_search_shm_open
26298 if test "$ac_res" != no; then
26299   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26300
26301 fi
26302
26303
26304 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26305 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26306 if test "${ac_cv_lib_util_openpty+set}" = set; then
26307   echo $ECHO_N "(cached) $ECHO_C" >&6
26308 else
26309   ac_check_lib_save_LIBS=$LIBS
26310 LIBS="-lutil  $LIBS"
26311 cat >conftest.$ac_ext <<_ACEOF
26312 /* confdefs.h.  */
26313 _ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h.  */
26317
26318 /* Override any GCC internal prototype to avoid an error.
26319    Use char because int might match the return type of a GCC
26320    builtin and then its argument prototype would still apply.  */
26321 #ifdef __cplusplus
26322 extern "C"
26323 #endif
26324 char openpty ();
26325 int
26326 main ()
26327 {
26328 return openpty ();
26329   ;
26330   return 0;
26331 }
26332 _ACEOF
26333 rm -f conftest.$ac_objext conftest$ac_exeext
26334 if { (ac_try="$ac_link"
26335 case "(($ac_try" in
26336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337   *) ac_try_echo=$ac_try;;
26338 esac
26339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340   (eval "$ac_link") 2>conftest.er1
26341   ac_status=$?
26342   grep -v '^ *+' conftest.er1 >conftest.err
26343   rm -f conftest.er1
26344   cat conftest.err >&5
26345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346   (exit $ac_status); } && {
26347          test -z "$ac_c_werror_flag" ||
26348          test ! -s conftest.err
26349        } && test -s conftest$ac_exeext &&
26350        $as_test_x conftest$ac_exeext; then
26351   ac_cv_lib_util_openpty=yes
26352 else
26353   echo "$as_me: failed program was:" >&5
26354 sed 's/^/| /' conftest.$ac_ext >&5
26355
26356         ac_cv_lib_util_openpty=no
26357 fi
26358
26359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26360       conftest$ac_exeext conftest.$ac_ext
26361 LIBS=$ac_check_lib_save_LIBS
26362 fi
26363 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26364 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26365 if test $ac_cv_lib_util_openpty = yes; then
26366   cat >>confdefs.h <<_ACEOF
26367 #define HAVE_LIBUTIL 1
26368 _ACEOF
26369
26370   LIBS="-lutil $LIBS"
26371
26372 fi
26373
26374           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26375           LIBS="$saved_LIBS"
26376        else
26377           { echo "$as_me:$LINENO: result: no" >&5
26378 echo "${ECHO_T}no" >&6; }
26379        fi
26380
26381 else
26382
26383        { echo "$as_me:$LINENO: result: no" >&5
26384 echo "${ECHO_T}no" >&6; }
26385
26386
26387 fi
26388
26389
26390
26391
26392 { echo "$as_me:$LINENO: checking for socket" >&5
26393 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26394 if test "${ac_cv_func_socket+set}" = set; then
26395   echo $ECHO_N "(cached) $ECHO_C" >&6
26396 else
26397   cat >conftest.$ac_ext <<_ACEOF
26398 /* confdefs.h.  */
26399 _ACEOF
26400 cat confdefs.h >>conftest.$ac_ext
26401 cat >>conftest.$ac_ext <<_ACEOF
26402 /* end confdefs.h.  */
26403 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26405 #define socket innocuous_socket
26406
26407 /* System header to define __stub macros and hopefully few prototypes,
26408     which can conflict with char socket (); below.
26409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26410     <limits.h> exists even on freestanding compilers.  */
26411
26412 #ifdef __STDC__
26413 # include <limits.h>
26414 #else
26415 # include <assert.h>
26416 #endif
26417
26418 #undef socket
26419
26420 /* Override any GCC internal prototype to avoid an error.
26421    Use char because int might match the return type of a GCC
26422    builtin and then its argument prototype would still apply.  */
26423 #ifdef __cplusplus
26424 extern "C"
26425 #endif
26426 char socket ();
26427 /* The GNU C library defines this for functions which it implements
26428     to always fail with ENOSYS.  Some functions are actually named
26429     something starting with __ and the normal name is an alias.  */
26430 #if defined __stub_socket || defined __stub___socket
26431 choke me
26432 #endif
26433
26434 int
26435 main ()
26436 {
26437 return socket ();
26438   ;
26439   return 0;
26440 }
26441 _ACEOF
26442 rm -f conftest.$ac_objext conftest$ac_exeext
26443 if { (ac_try="$ac_link"
26444 case "(($ac_try" in
26445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26446   *) ac_try_echo=$ac_try;;
26447 esac
26448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26449   (eval "$ac_link") 2>conftest.er1
26450   ac_status=$?
26451   grep -v '^ *+' conftest.er1 >conftest.err
26452   rm -f conftest.er1
26453   cat conftest.err >&5
26454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455   (exit $ac_status); } && {
26456          test -z "$ac_c_werror_flag" ||
26457          test ! -s conftest.err
26458        } && test -s conftest$ac_exeext &&
26459        $as_test_x conftest$ac_exeext; then
26460   ac_cv_func_socket=yes
26461 else
26462   echo "$as_me: failed program was:" >&5
26463 sed 's/^/| /' conftest.$ac_ext >&5
26464
26465         ac_cv_func_socket=no
26466 fi
26467
26468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26469       conftest$ac_exeext conftest.$ac_ext
26470 fi
26471 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26472 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26473 if test $ac_cv_func_socket = yes; then
26474   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26475 echo "${ECHO_T}using libc's socket" >&6; }
26476 else
26477
26478 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26479 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26480 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26481   echo $ECHO_N "(cached) $ECHO_C" >&6
26482 else
26483   ac_check_lib_save_LIBS=$LIBS
26484 LIBS="-lxnet  $LIBS"
26485 cat >conftest.$ac_ext <<_ACEOF
26486 /* confdefs.h.  */
26487 _ACEOF
26488 cat confdefs.h >>conftest.$ac_ext
26489 cat >>conftest.$ac_ext <<_ACEOF
26490 /* end confdefs.h.  */
26491
26492 /* Override any GCC internal prototype to avoid an error.
26493    Use char because int might match the return type of a GCC
26494    builtin and then its argument prototype would still apply.  */
26495 #ifdef __cplusplus
26496 extern "C"
26497 #endif
26498 char socket ();
26499 int
26500 main ()
26501 {
26502 return socket ();
26503   ;
26504   return 0;
26505 }
26506 _ACEOF
26507 rm -f conftest.$ac_objext conftest$ac_exeext
26508 if { (ac_try="$ac_link"
26509 case "(($ac_try" in
26510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26511   *) ac_try_echo=$ac_try;;
26512 esac
26513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26514   (eval "$ac_link") 2>conftest.er1
26515   ac_status=$?
26516   grep -v '^ *+' conftest.er1 >conftest.err
26517   rm -f conftest.er1
26518   cat conftest.err >&5
26519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520   (exit $ac_status); } && {
26521          test -z "$ac_c_werror_flag" ||
26522          test ! -s conftest.err
26523        } && test -s conftest$ac_exeext &&
26524        $as_test_x conftest$ac_exeext; then
26525   ac_cv_lib_xnet_socket=yes
26526 else
26527   echo "$as_me: failed program was:" >&5
26528 sed 's/^/| /' conftest.$ac_ext >&5
26529
26530         ac_cv_lib_xnet_socket=no
26531 fi
26532
26533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26534       conftest$ac_exeext conftest.$ac_ext
26535 LIBS=$ac_check_lib_save_LIBS
26536 fi
26537 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26538 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26539 if test $ac_cv_lib_xnet_socket = yes; then
26540   cat >>confdefs.h <<_ACEOF
26541 #define HAVE_LIBXNET 1
26542 _ACEOF
26543
26544   LIBS="-lxnet $LIBS"
26545
26546 fi
26547
26548
26549 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26550 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26551 if test "${ac_cv_lib_socket_socket+set}" = set; then
26552   echo $ECHO_N "(cached) $ECHO_C" >&6
26553 else
26554   ac_check_lib_save_LIBS=$LIBS
26555 LIBS="-lsocket  $LIBS"
26556 cat >conftest.$ac_ext <<_ACEOF
26557 /* confdefs.h.  */
26558 _ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h.  */
26562
26563 /* Override any GCC internal prototype to avoid an error.
26564    Use char because int might match the return type of a GCC
26565    builtin and then its argument prototype would still apply.  */
26566 #ifdef __cplusplus
26567 extern "C"
26568 #endif
26569 char socket ();
26570 int
26571 main ()
26572 {
26573 return socket ();
26574   ;
26575   return 0;
26576 }
26577 _ACEOF
26578 rm -f conftest.$ac_objext conftest$ac_exeext
26579 if { (ac_try="$ac_link"
26580 case "(($ac_try" in
26581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582   *) ac_try_echo=$ac_try;;
26583 esac
26584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26585   (eval "$ac_link") 2>conftest.er1
26586   ac_status=$?
26587   grep -v '^ *+' conftest.er1 >conftest.err
26588   rm -f conftest.er1
26589   cat conftest.err >&5
26590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591   (exit $ac_status); } && {
26592          test -z "$ac_c_werror_flag" ||
26593          test ! -s conftest.err
26594        } && test -s conftest$ac_exeext &&
26595        $as_test_x conftest$ac_exeext; then
26596   ac_cv_lib_socket_socket=yes
26597 else
26598   echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26600
26601         ac_cv_lib_socket_socket=no
26602 fi
26603
26604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26605       conftest$ac_exeext conftest.$ac_ext
26606 LIBS=$ac_check_lib_save_LIBS
26607 fi
26608 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26609 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26610 if test $ac_cv_lib_socket_socket = yes; then
26611   cat >>confdefs.h <<_ACEOF
26612 #define HAVE_LIBSOCKET 1
26613 _ACEOF
26614
26615   LIBS="-lsocket $LIBS"
26616
26617 fi
26618
26619
26620 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26621 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26622 if test "${ac_cv_lib_inet_socket+set}" = set; then
26623   echo $ECHO_N "(cached) $ECHO_C" >&6
26624 else
26625   ac_check_lib_save_LIBS=$LIBS
26626 LIBS="-linet  $LIBS"
26627 cat >conftest.$ac_ext <<_ACEOF
26628 /* confdefs.h.  */
26629 _ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h.  */
26633
26634 /* Override any GCC internal prototype to avoid an error.
26635    Use char because int might match the return type of a GCC
26636    builtin and then its argument prototype would still apply.  */
26637 #ifdef __cplusplus
26638 extern "C"
26639 #endif
26640 char socket ();
26641 int
26642 main ()
26643 {
26644 return socket ();
26645   ;
26646   return 0;
26647 }
26648 _ACEOF
26649 rm -f conftest.$ac_objext conftest$ac_exeext
26650 if { (ac_try="$ac_link"
26651 case "(($ac_try" in
26652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26653   *) ac_try_echo=$ac_try;;
26654 esac
26655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26656   (eval "$ac_link") 2>conftest.er1
26657   ac_status=$?
26658   grep -v '^ *+' conftest.er1 >conftest.err
26659   rm -f conftest.er1
26660   cat conftest.err >&5
26661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662   (exit $ac_status); } && {
26663          test -z "$ac_c_werror_flag" ||
26664          test ! -s conftest.err
26665        } && test -s conftest$ac_exeext &&
26666        $as_test_x conftest$ac_exeext; then
26667   ac_cv_lib_inet_socket=yes
26668 else
26669   echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26671
26672         ac_cv_lib_inet_socket=no
26673 fi
26674
26675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26676       conftest$ac_exeext conftest.$ac_ext
26677 LIBS=$ac_check_lib_save_LIBS
26678 fi
26679 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26680 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26681 if test $ac_cv_lib_inet_socket = yes; then
26682   cat >>confdefs.h <<_ACEOF
26683 #define HAVE_LIBINET 1
26684 _ACEOF
26685
26686   LIBS="-linet $LIBS"
26687
26688 fi
26689
26690 fi
26691
26692
26693 TCPW_MSG="no"
26694 WRAPLIBS=""
26695
26696 # Check whether --with-tcp-wrappers was given.
26697 if test "${with_tcp_wrappers+set}" = set; then
26698   withval=$with_tcp_wrappers;
26699        if test "x$withval" != "xno" ; then
26700           saved_LIBS="$LIBS"
26701           LIBS="$saved_LIBS -lwrap"
26702           { echo "$as_me:$LINENO: checking for libwrap" >&5
26703 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26704           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26705 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26706 if test "${ac_cv_search_nanosleep+set}" = set; then
26707   echo $ECHO_N "(cached) $ECHO_C" >&6
26708 else
26709   ac_func_search_save_LIBS=$LIBS
26710 cat >conftest.$ac_ext <<_ACEOF
26711 /* confdefs.h.  */
26712 _ACEOF
26713 cat confdefs.h >>conftest.$ac_ext
26714 cat >>conftest.$ac_ext <<_ACEOF
26715 /* end confdefs.h.  */
26716
26717 /* Override any GCC internal prototype to avoid an error.
26718    Use char because int might match the return type of a GCC
26719    builtin and then its argument prototype would still apply.  */
26720 #ifdef __cplusplus
26721 extern "C"
26722 #endif
26723 char nanosleep ();
26724 int
26725 main ()
26726 {
26727 return nanosleep ();
26728   ;
26729   return 0;
26730 }
26731 _ACEOF
26732 for ac_lib in '' rt; do
26733   if test -z "$ac_lib"; then
26734     ac_res="none required"
26735   else
26736     ac_res=-l$ac_lib
26737     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26738   fi
26739   rm -f conftest.$ac_objext conftest$ac_exeext
26740 if { (ac_try="$ac_link"
26741 case "(($ac_try" in
26742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26743   *) ac_try_echo=$ac_try;;
26744 esac
26745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26746   (eval "$ac_link") 2>conftest.er1
26747   ac_status=$?
26748   grep -v '^ *+' conftest.er1 >conftest.err
26749   rm -f conftest.er1
26750   cat conftest.err >&5
26751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752   (exit $ac_status); } && {
26753          test -z "$ac_c_werror_flag" ||
26754          test ! -s conftest.err
26755        } && test -s conftest$ac_exeext &&
26756        $as_test_x conftest$ac_exeext; then
26757   ac_cv_search_nanosleep=$ac_res
26758 else
26759   echo "$as_me: failed program was:" >&5
26760 sed 's/^/| /' conftest.$ac_ext >&5
26761
26762
26763 fi
26764
26765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26766       conftest$ac_exeext
26767   if test "${ac_cv_search_nanosleep+set}" = set; then
26768   break
26769 fi
26770 done
26771 if test "${ac_cv_search_nanosleep+set}" = set; then
26772   :
26773 else
26774   ac_cv_search_nanosleep=no
26775 fi
26776 rm conftest.$ac_ext
26777 LIBS=$ac_func_search_save_LIBS
26778 fi
26779 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26780 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26781 ac_res=$ac_cv_search_nanosleep
26782 if test "$ac_res" != no; then
26783   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26784
26785 fi
26786
26787           cat >conftest.$ac_ext <<_ACEOF
26788 /* confdefs.h.  */
26789 _ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h.  */
26793
26794                #include <sys/types.h>
26795                #include <tcpd.h>
26796                int deny_severity = 0;
26797                int allow_severity = 0;
26798                struct request_info *req;
26799
26800 int
26801 main ()
26802 {
26803
26804                 hosts_access(req);
26805
26806   ;
26807   return 0;
26808 }
26809 _ACEOF
26810 rm -f conftest.$ac_objext conftest$ac_exeext
26811 if { (ac_try="$ac_link"
26812 case "(($ac_try" in
26813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814   *) ac_try_echo=$ac_try;;
26815 esac
26816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817   (eval "$ac_link") 2>conftest.er1
26818   ac_status=$?
26819   grep -v '^ *+' conftest.er1 >conftest.err
26820   rm -f conftest.er1
26821   cat conftest.err >&5
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); } && {
26824          test -z "$ac_c_werror_flag" ||
26825          test ! -s conftest.err
26826        } && test -s conftest$ac_exeext &&
26827        $as_test_x conftest$ac_exeext; then
26828
26829                  { echo "$as_me:$LINENO: result: yes" >&5
26830 echo "${ECHO_T}yes" >&6; }
26831
26832 cat >>confdefs.h <<\_ACEOF
26833 #define HAVE_LIBWRAP 1
26834 _ACEOF
26835
26836                  TCPW_MSG="yes"
26837                  LIBS="$saved_LIBS"
26838                  WRAPLIBS="-lwrap"
26839
26840 else
26841   echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.$ac_ext >&5
26843
26844
26845                  LIBS="$saved_LIBS -lwrap -lnsl"
26846                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26847                  cat >conftest.$ac_ext <<_ACEOF
26848 /* confdefs.h.  */
26849 _ACEOF
26850 cat confdefs.h >>conftest.$ac_ext
26851 cat >>conftest.$ac_ext <<_ACEOF
26852 /* end confdefs.h.  */
26853
26854                        #include <sys/types.h>
26855                        #include <tcpd.h>
26856                        int deny_severity = 0;
26857                        int allow_severity = 0;
26858                        struct request_info *req;
26859
26860 int
26861 main ()
26862 {
26863
26864                        hosts_access(req);
26865
26866   ;
26867   return 0;
26868 }
26869 _ACEOF
26870 rm -f conftest.$ac_objext conftest$ac_exeext
26871 if { (ac_try="$ac_link"
26872 case "(($ac_try" in
26873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26874   *) ac_try_echo=$ac_try;;
26875 esac
26876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26877   (eval "$ac_link") 2>conftest.er1
26878   ac_status=$?
26879   grep -v '^ *+' conftest.er1 >conftest.err
26880   rm -f conftest.er1
26881   cat conftest.err >&5
26882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883   (exit $ac_status); } && {
26884          test -z "$ac_c_werror_flag" ||
26885          test ! -s conftest.err
26886        } && test -s conftest$ac_exeext &&
26887        $as_test_x conftest$ac_exeext; then
26888
26889                       { echo "$as_me:$LINENO: result: yes" >&5
26890 echo "${ECHO_T}yes" >&6; }
26891
26892 cat >>confdefs.h <<\_ACEOF
26893 #define HAVE_LIBWRAP 1
26894 _ACEOF
26895
26896                       TCPW_MSG="yes"
26897                       LIBS="$saved_LIBS"
26898                       WRAPLIBS="-lwrap"
26899
26900 else
26901   echo "$as_me: failed program was:" >&5
26902 sed 's/^/| /' conftest.$ac_ext >&5
26903
26904
26905                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26906 echo "$as_me: error: *** libwrap missing" >&2;}
26907    { (exit 1); exit 1; }; }
26908
26909
26910 fi
26911
26912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26913       conftest$ac_exeext conftest.$ac_ext
26914
26915
26916 fi
26917
26918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26919       conftest$ac_exeext conftest.$ac_ext
26920        fi
26921
26922
26923 fi
26924
26925
26926 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26927 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26928
26929 # Check whether --with-openssl was given.
26930 if test "${with_openssl+set}" = set; then
26931   withval=$with_openssl;
26932         with_openssl_directory=${withval}
26933
26934
26935 fi
26936
26937
26938 if test "x$with_openssl_directory" != "xno"; then
26939    OPENSSL_LIBS="-lssl -lcrypto"
26940    OPENSSL_INC=""
26941
26942    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26943       #
26944       # Make sure the $with_openssl_directory also makes sense
26945       #
26946       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26947          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26948          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26949       fi
26950    fi
26951
26952    saved_LIBS="${LIBS}"
26953    saved_CFLAGS="${CFLAGS}"
26954    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26955    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26956
26957    cat >conftest.$ac_ext <<_ACEOF
26958 /* confdefs.h.  */
26959 _ACEOF
26960 cat confdefs.h >>conftest.$ac_ext
26961 cat >>conftest.$ac_ext <<_ACEOF
26962 /* end confdefs.h.  */
26963
26964           #include <openssl/ssl.h>
26965
26966 int
26967 main ()
26968 {
26969
26970            CRYPTO_set_id_callback(NULL);
26971
26972   ;
26973   return 0;
26974 }
26975 _ACEOF
26976 rm -f conftest.$ac_objext conftest$ac_exeext
26977 if { (ac_try="$ac_link"
26978 case "(($ac_try" in
26979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26980   *) ac_try_echo=$ac_try;;
26981 esac
26982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26983   (eval "$ac_link") 2>conftest.er1
26984   ac_status=$?
26985   grep -v '^ *+' conftest.er1 >conftest.err
26986   rm -f conftest.er1
26987   cat conftest.err >&5
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); } && {
26990          test -z "$ac_c_werror_flag" ||
26991          test ! -s conftest.err
26992        } && test -s conftest$ac_exeext &&
26993        $as_test_x conftest$ac_exeext; then
26994
26995           support_tls="yes"
26996           support_crypto="yes"
26997
26998 else
26999   echo "$as_me: failed program was:" >&5
27000 sed 's/^/| /' conftest.$ac_ext >&5
27001
27002
27003           support_tls="no"
27004
27005
27006 fi
27007
27008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27009       conftest$ac_exeext conftest.$ac_ext
27010
27011    cat >conftest.$ac_ext <<_ACEOF
27012 /* confdefs.h.  */
27013 _ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h.  */
27017
27018           #include <openssl/evp.h>
27019
27020 int
27021 main ()
27022 {
27023
27024           EVP_sha512();
27025
27026   ;
27027   return 0;
27028 }
27029 _ACEOF
27030 rm -f conftest.$ac_objext conftest$ac_exeext
27031 if { (ac_try="$ac_link"
27032 case "(($ac_try" in
27033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034   *) ac_try_echo=$ac_try;;
27035 esac
27036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037   (eval "$ac_link") 2>conftest.er1
27038   ac_status=$?
27039   grep -v '^ *+' conftest.er1 >conftest.err
27040   rm -f conftest.er1
27041   cat conftest.err >&5
27042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043   (exit $ac_status); } && {
27044          test -z "$ac_c_werror_flag" ||
27045          test ! -s conftest.err
27046        } && test -s conftest$ac_exeext &&
27047        $as_test_x conftest$ac_exeext; then
27048
27049           ac_cv_openssl_sha2="yes"
27050
27051 else
27052   echo "$as_me: failed program was:" >&5
27053 sed 's/^/| /' conftest.$ac_ext >&5
27054
27055
27056           ac_cv_openssl_sha2="no"
27057
27058
27059 fi
27060
27061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27062       conftest$ac_exeext conftest.$ac_ext
27063
27064                cat >conftest.$ac_ext <<_ACEOF
27065 /* confdefs.h.  */
27066 _ACEOF
27067 cat confdefs.h >>conftest.$ac_ext
27068 cat >>conftest.$ac_ext <<_ACEOF
27069 /* end confdefs.h.  */
27070
27071           #include <openssl/evp.h>
27072
27073 int
27074 main ()
27075 {
27076
27077           EVP_aes_192_cbc();
27078
27079   ;
27080   return 0;
27081 }
27082 _ACEOF
27083 rm -f conftest.$ac_objext conftest$ac_exeext
27084 if { (ac_try="$ac_link"
27085 case "(($ac_try" in
27086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27087   *) ac_try_echo=$ac_try;;
27088 esac
27089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27090   (eval "$ac_link") 2>conftest.er1
27091   ac_status=$?
27092   grep -v '^ *+' conftest.er1 >conftest.err
27093   rm -f conftest.er1
27094   cat conftest.err >&5
27095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096   (exit $ac_status); } && {
27097          test -z "$ac_c_werror_flag" ||
27098          test ! -s conftest.err
27099        } && test -s conftest$ac_exeext &&
27100        $as_test_x conftest$ac_exeext; then
27101
27102           ac_cv_openssl_export="no"
27103
27104 else
27105   echo "$as_me: failed program was:" >&5
27106 sed 's/^/| /' conftest.$ac_ext >&5
27107
27108
27109           ac_cv_openssl_export="yes"
27110
27111
27112 fi
27113
27114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27115       conftest$ac_exeext conftest.$ac_ext
27116
27117    LIBS="${saved_LIBS}"
27118    CFLAGS="${saved_CFLAGS}"
27119
27120    if test "$support_tls" = "yes"; then
27121
27122 cat >>confdefs.h <<\_ACEOF
27123 #define HAVE_OPENSSL 1
27124 _ACEOF
27125
27126
27127 cat >>confdefs.h <<\_ACEOF
27128 #define HAVE_TLS 1
27129 _ACEOF
27130
27131
27132 cat >>confdefs.h <<\_ACEOF
27133 #define HAVE_CRYPTO 1
27134 _ACEOF
27135
27136    fi
27137
27138    if test "$ac_cv_openssl_sha2" = "yes"; then
27139
27140 cat >>confdefs.h <<\_ACEOF
27141 #define HAVE_SHA2 1
27142 _ACEOF
27143
27144    fi
27145
27146    if test "$ac_cv_openssl_export" = "yes"; then
27147
27148 cat >>confdefs.h <<\_ACEOF
27149 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27150 _ACEOF
27151
27152    fi
27153 else
27154    support_tls="no"
27155    support_crypto="no"
27156    OPENSSL_LIBS=""
27157    OPENSSL_INC=""
27158 fi
27159
27160 { echo "$as_me:$LINENO: result: $support_tls" >&5
27161 echo "${ECHO_T}$support_tls" >&6; }
27162
27163
27164
27165 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27166 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27167 if test "${ac_cv_search_dlopen+set}" = set; then
27168   echo $ECHO_N "(cached) $ECHO_C" >&6
27169 else
27170   ac_func_search_save_LIBS=$LIBS
27171 cat >conftest.$ac_ext <<_ACEOF
27172 /* confdefs.h.  */
27173 _ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h.  */
27177
27178 /* Override any GCC internal prototype to avoid an error.
27179    Use char because int might match the return type of a GCC
27180    builtin and then its argument prototype would still apply.  */
27181 #ifdef __cplusplus
27182 extern "C"
27183 #endif
27184 char dlopen ();
27185 int
27186 main ()
27187 {
27188 return dlopen ();
27189   ;
27190   return 0;
27191 }
27192 _ACEOF
27193 for ac_lib in '' dl; do
27194   if test -z "$ac_lib"; then
27195     ac_res="none required"
27196   else
27197     ac_res=-l$ac_lib
27198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27199   fi
27200   rm -f conftest.$ac_objext conftest$ac_exeext
27201 if { (ac_try="$ac_link"
27202 case "(($ac_try" in
27203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204   *) ac_try_echo=$ac_try;;
27205 esac
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207   (eval "$ac_link") 2>conftest.er1
27208   ac_status=$?
27209   grep -v '^ *+' conftest.er1 >conftest.err
27210   rm -f conftest.er1
27211   cat conftest.err >&5
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); } && {
27214          test -z "$ac_c_werror_flag" ||
27215          test ! -s conftest.err
27216        } && test -s conftest$ac_exeext &&
27217        $as_test_x conftest$ac_exeext; then
27218   ac_cv_search_dlopen=$ac_res
27219 else
27220   echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27222
27223
27224 fi
27225
27226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27227       conftest$ac_exeext
27228   if test "${ac_cv_search_dlopen+set}" = set; then
27229   break
27230 fi
27231 done
27232 if test "${ac_cv_search_dlopen+set}" = set; then
27233   :
27234 else
27235   ac_cv_search_dlopen=no
27236 fi
27237 rm conftest.$ac_ext
27238 LIBS=$ac_func_search_save_LIBS
27239 fi
27240 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27241 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27242 ac_res=$ac_cv_search_dlopen
27243 if test "$ac_res" != no; then
27244   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27245
27246 fi
27247
27248
27249 working_dir=`eval echo ${prefix}/var/bacula/working`
27250
27251 # Check whether --with-working-dir was given.
27252 if test "${with_working_dir+set}" = set; then
27253   withval=$with_working_dir;
27254        if test "x$withval" != "xno" ; then
27255          working_dir=$withval
27256        fi
27257
27258
27259 fi
27260
27261
27262
27263
27264 archive_dir=/tmp
27265
27266 # Check whether --with-archivedir was given.
27267 if test "${with_archivedir+set}" = set; then
27268   withval=$with_archivedir;
27269        if test "x$withval" != "xno" ; then
27270           archivedir=$withval
27271        fi
27272
27273
27274 fi
27275
27276
27277
27278
27279 scriptdir=`eval echo ${sysconfdir}`
27280
27281 # Check whether --with-scriptdir was given.
27282 if test "${with_scriptdir+set}" = set; then
27283   withval=$with_scriptdir;
27284        if test "x$withval" != "xno" ; then
27285           scriptdir=$withval
27286        fi
27287
27288
27289 fi
27290
27291
27292
27293
27294 # ------------------------------------------
27295 # Where to place plugindir (plugin files)
27296 # ------------------------------------------
27297 plugindir=`eval echo ${sysconfdir}`
27298
27299 # Check whether --with-plugindir was given.
27300 if test "${with_plugindir+set}" = set; then
27301   withval=$with_plugindir;
27302        if test "x$withval" != "xno" ; then
27303           plugindir=$withval
27304        fi
27305
27306
27307 fi
27308
27309
27310
27311
27312 dump_email=root@localhost
27313
27314 # Check whether --with-dump-email was given.
27315 if test "${with_dump_email+set}" = set; then
27316   withval=$with_dump_email;
27317        if test "x$withval" != "xno" ; then
27318           dump_email=$withval
27319        fi
27320
27321
27322 fi
27323
27324
27325
27326
27327 job_email=root@localhost
27328
27329 # Check whether --with-job-email was given.
27330 if test "${with_job_email+set}" = set; then
27331   withval=$with_job_email;
27332        if test "x$withval" != "xno" ; then
27333           job_email=$withval
27334        fi
27335
27336
27337 fi
27338
27339
27340
27341
27342 smtp_host=localhost
27343
27344 # Check whether --with-smtp_host was given.
27345 if test "${with_smtp_host+set}" = set; then
27346   withval=$with_smtp_host;
27347        if test "x$withval" != "xno" ; then
27348           smtp_host=$withval
27349        fi
27350
27351
27352 fi
27353
27354
27355
27356
27357 piddir=/var/run
27358
27359 # Check whether --with-pid-dir was given.
27360 if test "${with_pid_dir+set}" = set; then
27361   withval=$with_pid_dir;
27362        if test "x$withval" != "xno" ; then
27363           piddir=$withval
27364        fi
27365
27366
27367 fi
27368
27369
27370 cat >>confdefs.h <<_ACEOF
27371 #define _PATH_BACULA_PIDDIR "$piddir"
27372 _ACEOF
27373
27374
27375
27376 subsysdir=/var/run/subsys
27377 if test -d /var/run/subsys; then
27378    subsysdir=/var/run/subsys
27379 elif test -d /var/lock/subsys; then
27380    subsysdir=/var/lock/subsys
27381 else
27382    subsysdir=/var/run/subsys
27383 fi
27384
27385 # Check whether --with-subsys-dir was given.
27386 if test "${with_subsys_dir+set}" = set; then
27387   withval=$with_subsys_dir;
27388        if test "x$withval" != "xno" ; then
27389           subsysdir=$withval
27390        fi
27391
27392
27393 fi
27394
27395
27396
27397
27398 baseport=9101
27399
27400 # Check whether --with-baseport was given.
27401 if test "${with_baseport+set}" = set; then
27402   withval=$with_baseport;
27403        if test "x$withval" != "xno" ; then
27404           baseport=$withval
27405        fi
27406
27407
27408 fi
27409
27410
27411
27412 dir_port=`expr $baseport`
27413 fd_port=`expr $baseport + 1`
27414 sd_port=`expr $fd_port + 1`
27415
27416
27417
27418
27419
27420 dir_password=
27421
27422 # Check whether --with-dir-password was given.
27423 if test "${with_dir_password+set}" = set; then
27424   withval=$with_dir_password;
27425        if test "x$withval" != "xno" ; then
27426           dir_password=$withval
27427        fi
27428
27429
27430 fi
27431
27432
27433 if test "x$dir_password" = "x" ; then
27434    if test "x$OPENSSL" = "xnone" ; then
27435       key=`autoconf/randpass 33`
27436    else
27437       key=`openssl rand -base64 33`
27438    fi
27439    dir_password=$key
27440 fi
27441
27442 fd_password=
27443
27444 # Check whether --with-fd-password was given.
27445 if test "${with_fd_password+set}" = set; then
27446   withval=$with_fd_password;
27447        if test "x$withval" != "xno" ; then
27448           fd_password=$withval
27449        fi
27450
27451
27452 fi
27453
27454
27455 if test "x$fd_password" = "x" ; then
27456    if test "x$OPENSSL" = "xnone" ; then
27457       key=`autoconf/randpass 37`
27458    else
27459       key=`openssl rand -base64 33`
27460    fi
27461    fd_password=$key
27462 fi
27463
27464 sd_password=
27465
27466 # Check whether --with-sd-password was given.
27467 if test "${with_sd_password+set}" = set; then
27468   withval=$with_sd_password;
27469        if test "x$withval" != "xno" ; then
27470           sd_password=$withval
27471        fi
27472
27473
27474 fi
27475
27476
27477 if test "x$sd_password" = "x" ; then
27478    if test "x$OPENSSL" = "xnone" ; then
27479       key=`autoconf/randpass 41`
27480    else
27481       key=`openssl rand -base64 33`
27482    fi
27483    sd_password=$key
27484 fi
27485
27486 mon_dir_password=
27487
27488 # Check whether --with-mon-dir-password was given.
27489 if test "${with_mon_dir_password+set}" = set; then
27490   withval=$with_mon_dir_password;
27491        if test "x$withval" != "xno" ; then
27492           mon_dir_password=$withval
27493        fi
27494
27495
27496 fi
27497
27498
27499 if test "x$mon_dir_password" = "x" ; then
27500    if test "x$OPENSSL" = "xnone" ; then
27501       key=`autoconf/randpass 33`
27502    else
27503       key=`openssl rand -base64 33`
27504    fi
27505    mon_dir_password=$key
27506 fi
27507
27508 mon_fd_password=
27509
27510 # Check whether --with-mon-fd-password was given.
27511 if test "${with_mon_fd_password+set}" = set; then
27512   withval=$with_mon_fd_password;
27513        if test "x$withval" != "xno" ; then
27514           mon_fd_password=$withval
27515        fi
27516
27517
27518 fi
27519
27520
27521 if test "x$mon_fd_password" = "x" ; then
27522    if test "x$OPENSSL" = "xnone" ; then
27523       key=`autoconf/randpass 37`
27524    else
27525       key=`openssl rand -base64 33`
27526    fi
27527    mon_fd_password=$key
27528 fi
27529
27530 mon_sd_password=
27531
27532 # Check whether --with-mon-sd-password was given.
27533 if test "${with_mon_sd_password+set}" = set; then
27534   withval=$with_mon_sd_password;
27535        if test "x$withval" != "xno" ; then
27536           mon_sd_password=$withval
27537        fi
27538
27539
27540 fi
27541
27542
27543 if test "x$mon_sd_password" = "x" ; then
27544    if test "x$OPENSSL" = "xnone" ; then
27545       key=`autoconf/randpass 41`
27546    else
27547       key=`openssl rand -base64 33`
27548    fi
27549    mon_sd_password=$key
27550 fi
27551
27552
27553
27554
27555
27556
27557
27558
27559 db_name=bacula
27560
27561 # Check whether --with-db_name was given.
27562 if test "${with_db_name+set}" = set; then
27563   withval=$with_db_name;
27564        if test "x$withval" != "x" ; then
27565           db_name=$withval
27566        fi
27567
27568
27569 fi
27570
27571
27572
27573 db_user=bacula
27574
27575 # Check whether --with-db_user was given.
27576 if test "${with_db_user+set}" = set; then
27577   withval=$with_db_user;
27578        if test "x$withval" != "x" ; then
27579           db_user=$withval
27580        fi
27581
27582
27583 fi
27584
27585
27586
27587 db_password=
27588
27589 # Check whether --with-db_password was given.
27590 if test "${with_db_password+set}" = set; then
27591   withval=$with_db_password;
27592        if test "x$withval" != "x" ; then
27593           db_password=$withval
27594        fi
27595
27596
27597 fi
27598
27599
27600
27601 db_port=" "
27602
27603 # Check whether --with-db_port was given.
27604 if test "${with_db_port+set}" = set; then
27605   withval=$with_db_port;
27606        if test "x$withval" != "x" ; then
27607           db_port=$withval
27608        fi
27609
27610
27611 fi
27612
27613
27614
27615 #
27616 # Handle users and groups for each daemon
27617 #
27618 dir_user=
27619
27620 # Check whether --with-dir_user was given.
27621 if test "${with_dir_user+set}" = set; then
27622   withval=$with_dir_user;
27623        if test "x$withval" != "x" ; then
27624            dir_user=$withval
27625        fi
27626
27627
27628 fi
27629
27630
27631 dir_group=
27632
27633 # Check whether --with-dir_group was given.
27634 if test "${with_dir_group+set}" = set; then
27635   withval=$with_dir_group;
27636        if test "x$withval" != "x" ; then
27637           dir_group=$withval
27638        fi
27639
27640
27641 fi
27642
27643
27644 sd_user=
27645
27646 # Check whether --with-sd_user was given.
27647 if test "${with_sd_user+set}" = set; then
27648   withval=$with_sd_user;
27649        if test "x$withval" != "x" ; then
27650           sd_user=$withval
27651        fi
27652
27653
27654 fi
27655
27656
27657 sd_group=
27658
27659 # Check whether --with-sd_group was given.
27660 if test "${with_sd_group+set}" = set; then
27661   withval=$with_sd_group;
27662        if test "x$withval" != "x" ; then
27663           sd_group=$withval
27664        fi
27665
27666
27667 fi
27668
27669
27670 fd_user=
27671
27672 # Check whether --with-fd_user was given.
27673 if test "${with_fd_user+set}" = set; then
27674   withval=$with_fd_user;
27675        if test "x$withval" != "x" ; then
27676           fd_user=$withval
27677        fi
27678
27679
27680 fi
27681
27682
27683 fd_group=
27684
27685 # Check whether --with-fd_group was given.
27686 if test "${with_fd_group+set}" = set; then
27687   withval=$with_fd_group;
27688        if test "x$withval" != "x" ; then
27689           fd_group=$withval
27690        fi
27691
27692
27693 fi
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703 SBINPERM=0754
27704
27705 # Check whether --with-sbin-perm was given.
27706 if test "${with_sbin_perm+set}" = set; then
27707   withval=$with_sbin_perm;
27708        if test "x$withval" != "x" ; then
27709           SBINPERM=$withval
27710        fi
27711
27712
27713 fi
27714
27715
27716
27717
27718 SQL_LIB=
27719
27720 db_found=no
27721 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27722 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27723
27724 # Check whether --with-postgresql was given.
27725 if test "${with_postgresql+set}" = set; then
27726   withval=$with_postgresql;
27727   if test "$withval" != "no"; then
27728       if test "$db_found" = "yes"; then
27729           { echo "$as_me:$LINENO: result: error" >&5
27730 echo "${ECHO_T}error" >&6; }
27731           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27732 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27733    { (exit 1); exit 1; }; };
27734       fi
27735       if test "$withval" = "yes"; then
27736           PG_CONFIG=`which pg_config`
27737           if test -n "$PG_CONFIG";then
27738               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27739               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27740               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27741           elif test -f /usr/local/include/libpq-fe.h; then
27742               POSTGRESQL_INCDIR=/usr/local/include
27743               if test -d /usr/local/lib64; then
27744                  POSTGRESQL_LIBDIR=/usr/local/lib64
27745               else
27746                  POSTGRESQL_LIBDIR=/usr/local/lib
27747               fi
27748               POSTGRESQL_BINDIR=/usr/local/bin
27749           elif test -f /usr/include/libpq-fe.h; then
27750               POSTGRESQL_INCDIR=/usr/include
27751               if test -d /usr/lib64; then
27752                  POSTGRESQL_LIBDIR=/usr/lib64
27753               else
27754                  POSTGRESQL_LIBDIR=/usr/lib
27755               fi
27756               POSTGRESQL_BINDIR=/usr/bin
27757           elif test -f /usr/include/pgsql/libpq-fe.h; then
27758               POSTGRESQL_INCDIR=/usr/include/pgsql
27759               if test -d /usr/lib64/pgsql; then
27760                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27761               else
27762                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27763               fi
27764               POSTGRESQL_BINDIR=/usr/bin
27765           elif test -f /usr/include/postgresql/libpq-fe.h; then
27766               POSTGRESQL_INCDIR=/usr/include/postgresql
27767               if test -d /usr/lib64/postgresql; then
27768                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27769               else
27770                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27771               fi
27772               POSTGRESQL_BINDIR=/usr/bin
27773           else
27774               { echo "$as_me:$LINENO: result: no" >&5
27775 echo "${ECHO_T}no" >&6; }
27776               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27777 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27778    { (exit 1); exit 1; }; }
27779           fi
27780       elif test -f $withval/include/libpq-fe.h; then
27781           POSTGRESQL_INCDIR=$withval/include
27782           POSTGRESQL_LIBDIR=$withval/lib
27783           POSTGRESQL_BINDIR=$withval/bin
27784       elif test -f $withval/include/postgresql/libpq-fe.h; then
27785           POSTGRESQL_INCDIR=$withval/include/postgresql
27786      if test -d $withval/lib64; then
27787          POSTGRESQL_LIBDIR=$withval/lib64
27788      else
27789          POSTGRESQL_LIBDIR=$withval/lib
27790      fi
27791           POSTGRESQL_BINDIR=$withval/bin
27792       else
27793           { echo "$as_me:$LINENO: result: no" >&5
27794 echo "${ECHO_T}no" >&6; }
27795           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27796 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27797    { (exit 1); exit 1; }; }
27798       fi
27799       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27800       { echo "$as_me:$LINENO: checking for crypt" >&5
27801 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27802 if test "${ac_cv_func_crypt+set}" = set; then
27803   echo $ECHO_N "(cached) $ECHO_C" >&6
27804 else
27805   cat >conftest.$ac_ext <<_ACEOF
27806 /* confdefs.h.  */
27807 _ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h.  */
27811 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27813 #define crypt innocuous_crypt
27814
27815 /* System header to define __stub macros and hopefully few prototypes,
27816     which can conflict with char crypt (); below.
27817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27818     <limits.h> exists even on freestanding compilers.  */
27819
27820 #ifdef __STDC__
27821 # include <limits.h>
27822 #else
27823 # include <assert.h>
27824 #endif
27825
27826 #undef crypt
27827
27828 /* Override any GCC internal prototype to avoid an error.
27829    Use char because int might match the return type of a GCC
27830    builtin and then its argument prototype would still apply.  */
27831 #ifdef __cplusplus
27832 extern "C"
27833 #endif
27834 char crypt ();
27835 /* The GNU C library defines this for functions which it implements
27836     to always fail with ENOSYS.  Some functions are actually named
27837     something starting with __ and the normal name is an alias.  */
27838 #if defined __stub_crypt || defined __stub___crypt
27839 choke me
27840 #endif
27841
27842 int
27843 main ()
27844 {
27845 return crypt ();
27846   ;
27847   return 0;
27848 }
27849 _ACEOF
27850 rm -f conftest.$ac_objext conftest$ac_exeext
27851 if { (ac_try="$ac_link"
27852 case "(($ac_try" in
27853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27854   *) ac_try_echo=$ac_try;;
27855 esac
27856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27857   (eval "$ac_link") 2>conftest.er1
27858   ac_status=$?
27859   grep -v '^ *+' conftest.er1 >conftest.err
27860   rm -f conftest.er1
27861   cat conftest.err >&5
27862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863   (exit $ac_status); } && {
27864          test -z "$ac_c_werror_flag" ||
27865          test ! -s conftest.err
27866        } && test -s conftest$ac_exeext &&
27867        $as_test_x conftest$ac_exeext; then
27868   ac_cv_func_crypt=yes
27869 else
27870   echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27872
27873         ac_cv_func_crypt=no
27874 fi
27875
27876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27877       conftest$ac_exeext conftest.$ac_ext
27878 fi
27879 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27880 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27881 if test $ac_cv_func_crypt = yes; then
27882   :
27883 else
27884   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27885 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27886 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27887   echo $ECHO_N "(cached) $ECHO_C" >&6
27888 else
27889   ac_check_lib_save_LIBS=$LIBS
27890 LIBS="-lcrypt  $LIBS"
27891 cat >conftest.$ac_ext <<_ACEOF
27892 /* confdefs.h.  */
27893 _ACEOF
27894 cat confdefs.h >>conftest.$ac_ext
27895 cat >>conftest.$ac_ext <<_ACEOF
27896 /* end confdefs.h.  */
27897
27898 /* Override any GCC internal prototype to avoid an error.
27899    Use char because int might match the return type of a GCC
27900    builtin and then its argument prototype would still apply.  */
27901 #ifdef __cplusplus
27902 extern "C"
27903 #endif
27904 char crypt ();
27905 int
27906 main ()
27907 {
27908 return crypt ();
27909   ;
27910   return 0;
27911 }
27912 _ACEOF
27913 rm -f conftest.$ac_objext conftest$ac_exeext
27914 if { (ac_try="$ac_link"
27915 case "(($ac_try" in
27916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917   *) ac_try_echo=$ac_try;;
27918 esac
27919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920   (eval "$ac_link") 2>conftest.er1
27921   ac_status=$?
27922   grep -v '^ *+' conftest.er1 >conftest.err
27923   rm -f conftest.er1
27924   cat conftest.err >&5
27925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926   (exit $ac_status); } && {
27927          test -z "$ac_c_werror_flag" ||
27928          test ! -s conftest.err
27929        } && test -s conftest$ac_exeext &&
27930        $as_test_x conftest$ac_exeext; then
27931   ac_cv_lib_crypt_crypt=yes
27932 else
27933   echo "$as_me: failed program was:" >&5
27934 sed 's/^/| /' conftest.$ac_ext >&5
27935
27936         ac_cv_lib_crypt_crypt=no
27937 fi
27938
27939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27940       conftest$ac_exeext conftest.$ac_ext
27941 LIBS=$ac_check_lib_save_LIBS
27942 fi
27943 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27944 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27945 if test $ac_cv_lib_crypt_crypt = yes; then
27946   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27947 fi
27948
27949 fi
27950
27951       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27952       SQL_LFLAGS=$POSTGRESQL_LFLAGS
27953       SQL_BINDIR=$POSTGRESQL_BINDIR
27954       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27955
27956       cat >>confdefs.h <<\_ACEOF
27957 #define HAVE_POSTGRESQL 1
27958 _ACEOF
27959
27960       { echo "$as_me:$LINENO: result: yes" >&5
27961 echo "${ECHO_T}yes" >&6; }
27962       db_found=yes
27963       support_postgresql=yes
27964       db_type=PostgreSQL
27965       DB_TYPE=postgresql
27966   else
27967       { echo "$as_me:$LINENO: result: no" >&5
27968 echo "${ECHO_T}no" >&6; }
27969   fi
27970
27971 else
27972
27973   { echo "$as_me:$LINENO: result: no" >&5
27974 echo "${ECHO_T}no" >&6; }
27975
27976 fi
27977
27978
27979
27980
27981
27982
27983
27984
27985 db_found=no
27986 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27987 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27988
27989 # Check whether --with-mysql was given.
27990 if test "${with_mysql+set}" = set; then
27991   withval=$with_mysql;
27992   if test "$withval" != "no"; then
27993         if test "$withval" = "yes"; then
27994            if test -f /usr/local/mysql/include/mysql/mysql.h; then
27995                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
27996                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27997                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27998                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27999                    else
28000                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28001                    fi
28002                    MYSQL_BINDIR=/usr/local/mysql/bin
28003            elif test -f /usr/include/mysql/mysql.h; then
28004                    MYSQL_INCDIR=/usr/include/mysql
28005                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28006                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28007                            MYSQL_LIBDIR=/usr/lib64/mysql
28008                    elif test -f /usr/lib64/libmysqlclient_r.a \
28009                         -o -f /usr/lib64/libmysqlclient_r.so; then
28010                            MYSQL_LIBDIR=/usr/lib64
28011                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28012                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28013                            MYSQL_LIBDIR=/usr/lib/mysql
28014                    else
28015                            MYSQL_LIBDIR=/usr/lib
28016                    fi
28017                    MYSQL_BINDIR=/usr/bin
28018            elif test -f /usr/include/mysql.h; then
28019                    MYSQL_INCDIR=/usr/include
28020                    if test -f /usr/lib64/libmysqlclient_r.a \
28021                         -o -f /usr/lib64/libmysqlclient_r.so; then
28022                            MYSQL_LIBDIR=/usr/lib64
28023                    else
28024                            MYSQL_LIBDIR=/usr/lib
28025                    fi
28026                    MYSQL_BINDIR=/usr/bin
28027            elif test -f /usr/local/include/mysql/mysql.h; then
28028                    MYSQL_INCDIR=/usr/local/include/mysql
28029                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28030                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28031                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28032                    else
28033                            MYSQL_LIBDIR=/usr/local/lib/mysql
28034                    fi
28035                    MYSQL_BINDIR=/usr/local/bin
28036            elif test -f /usr/local/include/mysql.h; then
28037                    MYSQL_INCDIR=/usr/local/include
28038                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28039                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28040                            MYSQL_LIBDIR=/usr/local/lib64
28041                    else
28042                            MYSQL_LIBDIR=/usr/local/lib
28043                    fi
28044                    MYSQL_BINDIR=/usr/local/bin
28045            else
28046               { echo "$as_me:$LINENO: result: no" >&5
28047 echo "${ECHO_T}no" >&6; }
28048               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28049 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28050    { (exit 1); exit 1; }; }
28051            fi
28052         else
28053            if test -f $withval/include/mysql/mysql.h; then
28054               MYSQL_INCDIR=$withval/include/mysql
28055               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28056                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28057                  MYSQL_LIBDIR=$withval/lib64/mysql
28058               elif test -f $withval/lib64/libmysqlclient_r.a \
28059                    -o -f $withval/lib64/libmysqlclient_r.so; then
28060                  MYSQL_LIBDIR=$withval/lib64
28061               elif test -f $withval/lib/libmysqlclient_r.a \
28062                    -o -f $withval/lib/libmysqlclient_r.so; then
28063                  MYSQL_LIBDIR=$withval/lib
28064               else
28065                  MYSQL_LIBDIR=$withval/lib/mysql
28066               fi
28067               MYSQL_BINDIR=$withval/bin
28068            elif test -f $withval/include/mysql.h; then
28069               MYSQL_INCDIR=$withval/include
28070               if test -f $withval/lib64/libmysqlclient_r.a \
28071                    -o -f $withval/lib64/libmysqlclient_r.so; then
28072                  MYSQL_LIBDIR=$withval/lib64
28073               else
28074                  MYSQL_LIBDIR=$withval/lib
28075               fi
28076               MYSQL_BINDIR=$withval/bin
28077            else
28078               { echo "$as_me:$LINENO: result: no" >&5
28079 echo "${ECHO_T}no" >&6; }
28080               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28081 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28082    { (exit 1); exit 1; }; }
28083            fi
28084         fi
28085     SQL_INCLUDE=-I$MYSQL_INCDIR
28086     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28087          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28088        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28089        cat >>confdefs.h <<\_ACEOF
28090 #define HAVE_THREAD_SAFE_MYSQL 1
28091 _ACEOF
28092
28093     fi
28094     SQL_BINDIR=$MYSQL_BINDIR
28095     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28096
28097     cat >>confdefs.h <<\_ACEOF
28098 #define HAVE_MYSQL 1
28099 _ACEOF
28100
28101     { echo "$as_me:$LINENO: result: yes" >&5
28102 echo "${ECHO_T}yes" >&6; }
28103     db_found=yes
28104     support_mysql=yes
28105     db_type=MySQL
28106     DB_TYPE=mysql
28107
28108   else
28109         { echo "$as_me:$LINENO: result: no" >&5
28110 echo "${ECHO_T}no" >&6; }
28111   fi
28112
28113
28114 fi
28115
28116
28117
28118 # Check whether --with-embedded-mysql was given.
28119 if test "${with_embedded_mysql+set}" = set; then
28120   withval=$with_embedded_mysql;
28121   if test "$withval" != "no"; then
28122         if test "$withval" = "yes"; then
28123                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28124                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28125                         if test -d /usr/local/mysql/lib64/mysql; then
28126                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28127                         else
28128                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28129                         fi
28130                         MYSQL_BINDIR=/usr/local/mysql/bin
28131                 elif test -f /usr/include/mysql/mysql.h; then
28132                         MYSQL_INCDIR=/usr/include/mysql
28133                         if test -d /usr/lib64/mysql; then
28134                                 MYSQL_LIBDIR=/usr/lib64/mysql
28135                         else
28136                                 MYSQL_LIBDIR=/usr/lib/mysql
28137                         fi
28138                         MYSQL_BINDIR=/usr/bin
28139                 elif test -f /usr/include/mysql.h; then
28140                         MYSQL_INCDIR=/usr/include
28141                         if test -d /usr/lib64; then
28142                                 MYSQL_LIBDIR=/usr/lib64
28143                         else
28144                                 MYSQL_LIBDIR=/usr/lib
28145                         fi
28146                         MYSQL_BINDIR=/usr/bin
28147                 elif test -f /usr/local/include/mysql/mysql.h; then
28148                         MYSQL_INCDIR=/usr/local/include/mysql
28149                         if test -d /usr/local/lib64/mysql; then
28150                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28151                         else
28152                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28153                         fi
28154                         MYSQL_BINDIR=/usr/local/bin
28155                 elif test -f /usr/local/include/mysql.h; then
28156                         MYSQL_INCDIR=/usr/local/include
28157                         if test -d /usr/local/lib64; then
28158                                 MYSQL_LIBDIR=/usr/local/lib64
28159                         else
28160                                 MYSQL_LIBDIR=/usr/local/lib
28161                         fi
28162                         MYSQL_BINDIR=/usr/local/bin
28163                 else
28164                    { echo "$as_me:$LINENO: result: no" >&5
28165 echo "${ECHO_T}no" >&6; }
28166                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28167 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28168    { (exit 1); exit 1; }; }
28169                 fi
28170         else
28171                 if test -f $withval/include/mysql/mysql.h; then
28172                         MYSQL_INCDIR=$withval/include/mysql
28173                         if test -d $withval/lib64/mysql; then
28174                                 MYSQL_LIBDIR=$withval/lib64/mysql
28175                         else
28176                                 MYSQL_LIBDIR=$withval/lib/mysql
28177                         fi
28178                         MYSQL_BINDIR=$withval/bin
28179                 elif test -f $withval/include/mysql.h; then
28180                         MYSQL_INCDIR=$withval/include
28181                         if test -d $withval/lib64; then
28182                                 MYSQL_LIBDIR=$withval/lib64
28183                         else
28184                                 MYSQL_LIBDIR=$withval/lib
28185                         fi
28186                         MYSQL_BINDIR=$withval/bin
28187                 else
28188                    { echo "$as_me:$LINENO: result: no" >&5
28189 echo "${ECHO_T}no" >&6; }
28190                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28191 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28192    { (exit 1); exit 1; }; }
28193                 fi
28194         fi
28195     SQL_INCLUDE=-I$MYSQL_INCDIR
28196     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28197     SQL_BINDIR=$MYSQL_BINDIR
28198     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28199
28200     cat >>confdefs.h <<\_ACEOF
28201 #define HAVE_MYSQL 1
28202 _ACEOF
28203
28204     cat >>confdefs.h <<\_ACEOF
28205 #define HAVE_EMBEDDED_MYSQL 1
28206 _ACEOF
28207
28208     { echo "$as_me:$LINENO: result: yes" >&5
28209 echo "${ECHO_T}yes" >&6; }
28210     db_found=yes
28211     support_mysql=yes
28212     db_type=MySQL
28213     DB_TYPE=mysql
28214
28215   else
28216         { echo "$as_me:$LINENO: result: no" >&5
28217 echo "${ECHO_T}no" >&6; }
28218   fi
28219
28220
28221 fi
28222
28223
28224
28225
28226
28227
28228
28229
28230
28231
28232 db_found=no
28233 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28234 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28235
28236 # Check whether --with-sqlite3 was given.
28237 if test "${with_sqlite3+set}" = set; then
28238   withval=$with_sqlite3;
28239   if test "$withval" != "no"; then
28240      if test "$withval" = "yes"; then
28241         if test -f /usr/local/include/sqlite3.h; then
28242            SQLITE_INCDIR=/usr/local/include
28243            if test -d /usr/local/lib64; then
28244               SQLITE_LIBDIR=/usr/local/lib64
28245            else
28246               SQLITE_LIBDIR=/usr/local/lib
28247            fi
28248            SQLITE_BINDIR=/usr/local/bin
28249         elif test -f /usr/include/sqlite3.h; then
28250            SQLITE_INCDIR=/usr/include
28251            if test -d /usr/lib64; then
28252               SQLITE_LIBDIR=/usr/lib64
28253            else
28254               SQLITE_LIBDIR=/usr/lib
28255            fi
28256            SQLITE_BINDIR=/usr/bin
28257         elif test -f $prefix/include/sqlite3.h; then
28258            SQLITE_INCDIR=$prefix/include
28259            if test -d $prefix/lib64; then
28260               SQLITE_LIBDIR=$prefix/lib64
28261            else
28262               SQLITE_LIBDIR=$prefix/lib
28263            fi
28264            SQLITE_BINDIR=$prefix/bin
28265         else
28266            { echo "$as_me:$LINENO: result: no" >&5
28267 echo "${ECHO_T}no" >&6; }
28268            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28269 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28270    { (exit 1); exit 1; }; }
28271         fi
28272      else
28273         if test -f $withval/sqlite3.h; then
28274            SQLITE_INCDIR=$withval
28275            SQLITE_LIBDIR=$withval
28276            SQLITE_BINDIR=$withval
28277         elif test -f $withval/include/sqlite3.h; then
28278            SQLITE_INCDIR=$withval/include
28279            if test -d $withval/lib64; then
28280               SQLITE_LIBDIR=$withval/lib64
28281            else
28282               SQLITE_LIBDIR=$withval/lib
28283            fi
28284            SQLITE_BINDIR=$withval/bin
28285         else
28286            { echo "$as_me:$LINENO: result: no" >&5
28287 echo "${ECHO_T}no" >&6; }
28288            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28289 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28290    { (exit 1); exit 1; }; }
28291         fi
28292      fi
28293      SQL_INCLUDE=-I$SQLITE_INCDIR
28294      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28295      SQL_BINDIR=$SQLITE_BINDIR
28296      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28297
28298      cat >>confdefs.h <<\_ACEOF
28299 #define HAVE_SQLITE3 1
28300 _ACEOF
28301
28302      { echo "$as_me:$LINENO: result: yes" >&5
28303 echo "${ECHO_T}yes" >&6; }
28304      db_found=yes
28305      support_sqlite3=yes
28306      db_type=SQLite3
28307      DB_TYPE=sqlite3
28308
28309   else
28310      { echo "$as_me:$LINENO: result: no" >&5
28311 echo "${ECHO_T}no" >&6; }
28312   fi
28313
28314 else
28315
28316   { echo "$as_me:$LINENO: result: no" >&5
28317 echo "${ECHO_T}no" >&6; }
28318
28319 fi
28320
28321
28322
28323
28324
28325
28326
28327
28328 db_found=no
28329 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28330 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28331
28332 # Check whether --with-sqlite was given.
28333 if test "${with_sqlite+set}" = set; then
28334   withval=$with_sqlite;
28335   if test "$withval" != "no"; then
28336      if test "$withval" = "yes"; then
28337         if test -f /usr/local/include/sqlite.h; then
28338            SQLITE_INCDIR=/usr/local/include
28339            if test -d /usr/local/lib64; then
28340               SQLITE_LIBDIR=/usr/local/lib64
28341            else
28342               SQLITE_LIBDIR=/usr/local/lib
28343            fi
28344            SQLITE_BINDIR=/usr/local/bin
28345         elif test -f /usr/include/sqlite.h; then
28346            SQLITE_INCDIR=/usr/include
28347            if test -d /usr/lib64; then
28348               SQLITE_LIBDIR=/usr/lib64
28349            else
28350               SQLITE_LIBDIR=/usr/lib
28351            fi
28352            SQLITE_BINDIR=/usr/bin
28353         elif test -f $prefix/include/sqlite.h; then
28354            SQLITE_INCDIR=$prefix/include
28355            if test -d $prefix/lib64; then
28356               SQLITE_LIBDIR=$prefix/lib64
28357            else
28358               SQLITE_LIBDIR=$prefix/lib
28359            fi
28360            SQLITE_BINDIR=$prefix/bin
28361         else
28362            { echo "$as_me:$LINENO: result: no" >&5
28363 echo "${ECHO_T}no" >&6; }
28364            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28365 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28366    { (exit 1); exit 1; }; }
28367         fi
28368      else
28369         if test -f $withval/sqlite.h; then
28370            SQLITE_INCDIR=$withval
28371            SQLITE_LIBDIR=$withval
28372            SQLITE_BINDIR=$withval
28373         elif test -f $withval/include/sqlite.h; then
28374            SQLITE_INCDIR=$withval/include
28375            if test -d $withval/lib64; then
28376               SQLITE_LIBDIR=$withval/lib64
28377            else
28378               SQLITE_LIBDIR=$withval/lib
28379            fi
28380            SQLITE_BINDIR=$withval/bin
28381         else
28382            { echo "$as_me:$LINENO: result: no" >&5
28383 echo "${ECHO_T}no" >&6; }
28384            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28385 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28386    { (exit 1); exit 1; }; }
28387         fi
28388      fi
28389      SQL_INCLUDE=-I$SQLITE_INCDIR
28390      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28391      SQL_BINDIR=$SQLITE_BINDIR
28392      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28393
28394      cat >>confdefs.h <<\_ACEOF
28395 #define HAVE_SQLITE 1
28396 _ACEOF
28397
28398      { echo "$as_me:$LINENO: result: yes" >&5
28399 echo "${ECHO_T}yes" >&6; }
28400      db_found=yes
28401      support_sqlite=yes
28402      db_type=SQLite
28403      DB_TYPE=sqlite
28404
28405   else
28406      { echo "$as_me:$LINENO: result: no" >&5
28407 echo "${ECHO_T}no" >&6; }
28408   fi
28409
28410 else
28411
28412   { echo "$as_me:$LINENO: result: no" >&5
28413 echo "${ECHO_T}no" >&6; }
28414
28415 fi
28416
28417
28418
28419
28420
28421
28422
28423
28424 db_found=no
28425 { echo "$as_me:$LINENO: checking for DBI support" >&5
28426 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28427
28428 # Check whether --with-dbi was given.
28429 if test "${with_dbi+set}" = set; then
28430   withval=$with_dbi;
28431   if test "$withval" != "no"; then
28432      if test "$withval" = "yes"; then
28433         if test -f /usr/local/include/dbi/dbi.h; then
28434            DBI_INCDIR=/usr/local/dbi/include
28435            if test -d /usr/local/lib64; then
28436               DBI_LIBDIR=/usr/local/lib64
28437            else
28438               DBI_LIBDIR=/usr/local/lib
28439            fi
28440            DBI_BINDIR=/usr/local/bin
28441         elif test -f /usr/include/dbi/dbi.h; then
28442            DBI_INCDIR=/usr/include
28443            if test -d /usr/lib64; then
28444               DBI_LIBDIR=/usr/lib64
28445            else
28446               DBI_LIBDIR=/usr/lib
28447            fi
28448            DBI_BINDIR=/usr/bin
28449         elif test -f $prefix/include/dbi/dbi.h; then
28450            DBI_INCDIR=$prefix/include
28451            if test -d $prefix/lib64; then
28452               DBI_LIBDIR=$prefix/lib64
28453            else
28454               DBI_LIBDIR=$prefix/lib
28455            fi
28456            DBI_BINDIR=$prefix/bin
28457         else
28458            { echo "$as_me:$LINENO: result: no" >&5
28459 echo "${ECHO_T}no" >&6; }
28460            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28461 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28462    { (exit 1); exit 1; }; }
28463         fi
28464         if test -d /usr/local/lib/dbd; then
28465            DRIVERDIR=/usr/local/lib/dbd
28466            if test -d /usr/local/lib64/dbd; then
28467               DRIVERDIR=/usr/local/lib64/dbd
28468            else
28469               DRIVERDIR=/usr/local/lib/dbd
28470            fi
28471         elif test -d /usr/lib/dbd; then
28472            DRIVERDIR=/usr/lib/dbd
28473            if test -d /usr/lib64/dbd; then
28474               DRIVERDIR=/usr/lib64/dbd
28475            else
28476               DRIVERDIR=/usr/lib/dbd
28477            fi
28478         elif test -d $prefix/lib/dbd; then
28479            if test -d $prefix/lib64/dbd; then
28480               DRIVERDIR=$prefix/lib64/dbd
28481            else
28482               DRIVERDIR=$prefix/lib/dbd
28483            fi
28484         else
28485            { echo "$as_me:$LINENO: result: no" >&5
28486 echo "${ECHO_T}no" >&6; }
28487            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28488 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28489    { (exit 1); exit 1; }; }
28490         fi
28491      else
28492         if test -f $withval/dbi.h; then
28493            DBI_INCDIR=$withval
28494            DBI_LIBDIR=$withval
28495            DBI_BINDIR=$withval
28496         elif test -f $withval/include/dbi/dbi.h; then
28497            DBI_INCDIR=$withval/include
28498            if test -d $withval/lib64; then
28499               DBI_LIBDIR=$withval/lib64
28500            else
28501               DBI_LIBDIR=$withval/lib
28502            fi
28503            DBI_BINDIR=$withval/bin
28504         else
28505            { echo "$as_me:$LINENO: result: no" >&5
28506 echo "${ECHO_T}no" >&6; }
28507            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28508 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28509    { (exit 1); exit 1; }; }
28510         fi
28511         if test -d $withval/dbd; then
28512            DRIVERDIR=$withval/dbd
28513         elif test -d $withval/lib/; then
28514            if test -d $withval/lib64/dbd; then
28515               DRIVERDIR=$withval/lib64/dbd
28516            else
28517               DRIVERDIR=$withval/lib/dbd
28518            fi
28519         else
28520            { echo "$as_me:$LINENO: result: no" >&5
28521 echo "${ECHO_T}no" >&6; }
28522            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28523 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28524    { (exit 1); exit 1; }; }
28525         fi
28526      fi
28527      SQL_INCLUDE=-I$DBI_INCDIR
28528      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28529      SQL_BINDIR=$DBI_BINDIR
28530      SQL_LIB=$DBI_LIBDIR/libdbi.a
28531      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28532
28533
28534 cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_DBI 1
28536 _ACEOF
28537
28538      { echo "$as_me:$LINENO: result: yes" >&5
28539 echo "${ECHO_T}yes" >&6; }
28540      db_found=yes
28541      support_dbi=yes
28542      db_type=DBI
28543      DB_TYPE=dbi
28544      uncomment_dbi=" "
28545
28546   else
28547      { echo "$as_me:$LINENO: result: no" >&5
28548 echo "${ECHO_T}no" >&6; }
28549   fi
28550
28551 else
28552
28553   { echo "$as_me:$LINENO: result: no" >&5
28554 echo "${ECHO_T}no" >&6; }
28555
28556 fi
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567 db_found=no
28568 db_prog=no
28569 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28570 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28571
28572 # Check whether --with-dbi-driver was given.
28573 if test "${with_dbi_driver+set}" = set; then
28574   withval=$with_dbi_driver;
28575   if test "$withval" != "no"; then
28576      case $withval in
28577         "mysql")
28578            db_prog="mysql"
28579            if test -f /usr/local/mysql/bin/mysql; then
28580               SQL_BINDIR=/usr/local/mysql/bin
28581               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28582                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28583                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28584               else
28585                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28586               fi
28587            elif test -f /usr/bin/mysql; then
28588               SQL_BINDIR=/usr/bin
28589               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28590                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28591                   SQL_LIBDIR=/usr/lib64/mysql
28592               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28593                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28594                   SQL_LIBDIR=/usr/lib/mysql
28595               else
28596                   SQL_LIBDIR=/usr/lib
28597               fi
28598            elif test -f /usr/local/bin/mysql; then
28599               SQL_BINDIR=/usr/local/bin
28600               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28601                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28602                   SQL_LIBDIR=/usr/local/lib64/mysql
28603               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28604                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28605                   SQL_LIBDIR=/usr/local/lib/mysql
28606               else
28607                   SQL_LIBDIR=/usr/local/lib
28608               fi
28609            elif test -f $withval/bin/mysql; then
28610               SQL_BINDIR=$withval/bin
28611               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28612                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28613                   SQL_LIBDIR=$withval/lib64/mysql
28614               elif test -f $withval/lib64/libmysqlclient_r.a \
28615                   -o -f $withval/lib64/libmysqlclient_r.so; then
28616                   SQL_LIBDIR=$withval/lib64
28617               elif test -f $withval/lib/libmysqlclient_r.a \
28618                   -o -f $withval/lib/libmysqlclient_r.so; then
28619                   SQL_LIBDIR=$withval/lib/
28620               else
28621                   SQL_LIBDIR=$withval/lib/mysql
28622               fi
28623            else
28624               { echo "$as_me:$LINENO: result: no" >&5
28625 echo "${ECHO_T}no" >&6; }
28626               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28627 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28628    { (exit 1); exit 1; }; }
28629            fi
28630            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28631         ;;
28632         "postgresql")
28633            db_prog="postgresql"
28634            PG_CONFIG=`which pg_config`
28635            if test -n "$PG_CONFIG"; then
28636               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28637               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28638            elif test -f /usr/local/bin/psql; then
28639               SQL_BINDIR=/usr/local/bin
28640               if test -d /usr/local/lib64; then
28641                  SQL_LIBDIR=/usr/local/lib64
28642               else
28643                  SQL_LIBDIR=/usr/local/lib
28644               fi
28645            elif test -f /usr/bin/psql; then
28646               SQL_BINDIR=/usr/local/bin
28647               if test -d /usr/lib64/postgresql; then
28648                  SQL_LIBDIR=/usr/lib64/postgresql
28649               elif test -d /usr/lib/postgresql; then
28650                  SQL_LIBDIR=/usr/lib/postgresql
28651               elif test -d /usr/lib64; then
28652                  SQL_LIBDIR=/usr/lib64
28653               else
28654                  SQL_LIBDIR=/usr/lib
28655               fi
28656            elif test -f $withval/bin/psql; then
28657               SQL_BINDIR=$withval/bin
28658               if test -d $withval/lib64; then
28659                  SQL_LIBDIR=$withval/lib64
28660               else
28661                  SQL_LIBDIR=$withval/lib
28662               fi
28663            else
28664               { echo "$as_me:$LINENO: result: no" >&5
28665 echo "${ECHO_T}no" >&6; }
28666               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28667 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28668    { (exit 1); exit 1; }; }
28669            fi
28670            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28671         ;;
28672         "sqlite")
28673            db_prog="sqlite"
28674            if test -f /usr/local/bin/sqlite; then
28675               SQL_BINDIR=/usr/local/bin
28676               if test -d /usr/local/lib64; then
28677                  SQL_LIBDIR=/usr/local/lib64
28678               else
28679                  SQL_LIBDIR=/usr/local/lib
28680               fi
28681            elif test -f /usr/bin/sqlite; then
28682               SQL_BINDIR=/usr/bin
28683               if test -d /usr/lib64; then
28684                  SQL_LIBDIR=/usr/lib64
28685               else
28686                  SQL_LIBDIR=/usr/lib
28687               fi
28688            elif test -f $withval/bin/sqlite; then
28689               SQL_BINDIR=$withval/bin
28690               if test -d $withval/lib64; then
28691                  SQL_LIBDIR=$withval/lib64
28692               else
28693                  SQL_LIBDIR=$withval/lib
28694               fi
28695            else
28696               { echo "$as_me:$LINENO: result: no" >&5
28697 echo "${ECHO_T}no" >&6; }
28698               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28699 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28700    { (exit 1); exit 1; }; }
28701            fi
28702            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28703         ;;
28704         "sqlite3")
28705            db_prog="sqlite3"
28706            if test -f /usr/local/bin/sqlite3; then
28707               SQL_BINDIR=/usr/local/bin
28708               if test -d /usr/local/lib64; then
28709                  SQL_LIBDIR=/usr/local/lib64
28710               else
28711                  SQL_LIBDIR=/usr/local/lib
28712               fi
28713            elif test -f /usr/bin/sqlite3; then
28714               SQL_BINDIR=/usr/bin
28715               if test -d /usr/lib64; then
28716                  SQL_LIBDIR=/usr/lib64
28717               else
28718                  SQL_LIBDIR=/usr/lib
28719               fi
28720            elif test -f $withval/bin/sqlite3; then
28721               SQL_BINDIR=$withval/bin
28722               if test -d $withval/lib64; then
28723                  SQL_LIBDIR=$withval/lib64
28724               else
28725                  SQL_LIBDIR=$withval/lib
28726               fi
28727            else
28728               { echo "$as_me:$LINENO: result: no" >&5
28729 echo "${ECHO_T}no" >&6; }
28730               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28731 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28732    { (exit 1); exit 1; }; }
28733            fi
28734            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28735         ;;
28736         *)
28737            { echo "$as_me:$LINENO: result: no" >&5
28738 echo "${ECHO_T}no" >&6; }
28739            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28740 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28741    { (exit 1); exit 1; }; }
28742         ;;
28743      esac
28744
28745      { echo "$as_me:$LINENO: result: yes" >&5
28746 echo "${ECHO_T}yes" >&6; }
28747      DB_PROG=$db_prog
28748   else
28749      { echo "$as_me:$LINENO: result: no" >&5
28750 echo "${ECHO_T}no" >&6; }
28751   fi
28752
28753 else
28754
28755   { echo "$as_me:$LINENO: result: no" >&5
28756 echo "${ECHO_T}no" >&6; }
28757
28758 fi
28759
28760
28761
28762
28763
28764
28765
28766
28767
28768
28769 support_batch_insert=no
28770 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28771 pkg=$?
28772 if test $pkg = 0; then
28773    support_batch_insert=yes
28774    # Check whether --enable-batch-insert was given.
28775 if test "${enable_batch_insert+set}" = set; then
28776   enableval=$enable_batch_insert;
28777           if test x$enableval = xno; then
28778              support_batch_insert=no
28779           else
28780              support_batch_insert=yes
28781           fi
28782
28783
28784 fi
28785
28786 fi
28787
28788 if test x$DB_TYPE = xpostgresql; then
28789    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28790    pkg=$?
28791    if test $pkg != 0; then
28792       support_batch_insert=no
28793    fi
28794 fi
28795
28796 if test x$DB_TYPE = xdbi; then
28797    DB_TYPE=$DB_PROG
28798    db_type=$DB_PROG
28799    pkg=1
28800       if test $DB_PROG = postgresql; then
28801       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28802       pkg=$?
28803    fi
28804
28805    if test $DB_PROG = mysql; then
28806       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28807       pkg=$?
28808    fi
28809
28810    if test $DB_PROG = sqlite3; then
28811       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28812       pkg=$?
28813    fi
28814
28815    if test $pkg = 0; then
28816       # Check whether --enable-batch-insert was given.
28817 if test "${enable_batch_insert+set}" = set; then
28818   enableval=$enable_batch_insert;
28819              if test x$enableval = xno; then
28820                 support_batch_insert=no
28821              else
28822                 support_batch_insert=yes
28823              fi
28824
28825
28826 fi
28827
28828    fi
28829 else
28830       uncomment_dbi="#"
28831 fi
28832
28833
28834
28835 if test $support_batch_insert = yes ; then
28836
28837 cat >>confdefs.h <<\_ACEOF
28838 #define HAVE_BATCH_FILE_INSERT 1
28839 _ACEOF
28840
28841 fi
28842
28843 cat >>confdefs.h <<\_ACEOF
28844 #define PROTOTYPES 1
28845 _ACEOF
28846
28847
28848 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28849    if test -z "$CCOPTS"; then
28850       CCOPTS='-g -O2 -Wall'
28851    fi
28852    CFLAGS="$CCOPTS"
28853 fi
28854
28855
28856
28857 largefile_support="no"
28858
28859    # Check whether --enable-largefile was given.
28860 if test "${enable_largefile+set}" = set; then
28861   enableval=$enable_largefile;
28862 fi
28863
28864    if test "$enable_largefile" != no; then
28865      if test -n "$ac_tool_prefix"; then
28866   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28867 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28870 if test "${ac_cv_prog_GETCONF+set}" = set; then
28871   echo $ECHO_N "(cached) $ECHO_C" >&6
28872 else
28873   if test -n "$GETCONF"; then
28874   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28875 else
28876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28877 for as_dir in $PATH
28878 do
28879   IFS=$as_save_IFS
28880   test -z "$as_dir" && as_dir=.
28881   for ac_exec_ext in '' $ac_executable_extensions; do
28882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28883     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28885     break 2
28886   fi
28887 done
28888 done
28889 IFS=$as_save_IFS
28890
28891 fi
28892 fi
28893 GETCONF=$ac_cv_prog_GETCONF
28894 if test -n "$GETCONF"; then
28895   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28896 echo "${ECHO_T}$GETCONF" >&6; }
28897 else
28898   { echo "$as_me:$LINENO: result: no" >&5
28899 echo "${ECHO_T}no" >&6; }
28900 fi
28901
28902
28903 fi
28904 if test -z "$ac_cv_prog_GETCONF"; then
28905   ac_ct_GETCONF=$GETCONF
28906   # Extract the first word of "getconf", so it can be a program name with args.
28907 set dummy getconf; ac_word=$2
28908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28910 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28911   echo $ECHO_N "(cached) $ECHO_C" >&6
28912 else
28913   if test -n "$ac_ct_GETCONF"; then
28914   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28915 else
28916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28917 for as_dir in $PATH
28918 do
28919   IFS=$as_save_IFS
28920   test -z "$as_dir" && as_dir=.
28921   for ac_exec_ext in '' $ac_executable_extensions; do
28922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28923     ac_cv_prog_ac_ct_GETCONF="getconf"
28924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28925     break 2
28926   fi
28927 done
28928 done
28929 IFS=$as_save_IFS
28930
28931 fi
28932 fi
28933 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28934 if test -n "$ac_ct_GETCONF"; then
28935   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28936 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28937 else
28938   { echo "$as_me:$LINENO: result: no" >&5
28939 echo "${ECHO_T}no" >&6; }
28940 fi
28941
28942   if test "x$ac_ct_GETCONF" = x; then
28943     GETCONF=""
28944   else
28945     case $cross_compiling:$ac_tool_warned in
28946 yes:)
28947 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28948 whose name does not start with the host triplet.  If you think this
28949 configuration is useful to you, please write to autoconf@gnu.org." >&5
28950 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28951 whose name does not start with the host triplet.  If you think this
28952 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28953 ac_tool_warned=yes ;;
28954 esac
28955     GETCONF=$ac_ct_GETCONF
28956   fi
28957 else
28958   GETCONF="$ac_cv_prog_GETCONF"
28959 fi
28960
28961      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28962 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28963 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28964   echo $ECHO_N "(cached) $ECHO_C" >&6
28965 else
28966   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28967         ac_cv_sys_largefile_CFLAGS=no
28968         case "$host_os" in
28969            # IRIX 6.2 and later require cc -n32.
28970            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28971              if test "$GCC" != yes; then
28972                ac_cv_sys_largefile_CFLAGS=-n32
28973              fi
28974              ac_save_CC="$CC"
28975              CC="$CC $ac_cv_sys_largefile_CFLAGS"
28976              cat >conftest.$ac_ext <<_ACEOF
28977 /* confdefs.h.  */
28978 _ACEOF
28979 cat confdefs.h >>conftest.$ac_ext
28980 cat >>conftest.$ac_ext <<_ACEOF
28981 /* end confdefs.h.  */
28982
28983 int
28984 main ()
28985 {
28986
28987   ;
28988   return 0;
28989 }
28990 _ACEOF
28991 rm -f conftest.$ac_objext conftest$ac_exeext
28992 if { (ac_try="$ac_link"
28993 case "(($ac_try" in
28994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28995   *) ac_try_echo=$ac_try;;
28996 esac
28997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28998   (eval "$ac_link") 2>conftest.er1
28999   ac_status=$?
29000   grep -v '^ *+' conftest.er1 >conftest.err
29001   rm -f conftest.er1
29002   cat conftest.err >&5
29003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004   (exit $ac_status); } && {
29005          test -z "$ac_c_werror_flag" ||
29006          test ! -s conftest.err
29007        } && test -s conftest$ac_exeext &&
29008        $as_test_x conftest$ac_exeext; then
29009   :
29010 else
29011   echo "$as_me: failed program was:" >&5
29012 sed 's/^/| /' conftest.$ac_ext >&5
29013
29014         ac_cv_sys_largefile_CFLAGS=no
29015 fi
29016
29017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29018       conftest$ac_exeext conftest.$ac_ext
29019              CC="$ac_save_CC"
29020            esac
29021       }
29022 fi
29023 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29024 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29025      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29026 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29027 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29028   echo $ECHO_N "(cached) $ECHO_C" >&6
29029 else
29030   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29031         ac_cv_sys_largefile_LDFLAGS=no
29032
29033       }
29034 fi
29035 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29036 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29037      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29038 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29039 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29040   echo $ECHO_N "(cached) $ECHO_C" >&6
29041 else
29042   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29043         ac_cv_sys_largefile_LIBS=no
29044
29045       }
29046 fi
29047 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29048 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29049
29050      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29051        case "$ac_flag" in
29052        no) ;;
29053        -D_FILE_OFFSET_BITS=*) ;;
29054        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29055        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29056        -D?* | -I?*)
29057          case "$ac_flag" in
29058    no) ;;
29059    ?*)
29060      case "$CPPFLAGS" in
29061      '') CPPFLAGS="$ac_flag" ;;
29062      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29063      esac ;;
29064    esac ;;
29065        *)
29066          case "$ac_flag" in
29067    no) ;;
29068    ?*)
29069      case "$CFLAGS" in
29070      '') CFLAGS="$ac_flag" ;;
29071      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29072      esac ;;
29073    esac ;;
29074        esac
29075      done
29076      case "$ac_cv_sys_largefile_LDFLAGS" in
29077    no) ;;
29078    ?*)
29079      case "$LDFLAGS" in
29080      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29081      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29082      esac ;;
29083    esac
29084      case "$ac_cv_sys_largefile_LIBS" in
29085    no) ;;
29086    ?*)
29087      case "$LIBS" in
29088      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29089      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29090      esac ;;
29091    esac
29092      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29093 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29094 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29095   echo $ECHO_N "(cached) $ECHO_C" >&6
29096 else
29097   ac_cv_sys_file_offset_bits=no
29098       ac_cv_sys_file_offset_bits=64
29099       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29100         case "$ac_flag" in
29101         -D_FILE_OFFSET_BITS)
29102           ac_cv_sys_file_offset_bits=1 ;;
29103         -D_FILE_OFFSET_BITS=*)
29104           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29105         esac
29106       done
29107
29108 fi
29109 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29110 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29111    if test "$ac_cv_sys_file_offset_bits" != no; then
29112
29113 cat >>confdefs.h <<_ACEOF
29114 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29115 _ACEOF
29116
29117    fi
29118      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29119 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29120 if test "${ac_cv_sys_largefile_source+set}" = set; then
29121   echo $ECHO_N "(cached) $ECHO_C" >&6
29122 else
29123   ac_cv_sys_largefile_source=no
29124       ac_cv_sys_largefile_source=1
29125       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29126         case "$ac_flag" in
29127         -D_LARGEFILE_SOURCE)
29128           ac_cv_sys_largefile_source=1 ;;
29129         -D_LARGEFILE_SOURCE=*)
29130           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29131         esac
29132       done
29133
29134 fi
29135 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29136 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29137    if test "$ac_cv_sys_largefile_source" != no; then
29138
29139 cat >>confdefs.h <<_ACEOF
29140 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29141 _ACEOF
29142
29143    fi
29144      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29145 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29146 if test "${ac_cv_sys_large_files+set}" = set; then
29147   echo $ECHO_N "(cached) $ECHO_C" >&6
29148 else
29149   ac_cv_sys_large_files=no
29150       ac_cv_sys_large_files=1
29151       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29152         case "$ac_flag" in
29153         -D_LARGE_FILES)
29154           ac_cv_sys_large_files=1 ;;
29155         -D_LARGE_FILES=*)
29156           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29157         esac
29158       done
29159
29160 fi
29161 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29162 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29163    if test "$ac_cv_sys_large_files" != no; then
29164
29165 cat >>confdefs.h <<_ACEOF
29166 #define _LARGE_FILES $ac_cv_sys_large_files
29167 _ACEOF
29168
29169    fi
29170    fi
29171
29172
29173 { echo "$as_me:$LINENO: checking for X" >&5
29174 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29175
29176
29177 # Check whether --with-x was given.
29178 if test "${with_x+set}" = set; then
29179   withval=$with_x;
29180 fi
29181
29182 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29183 if test "x$with_x" = xno; then
29184   # The user explicitly disabled X.
29185   have_x=disabled
29186 else
29187   case $x_includes,$x_libraries in #(
29188     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29189 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29190    { (exit 1); exit 1; }; };; #(
29191     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29192   echo $ECHO_N "(cached) $ECHO_C" >&6
29193 else
29194   # One or both of the vars are not set, and there is no cached value.
29195 ac_x_includes=no ac_x_libraries=no
29196 rm -f -r conftest.dir
29197 if mkdir conftest.dir; then
29198   cd conftest.dir
29199   cat >Imakefile <<'_ACEOF'
29200 incroot:
29201         @echo incroot='${INCROOT}'
29202 usrlibdir:
29203         @echo usrlibdir='${USRLIBDIR}'
29204 libdir:
29205         @echo libdir='${LIBDIR}'
29206 _ACEOF
29207   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29208     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29209     for ac_var in incroot usrlibdir libdir; do
29210       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29211     done
29212     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29213     for ac_extension in a so sl; do
29214       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29215          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29216         ac_im_usrlibdir=$ac_im_libdir; break
29217       fi
29218     done
29219     # Screen out bogus values from the imake configuration.  They are
29220     # bogus both because they are the default anyway, and because
29221     # using them would break gcc on systems where it needs fixed includes.
29222     case $ac_im_incroot in
29223         /usr/include) ac_x_includes= ;;
29224         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29225     esac
29226     case $ac_im_usrlibdir in
29227         /usr/lib | /lib) ;;
29228         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29229     esac
29230   fi
29231   cd ..
29232   rm -f -r conftest.dir
29233 fi
29234
29235 # Standard set of common directories for X headers.
29236 # Check X11 before X11Rn because it is often a symlink to the current release.
29237 ac_x_header_dirs='
29238 /usr/X11/include
29239 /usr/X11R6/include
29240 /usr/X11R5/include
29241 /usr/X11R4/include
29242
29243 /usr/include/X11
29244 /usr/include/X11R6
29245 /usr/include/X11R5
29246 /usr/include/X11R4
29247
29248 /usr/local/X11/include
29249 /usr/local/X11R6/include
29250 /usr/local/X11R5/include
29251 /usr/local/X11R4/include
29252
29253 /usr/local/include/X11
29254 /usr/local/include/X11R6
29255 /usr/local/include/X11R5
29256 /usr/local/include/X11R4
29257
29258 /usr/X386/include
29259 /usr/x386/include
29260 /usr/XFree86/include/X11
29261
29262 /usr/include
29263 /usr/local/include
29264 /usr/unsupported/include
29265 /usr/athena/include
29266 /usr/local/x11r5/include
29267 /usr/lpp/Xamples/include
29268
29269 /usr/openwin/include
29270 /usr/openwin/share/include'
29271
29272 if test "$ac_x_includes" = no; then
29273   # Guess where to find include files, by looking for Xlib.h.
29274   # First, try using that file with no special directory specified.
29275   cat >conftest.$ac_ext <<_ACEOF
29276 /* confdefs.h.  */
29277 _ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h.  */
29281 #include <X11/Xlib.h>
29282 _ACEOF
29283 if { (ac_try="$ac_cpp conftest.$ac_ext"
29284 case "(($ac_try" in
29285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29286   *) ac_try_echo=$ac_try;;
29287 esac
29288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29290   ac_status=$?
29291   grep -v '^ *+' conftest.er1 >conftest.err
29292   rm -f conftest.er1
29293   cat conftest.err >&5
29294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295   (exit $ac_status); } >/dev/null && {
29296          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29297          test ! -s conftest.err
29298        }; then
29299   # We can compile using X headers with no special include directory.
29300 ac_x_includes=
29301 else
29302   echo "$as_me: failed program was:" >&5
29303 sed 's/^/| /' conftest.$ac_ext >&5
29304
29305   for ac_dir in $ac_x_header_dirs; do
29306   if test -r "$ac_dir/X11/Xlib.h"; then
29307     ac_x_includes=$ac_dir
29308     break
29309   fi
29310 done
29311 fi
29312
29313 rm -f conftest.err conftest.$ac_ext
29314 fi # $ac_x_includes = no
29315
29316 if test "$ac_x_libraries" = no; then
29317   # Check for the libraries.
29318   # See if we find them without any special options.
29319   # Don't add to $LIBS permanently.
29320   ac_save_LIBS=$LIBS
29321   LIBS="-lX11 $LIBS"
29322   cat >conftest.$ac_ext <<_ACEOF
29323 /* confdefs.h.  */
29324 _ACEOF
29325 cat confdefs.h >>conftest.$ac_ext
29326 cat >>conftest.$ac_ext <<_ACEOF
29327 /* end confdefs.h.  */
29328 #include <X11/Xlib.h>
29329 int
29330 main ()
29331 {
29332 XrmInitialize ()
29333   ;
29334   return 0;
29335 }
29336 _ACEOF
29337 rm -f conftest.$ac_objext conftest$ac_exeext
29338 if { (ac_try="$ac_link"
29339 case "(($ac_try" in
29340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341   *) ac_try_echo=$ac_try;;
29342 esac
29343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344   (eval "$ac_link") 2>conftest.er1
29345   ac_status=$?
29346   grep -v '^ *+' conftest.er1 >conftest.err
29347   rm -f conftest.er1
29348   cat conftest.err >&5
29349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350   (exit $ac_status); } && {
29351          test -z "$ac_c_werror_flag" ||
29352          test ! -s conftest.err
29353        } && test -s conftest$ac_exeext &&
29354        $as_test_x conftest$ac_exeext; then
29355   LIBS=$ac_save_LIBS
29356 # We can link X programs with no special library path.
29357 ac_x_libraries=
29358 else
29359   echo "$as_me: failed program was:" >&5
29360 sed 's/^/| /' conftest.$ac_ext >&5
29361
29362         LIBS=$ac_save_LIBS
29363 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29364 do
29365   # Don't even attempt the hair of trying to link an X program!
29366   for ac_extension in a so sl; do
29367     if test -r "$ac_dir/libX11.$ac_extension"; then
29368       ac_x_libraries=$ac_dir
29369       break 2
29370     fi
29371   done
29372 done
29373 fi
29374
29375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29376       conftest$ac_exeext conftest.$ac_ext
29377 fi # $ac_x_libraries = no
29378
29379 case $ac_x_includes,$ac_x_libraries in #(
29380   no,* | *,no | *\'*)
29381     # Didn't find X, or a directory has "'" in its name.
29382     ac_cv_have_x="have_x=no";; #(
29383   *)
29384     # Record where we found X for the cache.
29385     ac_cv_have_x="have_x=yes\
29386         ac_x_includes='$ac_x_includes'\
29387         ac_x_libraries='$ac_x_libraries'"
29388 esac
29389 fi
29390 ;; #(
29391     *) have_x=yes;;
29392   esac
29393   eval "$ac_cv_have_x"
29394 fi # $with_x != no
29395
29396 if test "$have_x" != yes; then
29397   { echo "$as_me:$LINENO: result: $have_x" >&5
29398 echo "${ECHO_T}$have_x" >&6; }
29399   no_x=yes
29400 else
29401   # If each of the values was on the command line, it overrides each guess.
29402   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29403   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29404   # Update the cache value to reflect the command line values.
29405   ac_cv_have_x="have_x=yes\
29406         ac_x_includes='$x_includes'\
29407         ac_x_libraries='$x_libraries'"
29408   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29409 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29410 fi
29411
29412 if test "$no_x" = yes; then
29413   # Not all programs may use this symbol, but it does not hurt to define it.
29414
29415 cat >>confdefs.h <<\_ACEOF
29416 #define X_DISPLAY_MISSING 1
29417 _ACEOF
29418
29419   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29420 else
29421   if test -n "$x_includes"; then
29422     X_CFLAGS="$X_CFLAGS -I$x_includes"
29423   fi
29424
29425   # It would also be nice to do this for all -L options, not just this one.
29426   if test -n "$x_libraries"; then
29427     X_LIBS="$X_LIBS -L$x_libraries"
29428     # For Solaris; some versions of Sun CC require a space after -R and
29429     # others require no space.  Words are not sufficient . . . .
29430     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29431 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29432     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29433     ac_xsave_c_werror_flag=$ac_c_werror_flag
29434     ac_c_werror_flag=yes
29435     cat >conftest.$ac_ext <<_ACEOF
29436 /* confdefs.h.  */
29437 _ACEOF
29438 cat confdefs.h >>conftest.$ac_ext
29439 cat >>conftest.$ac_ext <<_ACEOF
29440 /* end confdefs.h.  */
29441
29442 int
29443 main ()
29444 {
29445
29446   ;
29447   return 0;
29448 }
29449 _ACEOF
29450 rm -f conftest.$ac_objext conftest$ac_exeext
29451 if { (ac_try="$ac_link"
29452 case "(($ac_try" in
29453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29454   *) ac_try_echo=$ac_try;;
29455 esac
29456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29457   (eval "$ac_link") 2>conftest.er1
29458   ac_status=$?
29459   grep -v '^ *+' conftest.er1 >conftest.err
29460   rm -f conftest.er1
29461   cat conftest.err >&5
29462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463   (exit $ac_status); } && {
29464          test -z "$ac_c_werror_flag" ||
29465          test ! -s conftest.err
29466        } && test -s conftest$ac_exeext &&
29467        $as_test_x conftest$ac_exeext; then
29468   { echo "$as_me:$LINENO: result: no" >&5
29469 echo "${ECHO_T}no" >&6; }
29470        X_LIBS="$X_LIBS -R$x_libraries"
29471 else
29472   echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29474
29475         LIBS="$ac_xsave_LIBS -R $x_libraries"
29476        cat >conftest.$ac_ext <<_ACEOF
29477 /* confdefs.h.  */
29478 _ACEOF
29479 cat confdefs.h >>conftest.$ac_ext
29480 cat >>conftest.$ac_ext <<_ACEOF
29481 /* end confdefs.h.  */
29482
29483 int
29484 main ()
29485 {
29486
29487   ;
29488   return 0;
29489 }
29490 _ACEOF
29491 rm -f conftest.$ac_objext conftest$ac_exeext
29492 if { (ac_try="$ac_link"
29493 case "(($ac_try" in
29494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495   *) ac_try_echo=$ac_try;;
29496 esac
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498   (eval "$ac_link") 2>conftest.er1
29499   ac_status=$?
29500   grep -v '^ *+' conftest.er1 >conftest.err
29501   rm -f conftest.er1
29502   cat conftest.err >&5
29503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504   (exit $ac_status); } && {
29505          test -z "$ac_c_werror_flag" ||
29506          test ! -s conftest.err
29507        } && test -s conftest$ac_exeext &&
29508        $as_test_x conftest$ac_exeext; then
29509   { echo "$as_me:$LINENO: result: yes" >&5
29510 echo "${ECHO_T}yes" >&6; }
29511           X_LIBS="$X_LIBS -R $x_libraries"
29512 else
29513   echo "$as_me: failed program was:" >&5
29514 sed 's/^/| /' conftest.$ac_ext >&5
29515
29516         { echo "$as_me:$LINENO: result: neither works" >&5
29517 echo "${ECHO_T}neither works" >&6; }
29518 fi
29519
29520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29521       conftest$ac_exeext conftest.$ac_ext
29522 fi
29523
29524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29525       conftest$ac_exeext conftest.$ac_ext
29526     ac_c_werror_flag=$ac_xsave_c_werror_flag
29527     LIBS=$ac_xsave_LIBS
29528   fi
29529
29530   # Check for system-dependent libraries X programs must link with.
29531   # Do this before checking for the system-independent R6 libraries
29532   # (-lICE), since we may need -lsocket or whatever for X linking.
29533
29534   if test "$ISC" = yes; then
29535     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29536   else
29537     # Martyn Johnson says this is needed for Ultrix, if the X
29538     # libraries were built with DECnet support.  And Karl Berry says
29539     # the Alpha needs dnet_stub (dnet does not exist).
29540     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29541     cat >conftest.$ac_ext <<_ACEOF
29542 /* confdefs.h.  */
29543 _ACEOF
29544 cat confdefs.h >>conftest.$ac_ext
29545 cat >>conftest.$ac_ext <<_ACEOF
29546 /* end confdefs.h.  */
29547
29548 /* Override any GCC internal prototype to avoid an error.
29549    Use char because int might match the return type of a GCC
29550    builtin and then its argument prototype would still apply.  */
29551 #ifdef __cplusplus
29552 extern "C"
29553 #endif
29554 char XOpenDisplay ();
29555 int
29556 main ()
29557 {
29558 return XOpenDisplay ();
29559   ;
29560   return 0;
29561 }
29562 _ACEOF
29563 rm -f conftest.$ac_objext conftest$ac_exeext
29564 if { (ac_try="$ac_link"
29565 case "(($ac_try" in
29566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567   *) ac_try_echo=$ac_try;;
29568 esac
29569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29570   (eval "$ac_link") 2>conftest.er1
29571   ac_status=$?
29572   grep -v '^ *+' conftest.er1 >conftest.err
29573   rm -f conftest.er1
29574   cat conftest.err >&5
29575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576   (exit $ac_status); } && {
29577          test -z "$ac_c_werror_flag" ||
29578          test ! -s conftest.err
29579        } && test -s conftest$ac_exeext &&
29580        $as_test_x conftest$ac_exeext; then
29581   :
29582 else
29583   echo "$as_me: failed program was:" >&5
29584 sed 's/^/| /' conftest.$ac_ext >&5
29585
29586         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29587 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29588 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29589   echo $ECHO_N "(cached) $ECHO_C" >&6
29590 else
29591   ac_check_lib_save_LIBS=$LIBS
29592 LIBS="-ldnet  $LIBS"
29593 cat >conftest.$ac_ext <<_ACEOF
29594 /* confdefs.h.  */
29595 _ACEOF
29596 cat confdefs.h >>conftest.$ac_ext
29597 cat >>conftest.$ac_ext <<_ACEOF
29598 /* end confdefs.h.  */
29599
29600 /* Override any GCC internal prototype to avoid an error.
29601    Use char because int might match the return type of a GCC
29602    builtin and then its argument prototype would still apply.  */
29603 #ifdef __cplusplus
29604 extern "C"
29605 #endif
29606 char dnet_ntoa ();
29607 int
29608 main ()
29609 {
29610 return dnet_ntoa ();
29611   ;
29612   return 0;
29613 }
29614 _ACEOF
29615 rm -f conftest.$ac_objext conftest$ac_exeext
29616 if { (ac_try="$ac_link"
29617 case "(($ac_try" in
29618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29619   *) ac_try_echo=$ac_try;;
29620 esac
29621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29622   (eval "$ac_link") 2>conftest.er1
29623   ac_status=$?
29624   grep -v '^ *+' conftest.er1 >conftest.err
29625   rm -f conftest.er1
29626   cat conftest.err >&5
29627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628   (exit $ac_status); } && {
29629          test -z "$ac_c_werror_flag" ||
29630          test ! -s conftest.err
29631        } && test -s conftest$ac_exeext &&
29632        $as_test_x conftest$ac_exeext; then
29633   ac_cv_lib_dnet_dnet_ntoa=yes
29634 else
29635   echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29637
29638         ac_cv_lib_dnet_dnet_ntoa=no
29639 fi
29640
29641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29642       conftest$ac_exeext conftest.$ac_ext
29643 LIBS=$ac_check_lib_save_LIBS
29644 fi
29645 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29646 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29647 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29648   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29649 fi
29650
29651     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29652       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29653 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29654 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29655   echo $ECHO_N "(cached) $ECHO_C" >&6
29656 else
29657   ac_check_lib_save_LIBS=$LIBS
29658 LIBS="-ldnet_stub  $LIBS"
29659 cat >conftest.$ac_ext <<_ACEOF
29660 /* confdefs.h.  */
29661 _ACEOF
29662 cat confdefs.h >>conftest.$ac_ext
29663 cat >>conftest.$ac_ext <<_ACEOF
29664 /* end confdefs.h.  */
29665
29666 /* Override any GCC internal prototype to avoid an error.
29667    Use char because int might match the return type of a GCC
29668    builtin and then its argument prototype would still apply.  */
29669 #ifdef __cplusplus
29670 extern "C"
29671 #endif
29672 char dnet_ntoa ();
29673 int
29674 main ()
29675 {
29676 return dnet_ntoa ();
29677   ;
29678   return 0;
29679 }
29680 _ACEOF
29681 rm -f conftest.$ac_objext conftest$ac_exeext
29682 if { (ac_try="$ac_link"
29683 case "(($ac_try" in
29684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685   *) ac_try_echo=$ac_try;;
29686 esac
29687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688   (eval "$ac_link") 2>conftest.er1
29689   ac_status=$?
29690   grep -v '^ *+' conftest.er1 >conftest.err
29691   rm -f conftest.er1
29692   cat conftest.err >&5
29693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694   (exit $ac_status); } && {
29695          test -z "$ac_c_werror_flag" ||
29696          test ! -s conftest.err
29697        } && test -s conftest$ac_exeext &&
29698        $as_test_x conftest$ac_exeext; then
29699   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29700 else
29701   echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29703
29704         ac_cv_lib_dnet_stub_dnet_ntoa=no
29705 fi
29706
29707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29708       conftest$ac_exeext conftest.$ac_ext
29709 LIBS=$ac_check_lib_save_LIBS
29710 fi
29711 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29712 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29713 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29714   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29715 fi
29716
29717     fi
29718 fi
29719
29720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29721       conftest$ac_exeext conftest.$ac_ext
29722     LIBS="$ac_xsave_LIBS"
29723
29724     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29725     # to get the SysV transport functions.
29726     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29727     # needs -lnsl.
29728     # The nsl library prevents programs from opening the X display
29729     # on Irix 5.2, according to T.E. Dickey.
29730     # The functions gethostbyname, getservbyname, and inet_addr are
29731     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29732     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29733 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29734 if test "${ac_cv_func_gethostbyname+set}" = set; then
29735   echo $ECHO_N "(cached) $ECHO_C" >&6
29736 else
29737   cat >conftest.$ac_ext <<_ACEOF
29738 /* confdefs.h.  */
29739 _ACEOF
29740 cat confdefs.h >>conftest.$ac_ext
29741 cat >>conftest.$ac_ext <<_ACEOF
29742 /* end confdefs.h.  */
29743 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29745 #define gethostbyname innocuous_gethostbyname
29746
29747 /* System header to define __stub macros and hopefully few prototypes,
29748     which can conflict with char gethostbyname (); below.
29749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29750     <limits.h> exists even on freestanding compilers.  */
29751
29752 #ifdef __STDC__
29753 # include <limits.h>
29754 #else
29755 # include <assert.h>
29756 #endif
29757
29758 #undef gethostbyname
29759
29760 /* Override any GCC internal prototype to avoid an error.
29761    Use char because int might match the return type of a GCC
29762    builtin and then its argument prototype would still apply.  */
29763 #ifdef __cplusplus
29764 extern "C"
29765 #endif
29766 char gethostbyname ();
29767 /* The GNU C library defines this for functions which it implements
29768     to always fail with ENOSYS.  Some functions are actually named
29769     something starting with __ and the normal name is an alias.  */
29770 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29771 choke me
29772 #endif
29773
29774 int
29775 main ()
29776 {
29777 return gethostbyname ();
29778   ;
29779   return 0;
29780 }
29781 _ACEOF
29782 rm -f conftest.$ac_objext conftest$ac_exeext
29783 if { (ac_try="$ac_link"
29784 case "(($ac_try" in
29785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29786   *) ac_try_echo=$ac_try;;
29787 esac
29788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29789   (eval "$ac_link") 2>conftest.er1
29790   ac_status=$?
29791   grep -v '^ *+' conftest.er1 >conftest.err
29792   rm -f conftest.er1
29793   cat conftest.err >&5
29794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795   (exit $ac_status); } && {
29796          test -z "$ac_c_werror_flag" ||
29797          test ! -s conftest.err
29798        } && test -s conftest$ac_exeext &&
29799        $as_test_x conftest$ac_exeext; then
29800   ac_cv_func_gethostbyname=yes
29801 else
29802   echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29804
29805         ac_cv_func_gethostbyname=no
29806 fi
29807
29808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29809       conftest$ac_exeext conftest.$ac_ext
29810 fi
29811 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29812 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29813
29814     if test $ac_cv_func_gethostbyname = no; then
29815       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29816 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29817 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29818   echo $ECHO_N "(cached) $ECHO_C" >&6
29819 else
29820   ac_check_lib_save_LIBS=$LIBS
29821 LIBS="-lnsl  $LIBS"
29822 cat >conftest.$ac_ext <<_ACEOF
29823 /* confdefs.h.  */
29824 _ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h.  */
29828
29829 /* Override any GCC internal prototype to avoid an error.
29830    Use char because int might match the return type of a GCC
29831    builtin and then its argument prototype would still apply.  */
29832 #ifdef __cplusplus
29833 extern "C"
29834 #endif
29835 char gethostbyname ();
29836 int
29837 main ()
29838 {
29839 return gethostbyname ();
29840   ;
29841   return 0;
29842 }
29843 _ACEOF
29844 rm -f conftest.$ac_objext conftest$ac_exeext
29845 if { (ac_try="$ac_link"
29846 case "(($ac_try" in
29847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29848   *) ac_try_echo=$ac_try;;
29849 esac
29850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29851   (eval "$ac_link") 2>conftest.er1
29852   ac_status=$?
29853   grep -v '^ *+' conftest.er1 >conftest.err
29854   rm -f conftest.er1
29855   cat conftest.err >&5
29856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857   (exit $ac_status); } && {
29858          test -z "$ac_c_werror_flag" ||
29859          test ! -s conftest.err
29860        } && test -s conftest$ac_exeext &&
29861        $as_test_x conftest$ac_exeext; then
29862   ac_cv_lib_nsl_gethostbyname=yes
29863 else
29864   echo "$as_me: failed program was:" >&5
29865 sed 's/^/| /' conftest.$ac_ext >&5
29866
29867         ac_cv_lib_nsl_gethostbyname=no
29868 fi
29869
29870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29871       conftest$ac_exeext conftest.$ac_ext
29872 LIBS=$ac_check_lib_save_LIBS
29873 fi
29874 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29875 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29876 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29877   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29878 fi
29879
29880       if test $ac_cv_lib_nsl_gethostbyname = no; then
29881         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29882 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29883 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29884   echo $ECHO_N "(cached) $ECHO_C" >&6
29885 else
29886   ac_check_lib_save_LIBS=$LIBS
29887 LIBS="-lbsd  $LIBS"
29888 cat >conftest.$ac_ext <<_ACEOF
29889 /* confdefs.h.  */
29890 _ACEOF
29891 cat confdefs.h >>conftest.$ac_ext
29892 cat >>conftest.$ac_ext <<_ACEOF
29893 /* end confdefs.h.  */
29894
29895 /* Override any GCC internal prototype to avoid an error.
29896    Use char because int might match the return type of a GCC
29897    builtin and then its argument prototype would still apply.  */
29898 #ifdef __cplusplus
29899 extern "C"
29900 #endif
29901 char gethostbyname ();
29902 int
29903 main ()
29904 {
29905 return gethostbyname ();
29906   ;
29907   return 0;
29908 }
29909 _ACEOF
29910 rm -f conftest.$ac_objext conftest$ac_exeext
29911 if { (ac_try="$ac_link"
29912 case "(($ac_try" in
29913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29914   *) ac_try_echo=$ac_try;;
29915 esac
29916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29917   (eval "$ac_link") 2>conftest.er1
29918   ac_status=$?
29919   grep -v '^ *+' conftest.er1 >conftest.err
29920   rm -f conftest.er1
29921   cat conftest.err >&5
29922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923   (exit $ac_status); } && {
29924          test -z "$ac_c_werror_flag" ||
29925          test ! -s conftest.err
29926        } && test -s conftest$ac_exeext &&
29927        $as_test_x conftest$ac_exeext; then
29928   ac_cv_lib_bsd_gethostbyname=yes
29929 else
29930   echo "$as_me: failed program was:" >&5
29931 sed 's/^/| /' conftest.$ac_ext >&5
29932
29933         ac_cv_lib_bsd_gethostbyname=no
29934 fi
29935
29936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29937       conftest$ac_exeext conftest.$ac_ext
29938 LIBS=$ac_check_lib_save_LIBS
29939 fi
29940 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29941 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29942 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29943   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29944 fi
29945
29946       fi
29947     fi
29948
29949     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29950     # socket/setsockopt and other routines are undefined under SCO ODT
29951     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29952     # on later versions), says Simon Leinen: it contains gethostby*
29953     # variants that don't use the name server (or something).  -lsocket
29954     # must be given before -lnsl if both are needed.  We assume that
29955     # if connect needs -lnsl, so does gethostbyname.
29956     { echo "$as_me:$LINENO: checking for connect" >&5
29957 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29958 if test "${ac_cv_func_connect+set}" = set; then
29959   echo $ECHO_N "(cached) $ECHO_C" >&6
29960 else
29961   cat >conftest.$ac_ext <<_ACEOF
29962 /* confdefs.h.  */
29963 _ACEOF
29964 cat confdefs.h >>conftest.$ac_ext
29965 cat >>conftest.$ac_ext <<_ACEOF
29966 /* end confdefs.h.  */
29967 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29969 #define connect innocuous_connect
29970
29971 /* System header to define __stub macros and hopefully few prototypes,
29972     which can conflict with char connect (); below.
29973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29974     <limits.h> exists even on freestanding compilers.  */
29975
29976 #ifdef __STDC__
29977 # include <limits.h>
29978 #else
29979 # include <assert.h>
29980 #endif
29981
29982 #undef connect
29983
29984 /* Override any GCC internal prototype to avoid an error.
29985    Use char because int might match the return type of a GCC
29986    builtin and then its argument prototype would still apply.  */
29987 #ifdef __cplusplus
29988 extern "C"
29989 #endif
29990 char connect ();
29991 /* The GNU C library defines this for functions which it implements
29992     to always fail with ENOSYS.  Some functions are actually named
29993     something starting with __ and the normal name is an alias.  */
29994 #if defined __stub_connect || defined __stub___connect
29995 choke me
29996 #endif
29997
29998 int
29999 main ()
30000 {
30001 return connect ();
30002   ;
30003   return 0;
30004 }
30005 _ACEOF
30006 rm -f conftest.$ac_objext conftest$ac_exeext
30007 if { (ac_try="$ac_link"
30008 case "(($ac_try" in
30009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30010   *) ac_try_echo=$ac_try;;
30011 esac
30012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30013   (eval "$ac_link") 2>conftest.er1
30014   ac_status=$?
30015   grep -v '^ *+' conftest.er1 >conftest.err
30016   rm -f conftest.er1
30017   cat conftest.err >&5
30018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019   (exit $ac_status); } && {
30020          test -z "$ac_c_werror_flag" ||
30021          test ! -s conftest.err
30022        } && test -s conftest$ac_exeext &&
30023        $as_test_x conftest$ac_exeext; then
30024   ac_cv_func_connect=yes
30025 else
30026   echo "$as_me: failed program was:" >&5
30027 sed 's/^/| /' conftest.$ac_ext >&5
30028
30029         ac_cv_func_connect=no
30030 fi
30031
30032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30033       conftest$ac_exeext conftest.$ac_ext
30034 fi
30035 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30036 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30037
30038     if test $ac_cv_func_connect = no; then
30039       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30040 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30041 if test "${ac_cv_lib_socket_connect+set}" = set; then
30042   echo $ECHO_N "(cached) $ECHO_C" >&6
30043 else
30044   ac_check_lib_save_LIBS=$LIBS
30045 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30046 cat >conftest.$ac_ext <<_ACEOF
30047 /* confdefs.h.  */
30048 _ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h.  */
30052
30053 /* Override any GCC internal prototype to avoid an error.
30054    Use char because int might match the return type of a GCC
30055    builtin and then its argument prototype would still apply.  */
30056 #ifdef __cplusplus
30057 extern "C"
30058 #endif
30059 char connect ();
30060 int
30061 main ()
30062 {
30063 return connect ();
30064   ;
30065   return 0;
30066 }
30067 _ACEOF
30068 rm -f conftest.$ac_objext conftest$ac_exeext
30069 if { (ac_try="$ac_link"
30070 case "(($ac_try" in
30071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072   *) ac_try_echo=$ac_try;;
30073 esac
30074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30075   (eval "$ac_link") 2>conftest.er1
30076   ac_status=$?
30077   grep -v '^ *+' conftest.er1 >conftest.err
30078   rm -f conftest.er1
30079   cat conftest.err >&5
30080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081   (exit $ac_status); } && {
30082          test -z "$ac_c_werror_flag" ||
30083          test ! -s conftest.err
30084        } && test -s conftest$ac_exeext &&
30085        $as_test_x conftest$ac_exeext; then
30086   ac_cv_lib_socket_connect=yes
30087 else
30088   echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.$ac_ext >&5
30090
30091         ac_cv_lib_socket_connect=no
30092 fi
30093
30094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30095       conftest$ac_exeext conftest.$ac_ext
30096 LIBS=$ac_check_lib_save_LIBS
30097 fi
30098 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30099 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30100 if test $ac_cv_lib_socket_connect = yes; then
30101   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30102 fi
30103
30104     fi
30105
30106     # Guillermo Gomez says -lposix is necessary on A/UX.
30107     { echo "$as_me:$LINENO: checking for remove" >&5
30108 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30109 if test "${ac_cv_func_remove+set}" = set; then
30110   echo $ECHO_N "(cached) $ECHO_C" >&6
30111 else
30112   cat >conftest.$ac_ext <<_ACEOF
30113 /* confdefs.h.  */
30114 _ACEOF
30115 cat confdefs.h >>conftest.$ac_ext
30116 cat >>conftest.$ac_ext <<_ACEOF
30117 /* end confdefs.h.  */
30118 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30120 #define remove innocuous_remove
30121
30122 /* System header to define __stub macros and hopefully few prototypes,
30123     which can conflict with char remove (); below.
30124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30125     <limits.h> exists even on freestanding compilers.  */
30126
30127 #ifdef __STDC__
30128 # include <limits.h>
30129 #else
30130 # include <assert.h>
30131 #endif
30132
30133 #undef remove
30134
30135 /* Override any GCC internal prototype to avoid an error.
30136    Use char because int might match the return type of a GCC
30137    builtin and then its argument prototype would still apply.  */
30138 #ifdef __cplusplus
30139 extern "C"
30140 #endif
30141 char remove ();
30142 /* The GNU C library defines this for functions which it implements
30143     to always fail with ENOSYS.  Some functions are actually named
30144     something starting with __ and the normal name is an alias.  */
30145 #if defined __stub_remove || defined __stub___remove
30146 choke me
30147 #endif
30148
30149 int
30150 main ()
30151 {
30152 return remove ();
30153   ;
30154   return 0;
30155 }
30156 _ACEOF
30157 rm -f conftest.$ac_objext conftest$ac_exeext
30158 if { (ac_try="$ac_link"
30159 case "(($ac_try" in
30160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30161   *) ac_try_echo=$ac_try;;
30162 esac
30163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30164   (eval "$ac_link") 2>conftest.er1
30165   ac_status=$?
30166   grep -v '^ *+' conftest.er1 >conftest.err
30167   rm -f conftest.er1
30168   cat conftest.err >&5
30169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170   (exit $ac_status); } && {
30171          test -z "$ac_c_werror_flag" ||
30172          test ! -s conftest.err
30173        } && test -s conftest$ac_exeext &&
30174        $as_test_x conftest$ac_exeext; then
30175   ac_cv_func_remove=yes
30176 else
30177   echo "$as_me: failed program was:" >&5
30178 sed 's/^/| /' conftest.$ac_ext >&5
30179
30180         ac_cv_func_remove=no
30181 fi
30182
30183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30184       conftest$ac_exeext conftest.$ac_ext
30185 fi
30186 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30187 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30188
30189     if test $ac_cv_func_remove = no; then
30190       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30191 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30192 if test "${ac_cv_lib_posix_remove+set}" = set; then
30193   echo $ECHO_N "(cached) $ECHO_C" >&6
30194 else
30195   ac_check_lib_save_LIBS=$LIBS
30196 LIBS="-lposix  $LIBS"
30197 cat >conftest.$ac_ext <<_ACEOF
30198 /* confdefs.h.  */
30199 _ACEOF
30200 cat confdefs.h >>conftest.$ac_ext
30201 cat >>conftest.$ac_ext <<_ACEOF
30202 /* end confdefs.h.  */
30203
30204 /* Override any GCC internal prototype to avoid an error.
30205    Use char because int might match the return type of a GCC
30206    builtin and then its argument prototype would still apply.  */
30207 #ifdef __cplusplus
30208 extern "C"
30209 #endif
30210 char remove ();
30211 int
30212 main ()
30213 {
30214 return remove ();
30215   ;
30216   return 0;
30217 }
30218 _ACEOF
30219 rm -f conftest.$ac_objext conftest$ac_exeext
30220 if { (ac_try="$ac_link"
30221 case "(($ac_try" in
30222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30223   *) ac_try_echo=$ac_try;;
30224 esac
30225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30226   (eval "$ac_link") 2>conftest.er1
30227   ac_status=$?
30228   grep -v '^ *+' conftest.er1 >conftest.err
30229   rm -f conftest.er1
30230   cat conftest.err >&5
30231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232   (exit $ac_status); } && {
30233          test -z "$ac_c_werror_flag" ||
30234          test ! -s conftest.err
30235        } && test -s conftest$ac_exeext &&
30236        $as_test_x conftest$ac_exeext; then
30237   ac_cv_lib_posix_remove=yes
30238 else
30239   echo "$as_me: failed program was:" >&5
30240 sed 's/^/| /' conftest.$ac_ext >&5
30241
30242         ac_cv_lib_posix_remove=no
30243 fi
30244
30245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30246       conftest$ac_exeext conftest.$ac_ext
30247 LIBS=$ac_check_lib_save_LIBS
30248 fi
30249 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30250 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30251 if test $ac_cv_lib_posix_remove = yes; then
30252   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30253 fi
30254
30255     fi
30256
30257     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30258     { echo "$as_me:$LINENO: checking for shmat" >&5
30259 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30260 if test "${ac_cv_func_shmat+set}" = set; then
30261   echo $ECHO_N "(cached) $ECHO_C" >&6
30262 else
30263   cat >conftest.$ac_ext <<_ACEOF
30264 /* confdefs.h.  */
30265 _ACEOF
30266 cat confdefs.h >>conftest.$ac_ext
30267 cat >>conftest.$ac_ext <<_ACEOF
30268 /* end confdefs.h.  */
30269 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30271 #define shmat innocuous_shmat
30272
30273 /* System header to define __stub macros and hopefully few prototypes,
30274     which can conflict with char shmat (); below.
30275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30276     <limits.h> exists even on freestanding compilers.  */
30277
30278 #ifdef __STDC__
30279 # include <limits.h>
30280 #else
30281 # include <assert.h>
30282 #endif
30283
30284 #undef shmat
30285
30286 /* Override any GCC internal prototype to avoid an error.
30287    Use char because int might match the return type of a GCC
30288    builtin and then its argument prototype would still apply.  */
30289 #ifdef __cplusplus
30290 extern "C"
30291 #endif
30292 char shmat ();
30293 /* The GNU C library defines this for functions which it implements
30294     to always fail with ENOSYS.  Some functions are actually named
30295     something starting with __ and the normal name is an alias.  */
30296 #if defined __stub_shmat || defined __stub___shmat
30297 choke me
30298 #endif
30299
30300 int
30301 main ()
30302 {
30303 return shmat ();
30304   ;
30305   return 0;
30306 }
30307 _ACEOF
30308 rm -f conftest.$ac_objext conftest$ac_exeext
30309 if { (ac_try="$ac_link"
30310 case "(($ac_try" in
30311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30312   *) ac_try_echo=$ac_try;;
30313 esac
30314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30315   (eval "$ac_link") 2>conftest.er1
30316   ac_status=$?
30317   grep -v '^ *+' conftest.er1 >conftest.err
30318   rm -f conftest.er1
30319   cat conftest.err >&5
30320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321   (exit $ac_status); } && {
30322          test -z "$ac_c_werror_flag" ||
30323          test ! -s conftest.err
30324        } && test -s conftest$ac_exeext &&
30325        $as_test_x conftest$ac_exeext; then
30326   ac_cv_func_shmat=yes
30327 else
30328   echo "$as_me: failed program was:" >&5
30329 sed 's/^/| /' conftest.$ac_ext >&5
30330
30331         ac_cv_func_shmat=no
30332 fi
30333
30334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30335       conftest$ac_exeext conftest.$ac_ext
30336 fi
30337 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30338 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30339
30340     if test $ac_cv_func_shmat = no; then
30341       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30342 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30343 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30344   echo $ECHO_N "(cached) $ECHO_C" >&6
30345 else
30346   ac_check_lib_save_LIBS=$LIBS
30347 LIBS="-lipc  $LIBS"
30348 cat >conftest.$ac_ext <<_ACEOF
30349 /* confdefs.h.  */
30350 _ACEOF
30351 cat confdefs.h >>conftest.$ac_ext
30352 cat >>conftest.$ac_ext <<_ACEOF
30353 /* end confdefs.h.  */
30354
30355 /* Override any GCC internal prototype to avoid an error.
30356    Use char because int might match the return type of a GCC
30357    builtin and then its argument prototype would still apply.  */
30358 #ifdef __cplusplus
30359 extern "C"
30360 #endif
30361 char shmat ();
30362 int
30363 main ()
30364 {
30365 return shmat ();
30366   ;
30367   return 0;
30368 }
30369 _ACEOF
30370 rm -f conftest.$ac_objext conftest$ac_exeext
30371 if { (ac_try="$ac_link"
30372 case "(($ac_try" in
30373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30374   *) ac_try_echo=$ac_try;;
30375 esac
30376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30377   (eval "$ac_link") 2>conftest.er1
30378   ac_status=$?
30379   grep -v '^ *+' conftest.er1 >conftest.err
30380   rm -f conftest.er1
30381   cat conftest.err >&5
30382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383   (exit $ac_status); } && {
30384          test -z "$ac_c_werror_flag" ||
30385          test ! -s conftest.err
30386        } && test -s conftest$ac_exeext &&
30387        $as_test_x conftest$ac_exeext; then
30388   ac_cv_lib_ipc_shmat=yes
30389 else
30390   echo "$as_me: failed program was:" >&5
30391 sed 's/^/| /' conftest.$ac_ext >&5
30392
30393         ac_cv_lib_ipc_shmat=no
30394 fi
30395
30396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30397       conftest$ac_exeext conftest.$ac_ext
30398 LIBS=$ac_check_lib_save_LIBS
30399 fi
30400 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30401 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30402 if test $ac_cv_lib_ipc_shmat = yes; then
30403   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30404 fi
30405
30406     fi
30407   fi
30408
30409   # Check for libraries that X11R6 Xt/Xaw programs need.
30410   ac_save_LDFLAGS=$LDFLAGS
30411   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30412   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30413   # check for ICE first), but we must link in the order -lSM -lICE or
30414   # we get undefined symbols.  So assume we have SM if we have ICE.
30415   # These have to be linked with before -lX11, unlike the other
30416   # libraries we check for below, so use a different variable.
30417   # John Interrante, Karl Berry
30418   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30419 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30420 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30421   echo $ECHO_N "(cached) $ECHO_C" >&6
30422 else
30423   ac_check_lib_save_LIBS=$LIBS
30424 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30425 cat >conftest.$ac_ext <<_ACEOF
30426 /* confdefs.h.  */
30427 _ACEOF
30428 cat confdefs.h >>conftest.$ac_ext
30429 cat >>conftest.$ac_ext <<_ACEOF
30430 /* end confdefs.h.  */
30431
30432 /* Override any GCC internal prototype to avoid an error.
30433    Use char because int might match the return type of a GCC
30434    builtin and then its argument prototype would still apply.  */
30435 #ifdef __cplusplus
30436 extern "C"
30437 #endif
30438 char IceConnectionNumber ();
30439 int
30440 main ()
30441 {
30442 return IceConnectionNumber ();
30443   ;
30444   return 0;
30445 }
30446 _ACEOF
30447 rm -f conftest.$ac_objext conftest$ac_exeext
30448 if { (ac_try="$ac_link"
30449 case "(($ac_try" in
30450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30451   *) ac_try_echo=$ac_try;;
30452 esac
30453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30454   (eval "$ac_link") 2>conftest.er1
30455   ac_status=$?
30456   grep -v '^ *+' conftest.er1 >conftest.err
30457   rm -f conftest.er1
30458   cat conftest.err >&5
30459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460   (exit $ac_status); } && {
30461          test -z "$ac_c_werror_flag" ||
30462          test ! -s conftest.err
30463        } && test -s conftest$ac_exeext &&
30464        $as_test_x conftest$ac_exeext; then
30465   ac_cv_lib_ICE_IceConnectionNumber=yes
30466 else
30467   echo "$as_me: failed program was:" >&5
30468 sed 's/^/| /' conftest.$ac_ext >&5
30469
30470         ac_cv_lib_ICE_IceConnectionNumber=no
30471 fi
30472
30473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30474       conftest$ac_exeext conftest.$ac_ext
30475 LIBS=$ac_check_lib_save_LIBS
30476 fi
30477 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30478 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30479 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30480   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30481 fi
30482
30483   LDFLAGS=$ac_save_LDFLAGS
30484
30485 fi
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518 for ac_header in \
30519    assert.h \
30520    fcntl.h \
30521    grp.h \
30522    pwd.h \
30523    libc.h \
30524    limits.h \
30525    stdarg.h \
30526    stdlib.h \
30527    stdint.h \
30528    string.h \
30529    strings.h \
30530    termios.h \
30531    termcap.h \
30532    term.h \
30533    unistd.h \
30534    sys/bitypes.h \
30535    sys/byteorder.h \
30536    sys/ioctl.h \
30537    sys/select.h \
30538    sys/socket.h \
30539    sys/sockio.h \
30540    sys/stat.h \
30541    sys/time.h \
30542    sys/types.h \
30543    arpa/nameser.h \
30544    resolv.h \
30545    mtio.h \
30546    sys/mtio.h \
30547    sys/tape.h \
30548    regex.h \
30549
30550 do
30551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30553   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30556   echo $ECHO_N "(cached) $ECHO_C" >&6
30557 fi
30558 ac_res=`eval echo '${'$as_ac_Header'}'`
30559                { echo "$as_me:$LINENO: result: $ac_res" >&5
30560 echo "${ECHO_T}$ac_res" >&6; }
30561 else
30562   # Is the header compilable?
30563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30565 cat >conftest.$ac_ext <<_ACEOF
30566 /* confdefs.h.  */
30567 _ACEOF
30568 cat confdefs.h >>conftest.$ac_ext
30569 cat >>conftest.$ac_ext <<_ACEOF
30570 /* end confdefs.h.  */
30571 $ac_includes_default
30572 #include <$ac_header>
30573 _ACEOF
30574 rm -f conftest.$ac_objext
30575 if { (ac_try="$ac_compile"
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_compile") 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); } && {
30588          test -z "$ac_c_werror_flag" ||
30589          test ! -s conftest.err
30590        } && test -s conftest.$ac_objext; then
30591   ac_header_compiler=yes
30592 else
30593   echo "$as_me: failed program was:" >&5
30594 sed 's/^/| /' conftest.$ac_ext >&5
30595
30596         ac_header_compiler=no
30597 fi
30598
30599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30601 echo "${ECHO_T}$ac_header_compiler" >&6; }
30602
30603 # Is the header present?
30604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30606 cat >conftest.$ac_ext <<_ACEOF
30607 /* confdefs.h.  */
30608 _ACEOF
30609 cat confdefs.h >>conftest.$ac_ext
30610 cat >>conftest.$ac_ext <<_ACEOF
30611 /* end confdefs.h.  */
30612 #include <$ac_header>
30613 _ACEOF
30614 if { (ac_try="$ac_cpp conftest.$ac_ext"
30615 case "(($ac_try" in
30616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30617   *) ac_try_echo=$ac_try;;
30618 esac
30619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30621   ac_status=$?
30622   grep -v '^ *+' conftest.er1 >conftest.err
30623   rm -f conftest.er1
30624   cat conftest.err >&5
30625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626   (exit $ac_status); } >/dev/null && {
30627          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30628          test ! -s conftest.err
30629        }; then
30630   ac_header_preproc=yes
30631 else
30632   echo "$as_me: failed program was:" >&5
30633 sed 's/^/| /' conftest.$ac_ext >&5
30634
30635   ac_header_preproc=no
30636 fi
30637
30638 rm -f conftest.err conftest.$ac_ext
30639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30640 echo "${ECHO_T}$ac_header_preproc" >&6; }
30641
30642 # So?  What about this header?
30643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30644   yes:no: )
30645     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30649     ac_header_preproc=yes
30650     ;;
30651   no:yes:* )
30652     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30654     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30655 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30656     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30658     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30659 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30662     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30664
30665     ;;
30666 esac
30667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30670   echo $ECHO_N "(cached) $ECHO_C" >&6
30671 else
30672   eval "$as_ac_Header=\$ac_header_preproc"
30673 fi
30674 ac_res=`eval echo '${'$as_ac_Header'}'`
30675                { echo "$as_me:$LINENO: result: $ac_res" >&5
30676 echo "${ECHO_T}$ac_res" >&6; }
30677
30678 fi
30679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30680   cat >>confdefs.h <<_ACEOF
30681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30682 _ACEOF
30683
30684 fi
30685
30686 done
30687
30688 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30689 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30690 if test "${ac_cv_header_stdc+set}" = set; then
30691   echo $ECHO_N "(cached) $ECHO_C" >&6
30692 else
30693   cat >conftest.$ac_ext <<_ACEOF
30694 /* confdefs.h.  */
30695 _ACEOF
30696 cat confdefs.h >>conftest.$ac_ext
30697 cat >>conftest.$ac_ext <<_ACEOF
30698 /* end confdefs.h.  */
30699 #include <stdlib.h>
30700 #include <stdarg.h>
30701 #include <string.h>
30702 #include <float.h>
30703
30704 int
30705 main ()
30706 {
30707
30708   ;
30709   return 0;
30710 }
30711 _ACEOF
30712 rm -f conftest.$ac_objext
30713 if { (ac_try="$ac_compile"
30714 case "(($ac_try" in
30715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30716   *) ac_try_echo=$ac_try;;
30717 esac
30718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30719   (eval "$ac_compile") 2>conftest.er1
30720   ac_status=$?
30721   grep -v '^ *+' conftest.er1 >conftest.err
30722   rm -f conftest.er1
30723   cat conftest.err >&5
30724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725   (exit $ac_status); } && {
30726          test -z "$ac_c_werror_flag" ||
30727          test ! -s conftest.err
30728        } && test -s conftest.$ac_objext; then
30729   ac_cv_header_stdc=yes
30730 else
30731   echo "$as_me: failed program was:" >&5
30732 sed 's/^/| /' conftest.$ac_ext >&5
30733
30734         ac_cv_header_stdc=no
30735 fi
30736
30737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30738
30739 if test $ac_cv_header_stdc = yes; then
30740   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30741   cat >conftest.$ac_ext <<_ACEOF
30742 /* confdefs.h.  */
30743 _ACEOF
30744 cat confdefs.h >>conftest.$ac_ext
30745 cat >>conftest.$ac_ext <<_ACEOF
30746 /* end confdefs.h.  */
30747 #include <string.h>
30748
30749 _ACEOF
30750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30751   $EGREP "memchr" >/dev/null 2>&1; then
30752   :
30753 else
30754   ac_cv_header_stdc=no
30755 fi
30756 rm -f conftest*
30757
30758 fi
30759
30760 if test $ac_cv_header_stdc = yes; then
30761   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30762   cat >conftest.$ac_ext <<_ACEOF
30763 /* confdefs.h.  */
30764 _ACEOF
30765 cat confdefs.h >>conftest.$ac_ext
30766 cat >>conftest.$ac_ext <<_ACEOF
30767 /* end confdefs.h.  */
30768 #include <stdlib.h>
30769
30770 _ACEOF
30771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30772   $EGREP "free" >/dev/null 2>&1; then
30773   :
30774 else
30775   ac_cv_header_stdc=no
30776 fi
30777 rm -f conftest*
30778
30779 fi
30780
30781 if test $ac_cv_header_stdc = yes; then
30782   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30783   if test "$cross_compiling" = yes; then
30784   :
30785 else
30786   cat >conftest.$ac_ext <<_ACEOF
30787 /* confdefs.h.  */
30788 _ACEOF
30789 cat confdefs.h >>conftest.$ac_ext
30790 cat >>conftest.$ac_ext <<_ACEOF
30791 /* end confdefs.h.  */
30792 #include <ctype.h>
30793 #include <stdlib.h>
30794 #if ((' ' & 0x0FF) == 0x020)
30795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30797 #else
30798 # define ISLOWER(c) \
30799                    (('a' <= (c) && (c) <= 'i') \
30800                      || ('j' <= (c) && (c) <= 'r') \
30801                      || ('s' <= (c) && (c) <= 'z'))
30802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30803 #endif
30804
30805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30806 int
30807 main ()
30808 {
30809   int i;
30810   for (i = 0; i < 256; i++)
30811     if (XOR (islower (i), ISLOWER (i))
30812         || toupper (i) != TOUPPER (i))
30813       return 2;
30814   return 0;
30815 }
30816 _ACEOF
30817 rm -f conftest$ac_exeext
30818 if { (ac_try="$ac_link"
30819 case "(($ac_try" in
30820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821   *) ac_try_echo=$ac_try;;
30822 esac
30823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30824   (eval "$ac_link") 2>&5
30825   ac_status=$?
30826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30828   { (case "(($ac_try" in
30829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30830   *) ac_try_echo=$ac_try;;
30831 esac
30832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30833   (eval "$ac_try") 2>&5
30834   ac_status=$?
30835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836   (exit $ac_status); }; }; then
30837   :
30838 else
30839   echo "$as_me: program exited with status $ac_status" >&5
30840 echo "$as_me: failed program was:" >&5
30841 sed 's/^/| /' conftest.$ac_ext >&5
30842
30843 ( exit $ac_status )
30844 ac_cv_header_stdc=no
30845 fi
30846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30847 fi
30848
30849
30850 fi
30851 fi
30852 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30853 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30854 if test $ac_cv_header_stdc = yes; then
30855
30856 cat >>confdefs.h <<\_ACEOF
30857 #define STDC_HEADERS 1
30858 _ACEOF
30859
30860 fi
30861
30862 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30863 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30864 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30865   echo $ECHO_N "(cached) $ECHO_C" >&6
30866 else
30867   cat >conftest.$ac_ext <<_ACEOF
30868 /* confdefs.h.  */
30869 _ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h.  */
30873 #include <sys/types.h>
30874 int
30875 main ()
30876 {
30877 return makedev(0, 0);
30878   ;
30879   return 0;
30880 }
30881 _ACEOF
30882 rm -f conftest.$ac_objext conftest$ac_exeext
30883 if { (ac_try="$ac_link"
30884 case "(($ac_try" in
30885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30886   *) ac_try_echo=$ac_try;;
30887 esac
30888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30889   (eval "$ac_link") 2>conftest.er1
30890   ac_status=$?
30891   grep -v '^ *+' conftest.er1 >conftest.err
30892   rm -f conftest.er1
30893   cat conftest.err >&5
30894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895   (exit $ac_status); } && {
30896          test -z "$ac_c_werror_flag" ||
30897          test ! -s conftest.err
30898        } && test -s conftest$ac_exeext &&
30899        $as_test_x conftest$ac_exeext; then
30900   ac_cv_header_sys_types_h_makedev=yes
30901 else
30902   echo "$as_me: failed program was:" >&5
30903 sed 's/^/| /' conftest.$ac_ext >&5
30904
30905         ac_cv_header_sys_types_h_makedev=no
30906 fi
30907
30908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30909       conftest$ac_exeext conftest.$ac_ext
30910
30911 fi
30912 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30913 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30914
30915 if test $ac_cv_header_sys_types_h_makedev = no; then
30916 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30917   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30918 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30919 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30920   echo $ECHO_N "(cached) $ECHO_C" >&6
30921 fi
30922 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30923 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30924 else
30925   # Is the header compilable?
30926 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30927 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30928 cat >conftest.$ac_ext <<_ACEOF
30929 /* confdefs.h.  */
30930 _ACEOF
30931 cat confdefs.h >>conftest.$ac_ext
30932 cat >>conftest.$ac_ext <<_ACEOF
30933 /* end confdefs.h.  */
30934 $ac_includes_default
30935 #include <sys/mkdev.h>
30936 _ACEOF
30937 rm -f conftest.$ac_objext
30938 if { (ac_try="$ac_compile"
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_compile") 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); } && {
30951          test -z "$ac_c_werror_flag" ||
30952          test ! -s conftest.err
30953        } && test -s conftest.$ac_objext; then
30954   ac_header_compiler=yes
30955 else
30956   echo "$as_me: failed program was:" >&5
30957 sed 's/^/| /' conftest.$ac_ext >&5
30958
30959         ac_header_compiler=no
30960 fi
30961
30962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30964 echo "${ECHO_T}$ac_header_compiler" >&6; }
30965
30966 # Is the header present?
30967 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30968 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30969 cat >conftest.$ac_ext <<_ACEOF
30970 /* confdefs.h.  */
30971 _ACEOF
30972 cat confdefs.h >>conftest.$ac_ext
30973 cat >>conftest.$ac_ext <<_ACEOF
30974 /* end confdefs.h.  */
30975 #include <sys/mkdev.h>
30976 _ACEOF
30977 if { (ac_try="$ac_cpp conftest.$ac_ext"
30978 case "(($ac_try" in
30979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980   *) ac_try_echo=$ac_try;;
30981 esac
30982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30984   ac_status=$?
30985   grep -v '^ *+' conftest.er1 >conftest.err
30986   rm -f conftest.er1
30987   cat conftest.err >&5
30988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989   (exit $ac_status); } >/dev/null && {
30990          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30991          test ! -s conftest.err
30992        }; then
30993   ac_header_preproc=yes
30994 else
30995   echo "$as_me: failed program was:" >&5
30996 sed 's/^/| /' conftest.$ac_ext >&5
30997
30998   ac_header_preproc=no
30999 fi
31000
31001 rm -f conftest.err conftest.$ac_ext
31002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31003 echo "${ECHO_T}$ac_header_preproc" >&6; }
31004
31005 # So?  What about this header?
31006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31007   yes:no: )
31008     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31009 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31010     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31011 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31012     ac_header_preproc=yes
31013     ;;
31014   no:yes:* )
31015     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31016 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31017     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31018 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31019     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31020 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31021     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31022 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31023     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31024 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31025     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31026 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31027
31028     ;;
31029 esac
31030 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31031 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31032 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31033   echo $ECHO_N "(cached) $ECHO_C" >&6
31034 else
31035   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31036 fi
31037 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31038 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31039
31040 fi
31041 if test $ac_cv_header_sys_mkdev_h = yes; then
31042
31043 cat >>confdefs.h <<\_ACEOF
31044 #define MAJOR_IN_MKDEV 1
31045 _ACEOF
31046
31047 fi
31048
31049
31050
31051   if test $ac_cv_header_sys_mkdev_h = no; then
31052     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31053   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31054 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31055 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31056   echo $ECHO_N "(cached) $ECHO_C" >&6
31057 fi
31058 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31059 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31060 else
31061   # Is the header compilable?
31062 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31063 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31064 cat >conftest.$ac_ext <<_ACEOF
31065 /* confdefs.h.  */
31066 _ACEOF
31067 cat confdefs.h >>conftest.$ac_ext
31068 cat >>conftest.$ac_ext <<_ACEOF
31069 /* end confdefs.h.  */
31070 $ac_includes_default
31071 #include <sys/sysmacros.h>
31072 _ACEOF
31073 rm -f conftest.$ac_objext
31074 if { (ac_try="$ac_compile"
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_compile") 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); } && {
31087          test -z "$ac_c_werror_flag" ||
31088          test ! -s conftest.err
31089        } && test -s conftest.$ac_objext; then
31090   ac_header_compiler=yes
31091 else
31092   echo "$as_me: failed program was:" >&5
31093 sed 's/^/| /' conftest.$ac_ext >&5
31094
31095         ac_header_compiler=no
31096 fi
31097
31098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31100 echo "${ECHO_T}$ac_header_compiler" >&6; }
31101
31102 # Is the header present?
31103 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31104 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31105 cat >conftest.$ac_ext <<_ACEOF
31106 /* confdefs.h.  */
31107 _ACEOF
31108 cat confdefs.h >>conftest.$ac_ext
31109 cat >>conftest.$ac_ext <<_ACEOF
31110 /* end confdefs.h.  */
31111 #include <sys/sysmacros.h>
31112 _ACEOF
31113 if { (ac_try="$ac_cpp conftest.$ac_ext"
31114 case "(($ac_try" in
31115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31116   *) ac_try_echo=$ac_try;;
31117 esac
31118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31119   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31120   ac_status=$?
31121   grep -v '^ *+' conftest.er1 >conftest.err
31122   rm -f conftest.er1
31123   cat conftest.err >&5
31124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125   (exit $ac_status); } >/dev/null && {
31126          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31127          test ! -s conftest.err
31128        }; then
31129   ac_header_preproc=yes
31130 else
31131   echo "$as_me: failed program was:" >&5
31132 sed 's/^/| /' conftest.$ac_ext >&5
31133
31134   ac_header_preproc=no
31135 fi
31136
31137 rm -f conftest.err conftest.$ac_ext
31138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31139 echo "${ECHO_T}$ac_header_preproc" >&6; }
31140
31141 # So?  What about this header?
31142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31143   yes:no: )
31144     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31145 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31146     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31147 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31148     ac_header_preproc=yes
31149     ;;
31150   no:yes:* )
31151     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31152 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31153     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31154 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31155     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31156 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31157     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31158 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31159     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31160 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31161     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31162 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31163
31164     ;;
31165 esac
31166 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31167 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31168 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31169   echo $ECHO_N "(cached) $ECHO_C" >&6
31170 else
31171   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31172 fi
31173 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31174 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31175
31176 fi
31177 if test $ac_cv_header_sys_sysmacros_h = yes; then
31178
31179 cat >>confdefs.h <<\_ACEOF
31180 #define MAJOR_IN_SYSMACROS 1
31181 _ACEOF
31182
31183 fi
31184
31185
31186   fi
31187 fi
31188
31189
31190
31191
31192
31193
31194 ac_header_dirent=no
31195 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31196   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31197 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31198 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31200   echo $ECHO_N "(cached) $ECHO_C" >&6
31201 else
31202   cat >conftest.$ac_ext <<_ACEOF
31203 /* confdefs.h.  */
31204 _ACEOF
31205 cat confdefs.h >>conftest.$ac_ext
31206 cat >>conftest.$ac_ext <<_ACEOF
31207 /* end confdefs.h.  */
31208 #include <sys/types.h>
31209 #include <$ac_hdr>
31210
31211 int
31212 main ()
31213 {
31214 if ((DIR *) 0)
31215 return 0;
31216   ;
31217   return 0;
31218 }
31219 _ACEOF
31220 rm -f conftest.$ac_objext
31221 if { (ac_try="$ac_compile"
31222 case "(($ac_try" in
31223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224   *) ac_try_echo=$ac_try;;
31225 esac
31226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227   (eval "$ac_compile") 2>conftest.er1
31228   ac_status=$?
31229   grep -v '^ *+' conftest.er1 >conftest.err
31230   rm -f conftest.er1
31231   cat conftest.err >&5
31232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233   (exit $ac_status); } && {
31234          test -z "$ac_c_werror_flag" ||
31235          test ! -s conftest.err
31236        } && test -s conftest.$ac_objext; then
31237   eval "$as_ac_Header=yes"
31238 else
31239   echo "$as_me: failed program was:" >&5
31240 sed 's/^/| /' conftest.$ac_ext >&5
31241
31242         eval "$as_ac_Header=no"
31243 fi
31244
31245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31246 fi
31247 ac_res=`eval echo '${'$as_ac_Header'}'`
31248                { echo "$as_me:$LINENO: result: $ac_res" >&5
31249 echo "${ECHO_T}$ac_res" >&6; }
31250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31251   cat >>confdefs.h <<_ACEOF
31252 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31253 _ACEOF
31254
31255 ac_header_dirent=$ac_hdr; break
31256 fi
31257
31258 done
31259 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31260 if test $ac_header_dirent = dirent.h; then
31261   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31262 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31263 if test "${ac_cv_search_opendir+set}" = set; then
31264   echo $ECHO_N "(cached) $ECHO_C" >&6
31265 else
31266   ac_func_search_save_LIBS=$LIBS
31267 cat >conftest.$ac_ext <<_ACEOF
31268 /* confdefs.h.  */
31269 _ACEOF
31270 cat confdefs.h >>conftest.$ac_ext
31271 cat >>conftest.$ac_ext <<_ACEOF
31272 /* end confdefs.h.  */
31273
31274 /* Override any GCC internal prototype to avoid an error.
31275    Use char because int might match the return type of a GCC
31276    builtin and then its argument prototype would still apply.  */
31277 #ifdef __cplusplus
31278 extern "C"
31279 #endif
31280 char opendir ();
31281 int
31282 main ()
31283 {
31284 return opendir ();
31285   ;
31286   return 0;
31287 }
31288 _ACEOF
31289 for ac_lib in '' dir; do
31290   if test -z "$ac_lib"; then
31291     ac_res="none required"
31292   else
31293     ac_res=-l$ac_lib
31294     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31295   fi
31296   rm -f conftest.$ac_objext conftest$ac_exeext
31297 if { (ac_try="$ac_link"
31298 case "(($ac_try" in
31299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300   *) ac_try_echo=$ac_try;;
31301 esac
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303   (eval "$ac_link") 2>conftest.er1
31304   ac_status=$?
31305   grep -v '^ *+' conftest.er1 >conftest.err
31306   rm -f conftest.er1
31307   cat conftest.err >&5
31308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309   (exit $ac_status); } && {
31310          test -z "$ac_c_werror_flag" ||
31311          test ! -s conftest.err
31312        } && test -s conftest$ac_exeext &&
31313        $as_test_x conftest$ac_exeext; then
31314   ac_cv_search_opendir=$ac_res
31315 else
31316   echo "$as_me: failed program was:" >&5
31317 sed 's/^/| /' conftest.$ac_ext >&5
31318
31319
31320 fi
31321
31322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31323       conftest$ac_exeext
31324   if test "${ac_cv_search_opendir+set}" = set; then
31325   break
31326 fi
31327 done
31328 if test "${ac_cv_search_opendir+set}" = set; then
31329   :
31330 else
31331   ac_cv_search_opendir=no
31332 fi
31333 rm conftest.$ac_ext
31334 LIBS=$ac_func_search_save_LIBS
31335 fi
31336 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31337 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31338 ac_res=$ac_cv_search_opendir
31339 if test "$ac_res" != no; then
31340   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31341
31342 fi
31343
31344 else
31345   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31347 if test "${ac_cv_search_opendir+set}" = set; then
31348   echo $ECHO_N "(cached) $ECHO_C" >&6
31349 else
31350   ac_func_search_save_LIBS=$LIBS
31351 cat >conftest.$ac_ext <<_ACEOF
31352 /* confdefs.h.  */
31353 _ACEOF
31354 cat confdefs.h >>conftest.$ac_ext
31355 cat >>conftest.$ac_ext <<_ACEOF
31356 /* end confdefs.h.  */
31357
31358 /* Override any GCC internal prototype to avoid an error.
31359    Use char because int might match the return type of a GCC
31360    builtin and then its argument prototype would still apply.  */
31361 #ifdef __cplusplus
31362 extern "C"
31363 #endif
31364 char opendir ();
31365 int
31366 main ()
31367 {
31368 return opendir ();
31369   ;
31370   return 0;
31371 }
31372 _ACEOF
31373 for ac_lib in '' x; do
31374   if test -z "$ac_lib"; then
31375     ac_res="none required"
31376   else
31377     ac_res=-l$ac_lib
31378     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31379   fi
31380   rm -f conftest.$ac_objext conftest$ac_exeext
31381 if { (ac_try="$ac_link"
31382 case "(($ac_try" in
31383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31384   *) ac_try_echo=$ac_try;;
31385 esac
31386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31387   (eval "$ac_link") 2>conftest.er1
31388   ac_status=$?
31389   grep -v '^ *+' conftest.er1 >conftest.err
31390   rm -f conftest.er1
31391   cat conftest.err >&5
31392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393   (exit $ac_status); } && {
31394          test -z "$ac_c_werror_flag" ||
31395          test ! -s conftest.err
31396        } && test -s conftest$ac_exeext &&
31397        $as_test_x conftest$ac_exeext; then
31398   ac_cv_search_opendir=$ac_res
31399 else
31400   echo "$as_me: failed program was:" >&5
31401 sed 's/^/| /' conftest.$ac_ext >&5
31402
31403
31404 fi
31405
31406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31407       conftest$ac_exeext
31408   if test "${ac_cv_search_opendir+set}" = set; then
31409   break
31410 fi
31411 done
31412 if test "${ac_cv_search_opendir+set}" = set; then
31413   :
31414 else
31415   ac_cv_search_opendir=no
31416 fi
31417 rm conftest.$ac_ext
31418 LIBS=$ac_func_search_save_LIBS
31419 fi
31420 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31421 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31422 ac_res=$ac_cv_search_opendir
31423 if test "$ac_res" != no; then
31424   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31425
31426 fi
31427
31428 fi
31429
31430 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31431 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31432 if test "${ac_cv_header_stat_broken+set}" = set; then
31433   echo $ECHO_N "(cached) $ECHO_C" >&6
31434 else
31435   cat >conftest.$ac_ext <<_ACEOF
31436 /* confdefs.h.  */
31437 _ACEOF
31438 cat confdefs.h >>conftest.$ac_ext
31439 cat >>conftest.$ac_ext <<_ACEOF
31440 /* end confdefs.h.  */
31441 #include <sys/types.h>
31442 #include <sys/stat.h>
31443
31444 #if defined S_ISBLK && defined S_IFDIR
31445 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31446 #endif
31447
31448 #if defined S_ISBLK && defined S_IFCHR
31449 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31450 #endif
31451
31452 #if defined S_ISLNK && defined S_IFREG
31453 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31454 #endif
31455
31456 #if defined S_ISSOCK && defined S_IFREG
31457 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31458 #endif
31459
31460 _ACEOF
31461 rm -f conftest.$ac_objext
31462 if { (ac_try="$ac_compile"
31463 case "(($ac_try" in
31464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31465   *) ac_try_echo=$ac_try;;
31466 esac
31467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468   (eval "$ac_compile") 2>conftest.er1
31469   ac_status=$?
31470   grep -v '^ *+' conftest.er1 >conftest.err
31471   rm -f conftest.er1
31472   cat conftest.err >&5
31473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474   (exit $ac_status); } && {
31475          test -z "$ac_c_werror_flag" ||
31476          test ! -s conftest.err
31477        } && test -s conftest.$ac_objext; then
31478   ac_cv_header_stat_broken=no
31479 else
31480   echo "$as_me: failed program was:" >&5
31481 sed 's/^/| /' conftest.$ac_ext >&5
31482
31483         ac_cv_header_stat_broken=yes
31484 fi
31485
31486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31487 fi
31488 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31489 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31490 if test $ac_cv_header_stat_broken = yes; then
31491
31492 cat >>confdefs.h <<\_ACEOF
31493 #define STAT_MACROS_BROKEN 1
31494 _ACEOF
31495
31496 fi
31497
31498 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31499 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31500 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31501   echo $ECHO_N "(cached) $ECHO_C" >&6
31502 else
31503   cat >conftest.$ac_ext <<_ACEOF
31504 /* confdefs.h.  */
31505 _ACEOF
31506 cat confdefs.h >>conftest.$ac_ext
31507 cat >>conftest.$ac_ext <<_ACEOF
31508 /* end confdefs.h.  */
31509 #include <sys/types.h>
31510 #include <sys/wait.h>
31511 #ifndef WEXITSTATUS
31512 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31513 #endif
31514 #ifndef WIFEXITED
31515 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31516 #endif
31517
31518 int
31519 main ()
31520 {
31521   int s;
31522   wait (&s);
31523   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31524   ;
31525   return 0;
31526 }
31527 _ACEOF
31528 rm -f conftest.$ac_objext
31529 if { (ac_try="$ac_compile"
31530 case "(($ac_try" in
31531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31532   *) ac_try_echo=$ac_try;;
31533 esac
31534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31535   (eval "$ac_compile") 2>conftest.er1
31536   ac_status=$?
31537   grep -v '^ *+' conftest.er1 >conftest.err
31538   rm -f conftest.er1
31539   cat conftest.err >&5
31540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541   (exit $ac_status); } && {
31542          test -z "$ac_c_werror_flag" ||
31543          test ! -s conftest.err
31544        } && test -s conftest.$ac_objext; then
31545   ac_cv_header_sys_wait_h=yes
31546 else
31547   echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31549
31550         ac_cv_header_sys_wait_h=no
31551 fi
31552
31553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31554 fi
31555 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31556 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31557 if test $ac_cv_header_sys_wait_h = yes; then
31558
31559 cat >>confdefs.h <<\_ACEOF
31560 #define HAVE_SYS_WAIT_H 1
31561 _ACEOF
31562
31563 fi
31564
31565 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31566 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31567 if test "${ac_cv_header_time+set}" = set; then
31568   echo $ECHO_N "(cached) $ECHO_C" >&6
31569 else
31570   cat >conftest.$ac_ext <<_ACEOF
31571 /* confdefs.h.  */
31572 _ACEOF
31573 cat confdefs.h >>conftest.$ac_ext
31574 cat >>conftest.$ac_ext <<_ACEOF
31575 /* end confdefs.h.  */
31576 #include <sys/types.h>
31577 #include <sys/time.h>
31578 #include <time.h>
31579
31580 int
31581 main ()
31582 {
31583 if ((struct tm *) 0)
31584 return 0;
31585   ;
31586   return 0;
31587 }
31588 _ACEOF
31589 rm -f conftest.$ac_objext
31590 if { (ac_try="$ac_compile"
31591 case "(($ac_try" in
31592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593   *) ac_try_echo=$ac_try;;
31594 esac
31595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31596   (eval "$ac_compile") 2>conftest.er1
31597   ac_status=$?
31598   grep -v '^ *+' conftest.er1 >conftest.err
31599   rm -f conftest.er1
31600   cat conftest.err >&5
31601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602   (exit $ac_status); } && {
31603          test -z "$ac_c_werror_flag" ||
31604          test ! -s conftest.err
31605        } && test -s conftest.$ac_objext; then
31606   ac_cv_header_time=yes
31607 else
31608   echo "$as_me: failed program was:" >&5
31609 sed 's/^/| /' conftest.$ac_ext >&5
31610
31611         ac_cv_header_time=no
31612 fi
31613
31614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31615 fi
31616 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31617 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31618 if test $ac_cv_header_time = yes; then
31619
31620 cat >>confdefs.h <<\_ACEOF
31621 #define TIME_WITH_SYS_TIME 1
31622 _ACEOF
31623
31624 fi
31625
31626 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31627 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31628 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31629   echo $ECHO_N "(cached) $ECHO_C" >&6
31630 else
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 (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         cat >conftest.$ac_ext <<_ACEOF
31671 /* confdefs.h.  */
31672 _ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h.  */
31676 $ac_includes_default
31677 int
31678 main ()
31679 {
31680 static struct stat ac_aggr;
31681 if (sizeof ac_aggr.st_blksize)
31682 return 0;
31683   ;
31684   return 0;
31685 }
31686 _ACEOF
31687 rm -f conftest.$ac_objext
31688 if { (ac_try="$ac_compile"
31689 case "(($ac_try" in
31690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31691   *) ac_try_echo=$ac_try;;
31692 esac
31693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31694   (eval "$ac_compile") 2>conftest.er1
31695   ac_status=$?
31696   grep -v '^ *+' conftest.er1 >conftest.err
31697   rm -f conftest.er1
31698   cat conftest.err >&5
31699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700   (exit $ac_status); } && {
31701          test -z "$ac_c_werror_flag" ||
31702          test ! -s conftest.err
31703        } && test -s conftest.$ac_objext; then
31704   ac_cv_member_struct_stat_st_blksize=yes
31705 else
31706   echo "$as_me: failed program was:" >&5
31707 sed 's/^/| /' conftest.$ac_ext >&5
31708
31709         ac_cv_member_struct_stat_st_blksize=no
31710 fi
31711
31712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31713 fi
31714
31715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31716 fi
31717 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31718 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31719 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31720
31721 cat >>confdefs.h <<_ACEOF
31722 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31723 _ACEOF
31724
31725
31726 cat >>confdefs.h <<\_ACEOF
31727 #define HAVE_ST_BLKSIZE 1
31728 _ACEOF
31729
31730 fi
31731
31732
31733 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31734 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31735 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31736   echo $ECHO_N "(cached) $ECHO_C" >&6
31737 else
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 (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         cat >conftest.$ac_ext <<_ACEOF
31778 /* confdefs.h.  */
31779 _ACEOF
31780 cat confdefs.h >>conftest.$ac_ext
31781 cat >>conftest.$ac_ext <<_ACEOF
31782 /* end confdefs.h.  */
31783 $ac_includes_default
31784 int
31785 main ()
31786 {
31787 static struct stat ac_aggr;
31788 if (sizeof ac_aggr.st_blocks)
31789 return 0;
31790   ;
31791   return 0;
31792 }
31793 _ACEOF
31794 rm -f conftest.$ac_objext
31795 if { (ac_try="$ac_compile"
31796 case "(($ac_try" in
31797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798   *) ac_try_echo=$ac_try;;
31799 esac
31800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801   (eval "$ac_compile") 2>conftest.er1
31802   ac_status=$?
31803   grep -v '^ *+' conftest.er1 >conftest.err
31804   rm -f conftest.er1
31805   cat conftest.err >&5
31806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807   (exit $ac_status); } && {
31808          test -z "$ac_c_werror_flag" ||
31809          test ! -s conftest.err
31810        } && test -s conftest.$ac_objext; then
31811   ac_cv_member_struct_stat_st_blocks=yes
31812 else
31813   echo "$as_me: failed program was:" >&5
31814 sed 's/^/| /' conftest.$ac_ext >&5
31815
31816         ac_cv_member_struct_stat_st_blocks=no
31817 fi
31818
31819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31820 fi
31821
31822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31823 fi
31824 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31825 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31826 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31827
31828 cat >>confdefs.h <<_ACEOF
31829 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31830 _ACEOF
31831
31832
31833 cat >>confdefs.h <<\_ACEOF
31834 #define HAVE_ST_BLOCKS 1
31835 _ACEOF
31836
31837 else
31838   case " $LIBOBJS " in
31839   *" fileblocks.$ac_objext "* ) ;;
31840   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31841  ;;
31842 esac
31843
31844 fi
31845
31846
31847 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31848 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31849 if test "${ac_cv_struct_tm+set}" = set; then
31850   echo $ECHO_N "(cached) $ECHO_C" >&6
31851 else
31852   cat >conftest.$ac_ext <<_ACEOF
31853 /* confdefs.h.  */
31854 _ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h.  */
31858 #include <sys/types.h>
31859 #include <time.h>
31860
31861 int
31862 main ()
31863 {
31864 struct tm tm;
31865                                      int *p = &tm.tm_sec;
31866                                      return !p;
31867   ;
31868   return 0;
31869 }
31870 _ACEOF
31871 rm -f conftest.$ac_objext
31872 if { (ac_try="$ac_compile"
31873 case "(($ac_try" in
31874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31875   *) ac_try_echo=$ac_try;;
31876 esac
31877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31878   (eval "$ac_compile") 2>conftest.er1
31879   ac_status=$?
31880   grep -v '^ *+' conftest.er1 >conftest.err
31881   rm -f conftest.er1
31882   cat conftest.err >&5
31883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884   (exit $ac_status); } && {
31885          test -z "$ac_c_werror_flag" ||
31886          test ! -s conftest.err
31887        } && test -s conftest.$ac_objext; then
31888   ac_cv_struct_tm=time.h
31889 else
31890   echo "$as_me: failed program was:" >&5
31891 sed 's/^/| /' conftest.$ac_ext >&5
31892
31893         ac_cv_struct_tm=sys/time.h
31894 fi
31895
31896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31897 fi
31898 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31899 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31900 if test $ac_cv_struct_tm = sys/time.h; then
31901
31902 cat >>confdefs.h <<\_ACEOF
31903 #define TM_IN_SYS_TIME 1
31904 _ACEOF
31905
31906 fi
31907
31908 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31909 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31910 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31911   echo $ECHO_N "(cached) $ECHO_C" >&6
31912 else
31913   cat >conftest.$ac_ext <<_ACEOF
31914 /* confdefs.h.  */
31915 _ACEOF
31916 cat confdefs.h >>conftest.$ac_ext
31917 cat >>conftest.$ac_ext <<_ACEOF
31918 /* end confdefs.h.  */
31919 #include <sys/types.h>
31920 #include <$ac_cv_struct_tm>
31921
31922
31923 int
31924 main ()
31925 {
31926 static struct tm ac_aggr;
31927 if (ac_aggr.tm_zone)
31928 return 0;
31929   ;
31930   return 0;
31931 }
31932 _ACEOF
31933 rm -f conftest.$ac_objext
31934 if { (ac_try="$ac_compile"
31935 case "(($ac_try" in
31936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937   *) ac_try_echo=$ac_try;;
31938 esac
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940   (eval "$ac_compile") 2>conftest.er1
31941   ac_status=$?
31942   grep -v '^ *+' conftest.er1 >conftest.err
31943   rm -f conftest.er1
31944   cat conftest.err >&5
31945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946   (exit $ac_status); } && {
31947          test -z "$ac_c_werror_flag" ||
31948          test ! -s conftest.err
31949        } && test -s conftest.$ac_objext; then
31950   ac_cv_member_struct_tm_tm_zone=yes
31951 else
31952   echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31954
31955         cat >conftest.$ac_ext <<_ACEOF
31956 /* confdefs.h.  */
31957 _ACEOF
31958 cat confdefs.h >>conftest.$ac_ext
31959 cat >>conftest.$ac_ext <<_ACEOF
31960 /* end confdefs.h.  */
31961 #include <sys/types.h>
31962 #include <$ac_cv_struct_tm>
31963
31964
31965 int
31966 main ()
31967 {
31968 static struct tm ac_aggr;
31969 if (sizeof ac_aggr.tm_zone)
31970 return 0;
31971   ;
31972   return 0;
31973 }
31974 _ACEOF
31975 rm -f conftest.$ac_objext
31976 if { (ac_try="$ac_compile"
31977 case "(($ac_try" in
31978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31979   *) ac_try_echo=$ac_try;;
31980 esac
31981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31982   (eval "$ac_compile") 2>conftest.er1
31983   ac_status=$?
31984   grep -v '^ *+' conftest.er1 >conftest.err
31985   rm -f conftest.er1
31986   cat conftest.err >&5
31987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988   (exit $ac_status); } && {
31989          test -z "$ac_c_werror_flag" ||
31990          test ! -s conftest.err
31991        } && test -s conftest.$ac_objext; then
31992   ac_cv_member_struct_tm_tm_zone=yes
31993 else
31994   echo "$as_me: failed program was:" >&5
31995 sed 's/^/| /' conftest.$ac_ext >&5
31996
31997         ac_cv_member_struct_tm_tm_zone=no
31998 fi
31999
32000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32001 fi
32002
32003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32004 fi
32005 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32006 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32007 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32008
32009 cat >>confdefs.h <<_ACEOF
32010 #define HAVE_STRUCT_TM_TM_ZONE 1
32011 _ACEOF
32012
32013
32014 fi
32015
32016 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32017
32018 cat >>confdefs.h <<\_ACEOF
32019 #define HAVE_TM_ZONE 1
32020 _ACEOF
32021
32022 else
32023   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32024 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32025 if test "${ac_cv_have_decl_tzname+set}" = set; then
32026   echo $ECHO_N "(cached) $ECHO_C" >&6
32027 else
32028   cat >conftest.$ac_ext <<_ACEOF
32029 /* confdefs.h.  */
32030 _ACEOF
32031 cat confdefs.h >>conftest.$ac_ext
32032 cat >>conftest.$ac_ext <<_ACEOF
32033 /* end confdefs.h.  */
32034 #include <time.h>
32035
32036 int
32037 main ()
32038 {
32039 #ifndef tzname
32040   (void) tzname;
32041 #endif
32042
32043   ;
32044   return 0;
32045 }
32046 _ACEOF
32047 rm -f conftest.$ac_objext
32048 if { (ac_try="$ac_compile"
32049 case "(($ac_try" in
32050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32051   *) ac_try_echo=$ac_try;;
32052 esac
32053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32054   (eval "$ac_compile") 2>conftest.er1
32055   ac_status=$?
32056   grep -v '^ *+' conftest.er1 >conftest.err
32057   rm -f conftest.er1
32058   cat conftest.err >&5
32059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060   (exit $ac_status); } && {
32061          test -z "$ac_c_werror_flag" ||
32062          test ! -s conftest.err
32063        } && test -s conftest.$ac_objext; then
32064   ac_cv_have_decl_tzname=yes
32065 else
32066   echo "$as_me: failed program was:" >&5
32067 sed 's/^/| /' conftest.$ac_ext >&5
32068
32069         ac_cv_have_decl_tzname=no
32070 fi
32071
32072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32073 fi
32074 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32075 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32076 if test $ac_cv_have_decl_tzname = yes; then
32077
32078 cat >>confdefs.h <<_ACEOF
32079 #define HAVE_DECL_TZNAME 1
32080 _ACEOF
32081
32082
32083 else
32084   cat >>confdefs.h <<_ACEOF
32085 #define HAVE_DECL_TZNAME 0
32086 _ACEOF
32087
32088
32089 fi
32090
32091
32092   { echo "$as_me:$LINENO: checking for tzname" >&5
32093 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32094 if test "${ac_cv_var_tzname+set}" = set; then
32095   echo $ECHO_N "(cached) $ECHO_C" >&6
32096 else
32097   cat >conftest.$ac_ext <<_ACEOF
32098 /* confdefs.h.  */
32099 _ACEOF
32100 cat confdefs.h >>conftest.$ac_ext
32101 cat >>conftest.$ac_ext <<_ACEOF
32102 /* end confdefs.h.  */
32103 #include <time.h>
32104 #if !HAVE_DECL_TZNAME
32105 extern char *tzname[];
32106 #endif
32107
32108 int
32109 main ()
32110 {
32111 return tzname[0][0];
32112   ;
32113   return 0;
32114 }
32115 _ACEOF
32116 rm -f conftest.$ac_objext conftest$ac_exeext
32117 if { (ac_try="$ac_link"
32118 case "(($ac_try" in
32119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32120   *) ac_try_echo=$ac_try;;
32121 esac
32122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32123   (eval "$ac_link") 2>conftest.er1
32124   ac_status=$?
32125   grep -v '^ *+' conftest.er1 >conftest.err
32126   rm -f conftest.er1
32127   cat conftest.err >&5
32128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129   (exit $ac_status); } && {
32130          test -z "$ac_c_werror_flag" ||
32131          test ! -s conftest.err
32132        } && test -s conftest$ac_exeext &&
32133        $as_test_x conftest$ac_exeext; then
32134   ac_cv_var_tzname=yes
32135 else
32136   echo "$as_me: failed program was:" >&5
32137 sed 's/^/| /' conftest.$ac_ext >&5
32138
32139         ac_cv_var_tzname=no
32140 fi
32141
32142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32143       conftest$ac_exeext conftest.$ac_ext
32144 fi
32145 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32146 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32147   if test $ac_cv_var_tzname = yes; then
32148
32149 cat >>confdefs.h <<\_ACEOF
32150 #define HAVE_TZNAME 1
32151 _ACEOF
32152
32153   fi
32154 fi
32155
32156
32157 { echo "$as_me:$LINENO: checking for utime.h" >&5
32158 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32159 if test "${ba_cv_header_utime_h+set}" = set; then
32160   echo $ECHO_N "(cached) $ECHO_C" >&6
32161 else
32162
32163        cat >conftest.$ac_ext <<_ACEOF
32164 /* confdefs.h.  */
32165 _ACEOF
32166 cat confdefs.h >>conftest.$ac_ext
32167 cat >>conftest.$ac_ext <<_ACEOF
32168 /* end confdefs.h.  */
32169
32170               #include <sys/types.h>
32171               #include <utime.h>
32172
32173 int
32174 main ()
32175 {
32176
32177               struct utimbuf foo
32178
32179   ;
32180   return 0;
32181 }
32182 _ACEOF
32183 rm -f conftest.$ac_objext
32184 if { (ac_try="$ac_compile"
32185 case "(($ac_try" in
32186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187   *) ac_try_echo=$ac_try;;
32188 esac
32189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190   (eval "$ac_compile") 2>conftest.er1
32191   ac_status=$?
32192   grep -v '^ *+' conftest.er1 >conftest.err
32193   rm -f conftest.er1
32194   cat conftest.err >&5
32195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196   (exit $ac_status); } && {
32197          test -z "$ac_c_werror_flag" ||
32198          test ! -s conftest.err
32199        } && test -s conftest.$ac_objext; then
32200
32201               ba_cv_header_utime_h=yes
32202
32203 else
32204   echo "$as_me: failed program was:" >&5
32205 sed 's/^/| /' conftest.$ac_ext >&5
32206
32207
32208               ba_cv_header_utime_h=no
32209
32210
32211 fi
32212
32213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32214
32215
32216 fi
32217 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32218 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32219 test $ba_cv_header_utime_h = yes &&
32220 cat >>confdefs.h <<\_ACEOF
32221 #define HAVE_UTIME_H 1
32222 _ACEOF
32223
32224
32225 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32226 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32227 if test "${ba_cv_header_socklen_t+set}" = set; then
32228   echo $ECHO_N "(cached) $ECHO_C" >&6
32229 else
32230
32231        cat >conftest.$ac_ext <<_ACEOF
32232 /* confdefs.h.  */
32233 _ACEOF
32234 cat confdefs.h >>conftest.$ac_ext
32235 cat >>conftest.$ac_ext <<_ACEOF
32236 /* end confdefs.h.  */
32237
32238               #include <sys/types.h>
32239               #include <sys/socket.h>
32240
32241 int
32242 main ()
32243 {
32244
32245               socklen_t x
32246
32247   ;
32248   return 0;
32249 }
32250 _ACEOF
32251 rm -f conftest.$ac_objext
32252 if { (ac_try="$ac_compile"
32253 case "(($ac_try" in
32254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32255   *) ac_try_echo=$ac_try;;
32256 esac
32257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32258   (eval "$ac_compile") 2>conftest.er1
32259   ac_status=$?
32260   grep -v '^ *+' conftest.er1 >conftest.err
32261   rm -f conftest.er1
32262   cat conftest.err >&5
32263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264   (exit $ac_status); } && {
32265          test -z "$ac_c_werror_flag" ||
32266          test ! -s conftest.err
32267        } && test -s conftest.$ac_objext; then
32268
32269              ba_cv_header_socklen_t=yes
32270
32271 else
32272   echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32274
32275
32276              ba_cv_header_socklen_t=no
32277
32278
32279 fi
32280
32281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32282
32283
32284 fi
32285 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32286 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32287 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32288 #define HAVE_SOCKLEN_T 1
32289 _ACEOF
32290
32291
32292 { echo "$as_me:$LINENO: checking for bigendian" >&5
32293 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32294 if test "${ba_cv_bigendian+set}" = set; then
32295   echo $ECHO_N "(cached) $ECHO_C" >&6
32296 else
32297
32298        if test "$cross_compiling" = yes; then
32299
32300              ba_cv_bigendian=no
32301
32302
32303 else
32304   cat >conftest.$ac_ext <<_ACEOF
32305 /* confdefs.h.  */
32306 _ACEOF
32307 cat confdefs.h >>conftest.$ac_ext
32308 cat >>conftest.$ac_ext <<_ACEOF
32309 /* end confdefs.h.  */
32310
32311               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32312
32313 _ACEOF
32314 rm -f conftest$ac_exeext
32315 if { (ac_try="$ac_link"
32316 case "(($ac_try" in
32317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318   *) ac_try_echo=$ac_try;;
32319 esac
32320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321   (eval "$ac_link") 2>&5
32322   ac_status=$?
32323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32325   { (case "(($ac_try" in
32326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32327   *) ac_try_echo=$ac_try;;
32328 esac
32329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32330   (eval "$ac_try") 2>&5
32331   ac_status=$?
32332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333   (exit $ac_status); }; }; then
32334
32335              ba_cv_bigendian=yes
32336
32337 else
32338   echo "$as_me: program exited with status $ac_status" >&5
32339 echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32341
32342 ( exit $ac_status )
32343
32344              ba_cv_bigendian=no
32345
32346 fi
32347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32348 fi
32349
32350
32351
32352
32353 fi
32354 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32355 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32356 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32357 #define HAVE_BIGENDIAN 1
32358 _ACEOF
32359
32360
32361 ac_ext=cpp
32362 ac_cpp='$CXXCPP $CPPFLAGS'
32363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32366
32367 { echo "$as_me:$LINENO: checking for typeof" >&5
32368 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32369 if test "${ba_cv_have_typeof+set}" = set; then
32370   echo $ECHO_N "(cached) $ECHO_C" >&6
32371 else
32372
32373        if test "$cross_compiling" = yes; then
32374
32375               ba_cv_have_typeof=no
32376
32377
32378 else
32379   cat >conftest.$ac_ext <<_ACEOF
32380 /* confdefs.h.  */
32381 _ACEOF
32382 cat confdefs.h >>conftest.$ac_ext
32383 cat >>conftest.$ac_ext <<_ACEOF
32384 /* end confdefs.h.  */
32385
32386               main(){char *a = 0; a = (typeof a)a;}
32387
32388 _ACEOF
32389 rm -f conftest$ac_exeext
32390 if { (ac_try="$ac_link"
32391 case "(($ac_try" in
32392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393   *) ac_try_echo=$ac_try;;
32394 esac
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396   (eval "$ac_link") 2>&5
32397   ac_status=$?
32398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32400   { (case "(($ac_try" in
32401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32402   *) ac_try_echo=$ac_try;;
32403 esac
32404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32405   (eval "$ac_try") 2>&5
32406   ac_status=$?
32407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32408   (exit $ac_status); }; }; then
32409
32410               ba_cv_have_typeof=yes
32411
32412 else
32413   echo "$as_me: program exited with status $ac_status" >&5
32414 echo "$as_me: failed program was:" >&5
32415 sed 's/^/| /' conftest.$ac_ext >&5
32416
32417 ( exit $ac_status )
32418
32419               ba_cv_have_typeof=no
32420
32421 fi
32422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32423 fi
32424
32425
32426
32427
32428 fi
32429 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32430 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32431 test $ba_cv_have_typeof = yes &&
32432 cat >>confdefs.h <<\_ACEOF
32433 #define HAVE_TYPEOF 1
32434 _ACEOF
32435
32436 ac_ext=c
32437 ac_cpp='$CPP $CPPFLAGS'
32438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32441
32442
32443 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32444 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32445 if test "${ac_cv_c_const+set}" = set; then
32446   echo $ECHO_N "(cached) $ECHO_C" >&6
32447 else
32448   cat >conftest.$ac_ext <<_ACEOF
32449 /* confdefs.h.  */
32450 _ACEOF
32451 cat confdefs.h >>conftest.$ac_ext
32452 cat >>conftest.$ac_ext <<_ACEOF
32453 /* end confdefs.h.  */
32454
32455 int
32456 main ()
32457 {
32458 /* FIXME: Include the comments suggested by Paul. */
32459 #ifndef __cplusplus
32460   /* Ultrix mips cc rejects this.  */
32461   typedef int charset[2];
32462   const charset cs;
32463   /* SunOS 4.1.1 cc rejects this.  */
32464   char const *const *pcpcc;
32465   char **ppc;
32466   /* NEC SVR4.0.2 mips cc rejects this.  */
32467   struct point {int x, y;};
32468   static struct point const zero = {0,0};
32469   /* AIX XL C 1.02.0.0 rejects this.
32470      It does not let you subtract one const X* pointer from another in
32471      an arm of an if-expression whose if-part is not a constant
32472      expression */
32473   const char *g = "string";
32474   pcpcc = &g + (g ? g-g : 0);
32475   /* HPUX 7.0 cc rejects these. */
32476   ++pcpcc;
32477   ppc = (char**) pcpcc;
32478   pcpcc = (char const *const *) ppc;
32479   { /* SCO 3.2v4 cc rejects this.  */
32480     char *t;
32481     char const *s = 0 ? (char *) 0 : (char const *) 0;
32482
32483     *t++ = 0;
32484     if (s) return 0;
32485   }
32486   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32487     int x[] = {25, 17};
32488     const int *foo = &x[0];
32489     ++foo;
32490   }
32491   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32492     typedef const int *iptr;
32493     iptr p = 0;
32494     ++p;
32495   }
32496   { /* AIX XL C 1.02.0.0 rejects this saying
32497        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32498     struct s { int j; const int *ap[3]; };
32499     struct s *b; b->j = 5;
32500   }
32501   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32502     const int foo = 10;
32503     if (!foo) return 0;
32504   }
32505   return !cs[0] && !zero.x;
32506 #endif
32507
32508   ;
32509   return 0;
32510 }
32511 _ACEOF
32512 rm -f conftest.$ac_objext
32513 if { (ac_try="$ac_compile"
32514 case "(($ac_try" in
32515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32516   *) ac_try_echo=$ac_try;;
32517 esac
32518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32519   (eval "$ac_compile") 2>conftest.er1
32520   ac_status=$?
32521   grep -v '^ *+' conftest.er1 >conftest.err
32522   rm -f conftest.er1
32523   cat conftest.err >&5
32524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525   (exit $ac_status); } && {
32526          test -z "$ac_c_werror_flag" ||
32527          test ! -s conftest.err
32528        } && test -s conftest.$ac_objext; then
32529   ac_cv_c_const=yes
32530 else
32531   echo "$as_me: failed program was:" >&5
32532 sed 's/^/| /' conftest.$ac_ext >&5
32533
32534         ac_cv_c_const=no
32535 fi
32536
32537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32538 fi
32539 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32540 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32541 if test $ac_cv_c_const = no; then
32542
32543 cat >>confdefs.h <<\_ACEOF
32544 #define const
32545 _ACEOF
32546
32547 fi
32548
32549
32550 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32551 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32552 fstype=no
32553 # The order of these tests is important.
32554 cat >conftest.$ac_ext <<_ACEOF
32555 /* confdefs.h.  */
32556 _ACEOF
32557 cat confdefs.h >>conftest.$ac_ext
32558 cat >>conftest.$ac_ext <<_ACEOF
32559 /* end confdefs.h.  */
32560
32561        #include <sys/statvfs.h>
32562        #include <sys/fstyp.h>
32563
32564 _ACEOF
32565 if { (ac_try="$ac_cpp conftest.$ac_ext"
32566 case "(($ac_try" in
32567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32568   *) ac_try_echo=$ac_try;;
32569 esac
32570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32572   ac_status=$?
32573   grep -v '^ *+' conftest.er1 >conftest.err
32574   rm -f conftest.er1
32575   cat conftest.err >&5
32576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577   (exit $ac_status); } >/dev/null && {
32578          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32579          test ! -s conftest.err
32580        }; then
32581   cat >>confdefs.h <<\_ACEOF
32582 #define FSTYPE_STATVFS 1
32583 _ACEOF
32584  fstype=SVR4
32585
32586 else
32587   echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32589
32590
32591 fi
32592
32593 rm -f conftest.err conftest.$ac_ext
32594 if test $fstype = no; then
32595    cat >conftest.$ac_ext <<_ACEOF
32596 /* confdefs.h.  */
32597 _ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h.  */
32601
32602           #include <sys/statfs.h>
32603           #include <sys/fstyp.h>
32604
32605 _ACEOF
32606 if { (ac_try="$ac_cpp conftest.$ac_ext"
32607 case "(($ac_try" in
32608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609   *) ac_try_echo=$ac_try;;
32610 esac
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32613   ac_status=$?
32614   grep -v '^ *+' conftest.er1 >conftest.err
32615   rm -f conftest.er1
32616   cat conftest.err >&5
32617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618   (exit $ac_status); } >/dev/null && {
32619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32620          test ! -s conftest.err
32621        }; then
32622   cat >>confdefs.h <<\_ACEOF
32623 #define FSTYPE_USG_STATFS 1
32624 _ACEOF
32625  fstype=SVR3
32626
32627 else
32628   echo "$as_me: failed program was:" >&5
32629 sed 's/^/| /' conftest.$ac_ext >&5
32630
32631
32632 fi
32633
32634 rm -f conftest.err conftest.$ac_ext
32635 fi
32636 if test $fstype = no; then
32637    cat >conftest.$ac_ext <<_ACEOF
32638 /* confdefs.h.  */
32639 _ACEOF
32640 cat confdefs.h >>conftest.$ac_ext
32641 cat >>conftest.$ac_ext <<_ACEOF
32642 /* end confdefs.h.  */
32643
32644           #include <sys/statfs.h>
32645           #include <sys/vmount.h>
32646
32647 _ACEOF
32648 if { (ac_try="$ac_cpp conftest.$ac_ext"
32649 case "(($ac_try" in
32650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32651   *) ac_try_echo=$ac_try;;
32652 esac
32653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32655   ac_status=$?
32656   grep -v '^ *+' conftest.er1 >conftest.err
32657   rm -f conftest.er1
32658   cat conftest.err >&5
32659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660   (exit $ac_status); } >/dev/null && {
32661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32662          test ! -s conftest.err
32663        }; then
32664   cat >>confdefs.h <<\_ACEOF
32665 #define FSTYPE_AIX_STATFS 1
32666 _ACEOF
32667  fstype=AIX
32668
32669 else
32670   echo "$as_me: failed program was:" >&5
32671 sed 's/^/| /' conftest.$ac_ext >&5
32672
32673
32674 fi
32675
32676 rm -f conftest.err conftest.$ac_ext
32677 fi
32678 if test $fstype = no; then
32679    cat >conftest.$ac_ext <<_ACEOF
32680 /* confdefs.h.  */
32681 _ACEOF
32682 cat confdefs.h >>conftest.$ac_ext
32683 cat >>conftest.$ac_ext <<_ACEOF
32684 /* end confdefs.h.  */
32685
32686           #include <mntent.h>
32687
32688 _ACEOF
32689 if { (ac_try="$ac_cpp conftest.$ac_ext"
32690 case "(($ac_try" in
32691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32692   *) ac_try_echo=$ac_try;;
32693 esac
32694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32696   ac_status=$?
32697   grep -v '^ *+' conftest.er1 >conftest.err
32698   rm -f conftest.er1
32699   cat conftest.err >&5
32700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701   (exit $ac_status); } >/dev/null && {
32702          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32703          test ! -s conftest.err
32704        }; then
32705   cat >>confdefs.h <<\_ACEOF
32706 #define FSTYPE_MNTENT 1
32707 _ACEOF
32708  fstype=4.3BSD
32709
32710 else
32711   echo "$as_me: failed program was:" >&5
32712 sed 's/^/| /' conftest.$ac_ext >&5
32713
32714
32715 fi
32716
32717 rm -f conftest.err conftest.$ac_ext
32718 fi
32719 if test $fstype = no; then
32720    cat >conftest.$ac_ext <<_ACEOF
32721 /* confdefs.h.  */
32722 _ACEOF
32723 cat confdefs.h >>conftest.$ac_ext
32724 cat >>conftest.$ac_ext <<_ACEOF
32725 /* end confdefs.h.  */
32726 #include <sys/mount.h>
32727
32728 _ACEOF
32729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32730   $EGREP "f_type;" >/dev/null 2>&1; then
32731   cat >>confdefs.h <<\_ACEOF
32732 #define FSTYPE_STATFS 1
32733 _ACEOF
32734  fstype=4.4BSD/OSF1
32735 fi
32736 rm -f conftest*
32737
32738 fi
32739 if test $fstype = no; then
32740    cat >conftest.$ac_ext <<_ACEOF
32741 /* confdefs.h.  */
32742 _ACEOF
32743 cat confdefs.h >>conftest.$ac_ext
32744 cat >>conftest.$ac_ext <<_ACEOF
32745 /* end confdefs.h.  */
32746
32747           #include <sys/mount.h>
32748           #include <sys/fs_types.h>
32749
32750 _ACEOF
32751 if { (ac_try="$ac_cpp conftest.$ac_ext"
32752 case "(($ac_try" in
32753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32754   *) ac_try_echo=$ac_try;;
32755 esac
32756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32757   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32758   ac_status=$?
32759   grep -v '^ *+' conftest.er1 >conftest.err
32760   rm -f conftest.er1
32761   cat conftest.err >&5
32762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763   (exit $ac_status); } >/dev/null && {
32764          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32765          test ! -s conftest.err
32766        }; then
32767   cat >>confdefs.h <<\_ACEOF
32768 #define FSTYPE_GETMNT 1
32769 _ACEOF
32770  fstype=Ultrix
32771
32772 else
32773   echo "$as_me: failed program was:" >&5
32774 sed 's/^/| /' conftest.$ac_ext >&5
32775
32776
32777 fi
32778
32779 rm -f conftest.err conftest.$ac_ext
32780 fi
32781 { echo "$as_me:$LINENO: result: $fstype" >&5
32782 echo "${ECHO_T}$fstype" >&6; }
32783
32784 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32785   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32786 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32787 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32788   echo $ECHO_N "(cached) $ECHO_C" >&6
32789 fi
32790 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32791 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32792 else
32793   # Is the header compilable?
32794 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32795 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32796 cat >conftest.$ac_ext <<_ACEOF
32797 /* confdefs.h.  */
32798 _ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h.  */
32802 $ac_includes_default
32803 #include <sys/statvfs.h>
32804 _ACEOF
32805 rm -f conftest.$ac_objext
32806 if { (ac_try="$ac_compile"
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_compile") 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); } && {
32819          test -z "$ac_c_werror_flag" ||
32820          test ! -s conftest.err
32821        } && test -s conftest.$ac_objext; then
32822   ac_header_compiler=yes
32823 else
32824   echo "$as_me: failed program was:" >&5
32825 sed 's/^/| /' conftest.$ac_ext >&5
32826
32827         ac_header_compiler=no
32828 fi
32829
32830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32832 echo "${ECHO_T}$ac_header_compiler" >&6; }
32833
32834 # Is the header present?
32835 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32836 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32837 cat >conftest.$ac_ext <<_ACEOF
32838 /* confdefs.h.  */
32839 _ACEOF
32840 cat confdefs.h >>conftest.$ac_ext
32841 cat >>conftest.$ac_ext <<_ACEOF
32842 /* end confdefs.h.  */
32843 #include <sys/statvfs.h>
32844 _ACEOF
32845 if { (ac_try="$ac_cpp conftest.$ac_ext"
32846 case "(($ac_try" in
32847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32848   *) ac_try_echo=$ac_try;;
32849 esac
32850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32852   ac_status=$?
32853   grep -v '^ *+' conftest.er1 >conftest.err
32854   rm -f conftest.er1
32855   cat conftest.err >&5
32856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857   (exit $ac_status); } >/dev/null && {
32858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32859          test ! -s conftest.err
32860        }; then
32861   ac_header_preproc=yes
32862 else
32863   echo "$as_me: failed program was:" >&5
32864 sed 's/^/| /' conftest.$ac_ext >&5
32865
32866   ac_header_preproc=no
32867 fi
32868
32869 rm -f conftest.err conftest.$ac_ext
32870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32871 echo "${ECHO_T}$ac_header_preproc" >&6; }
32872
32873 # So?  What about this header?
32874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32875   yes:no: )
32876     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32877 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32878     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32879 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32880     ac_header_preproc=yes
32881     ;;
32882   no:yes:* )
32883     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32884 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32885     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32886 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32887     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32888 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32889     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32890 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32891     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32892 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32893     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32894 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32895
32896     ;;
32897 esac
32898 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32899 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32900 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32901   echo $ECHO_N "(cached) $ECHO_C" >&6
32902 else
32903   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32904 fi
32905 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32906 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32907
32908 fi
32909 if test $ac_cv_header_sys_statvfs_h = yes; then
32910
32911 cat >>confdefs.h <<\_ACEOF
32912 #define HAVE_SYS_STATVFS_H 1
32913 _ACEOF
32914
32915 fi
32916
32917
32918
32919 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32920 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32921 if test "${ac_cv_type_signal+set}" = set; then
32922   echo $ECHO_N "(cached) $ECHO_C" >&6
32923 else
32924   cat >conftest.$ac_ext <<_ACEOF
32925 /* confdefs.h.  */
32926 _ACEOF
32927 cat confdefs.h >>conftest.$ac_ext
32928 cat >>conftest.$ac_ext <<_ACEOF
32929 /* end confdefs.h.  */
32930 #include <sys/types.h>
32931 #include <signal.h>
32932
32933 int
32934 main ()
32935 {
32936 return *(signal (0, 0)) (0) == 1;
32937   ;
32938   return 0;
32939 }
32940 _ACEOF
32941 rm -f conftest.$ac_objext
32942 if { (ac_try="$ac_compile"
32943 case "(($ac_try" in
32944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945   *) ac_try_echo=$ac_try;;
32946 esac
32947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32948   (eval "$ac_compile") 2>conftest.er1
32949   ac_status=$?
32950   grep -v '^ *+' conftest.er1 >conftest.err
32951   rm -f conftest.er1
32952   cat conftest.err >&5
32953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954   (exit $ac_status); } && {
32955          test -z "$ac_c_werror_flag" ||
32956          test ! -s conftest.err
32957        } && test -s conftest.$ac_objext; then
32958   ac_cv_type_signal=int
32959 else
32960   echo "$as_me: failed program was:" >&5
32961 sed 's/^/| /' conftest.$ac_ext >&5
32962
32963         ac_cv_type_signal=void
32964 fi
32965
32966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32967 fi
32968 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32969 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32970
32971 cat >>confdefs.h <<_ACEOF
32972 #define RETSIGTYPE $ac_cv_type_signal
32973 _ACEOF
32974
32975
32976
32977   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32978 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32979   if test "${bash_cv_signal_vintage+set}" = set; then
32980   echo $ECHO_N "(cached) $ECHO_C" >&6
32981 else
32982
32983     cat >conftest.$ac_ext <<_ACEOF
32984 /* confdefs.h.  */
32985 _ACEOF
32986 cat confdefs.h >>conftest.$ac_ext
32987 cat >>conftest.$ac_ext <<_ACEOF
32988 /* end confdefs.h.  */
32989 #include <signal.h>
32990 int
32991 main ()
32992 {
32993
32994       sigset_t ss;
32995       struct sigaction sa;
32996       sigemptyset(&ss); sigsuspend(&ss);
32997       sigaction(SIGINT, &sa, (struct sigaction *) 0);
32998       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32999
33000   ;
33001   return 0;
33002 }
33003 _ACEOF
33004 rm -f conftest.$ac_objext conftest$ac_exeext
33005 if { (ac_try="$ac_link"
33006 case "(($ac_try" in
33007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33008   *) ac_try_echo=$ac_try;;
33009 esac
33010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33011   (eval "$ac_link") 2>conftest.er1
33012   ac_status=$?
33013   grep -v '^ *+' conftest.er1 >conftest.err
33014   rm -f conftest.er1
33015   cat conftest.err >&5
33016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017   (exit $ac_status); } && {
33018          test -z "$ac_c_werror_flag" ||
33019          test ! -s conftest.err
33020        } && test -s conftest$ac_exeext &&
33021        $as_test_x conftest$ac_exeext; then
33022   bash_cv_signal_vintage="posix"
33023 else
33024   echo "$as_me: failed program was:" >&5
33025 sed 's/^/| /' conftest.$ac_ext >&5
33026
33027
33028       cat >conftest.$ac_ext <<_ACEOF
33029 /* confdefs.h.  */
33030 _ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h.  */
33034 #include <signal.h>
33035 int
33036 main ()
33037 {
33038
33039           int mask = sigmask(SIGINT);
33040           sigsetmask(mask); sigblock(mask); sigpause(mask);
33041
33042   ;
33043   return 0;
33044 }
33045 _ACEOF
33046 rm -f conftest.$ac_objext conftest$ac_exeext
33047 if { (ac_try="$ac_link"
33048 case "(($ac_try" in
33049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33050   *) ac_try_echo=$ac_try;;
33051 esac
33052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33053   (eval "$ac_link") 2>conftest.er1
33054   ac_status=$?
33055   grep -v '^ *+' conftest.er1 >conftest.err
33056   rm -f conftest.er1
33057   cat conftest.err >&5
33058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059   (exit $ac_status); } && {
33060          test -z "$ac_c_werror_flag" ||
33061          test ! -s conftest.err
33062        } && test -s conftest$ac_exeext &&
33063        $as_test_x conftest$ac_exeext; then
33064   bash_cv_signal_vintage="4.2bsd"
33065 else
33066   echo "$as_me: failed program was:" >&5
33067 sed 's/^/| /' conftest.$ac_ext >&5
33068
33069
33070         cat >conftest.$ac_ext <<_ACEOF
33071 /* confdefs.h.  */
33072 _ACEOF
33073 cat confdefs.h >>conftest.$ac_ext
33074 cat >>conftest.$ac_ext <<_ACEOF
33075 /* end confdefs.h.  */
33076
33077           #include <signal.h>
33078           RETSIGTYPE foo() { }
33079 int
33080 main ()
33081 {
33082
33083                   int mask = sigmask(SIGINT);
33084                   sigset(SIGINT, foo); sigrelse(SIGINT);
33085                   sighold(SIGINT); sigpause(SIGINT);
33086
33087   ;
33088   return 0;
33089 }
33090 _ACEOF
33091 rm -f conftest.$ac_objext conftest$ac_exeext
33092 if { (ac_try="$ac_link"
33093 case "(($ac_try" in
33094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33095   *) ac_try_echo=$ac_try;;
33096 esac
33097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33098   (eval "$ac_link") 2>conftest.er1
33099   ac_status=$?
33100   grep -v '^ *+' conftest.er1 >conftest.err
33101   rm -f conftest.er1
33102   cat conftest.err >&5
33103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104   (exit $ac_status); } && {
33105          test -z "$ac_c_werror_flag" ||
33106          test ! -s conftest.err
33107        } && test -s conftest$ac_exeext &&
33108        $as_test_x conftest$ac_exeext; then
33109   bash_cv_signal_vintage="svr3"
33110 else
33111   echo "$as_me: failed program was:" >&5
33112 sed 's/^/| /' conftest.$ac_ext >&5
33113
33114         bash_cv_signal_vintage="v7"
33115
33116 fi
33117
33118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33119       conftest$ac_exeext conftest.$ac_ext
33120
33121 fi
33122
33123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33124       conftest$ac_exeext conftest.$ac_ext
33125
33126 fi
33127
33128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33129       conftest$ac_exeext conftest.$ac_ext
33130
33131 fi
33132
33133   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33134 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33135   if test "$bash_cv_signal_vintage" = "posix"; then
33136     cat >>confdefs.h <<\_ACEOF
33137 #define HAVE_POSIX_SIGNALS 1
33138 _ACEOF
33139
33140   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33141     cat >>confdefs.h <<\_ACEOF
33142 #define HAVE_BSD_SIGNALS 1
33143 _ACEOF
33144
33145   elif test "$bash_cv_signal_vintage" = "svr3"; then
33146     cat >>confdefs.h <<\_ACEOF
33147 #define HAVE_USG_SIGHOLD 1
33148 _ACEOF
33149
33150   fi
33151
33152 { echo "$as_me:$LINENO: checking for mode_t" >&5
33153 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33154 if test "${ac_cv_type_mode_t+set}" = set; then
33155   echo $ECHO_N "(cached) $ECHO_C" >&6
33156 else
33157   cat >conftest.$ac_ext <<_ACEOF
33158 /* confdefs.h.  */
33159 _ACEOF
33160 cat confdefs.h >>conftest.$ac_ext
33161 cat >>conftest.$ac_ext <<_ACEOF
33162 /* end confdefs.h.  */
33163 $ac_includes_default
33164 typedef mode_t ac__type_new_;
33165 int
33166 main ()
33167 {
33168 if ((ac__type_new_ *) 0)
33169   return 0;
33170 if (sizeof (ac__type_new_))
33171   return 0;
33172   ;
33173   return 0;
33174 }
33175 _ACEOF
33176 rm -f conftest.$ac_objext
33177 if { (ac_try="$ac_compile"
33178 case "(($ac_try" in
33179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180   *) ac_try_echo=$ac_try;;
33181 esac
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183   (eval "$ac_compile") 2>conftest.er1
33184   ac_status=$?
33185   grep -v '^ *+' conftest.er1 >conftest.err
33186   rm -f conftest.er1
33187   cat conftest.err >&5
33188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189   (exit $ac_status); } && {
33190          test -z "$ac_c_werror_flag" ||
33191          test ! -s conftest.err
33192        } && test -s conftest.$ac_objext; then
33193   ac_cv_type_mode_t=yes
33194 else
33195   echo "$as_me: failed program was:" >&5
33196 sed 's/^/| /' conftest.$ac_ext >&5
33197
33198         ac_cv_type_mode_t=no
33199 fi
33200
33201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33202 fi
33203 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33204 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33205 if test $ac_cv_type_mode_t = yes; then
33206   :
33207 else
33208
33209 cat >>confdefs.h <<_ACEOF
33210 #define mode_t int
33211 _ACEOF
33212
33213 fi
33214
33215 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33216 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33217 if test "${ac_cv_type_uid_t+set}" = set; then
33218   echo $ECHO_N "(cached) $ECHO_C" >&6
33219 else
33220   cat >conftest.$ac_ext <<_ACEOF
33221 /* confdefs.h.  */
33222 _ACEOF
33223 cat confdefs.h >>conftest.$ac_ext
33224 cat >>conftest.$ac_ext <<_ACEOF
33225 /* end confdefs.h.  */
33226 #include <sys/types.h>
33227
33228 _ACEOF
33229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33230   $EGREP "uid_t" >/dev/null 2>&1; then
33231   ac_cv_type_uid_t=yes
33232 else
33233   ac_cv_type_uid_t=no
33234 fi
33235 rm -f conftest*
33236
33237 fi
33238 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33239 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33240 if test $ac_cv_type_uid_t = no; then
33241
33242 cat >>confdefs.h <<\_ACEOF
33243 #define uid_t int
33244 _ACEOF
33245
33246
33247 cat >>confdefs.h <<\_ACEOF
33248 #define gid_t int
33249 _ACEOF
33250
33251 fi
33252
33253 { echo "$as_me:$LINENO: checking for size_t" >&5
33254 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33255 if test "${ac_cv_type_size_t+set}" = set; then
33256   echo $ECHO_N "(cached) $ECHO_C" >&6
33257 else
33258   cat >conftest.$ac_ext <<_ACEOF
33259 /* confdefs.h.  */
33260 _ACEOF
33261 cat confdefs.h >>conftest.$ac_ext
33262 cat >>conftest.$ac_ext <<_ACEOF
33263 /* end confdefs.h.  */
33264 $ac_includes_default
33265 typedef size_t ac__type_new_;
33266 int
33267 main ()
33268 {
33269 if ((ac__type_new_ *) 0)
33270   return 0;
33271 if (sizeof (ac__type_new_))
33272   return 0;
33273   ;
33274   return 0;
33275 }
33276 _ACEOF
33277 rm -f conftest.$ac_objext
33278 if { (ac_try="$ac_compile"
33279 case "(($ac_try" in
33280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33281   *) ac_try_echo=$ac_try;;
33282 esac
33283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33284   (eval "$ac_compile") 2>conftest.er1
33285   ac_status=$?
33286   grep -v '^ *+' conftest.er1 >conftest.err
33287   rm -f conftest.er1
33288   cat conftest.err >&5
33289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290   (exit $ac_status); } && {
33291          test -z "$ac_c_werror_flag" ||
33292          test ! -s conftest.err
33293        } && test -s conftest.$ac_objext; then
33294   ac_cv_type_size_t=yes
33295 else
33296   echo "$as_me: failed program was:" >&5
33297 sed 's/^/| /' conftest.$ac_ext >&5
33298
33299         ac_cv_type_size_t=no
33300 fi
33301
33302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33303 fi
33304 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33305 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33306 if test $ac_cv_type_size_t = yes; then
33307   :
33308 else
33309
33310 cat >>confdefs.h <<_ACEOF
33311 #define size_t unsigned int
33312 _ACEOF
33313
33314 fi
33315
33316 { echo "$as_me:$LINENO: checking for pid_t" >&5
33317 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33318 if test "${ac_cv_type_pid_t+set}" = set; then
33319   echo $ECHO_N "(cached) $ECHO_C" >&6
33320 else
33321   cat >conftest.$ac_ext <<_ACEOF
33322 /* confdefs.h.  */
33323 _ACEOF
33324 cat confdefs.h >>conftest.$ac_ext
33325 cat >>conftest.$ac_ext <<_ACEOF
33326 /* end confdefs.h.  */
33327 $ac_includes_default
33328 typedef pid_t ac__type_new_;
33329 int
33330 main ()
33331 {
33332 if ((ac__type_new_ *) 0)
33333   return 0;
33334 if (sizeof (ac__type_new_))
33335   return 0;
33336   ;
33337   return 0;
33338 }
33339 _ACEOF
33340 rm -f conftest.$ac_objext
33341 if { (ac_try="$ac_compile"
33342 case "(($ac_try" in
33343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33344   *) ac_try_echo=$ac_try;;
33345 esac
33346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33347   (eval "$ac_compile") 2>conftest.er1
33348   ac_status=$?
33349   grep -v '^ *+' conftest.er1 >conftest.err
33350   rm -f conftest.er1
33351   cat conftest.err >&5
33352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353   (exit $ac_status); } && {
33354          test -z "$ac_c_werror_flag" ||
33355          test ! -s conftest.err
33356        } && test -s conftest.$ac_objext; then
33357   ac_cv_type_pid_t=yes
33358 else
33359   echo "$as_me: failed program was:" >&5
33360 sed 's/^/| /' conftest.$ac_ext >&5
33361
33362         ac_cv_type_pid_t=no
33363 fi
33364
33365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33366 fi
33367 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33368 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33369 if test $ac_cv_type_pid_t = yes; then
33370   :
33371 else
33372
33373 cat >>confdefs.h <<_ACEOF
33374 #define pid_t int
33375 _ACEOF
33376
33377 fi
33378
33379 { echo "$as_me:$LINENO: checking for off_t" >&5
33380 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33381 if test "${ac_cv_type_off_t+set}" = set; then
33382   echo $ECHO_N "(cached) $ECHO_C" >&6
33383 else
33384   cat >conftest.$ac_ext <<_ACEOF
33385 /* confdefs.h.  */
33386 _ACEOF
33387 cat confdefs.h >>conftest.$ac_ext
33388 cat >>conftest.$ac_ext <<_ACEOF
33389 /* end confdefs.h.  */
33390 $ac_includes_default
33391 typedef off_t ac__type_new_;
33392 int
33393 main ()
33394 {
33395 if ((ac__type_new_ *) 0)
33396   return 0;
33397 if (sizeof (ac__type_new_))
33398   return 0;
33399   ;
33400   return 0;
33401 }
33402 _ACEOF
33403 rm -f conftest.$ac_objext
33404 if { (ac_try="$ac_compile"
33405 case "(($ac_try" in
33406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33407   *) ac_try_echo=$ac_try;;
33408 esac
33409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33410   (eval "$ac_compile") 2>conftest.er1
33411   ac_status=$?
33412   grep -v '^ *+' conftest.er1 >conftest.err
33413   rm -f conftest.er1
33414   cat conftest.err >&5
33415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416   (exit $ac_status); } && {
33417          test -z "$ac_c_werror_flag" ||
33418          test ! -s conftest.err
33419        } && test -s conftest.$ac_objext; then
33420   ac_cv_type_off_t=yes
33421 else
33422   echo "$as_me: failed program was:" >&5
33423 sed 's/^/| /' conftest.$ac_ext >&5
33424
33425         ac_cv_type_off_t=no
33426 fi
33427
33428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33429 fi
33430 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33431 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33432 if test $ac_cv_type_off_t = yes; then
33433   :
33434 else
33435
33436 cat >>confdefs.h <<_ACEOF
33437 #define off_t long int
33438 _ACEOF
33439
33440 fi
33441
33442 { echo "$as_me:$LINENO: checking for ino_t" >&5
33443 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33444 if test "${ac_cv_type_ino_t+set}" = set; then
33445   echo $ECHO_N "(cached) $ECHO_C" >&6
33446 else
33447   cat >conftest.$ac_ext <<_ACEOF
33448 /* confdefs.h.  */
33449 _ACEOF
33450 cat confdefs.h >>conftest.$ac_ext
33451 cat >>conftest.$ac_ext <<_ACEOF
33452 /* end confdefs.h.  */
33453 $ac_includes_default
33454 typedef ino_t ac__type_new_;
33455 int
33456 main ()
33457 {
33458 if ((ac__type_new_ *) 0)
33459   return 0;
33460 if (sizeof (ac__type_new_))
33461   return 0;
33462   ;
33463   return 0;
33464 }
33465 _ACEOF
33466 rm -f conftest.$ac_objext
33467 if { (ac_try="$ac_compile"
33468 case "(($ac_try" in
33469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470   *) ac_try_echo=$ac_try;;
33471 esac
33472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473   (eval "$ac_compile") 2>conftest.er1
33474   ac_status=$?
33475   grep -v '^ *+' conftest.er1 >conftest.err
33476   rm -f conftest.er1
33477   cat conftest.err >&5
33478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479   (exit $ac_status); } && {
33480          test -z "$ac_c_werror_flag" ||
33481          test ! -s conftest.err
33482        } && test -s conftest.$ac_objext; then
33483   ac_cv_type_ino_t=yes
33484 else
33485   echo "$as_me: failed program was:" >&5
33486 sed 's/^/| /' conftest.$ac_ext >&5
33487
33488         ac_cv_type_ino_t=no
33489 fi
33490
33491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33492 fi
33493 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33494 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33495 if test $ac_cv_type_ino_t = yes; then
33496   :
33497 else
33498
33499 cat >>confdefs.h <<_ACEOF
33500 #define ino_t unsigned long
33501 _ACEOF
33502
33503 fi
33504
33505 { echo "$as_me:$LINENO: checking for dev_t" >&5
33506 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33507 if test "${ac_cv_type_dev_t+set}" = set; then
33508   echo $ECHO_N "(cached) $ECHO_C" >&6
33509 else
33510   cat >conftest.$ac_ext <<_ACEOF
33511 /* confdefs.h.  */
33512 _ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h.  */
33516 $ac_includes_default
33517 typedef dev_t ac__type_new_;
33518 int
33519 main ()
33520 {
33521 if ((ac__type_new_ *) 0)
33522   return 0;
33523 if (sizeof (ac__type_new_))
33524   return 0;
33525   ;
33526   return 0;
33527 }
33528 _ACEOF
33529 rm -f conftest.$ac_objext
33530 if { (ac_try="$ac_compile"
33531 case "(($ac_try" in
33532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33533   *) ac_try_echo=$ac_try;;
33534 esac
33535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33536   (eval "$ac_compile") 2>conftest.er1
33537   ac_status=$?
33538   grep -v '^ *+' conftest.er1 >conftest.err
33539   rm -f conftest.er1
33540   cat conftest.err >&5
33541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542   (exit $ac_status); } && {
33543          test -z "$ac_c_werror_flag" ||
33544          test ! -s conftest.err
33545        } && test -s conftest.$ac_objext; then
33546   ac_cv_type_dev_t=yes
33547 else
33548   echo "$as_me: failed program was:" >&5
33549 sed 's/^/| /' conftest.$ac_ext >&5
33550
33551         ac_cv_type_dev_t=no
33552 fi
33553
33554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33555 fi
33556 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33557 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33558 if test $ac_cv_type_dev_t = yes; then
33559   :
33560 else
33561
33562 cat >>confdefs.h <<_ACEOF
33563 #define dev_t unsigned long
33564 _ACEOF
33565
33566 fi
33567
33568 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33569 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33570 if test "${ac_cv_type_daddr_t+set}" = set; then
33571   echo $ECHO_N "(cached) $ECHO_C" >&6
33572 else
33573   cat >conftest.$ac_ext <<_ACEOF
33574 /* confdefs.h.  */
33575 _ACEOF
33576 cat confdefs.h >>conftest.$ac_ext
33577 cat >>conftest.$ac_ext <<_ACEOF
33578 /* end confdefs.h.  */
33579 $ac_includes_default
33580 typedef daddr_t ac__type_new_;
33581 int
33582 main ()
33583 {
33584 if ((ac__type_new_ *) 0)
33585   return 0;
33586 if (sizeof (ac__type_new_))
33587   return 0;
33588   ;
33589   return 0;
33590 }
33591 _ACEOF
33592 rm -f conftest.$ac_objext
33593 if { (ac_try="$ac_compile"
33594 case "(($ac_try" in
33595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33596   *) ac_try_echo=$ac_try;;
33597 esac
33598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33599   (eval "$ac_compile") 2>conftest.er1
33600   ac_status=$?
33601   grep -v '^ *+' conftest.er1 >conftest.err
33602   rm -f conftest.er1
33603   cat conftest.err >&5
33604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605   (exit $ac_status); } && {
33606          test -z "$ac_c_werror_flag" ||
33607          test ! -s conftest.err
33608        } && test -s conftest.$ac_objext; then
33609   ac_cv_type_daddr_t=yes
33610 else
33611   echo "$as_me: failed program was:" >&5
33612 sed 's/^/| /' conftest.$ac_ext >&5
33613
33614         ac_cv_type_daddr_t=no
33615 fi
33616
33617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33618 fi
33619 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33620 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33621 if test $ac_cv_type_daddr_t = yes; then
33622   :
33623 else
33624
33625 cat >>confdefs.h <<_ACEOF
33626 #define daddr_t long
33627 _ACEOF
33628
33629 fi
33630
33631 { echo "$as_me:$LINENO: checking for major_t" >&5
33632 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33633 if test "${ac_cv_type_major_t+set}" = set; then
33634   echo $ECHO_N "(cached) $ECHO_C" >&6
33635 else
33636   cat >conftest.$ac_ext <<_ACEOF
33637 /* confdefs.h.  */
33638 _ACEOF
33639 cat confdefs.h >>conftest.$ac_ext
33640 cat >>conftest.$ac_ext <<_ACEOF
33641 /* end confdefs.h.  */
33642 $ac_includes_default
33643 typedef major_t ac__type_new_;
33644 int
33645 main ()
33646 {
33647 if ((ac__type_new_ *) 0)
33648   return 0;
33649 if (sizeof (ac__type_new_))
33650   return 0;
33651   ;
33652   return 0;
33653 }
33654 _ACEOF
33655 rm -f conftest.$ac_objext
33656 if { (ac_try="$ac_compile"
33657 case "(($ac_try" in
33658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33659   *) ac_try_echo=$ac_try;;
33660 esac
33661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33662   (eval "$ac_compile") 2>conftest.er1
33663   ac_status=$?
33664   grep -v '^ *+' conftest.er1 >conftest.err
33665   rm -f conftest.er1
33666   cat conftest.err >&5
33667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668   (exit $ac_status); } && {
33669          test -z "$ac_c_werror_flag" ||
33670          test ! -s conftest.err
33671        } && test -s conftest.$ac_objext; then
33672   ac_cv_type_major_t=yes
33673 else
33674   echo "$as_me: failed program was:" >&5
33675 sed 's/^/| /' conftest.$ac_ext >&5
33676
33677         ac_cv_type_major_t=no
33678 fi
33679
33680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33681 fi
33682 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33683 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33684 if test $ac_cv_type_major_t = yes; then
33685   :
33686 else
33687
33688 cat >>confdefs.h <<_ACEOF
33689 #define major_t int
33690 _ACEOF
33691
33692 fi
33693
33694 { echo "$as_me:$LINENO: checking for minor_t" >&5
33695 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33696 if test "${ac_cv_type_minor_t+set}" = set; then
33697   echo $ECHO_N "(cached) $ECHO_C" >&6
33698 else
33699   cat >conftest.$ac_ext <<_ACEOF
33700 /* confdefs.h.  */
33701 _ACEOF
33702 cat confdefs.h >>conftest.$ac_ext
33703 cat >>conftest.$ac_ext <<_ACEOF
33704 /* end confdefs.h.  */
33705 $ac_includes_default
33706 typedef minor_t ac__type_new_;
33707 int
33708 main ()
33709 {
33710 if ((ac__type_new_ *) 0)
33711   return 0;
33712 if (sizeof (ac__type_new_))
33713   return 0;
33714   ;
33715   return 0;
33716 }
33717 _ACEOF
33718 rm -f conftest.$ac_objext
33719 if { (ac_try="$ac_compile"
33720 case "(($ac_try" in
33721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33722   *) ac_try_echo=$ac_try;;
33723 esac
33724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33725   (eval "$ac_compile") 2>conftest.er1
33726   ac_status=$?
33727   grep -v '^ *+' conftest.er1 >conftest.err
33728   rm -f conftest.er1
33729   cat conftest.err >&5
33730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731   (exit $ac_status); } && {
33732          test -z "$ac_c_werror_flag" ||
33733          test ! -s conftest.err
33734        } && test -s conftest.$ac_objext; then
33735   ac_cv_type_minor_t=yes
33736 else
33737   echo "$as_me: failed program was:" >&5
33738 sed 's/^/| /' conftest.$ac_ext >&5
33739
33740         ac_cv_type_minor_t=no
33741 fi
33742
33743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33744 fi
33745 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33746 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33747 if test $ac_cv_type_minor_t = yes; then
33748   :
33749 else
33750
33751 cat >>confdefs.h <<_ACEOF
33752 #define minor_t int
33753 _ACEOF
33754
33755 fi
33756
33757 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33758 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33759 if test "${ac_cv_type_ssize_t+set}" = set; then
33760   echo $ECHO_N "(cached) $ECHO_C" >&6
33761 else
33762   cat >conftest.$ac_ext <<_ACEOF
33763 /* confdefs.h.  */
33764 _ACEOF
33765 cat confdefs.h >>conftest.$ac_ext
33766 cat >>conftest.$ac_ext <<_ACEOF
33767 /* end confdefs.h.  */
33768 $ac_includes_default
33769 typedef ssize_t ac__type_new_;
33770 int
33771 main ()
33772 {
33773 if ((ac__type_new_ *) 0)
33774   return 0;
33775 if (sizeof (ac__type_new_))
33776   return 0;
33777   ;
33778   return 0;
33779 }
33780 _ACEOF
33781 rm -f conftest.$ac_objext
33782 if { (ac_try="$ac_compile"
33783 case "(($ac_try" in
33784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33785   *) ac_try_echo=$ac_try;;
33786 esac
33787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33788   (eval "$ac_compile") 2>conftest.er1
33789   ac_status=$?
33790   grep -v '^ *+' conftest.er1 >conftest.err
33791   rm -f conftest.er1
33792   cat conftest.err >&5
33793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794   (exit $ac_status); } && {
33795          test -z "$ac_c_werror_flag" ||
33796          test ! -s conftest.err
33797        } && test -s conftest.$ac_objext; then
33798   ac_cv_type_ssize_t=yes
33799 else
33800   echo "$as_me: failed program was:" >&5
33801 sed 's/^/| /' conftest.$ac_ext >&5
33802
33803         ac_cv_type_ssize_t=no
33804 fi
33805
33806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33807 fi
33808 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33809 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33810 if test $ac_cv_type_ssize_t = yes; then
33811   :
33812 else
33813
33814 cat >>confdefs.h <<_ACEOF
33815 #define ssize_t int
33816 _ACEOF
33817
33818 fi
33819
33820 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33821 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33822 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33823   echo $ECHO_N "(cached) $ECHO_C" >&6
33824 else
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 (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         cat >conftest.$ac_ext <<_ACEOF
33865 /* confdefs.h.  */
33866 _ACEOF
33867 cat confdefs.h >>conftest.$ac_ext
33868 cat >>conftest.$ac_ext <<_ACEOF
33869 /* end confdefs.h.  */
33870 $ac_includes_default
33871 int
33872 main ()
33873 {
33874 static struct stat ac_aggr;
33875 if (sizeof ac_aggr.st_blocks)
33876 return 0;
33877   ;
33878   return 0;
33879 }
33880 _ACEOF
33881 rm -f conftest.$ac_objext
33882 if { (ac_try="$ac_compile"
33883 case "(($ac_try" in
33884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33885   *) ac_try_echo=$ac_try;;
33886 esac
33887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33888   (eval "$ac_compile") 2>conftest.er1
33889   ac_status=$?
33890   grep -v '^ *+' conftest.er1 >conftest.err
33891   rm -f conftest.er1
33892   cat conftest.err >&5
33893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894   (exit $ac_status); } && {
33895          test -z "$ac_c_werror_flag" ||
33896          test ! -s conftest.err
33897        } && test -s conftest.$ac_objext; then
33898   ac_cv_member_struct_stat_st_blocks=yes
33899 else
33900   echo "$as_me: failed program was:" >&5
33901 sed 's/^/| /' conftest.$ac_ext >&5
33902
33903         ac_cv_member_struct_stat_st_blocks=no
33904 fi
33905
33906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33907 fi
33908
33909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33910 fi
33911 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33912 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33913 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33914
33915 cat >>confdefs.h <<_ACEOF
33916 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33917 _ACEOF
33918
33919
33920 cat >>confdefs.h <<\_ACEOF
33921 #define HAVE_ST_BLOCKS 1
33922 _ACEOF
33923
33924 else
33925   case " $LIBOBJS " in
33926   *" fileblocks.$ac_objext "* ) ;;
33927   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33928  ;;
33929 esac
33930
33931 fi
33932
33933
33934 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33935 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33936 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33937   echo $ECHO_N "(cached) $ECHO_C" >&6
33938 else
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 (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         cat >conftest.$ac_ext <<_ACEOF
33979 /* confdefs.h.  */
33980 _ACEOF
33981 cat confdefs.h >>conftest.$ac_ext
33982 cat >>conftest.$ac_ext <<_ACEOF
33983 /* end confdefs.h.  */
33984 $ac_includes_default
33985 int
33986 main ()
33987 {
33988 static struct stat ac_aggr;
33989 if (sizeof ac_aggr.st_rdev)
33990 return 0;
33991   ;
33992   return 0;
33993 }
33994 _ACEOF
33995 rm -f conftest.$ac_objext
33996 if { (ac_try="$ac_compile"
33997 case "(($ac_try" in
33998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33999   *) ac_try_echo=$ac_try;;
34000 esac
34001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34002   (eval "$ac_compile") 2>conftest.er1
34003   ac_status=$?
34004   grep -v '^ *+' conftest.er1 >conftest.err
34005   rm -f conftest.er1
34006   cat conftest.err >&5
34007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008   (exit $ac_status); } && {
34009          test -z "$ac_c_werror_flag" ||
34010          test ! -s conftest.err
34011        } && test -s conftest.$ac_objext; then
34012   ac_cv_member_struct_stat_st_rdev=yes
34013 else
34014   echo "$as_me: failed program was:" >&5
34015 sed 's/^/| /' conftest.$ac_ext >&5
34016
34017         ac_cv_member_struct_stat_st_rdev=no
34018 fi
34019
34020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34021 fi
34022
34023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34024 fi
34025 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34026 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34027 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34028
34029 cat >>confdefs.h <<_ACEOF
34030 #define HAVE_STRUCT_STAT_ST_RDEV 1
34031 _ACEOF
34032
34033
34034 cat >>confdefs.h <<\_ACEOF
34035 #define HAVE_ST_RDEV 1
34036 _ACEOF
34037
34038 fi
34039
34040
34041 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34042 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34043 if test "${ac_cv_struct_tm+set}" = set; then
34044   echo $ECHO_N "(cached) $ECHO_C" >&6
34045 else
34046   cat >conftest.$ac_ext <<_ACEOF
34047 /* confdefs.h.  */
34048 _ACEOF
34049 cat confdefs.h >>conftest.$ac_ext
34050 cat >>conftest.$ac_ext <<_ACEOF
34051 /* end confdefs.h.  */
34052 #include <sys/types.h>
34053 #include <time.h>
34054
34055 int
34056 main ()
34057 {
34058 struct tm tm;
34059                                      int *p = &tm.tm_sec;
34060                                      return !p;
34061   ;
34062   return 0;
34063 }
34064 _ACEOF
34065 rm -f conftest.$ac_objext
34066 if { (ac_try="$ac_compile"
34067 case "(($ac_try" in
34068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34069   *) ac_try_echo=$ac_try;;
34070 esac
34071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34072   (eval "$ac_compile") 2>conftest.er1
34073   ac_status=$?
34074   grep -v '^ *+' conftest.er1 >conftest.err
34075   rm -f conftest.er1
34076   cat conftest.err >&5
34077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078   (exit $ac_status); } && {
34079          test -z "$ac_c_werror_flag" ||
34080          test ! -s conftest.err
34081        } && test -s conftest.$ac_objext; then
34082   ac_cv_struct_tm=time.h
34083 else
34084   echo "$as_me: failed program was:" >&5
34085 sed 's/^/| /' conftest.$ac_ext >&5
34086
34087         ac_cv_struct_tm=sys/time.h
34088 fi
34089
34090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34091 fi
34092 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34093 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34094 if test $ac_cv_struct_tm = sys/time.h; then
34095
34096 cat >>confdefs.h <<\_ACEOF
34097 #define TM_IN_SYS_TIME 1
34098 _ACEOF
34099
34100 fi
34101
34102 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34103 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34104 if test "${ac_cv_c_const+set}" = set; then
34105   echo $ECHO_N "(cached) $ECHO_C" >&6
34106 else
34107   cat >conftest.$ac_ext <<_ACEOF
34108 /* confdefs.h.  */
34109 _ACEOF
34110 cat confdefs.h >>conftest.$ac_ext
34111 cat >>conftest.$ac_ext <<_ACEOF
34112 /* end confdefs.h.  */
34113
34114 int
34115 main ()
34116 {
34117 /* FIXME: Include the comments suggested by Paul. */
34118 #ifndef __cplusplus
34119   /* Ultrix mips cc rejects this.  */
34120   typedef int charset[2];
34121   const charset cs;
34122   /* SunOS 4.1.1 cc rejects this.  */
34123   char const *const *pcpcc;
34124   char **ppc;
34125   /* NEC SVR4.0.2 mips cc rejects this.  */
34126   struct point {int x, y;};
34127   static struct point const zero = {0,0};
34128   /* AIX XL C 1.02.0.0 rejects this.
34129      It does not let you subtract one const X* pointer from another in
34130      an arm of an if-expression whose if-part is not a constant
34131      expression */
34132   const char *g = "string";
34133   pcpcc = &g + (g ? g-g : 0);
34134   /* HPUX 7.0 cc rejects these. */
34135   ++pcpcc;
34136   ppc = (char**) pcpcc;
34137   pcpcc = (char const *const *) ppc;
34138   { /* SCO 3.2v4 cc rejects this.  */
34139     char *t;
34140     char const *s = 0 ? (char *) 0 : (char const *) 0;
34141
34142     *t++ = 0;
34143     if (s) return 0;
34144   }
34145   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34146     int x[] = {25, 17};
34147     const int *foo = &x[0];
34148     ++foo;
34149   }
34150   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34151     typedef const int *iptr;
34152     iptr p = 0;
34153     ++p;
34154   }
34155   { /* AIX XL C 1.02.0.0 rejects this saying
34156        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34157     struct s { int j; const int *ap[3]; };
34158     struct s *b; b->j = 5;
34159   }
34160   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34161     const int foo = 10;
34162     if (!foo) return 0;
34163   }
34164   return !cs[0] && !zero.x;
34165 #endif
34166
34167   ;
34168   return 0;
34169 }
34170 _ACEOF
34171 rm -f conftest.$ac_objext
34172 if { (ac_try="$ac_compile"
34173 case "(($ac_try" in
34174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34175   *) ac_try_echo=$ac_try;;
34176 esac
34177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34178   (eval "$ac_compile") 2>conftest.er1
34179   ac_status=$?
34180   grep -v '^ *+' conftest.er1 >conftest.err
34181   rm -f conftest.er1
34182   cat conftest.err >&5
34183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184   (exit $ac_status); } && {
34185          test -z "$ac_c_werror_flag" ||
34186          test ! -s conftest.err
34187        } && test -s conftest.$ac_objext; then
34188   ac_cv_c_const=yes
34189 else
34190   echo "$as_me: failed program was:" >&5
34191 sed 's/^/| /' conftest.$ac_ext >&5
34192
34193         ac_cv_c_const=no
34194 fi
34195
34196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34197 fi
34198 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34199 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34200 if test $ac_cv_c_const = no; then
34201
34202 cat >>confdefs.h <<\_ACEOF
34203 #define const
34204 _ACEOF
34205
34206 fi
34207
34208
34209 { echo "$as_me:$LINENO: checking for char" >&5
34210 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34211 if test "${ac_cv_type_char+set}" = set; then
34212   echo $ECHO_N "(cached) $ECHO_C" >&6
34213 else
34214   cat >conftest.$ac_ext <<_ACEOF
34215 /* confdefs.h.  */
34216 _ACEOF
34217 cat confdefs.h >>conftest.$ac_ext
34218 cat >>conftest.$ac_ext <<_ACEOF
34219 /* end confdefs.h.  */
34220 $ac_includes_default
34221 typedef char ac__type_new_;
34222 int
34223 main ()
34224 {
34225 if ((ac__type_new_ *) 0)
34226   return 0;
34227 if (sizeof (ac__type_new_))
34228   return 0;
34229   ;
34230   return 0;
34231 }
34232 _ACEOF
34233 rm -f conftest.$ac_objext
34234 if { (ac_try="$ac_compile"
34235 case "(($ac_try" in
34236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34237   *) ac_try_echo=$ac_try;;
34238 esac
34239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34240   (eval "$ac_compile") 2>conftest.er1
34241   ac_status=$?
34242   grep -v '^ *+' conftest.er1 >conftest.err
34243   rm -f conftest.er1
34244   cat conftest.err >&5
34245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246   (exit $ac_status); } && {
34247          test -z "$ac_c_werror_flag" ||
34248          test ! -s conftest.err
34249        } && test -s conftest.$ac_objext; then
34250   ac_cv_type_char=yes
34251 else
34252   echo "$as_me: failed program was:" >&5
34253 sed 's/^/| /' conftest.$ac_ext >&5
34254
34255         ac_cv_type_char=no
34256 fi
34257
34258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34259 fi
34260 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34261 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34262
34263 # The cast to long int works around a bug in the HP C Compiler
34264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34266 # This bug is HP SR number 8606223364.
34267 { echo "$as_me:$LINENO: checking size of char" >&5
34268 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34269 if test "${ac_cv_sizeof_char+set}" = set; then
34270   echo $ECHO_N "(cached) $ECHO_C" >&6
34271 else
34272   if test "$cross_compiling" = yes; then
34273   # Depending upon the size, compute the lo and hi bounds.
34274 cat >conftest.$ac_ext <<_ACEOF
34275 /* confdefs.h.  */
34276 _ACEOF
34277 cat confdefs.h >>conftest.$ac_ext
34278 cat >>conftest.$ac_ext <<_ACEOF
34279 /* end confdefs.h.  */
34280 $ac_includes_default
34281    typedef char ac__type_sizeof_;
34282 int
34283 main ()
34284 {
34285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34286 test_array [0] = 0
34287
34288   ;
34289   return 0;
34290 }
34291 _ACEOF
34292 rm -f conftest.$ac_objext
34293 if { (ac_try="$ac_compile"
34294 case "(($ac_try" in
34295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34296   *) ac_try_echo=$ac_try;;
34297 esac
34298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34299   (eval "$ac_compile") 2>conftest.er1
34300   ac_status=$?
34301   grep -v '^ *+' conftest.er1 >conftest.err
34302   rm -f conftest.er1
34303   cat conftest.err >&5
34304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305   (exit $ac_status); } && {
34306          test -z "$ac_c_werror_flag" ||
34307          test ! -s conftest.err
34308        } && test -s conftest.$ac_objext; then
34309   ac_lo=0 ac_mid=0
34310   while :; do
34311     cat >conftest.$ac_ext <<_ACEOF
34312 /* confdefs.h.  */
34313 _ACEOF
34314 cat confdefs.h >>conftest.$ac_ext
34315 cat >>conftest.$ac_ext <<_ACEOF
34316 /* end confdefs.h.  */
34317 $ac_includes_default
34318    typedef char ac__type_sizeof_;
34319 int
34320 main ()
34321 {
34322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34323 test_array [0] = 0
34324
34325   ;
34326   return 0;
34327 }
34328 _ACEOF
34329 rm -f conftest.$ac_objext
34330 if { (ac_try="$ac_compile"
34331 case "(($ac_try" in
34332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34333   *) ac_try_echo=$ac_try;;
34334 esac
34335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34336   (eval "$ac_compile") 2>conftest.er1
34337   ac_status=$?
34338   grep -v '^ *+' conftest.er1 >conftest.err
34339   rm -f conftest.er1
34340   cat conftest.err >&5
34341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342   (exit $ac_status); } && {
34343          test -z "$ac_c_werror_flag" ||
34344          test ! -s conftest.err
34345        } && test -s conftest.$ac_objext; then
34346   ac_hi=$ac_mid; break
34347 else
34348   echo "$as_me: failed program was:" >&5
34349 sed 's/^/| /' conftest.$ac_ext >&5
34350
34351         ac_lo=`expr $ac_mid + 1`
34352                         if test $ac_lo -le $ac_mid; then
34353                           ac_lo= ac_hi=
34354                           break
34355                         fi
34356                         ac_mid=`expr 2 '*' $ac_mid + 1`
34357 fi
34358
34359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34360   done
34361 else
34362   echo "$as_me: failed program was:" >&5
34363 sed 's/^/| /' conftest.$ac_ext >&5
34364
34365         cat >conftest.$ac_ext <<_ACEOF
34366 /* confdefs.h.  */
34367 _ACEOF
34368 cat confdefs.h >>conftest.$ac_ext
34369 cat >>conftest.$ac_ext <<_ACEOF
34370 /* end confdefs.h.  */
34371 $ac_includes_default
34372    typedef char ac__type_sizeof_;
34373 int
34374 main ()
34375 {
34376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34377 test_array [0] = 0
34378
34379   ;
34380   return 0;
34381 }
34382 _ACEOF
34383 rm -f conftest.$ac_objext
34384 if { (ac_try="$ac_compile"
34385 case "(($ac_try" in
34386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387   *) ac_try_echo=$ac_try;;
34388 esac
34389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34390   (eval "$ac_compile") 2>conftest.er1
34391   ac_status=$?
34392   grep -v '^ *+' conftest.er1 >conftest.err
34393   rm -f conftest.er1
34394   cat conftest.err >&5
34395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396   (exit $ac_status); } && {
34397          test -z "$ac_c_werror_flag" ||
34398          test ! -s conftest.err
34399        } && test -s conftest.$ac_objext; then
34400   ac_hi=-1 ac_mid=-1
34401   while :; do
34402     cat >conftest.$ac_ext <<_ACEOF
34403 /* confdefs.h.  */
34404 _ACEOF
34405 cat confdefs.h >>conftest.$ac_ext
34406 cat >>conftest.$ac_ext <<_ACEOF
34407 /* end confdefs.h.  */
34408 $ac_includes_default
34409    typedef char ac__type_sizeof_;
34410 int
34411 main ()
34412 {
34413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34414 test_array [0] = 0
34415
34416   ;
34417   return 0;
34418 }
34419 _ACEOF
34420 rm -f conftest.$ac_objext
34421 if { (ac_try="$ac_compile"
34422 case "(($ac_try" in
34423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34424   *) ac_try_echo=$ac_try;;
34425 esac
34426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34427   (eval "$ac_compile") 2>conftest.er1
34428   ac_status=$?
34429   grep -v '^ *+' conftest.er1 >conftest.err
34430   rm -f conftest.er1
34431   cat conftest.err >&5
34432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433   (exit $ac_status); } && {
34434          test -z "$ac_c_werror_flag" ||
34435          test ! -s conftest.err
34436        } && test -s conftest.$ac_objext; then
34437   ac_lo=$ac_mid; break
34438 else
34439   echo "$as_me: failed program was:" >&5
34440 sed 's/^/| /' conftest.$ac_ext >&5
34441
34442         ac_hi=`expr '(' $ac_mid ')' - 1`
34443                         if test $ac_mid -le $ac_hi; then
34444                           ac_lo= ac_hi=
34445                           break
34446                         fi
34447                         ac_mid=`expr 2 '*' $ac_mid`
34448 fi
34449
34450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34451   done
34452 else
34453   echo "$as_me: failed program was:" >&5
34454 sed 's/^/| /' conftest.$ac_ext >&5
34455
34456         ac_lo= ac_hi=
34457 fi
34458
34459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34460 fi
34461
34462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34463 # Binary search between lo and hi bounds.
34464 while test "x$ac_lo" != "x$ac_hi"; do
34465   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34466   cat >conftest.$ac_ext <<_ACEOF
34467 /* confdefs.h.  */
34468 _ACEOF
34469 cat confdefs.h >>conftest.$ac_ext
34470 cat >>conftest.$ac_ext <<_ACEOF
34471 /* end confdefs.h.  */
34472 $ac_includes_default
34473    typedef char ac__type_sizeof_;
34474 int
34475 main ()
34476 {
34477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34478 test_array [0] = 0
34479
34480   ;
34481   return 0;
34482 }
34483 _ACEOF
34484 rm -f conftest.$ac_objext
34485 if { (ac_try="$ac_compile"
34486 case "(($ac_try" in
34487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34488   *) ac_try_echo=$ac_try;;
34489 esac
34490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34491   (eval "$ac_compile") 2>conftest.er1
34492   ac_status=$?
34493   grep -v '^ *+' conftest.er1 >conftest.err
34494   rm -f conftest.er1
34495   cat conftest.err >&5
34496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34497   (exit $ac_status); } && {
34498          test -z "$ac_c_werror_flag" ||
34499          test ! -s conftest.err
34500        } && test -s conftest.$ac_objext; then
34501   ac_hi=$ac_mid
34502 else
34503   echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34505
34506         ac_lo=`expr '(' $ac_mid ')' + 1`
34507 fi
34508
34509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34510 done
34511 case $ac_lo in
34512 ?*) ac_cv_sizeof_char=$ac_lo;;
34513 '') if test "$ac_cv_type_char" = yes; then
34514      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34515 See \`config.log' for more details." >&5
34516 echo "$as_me: error: cannot compute sizeof (char)
34517 See \`config.log' for more details." >&2;}
34518    { (exit 77); exit 77; }; }
34519    else
34520      ac_cv_sizeof_char=0
34521    fi ;;
34522 esac
34523 else
34524   cat >conftest.$ac_ext <<_ACEOF
34525 /* confdefs.h.  */
34526 _ACEOF
34527 cat confdefs.h >>conftest.$ac_ext
34528 cat >>conftest.$ac_ext <<_ACEOF
34529 /* end confdefs.h.  */
34530 $ac_includes_default
34531    typedef char ac__type_sizeof_;
34532 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34533 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34534 #include <stdio.h>
34535 #include <stdlib.h>
34536 int
34537 main ()
34538 {
34539
34540   FILE *f = fopen ("conftest.val", "w");
34541   if (! f)
34542     return 1;
34543   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34544     {
34545       long int i = longval ();
34546       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34547         return 1;
34548       fprintf (f, "%ld\n", i);
34549     }
34550   else
34551     {
34552       unsigned long int i = ulongval ();
34553       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34554         return 1;
34555       fprintf (f, "%lu\n", i);
34556     }
34557   return ferror (f) || fclose (f) != 0;
34558
34559   ;
34560   return 0;
34561 }
34562 _ACEOF
34563 rm -f conftest$ac_exeext
34564 if { (ac_try="$ac_link"
34565 case "(($ac_try" in
34566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34567   *) ac_try_echo=$ac_try;;
34568 esac
34569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34570   (eval "$ac_link") 2>&5
34571   ac_status=$?
34572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34574   { (case "(($ac_try" in
34575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34576   *) ac_try_echo=$ac_try;;
34577 esac
34578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34579   (eval "$ac_try") 2>&5
34580   ac_status=$?
34581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582   (exit $ac_status); }; }; then
34583   ac_cv_sizeof_char=`cat conftest.val`
34584 else
34585   echo "$as_me: program exited with status $ac_status" >&5
34586 echo "$as_me: failed program was:" >&5
34587 sed 's/^/| /' conftest.$ac_ext >&5
34588
34589 ( exit $ac_status )
34590 if test "$ac_cv_type_char" = yes; then
34591      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34592 See \`config.log' for more details." >&5
34593 echo "$as_me: error: cannot compute sizeof (char)
34594 See \`config.log' for more details." >&2;}
34595    { (exit 77); exit 77; }; }
34596    else
34597      ac_cv_sizeof_char=0
34598    fi
34599 fi
34600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34601 fi
34602 rm -f conftest.val
34603 fi
34604 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34605 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34606
34607
34608
34609 cat >>confdefs.h <<_ACEOF
34610 #define SIZEOF_CHAR $ac_cv_sizeof_char
34611 _ACEOF
34612
34613
34614 { echo "$as_me:$LINENO: checking for short int" >&5
34615 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34616 if test "${ac_cv_type_short_int+set}" = set; then
34617   echo $ECHO_N "(cached) $ECHO_C" >&6
34618 else
34619   cat >conftest.$ac_ext <<_ACEOF
34620 /* confdefs.h.  */
34621 _ACEOF
34622 cat confdefs.h >>conftest.$ac_ext
34623 cat >>conftest.$ac_ext <<_ACEOF
34624 /* end confdefs.h.  */
34625 $ac_includes_default
34626 typedef short int ac__type_new_;
34627 int
34628 main ()
34629 {
34630 if ((ac__type_new_ *) 0)
34631   return 0;
34632 if (sizeof (ac__type_new_))
34633   return 0;
34634   ;
34635   return 0;
34636 }
34637 _ACEOF
34638 rm -f conftest.$ac_objext
34639 if { (ac_try="$ac_compile"
34640 case "(($ac_try" in
34641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34642   *) ac_try_echo=$ac_try;;
34643 esac
34644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34645   (eval "$ac_compile") 2>conftest.er1
34646   ac_status=$?
34647   grep -v '^ *+' conftest.er1 >conftest.err
34648   rm -f conftest.er1
34649   cat conftest.err >&5
34650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651   (exit $ac_status); } && {
34652          test -z "$ac_c_werror_flag" ||
34653          test ! -s conftest.err
34654        } && test -s conftest.$ac_objext; then
34655   ac_cv_type_short_int=yes
34656 else
34657   echo "$as_me: failed program was:" >&5
34658 sed 's/^/| /' conftest.$ac_ext >&5
34659
34660         ac_cv_type_short_int=no
34661 fi
34662
34663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34664 fi
34665 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34666 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34667
34668 # The cast to long int works around a bug in the HP C Compiler
34669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34671 # This bug is HP SR number 8606223364.
34672 { echo "$as_me:$LINENO: checking size of short int" >&5
34673 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34674 if test "${ac_cv_sizeof_short_int+set}" = set; then
34675   echo $ECHO_N "(cached) $ECHO_C" >&6
34676 else
34677   if test "$cross_compiling" = yes; then
34678   # Depending upon the size, compute the lo and hi bounds.
34679 cat >conftest.$ac_ext <<_ACEOF
34680 /* confdefs.h.  */
34681 _ACEOF
34682 cat confdefs.h >>conftest.$ac_ext
34683 cat >>conftest.$ac_ext <<_ACEOF
34684 /* end confdefs.h.  */
34685 $ac_includes_default
34686    typedef short int ac__type_sizeof_;
34687 int
34688 main ()
34689 {
34690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34691 test_array [0] = 0
34692
34693   ;
34694   return 0;
34695 }
34696 _ACEOF
34697 rm -f conftest.$ac_objext
34698 if { (ac_try="$ac_compile"
34699 case "(($ac_try" in
34700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34701   *) ac_try_echo=$ac_try;;
34702 esac
34703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34704   (eval "$ac_compile") 2>conftest.er1
34705   ac_status=$?
34706   grep -v '^ *+' conftest.er1 >conftest.err
34707   rm -f conftest.er1
34708   cat conftest.err >&5
34709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710   (exit $ac_status); } && {
34711          test -z "$ac_c_werror_flag" ||
34712          test ! -s conftest.err
34713        } && test -s conftest.$ac_objext; then
34714   ac_lo=0 ac_mid=0
34715   while :; do
34716     cat >conftest.$ac_ext <<_ACEOF
34717 /* confdefs.h.  */
34718 _ACEOF
34719 cat confdefs.h >>conftest.$ac_ext
34720 cat >>conftest.$ac_ext <<_ACEOF
34721 /* end confdefs.h.  */
34722 $ac_includes_default
34723    typedef short int ac__type_sizeof_;
34724 int
34725 main ()
34726 {
34727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34728 test_array [0] = 0
34729
34730   ;
34731   return 0;
34732 }
34733 _ACEOF
34734 rm -f conftest.$ac_objext
34735 if { (ac_try="$ac_compile"
34736 case "(($ac_try" in
34737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34738   *) ac_try_echo=$ac_try;;
34739 esac
34740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34741   (eval "$ac_compile") 2>conftest.er1
34742   ac_status=$?
34743   grep -v '^ *+' conftest.er1 >conftest.err
34744   rm -f conftest.er1
34745   cat conftest.err >&5
34746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747   (exit $ac_status); } && {
34748          test -z "$ac_c_werror_flag" ||
34749          test ! -s conftest.err
34750        } && test -s conftest.$ac_objext; then
34751   ac_hi=$ac_mid; break
34752 else
34753   echo "$as_me: failed program was:" >&5
34754 sed 's/^/| /' conftest.$ac_ext >&5
34755
34756         ac_lo=`expr $ac_mid + 1`
34757                         if test $ac_lo -le $ac_mid; then
34758                           ac_lo= ac_hi=
34759                           break
34760                         fi
34761                         ac_mid=`expr 2 '*' $ac_mid + 1`
34762 fi
34763
34764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34765   done
34766 else
34767   echo "$as_me: failed program was:" >&5
34768 sed 's/^/| /' conftest.$ac_ext >&5
34769
34770         cat >conftest.$ac_ext <<_ACEOF
34771 /* confdefs.h.  */
34772 _ACEOF
34773 cat confdefs.h >>conftest.$ac_ext
34774 cat >>conftest.$ac_ext <<_ACEOF
34775 /* end confdefs.h.  */
34776 $ac_includes_default
34777    typedef short int ac__type_sizeof_;
34778 int
34779 main ()
34780 {
34781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34782 test_array [0] = 0
34783
34784   ;
34785   return 0;
34786 }
34787 _ACEOF
34788 rm -f conftest.$ac_objext
34789 if { (ac_try="$ac_compile"
34790 case "(($ac_try" in
34791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34792   *) ac_try_echo=$ac_try;;
34793 esac
34794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34795   (eval "$ac_compile") 2>conftest.er1
34796   ac_status=$?
34797   grep -v '^ *+' conftest.er1 >conftest.err
34798   rm -f conftest.er1
34799   cat conftest.err >&5
34800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801   (exit $ac_status); } && {
34802          test -z "$ac_c_werror_flag" ||
34803          test ! -s conftest.err
34804        } && test -s conftest.$ac_objext; then
34805   ac_hi=-1 ac_mid=-1
34806   while :; do
34807     cat >conftest.$ac_ext <<_ACEOF
34808 /* confdefs.h.  */
34809 _ACEOF
34810 cat confdefs.h >>conftest.$ac_ext
34811 cat >>conftest.$ac_ext <<_ACEOF
34812 /* end confdefs.h.  */
34813 $ac_includes_default
34814    typedef short int ac__type_sizeof_;
34815 int
34816 main ()
34817 {
34818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34819 test_array [0] = 0
34820
34821   ;
34822   return 0;
34823 }
34824 _ACEOF
34825 rm -f conftest.$ac_objext
34826 if { (ac_try="$ac_compile"
34827 case "(($ac_try" in
34828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34829   *) ac_try_echo=$ac_try;;
34830 esac
34831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34832   (eval "$ac_compile") 2>conftest.er1
34833   ac_status=$?
34834   grep -v '^ *+' conftest.er1 >conftest.err
34835   rm -f conftest.er1
34836   cat conftest.err >&5
34837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838   (exit $ac_status); } && {
34839          test -z "$ac_c_werror_flag" ||
34840          test ! -s conftest.err
34841        } && test -s conftest.$ac_objext; then
34842   ac_lo=$ac_mid; break
34843 else
34844   echo "$as_me: failed program was:" >&5
34845 sed 's/^/| /' conftest.$ac_ext >&5
34846
34847         ac_hi=`expr '(' $ac_mid ')' - 1`
34848                         if test $ac_mid -le $ac_hi; then
34849                           ac_lo= ac_hi=
34850                           break
34851                         fi
34852                         ac_mid=`expr 2 '*' $ac_mid`
34853 fi
34854
34855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34856   done
34857 else
34858   echo "$as_me: failed program was:" >&5
34859 sed 's/^/| /' conftest.$ac_ext >&5
34860
34861         ac_lo= ac_hi=
34862 fi
34863
34864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34865 fi
34866
34867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34868 # Binary search between lo and hi bounds.
34869 while test "x$ac_lo" != "x$ac_hi"; do
34870   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34871   cat >conftest.$ac_ext <<_ACEOF
34872 /* confdefs.h.  */
34873 _ACEOF
34874 cat confdefs.h >>conftest.$ac_ext
34875 cat >>conftest.$ac_ext <<_ACEOF
34876 /* end confdefs.h.  */
34877 $ac_includes_default
34878    typedef short int ac__type_sizeof_;
34879 int
34880 main ()
34881 {
34882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34883 test_array [0] = 0
34884
34885   ;
34886   return 0;
34887 }
34888 _ACEOF
34889 rm -f conftest.$ac_objext
34890 if { (ac_try="$ac_compile"
34891 case "(($ac_try" in
34892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34893   *) ac_try_echo=$ac_try;;
34894 esac
34895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34896   (eval "$ac_compile") 2>conftest.er1
34897   ac_status=$?
34898   grep -v '^ *+' conftest.er1 >conftest.err
34899   rm -f conftest.er1
34900   cat conftest.err >&5
34901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902   (exit $ac_status); } && {
34903          test -z "$ac_c_werror_flag" ||
34904          test ! -s conftest.err
34905        } && test -s conftest.$ac_objext; then
34906   ac_hi=$ac_mid
34907 else
34908   echo "$as_me: failed program was:" >&5
34909 sed 's/^/| /' conftest.$ac_ext >&5
34910
34911         ac_lo=`expr '(' $ac_mid ')' + 1`
34912 fi
34913
34914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34915 done
34916 case $ac_lo in
34917 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34918 '') if test "$ac_cv_type_short_int" = yes; then
34919      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34920 See \`config.log' for more details." >&5
34921 echo "$as_me: error: cannot compute sizeof (short int)
34922 See \`config.log' for more details." >&2;}
34923    { (exit 77); exit 77; }; }
34924    else
34925      ac_cv_sizeof_short_int=0
34926    fi ;;
34927 esac
34928 else
34929   cat >conftest.$ac_ext <<_ACEOF
34930 /* confdefs.h.  */
34931 _ACEOF
34932 cat confdefs.h >>conftest.$ac_ext
34933 cat >>conftest.$ac_ext <<_ACEOF
34934 /* end confdefs.h.  */
34935 $ac_includes_default
34936    typedef short int ac__type_sizeof_;
34937 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34938 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34939 #include <stdio.h>
34940 #include <stdlib.h>
34941 int
34942 main ()
34943 {
34944
34945   FILE *f = fopen ("conftest.val", "w");
34946   if (! f)
34947     return 1;
34948   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34949     {
34950       long int i = longval ();
34951       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34952         return 1;
34953       fprintf (f, "%ld\n", i);
34954     }
34955   else
34956     {
34957       unsigned long int i = ulongval ();
34958       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34959         return 1;
34960       fprintf (f, "%lu\n", i);
34961     }
34962   return ferror (f) || fclose (f) != 0;
34963
34964   ;
34965   return 0;
34966 }
34967 _ACEOF
34968 rm -f conftest$ac_exeext
34969 if { (ac_try="$ac_link"
34970 case "(($ac_try" in
34971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34972   *) ac_try_echo=$ac_try;;
34973 esac
34974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34975   (eval "$ac_link") 2>&5
34976   ac_status=$?
34977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34979   { (case "(($ac_try" in
34980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34981   *) ac_try_echo=$ac_try;;
34982 esac
34983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34984   (eval "$ac_try") 2>&5
34985   ac_status=$?
34986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987   (exit $ac_status); }; }; then
34988   ac_cv_sizeof_short_int=`cat conftest.val`
34989 else
34990   echo "$as_me: program exited with status $ac_status" >&5
34991 echo "$as_me: failed program was:" >&5
34992 sed 's/^/| /' conftest.$ac_ext >&5
34993
34994 ( exit $ac_status )
34995 if test "$ac_cv_type_short_int" = yes; then
34996      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34997 See \`config.log' for more details." >&5
34998 echo "$as_me: error: cannot compute sizeof (short int)
34999 See \`config.log' for more details." >&2;}
35000    { (exit 77); exit 77; }; }
35001    else
35002      ac_cv_sizeof_short_int=0
35003    fi
35004 fi
35005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35006 fi
35007 rm -f conftest.val
35008 fi
35009 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35010 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35011
35012
35013
35014 cat >>confdefs.h <<_ACEOF
35015 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35016 _ACEOF
35017
35018
35019 { echo "$as_me:$LINENO: checking for int" >&5
35020 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35021 if test "${ac_cv_type_int+set}" = set; then
35022   echo $ECHO_N "(cached) $ECHO_C" >&6
35023 else
35024   cat >conftest.$ac_ext <<_ACEOF
35025 /* confdefs.h.  */
35026 _ACEOF
35027 cat confdefs.h >>conftest.$ac_ext
35028 cat >>conftest.$ac_ext <<_ACEOF
35029 /* end confdefs.h.  */
35030 $ac_includes_default
35031 typedef int ac__type_new_;
35032 int
35033 main ()
35034 {
35035 if ((ac__type_new_ *) 0)
35036   return 0;
35037 if (sizeof (ac__type_new_))
35038   return 0;
35039   ;
35040   return 0;
35041 }
35042 _ACEOF
35043 rm -f conftest.$ac_objext
35044 if { (ac_try="$ac_compile"
35045 case "(($ac_try" in
35046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35047   *) ac_try_echo=$ac_try;;
35048 esac
35049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35050   (eval "$ac_compile") 2>conftest.er1
35051   ac_status=$?
35052   grep -v '^ *+' conftest.er1 >conftest.err
35053   rm -f conftest.er1
35054   cat conftest.err >&5
35055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056   (exit $ac_status); } && {
35057          test -z "$ac_c_werror_flag" ||
35058          test ! -s conftest.err
35059        } && test -s conftest.$ac_objext; then
35060   ac_cv_type_int=yes
35061 else
35062   echo "$as_me: failed program was:" >&5
35063 sed 's/^/| /' conftest.$ac_ext >&5
35064
35065         ac_cv_type_int=no
35066 fi
35067
35068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35069 fi
35070 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35071 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35072
35073 # The cast to long int works around a bug in the HP C Compiler
35074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35076 # This bug is HP SR number 8606223364.
35077 { echo "$as_me:$LINENO: checking size of int" >&5
35078 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35079 if test "${ac_cv_sizeof_int+set}" = set; then
35080   echo $ECHO_N "(cached) $ECHO_C" >&6
35081 else
35082   if test "$cross_compiling" = yes; then
35083   # Depending upon the size, compute the lo and hi bounds.
35084 cat >conftest.$ac_ext <<_ACEOF
35085 /* confdefs.h.  */
35086 _ACEOF
35087 cat confdefs.h >>conftest.$ac_ext
35088 cat >>conftest.$ac_ext <<_ACEOF
35089 /* end confdefs.h.  */
35090 $ac_includes_default
35091    typedef int ac__type_sizeof_;
35092 int
35093 main ()
35094 {
35095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35096 test_array [0] = 0
35097
35098   ;
35099   return 0;
35100 }
35101 _ACEOF
35102 rm -f conftest.$ac_objext
35103 if { (ac_try="$ac_compile"
35104 case "(($ac_try" in
35105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35106   *) ac_try_echo=$ac_try;;
35107 esac
35108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35109   (eval "$ac_compile") 2>conftest.er1
35110   ac_status=$?
35111   grep -v '^ *+' conftest.er1 >conftest.err
35112   rm -f conftest.er1
35113   cat conftest.err >&5
35114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115   (exit $ac_status); } && {
35116          test -z "$ac_c_werror_flag" ||
35117          test ! -s conftest.err
35118        } && test -s conftest.$ac_objext; then
35119   ac_lo=0 ac_mid=0
35120   while :; do
35121     cat >conftest.$ac_ext <<_ACEOF
35122 /* confdefs.h.  */
35123 _ACEOF
35124 cat confdefs.h >>conftest.$ac_ext
35125 cat >>conftest.$ac_ext <<_ACEOF
35126 /* end confdefs.h.  */
35127 $ac_includes_default
35128    typedef int ac__type_sizeof_;
35129 int
35130 main ()
35131 {
35132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35133 test_array [0] = 0
35134
35135   ;
35136   return 0;
35137 }
35138 _ACEOF
35139 rm -f conftest.$ac_objext
35140 if { (ac_try="$ac_compile"
35141 case "(($ac_try" in
35142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35143   *) ac_try_echo=$ac_try;;
35144 esac
35145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35146   (eval "$ac_compile") 2>conftest.er1
35147   ac_status=$?
35148   grep -v '^ *+' conftest.er1 >conftest.err
35149   rm -f conftest.er1
35150   cat conftest.err >&5
35151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152   (exit $ac_status); } && {
35153          test -z "$ac_c_werror_flag" ||
35154          test ! -s conftest.err
35155        } && test -s conftest.$ac_objext; then
35156   ac_hi=$ac_mid; break
35157 else
35158   echo "$as_me: failed program was:" >&5
35159 sed 's/^/| /' conftest.$ac_ext >&5
35160
35161         ac_lo=`expr $ac_mid + 1`
35162                         if test $ac_lo -le $ac_mid; then
35163                           ac_lo= ac_hi=
35164                           break
35165                         fi
35166                         ac_mid=`expr 2 '*' $ac_mid + 1`
35167 fi
35168
35169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35170   done
35171 else
35172   echo "$as_me: failed program was:" >&5
35173 sed 's/^/| /' conftest.$ac_ext >&5
35174
35175         cat >conftest.$ac_ext <<_ACEOF
35176 /* confdefs.h.  */
35177 _ACEOF
35178 cat confdefs.h >>conftest.$ac_ext
35179 cat >>conftest.$ac_ext <<_ACEOF
35180 /* end confdefs.h.  */
35181 $ac_includes_default
35182    typedef int ac__type_sizeof_;
35183 int
35184 main ()
35185 {
35186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35187 test_array [0] = 0
35188
35189   ;
35190   return 0;
35191 }
35192 _ACEOF
35193 rm -f conftest.$ac_objext
35194 if { (ac_try="$ac_compile"
35195 case "(($ac_try" in
35196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35197   *) ac_try_echo=$ac_try;;
35198 esac
35199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35200   (eval "$ac_compile") 2>conftest.er1
35201   ac_status=$?
35202   grep -v '^ *+' conftest.er1 >conftest.err
35203   rm -f conftest.er1
35204   cat conftest.err >&5
35205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206   (exit $ac_status); } && {
35207          test -z "$ac_c_werror_flag" ||
35208          test ! -s conftest.err
35209        } && test -s conftest.$ac_objext; then
35210   ac_hi=-1 ac_mid=-1
35211   while :; do
35212     cat >conftest.$ac_ext <<_ACEOF
35213 /* confdefs.h.  */
35214 _ACEOF
35215 cat confdefs.h >>conftest.$ac_ext
35216 cat >>conftest.$ac_ext <<_ACEOF
35217 /* end confdefs.h.  */
35218 $ac_includes_default
35219    typedef int ac__type_sizeof_;
35220 int
35221 main ()
35222 {
35223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35224 test_array [0] = 0
35225
35226   ;
35227   return 0;
35228 }
35229 _ACEOF
35230 rm -f conftest.$ac_objext
35231 if { (ac_try="$ac_compile"
35232 case "(($ac_try" in
35233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35234   *) ac_try_echo=$ac_try;;
35235 esac
35236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35237   (eval "$ac_compile") 2>conftest.er1
35238   ac_status=$?
35239   grep -v '^ *+' conftest.er1 >conftest.err
35240   rm -f conftest.er1
35241   cat conftest.err >&5
35242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243   (exit $ac_status); } && {
35244          test -z "$ac_c_werror_flag" ||
35245          test ! -s conftest.err
35246        } && test -s conftest.$ac_objext; then
35247   ac_lo=$ac_mid; break
35248 else
35249   echo "$as_me: failed program was:" >&5
35250 sed 's/^/| /' conftest.$ac_ext >&5
35251
35252         ac_hi=`expr '(' $ac_mid ')' - 1`
35253                         if test $ac_mid -le $ac_hi; then
35254                           ac_lo= ac_hi=
35255                           break
35256                         fi
35257                         ac_mid=`expr 2 '*' $ac_mid`
35258 fi
35259
35260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35261   done
35262 else
35263   echo "$as_me: failed program was:" >&5
35264 sed 's/^/| /' conftest.$ac_ext >&5
35265
35266         ac_lo= ac_hi=
35267 fi
35268
35269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35270 fi
35271
35272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35273 # Binary search between lo and hi bounds.
35274 while test "x$ac_lo" != "x$ac_hi"; do
35275   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35276   cat >conftest.$ac_ext <<_ACEOF
35277 /* confdefs.h.  */
35278 _ACEOF
35279 cat confdefs.h >>conftest.$ac_ext
35280 cat >>conftest.$ac_ext <<_ACEOF
35281 /* end confdefs.h.  */
35282 $ac_includes_default
35283    typedef int ac__type_sizeof_;
35284 int
35285 main ()
35286 {
35287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35288 test_array [0] = 0
35289
35290   ;
35291   return 0;
35292 }
35293 _ACEOF
35294 rm -f conftest.$ac_objext
35295 if { (ac_try="$ac_compile"
35296 case "(($ac_try" in
35297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35298   *) ac_try_echo=$ac_try;;
35299 esac
35300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35301   (eval "$ac_compile") 2>conftest.er1
35302   ac_status=$?
35303   grep -v '^ *+' conftest.er1 >conftest.err
35304   rm -f conftest.er1
35305   cat conftest.err >&5
35306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307   (exit $ac_status); } && {
35308          test -z "$ac_c_werror_flag" ||
35309          test ! -s conftest.err
35310        } && test -s conftest.$ac_objext; then
35311   ac_hi=$ac_mid
35312 else
35313   echo "$as_me: failed program was:" >&5
35314 sed 's/^/| /' conftest.$ac_ext >&5
35315
35316         ac_lo=`expr '(' $ac_mid ')' + 1`
35317 fi
35318
35319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35320 done
35321 case $ac_lo in
35322 ?*) ac_cv_sizeof_int=$ac_lo;;
35323 '') if test "$ac_cv_type_int" = yes; then
35324      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35325 See \`config.log' for more details." >&5
35326 echo "$as_me: error: cannot compute sizeof (int)
35327 See \`config.log' for more details." >&2;}
35328    { (exit 77); exit 77; }; }
35329    else
35330      ac_cv_sizeof_int=0
35331    fi ;;
35332 esac
35333 else
35334   cat >conftest.$ac_ext <<_ACEOF
35335 /* confdefs.h.  */
35336 _ACEOF
35337 cat confdefs.h >>conftest.$ac_ext
35338 cat >>conftest.$ac_ext <<_ACEOF
35339 /* end confdefs.h.  */
35340 $ac_includes_default
35341    typedef int ac__type_sizeof_;
35342 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35343 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35344 #include <stdio.h>
35345 #include <stdlib.h>
35346 int
35347 main ()
35348 {
35349
35350   FILE *f = fopen ("conftest.val", "w");
35351   if (! f)
35352     return 1;
35353   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35354     {
35355       long int i = longval ();
35356       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35357         return 1;
35358       fprintf (f, "%ld\n", i);
35359     }
35360   else
35361     {
35362       unsigned long int i = ulongval ();
35363       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35364         return 1;
35365       fprintf (f, "%lu\n", i);
35366     }
35367   return ferror (f) || fclose (f) != 0;
35368
35369   ;
35370   return 0;
35371 }
35372 _ACEOF
35373 rm -f conftest$ac_exeext
35374 if { (ac_try="$ac_link"
35375 case "(($ac_try" in
35376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35377   *) ac_try_echo=$ac_try;;
35378 esac
35379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35380   (eval "$ac_link") 2>&5
35381   ac_status=$?
35382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35384   { (case "(($ac_try" in
35385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35386   *) ac_try_echo=$ac_try;;
35387 esac
35388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35389   (eval "$ac_try") 2>&5
35390   ac_status=$?
35391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35392   (exit $ac_status); }; }; then
35393   ac_cv_sizeof_int=`cat conftest.val`
35394 else
35395   echo "$as_me: program exited with status $ac_status" >&5
35396 echo "$as_me: failed program was:" >&5
35397 sed 's/^/| /' conftest.$ac_ext >&5
35398
35399 ( exit $ac_status )
35400 if test "$ac_cv_type_int" = yes; then
35401      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35402 See \`config.log' for more details." >&5
35403 echo "$as_me: error: cannot compute sizeof (int)
35404 See \`config.log' for more details." >&2;}
35405    { (exit 77); exit 77; }; }
35406    else
35407      ac_cv_sizeof_int=0
35408    fi
35409 fi
35410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35411 fi
35412 rm -f conftest.val
35413 fi
35414 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35415 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35416
35417
35418
35419 cat >>confdefs.h <<_ACEOF
35420 #define SIZEOF_INT $ac_cv_sizeof_int
35421 _ACEOF
35422
35423
35424 { echo "$as_me:$LINENO: checking for long int" >&5
35425 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35426 if test "${ac_cv_type_long_int+set}" = set; then
35427   echo $ECHO_N "(cached) $ECHO_C" >&6
35428 else
35429   cat >conftest.$ac_ext <<_ACEOF
35430 /* confdefs.h.  */
35431 _ACEOF
35432 cat confdefs.h >>conftest.$ac_ext
35433 cat >>conftest.$ac_ext <<_ACEOF
35434 /* end confdefs.h.  */
35435 $ac_includes_default
35436 typedef long int ac__type_new_;
35437 int
35438 main ()
35439 {
35440 if ((ac__type_new_ *) 0)
35441   return 0;
35442 if (sizeof (ac__type_new_))
35443   return 0;
35444   ;
35445   return 0;
35446 }
35447 _ACEOF
35448 rm -f conftest.$ac_objext
35449 if { (ac_try="$ac_compile"
35450 case "(($ac_try" in
35451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35452   *) ac_try_echo=$ac_try;;
35453 esac
35454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35455   (eval "$ac_compile") 2>conftest.er1
35456   ac_status=$?
35457   grep -v '^ *+' conftest.er1 >conftest.err
35458   rm -f conftest.er1
35459   cat conftest.err >&5
35460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35461   (exit $ac_status); } && {
35462          test -z "$ac_c_werror_flag" ||
35463          test ! -s conftest.err
35464        } && test -s conftest.$ac_objext; then
35465   ac_cv_type_long_int=yes
35466 else
35467   echo "$as_me: failed program was:" >&5
35468 sed 's/^/| /' conftest.$ac_ext >&5
35469
35470         ac_cv_type_long_int=no
35471 fi
35472
35473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35474 fi
35475 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35476 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35477
35478 # The cast to long int works around a bug in the HP C Compiler
35479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35481 # This bug is HP SR number 8606223364.
35482 { echo "$as_me:$LINENO: checking size of long int" >&5
35483 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35484 if test "${ac_cv_sizeof_long_int+set}" = set; then
35485   echo $ECHO_N "(cached) $ECHO_C" >&6
35486 else
35487   if test "$cross_compiling" = yes; then
35488   # Depending upon the size, compute the lo and hi bounds.
35489 cat >conftest.$ac_ext <<_ACEOF
35490 /* confdefs.h.  */
35491 _ACEOF
35492 cat confdefs.h >>conftest.$ac_ext
35493 cat >>conftest.$ac_ext <<_ACEOF
35494 /* end confdefs.h.  */
35495 $ac_includes_default
35496    typedef long int ac__type_sizeof_;
35497 int
35498 main ()
35499 {
35500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35501 test_array [0] = 0
35502
35503   ;
35504   return 0;
35505 }
35506 _ACEOF
35507 rm -f conftest.$ac_objext
35508 if { (ac_try="$ac_compile"
35509 case "(($ac_try" in
35510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35511   *) ac_try_echo=$ac_try;;
35512 esac
35513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35514   (eval "$ac_compile") 2>conftest.er1
35515   ac_status=$?
35516   grep -v '^ *+' conftest.er1 >conftest.err
35517   rm -f conftest.er1
35518   cat conftest.err >&5
35519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520   (exit $ac_status); } && {
35521          test -z "$ac_c_werror_flag" ||
35522          test ! -s conftest.err
35523        } && test -s conftest.$ac_objext; then
35524   ac_lo=0 ac_mid=0
35525   while :; do
35526     cat >conftest.$ac_ext <<_ACEOF
35527 /* confdefs.h.  */
35528 _ACEOF
35529 cat confdefs.h >>conftest.$ac_ext
35530 cat >>conftest.$ac_ext <<_ACEOF
35531 /* end confdefs.h.  */
35532 $ac_includes_default
35533    typedef long int ac__type_sizeof_;
35534 int
35535 main ()
35536 {
35537 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35538 test_array [0] = 0
35539
35540   ;
35541   return 0;
35542 }
35543 _ACEOF
35544 rm -f conftest.$ac_objext
35545 if { (ac_try="$ac_compile"
35546 case "(($ac_try" in
35547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35548   *) ac_try_echo=$ac_try;;
35549 esac
35550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35551   (eval "$ac_compile") 2>conftest.er1
35552   ac_status=$?
35553   grep -v '^ *+' conftest.er1 >conftest.err
35554   rm -f conftest.er1
35555   cat conftest.err >&5
35556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35557   (exit $ac_status); } && {
35558          test -z "$ac_c_werror_flag" ||
35559          test ! -s conftest.err
35560        } && test -s conftest.$ac_objext; then
35561   ac_hi=$ac_mid; break
35562 else
35563   echo "$as_me: failed program was:" >&5
35564 sed 's/^/| /' conftest.$ac_ext >&5
35565
35566         ac_lo=`expr $ac_mid + 1`
35567                         if test $ac_lo -le $ac_mid; then
35568                           ac_lo= ac_hi=
35569                           break
35570                         fi
35571                         ac_mid=`expr 2 '*' $ac_mid + 1`
35572 fi
35573
35574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35575   done
35576 else
35577   echo "$as_me: failed program was:" >&5
35578 sed 's/^/| /' conftest.$ac_ext >&5
35579
35580         cat >conftest.$ac_ext <<_ACEOF
35581 /* confdefs.h.  */
35582 _ACEOF
35583 cat confdefs.h >>conftest.$ac_ext
35584 cat >>conftest.$ac_ext <<_ACEOF
35585 /* end confdefs.h.  */
35586 $ac_includes_default
35587    typedef long int ac__type_sizeof_;
35588 int
35589 main ()
35590 {
35591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35592 test_array [0] = 0
35593
35594   ;
35595   return 0;
35596 }
35597 _ACEOF
35598 rm -f conftest.$ac_objext
35599 if { (ac_try="$ac_compile"
35600 case "(($ac_try" in
35601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35602   *) ac_try_echo=$ac_try;;
35603 esac
35604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35605   (eval "$ac_compile") 2>conftest.er1
35606   ac_status=$?
35607   grep -v '^ *+' conftest.er1 >conftest.err
35608   rm -f conftest.er1
35609   cat conftest.err >&5
35610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611   (exit $ac_status); } && {
35612          test -z "$ac_c_werror_flag" ||
35613          test ! -s conftest.err
35614        } && test -s conftest.$ac_objext; then
35615   ac_hi=-1 ac_mid=-1
35616   while :; do
35617     cat >conftest.$ac_ext <<_ACEOF
35618 /* confdefs.h.  */
35619 _ACEOF
35620 cat confdefs.h >>conftest.$ac_ext
35621 cat >>conftest.$ac_ext <<_ACEOF
35622 /* end confdefs.h.  */
35623 $ac_includes_default
35624    typedef long int ac__type_sizeof_;
35625 int
35626 main ()
35627 {
35628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35629 test_array [0] = 0
35630
35631   ;
35632   return 0;
35633 }
35634 _ACEOF
35635 rm -f conftest.$ac_objext
35636 if { (ac_try="$ac_compile"
35637 case "(($ac_try" in
35638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35639   *) ac_try_echo=$ac_try;;
35640 esac
35641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35642   (eval "$ac_compile") 2>conftest.er1
35643   ac_status=$?
35644   grep -v '^ *+' conftest.er1 >conftest.err
35645   rm -f conftest.er1
35646   cat conftest.err >&5
35647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648   (exit $ac_status); } && {
35649          test -z "$ac_c_werror_flag" ||
35650          test ! -s conftest.err
35651        } && test -s conftest.$ac_objext; then
35652   ac_lo=$ac_mid; break
35653 else
35654   echo "$as_me: failed program was:" >&5
35655 sed 's/^/| /' conftest.$ac_ext >&5
35656
35657         ac_hi=`expr '(' $ac_mid ')' - 1`
35658                         if test $ac_mid -le $ac_hi; then
35659                           ac_lo= ac_hi=
35660                           break
35661                         fi
35662                         ac_mid=`expr 2 '*' $ac_mid`
35663 fi
35664
35665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35666   done
35667 else
35668   echo "$as_me: failed program was:" >&5
35669 sed 's/^/| /' conftest.$ac_ext >&5
35670
35671         ac_lo= ac_hi=
35672 fi
35673
35674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35675 fi
35676
35677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35678 # Binary search between lo and hi bounds.
35679 while test "x$ac_lo" != "x$ac_hi"; do
35680   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35681   cat >conftest.$ac_ext <<_ACEOF
35682 /* confdefs.h.  */
35683 _ACEOF
35684 cat confdefs.h >>conftest.$ac_ext
35685 cat >>conftest.$ac_ext <<_ACEOF
35686 /* end confdefs.h.  */
35687 $ac_includes_default
35688    typedef long int ac__type_sizeof_;
35689 int
35690 main ()
35691 {
35692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35693 test_array [0] = 0
35694
35695   ;
35696   return 0;
35697 }
35698 _ACEOF
35699 rm -f conftest.$ac_objext
35700 if { (ac_try="$ac_compile"
35701 case "(($ac_try" in
35702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35703   *) ac_try_echo=$ac_try;;
35704 esac
35705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35706   (eval "$ac_compile") 2>conftest.er1
35707   ac_status=$?
35708   grep -v '^ *+' conftest.er1 >conftest.err
35709   rm -f conftest.er1
35710   cat conftest.err >&5
35711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712   (exit $ac_status); } && {
35713          test -z "$ac_c_werror_flag" ||
35714          test ! -s conftest.err
35715        } && test -s conftest.$ac_objext; then
35716   ac_hi=$ac_mid
35717 else
35718   echo "$as_me: failed program was:" >&5
35719 sed 's/^/| /' conftest.$ac_ext >&5
35720
35721         ac_lo=`expr '(' $ac_mid ')' + 1`
35722 fi
35723
35724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35725 done
35726 case $ac_lo in
35727 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35728 '') if test "$ac_cv_type_long_int" = yes; then
35729      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35730 See \`config.log' for more details." >&5
35731 echo "$as_me: error: cannot compute sizeof (long int)
35732 See \`config.log' for more details." >&2;}
35733    { (exit 77); exit 77; }; }
35734    else
35735      ac_cv_sizeof_long_int=0
35736    fi ;;
35737 esac
35738 else
35739   cat >conftest.$ac_ext <<_ACEOF
35740 /* confdefs.h.  */
35741 _ACEOF
35742 cat confdefs.h >>conftest.$ac_ext
35743 cat >>conftest.$ac_ext <<_ACEOF
35744 /* end confdefs.h.  */
35745 $ac_includes_default
35746    typedef long int ac__type_sizeof_;
35747 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35748 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35749 #include <stdio.h>
35750 #include <stdlib.h>
35751 int
35752 main ()
35753 {
35754
35755   FILE *f = fopen ("conftest.val", "w");
35756   if (! f)
35757     return 1;
35758   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35759     {
35760       long int i = longval ();
35761       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35762         return 1;
35763       fprintf (f, "%ld\n", i);
35764     }
35765   else
35766     {
35767       unsigned long int i = ulongval ();
35768       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35769         return 1;
35770       fprintf (f, "%lu\n", i);
35771     }
35772   return ferror (f) || fclose (f) != 0;
35773
35774   ;
35775   return 0;
35776 }
35777 _ACEOF
35778 rm -f conftest$ac_exeext
35779 if { (ac_try="$ac_link"
35780 case "(($ac_try" in
35781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35782   *) ac_try_echo=$ac_try;;
35783 esac
35784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35785   (eval "$ac_link") 2>&5
35786   ac_status=$?
35787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35789   { (case "(($ac_try" in
35790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35791   *) ac_try_echo=$ac_try;;
35792 esac
35793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35794   (eval "$ac_try") 2>&5
35795   ac_status=$?
35796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35797   (exit $ac_status); }; }; then
35798   ac_cv_sizeof_long_int=`cat conftest.val`
35799 else
35800   echo "$as_me: program exited with status $ac_status" >&5
35801 echo "$as_me: failed program was:" >&5
35802 sed 's/^/| /' conftest.$ac_ext >&5
35803
35804 ( exit $ac_status )
35805 if test "$ac_cv_type_long_int" = yes; then
35806      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35807 See \`config.log' for more details." >&5
35808 echo "$as_me: error: cannot compute sizeof (long int)
35809 See \`config.log' for more details." >&2;}
35810    { (exit 77); exit 77; }; }
35811    else
35812      ac_cv_sizeof_long_int=0
35813    fi
35814 fi
35815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35816 fi
35817 rm -f conftest.val
35818 fi
35819 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35820 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35821
35822
35823
35824 cat >>confdefs.h <<_ACEOF
35825 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35826 _ACEOF
35827
35828
35829 { echo "$as_me:$LINENO: checking for long long int" >&5
35830 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35831 if test "${ac_cv_type_long_long_int+set}" = set; then
35832   echo $ECHO_N "(cached) $ECHO_C" >&6
35833 else
35834   cat >conftest.$ac_ext <<_ACEOF
35835 /* confdefs.h.  */
35836 _ACEOF
35837 cat confdefs.h >>conftest.$ac_ext
35838 cat >>conftest.$ac_ext <<_ACEOF
35839 /* end confdefs.h.  */
35840 $ac_includes_default
35841 typedef long long int ac__type_new_;
35842 int
35843 main ()
35844 {
35845 if ((ac__type_new_ *) 0)
35846   return 0;
35847 if (sizeof (ac__type_new_))
35848   return 0;
35849   ;
35850   return 0;
35851 }
35852 _ACEOF
35853 rm -f conftest.$ac_objext
35854 if { (ac_try="$ac_compile"
35855 case "(($ac_try" in
35856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35857   *) ac_try_echo=$ac_try;;
35858 esac
35859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35860   (eval "$ac_compile") 2>conftest.er1
35861   ac_status=$?
35862   grep -v '^ *+' conftest.er1 >conftest.err
35863   rm -f conftest.er1
35864   cat conftest.err >&5
35865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866   (exit $ac_status); } && {
35867          test -z "$ac_c_werror_flag" ||
35868          test ! -s conftest.err
35869        } && test -s conftest.$ac_objext; then
35870   ac_cv_type_long_long_int=yes
35871 else
35872   echo "$as_me: failed program was:" >&5
35873 sed 's/^/| /' conftest.$ac_ext >&5
35874
35875         ac_cv_type_long_long_int=no
35876 fi
35877
35878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35879 fi
35880 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35881 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35882
35883 # The cast to long int works around a bug in the HP C Compiler
35884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35886 # This bug is HP SR number 8606223364.
35887 { echo "$as_me:$LINENO: checking size of long long int" >&5
35888 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35889 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35890   echo $ECHO_N "(cached) $ECHO_C" >&6
35891 else
35892   if test "$cross_compiling" = yes; then
35893   # Depending upon the size, compute the lo and hi bounds.
35894 cat >conftest.$ac_ext <<_ACEOF
35895 /* confdefs.h.  */
35896 _ACEOF
35897 cat confdefs.h >>conftest.$ac_ext
35898 cat >>conftest.$ac_ext <<_ACEOF
35899 /* end confdefs.h.  */
35900 $ac_includes_default
35901    typedef long long int ac__type_sizeof_;
35902 int
35903 main ()
35904 {
35905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35906 test_array [0] = 0
35907
35908   ;
35909   return 0;
35910 }
35911 _ACEOF
35912 rm -f conftest.$ac_objext
35913 if { (ac_try="$ac_compile"
35914 case "(($ac_try" in
35915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35916   *) ac_try_echo=$ac_try;;
35917 esac
35918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35919   (eval "$ac_compile") 2>conftest.er1
35920   ac_status=$?
35921   grep -v '^ *+' conftest.er1 >conftest.err
35922   rm -f conftest.er1
35923   cat conftest.err >&5
35924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35925   (exit $ac_status); } && {
35926          test -z "$ac_c_werror_flag" ||
35927          test ! -s conftest.err
35928        } && test -s conftest.$ac_objext; then
35929   ac_lo=0 ac_mid=0
35930   while :; do
35931     cat >conftest.$ac_ext <<_ACEOF
35932 /* confdefs.h.  */
35933 _ACEOF
35934 cat confdefs.h >>conftest.$ac_ext
35935 cat >>conftest.$ac_ext <<_ACEOF
35936 /* end confdefs.h.  */
35937 $ac_includes_default
35938    typedef long long int ac__type_sizeof_;
35939 int
35940 main ()
35941 {
35942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35943 test_array [0] = 0
35944
35945   ;
35946   return 0;
35947 }
35948 _ACEOF
35949 rm -f conftest.$ac_objext
35950 if { (ac_try="$ac_compile"
35951 case "(($ac_try" in
35952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35953   *) ac_try_echo=$ac_try;;
35954 esac
35955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35956   (eval "$ac_compile") 2>conftest.er1
35957   ac_status=$?
35958   grep -v '^ *+' conftest.er1 >conftest.err
35959   rm -f conftest.er1
35960   cat conftest.err >&5
35961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962   (exit $ac_status); } && {
35963          test -z "$ac_c_werror_flag" ||
35964          test ! -s conftest.err
35965        } && test -s conftest.$ac_objext; then
35966   ac_hi=$ac_mid; break
35967 else
35968   echo "$as_me: failed program was:" >&5
35969 sed 's/^/| /' conftest.$ac_ext >&5
35970
35971         ac_lo=`expr $ac_mid + 1`
35972                         if test $ac_lo -le $ac_mid; then
35973                           ac_lo= ac_hi=
35974                           break
35975                         fi
35976                         ac_mid=`expr 2 '*' $ac_mid + 1`
35977 fi
35978
35979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35980   done
35981 else
35982   echo "$as_me: failed program was:" >&5
35983 sed 's/^/| /' conftest.$ac_ext >&5
35984
35985         cat >conftest.$ac_ext <<_ACEOF
35986 /* confdefs.h.  */
35987 _ACEOF
35988 cat confdefs.h >>conftest.$ac_ext
35989 cat >>conftest.$ac_ext <<_ACEOF
35990 /* end confdefs.h.  */
35991 $ac_includes_default
35992    typedef long long int ac__type_sizeof_;
35993 int
35994 main ()
35995 {
35996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35997 test_array [0] = 0
35998
35999   ;
36000   return 0;
36001 }
36002 _ACEOF
36003 rm -f conftest.$ac_objext
36004 if { (ac_try="$ac_compile"
36005 case "(($ac_try" in
36006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36007   *) ac_try_echo=$ac_try;;
36008 esac
36009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36010   (eval "$ac_compile") 2>conftest.er1
36011   ac_status=$?
36012   grep -v '^ *+' conftest.er1 >conftest.err
36013   rm -f conftest.er1
36014   cat conftest.err >&5
36015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36016   (exit $ac_status); } && {
36017          test -z "$ac_c_werror_flag" ||
36018          test ! -s conftest.err
36019        } && test -s conftest.$ac_objext; then
36020   ac_hi=-1 ac_mid=-1
36021   while :; do
36022     cat >conftest.$ac_ext <<_ACEOF
36023 /* confdefs.h.  */
36024 _ACEOF
36025 cat confdefs.h >>conftest.$ac_ext
36026 cat >>conftest.$ac_ext <<_ACEOF
36027 /* end confdefs.h.  */
36028 $ac_includes_default
36029    typedef long long int ac__type_sizeof_;
36030 int
36031 main ()
36032 {
36033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36034 test_array [0] = 0
36035
36036   ;
36037   return 0;
36038 }
36039 _ACEOF
36040 rm -f conftest.$ac_objext
36041 if { (ac_try="$ac_compile"
36042 case "(($ac_try" in
36043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36044   *) ac_try_echo=$ac_try;;
36045 esac
36046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36047   (eval "$ac_compile") 2>conftest.er1
36048   ac_status=$?
36049   grep -v '^ *+' conftest.er1 >conftest.err
36050   rm -f conftest.er1
36051   cat conftest.err >&5
36052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053   (exit $ac_status); } && {
36054          test -z "$ac_c_werror_flag" ||
36055          test ! -s conftest.err
36056        } && test -s conftest.$ac_objext; then
36057   ac_lo=$ac_mid; break
36058 else
36059   echo "$as_me: failed program was:" >&5
36060 sed 's/^/| /' conftest.$ac_ext >&5
36061
36062         ac_hi=`expr '(' $ac_mid ')' - 1`
36063                         if test $ac_mid -le $ac_hi; then
36064                           ac_lo= ac_hi=
36065                           break
36066                         fi
36067                         ac_mid=`expr 2 '*' $ac_mid`
36068 fi
36069
36070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36071   done
36072 else
36073   echo "$as_me: failed program was:" >&5
36074 sed 's/^/| /' conftest.$ac_ext >&5
36075
36076         ac_lo= ac_hi=
36077 fi
36078
36079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36080 fi
36081
36082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36083 # Binary search between lo and hi bounds.
36084 while test "x$ac_lo" != "x$ac_hi"; do
36085   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36086   cat >conftest.$ac_ext <<_ACEOF
36087 /* confdefs.h.  */
36088 _ACEOF
36089 cat confdefs.h >>conftest.$ac_ext
36090 cat >>conftest.$ac_ext <<_ACEOF
36091 /* end confdefs.h.  */
36092 $ac_includes_default
36093    typedef long long int ac__type_sizeof_;
36094 int
36095 main ()
36096 {
36097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36098 test_array [0] = 0
36099
36100   ;
36101   return 0;
36102 }
36103 _ACEOF
36104 rm -f conftest.$ac_objext
36105 if { (ac_try="$ac_compile"
36106 case "(($ac_try" in
36107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36108   *) ac_try_echo=$ac_try;;
36109 esac
36110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36111   (eval "$ac_compile") 2>conftest.er1
36112   ac_status=$?
36113   grep -v '^ *+' conftest.er1 >conftest.err
36114   rm -f conftest.er1
36115   cat conftest.err >&5
36116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117   (exit $ac_status); } && {
36118          test -z "$ac_c_werror_flag" ||
36119          test ! -s conftest.err
36120        } && test -s conftest.$ac_objext; then
36121   ac_hi=$ac_mid
36122 else
36123   echo "$as_me: failed program was:" >&5
36124 sed 's/^/| /' conftest.$ac_ext >&5
36125
36126         ac_lo=`expr '(' $ac_mid ')' + 1`
36127 fi
36128
36129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36130 done
36131 case $ac_lo in
36132 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36133 '') if test "$ac_cv_type_long_long_int" = yes; then
36134      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36135 See \`config.log' for more details." >&5
36136 echo "$as_me: error: cannot compute sizeof (long long int)
36137 See \`config.log' for more details." >&2;}
36138    { (exit 77); exit 77; }; }
36139    else
36140      ac_cv_sizeof_long_long_int=0
36141    fi ;;
36142 esac
36143 else
36144   cat >conftest.$ac_ext <<_ACEOF
36145 /* confdefs.h.  */
36146 _ACEOF
36147 cat confdefs.h >>conftest.$ac_ext
36148 cat >>conftest.$ac_ext <<_ACEOF
36149 /* end confdefs.h.  */
36150 $ac_includes_default
36151    typedef long long int ac__type_sizeof_;
36152 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36153 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36154 #include <stdio.h>
36155 #include <stdlib.h>
36156 int
36157 main ()
36158 {
36159
36160   FILE *f = fopen ("conftest.val", "w");
36161   if (! f)
36162     return 1;
36163   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36164     {
36165       long int i = longval ();
36166       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36167         return 1;
36168       fprintf (f, "%ld\n", i);
36169     }
36170   else
36171     {
36172       unsigned long int i = ulongval ();
36173       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36174         return 1;
36175       fprintf (f, "%lu\n", i);
36176     }
36177   return ferror (f) || fclose (f) != 0;
36178
36179   ;
36180   return 0;
36181 }
36182 _ACEOF
36183 rm -f conftest$ac_exeext
36184 if { (ac_try="$ac_link"
36185 case "(($ac_try" in
36186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36187   *) ac_try_echo=$ac_try;;
36188 esac
36189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36190   (eval "$ac_link") 2>&5
36191   ac_status=$?
36192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36194   { (case "(($ac_try" in
36195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36196   *) ac_try_echo=$ac_try;;
36197 esac
36198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36199   (eval "$ac_try") 2>&5
36200   ac_status=$?
36201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202   (exit $ac_status); }; }; then
36203   ac_cv_sizeof_long_long_int=`cat conftest.val`
36204 else
36205   echo "$as_me: program exited with status $ac_status" >&5
36206 echo "$as_me: failed program was:" >&5
36207 sed 's/^/| /' conftest.$ac_ext >&5
36208
36209 ( exit $ac_status )
36210 if test "$ac_cv_type_long_long_int" = yes; then
36211      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36212 See \`config.log' for more details." >&5
36213 echo "$as_me: error: cannot compute sizeof (long long int)
36214 See \`config.log' for more details." >&2;}
36215    { (exit 77); exit 77; }; }
36216    else
36217      ac_cv_sizeof_long_long_int=0
36218    fi
36219 fi
36220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36221 fi
36222 rm -f conftest.val
36223 fi
36224 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36225 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36226
36227
36228
36229 cat >>confdefs.h <<_ACEOF
36230 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36231 _ACEOF
36232
36233
36234 { echo "$as_me:$LINENO: checking for int *" >&5
36235 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36236 if test "${ac_cv_type_int_p+set}" = set; then
36237   echo $ECHO_N "(cached) $ECHO_C" >&6
36238 else
36239   cat >conftest.$ac_ext <<_ACEOF
36240 /* confdefs.h.  */
36241 _ACEOF
36242 cat confdefs.h >>conftest.$ac_ext
36243 cat >>conftest.$ac_ext <<_ACEOF
36244 /* end confdefs.h.  */
36245 $ac_includes_default
36246 typedef int * ac__type_new_;
36247 int
36248 main ()
36249 {
36250 if ((ac__type_new_ *) 0)
36251   return 0;
36252 if (sizeof (ac__type_new_))
36253   return 0;
36254   ;
36255   return 0;
36256 }
36257 _ACEOF
36258 rm -f conftest.$ac_objext
36259 if { (ac_try="$ac_compile"
36260 case "(($ac_try" in
36261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36262   *) ac_try_echo=$ac_try;;
36263 esac
36264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36265   (eval "$ac_compile") 2>conftest.er1
36266   ac_status=$?
36267   grep -v '^ *+' conftest.er1 >conftest.err
36268   rm -f conftest.er1
36269   cat conftest.err >&5
36270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271   (exit $ac_status); } && {
36272          test -z "$ac_c_werror_flag" ||
36273          test ! -s conftest.err
36274        } && test -s conftest.$ac_objext; then
36275   ac_cv_type_int_p=yes
36276 else
36277   echo "$as_me: failed program was:" >&5
36278 sed 's/^/| /' conftest.$ac_ext >&5
36279
36280         ac_cv_type_int_p=no
36281 fi
36282
36283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36284 fi
36285 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36286 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36287
36288 # The cast to long int works around a bug in the HP C Compiler
36289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36291 # This bug is HP SR number 8606223364.
36292 { echo "$as_me:$LINENO: checking size of int *" >&5
36293 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36294 if test "${ac_cv_sizeof_int_p+set}" = set; then
36295   echo $ECHO_N "(cached) $ECHO_C" >&6
36296 else
36297   if test "$cross_compiling" = yes; then
36298   # Depending upon the size, compute the lo and hi bounds.
36299 cat >conftest.$ac_ext <<_ACEOF
36300 /* confdefs.h.  */
36301 _ACEOF
36302 cat confdefs.h >>conftest.$ac_ext
36303 cat >>conftest.$ac_ext <<_ACEOF
36304 /* end confdefs.h.  */
36305 $ac_includes_default
36306    typedef int * ac__type_sizeof_;
36307 int
36308 main ()
36309 {
36310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36311 test_array [0] = 0
36312
36313   ;
36314   return 0;
36315 }
36316 _ACEOF
36317 rm -f conftest.$ac_objext
36318 if { (ac_try="$ac_compile"
36319 case "(($ac_try" in
36320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36321   *) ac_try_echo=$ac_try;;
36322 esac
36323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36324   (eval "$ac_compile") 2>conftest.er1
36325   ac_status=$?
36326   grep -v '^ *+' conftest.er1 >conftest.err
36327   rm -f conftest.er1
36328   cat conftest.err >&5
36329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330   (exit $ac_status); } && {
36331          test -z "$ac_c_werror_flag" ||
36332          test ! -s conftest.err
36333        } && test -s conftest.$ac_objext; then
36334   ac_lo=0 ac_mid=0
36335   while :; do
36336     cat >conftest.$ac_ext <<_ACEOF
36337 /* confdefs.h.  */
36338 _ACEOF
36339 cat confdefs.h >>conftest.$ac_ext
36340 cat >>conftest.$ac_ext <<_ACEOF
36341 /* end confdefs.h.  */
36342 $ac_includes_default
36343    typedef int * ac__type_sizeof_;
36344 int
36345 main ()
36346 {
36347 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36348 test_array [0] = 0
36349
36350   ;
36351   return 0;
36352 }
36353 _ACEOF
36354 rm -f conftest.$ac_objext
36355 if { (ac_try="$ac_compile"
36356 case "(($ac_try" in
36357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36358   *) ac_try_echo=$ac_try;;
36359 esac
36360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36361   (eval "$ac_compile") 2>conftest.er1
36362   ac_status=$?
36363   grep -v '^ *+' conftest.er1 >conftest.err
36364   rm -f conftest.er1
36365   cat conftest.err >&5
36366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367   (exit $ac_status); } && {
36368          test -z "$ac_c_werror_flag" ||
36369          test ! -s conftest.err
36370        } && test -s conftest.$ac_objext; then
36371   ac_hi=$ac_mid; break
36372 else
36373   echo "$as_me: failed program was:" >&5
36374 sed 's/^/| /' conftest.$ac_ext >&5
36375
36376         ac_lo=`expr $ac_mid + 1`
36377                         if test $ac_lo -le $ac_mid; then
36378                           ac_lo= ac_hi=
36379                           break
36380                         fi
36381                         ac_mid=`expr 2 '*' $ac_mid + 1`
36382 fi
36383
36384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36385   done
36386 else
36387   echo "$as_me: failed program was:" >&5
36388 sed 's/^/| /' conftest.$ac_ext >&5
36389
36390         cat >conftest.$ac_ext <<_ACEOF
36391 /* confdefs.h.  */
36392 _ACEOF
36393 cat confdefs.h >>conftest.$ac_ext
36394 cat >>conftest.$ac_ext <<_ACEOF
36395 /* end confdefs.h.  */
36396 $ac_includes_default
36397    typedef int * ac__type_sizeof_;
36398 int
36399 main ()
36400 {
36401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36402 test_array [0] = 0
36403
36404   ;
36405   return 0;
36406 }
36407 _ACEOF
36408 rm -f conftest.$ac_objext
36409 if { (ac_try="$ac_compile"
36410 case "(($ac_try" in
36411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36412   *) ac_try_echo=$ac_try;;
36413 esac
36414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36415   (eval "$ac_compile") 2>conftest.er1
36416   ac_status=$?
36417   grep -v '^ *+' conftest.er1 >conftest.err
36418   rm -f conftest.er1
36419   cat conftest.err >&5
36420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36421   (exit $ac_status); } && {
36422          test -z "$ac_c_werror_flag" ||
36423          test ! -s conftest.err
36424        } && test -s conftest.$ac_objext; then
36425   ac_hi=-1 ac_mid=-1
36426   while :; do
36427     cat >conftest.$ac_ext <<_ACEOF
36428 /* confdefs.h.  */
36429 _ACEOF
36430 cat confdefs.h >>conftest.$ac_ext
36431 cat >>conftest.$ac_ext <<_ACEOF
36432 /* end confdefs.h.  */
36433 $ac_includes_default
36434    typedef int * ac__type_sizeof_;
36435 int
36436 main ()
36437 {
36438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36439 test_array [0] = 0
36440
36441   ;
36442   return 0;
36443 }
36444 _ACEOF
36445 rm -f conftest.$ac_objext
36446 if { (ac_try="$ac_compile"
36447 case "(($ac_try" in
36448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36449   *) ac_try_echo=$ac_try;;
36450 esac
36451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36452   (eval "$ac_compile") 2>conftest.er1
36453   ac_status=$?
36454   grep -v '^ *+' conftest.er1 >conftest.err
36455   rm -f conftest.er1
36456   cat conftest.err >&5
36457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458   (exit $ac_status); } && {
36459          test -z "$ac_c_werror_flag" ||
36460          test ! -s conftest.err
36461        } && test -s conftest.$ac_objext; then
36462   ac_lo=$ac_mid; break
36463 else
36464   echo "$as_me: failed program was:" >&5
36465 sed 's/^/| /' conftest.$ac_ext >&5
36466
36467         ac_hi=`expr '(' $ac_mid ')' - 1`
36468                         if test $ac_mid -le $ac_hi; then
36469                           ac_lo= ac_hi=
36470                           break
36471                         fi
36472                         ac_mid=`expr 2 '*' $ac_mid`
36473 fi
36474
36475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36476   done
36477 else
36478   echo "$as_me: failed program was:" >&5
36479 sed 's/^/| /' conftest.$ac_ext >&5
36480
36481         ac_lo= ac_hi=
36482 fi
36483
36484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36485 fi
36486
36487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36488 # Binary search between lo and hi bounds.
36489 while test "x$ac_lo" != "x$ac_hi"; do
36490   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36491   cat >conftest.$ac_ext <<_ACEOF
36492 /* confdefs.h.  */
36493 _ACEOF
36494 cat confdefs.h >>conftest.$ac_ext
36495 cat >>conftest.$ac_ext <<_ACEOF
36496 /* end confdefs.h.  */
36497 $ac_includes_default
36498    typedef int * ac__type_sizeof_;
36499 int
36500 main ()
36501 {
36502 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36503 test_array [0] = 0
36504
36505   ;
36506   return 0;
36507 }
36508 _ACEOF
36509 rm -f conftest.$ac_objext
36510 if { (ac_try="$ac_compile"
36511 case "(($ac_try" in
36512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36513   *) ac_try_echo=$ac_try;;
36514 esac
36515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36516   (eval "$ac_compile") 2>conftest.er1
36517   ac_status=$?
36518   grep -v '^ *+' conftest.er1 >conftest.err
36519   rm -f conftest.er1
36520   cat conftest.err >&5
36521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36522   (exit $ac_status); } && {
36523          test -z "$ac_c_werror_flag" ||
36524          test ! -s conftest.err
36525        } && test -s conftest.$ac_objext; then
36526   ac_hi=$ac_mid
36527 else
36528   echo "$as_me: failed program was:" >&5
36529 sed 's/^/| /' conftest.$ac_ext >&5
36530
36531         ac_lo=`expr '(' $ac_mid ')' + 1`
36532 fi
36533
36534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36535 done
36536 case $ac_lo in
36537 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36538 '') if test "$ac_cv_type_int_p" = yes; then
36539      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36540 See \`config.log' for more details." >&5
36541 echo "$as_me: error: cannot compute sizeof (int *)
36542 See \`config.log' for more details." >&2;}
36543    { (exit 77); exit 77; }; }
36544    else
36545      ac_cv_sizeof_int_p=0
36546    fi ;;
36547 esac
36548 else
36549   cat >conftest.$ac_ext <<_ACEOF
36550 /* confdefs.h.  */
36551 _ACEOF
36552 cat confdefs.h >>conftest.$ac_ext
36553 cat >>conftest.$ac_ext <<_ACEOF
36554 /* end confdefs.h.  */
36555 $ac_includes_default
36556    typedef int * ac__type_sizeof_;
36557 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36558 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36559 #include <stdio.h>
36560 #include <stdlib.h>
36561 int
36562 main ()
36563 {
36564
36565   FILE *f = fopen ("conftest.val", "w");
36566   if (! f)
36567     return 1;
36568   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36569     {
36570       long int i = longval ();
36571       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36572         return 1;
36573       fprintf (f, "%ld\n", i);
36574     }
36575   else
36576     {
36577       unsigned long int i = ulongval ();
36578       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36579         return 1;
36580       fprintf (f, "%lu\n", i);
36581     }
36582   return ferror (f) || fclose (f) != 0;
36583
36584   ;
36585   return 0;
36586 }
36587 _ACEOF
36588 rm -f conftest$ac_exeext
36589 if { (ac_try="$ac_link"
36590 case "(($ac_try" in
36591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36592   *) ac_try_echo=$ac_try;;
36593 esac
36594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36595   (eval "$ac_link") 2>&5
36596   ac_status=$?
36597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36599   { (case "(($ac_try" in
36600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36601   *) ac_try_echo=$ac_try;;
36602 esac
36603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36604   (eval "$ac_try") 2>&5
36605   ac_status=$?
36606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36607   (exit $ac_status); }; }; then
36608   ac_cv_sizeof_int_p=`cat conftest.val`
36609 else
36610   echo "$as_me: program exited with status $ac_status" >&5
36611 echo "$as_me: failed program was:" >&5
36612 sed 's/^/| /' conftest.$ac_ext >&5
36613
36614 ( exit $ac_status )
36615 if test "$ac_cv_type_int_p" = yes; then
36616      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36617 See \`config.log' for more details." >&5
36618 echo "$as_me: error: cannot compute sizeof (int *)
36619 See \`config.log' for more details." >&2;}
36620    { (exit 77); exit 77; }; }
36621    else
36622      ac_cv_sizeof_int_p=0
36623    fi
36624 fi
36625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36626 fi
36627 rm -f conftest.val
36628 fi
36629 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36630 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36631
36632
36633
36634 cat >>confdefs.h <<_ACEOF
36635 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36636 _ACEOF
36637
36638
36639
36640 { echo "$as_me:$LINENO: checking for u_int type" >&5
36641 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36642 if test "${ac_cv_have_u_int+set}" = set; then
36643   echo $ECHO_N "(cached) $ECHO_C" >&6
36644 else
36645
36646        cat >conftest.$ac_ext <<_ACEOF
36647 /* confdefs.h.  */
36648 _ACEOF
36649 cat confdefs.h >>conftest.$ac_ext
36650 cat >>conftest.$ac_ext <<_ACEOF
36651 /* end confdefs.h.  */
36652
36653               #include <sys/types.h>
36654
36655 int
36656 main ()
36657 {
36658
36659               u_int a; a = 1;
36660
36661   ;
36662   return 0;
36663 }
36664 _ACEOF
36665 rm -f conftest.$ac_objext
36666 if { (ac_try="$ac_compile"
36667 case "(($ac_try" in
36668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36669   *) ac_try_echo=$ac_try;;
36670 esac
36671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36672   (eval "$ac_compile") 2>conftest.er1
36673   ac_status=$?
36674   grep -v '^ *+' conftest.er1 >conftest.err
36675   rm -f conftest.er1
36676   cat conftest.err >&5
36677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36678   (exit $ac_status); } && {
36679          test -z "$ac_c_werror_flag" ||
36680          test ! -s conftest.err
36681        } && test -s conftest.$ac_objext; then
36682
36683               ac_cv_have_u_int="yes"
36684
36685 else
36686   echo "$as_me: failed program was:" >&5
36687 sed 's/^/| /' conftest.$ac_ext >&5
36688
36689
36690               ac_cv_have_u_int="no"
36691
36692
36693 fi
36694
36695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36696
36697
36698 fi
36699 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36700 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36701 if test "x$ac_cv_have_u_int" = "xyes" ; then
36702    cat >>confdefs.h <<\_ACEOF
36703 #define HAVE_U_INT 1
36704 _ACEOF
36705
36706    have_u_int=1
36707 fi
36708
36709 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36710 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36711 if test "${ac_cv_have_intmax_t+set}" = set; then
36712   echo $ECHO_N "(cached) $ECHO_C" >&6
36713 else
36714
36715        cat >conftest.$ac_ext <<_ACEOF
36716 /* confdefs.h.  */
36717 _ACEOF
36718 cat confdefs.h >>conftest.$ac_ext
36719 cat >>conftest.$ac_ext <<_ACEOF
36720 /* end confdefs.h.  */
36721
36722               #include <sys/types.h>
36723
36724 int
36725 main ()
36726 {
36727
36728               intmax_t a; a = 1;
36729
36730   ;
36731   return 0;
36732 }
36733 _ACEOF
36734 rm -f conftest.$ac_objext
36735 if { (ac_try="$ac_compile"
36736 case "(($ac_try" in
36737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36738   *) ac_try_echo=$ac_try;;
36739 esac
36740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36741   (eval "$ac_compile") 2>conftest.er1
36742   ac_status=$?
36743   grep -v '^ *+' conftest.er1 >conftest.err
36744   rm -f conftest.er1
36745   cat conftest.err >&5
36746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36747   (exit $ac_status); } && {
36748          test -z "$ac_c_werror_flag" ||
36749          test ! -s conftest.err
36750        } && test -s conftest.$ac_objext; then
36751
36752               ac_cv_have_intmax_t="yes"
36753
36754 else
36755   echo "$as_me: failed program was:" >&5
36756 sed 's/^/| /' conftest.$ac_ext >&5
36757
36758
36759               cat >conftest.$ac_ext <<_ACEOF
36760 /* confdefs.h.  */
36761 _ACEOF
36762 cat confdefs.h >>conftest.$ac_ext
36763 cat >>conftest.$ac_ext <<_ACEOF
36764 /* end confdefs.h.  */
36765
36766                      #include <stdint.h>
36767
36768 int
36769 main ()
36770 {
36771
36772                      intmax_t a; a = 1;
36773
36774   ;
36775   return 0;
36776 }
36777 _ACEOF
36778 rm -f conftest.$ac_objext
36779 if { (ac_try="$ac_compile"
36780 case "(($ac_try" in
36781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36782   *) ac_try_echo=$ac_try;;
36783 esac
36784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36785   (eval "$ac_compile") 2>conftest.er1
36786   ac_status=$?
36787   grep -v '^ *+' conftest.er1 >conftest.err
36788   rm -f conftest.er1
36789   cat conftest.err >&5
36790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791   (exit $ac_status); } && {
36792          test -z "$ac_c_werror_flag" ||
36793          test ! -s conftest.err
36794        } && test -s conftest.$ac_objext; then
36795
36796                      ac_cv_have_intmax_t="yes"
36797
36798 else
36799   echo "$as_me: failed program was:" >&5
36800 sed 's/^/| /' conftest.$ac_ext >&5
36801
36802
36803                      ac_cv_have_intmax_t="no"
36804
36805
36806 fi
36807
36808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36809
36810
36811 fi
36812
36813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36814
36815
36816 fi
36817 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36818 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36819 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36820    cat >>confdefs.h <<\_ACEOF
36821 #define HAVE_INTMAX_T 1
36822 _ACEOF
36823
36824    have_intmax_t=1
36825 fi
36826
36827 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36828 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36829 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36830   echo $ECHO_N "(cached) $ECHO_C" >&6
36831 else
36832
36833        cat >conftest.$ac_ext <<_ACEOF
36834 /* confdefs.h.  */
36835 _ACEOF
36836 cat confdefs.h >>conftest.$ac_ext
36837 cat >>conftest.$ac_ext <<_ACEOF
36838 /* end confdefs.h.  */
36839
36840               #include <sys/types.h>
36841
36842 int
36843 main ()
36844 {
36845
36846               u_intmax_t a; a = 1;
36847
36848   ;
36849   return 0;
36850 }
36851 _ACEOF
36852 rm -f conftest.$ac_objext
36853 if { (ac_try="$ac_compile"
36854 case "(($ac_try" in
36855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36856   *) ac_try_echo=$ac_try;;
36857 esac
36858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36859   (eval "$ac_compile") 2>conftest.er1
36860   ac_status=$?
36861   grep -v '^ *+' conftest.er1 >conftest.err
36862   rm -f conftest.er1
36863   cat conftest.err >&5
36864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36865   (exit $ac_status); } && {
36866          test -z "$ac_c_werror_flag" ||
36867          test ! -s conftest.err
36868        } && test -s conftest.$ac_objext; then
36869
36870               ac_cv_have_u_intmax_t="yes"
36871
36872 else
36873   echo "$as_me: failed program was:" >&5
36874 sed 's/^/| /' conftest.$ac_ext >&5
36875
36876
36877               cat >conftest.$ac_ext <<_ACEOF
36878 /* confdefs.h.  */
36879 _ACEOF
36880 cat confdefs.h >>conftest.$ac_ext
36881 cat >>conftest.$ac_ext <<_ACEOF
36882 /* end confdefs.h.  */
36883
36884                      #include <stdint.h>
36885
36886 int
36887 main ()
36888 {
36889
36890                     u_intmax_t a; a = 1;
36891
36892   ;
36893   return 0;
36894 }
36895 _ACEOF
36896 rm -f conftest.$ac_objext
36897 if { (ac_try="$ac_compile"
36898 case "(($ac_try" in
36899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36900   *) ac_try_echo=$ac_try;;
36901 esac
36902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36903   (eval "$ac_compile") 2>conftest.er1
36904   ac_status=$?
36905   grep -v '^ *+' conftest.er1 >conftest.err
36906   rm -f conftest.er1
36907   cat conftest.err >&5
36908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36909   (exit $ac_status); } && {
36910          test -z "$ac_c_werror_flag" ||
36911          test ! -s conftest.err
36912        } && test -s conftest.$ac_objext; then
36913
36914                     ac_cv_have_u_intmax_t="yes"
36915
36916 else
36917   echo "$as_me: failed program was:" >&5
36918 sed 's/^/| /' conftest.$ac_ext >&5
36919
36920
36921                     ac_cv_have_u_intmax_t="no"
36922
36923
36924 fi
36925
36926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36927
36928
36929 fi
36930
36931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36932
36933
36934 fi
36935 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36936 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36937 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36938    cat >>confdefs.h <<\_ACEOF
36939 #define HAVE_U_INTMAX_T 1
36940 _ACEOF
36941
36942    have_u_intmax_t=1
36943 fi
36944
36945 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36946 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36947 if test "${ac_cv_have_intxx_t+set}" = set; then
36948   echo $ECHO_N "(cached) $ECHO_C" >&6
36949 else
36950
36951        cat >conftest.$ac_ext <<_ACEOF
36952 /* confdefs.h.  */
36953 _ACEOF
36954 cat confdefs.h >>conftest.$ac_ext
36955 cat >>conftest.$ac_ext <<_ACEOF
36956 /* end confdefs.h.  */
36957
36958               #include <sys/types.h>
36959
36960 int
36961 main ()
36962 {
36963
36964               int8_t a; int16_t b; int32_t c; a = b = c = 1;
36965
36966   ;
36967   return 0;
36968 }
36969 _ACEOF
36970 rm -f conftest.$ac_objext
36971 if { (ac_try="$ac_compile"
36972 case "(($ac_try" in
36973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36974   *) ac_try_echo=$ac_try;;
36975 esac
36976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36977   (eval "$ac_compile") 2>conftest.er1
36978   ac_status=$?
36979   grep -v '^ *+' conftest.er1 >conftest.err
36980   rm -f conftest.er1
36981   cat conftest.err >&5
36982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983   (exit $ac_status); } && {
36984          test -z "$ac_c_werror_flag" ||
36985          test ! -s conftest.err
36986        } && test -s conftest.$ac_objext; then
36987
36988               ac_cv_have_intxx_t="yes"
36989
36990 else
36991   echo "$as_me: failed program was:" >&5
36992 sed 's/^/| /' conftest.$ac_ext >&5
36993
36994
36995               ac_cv_have_intxx_t="no"
36996
36997
36998 fi
36999
37000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37001
37002
37003 fi
37004 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37005 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37006 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37007    cat >>confdefs.h <<\_ACEOF
37008 #define HAVE_INTXX_T 1
37009 _ACEOF
37010
37011    have_intxx_t=1
37012 fi
37013
37014 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37015 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37016 if test "${ac_cv_have_int64_t+set}" = set; then
37017   echo $ECHO_N "(cached) $ECHO_C" >&6
37018 else
37019
37020        cat >conftest.$ac_ext <<_ACEOF
37021 /* confdefs.h.  */
37022 _ACEOF
37023 cat confdefs.h >>conftest.$ac_ext
37024 cat >>conftest.$ac_ext <<_ACEOF
37025 /* end confdefs.h.  */
37026
37027               #include <sys/types.h>
37028
37029 int
37030 main ()
37031 {
37032
37033               int64_t a; a = 1;
37034
37035   ;
37036   return 0;
37037 }
37038 _ACEOF
37039 rm -f conftest.$ac_objext
37040 if { (ac_try="$ac_compile"
37041 case "(($ac_try" in
37042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37043   *) ac_try_echo=$ac_try;;
37044 esac
37045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37046   (eval "$ac_compile") 2>conftest.er1
37047   ac_status=$?
37048   grep -v '^ *+' conftest.er1 >conftest.err
37049   rm -f conftest.er1
37050   cat conftest.err >&5
37051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37052   (exit $ac_status); } && {
37053          test -z "$ac_c_werror_flag" ||
37054          test ! -s conftest.err
37055        } && test -s conftest.$ac_objext; then
37056
37057               ac_cv_have_int64_t="yes"
37058
37059 else
37060   echo "$as_me: failed program was:" >&5
37061 sed 's/^/| /' conftest.$ac_ext >&5
37062
37063
37064               ac_cv_have_int64_t="no"
37065
37066
37067 fi
37068
37069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37070
37071
37072 fi
37073 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37074 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37075 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37076    cat >>confdefs.h <<\_ACEOF
37077 #define HAVE_INT64_T 1
37078 _ACEOF
37079
37080    have_int64_t=1
37081 fi
37082
37083 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37084 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37085 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37086   echo $ECHO_N "(cached) $ECHO_C" >&6
37087 else
37088
37089        cat >conftest.$ac_ext <<_ACEOF
37090 /* confdefs.h.  */
37091 _ACEOF
37092 cat confdefs.h >>conftest.$ac_ext
37093 cat >>conftest.$ac_ext <<_ACEOF
37094 /* end confdefs.h.  */
37095
37096               #include <sys/types.h>
37097
37098 int
37099 main ()
37100 {
37101
37102               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37103
37104   ;
37105   return 0;
37106 }
37107 _ACEOF
37108 rm -f conftest.$ac_objext
37109 if { (ac_try="$ac_compile"
37110 case "(($ac_try" in
37111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37112   *) ac_try_echo=$ac_try;;
37113 esac
37114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37115   (eval "$ac_compile") 2>conftest.er1
37116   ac_status=$?
37117   grep -v '^ *+' conftest.er1 >conftest.err
37118   rm -f conftest.er1
37119   cat conftest.err >&5
37120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37121   (exit $ac_status); } && {
37122          test -z "$ac_c_werror_flag" ||
37123          test ! -s conftest.err
37124        } && test -s conftest.$ac_objext; then
37125
37126              ac_cv_have_u_intxx_t="yes"
37127
37128 else
37129   echo "$as_me: failed program was:" >&5
37130 sed 's/^/| /' conftest.$ac_ext >&5
37131
37132
37133              ac_cv_have_u_intxx_t="no"
37134
37135
37136 fi
37137
37138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37139
37140
37141 fi
37142 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37143 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37144 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37145    cat >>confdefs.h <<\_ACEOF
37146 #define HAVE_U_INTXX_T 1
37147 _ACEOF
37148
37149    have_u_intxx_t=1
37150 fi
37151
37152 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37153 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37154 if test "${ac_cv_have_u_int64_t+set}" = set; then
37155   echo $ECHO_N "(cached) $ECHO_C" >&6
37156 else
37157
37158        cat >conftest.$ac_ext <<_ACEOF
37159 /* confdefs.h.  */
37160 _ACEOF
37161 cat confdefs.h >>conftest.$ac_ext
37162 cat >>conftest.$ac_ext <<_ACEOF
37163 /* end confdefs.h.  */
37164
37165               #include <sys/types.h>
37166
37167 int
37168 main ()
37169 {
37170
37171               u_int64_t a; a = 1;
37172
37173   ;
37174   return 0;
37175 }
37176 _ACEOF
37177 rm -f conftest.$ac_objext
37178 if { (ac_try="$ac_compile"
37179 case "(($ac_try" in
37180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37181   *) ac_try_echo=$ac_try;;
37182 esac
37183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37184   (eval "$ac_compile") 2>conftest.er1
37185   ac_status=$?
37186   grep -v '^ *+' conftest.er1 >conftest.err
37187   rm -f conftest.er1
37188   cat conftest.err >&5
37189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190   (exit $ac_status); } && {
37191          test -z "$ac_c_werror_flag" ||
37192          test ! -s conftest.err
37193        } && test -s conftest.$ac_objext; then
37194
37195              ac_cv_have_u_int64_t="yes"
37196
37197 else
37198   echo "$as_me: failed program was:" >&5
37199 sed 's/^/| /' conftest.$ac_ext >&5
37200
37201
37202              ac_cv_have_u_int64_t="no"
37203
37204
37205 fi
37206
37207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37208
37209
37210 fi
37211 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37212 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37213 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37214    cat >>confdefs.h <<\_ACEOF
37215 #define HAVE_U_INT64_T 1
37216 _ACEOF
37217
37218    have_u_int64_t=1
37219 fi
37220
37221 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37222     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37223 then
37224    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37225 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37226    cat >conftest.$ac_ext <<_ACEOF
37227 /* confdefs.h.  */
37228 _ACEOF
37229 cat confdefs.h >>conftest.$ac_ext
37230 cat >>conftest.$ac_ext <<_ACEOF
37231 /* end confdefs.h.  */
37232
37233           #include <sys/bitypes.h>
37234
37235 int
37236 main ()
37237 {
37238
37239           int8_t a; int16_t b; int32_t c;
37240           u_int8_t e; u_int16_t f; u_int32_t g;
37241           a = b = c = e = f = g = 1;
37242
37243   ;
37244   return 0;
37245 }
37246 _ACEOF
37247 rm -f conftest.$ac_objext
37248 if { (ac_try="$ac_compile"
37249 case "(($ac_try" in
37250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37251   *) ac_try_echo=$ac_try;;
37252 esac
37253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37254   (eval "$ac_compile") 2>conftest.er1
37255   ac_status=$?
37256   grep -v '^ *+' conftest.er1 >conftest.err
37257   rm -f conftest.er1
37258   cat conftest.err >&5
37259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37260   (exit $ac_status); } && {
37261          test -z "$ac_c_werror_flag" ||
37262          test ! -s conftest.err
37263        } && test -s conftest.$ac_objext; then
37264
37265           cat >>confdefs.h <<\_ACEOF
37266 #define HAVE_U_INTXX_T 1
37267 _ACEOF
37268
37269           cat >>confdefs.h <<\_ACEOF
37270 #define HAVE_INTXX_T 1
37271 _ACEOF
37272
37273           cat >>confdefs.h <<\_ACEOF
37274 #define HAVE_SYS_BITYPES_H 1
37275 _ACEOF
37276
37277           { echo "$as_me:$LINENO: result: yes" >&5
37278 echo "${ECHO_T}yes" >&6; }
37279
37280 else
37281   echo "$as_me: failed program was:" >&5
37282 sed 's/^/| /' conftest.$ac_ext >&5
37283
37284
37285           { echo "$as_me:$LINENO: result: no" >&5
37286 echo "${ECHO_T}no" >&6; }
37287
37288
37289 fi
37290
37291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37292 fi
37293
37294 if test -z "$have_u_intxx_t" ; then
37295    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37296 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37297 if test "${ac_cv_have_uintxx_t+set}" = set; then
37298   echo $ECHO_N "(cached) $ECHO_C" >&6
37299 else
37300
37301           cat >conftest.$ac_ext <<_ACEOF
37302 /* confdefs.h.  */
37303 _ACEOF
37304 cat confdefs.h >>conftest.$ac_ext
37305 cat >>conftest.$ac_ext <<_ACEOF
37306 /* end confdefs.h.  */
37307
37308                  #include <sys/types.h>
37309
37310 int
37311 main ()
37312 {
37313
37314                  uint8_t a; uint16_t b;
37315                  uint32_t c; a = b = c = 1;
37316
37317   ;
37318   return 0;
37319 }
37320 _ACEOF
37321 rm -f conftest.$ac_objext
37322 if { (ac_try="$ac_compile"
37323 case "(($ac_try" in
37324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37325   *) ac_try_echo=$ac_try;;
37326 esac
37327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37328   (eval "$ac_compile") 2>conftest.er1
37329   ac_status=$?
37330   grep -v '^ *+' conftest.er1 >conftest.err
37331   rm -f conftest.er1
37332   cat conftest.err >&5
37333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37334   (exit $ac_status); } && {
37335          test -z "$ac_c_werror_flag" ||
37336          test ! -s conftest.err
37337        } && test -s conftest.$ac_objext; then
37338
37339                 ac_cv_have_uintxx_t="yes"
37340
37341 else
37342   echo "$as_me: failed program was:" >&5
37343 sed 's/^/| /' conftest.$ac_ext >&5
37344
37345
37346                 ac_cv_have_uintxx_t="no"
37347
37348
37349 fi
37350
37351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37352
37353
37354 fi
37355 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37356 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37357    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37358       cat >>confdefs.h <<\_ACEOF
37359 #define HAVE_UINTXX_T 1
37360 _ACEOF
37361
37362    fi
37363 fi
37364
37365 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37366     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37367 then
37368    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37369 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37370    cat >conftest.$ac_ext <<_ACEOF
37371 /* confdefs.h.  */
37372 _ACEOF
37373 cat confdefs.h >>conftest.$ac_ext
37374 cat >>conftest.$ac_ext <<_ACEOF
37375 /* end confdefs.h.  */
37376
37377           #include <sys/bitypes.h>
37378
37379 int
37380 main ()
37381 {
37382
37383           int64_t a; u_int64_t b;
37384           a = b = 1;
37385
37386   ;
37387   return 0;
37388 }
37389 _ACEOF
37390 rm -f conftest.$ac_objext
37391 if { (ac_try="$ac_compile"
37392 case "(($ac_try" in
37393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37394   *) ac_try_echo=$ac_try;;
37395 esac
37396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37397   (eval "$ac_compile") 2>conftest.er1
37398   ac_status=$?
37399   grep -v '^ *+' conftest.er1 >conftest.err
37400   rm -f conftest.er1
37401   cat conftest.err >&5
37402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403   (exit $ac_status); } && {
37404          test -z "$ac_c_werror_flag" ||
37405          test ! -s conftest.err
37406        } && test -s conftest.$ac_objext; then
37407
37408           cat >>confdefs.h <<\_ACEOF
37409 #define HAVE_U_INT64_T 1
37410 _ACEOF
37411
37412           cat >>confdefs.h <<\_ACEOF
37413 #define HAVE_INT64_T 1
37414 _ACEOF
37415
37416           { echo "$as_me:$LINENO: result: yes" >&5
37417 echo "${ECHO_T}yes" >&6; }
37418
37419 else
37420   echo "$as_me: failed program was:" >&5
37421 sed 's/^/| /' conftest.$ac_ext >&5
37422
37423
37424           { echo "$as_me:$LINENO: result: no" >&5
37425 echo "${ECHO_T}no" >&6; }
37426
37427
37428 fi
37429
37430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37431 fi
37432
37433 if (test -z "$have_uintxx_t" && \
37434     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37435 then
37436    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37437 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37438    cat >conftest.$ac_ext <<_ACEOF
37439 /* confdefs.h.  */
37440 _ACEOF
37441 cat confdefs.h >>conftest.$ac_ext
37442 cat >>conftest.$ac_ext <<_ACEOF
37443 /* end confdefs.h.  */
37444
37445           #include <sys/bitypes.h>
37446
37447 int
37448 main ()
37449 {
37450
37451           uint8_t a; uint16_t b;
37452           uint32_t c; a = b = c = 1;
37453
37454   ;
37455   return 0;
37456 }
37457 _ACEOF
37458 rm -f conftest.$ac_objext
37459 if { (ac_try="$ac_compile"
37460 case "(($ac_try" in
37461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37462   *) ac_try_echo=$ac_try;;
37463 esac
37464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37465   (eval "$ac_compile") 2>conftest.er1
37466   ac_status=$?
37467   grep -v '^ *+' conftest.er1 >conftest.err
37468   rm -f conftest.er1
37469   cat conftest.err >&5
37470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37471   (exit $ac_status); } && {
37472          test -z "$ac_c_werror_flag" ||
37473          test ! -s conftest.err
37474        } && test -s conftest.$ac_objext; then
37475
37476           cat >>confdefs.h <<\_ACEOF
37477 #define HAVE_UINTXX_T 1
37478 _ACEOF
37479
37480           { echo "$as_me:$LINENO: result: yes" >&5
37481 echo "${ECHO_T}yes" >&6; }
37482
37483 else
37484   echo "$as_me: failed program was:" >&5
37485 sed 's/^/| /' conftest.$ac_ext >&5
37486
37487
37488           { echo "$as_me:$LINENO: result: no" >&5
37489 echo "${ECHO_T}no" >&6; }
37490
37491
37492 fi
37493
37494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37495 fi
37496
37497
37498
37499
37500
37501
37502
37503
37504
37505
37506
37507
37508
37509
37510 for ac_func in \
37511    fork \
37512    getcwd \
37513    gethostname \
37514    getpid \
37515    gettimeofday \
37516    setpgid \
37517    setpgrp \
37518    setsid \
37519    signal \
37520    strerror \
37521    strncmp \
37522    strncpy \
37523    vfprintf \
37524
37525 do
37526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37530   echo $ECHO_N "(cached) $ECHO_C" >&6
37531 else
37532   cat >conftest.$ac_ext <<_ACEOF
37533 /* confdefs.h.  */
37534 _ACEOF
37535 cat confdefs.h >>conftest.$ac_ext
37536 cat >>conftest.$ac_ext <<_ACEOF
37537 /* end confdefs.h.  */
37538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37540 #define $ac_func innocuous_$ac_func
37541
37542 /* System header to define __stub macros and hopefully few prototypes,
37543     which can conflict with char $ac_func (); below.
37544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37545     <limits.h> exists even on freestanding compilers.  */
37546
37547 #ifdef __STDC__
37548 # include <limits.h>
37549 #else
37550 # include <assert.h>
37551 #endif
37552
37553 #undef $ac_func
37554
37555 /* Override any GCC internal prototype to avoid an error.
37556    Use char because int might match the return type of a GCC
37557    builtin and then its argument prototype would still apply.  */
37558 #ifdef __cplusplus
37559 extern "C"
37560 #endif
37561 char $ac_func ();
37562 /* The GNU C library defines this for functions which it implements
37563     to always fail with ENOSYS.  Some functions are actually named
37564     something starting with __ and the normal name is an alias.  */
37565 #if defined __stub_$ac_func || defined __stub___$ac_func
37566 choke me
37567 #endif
37568
37569 int
37570 main ()
37571 {
37572 return $ac_func ();
37573   ;
37574   return 0;
37575 }
37576 _ACEOF
37577 rm -f conftest.$ac_objext conftest$ac_exeext
37578 if { (ac_try="$ac_link"
37579 case "(($ac_try" in
37580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37581   *) ac_try_echo=$ac_try;;
37582 esac
37583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37584   (eval "$ac_link") 2>conftest.er1
37585   ac_status=$?
37586   grep -v '^ *+' conftest.er1 >conftest.err
37587   rm -f conftest.er1
37588   cat conftest.err >&5
37589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590   (exit $ac_status); } && {
37591          test -z "$ac_c_werror_flag" ||
37592          test ! -s conftest.err
37593        } && test -s conftest$ac_exeext &&
37594        $as_test_x conftest$ac_exeext; then
37595   eval "$as_ac_var=yes"
37596 else
37597   echo "$as_me: failed program was:" >&5
37598 sed 's/^/| /' conftest.$ac_ext >&5
37599
37600         eval "$as_ac_var=no"
37601 fi
37602
37603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37604       conftest$ac_exeext conftest.$ac_ext
37605 fi
37606 ac_res=`eval echo '${'$as_ac_var'}'`
37607                { echo "$as_me:$LINENO: result: $ac_res" >&5
37608 echo "${ECHO_T}$ac_res" >&6; }
37609 if test `eval echo '${'$as_ac_var'}'` = yes; then
37610   cat >>confdefs.h <<_ACEOF
37611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37612 _ACEOF
37613
37614 else
37615   echo 'configure: cannot find needed function.'; exit 1
37616
37617 fi
37618 done
37619
37620
37621
37622 for ac_func in fchdir
37623 do
37624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37625 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37628   echo $ECHO_N "(cached) $ECHO_C" >&6
37629 else
37630   cat >conftest.$ac_ext <<_ACEOF
37631 /* confdefs.h.  */
37632 _ACEOF
37633 cat confdefs.h >>conftest.$ac_ext
37634 cat >>conftest.$ac_ext <<_ACEOF
37635 /* end confdefs.h.  */
37636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37638 #define $ac_func innocuous_$ac_func
37639
37640 /* System header to define __stub macros and hopefully few prototypes,
37641     which can conflict with char $ac_func (); below.
37642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37643     <limits.h> exists even on freestanding compilers.  */
37644
37645 #ifdef __STDC__
37646 # include <limits.h>
37647 #else
37648 # include <assert.h>
37649 #endif
37650
37651 #undef $ac_func
37652
37653 /* Override any GCC internal prototype to avoid an error.
37654    Use char because int might match the return type of a GCC
37655    builtin and then its argument prototype would still apply.  */
37656 #ifdef __cplusplus
37657 extern "C"
37658 #endif
37659 char $ac_func ();
37660 /* The GNU C library defines this for functions which it implements
37661     to always fail with ENOSYS.  Some functions are actually named
37662     something starting with __ and the normal name is an alias.  */
37663 #if defined __stub_$ac_func || defined __stub___$ac_func
37664 choke me
37665 #endif
37666
37667 int
37668 main ()
37669 {
37670 return $ac_func ();
37671   ;
37672   return 0;
37673 }
37674 _ACEOF
37675 rm -f conftest.$ac_objext conftest$ac_exeext
37676 if { (ac_try="$ac_link"
37677 case "(($ac_try" in
37678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37679   *) ac_try_echo=$ac_try;;
37680 esac
37681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37682   (eval "$ac_link") 2>conftest.er1
37683   ac_status=$?
37684   grep -v '^ *+' conftest.er1 >conftest.err
37685   rm -f conftest.er1
37686   cat conftest.err >&5
37687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37688   (exit $ac_status); } && {
37689          test -z "$ac_c_werror_flag" ||
37690          test ! -s conftest.err
37691        } && test -s conftest$ac_exeext &&
37692        $as_test_x conftest$ac_exeext; then
37693   eval "$as_ac_var=yes"
37694 else
37695   echo "$as_me: failed program was:" >&5
37696 sed 's/^/| /' conftest.$ac_ext >&5
37697
37698         eval "$as_ac_var=no"
37699 fi
37700
37701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37702       conftest$ac_exeext conftest.$ac_ext
37703 fi
37704 ac_res=`eval echo '${'$as_ac_var'}'`
37705                { echo "$as_me:$LINENO: result: $ac_res" >&5
37706 echo "${ECHO_T}$ac_res" >&6; }
37707 if test `eval echo '${'$as_ac_var'}'` = yes; then
37708   cat >>confdefs.h <<_ACEOF
37709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37710 _ACEOF
37711  cat >>confdefs.h <<\_ACEOF
37712 #define HAVE_FCHDIR 1
37713 _ACEOF
37714
37715 fi
37716 done
37717
37718
37719 for ac_func in strtoll
37720 do
37721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37725   echo $ECHO_N "(cached) $ECHO_C" >&6
37726 else
37727   cat >conftest.$ac_ext <<_ACEOF
37728 /* confdefs.h.  */
37729 _ACEOF
37730 cat confdefs.h >>conftest.$ac_ext
37731 cat >>conftest.$ac_ext <<_ACEOF
37732 /* end confdefs.h.  */
37733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37735 #define $ac_func innocuous_$ac_func
37736
37737 /* System header to define __stub macros and hopefully few prototypes,
37738     which can conflict with char $ac_func (); below.
37739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37740     <limits.h> exists even on freestanding compilers.  */
37741
37742 #ifdef __STDC__
37743 # include <limits.h>
37744 #else
37745 # include <assert.h>
37746 #endif
37747
37748 #undef $ac_func
37749
37750 /* Override any GCC internal prototype to avoid an error.
37751    Use char because int might match the return type of a GCC
37752    builtin and then its argument prototype would still apply.  */
37753 #ifdef __cplusplus
37754 extern "C"
37755 #endif
37756 char $ac_func ();
37757 /* The GNU C library defines this for functions which it implements
37758     to always fail with ENOSYS.  Some functions are actually named
37759     something starting with __ and the normal name is an alias.  */
37760 #if defined __stub_$ac_func || defined __stub___$ac_func
37761 choke me
37762 #endif
37763
37764 int
37765 main ()
37766 {
37767 return $ac_func ();
37768   ;
37769   return 0;
37770 }
37771 _ACEOF
37772 rm -f conftest.$ac_objext conftest$ac_exeext
37773 if { (ac_try="$ac_link"
37774 case "(($ac_try" in
37775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37776   *) ac_try_echo=$ac_try;;
37777 esac
37778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37779   (eval "$ac_link") 2>conftest.er1
37780   ac_status=$?
37781   grep -v '^ *+' conftest.er1 >conftest.err
37782   rm -f conftest.er1
37783   cat conftest.err >&5
37784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37785   (exit $ac_status); } && {
37786          test -z "$ac_c_werror_flag" ||
37787          test ! -s conftest.err
37788        } && test -s conftest$ac_exeext &&
37789        $as_test_x conftest$ac_exeext; then
37790   eval "$as_ac_var=yes"
37791 else
37792   echo "$as_me: failed program was:" >&5
37793 sed 's/^/| /' conftest.$ac_ext >&5
37794
37795         eval "$as_ac_var=no"
37796 fi
37797
37798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37799       conftest$ac_exeext conftest.$ac_ext
37800 fi
37801 ac_res=`eval echo '${'$as_ac_var'}'`
37802                { echo "$as_me:$LINENO: result: $ac_res" >&5
37803 echo "${ECHO_T}$ac_res" >&6; }
37804 if test `eval echo '${'$as_ac_var'}'` = yes; then
37805   cat >>confdefs.h <<_ACEOF
37806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37807 _ACEOF
37808  cat >>confdefs.h <<\_ACEOF
37809 #define HAVE_STRTOLL 1
37810 _ACEOF
37811
37812 fi
37813 done
37814
37815
37816 for ac_func in posix_fadvise
37817 do
37818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37822   echo $ECHO_N "(cached) $ECHO_C" >&6
37823 else
37824   cat >conftest.$ac_ext <<_ACEOF
37825 /* confdefs.h.  */
37826 _ACEOF
37827 cat confdefs.h >>conftest.$ac_ext
37828 cat >>conftest.$ac_ext <<_ACEOF
37829 /* end confdefs.h.  */
37830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37832 #define $ac_func innocuous_$ac_func
37833
37834 /* System header to define __stub macros and hopefully few prototypes,
37835     which can conflict with char $ac_func (); below.
37836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37837     <limits.h> exists even on freestanding compilers.  */
37838
37839 #ifdef __STDC__
37840 # include <limits.h>
37841 #else
37842 # include <assert.h>
37843 #endif
37844
37845 #undef $ac_func
37846
37847 /* Override any GCC internal prototype to avoid an error.
37848    Use char because int might match the return type of a GCC
37849    builtin and then its argument prototype would still apply.  */
37850 #ifdef __cplusplus
37851 extern "C"
37852 #endif
37853 char $ac_func ();
37854 /* The GNU C library defines this for functions which it implements
37855     to always fail with ENOSYS.  Some functions are actually named
37856     something starting with __ and the normal name is an alias.  */
37857 #if defined __stub_$ac_func || defined __stub___$ac_func
37858 choke me
37859 #endif
37860
37861 int
37862 main ()
37863 {
37864 return $ac_func ();
37865   ;
37866   return 0;
37867 }
37868 _ACEOF
37869 rm -f conftest.$ac_objext conftest$ac_exeext
37870 if { (ac_try="$ac_link"
37871 case "(($ac_try" in
37872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37873   *) ac_try_echo=$ac_try;;
37874 esac
37875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37876   (eval "$ac_link") 2>conftest.er1
37877   ac_status=$?
37878   grep -v '^ *+' conftest.er1 >conftest.err
37879   rm -f conftest.er1
37880   cat conftest.err >&5
37881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882   (exit $ac_status); } && {
37883          test -z "$ac_c_werror_flag" ||
37884          test ! -s conftest.err
37885        } && test -s conftest$ac_exeext &&
37886        $as_test_x conftest$ac_exeext; then
37887   eval "$as_ac_var=yes"
37888 else
37889   echo "$as_me: failed program was:" >&5
37890 sed 's/^/| /' conftest.$ac_ext >&5
37891
37892         eval "$as_ac_var=no"
37893 fi
37894
37895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37896       conftest$ac_exeext conftest.$ac_ext
37897 fi
37898 ac_res=`eval echo '${'$as_ac_var'}'`
37899                { echo "$as_me:$LINENO: result: $ac_res" >&5
37900 echo "${ECHO_T}$ac_res" >&6; }
37901 if test `eval echo '${'$as_ac_var'}'` = yes; then
37902   cat >>confdefs.h <<_ACEOF
37903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37904 _ACEOF
37905
37906 fi
37907 done
37908
37909
37910 for ac_func in fdatasync
37911 do
37912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37916   echo $ECHO_N "(cached) $ECHO_C" >&6
37917 else
37918   cat >conftest.$ac_ext <<_ACEOF
37919 /* confdefs.h.  */
37920 _ACEOF
37921 cat confdefs.h >>conftest.$ac_ext
37922 cat >>conftest.$ac_ext <<_ACEOF
37923 /* end confdefs.h.  */
37924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37926 #define $ac_func innocuous_$ac_func
37927
37928 /* System header to define __stub macros and hopefully few prototypes,
37929     which can conflict with char $ac_func (); below.
37930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37931     <limits.h> exists even on freestanding compilers.  */
37932
37933 #ifdef __STDC__
37934 # include <limits.h>
37935 #else
37936 # include <assert.h>
37937 #endif
37938
37939 #undef $ac_func
37940
37941 /* Override any GCC internal prototype to avoid an error.
37942    Use char because int might match the return type of a GCC
37943    builtin and then its argument prototype would still apply.  */
37944 #ifdef __cplusplus
37945 extern "C"
37946 #endif
37947 char $ac_func ();
37948 /* The GNU C library defines this for functions which it implements
37949     to always fail with ENOSYS.  Some functions are actually named
37950     something starting with __ and the normal name is an alias.  */
37951 #if defined __stub_$ac_func || defined __stub___$ac_func
37952 choke me
37953 #endif
37954
37955 int
37956 main ()
37957 {
37958 return $ac_func ();
37959   ;
37960   return 0;
37961 }
37962 _ACEOF
37963 rm -f conftest.$ac_objext conftest$ac_exeext
37964 if { (ac_try="$ac_link"
37965 case "(($ac_try" in
37966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37967   *) ac_try_echo=$ac_try;;
37968 esac
37969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37970   (eval "$ac_link") 2>conftest.er1
37971   ac_status=$?
37972   grep -v '^ *+' conftest.er1 >conftest.err
37973   rm -f conftest.er1
37974   cat conftest.err >&5
37975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976   (exit $ac_status); } && {
37977          test -z "$ac_c_werror_flag" ||
37978          test ! -s conftest.err
37979        } && test -s conftest$ac_exeext &&
37980        $as_test_x conftest$ac_exeext; then
37981   eval "$as_ac_var=yes"
37982 else
37983   echo "$as_me: failed program was:" >&5
37984 sed 's/^/| /' conftest.$ac_ext >&5
37985
37986         eval "$as_ac_var=no"
37987 fi
37988
37989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37990       conftest$ac_exeext conftest.$ac_ext
37991 fi
37992 ac_res=`eval echo '${'$as_ac_var'}'`
37993                { echo "$as_me:$LINENO: result: $ac_res" >&5
37994 echo "${ECHO_T}$ac_res" >&6; }
37995 if test `eval echo '${'$as_ac_var'}'` = yes; then
37996   cat >>confdefs.h <<_ACEOF
37997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37998 _ACEOF
37999
38000 fi
38001 done
38002
38003
38004
38005 for ac_func in chflags
38006 do
38007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38011   echo $ECHO_N "(cached) $ECHO_C" >&6
38012 else
38013   cat >conftest.$ac_ext <<_ACEOF
38014 /* confdefs.h.  */
38015 _ACEOF
38016 cat confdefs.h >>conftest.$ac_ext
38017 cat >>conftest.$ac_ext <<_ACEOF
38018 /* end confdefs.h.  */
38019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38021 #define $ac_func innocuous_$ac_func
38022
38023 /* System header to define __stub macros and hopefully few prototypes,
38024     which can conflict with char $ac_func (); below.
38025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38026     <limits.h> exists even on freestanding compilers.  */
38027
38028 #ifdef __STDC__
38029 # include <limits.h>
38030 #else
38031 # include <assert.h>
38032 #endif
38033
38034 #undef $ac_func
38035
38036 /* Override any GCC internal prototype to avoid an error.
38037    Use char because int might match the return type of a GCC
38038    builtin and then its argument prototype would still apply.  */
38039 #ifdef __cplusplus
38040 extern "C"
38041 #endif
38042 char $ac_func ();
38043 /* The GNU C library defines this for functions which it implements
38044     to always fail with ENOSYS.  Some functions are actually named
38045     something starting with __ and the normal name is an alias.  */
38046 #if defined __stub_$ac_func || defined __stub___$ac_func
38047 choke me
38048 #endif
38049
38050 int
38051 main ()
38052 {
38053 return $ac_func ();
38054   ;
38055   return 0;
38056 }
38057 _ACEOF
38058 rm -f conftest.$ac_objext conftest$ac_exeext
38059 if { (ac_try="$ac_link"
38060 case "(($ac_try" in
38061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38062   *) ac_try_echo=$ac_try;;
38063 esac
38064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38065   (eval "$ac_link") 2>conftest.er1
38066   ac_status=$?
38067   grep -v '^ *+' conftest.er1 >conftest.err
38068   rm -f conftest.er1
38069   cat conftest.err >&5
38070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38071   (exit $ac_status); } && {
38072          test -z "$ac_c_werror_flag" ||
38073          test ! -s conftest.err
38074        } && test -s conftest$ac_exeext &&
38075        $as_test_x conftest$ac_exeext; then
38076   eval "$as_ac_var=yes"
38077 else
38078   echo "$as_me: failed program was:" >&5
38079 sed 's/^/| /' conftest.$ac_ext >&5
38080
38081         eval "$as_ac_var=no"
38082 fi
38083
38084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38085       conftest$ac_exeext conftest.$ac_ext
38086 fi
38087 ac_res=`eval echo '${'$as_ac_var'}'`
38088                { echo "$as_me:$LINENO: result: $ac_res" >&5
38089 echo "${ECHO_T}$ac_res" >&6; }
38090 if test `eval echo '${'$as_ac_var'}'` = yes; then
38091   cat >>confdefs.h <<_ACEOF
38092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38093 _ACEOF
38094
38095 fi
38096 done
38097
38098
38099
38100
38101
38102
38103 for ac_func in snprintf vsnprintf gethostid fseeko
38104 do
38105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38109   echo $ECHO_N "(cached) $ECHO_C" >&6
38110 else
38111   cat >conftest.$ac_ext <<_ACEOF
38112 /* confdefs.h.  */
38113 _ACEOF
38114 cat confdefs.h >>conftest.$ac_ext
38115 cat >>conftest.$ac_ext <<_ACEOF
38116 /* end confdefs.h.  */
38117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38119 #define $ac_func innocuous_$ac_func
38120
38121 /* System header to define __stub macros and hopefully few prototypes,
38122     which can conflict with char $ac_func (); below.
38123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38124     <limits.h> exists even on freestanding compilers.  */
38125
38126 #ifdef __STDC__
38127 # include <limits.h>
38128 #else
38129 # include <assert.h>
38130 #endif
38131
38132 #undef $ac_func
38133
38134 /* Override any GCC internal prototype to avoid an error.
38135    Use char because int might match the return type of a GCC
38136    builtin and then its argument prototype would still apply.  */
38137 #ifdef __cplusplus
38138 extern "C"
38139 #endif
38140 char $ac_func ();
38141 /* The GNU C library defines this for functions which it implements
38142     to always fail with ENOSYS.  Some functions are actually named
38143     something starting with __ and the normal name is an alias.  */
38144 #if defined __stub_$ac_func || defined __stub___$ac_func
38145 choke me
38146 #endif
38147
38148 int
38149 main ()
38150 {
38151 return $ac_func ();
38152   ;
38153   return 0;
38154 }
38155 _ACEOF
38156 rm -f conftest.$ac_objext conftest$ac_exeext
38157 if { (ac_try="$ac_link"
38158 case "(($ac_try" in
38159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38160   *) ac_try_echo=$ac_try;;
38161 esac
38162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38163   (eval "$ac_link") 2>conftest.er1
38164   ac_status=$?
38165   grep -v '^ *+' conftest.er1 >conftest.err
38166   rm -f conftest.er1
38167   cat conftest.err >&5
38168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38169   (exit $ac_status); } && {
38170          test -z "$ac_c_werror_flag" ||
38171          test ! -s conftest.err
38172        } && test -s conftest$ac_exeext &&
38173        $as_test_x conftest$ac_exeext; then
38174   eval "$as_ac_var=yes"
38175 else
38176   echo "$as_me: failed program was:" >&5
38177 sed 's/^/| /' conftest.$ac_ext >&5
38178
38179         eval "$as_ac_var=no"
38180 fi
38181
38182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38183       conftest$ac_exeext conftest.$ac_ext
38184 fi
38185 ac_res=`eval echo '${'$as_ac_var'}'`
38186                { echo "$as_me:$LINENO: result: $ac_res" >&5
38187 echo "${ECHO_T}$ac_res" >&6; }
38188 if test `eval echo '${'$as_ac_var'}'` = yes; then
38189   cat >>confdefs.h <<_ACEOF
38190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38191 _ACEOF
38192
38193 fi
38194 done
38195
38196
38197 { echo "$as_me:$LINENO: checking for va_copy" >&5
38198 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38199 if test "${ba_cv_va_copy+set}" = set; then
38200   echo $ECHO_N "(cached) $ECHO_C" >&6
38201 else
38202
38203        cat >conftest.$ac_ext <<_ACEOF
38204 /* confdefs.h.  */
38205 _ACEOF
38206 cat confdefs.h >>conftest.$ac_ext
38207 cat >>conftest.$ac_ext <<_ACEOF
38208 /* end confdefs.h.  */
38209
38210               #include <stdarg.h>
38211               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38212               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38213
38214 int
38215 main ()
38216 {
38217
38218               call_use_va_copy(1,2,3)
38219
38220   ;
38221   return 0;
38222 }
38223 _ACEOF
38224 rm -f conftest.$ac_objext conftest$ac_exeext
38225 if { (ac_try="$ac_link"
38226 case "(($ac_try" in
38227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38228   *) ac_try_echo=$ac_try;;
38229 esac
38230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38231   (eval "$ac_link") 2>conftest.er1
38232   ac_status=$?
38233   grep -v '^ *+' conftest.er1 >conftest.err
38234   rm -f conftest.er1
38235   cat conftest.err >&5
38236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38237   (exit $ac_status); } && {
38238          test -z "$ac_c_werror_flag" ||
38239          test ! -s conftest.err
38240        } && test -s conftest$ac_exeext &&
38241        $as_test_x conftest$ac_exeext; then
38242
38243               ba_cv_va_copy=yes,
38244
38245 else
38246   echo "$as_me: failed program was:" >&5
38247 sed 's/^/| /' conftest.$ac_ext >&5
38248
38249
38250               ba_cv_va_copy=no
38251
38252
38253 fi
38254
38255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38256       conftest$ac_exeext conftest.$ac_ext
38257
38258
38259 fi
38260 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38261 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38262 test $ba_cv_va_copy = yes &&
38263 cat >>confdefs.h <<\_ACEOF
38264 #define HAVE_VA_COPY 1
38265 _ACEOF
38266
38267
38268
38269
38270
38271
38272 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38273 do
38274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38278   echo $ECHO_N "(cached) $ECHO_C" >&6
38279 else
38280   cat >conftest.$ac_ext <<_ACEOF
38281 /* confdefs.h.  */
38282 _ACEOF
38283 cat confdefs.h >>conftest.$ac_ext
38284 cat >>conftest.$ac_ext <<_ACEOF
38285 /* end confdefs.h.  */
38286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38288 #define $ac_func innocuous_$ac_func
38289
38290 /* System header to define __stub macros and hopefully few prototypes,
38291     which can conflict with char $ac_func (); below.
38292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38293     <limits.h> exists even on freestanding compilers.  */
38294
38295 #ifdef __STDC__
38296 # include <limits.h>
38297 #else
38298 # include <assert.h>
38299 #endif
38300
38301 #undef $ac_func
38302
38303 /* Override any GCC internal prototype to avoid an error.
38304    Use char because int might match the return type of a GCC
38305    builtin and then its argument prototype would still apply.  */
38306 #ifdef __cplusplus
38307 extern "C"
38308 #endif
38309 char $ac_func ();
38310 /* The GNU C library defines this for functions which it implements
38311     to always fail with ENOSYS.  Some functions are actually named
38312     something starting with __ and the normal name is an alias.  */
38313 #if defined __stub_$ac_func || defined __stub___$ac_func
38314 choke me
38315 #endif
38316
38317 int
38318 main ()
38319 {
38320 return $ac_func ();
38321   ;
38322   return 0;
38323 }
38324 _ACEOF
38325 rm -f conftest.$ac_objext conftest$ac_exeext
38326 if { (ac_try="$ac_link"
38327 case "(($ac_try" in
38328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38329   *) ac_try_echo=$ac_try;;
38330 esac
38331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38332   (eval "$ac_link") 2>conftest.er1
38333   ac_status=$?
38334   grep -v '^ *+' conftest.er1 >conftest.err
38335   rm -f conftest.er1
38336   cat conftest.err >&5
38337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38338   (exit $ac_status); } && {
38339          test -z "$ac_c_werror_flag" ||
38340          test ! -s conftest.err
38341        } && test -s conftest$ac_exeext &&
38342        $as_test_x conftest$ac_exeext; then
38343   eval "$as_ac_var=yes"
38344 else
38345   echo "$as_me: failed program was:" >&5
38346 sed 's/^/| /' conftest.$ac_ext >&5
38347
38348         eval "$as_ac_var=no"
38349 fi
38350
38351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38352       conftest$ac_exeext conftest.$ac_ext
38353 fi
38354 ac_res=`eval echo '${'$as_ac_var'}'`
38355                { echo "$as_me:$LINENO: result: $ac_res" >&5
38356 echo "${ECHO_T}$ac_res" >&6; }
38357 if test `eval echo '${'$as_ac_var'}'` = yes; then
38358   cat >>confdefs.h <<_ACEOF
38359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38360 _ACEOF
38361
38362 fi
38363 done
38364
38365
38366 # If resolver functions are not in libc check for -lnsl or -lresolv.
38367 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38368 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38369 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38370   echo $ECHO_N "(cached) $ECHO_C" >&6
38371 else
38372   cat >conftest.$ac_ext <<_ACEOF
38373 /* confdefs.h.  */
38374 _ACEOF
38375 cat confdefs.h >>conftest.$ac_ext
38376 cat >>conftest.$ac_ext <<_ACEOF
38377 /* end confdefs.h.  */
38378 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38380 #define gethostbyname_r innocuous_gethostbyname_r
38381
38382 /* System header to define __stub macros and hopefully few prototypes,
38383     which can conflict with char gethostbyname_r (); below.
38384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38385     <limits.h> exists even on freestanding compilers.  */
38386
38387 #ifdef __STDC__
38388 # include <limits.h>
38389 #else
38390 # include <assert.h>
38391 #endif
38392
38393 #undef gethostbyname_r
38394
38395 /* Override any GCC internal prototype to avoid an error.
38396    Use char because int might match the return type of a GCC
38397    builtin and then its argument prototype would still apply.  */
38398 #ifdef __cplusplus
38399 extern "C"
38400 #endif
38401 char gethostbyname_r ();
38402 /* The GNU C library defines this for functions which it implements
38403     to always fail with ENOSYS.  Some functions are actually named
38404     something starting with __ and the normal name is an alias.  */
38405 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38406 choke me
38407 #endif
38408
38409 int
38410 main ()
38411 {
38412 return gethostbyname_r ();
38413   ;
38414   return 0;
38415 }
38416 _ACEOF
38417 rm -f conftest.$ac_objext conftest$ac_exeext
38418 if { (ac_try="$ac_link"
38419 case "(($ac_try" in
38420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38421   *) ac_try_echo=$ac_try;;
38422 esac
38423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38424   (eval "$ac_link") 2>conftest.er1
38425   ac_status=$?
38426   grep -v '^ *+' conftest.er1 >conftest.err
38427   rm -f conftest.er1
38428   cat conftest.err >&5
38429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38430   (exit $ac_status); } && {
38431          test -z "$ac_c_werror_flag" ||
38432          test ! -s conftest.err
38433        } && test -s conftest$ac_exeext &&
38434        $as_test_x conftest$ac_exeext; then
38435   ac_cv_func_gethostbyname_r=yes
38436 else
38437   echo "$as_me: failed program was:" >&5
38438 sed 's/^/| /' conftest.$ac_ext >&5
38439
38440         ac_cv_func_gethostbyname_r=no
38441 fi
38442
38443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38444       conftest$ac_exeext conftest.$ac_ext
38445 fi
38446 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38447 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38448 if test $ac_cv_func_gethostbyname_r = yes; then
38449   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38450 echo "${ECHO_T}using libc's resolver" >&6; }
38451 else
38452
38453 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38454 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38455 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38456   echo $ECHO_N "(cached) $ECHO_C" >&6
38457 else
38458   ac_check_lib_save_LIBS=$LIBS
38459 LIBS="-lnsl  $LIBS"
38460 cat >conftest.$ac_ext <<_ACEOF
38461 /* confdefs.h.  */
38462 _ACEOF
38463 cat confdefs.h >>conftest.$ac_ext
38464 cat >>conftest.$ac_ext <<_ACEOF
38465 /* end confdefs.h.  */
38466
38467 /* Override any GCC internal prototype to avoid an error.
38468    Use char because int might match the return type of a GCC
38469    builtin and then its argument prototype would still apply.  */
38470 #ifdef __cplusplus
38471 extern "C"
38472 #endif
38473 char gethostbyname_r ();
38474 int
38475 main ()
38476 {
38477 return gethostbyname_r ();
38478   ;
38479   return 0;
38480 }
38481 _ACEOF
38482 rm -f conftest.$ac_objext conftest$ac_exeext
38483 if { (ac_try="$ac_link"
38484 case "(($ac_try" in
38485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38486   *) ac_try_echo=$ac_try;;
38487 esac
38488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38489   (eval "$ac_link") 2>conftest.er1
38490   ac_status=$?
38491   grep -v '^ *+' conftest.er1 >conftest.err
38492   rm -f conftest.er1
38493   cat conftest.err >&5
38494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38495   (exit $ac_status); } && {
38496          test -z "$ac_c_werror_flag" ||
38497          test ! -s conftest.err
38498        } && test -s conftest$ac_exeext &&
38499        $as_test_x conftest$ac_exeext; then
38500   ac_cv_lib_nsl_gethostbyname_r=yes
38501 else
38502   echo "$as_me: failed program was:" >&5
38503 sed 's/^/| /' conftest.$ac_ext >&5
38504
38505         ac_cv_lib_nsl_gethostbyname_r=no
38506 fi
38507
38508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38509       conftest$ac_exeext conftest.$ac_ext
38510 LIBS=$ac_check_lib_save_LIBS
38511 fi
38512 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38513 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38514 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38515   cat >>confdefs.h <<_ACEOF
38516 #define HAVE_LIBNSL 1
38517 _ACEOF
38518
38519   LIBS="-lnsl $LIBS"
38520
38521 fi
38522
38523
38524 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38525 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38526 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38527   echo $ECHO_N "(cached) $ECHO_C" >&6
38528 else
38529   ac_check_lib_save_LIBS=$LIBS
38530 LIBS="-lresolv  $LIBS"
38531 cat >conftest.$ac_ext <<_ACEOF
38532 /* confdefs.h.  */
38533 _ACEOF
38534 cat confdefs.h >>conftest.$ac_ext
38535 cat >>conftest.$ac_ext <<_ACEOF
38536 /* end confdefs.h.  */
38537
38538 /* Override any GCC internal prototype to avoid an error.
38539    Use char because int might match the return type of a GCC
38540    builtin and then its argument prototype would still apply.  */
38541 #ifdef __cplusplus
38542 extern "C"
38543 #endif
38544 char gethostbyname_r ();
38545 int
38546 main ()
38547 {
38548 return gethostbyname_r ();
38549   ;
38550   return 0;
38551 }
38552 _ACEOF
38553 rm -f conftest.$ac_objext conftest$ac_exeext
38554 if { (ac_try="$ac_link"
38555 case "(($ac_try" in
38556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38557   *) ac_try_echo=$ac_try;;
38558 esac
38559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38560   (eval "$ac_link") 2>conftest.er1
38561   ac_status=$?
38562   grep -v '^ *+' conftest.er1 >conftest.err
38563   rm -f conftest.er1
38564   cat conftest.err >&5
38565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38566   (exit $ac_status); } && {
38567          test -z "$ac_c_werror_flag" ||
38568          test ! -s conftest.err
38569        } && test -s conftest$ac_exeext &&
38570        $as_test_x conftest$ac_exeext; then
38571   ac_cv_lib_resolv_gethostbyname_r=yes
38572 else
38573   echo "$as_me: failed program was:" >&5
38574 sed 's/^/| /' conftest.$ac_ext >&5
38575
38576         ac_cv_lib_resolv_gethostbyname_r=no
38577 fi
38578
38579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38580       conftest$ac_exeext conftest.$ac_ext
38581 LIBS=$ac_check_lib_save_LIBS
38582 fi
38583 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38584 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38585 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38586   cat >>confdefs.h <<_ACEOF
38587 #define HAVE_LIBRESOLV 1
38588 _ACEOF
38589
38590   LIBS="-lresolv $LIBS"
38591
38592 fi
38593
38594 fi
38595
38596
38597
38598 for ac_func in inet_pton
38599 do
38600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38604   echo $ECHO_N "(cached) $ECHO_C" >&6
38605 else
38606   cat >conftest.$ac_ext <<_ACEOF
38607 /* confdefs.h.  */
38608 _ACEOF
38609 cat confdefs.h >>conftest.$ac_ext
38610 cat >>conftest.$ac_ext <<_ACEOF
38611 /* end confdefs.h.  */
38612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38614 #define $ac_func innocuous_$ac_func
38615
38616 /* System header to define __stub macros and hopefully few prototypes,
38617     which can conflict with char $ac_func (); below.
38618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38619     <limits.h> exists even on freestanding compilers.  */
38620
38621 #ifdef __STDC__
38622 # include <limits.h>
38623 #else
38624 # include <assert.h>
38625 #endif
38626
38627 #undef $ac_func
38628
38629 /* Override any GCC internal prototype to avoid an error.
38630    Use char because int might match the return type of a GCC
38631    builtin and then its argument prototype would still apply.  */
38632 #ifdef __cplusplus
38633 extern "C"
38634 #endif
38635 char $ac_func ();
38636 /* The GNU C library defines this for functions which it implements
38637     to always fail with ENOSYS.  Some functions are actually named
38638     something starting with __ and the normal name is an alias.  */
38639 #if defined __stub_$ac_func || defined __stub___$ac_func
38640 choke me
38641 #endif
38642
38643 int
38644 main ()
38645 {
38646 return $ac_func ();
38647   ;
38648   return 0;
38649 }
38650 _ACEOF
38651 rm -f conftest.$ac_objext conftest$ac_exeext
38652 if { (ac_try="$ac_link"
38653 case "(($ac_try" in
38654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38655   *) ac_try_echo=$ac_try;;
38656 esac
38657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38658   (eval "$ac_link") 2>conftest.er1
38659   ac_status=$?
38660   grep -v '^ *+' conftest.er1 >conftest.err
38661   rm -f conftest.er1
38662   cat conftest.err >&5
38663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664   (exit $ac_status); } && {
38665          test -z "$ac_c_werror_flag" ||
38666          test ! -s conftest.err
38667        } && test -s conftest$ac_exeext &&
38668        $as_test_x conftest$ac_exeext; then
38669   eval "$as_ac_var=yes"
38670 else
38671   echo "$as_me: failed program was:" >&5
38672 sed 's/^/| /' conftest.$ac_ext >&5
38673
38674         eval "$as_ac_var=no"
38675 fi
38676
38677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38678       conftest$ac_exeext conftest.$ac_ext
38679 fi
38680 ac_res=`eval echo '${'$as_ac_var'}'`
38681                { echo "$as_me:$LINENO: result: $ac_res" >&5
38682 echo "${ECHO_T}$ac_res" >&6; }
38683 if test `eval echo '${'$as_ac_var'}'` = yes; then
38684   cat >>confdefs.h <<_ACEOF
38685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38686 _ACEOF
38687  cat >>confdefs.h <<\_ACEOF
38688 #define HAVE_INET_PTON 1
38689 _ACEOF
38690
38691 fi
38692 done
38693
38694
38695 for ac_func in inet_ntop
38696 do
38697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38701   echo $ECHO_N "(cached) $ECHO_C" >&6
38702 else
38703   cat >conftest.$ac_ext <<_ACEOF
38704 /* confdefs.h.  */
38705 _ACEOF
38706 cat confdefs.h >>conftest.$ac_ext
38707 cat >>conftest.$ac_ext <<_ACEOF
38708 /* end confdefs.h.  */
38709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38711 #define $ac_func innocuous_$ac_func
38712
38713 /* System header to define __stub macros and hopefully few prototypes,
38714     which can conflict with char $ac_func (); below.
38715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38716     <limits.h> exists even on freestanding compilers.  */
38717
38718 #ifdef __STDC__
38719 # include <limits.h>
38720 #else
38721 # include <assert.h>
38722 #endif
38723
38724 #undef $ac_func
38725
38726 /* Override any GCC internal prototype to avoid an error.
38727    Use char because int might match the return type of a GCC
38728    builtin and then its argument prototype would still apply.  */
38729 #ifdef __cplusplus
38730 extern "C"
38731 #endif
38732 char $ac_func ();
38733 /* The GNU C library defines this for functions which it implements
38734     to always fail with ENOSYS.  Some functions are actually named
38735     something starting with __ and the normal name is an alias.  */
38736 #if defined __stub_$ac_func || defined __stub___$ac_func
38737 choke me
38738 #endif
38739
38740 int
38741 main ()
38742 {
38743 return $ac_func ();
38744   ;
38745   return 0;
38746 }
38747 _ACEOF
38748 rm -f conftest.$ac_objext conftest$ac_exeext
38749 if { (ac_try="$ac_link"
38750 case "(($ac_try" in
38751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38752   *) ac_try_echo=$ac_try;;
38753 esac
38754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38755   (eval "$ac_link") 2>conftest.er1
38756   ac_status=$?
38757   grep -v '^ *+' conftest.er1 >conftest.err
38758   rm -f conftest.er1
38759   cat conftest.err >&5
38760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38761   (exit $ac_status); } && {
38762          test -z "$ac_c_werror_flag" ||
38763          test ! -s conftest.err
38764        } && test -s conftest$ac_exeext &&
38765        $as_test_x conftest$ac_exeext; then
38766   eval "$as_ac_var=yes"
38767 else
38768   echo "$as_me: failed program was:" >&5
38769 sed 's/^/| /' conftest.$ac_ext >&5
38770
38771         eval "$as_ac_var=no"
38772 fi
38773
38774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38775       conftest$ac_exeext conftest.$ac_ext
38776 fi
38777 ac_res=`eval echo '${'$as_ac_var'}'`
38778                { echo "$as_me:$LINENO: result: $ac_res" >&5
38779 echo "${ECHO_T}$ac_res" >&6; }
38780 if test `eval echo '${'$as_ac_var'}'` = yes; then
38781   cat >>confdefs.h <<_ACEOF
38782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38783 _ACEOF
38784  cat >>confdefs.h <<\_ACEOF
38785 #define HAVE_INET_NTOP 1
38786 _ACEOF
38787
38788 fi
38789 done
38790
38791
38792 for ac_func in gethostbyname2
38793 do
38794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38795 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38798   echo $ECHO_N "(cached) $ECHO_C" >&6
38799 else
38800   cat >conftest.$ac_ext <<_ACEOF
38801 /* confdefs.h.  */
38802 _ACEOF
38803 cat confdefs.h >>conftest.$ac_ext
38804 cat >>conftest.$ac_ext <<_ACEOF
38805 /* end confdefs.h.  */
38806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38808 #define $ac_func innocuous_$ac_func
38809
38810 /* System header to define __stub macros and hopefully few prototypes,
38811     which can conflict with char $ac_func (); below.
38812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38813     <limits.h> exists even on freestanding compilers.  */
38814
38815 #ifdef __STDC__
38816 # include <limits.h>
38817 #else
38818 # include <assert.h>
38819 #endif
38820
38821 #undef $ac_func
38822
38823 /* Override any GCC internal prototype to avoid an error.
38824    Use char because int might match the return type of a GCC
38825    builtin and then its argument prototype would still apply.  */
38826 #ifdef __cplusplus
38827 extern "C"
38828 #endif
38829 char $ac_func ();
38830 /* The GNU C library defines this for functions which it implements
38831     to always fail with ENOSYS.  Some functions are actually named
38832     something starting with __ and the normal name is an alias.  */
38833 #if defined __stub_$ac_func || defined __stub___$ac_func
38834 choke me
38835 #endif
38836
38837 int
38838 main ()
38839 {
38840 return $ac_func ();
38841   ;
38842   return 0;
38843 }
38844 _ACEOF
38845 rm -f conftest.$ac_objext conftest$ac_exeext
38846 if { (ac_try="$ac_link"
38847 case "(($ac_try" in
38848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38849   *) ac_try_echo=$ac_try;;
38850 esac
38851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38852   (eval "$ac_link") 2>conftest.er1
38853   ac_status=$?
38854   grep -v '^ *+' conftest.er1 >conftest.err
38855   rm -f conftest.er1
38856   cat conftest.err >&5
38857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858   (exit $ac_status); } && {
38859          test -z "$ac_c_werror_flag" ||
38860          test ! -s conftest.err
38861        } && test -s conftest$ac_exeext &&
38862        $as_test_x conftest$ac_exeext; then
38863   eval "$as_ac_var=yes"
38864 else
38865   echo "$as_me: failed program was:" >&5
38866 sed 's/^/| /' conftest.$ac_ext >&5
38867
38868         eval "$as_ac_var=no"
38869 fi
38870
38871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38872       conftest$ac_exeext conftest.$ac_ext
38873 fi
38874 ac_res=`eval echo '${'$as_ac_var'}'`
38875                { echo "$as_me:$LINENO: result: $ac_res" >&5
38876 echo "${ECHO_T}$ac_res" >&6; }
38877 if test `eval echo '${'$as_ac_var'}'` = yes; then
38878   cat >>confdefs.h <<_ACEOF
38879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38880 _ACEOF
38881  cat >>confdefs.h <<\_ACEOF
38882 #define HAVE_GETHOSTBYNAME2 1
38883 _ACEOF
38884
38885 fi
38886 done
38887
38888
38889 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38890 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38891 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38892   echo $ECHO_N "(cached) $ECHO_C" >&6
38893 else
38894
38895        cat >conftest.$ac_ext <<_ACEOF
38896 /* confdefs.h.  */
38897 _ACEOF
38898 cat confdefs.h >>conftest.$ac_ext
38899 cat >>conftest.$ac_ext <<_ACEOF
38900 /* end confdefs.h.  */
38901
38902               #include <sys/socket.h>
38903
38904 int
38905 main ()
38906 {
38907
38908               struct sockaddr s; s.sa_len;
38909
38910   ;
38911   return 0;
38912 }
38913 _ACEOF
38914 rm -f conftest.$ac_objext
38915 if { (ac_try="$ac_compile"
38916 case "(($ac_try" in
38917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38918   *) ac_try_echo=$ac_try;;
38919 esac
38920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38921   (eval "$ac_compile") 2>conftest.er1
38922   ac_status=$?
38923   grep -v '^ *+' conftest.er1 >conftest.err
38924   rm -f conftest.er1
38925   cat conftest.err >&5
38926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38927   (exit $ac_status); } && {
38928          test -z "$ac_c_werror_flag" ||
38929          test ! -s conftest.err
38930        } && test -s conftest.$ac_objext; then
38931
38932              ac_cv_struct_sockaddr_sa_len=yes
38933
38934 else
38935   echo "$as_me: failed program was:" >&5
38936 sed 's/^/| /' conftest.$ac_ext >&5
38937
38938         ac_cv_struct_sockaddr_sa_len=no
38939
38940
38941 fi
38942
38943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38944
38945
38946 fi
38947 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38948 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38949
38950 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38951
38952 cat >>confdefs.h <<\_ACEOF
38953 #define HAVE_SA_LEN 1
38954 _ACEOF
38955
38956 fi
38957
38958
38959 for ac_func in strftime
38960 do
38961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38965   echo $ECHO_N "(cached) $ECHO_C" >&6
38966 else
38967   cat >conftest.$ac_ext <<_ACEOF
38968 /* confdefs.h.  */
38969 _ACEOF
38970 cat confdefs.h >>conftest.$ac_ext
38971 cat >>conftest.$ac_ext <<_ACEOF
38972 /* end confdefs.h.  */
38973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38975 #define $ac_func innocuous_$ac_func
38976
38977 /* System header to define __stub macros and hopefully few prototypes,
38978     which can conflict with char $ac_func (); below.
38979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38980     <limits.h> exists even on freestanding compilers.  */
38981
38982 #ifdef __STDC__
38983 # include <limits.h>
38984 #else
38985 # include <assert.h>
38986 #endif
38987
38988 #undef $ac_func
38989
38990 /* Override any GCC internal prototype to avoid an error.
38991    Use char because int might match the return type of a GCC
38992    builtin and then its argument prototype would still apply.  */
38993 #ifdef __cplusplus
38994 extern "C"
38995 #endif
38996 char $ac_func ();
38997 /* The GNU C library defines this for functions which it implements
38998     to always fail with ENOSYS.  Some functions are actually named
38999     something starting with __ and the normal name is an alias.  */
39000 #if defined __stub_$ac_func || defined __stub___$ac_func
39001 choke me
39002 #endif
39003
39004 int
39005 main ()
39006 {
39007 return $ac_func ();
39008   ;
39009   return 0;
39010 }
39011 _ACEOF
39012 rm -f conftest.$ac_objext conftest$ac_exeext
39013 if { (ac_try="$ac_link"
39014 case "(($ac_try" in
39015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39016   *) ac_try_echo=$ac_try;;
39017 esac
39018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39019   (eval "$ac_link") 2>conftest.er1
39020   ac_status=$?
39021   grep -v '^ *+' conftest.er1 >conftest.err
39022   rm -f conftest.er1
39023   cat conftest.err >&5
39024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025   (exit $ac_status); } && {
39026          test -z "$ac_c_werror_flag" ||
39027          test ! -s conftest.err
39028        } && test -s conftest$ac_exeext &&
39029        $as_test_x conftest$ac_exeext; then
39030   eval "$as_ac_var=yes"
39031 else
39032   echo "$as_me: failed program was:" >&5
39033 sed 's/^/| /' conftest.$ac_ext >&5
39034
39035         eval "$as_ac_var=no"
39036 fi
39037
39038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39039       conftest$ac_exeext conftest.$ac_ext
39040 fi
39041 ac_res=`eval echo '${'$as_ac_var'}'`
39042                { echo "$as_me:$LINENO: result: $ac_res" >&5
39043 echo "${ECHO_T}$ac_res" >&6; }
39044 if test `eval echo '${'$as_ac_var'}'` = yes; then
39045   cat >>confdefs.h <<_ACEOF
39046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39047 _ACEOF
39048
39049 else
39050   # strftime is in -lintl on SCO UNIX.
39051 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39052 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39053 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39054   echo $ECHO_N "(cached) $ECHO_C" >&6
39055 else
39056   ac_check_lib_save_LIBS=$LIBS
39057 LIBS="-lintl  $LIBS"
39058 cat >conftest.$ac_ext <<_ACEOF
39059 /* confdefs.h.  */
39060 _ACEOF
39061 cat confdefs.h >>conftest.$ac_ext
39062 cat >>conftest.$ac_ext <<_ACEOF
39063 /* end confdefs.h.  */
39064
39065 /* Override any GCC internal prototype to avoid an error.
39066    Use char because int might match the return type of a GCC
39067    builtin and then its argument prototype would still apply.  */
39068 #ifdef __cplusplus
39069 extern "C"
39070 #endif
39071 char strftime ();
39072 int
39073 main ()
39074 {
39075 return strftime ();
39076   ;
39077   return 0;
39078 }
39079 _ACEOF
39080 rm -f conftest.$ac_objext conftest$ac_exeext
39081 if { (ac_try="$ac_link"
39082 case "(($ac_try" in
39083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39084   *) ac_try_echo=$ac_try;;
39085 esac
39086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39087   (eval "$ac_link") 2>conftest.er1
39088   ac_status=$?
39089   grep -v '^ *+' conftest.er1 >conftest.err
39090   rm -f conftest.er1
39091   cat conftest.err >&5
39092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093   (exit $ac_status); } && {
39094          test -z "$ac_c_werror_flag" ||
39095          test ! -s conftest.err
39096        } && test -s conftest$ac_exeext &&
39097        $as_test_x conftest$ac_exeext; then
39098   ac_cv_lib_intl_strftime=yes
39099 else
39100   echo "$as_me: failed program was:" >&5
39101 sed 's/^/| /' conftest.$ac_ext >&5
39102
39103         ac_cv_lib_intl_strftime=no
39104 fi
39105
39106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39107       conftest$ac_exeext conftest.$ac_ext
39108 LIBS=$ac_check_lib_save_LIBS
39109 fi
39110 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39111 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39112 if test $ac_cv_lib_intl_strftime = yes; then
39113   cat >>confdefs.h <<\_ACEOF
39114 #define HAVE_STRFTIME 1
39115 _ACEOF
39116
39117 LIBS="-lintl $LIBS"
39118 fi
39119
39120 fi
39121 done
39122
39123
39124 for ac_func in vprintf
39125 do
39126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39130   echo $ECHO_N "(cached) $ECHO_C" >&6
39131 else
39132   cat >conftest.$ac_ext <<_ACEOF
39133 /* confdefs.h.  */
39134 _ACEOF
39135 cat confdefs.h >>conftest.$ac_ext
39136 cat >>conftest.$ac_ext <<_ACEOF
39137 /* end confdefs.h.  */
39138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39140 #define $ac_func innocuous_$ac_func
39141
39142 /* System header to define __stub macros and hopefully few prototypes,
39143     which can conflict with char $ac_func (); below.
39144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39145     <limits.h> exists even on freestanding compilers.  */
39146
39147 #ifdef __STDC__
39148 # include <limits.h>
39149 #else
39150 # include <assert.h>
39151 #endif
39152
39153 #undef $ac_func
39154
39155 /* Override any GCC internal prototype to avoid an error.
39156    Use char because int might match the return type of a GCC
39157    builtin and then its argument prototype would still apply.  */
39158 #ifdef __cplusplus
39159 extern "C"
39160 #endif
39161 char $ac_func ();
39162 /* The GNU C library defines this for functions which it implements
39163     to always fail with ENOSYS.  Some functions are actually named
39164     something starting with __ and the normal name is an alias.  */
39165 #if defined __stub_$ac_func || defined __stub___$ac_func
39166 choke me
39167 #endif
39168
39169 int
39170 main ()
39171 {
39172 return $ac_func ();
39173   ;
39174   return 0;
39175 }
39176 _ACEOF
39177 rm -f conftest.$ac_objext conftest$ac_exeext
39178 if { (ac_try="$ac_link"
39179 case "(($ac_try" in
39180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39181   *) ac_try_echo=$ac_try;;
39182 esac
39183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39184   (eval "$ac_link") 2>conftest.er1
39185   ac_status=$?
39186   grep -v '^ *+' conftest.er1 >conftest.err
39187   rm -f conftest.er1
39188   cat conftest.err >&5
39189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190   (exit $ac_status); } && {
39191          test -z "$ac_c_werror_flag" ||
39192          test ! -s conftest.err
39193        } && test -s conftest$ac_exeext &&
39194        $as_test_x conftest$ac_exeext; then
39195   eval "$as_ac_var=yes"
39196 else
39197   echo "$as_me: failed program was:" >&5
39198 sed 's/^/| /' conftest.$ac_ext >&5
39199
39200         eval "$as_ac_var=no"
39201 fi
39202
39203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39204       conftest$ac_exeext conftest.$ac_ext
39205 fi
39206 ac_res=`eval echo '${'$as_ac_var'}'`
39207                { echo "$as_me:$LINENO: result: $ac_res" >&5
39208 echo "${ECHO_T}$ac_res" >&6; }
39209 if test `eval echo '${'$as_ac_var'}'` = yes; then
39210   cat >>confdefs.h <<_ACEOF
39211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39212 _ACEOF
39213
39214 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39215 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39216 if test "${ac_cv_func__doprnt+set}" = set; then
39217   echo $ECHO_N "(cached) $ECHO_C" >&6
39218 else
39219   cat >conftest.$ac_ext <<_ACEOF
39220 /* confdefs.h.  */
39221 _ACEOF
39222 cat confdefs.h >>conftest.$ac_ext
39223 cat >>conftest.$ac_ext <<_ACEOF
39224 /* end confdefs.h.  */
39225 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39227 #define _doprnt innocuous__doprnt
39228
39229 /* System header to define __stub macros and hopefully few prototypes,
39230     which can conflict with char _doprnt (); below.
39231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39232     <limits.h> exists even on freestanding compilers.  */
39233
39234 #ifdef __STDC__
39235 # include <limits.h>
39236 #else
39237 # include <assert.h>
39238 #endif
39239
39240 #undef _doprnt
39241
39242 /* Override any GCC internal prototype to avoid an error.
39243    Use char because int might match the return type of a GCC
39244    builtin and then its argument prototype would still apply.  */
39245 #ifdef __cplusplus
39246 extern "C"
39247 #endif
39248 char _doprnt ();
39249 /* The GNU C library defines this for functions which it implements
39250     to always fail with ENOSYS.  Some functions are actually named
39251     something starting with __ and the normal name is an alias.  */
39252 #if defined __stub__doprnt || defined __stub____doprnt
39253 choke me
39254 #endif
39255
39256 int
39257 main ()
39258 {
39259 return _doprnt ();
39260   ;
39261   return 0;
39262 }
39263 _ACEOF
39264 rm -f conftest.$ac_objext conftest$ac_exeext
39265 if { (ac_try="$ac_link"
39266 case "(($ac_try" in
39267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39268   *) ac_try_echo=$ac_try;;
39269 esac
39270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39271   (eval "$ac_link") 2>conftest.er1
39272   ac_status=$?
39273   grep -v '^ *+' conftest.er1 >conftest.err
39274   rm -f conftest.er1
39275   cat conftest.err >&5
39276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277   (exit $ac_status); } && {
39278          test -z "$ac_c_werror_flag" ||
39279          test ! -s conftest.err
39280        } && test -s conftest$ac_exeext &&
39281        $as_test_x conftest$ac_exeext; then
39282   ac_cv_func__doprnt=yes
39283 else
39284   echo "$as_me: failed program was:" >&5
39285 sed 's/^/| /' conftest.$ac_ext >&5
39286
39287         ac_cv_func__doprnt=no
39288 fi
39289
39290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39291       conftest$ac_exeext conftest.$ac_ext
39292 fi
39293 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39294 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39295 if test $ac_cv_func__doprnt = yes; then
39296
39297 cat >>confdefs.h <<\_ACEOF
39298 #define HAVE_DOPRNT 1
39299 _ACEOF
39300
39301 fi
39302
39303 fi
39304 done
39305
39306
39307 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39308 # for constant arguments.  Useless!
39309 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39310 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39311 if test "${ac_cv_working_alloca_h+set}" = set; then
39312   echo $ECHO_N "(cached) $ECHO_C" >&6
39313 else
39314   cat >conftest.$ac_ext <<_ACEOF
39315 /* confdefs.h.  */
39316 _ACEOF
39317 cat confdefs.h >>conftest.$ac_ext
39318 cat >>conftest.$ac_ext <<_ACEOF
39319 /* end confdefs.h.  */
39320 #include <alloca.h>
39321 int
39322 main ()
39323 {
39324 char *p = (char *) alloca (2 * sizeof (int));
39325                           if (p) return 0;
39326   ;
39327   return 0;
39328 }
39329 _ACEOF
39330 rm -f conftest.$ac_objext conftest$ac_exeext
39331 if { (ac_try="$ac_link"
39332 case "(($ac_try" in
39333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39334   *) ac_try_echo=$ac_try;;
39335 esac
39336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39337   (eval "$ac_link") 2>conftest.er1
39338   ac_status=$?
39339   grep -v '^ *+' conftest.er1 >conftest.err
39340   rm -f conftest.er1
39341   cat conftest.err >&5
39342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343   (exit $ac_status); } && {
39344          test -z "$ac_c_werror_flag" ||
39345          test ! -s conftest.err
39346        } && test -s conftest$ac_exeext &&
39347        $as_test_x conftest$ac_exeext; then
39348   ac_cv_working_alloca_h=yes
39349 else
39350   echo "$as_me: failed program was:" >&5
39351 sed 's/^/| /' conftest.$ac_ext >&5
39352
39353         ac_cv_working_alloca_h=no
39354 fi
39355
39356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39357       conftest$ac_exeext conftest.$ac_ext
39358 fi
39359 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39360 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39361 if test $ac_cv_working_alloca_h = yes; then
39362
39363 cat >>confdefs.h <<\_ACEOF
39364 #define HAVE_ALLOCA_H 1
39365 _ACEOF
39366
39367 fi
39368
39369 { echo "$as_me:$LINENO: checking for alloca" >&5
39370 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39371 if test "${ac_cv_func_alloca_works+set}" = set; then
39372   echo $ECHO_N "(cached) $ECHO_C" >&6
39373 else
39374   cat >conftest.$ac_ext <<_ACEOF
39375 /* confdefs.h.  */
39376 _ACEOF
39377 cat confdefs.h >>conftest.$ac_ext
39378 cat >>conftest.$ac_ext <<_ACEOF
39379 /* end confdefs.h.  */
39380 #ifdef __GNUC__
39381 # define alloca __builtin_alloca
39382 #else
39383 # ifdef _MSC_VER
39384 #  include <malloc.h>
39385 #  define alloca _alloca
39386 # else
39387 #  ifdef HAVE_ALLOCA_H
39388 #   include <alloca.h>
39389 #  else
39390 #   ifdef _AIX
39391  #pragma alloca
39392 #   else
39393 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39394 char *alloca ();
39395 #    endif
39396 #   endif
39397 #  endif
39398 # endif
39399 #endif
39400
39401 int
39402 main ()
39403 {
39404 char *p = (char *) alloca (1);
39405                                     if (p) return 0;
39406   ;
39407   return 0;
39408 }
39409 _ACEOF
39410 rm -f conftest.$ac_objext conftest$ac_exeext
39411 if { (ac_try="$ac_link"
39412 case "(($ac_try" in
39413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39414   *) ac_try_echo=$ac_try;;
39415 esac
39416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39417   (eval "$ac_link") 2>conftest.er1
39418   ac_status=$?
39419   grep -v '^ *+' conftest.er1 >conftest.err
39420   rm -f conftest.er1
39421   cat conftest.err >&5
39422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39423   (exit $ac_status); } && {
39424          test -z "$ac_c_werror_flag" ||
39425          test ! -s conftest.err
39426        } && test -s conftest$ac_exeext &&
39427        $as_test_x conftest$ac_exeext; then
39428   ac_cv_func_alloca_works=yes
39429 else
39430   echo "$as_me: failed program was:" >&5
39431 sed 's/^/| /' conftest.$ac_ext >&5
39432
39433         ac_cv_func_alloca_works=no
39434 fi
39435
39436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39437       conftest$ac_exeext conftest.$ac_ext
39438 fi
39439 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39440 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39441
39442 if test $ac_cv_func_alloca_works = yes; then
39443
39444 cat >>confdefs.h <<\_ACEOF
39445 #define HAVE_ALLOCA 1
39446 _ACEOF
39447
39448 else
39449   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39450 # that cause trouble.  Some versions do not even contain alloca or
39451 # contain a buggy version.  If you still want to use their alloca,
39452 # use ar to extract alloca.o from them instead of compiling alloca.c.
39453
39454 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39455
39456 cat >>confdefs.h <<\_ACEOF
39457 #define C_ALLOCA 1
39458 _ACEOF
39459
39460
39461 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39462 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39463 if test "${ac_cv_os_cray+set}" = set; then
39464   echo $ECHO_N "(cached) $ECHO_C" >&6
39465 else
39466   cat >conftest.$ac_ext <<_ACEOF
39467 /* confdefs.h.  */
39468 _ACEOF
39469 cat confdefs.h >>conftest.$ac_ext
39470 cat >>conftest.$ac_ext <<_ACEOF
39471 /* end confdefs.h.  */
39472 #if defined CRAY && ! defined CRAY2
39473 webecray
39474 #else
39475 wenotbecray
39476 #endif
39477
39478 _ACEOF
39479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39480   $EGREP "webecray" >/dev/null 2>&1; then
39481   ac_cv_os_cray=yes
39482 else
39483   ac_cv_os_cray=no
39484 fi
39485 rm -f conftest*
39486
39487 fi
39488 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39489 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39490 if test $ac_cv_os_cray = yes; then
39491   for ac_func in _getb67 GETB67 getb67; do
39492     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39496   echo $ECHO_N "(cached) $ECHO_C" >&6
39497 else
39498   cat >conftest.$ac_ext <<_ACEOF
39499 /* confdefs.h.  */
39500 _ACEOF
39501 cat confdefs.h >>conftest.$ac_ext
39502 cat >>conftest.$ac_ext <<_ACEOF
39503 /* end confdefs.h.  */
39504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39506 #define $ac_func innocuous_$ac_func
39507
39508 /* System header to define __stub macros and hopefully few prototypes,
39509     which can conflict with char $ac_func (); below.
39510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39511     <limits.h> exists even on freestanding compilers.  */
39512
39513 #ifdef __STDC__
39514 # include <limits.h>
39515 #else
39516 # include <assert.h>
39517 #endif
39518
39519 #undef $ac_func
39520
39521 /* Override any GCC internal prototype to avoid an error.
39522    Use char because int might match the return type of a GCC
39523    builtin and then its argument prototype would still apply.  */
39524 #ifdef __cplusplus
39525 extern "C"
39526 #endif
39527 char $ac_func ();
39528 /* The GNU C library defines this for functions which it implements
39529     to always fail with ENOSYS.  Some functions are actually named
39530     something starting with __ and the normal name is an alias.  */
39531 #if defined __stub_$ac_func || defined __stub___$ac_func
39532 choke me
39533 #endif
39534
39535 int
39536 main ()
39537 {
39538 return $ac_func ();
39539   ;
39540   return 0;
39541 }
39542 _ACEOF
39543 rm -f conftest.$ac_objext conftest$ac_exeext
39544 if { (ac_try="$ac_link"
39545 case "(($ac_try" in
39546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39547   *) ac_try_echo=$ac_try;;
39548 esac
39549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39550   (eval "$ac_link") 2>conftest.er1
39551   ac_status=$?
39552   grep -v '^ *+' conftest.er1 >conftest.err
39553   rm -f conftest.er1
39554   cat conftest.err >&5
39555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556   (exit $ac_status); } && {
39557          test -z "$ac_c_werror_flag" ||
39558          test ! -s conftest.err
39559        } && test -s conftest$ac_exeext &&
39560        $as_test_x conftest$ac_exeext; then
39561   eval "$as_ac_var=yes"
39562 else
39563   echo "$as_me: failed program was:" >&5
39564 sed 's/^/| /' conftest.$ac_ext >&5
39565
39566         eval "$as_ac_var=no"
39567 fi
39568
39569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39570       conftest$ac_exeext conftest.$ac_ext
39571 fi
39572 ac_res=`eval echo '${'$as_ac_var'}'`
39573                { echo "$as_me:$LINENO: result: $ac_res" >&5
39574 echo "${ECHO_T}$ac_res" >&6; }
39575 if test `eval echo '${'$as_ac_var'}'` = yes; then
39576
39577 cat >>confdefs.h <<_ACEOF
39578 #define CRAY_STACKSEG_END $ac_func
39579 _ACEOF
39580
39581     break
39582 fi
39583
39584   done
39585 fi
39586
39587 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39588 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39589 if test "${ac_cv_c_stack_direction+set}" = set; then
39590   echo $ECHO_N "(cached) $ECHO_C" >&6
39591 else
39592   if test "$cross_compiling" = yes; then
39593   ac_cv_c_stack_direction=0
39594 else
39595   cat >conftest.$ac_ext <<_ACEOF
39596 /* confdefs.h.  */
39597 _ACEOF
39598 cat confdefs.h >>conftest.$ac_ext
39599 cat >>conftest.$ac_ext <<_ACEOF
39600 /* end confdefs.h.  */
39601 $ac_includes_default
39602 int
39603 find_stack_direction ()
39604 {
39605   static char *addr = 0;
39606   auto char dummy;
39607   if (addr == 0)
39608     {
39609       addr = &dummy;
39610       return find_stack_direction ();
39611     }
39612   else
39613     return (&dummy > addr) ? 1 : -1;
39614 }
39615
39616 int
39617 main ()
39618 {
39619   return find_stack_direction () < 0;
39620 }
39621 _ACEOF
39622 rm -f conftest$ac_exeext
39623 if { (ac_try="$ac_link"
39624 case "(($ac_try" in
39625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39626   *) ac_try_echo=$ac_try;;
39627 esac
39628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39629   (eval "$ac_link") 2>&5
39630   ac_status=$?
39631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39632   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39633   { (case "(($ac_try" in
39634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39635   *) ac_try_echo=$ac_try;;
39636 esac
39637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39638   (eval "$ac_try") 2>&5
39639   ac_status=$?
39640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641   (exit $ac_status); }; }; then
39642   ac_cv_c_stack_direction=1
39643 else
39644   echo "$as_me: program exited with status $ac_status" >&5
39645 echo "$as_me: failed program was:" >&5
39646 sed 's/^/| /' conftest.$ac_ext >&5
39647
39648 ( exit $ac_status )
39649 ac_cv_c_stack_direction=-1
39650 fi
39651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39652 fi
39653
39654
39655 fi
39656 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39657 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39658
39659 cat >>confdefs.h <<_ACEOF
39660 #define STACK_DIRECTION $ac_cv_c_stack_direction
39661 _ACEOF
39662
39663
39664 fi
39665
39666 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39667 # -lseq on Dynix/PTX, -lgen on Unixware.
39668 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39669 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39670 if test "${ac_cv_search_getmntent+set}" = set; then
39671   echo $ECHO_N "(cached) $ECHO_C" >&6
39672 else
39673   ac_func_search_save_LIBS=$LIBS
39674 cat >conftest.$ac_ext <<_ACEOF
39675 /* confdefs.h.  */
39676 _ACEOF
39677 cat confdefs.h >>conftest.$ac_ext
39678 cat >>conftest.$ac_ext <<_ACEOF
39679 /* end confdefs.h.  */
39680
39681 /* Override any GCC internal prototype to avoid an error.
39682    Use char because int might match the return type of a GCC
39683    builtin and then its argument prototype would still apply.  */
39684 #ifdef __cplusplus
39685 extern "C"
39686 #endif
39687 char getmntent ();
39688 int
39689 main ()
39690 {
39691 return getmntent ();
39692   ;
39693   return 0;
39694 }
39695 _ACEOF
39696 for ac_lib in '' sun seq gen; do
39697   if test -z "$ac_lib"; then
39698     ac_res="none required"
39699   else
39700     ac_res=-l$ac_lib
39701     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39702   fi
39703   rm -f conftest.$ac_objext conftest$ac_exeext
39704 if { (ac_try="$ac_link"
39705 case "(($ac_try" in
39706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39707   *) ac_try_echo=$ac_try;;
39708 esac
39709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39710   (eval "$ac_link") 2>conftest.er1
39711   ac_status=$?
39712   grep -v '^ *+' conftest.er1 >conftest.err
39713   rm -f conftest.er1
39714   cat conftest.err >&5
39715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39716   (exit $ac_status); } && {
39717          test -z "$ac_c_werror_flag" ||
39718          test ! -s conftest.err
39719        } && test -s conftest$ac_exeext &&
39720        $as_test_x conftest$ac_exeext; then
39721   ac_cv_search_getmntent=$ac_res
39722 else
39723   echo "$as_me: failed program was:" >&5
39724 sed 's/^/| /' conftest.$ac_ext >&5
39725
39726
39727 fi
39728
39729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39730       conftest$ac_exeext
39731   if test "${ac_cv_search_getmntent+set}" = set; then
39732   break
39733 fi
39734 done
39735 if test "${ac_cv_search_getmntent+set}" = set; then
39736   :
39737 else
39738   ac_cv_search_getmntent=no
39739 fi
39740 rm conftest.$ac_ext
39741 LIBS=$ac_func_search_save_LIBS
39742 fi
39743 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39744 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39745 ac_res=$ac_cv_search_getmntent
39746 if test "$ac_res" != no; then
39747   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39748   ac_cv_func_getmntent=yes
39749
39750 cat >>confdefs.h <<\_ACEOF
39751 #define HAVE_GETMNTENT 1
39752 _ACEOF
39753
39754 else
39755   ac_cv_func_getmntent=no
39756 fi
39757
39758
39759 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39760 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39761 if test "${ac_cv_func_closedir_void+set}" = set; then
39762   echo $ECHO_N "(cached) $ECHO_C" >&6
39763 else
39764   if test "$cross_compiling" = yes; then
39765   ac_cv_func_closedir_void=yes
39766 else
39767   cat >conftest.$ac_ext <<_ACEOF
39768 /* confdefs.h.  */
39769 _ACEOF
39770 cat confdefs.h >>conftest.$ac_ext
39771 cat >>conftest.$ac_ext <<_ACEOF
39772 /* end confdefs.h.  */
39773 $ac_includes_default
39774 #include <$ac_header_dirent>
39775 #ifndef __cplusplus
39776 int closedir ();
39777 #endif
39778
39779 int
39780 main ()
39781 {
39782 return closedir (opendir (".")) != 0;
39783   ;
39784   return 0;
39785 }
39786 _ACEOF
39787 rm -f conftest$ac_exeext
39788 if { (ac_try="$ac_link"
39789 case "(($ac_try" in
39790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39791   *) ac_try_echo=$ac_try;;
39792 esac
39793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39794   (eval "$ac_link") 2>&5
39795   ac_status=$?
39796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39798   { (case "(($ac_try" in
39799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39800   *) ac_try_echo=$ac_try;;
39801 esac
39802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39803   (eval "$ac_try") 2>&5
39804   ac_status=$?
39805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39806   (exit $ac_status); }; }; then
39807   ac_cv_func_closedir_void=no
39808 else
39809   echo "$as_me: program exited with status $ac_status" >&5
39810 echo "$as_me: failed program was:" >&5
39811 sed 's/^/| /' conftest.$ac_ext >&5
39812
39813 ( exit $ac_status )
39814 ac_cv_func_closedir_void=yes
39815 fi
39816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39817 fi
39818
39819
39820 fi
39821 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39822 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39823 if test $ac_cv_func_closedir_void = yes; then
39824
39825 cat >>confdefs.h <<\_ACEOF
39826 #define CLOSEDIR_VOID 1
39827 _ACEOF
39828
39829 fi
39830
39831 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39832 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39833 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39834   echo $ECHO_N "(cached) $ECHO_C" >&6
39835 else
39836   if test "$cross_compiling" = yes; then
39837   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39838 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39839    { (exit 1); exit 1; }; }
39840 else
39841   cat >conftest.$ac_ext <<_ACEOF
39842 /* confdefs.h.  */
39843 _ACEOF
39844 cat confdefs.h >>conftest.$ac_ext
39845 cat >>conftest.$ac_ext <<_ACEOF
39846 /* end confdefs.h.  */
39847 $ac_includes_default
39848 int
39849 main ()
39850 {
39851 /* If this system has a BSD-style setpgrp which takes arguments,
39852   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39853   exit successfully. */
39854   return setpgrp (1,1) != -1;
39855   ;
39856   return 0;
39857 }
39858 _ACEOF
39859 rm -f conftest$ac_exeext
39860 if { (ac_try="$ac_link"
39861 case "(($ac_try" in
39862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39863   *) ac_try_echo=$ac_try;;
39864 esac
39865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39866   (eval "$ac_link") 2>&5
39867   ac_status=$?
39868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39870   { (case "(($ac_try" in
39871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39872   *) ac_try_echo=$ac_try;;
39873 esac
39874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39875   (eval "$ac_try") 2>&5
39876   ac_status=$?
39877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39878   (exit $ac_status); }; }; then
39879   ac_cv_func_setpgrp_void=no
39880 else
39881   echo "$as_me: program exited with status $ac_status" >&5
39882 echo "$as_me: failed program was:" >&5
39883 sed 's/^/| /' conftest.$ac_ext >&5
39884
39885 ( exit $ac_status )
39886 ac_cv_func_setpgrp_void=yes
39887 fi
39888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39889 fi
39890
39891
39892 fi
39893 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39894 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39895 if test $ac_cv_func_setpgrp_void = yes; then
39896
39897 cat >>confdefs.h <<\_ACEOF
39898 #define SETPGRP_VOID 1
39899 _ACEOF
39900
39901 fi
39902             # AC_FUNC_FNMATCH    dnl use local version
39903
39904 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39905 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39906 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39907   echo $ECHO_N "(cached) $ECHO_C" >&6
39908 else
39909   ac_check_lib_save_LIBS=$LIBS
39910 LIBS="-lintl  $LIBS"
39911 cat >conftest.$ac_ext <<_ACEOF
39912 /* confdefs.h.  */
39913 _ACEOF
39914 cat confdefs.h >>conftest.$ac_ext
39915 cat >>conftest.$ac_ext <<_ACEOF
39916 /* end confdefs.h.  */
39917
39918 /* Override any GCC internal prototype to avoid an error.
39919    Use char because int might match the return type of a GCC
39920    builtin and then its argument prototype would still apply.  */
39921 #ifdef __cplusplus
39922 extern "C"
39923 #endif
39924 char gettext ();
39925 int
39926 main ()
39927 {
39928 return gettext ();
39929   ;
39930   return 0;
39931 }
39932 _ACEOF
39933 rm -f conftest.$ac_objext conftest$ac_exeext
39934 if { (ac_try="$ac_link"
39935 case "(($ac_try" in
39936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39937   *) ac_try_echo=$ac_try;;
39938 esac
39939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39940   (eval "$ac_link") 2>conftest.er1
39941   ac_status=$?
39942   grep -v '^ *+' conftest.er1 >conftest.err
39943   rm -f conftest.er1
39944   cat conftest.err >&5
39945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39946   (exit $ac_status); } && {
39947          test -z "$ac_c_werror_flag" ||
39948          test ! -s conftest.err
39949        } && test -s conftest$ac_exeext &&
39950        $as_test_x conftest$ac_exeext; then
39951   ac_cv_lib_intl_gettext=yes
39952 else
39953   echo "$as_me: failed program was:" >&5
39954 sed 's/^/| /' conftest.$ac_ext >&5
39955
39956         ac_cv_lib_intl_gettext=no
39957 fi
39958
39959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39960       conftest$ac_exeext conftest.$ac_ext
39961 LIBS=$ac_check_lib_save_LIBS
39962 fi
39963 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39964 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39965 if test $ac_cv_lib_intl_gettext = yes; then
39966   LIBS="$LIBS -lintl"
39967 fi
39968
39969
39970
39971 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39972 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39973 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39974   echo $ECHO_N "(cached) $ECHO_C" >&6
39975 else
39976   ac_check_lib_save_LIBS=$LIBS
39977 LIBS="-lsun  $LIBS"
39978 cat >conftest.$ac_ext <<_ACEOF
39979 /* confdefs.h.  */
39980 _ACEOF
39981 cat confdefs.h >>conftest.$ac_ext
39982 cat >>conftest.$ac_ext <<_ACEOF
39983 /* end confdefs.h.  */
39984
39985 /* Override any GCC internal prototype to avoid an error.
39986    Use char because int might match the return type of a GCC
39987    builtin and then its argument prototype would still apply.  */
39988 #ifdef __cplusplus
39989 extern "C"
39990 #endif
39991 char getpwnam ();
39992 int
39993 main ()
39994 {
39995 return getpwnam ();
39996   ;
39997   return 0;
39998 }
39999 _ACEOF
40000 rm -f conftest.$ac_objext conftest$ac_exeext
40001 if { (ac_try="$ac_link"
40002 case "(($ac_try" in
40003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40004   *) ac_try_echo=$ac_try;;
40005 esac
40006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40007   (eval "$ac_link") 2>conftest.er1
40008   ac_status=$?
40009   grep -v '^ *+' conftest.er1 >conftest.err
40010   rm -f conftest.er1
40011   cat conftest.err >&5
40012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013   (exit $ac_status); } && {
40014          test -z "$ac_c_werror_flag" ||
40015          test ! -s conftest.err
40016        } && test -s conftest$ac_exeext &&
40017        $as_test_x conftest$ac_exeext; then
40018   ac_cv_lib_sun_getpwnam=yes
40019 else
40020   echo "$as_me: failed program was:" >&5
40021 sed 's/^/| /' conftest.$ac_ext >&5
40022
40023         ac_cv_lib_sun_getpwnam=no
40024 fi
40025
40026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40027       conftest$ac_exeext conftest.$ac_ext
40028 LIBS=$ac_check_lib_save_LIBS
40029 fi
40030 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40031 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40032 if test $ac_cv_lib_sun_getpwnam = yes; then
40033   cat >>confdefs.h <<_ACEOF
40034 #define HAVE_LIBSUN 1
40035 _ACEOF
40036
40037   LIBS="-lsun $LIBS"
40038
40039 fi
40040
40041
40042
40043 for ac_header in zlib.h
40044 do
40045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40047   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40050   echo $ECHO_N "(cached) $ECHO_C" >&6
40051 fi
40052 ac_res=`eval echo '${'$as_ac_Header'}'`
40053                { echo "$as_me:$LINENO: result: $ac_res" >&5
40054 echo "${ECHO_T}$ac_res" >&6; }
40055 else
40056   # Is the header compilable?
40057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40059 cat >conftest.$ac_ext <<_ACEOF
40060 /* confdefs.h.  */
40061 _ACEOF
40062 cat confdefs.h >>conftest.$ac_ext
40063 cat >>conftest.$ac_ext <<_ACEOF
40064 /* end confdefs.h.  */
40065 $ac_includes_default
40066 #include <$ac_header>
40067 _ACEOF
40068 rm -f conftest.$ac_objext
40069 if { (ac_try="$ac_compile"
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_compile") 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); } && {
40082          test -z "$ac_c_werror_flag" ||
40083          test ! -s conftest.err
40084        } && test -s conftest.$ac_objext; then
40085   ac_header_compiler=yes
40086 else
40087   echo "$as_me: failed program was:" >&5
40088 sed 's/^/| /' conftest.$ac_ext >&5
40089
40090         ac_header_compiler=no
40091 fi
40092
40093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40095 echo "${ECHO_T}$ac_header_compiler" >&6; }
40096
40097 # Is the header present?
40098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40100 cat >conftest.$ac_ext <<_ACEOF
40101 /* confdefs.h.  */
40102 _ACEOF
40103 cat confdefs.h >>conftest.$ac_ext
40104 cat >>conftest.$ac_ext <<_ACEOF
40105 /* end confdefs.h.  */
40106 #include <$ac_header>
40107 _ACEOF
40108 if { (ac_try="$ac_cpp conftest.$ac_ext"
40109 case "(($ac_try" in
40110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40111   *) ac_try_echo=$ac_try;;
40112 esac
40113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40115   ac_status=$?
40116   grep -v '^ *+' conftest.er1 >conftest.err
40117   rm -f conftest.er1
40118   cat conftest.err >&5
40119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40120   (exit $ac_status); } >/dev/null && {
40121          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40122          test ! -s conftest.err
40123        }; then
40124   ac_header_preproc=yes
40125 else
40126   echo "$as_me: failed program was:" >&5
40127 sed 's/^/| /' conftest.$ac_ext >&5
40128
40129   ac_header_preproc=no
40130 fi
40131
40132 rm -f conftest.err conftest.$ac_ext
40133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40134 echo "${ECHO_T}$ac_header_preproc" >&6; }
40135
40136 # So?  What about this header?
40137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40138   yes:no: )
40139     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40143     ac_header_preproc=yes
40144     ;;
40145   no:yes:* )
40146     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40148     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40149 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40150     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40152     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40153 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40156     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40158
40159     ;;
40160 esac
40161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40164   echo $ECHO_N "(cached) $ECHO_C" >&6
40165 else
40166   eval "$as_ac_Header=\$ac_header_preproc"
40167 fi
40168 ac_res=`eval echo '${'$as_ac_Header'}'`
40169                { echo "$as_me:$LINENO: result: $ac_res" >&5
40170 echo "${ECHO_T}$ac_res" >&6; }
40171
40172 fi
40173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40174   cat >>confdefs.h <<_ACEOF
40175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40176 _ACEOF
40177
40178 fi
40179
40180 done
40181
40182 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40183 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40184 if test "${ac_cv_lib_z_deflate+set}" = set; then
40185   echo $ECHO_N "(cached) $ECHO_C" >&6
40186 else
40187   ac_check_lib_save_LIBS=$LIBS
40188 LIBS="-lz  $LIBS"
40189 cat >conftest.$ac_ext <<_ACEOF
40190 /* confdefs.h.  */
40191 _ACEOF
40192 cat confdefs.h >>conftest.$ac_ext
40193 cat >>conftest.$ac_ext <<_ACEOF
40194 /* end confdefs.h.  */
40195
40196 /* Override any GCC internal prototype to avoid an error.
40197    Use char because int might match the return type of a GCC
40198    builtin and then its argument prototype would still apply.  */
40199 #ifdef __cplusplus
40200 extern "C"
40201 #endif
40202 char deflate ();
40203 int
40204 main ()
40205 {
40206 return deflate ();
40207   ;
40208   return 0;
40209 }
40210 _ACEOF
40211 rm -f conftest.$ac_objext conftest$ac_exeext
40212 if { (ac_try="$ac_link"
40213 case "(($ac_try" in
40214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40215   *) ac_try_echo=$ac_try;;
40216 esac
40217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40218   (eval "$ac_link") 2>conftest.er1
40219   ac_status=$?
40220   grep -v '^ *+' conftest.er1 >conftest.err
40221   rm -f conftest.er1
40222   cat conftest.err >&5
40223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40224   (exit $ac_status); } && {
40225          test -z "$ac_c_werror_flag" ||
40226          test ! -s conftest.err
40227        } && test -s conftest$ac_exeext &&
40228        $as_test_x conftest$ac_exeext; then
40229   ac_cv_lib_z_deflate=yes
40230 else
40231   echo "$as_me: failed program was:" >&5
40232 sed 's/^/| /' conftest.$ac_ext >&5
40233
40234         ac_cv_lib_z_deflate=no
40235 fi
40236
40237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40238       conftest$ac_exeext conftest.$ac_ext
40239 LIBS=$ac_check_lib_save_LIBS
40240 fi
40241 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40242 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40243 if test $ac_cv_lib_z_deflate = yes; then
40244   FDLIBS="-lz"
40245 fi
40246
40247 have_zlib=no
40248 if test x$FDLIBS = x-lz; then
40249    cat >>confdefs.h <<\_ACEOF
40250 #define HAVE_LIBZ 1
40251 _ACEOF
40252
40253    have_zlib=yes
40254 fi
40255
40256 support_acl=yes
40257 # Check whether --enable-acl was given.
40258 if test "${enable_acl+set}" = set; then
40259   enableval=$enable_acl;
40260        if test x$enableval = xno; then
40261           support_acl=no
40262        fi
40263
40264
40265 fi
40266
40267
40268 have_acl=no
40269 have_extended_acl=no
40270 if test x$support_acl = xyes; then
40271    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40272   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40273 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40274 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40275   echo $ECHO_N "(cached) $ECHO_C" >&6
40276 fi
40277 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40278 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40279 else
40280   # Is the header compilable?
40281 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40282 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40283 cat >conftest.$ac_ext <<_ACEOF
40284 /* confdefs.h.  */
40285 _ACEOF
40286 cat confdefs.h >>conftest.$ac_ext
40287 cat >>conftest.$ac_ext <<_ACEOF
40288 /* end confdefs.h.  */
40289 $ac_includes_default
40290 #include <sys/acl.h>
40291 _ACEOF
40292 rm -f conftest.$ac_objext
40293 if { (ac_try="$ac_compile"
40294 case "(($ac_try" in
40295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40296   *) ac_try_echo=$ac_try;;
40297 esac
40298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40299   (eval "$ac_compile") 2>conftest.er1
40300   ac_status=$?
40301   grep -v '^ *+' conftest.er1 >conftest.err
40302   rm -f conftest.er1
40303   cat conftest.err >&5
40304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40305   (exit $ac_status); } && {
40306          test -z "$ac_c_werror_flag" ||
40307          test ! -s conftest.err
40308        } && test -s conftest.$ac_objext; then
40309   ac_header_compiler=yes
40310 else
40311   echo "$as_me: failed program was:" >&5
40312 sed 's/^/| /' conftest.$ac_ext >&5
40313
40314         ac_header_compiler=no
40315 fi
40316
40317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40319 echo "${ECHO_T}$ac_header_compiler" >&6; }
40320
40321 # Is the header present?
40322 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40323 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40324 cat >conftest.$ac_ext <<_ACEOF
40325 /* confdefs.h.  */
40326 _ACEOF
40327 cat confdefs.h >>conftest.$ac_ext
40328 cat >>conftest.$ac_ext <<_ACEOF
40329 /* end confdefs.h.  */
40330 #include <sys/acl.h>
40331 _ACEOF
40332 if { (ac_try="$ac_cpp conftest.$ac_ext"
40333 case "(($ac_try" in
40334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40335   *) ac_try_echo=$ac_try;;
40336 esac
40337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40339   ac_status=$?
40340   grep -v '^ *+' conftest.er1 >conftest.err
40341   rm -f conftest.er1
40342   cat conftest.err >&5
40343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40344   (exit $ac_status); } >/dev/null && {
40345          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40346          test ! -s conftest.err
40347        }; then
40348   ac_header_preproc=yes
40349 else
40350   echo "$as_me: failed program was:" >&5
40351 sed 's/^/| /' conftest.$ac_ext >&5
40352
40353   ac_header_preproc=no
40354 fi
40355
40356 rm -f conftest.err conftest.$ac_ext
40357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40358 echo "${ECHO_T}$ac_header_preproc" >&6; }
40359
40360 # So?  What about this header?
40361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40362   yes:no: )
40363     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40364 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40365     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40366 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40367     ac_header_preproc=yes
40368     ;;
40369   no:yes:* )
40370     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40371 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40372     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40373 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40374     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40375 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40376     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40377 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40378     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40379 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40380     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40381 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40382
40383     ;;
40384 esac
40385 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40386 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40387 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40388   echo $ECHO_N "(cached) $ECHO_C" >&6
40389 else
40390   ac_cv_header_sys_acl_h=$ac_header_preproc
40391 fi
40392 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40393 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40394
40395 fi
40396 if test $ac_cv_header_sys_acl_h = yes; then
40397
40398 cat >>confdefs.h <<\_ACEOF
40399 #define HAVE_SYS_ACL_H 1
40400 _ACEOF
40401
40402 fi
40403
40404
40405    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40406 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40407 if test "${ac_cv_func_acl_get_file+set}" = set; then
40408   echo $ECHO_N "(cached) $ECHO_C" >&6
40409 else
40410   cat >conftest.$ac_ext <<_ACEOF
40411 /* confdefs.h.  */
40412 _ACEOF
40413 cat confdefs.h >>conftest.$ac_ext
40414 cat >>conftest.$ac_ext <<_ACEOF
40415 /* end confdefs.h.  */
40416 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40418 #define acl_get_file innocuous_acl_get_file
40419
40420 /* System header to define __stub macros and hopefully few prototypes,
40421     which can conflict with char acl_get_file (); below.
40422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40423     <limits.h> exists even on freestanding compilers.  */
40424
40425 #ifdef __STDC__
40426 # include <limits.h>
40427 #else
40428 # include <assert.h>
40429 #endif
40430
40431 #undef acl_get_file
40432
40433 /* Override any GCC internal prototype to avoid an error.
40434    Use char because int might match the return type of a GCC
40435    builtin and then its argument prototype would still apply.  */
40436 #ifdef __cplusplus
40437 extern "C"
40438 #endif
40439 char acl_get_file ();
40440 /* The GNU C library defines this for functions which it implements
40441     to always fail with ENOSYS.  Some functions are actually named
40442     something starting with __ and the normal name is an alias.  */
40443 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40444 choke me
40445 #endif
40446
40447 int
40448 main ()
40449 {
40450 return acl_get_file ();
40451   ;
40452   return 0;
40453 }
40454 _ACEOF
40455 rm -f conftest.$ac_objext conftest$ac_exeext
40456 if { (ac_try="$ac_link"
40457 case "(($ac_try" in
40458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40459   *) ac_try_echo=$ac_try;;
40460 esac
40461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40462   (eval "$ac_link") 2>conftest.er1
40463   ac_status=$?
40464   grep -v '^ *+' conftest.er1 >conftest.err
40465   rm -f conftest.er1
40466   cat conftest.err >&5
40467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40468   (exit $ac_status); } && {
40469          test -z "$ac_c_werror_flag" ||
40470          test ! -s conftest.err
40471        } && test -s conftest$ac_exeext &&
40472        $as_test_x conftest$ac_exeext; then
40473   ac_cv_func_acl_get_file=yes
40474 else
40475   echo "$as_me: failed program was:" >&5
40476 sed 's/^/| /' conftest.$ac_ext >&5
40477
40478         ac_cv_func_acl_get_file=no
40479 fi
40480
40481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40482       conftest$ac_exeext conftest.$ac_ext
40483 fi
40484 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40485 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40486 if test $ac_cv_func_acl_get_file = yes; then
40487
40488           have_acl=yes
40489
40490 else
40491
40492           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40493 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40494 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40495   echo $ECHO_N "(cached) $ECHO_C" >&6
40496 else
40497   ac_check_lib_save_LIBS=$LIBS
40498 LIBS="-lacl  $LIBS"
40499 cat >conftest.$ac_ext <<_ACEOF
40500 /* confdefs.h.  */
40501 _ACEOF
40502 cat confdefs.h >>conftest.$ac_ext
40503 cat >>conftest.$ac_ext <<_ACEOF
40504 /* end confdefs.h.  */
40505
40506 /* Override any GCC internal prototype to avoid an error.
40507    Use char because int might match the return type of a GCC
40508    builtin and then its argument prototype would still apply.  */
40509 #ifdef __cplusplus
40510 extern "C"
40511 #endif
40512 char acl_get_file ();
40513 int
40514 main ()
40515 {
40516 return acl_get_file ();
40517   ;
40518   return 0;
40519 }
40520 _ACEOF
40521 rm -f conftest.$ac_objext conftest$ac_exeext
40522 if { (ac_try="$ac_link"
40523 case "(($ac_try" in
40524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40525   *) ac_try_echo=$ac_try;;
40526 esac
40527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40528   (eval "$ac_link") 2>conftest.er1
40529   ac_status=$?
40530   grep -v '^ *+' conftest.er1 >conftest.err
40531   rm -f conftest.er1
40532   cat conftest.err >&5
40533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534   (exit $ac_status); } && {
40535          test -z "$ac_c_werror_flag" ||
40536          test ! -s conftest.err
40537        } && test -s conftest$ac_exeext &&
40538        $as_test_x conftest$ac_exeext; then
40539   ac_cv_lib_acl_acl_get_file=yes
40540 else
40541   echo "$as_me: failed program was:" >&5
40542 sed 's/^/| /' conftest.$ac_ext >&5
40543
40544         ac_cv_lib_acl_acl_get_file=no
40545 fi
40546
40547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40548       conftest$ac_exeext conftest.$ac_ext
40549 LIBS=$ac_check_lib_save_LIBS
40550 fi
40551 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40552 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40553 if test $ac_cv_lib_acl_acl_get_file = yes; then
40554
40555                  have_acl=yes;
40556                  FDLIBS="-lacl $FDLIBS"
40557
40558 else
40559
40560                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40561 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40562 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40563   echo $ECHO_N "(cached) $ECHO_C" >&6
40564 else
40565   ac_check_lib_save_LIBS=$LIBS
40566 LIBS="-lpacl  $LIBS"
40567 cat >conftest.$ac_ext <<_ACEOF
40568 /* confdefs.h.  */
40569 _ACEOF
40570 cat confdefs.h >>conftest.$ac_ext
40571 cat >>conftest.$ac_ext <<_ACEOF
40572 /* end confdefs.h.  */
40573
40574 /* Override any GCC internal prototype to avoid an error.
40575    Use char because int might match the return type of a GCC
40576    builtin and then its argument prototype would still apply.  */
40577 #ifdef __cplusplus
40578 extern "C"
40579 #endif
40580 char acl_get_file ();
40581 int
40582 main ()
40583 {
40584 return acl_get_file ();
40585   ;
40586   return 0;
40587 }
40588 _ACEOF
40589 rm -f conftest.$ac_objext conftest$ac_exeext
40590 if { (ac_try="$ac_link"
40591 case "(($ac_try" in
40592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40593   *) ac_try_echo=$ac_try;;
40594 esac
40595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40596   (eval "$ac_link") 2>conftest.er1
40597   ac_status=$?
40598   grep -v '^ *+' conftest.er1 >conftest.err
40599   rm -f conftest.er1
40600   cat conftest.err >&5
40601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40602   (exit $ac_status); } && {
40603          test -z "$ac_c_werror_flag" ||
40604          test ! -s conftest.err
40605        } && test -s conftest$ac_exeext &&
40606        $as_test_x conftest$ac_exeext; then
40607   ac_cv_lib_pacl_acl_get_file=yes
40608 else
40609   echo "$as_me: failed program was:" >&5
40610 sed 's/^/| /' conftest.$ac_ext >&5
40611
40612         ac_cv_lib_pacl_acl_get_file=no
40613 fi
40614
40615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40616       conftest$ac_exeext conftest.$ac_ext
40617 LIBS=$ac_check_lib_save_LIBS
40618 fi
40619 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40620 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40621 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40622
40623                         have_acl=yes;
40624                         FDLIBS="-lpacl $FDLIBS"
40625
40626 else
40627
40628                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40629 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40630 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40631   echo $ECHO_N "(cached) $ECHO_C" >&6
40632 else
40633   ac_check_lib_save_LIBS=$LIBS
40634 LIBS="-lsec  $LIBS"
40635 cat >conftest.$ac_ext <<_ACEOF
40636 /* confdefs.h.  */
40637 _ACEOF
40638 cat confdefs.h >>conftest.$ac_ext
40639 cat >>conftest.$ac_ext <<_ACEOF
40640 /* end confdefs.h.  */
40641
40642 /* Override any GCC internal prototype to avoid an error.
40643    Use char because int might match the return type of a GCC
40644    builtin and then its argument prototype would still apply.  */
40645 #ifdef __cplusplus
40646 extern "C"
40647 #endif
40648 char acltotext ();
40649 int
40650 main ()
40651 {
40652 return acltotext ();
40653   ;
40654   return 0;
40655 }
40656 _ACEOF
40657 rm -f conftest.$ac_objext conftest$ac_exeext
40658 if { (ac_try="$ac_link"
40659 case "(($ac_try" in
40660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40661   *) ac_try_echo=$ac_try;;
40662 esac
40663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40664   (eval "$ac_link") 2>conftest.er1
40665   ac_status=$?
40666   grep -v '^ *+' conftest.er1 >conftest.err
40667   rm -f conftest.er1
40668   cat conftest.err >&5
40669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670   (exit $ac_status); } && {
40671          test -z "$ac_c_werror_flag" ||
40672          test ! -s conftest.err
40673        } && test -s conftest$ac_exeext &&
40674        $as_test_x conftest$ac_exeext; then
40675   ac_cv_lib_sec_acltotext=yes
40676 else
40677   echo "$as_me: failed program was:" >&5
40678 sed 's/^/| /' conftest.$ac_ext >&5
40679
40680         ac_cv_lib_sec_acltotext=no
40681 fi
40682
40683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40684       conftest$ac_exeext conftest.$ac_ext
40685 LIBS=$ac_check_lib_save_LIBS
40686 fi
40687 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40688 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40689 if test $ac_cv_lib_sec_acltotext = yes; then
40690
40691                                have_acl=yes;
40692                                FDLIBS="-lsec $FDLIBS"
40693
40694                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40695 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40696 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40697   echo $ECHO_N "(cached) $ECHO_C" >&6
40698 else
40699   ac_check_lib_save_LIBS=$LIBS
40700 LIBS="-lsec  $LIBS"
40701 cat >conftest.$ac_ext <<_ACEOF
40702 /* confdefs.h.  */
40703 _ACEOF
40704 cat confdefs.h >>conftest.$ac_ext
40705 cat >>conftest.$ac_ext <<_ACEOF
40706 /* end confdefs.h.  */
40707
40708 /* Override any GCC internal prototype to avoid an error.
40709    Use char because int might match the return type of a GCC
40710    builtin and then its argument prototype would still apply.  */
40711 #ifdef __cplusplus
40712 extern "C"
40713 #endif
40714 char acl_totext ();
40715 int
40716 main ()
40717 {
40718 return acl_totext ();
40719   ;
40720   return 0;
40721 }
40722 _ACEOF
40723 rm -f conftest.$ac_objext conftest$ac_exeext
40724 if { (ac_try="$ac_link"
40725 case "(($ac_try" in
40726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40727   *) ac_try_echo=$ac_try;;
40728 esac
40729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40730   (eval "$ac_link") 2>conftest.er1
40731   ac_status=$?
40732   grep -v '^ *+' conftest.er1 >conftest.err
40733   rm -f conftest.er1
40734   cat conftest.err >&5
40735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40736   (exit $ac_status); } && {
40737          test -z "$ac_c_werror_flag" ||
40738          test ! -s conftest.err
40739        } && test -s conftest$ac_exeext &&
40740        $as_test_x conftest$ac_exeext; then
40741   ac_cv_lib_sec_acl_totext=yes
40742 else
40743   echo "$as_me: failed program was:" >&5
40744 sed 's/^/| /' conftest.$ac_ext >&5
40745
40746         ac_cv_lib_sec_acl_totext=no
40747 fi
40748
40749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40750       conftest$ac_exeext conftest.$ac_ext
40751 LIBS=$ac_check_lib_save_LIBS
40752 fi
40753 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
40754 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
40755 if test $ac_cv_lib_sec_acl_totext = yes; then
40756
40757                                       have_extended_acl=yes
40758
40759
40760 fi
40761
40762
40763
40764 fi
40765
40766
40767
40768 fi
40769
40770
40771
40772 fi
40773
40774
40775
40776 fi
40777
40778    if test $have_acl = yes; then
40779
40780 cat >>confdefs.h <<\_ACEOF
40781 #define HAVE_ACL
40782 _ACEOF
40783
40784    fi
40785
40786    if test $have_extended_acl = yes; then
40787
40788 cat >>confdefs.h <<\_ACEOF
40789 #define HAVE_EXTENDED_ACL
40790 _ACEOF
40791
40792    fi
40793 fi
40794
40795 support_xattr=yes
40796 # Check whether --enable-xattr was given.
40797 if test "${enable_xattr+set}" = set; then
40798   enableval=$enable_xattr;
40799        if test x$enableval = xno; then
40800           support_acl=no
40801        fi
40802
40803
40804 fi
40805
40806
40807 have_xattr=no
40808 if test x$support_xattr = xyes; then
40809    if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40810   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40811 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40812 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40813   echo $ECHO_N "(cached) $ECHO_C" >&6
40814 fi
40815 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40816 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40817 else
40818   # Is the header compilable?
40819 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
40820 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
40821 cat >conftest.$ac_ext <<_ACEOF
40822 /* confdefs.h.  */
40823 _ACEOF
40824 cat confdefs.h >>conftest.$ac_ext
40825 cat >>conftest.$ac_ext <<_ACEOF
40826 /* end confdefs.h.  */
40827 $ac_includes_default
40828 #include <sys/xattr.h>
40829 _ACEOF
40830 rm -f conftest.$ac_objext
40831 if { (ac_try="$ac_compile"
40832 case "(($ac_try" in
40833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40834   *) ac_try_echo=$ac_try;;
40835 esac
40836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40837   (eval "$ac_compile") 2>conftest.er1
40838   ac_status=$?
40839   grep -v '^ *+' conftest.er1 >conftest.err
40840   rm -f conftest.er1
40841   cat conftest.err >&5
40842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843   (exit $ac_status); } && {
40844          test -z "$ac_c_werror_flag" ||
40845          test ! -s conftest.err
40846        } && test -s conftest.$ac_objext; then
40847   ac_header_compiler=yes
40848 else
40849   echo "$as_me: failed program was:" >&5
40850 sed 's/^/| /' conftest.$ac_ext >&5
40851
40852         ac_header_compiler=no
40853 fi
40854
40855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40857 echo "${ECHO_T}$ac_header_compiler" >&6; }
40858
40859 # Is the header present?
40860 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
40861 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
40862 cat >conftest.$ac_ext <<_ACEOF
40863 /* confdefs.h.  */
40864 _ACEOF
40865 cat confdefs.h >>conftest.$ac_ext
40866 cat >>conftest.$ac_ext <<_ACEOF
40867 /* end confdefs.h.  */
40868 #include <sys/xattr.h>
40869 _ACEOF
40870 if { (ac_try="$ac_cpp conftest.$ac_ext"
40871 case "(($ac_try" in
40872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40873   *) ac_try_echo=$ac_try;;
40874 esac
40875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40877   ac_status=$?
40878   grep -v '^ *+' conftest.er1 >conftest.err
40879   rm -f conftest.er1
40880   cat conftest.err >&5
40881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40882   (exit $ac_status); } >/dev/null && {
40883          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40884          test ! -s conftest.err
40885        }; then
40886   ac_header_preproc=yes
40887 else
40888   echo "$as_me: failed program was:" >&5
40889 sed 's/^/| /' conftest.$ac_ext >&5
40890
40891   ac_header_preproc=no
40892 fi
40893
40894 rm -f conftest.err conftest.$ac_ext
40895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40896 echo "${ECHO_T}$ac_header_preproc" >&6; }
40897
40898 # So?  What about this header?
40899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40900   yes:no: )
40901     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
40902 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40903     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
40904 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
40905     ac_header_preproc=yes
40906     ;;
40907   no:yes:* )
40908     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
40909 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
40910     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
40911 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
40912     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
40913 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
40914     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
40915 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40916     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
40917 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
40918     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
40919 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
40920
40921     ;;
40922 esac
40923 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40924 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40925 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40926   echo $ECHO_N "(cached) $ECHO_C" >&6
40927 else
40928   ac_cv_header_sys_xattr_h=$ac_header_preproc
40929 fi
40930 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40931 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40932
40933 fi
40934 if test $ac_cv_header_sys_xattr_h = yes; then
40935
40936 cat >>confdefs.h <<\_ACEOF
40937 #define HAVE_SYS_XATTR_H 1
40938 _ACEOF
40939
40940 fi
40941
40942
40943
40944
40945
40946 for ac_func in llistxattr lgetxattr lsetxattr
40947 do
40948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40952   echo $ECHO_N "(cached) $ECHO_C" >&6
40953 else
40954   cat >conftest.$ac_ext <<_ACEOF
40955 /* confdefs.h.  */
40956 _ACEOF
40957 cat confdefs.h >>conftest.$ac_ext
40958 cat >>conftest.$ac_ext <<_ACEOF
40959 /* end confdefs.h.  */
40960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40962 #define $ac_func innocuous_$ac_func
40963
40964 /* System header to define __stub macros and hopefully few prototypes,
40965     which can conflict with char $ac_func (); below.
40966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40967     <limits.h> exists even on freestanding compilers.  */
40968
40969 #ifdef __STDC__
40970 # include <limits.h>
40971 #else
40972 # include <assert.h>
40973 #endif
40974
40975 #undef $ac_func
40976
40977 /* Override any GCC internal prototype to avoid an error.
40978    Use char because int might match the return type of a GCC
40979    builtin and then its argument prototype would still apply.  */
40980 #ifdef __cplusplus
40981 extern "C"
40982 #endif
40983 char $ac_func ();
40984 /* The GNU C library defines this for functions which it implements
40985     to always fail with ENOSYS.  Some functions are actually named
40986     something starting with __ and the normal name is an alias.  */
40987 #if defined __stub_$ac_func || defined __stub___$ac_func
40988 choke me
40989 #endif
40990
40991 int
40992 main ()
40993 {
40994 return $ac_func ();
40995   ;
40996   return 0;
40997 }
40998 _ACEOF
40999 rm -f conftest.$ac_objext conftest$ac_exeext
41000 if { (ac_try="$ac_link"
41001 case "(($ac_try" in
41002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41003   *) ac_try_echo=$ac_try;;
41004 esac
41005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41006   (eval "$ac_link") 2>conftest.er1
41007   ac_status=$?
41008   grep -v '^ *+' conftest.er1 >conftest.err
41009   rm -f conftest.er1
41010   cat conftest.err >&5
41011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41012   (exit $ac_status); } && {
41013          test -z "$ac_c_werror_flag" ||
41014          test ! -s conftest.err
41015        } && test -s conftest$ac_exeext &&
41016        $as_test_x conftest$ac_exeext; then
41017   eval "$as_ac_var=yes"
41018 else
41019   echo "$as_me: failed program was:" >&5
41020 sed 's/^/| /' conftest.$ac_ext >&5
41021
41022         eval "$as_ac_var=no"
41023 fi
41024
41025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41026       conftest$ac_exeext conftest.$ac_ext
41027 fi
41028 ac_res=`eval echo '${'$as_ac_var'}'`
41029                { echo "$as_me:$LINENO: result: $ac_res" >&5
41030 echo "${ECHO_T}$ac_res" >&6; }
41031 if test `eval echo '${'$as_ac_var'}'` = yes; then
41032   cat >>confdefs.h <<_ACEOF
41033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41034 _ACEOF
41035
41036           have_xattr=yes
41037
41038 cat >>confdefs.h <<\_ACEOF
41039 #define HAVE_LLISTXATTR
41040 _ACEOF
41041
41042
41043 cat >>confdefs.h <<\_ACEOF
41044 #define HAVE_LGETXATTR
41045 _ACEOF
41046
41047
41048 cat >>confdefs.h <<\_ACEOF
41049 #define HAVE_LSETXATTR
41050 _ACEOF
41051
41052
41053 else
41054
41055
41056
41057
41058 for ac_func in listxattr getxattr setxattr
41059 do
41060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41064   echo $ECHO_N "(cached) $ECHO_C" >&6
41065 else
41066   cat >conftest.$ac_ext <<_ACEOF
41067 /* confdefs.h.  */
41068 _ACEOF
41069 cat confdefs.h >>conftest.$ac_ext
41070 cat >>conftest.$ac_ext <<_ACEOF
41071 /* end confdefs.h.  */
41072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41074 #define $ac_func innocuous_$ac_func
41075
41076 /* System header to define __stub macros and hopefully few prototypes,
41077     which can conflict with char $ac_func (); below.
41078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41079     <limits.h> exists even on freestanding compilers.  */
41080
41081 #ifdef __STDC__
41082 # include <limits.h>
41083 #else
41084 # include <assert.h>
41085 #endif
41086
41087 #undef $ac_func
41088
41089 /* Override any GCC internal prototype to avoid an error.
41090    Use char because int might match the return type of a GCC
41091    builtin and then its argument prototype would still apply.  */
41092 #ifdef __cplusplus
41093 extern "C"
41094 #endif
41095 char $ac_func ();
41096 /* The GNU C library defines this for functions which it implements
41097     to always fail with ENOSYS.  Some functions are actually named
41098     something starting with __ and the normal name is an alias.  */
41099 #if defined __stub_$ac_func || defined __stub___$ac_func
41100 choke me
41101 #endif
41102
41103 int
41104 main ()
41105 {
41106 return $ac_func ();
41107   ;
41108   return 0;
41109 }
41110 _ACEOF
41111 rm -f conftest.$ac_objext conftest$ac_exeext
41112 if { (ac_try="$ac_link"
41113 case "(($ac_try" in
41114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41115   *) ac_try_echo=$ac_try;;
41116 esac
41117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41118   (eval "$ac_link") 2>conftest.er1
41119   ac_status=$?
41120   grep -v '^ *+' conftest.er1 >conftest.err
41121   rm -f conftest.er1
41122   cat conftest.err >&5
41123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41124   (exit $ac_status); } && {
41125          test -z "$ac_c_werror_flag" ||
41126          test ! -s conftest.err
41127        } && test -s conftest$ac_exeext &&
41128        $as_test_x conftest$ac_exeext; then
41129   eval "$as_ac_var=yes"
41130 else
41131   echo "$as_me: failed program was:" >&5
41132 sed 's/^/| /' conftest.$ac_ext >&5
41133
41134         eval "$as_ac_var=no"
41135 fi
41136
41137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41138       conftest$ac_exeext conftest.$ac_ext
41139 fi
41140 ac_res=`eval echo '${'$as_ac_var'}'`
41141                { echo "$as_me:$LINENO: result: $ac_res" >&5
41142 echo "${ECHO_T}$ac_res" >&6; }
41143 if test `eval echo '${'$as_ac_var'}'` = yes; then
41144   cat >>confdefs.h <<_ACEOF
41145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41146 _ACEOF
41147
41148                   have_xattr=yes
41149
41150 cat >>confdefs.h <<\_ACEOF
41151 #define HAVE_LLISTXATTR
41152 _ACEOF
41153
41154
41155 cat >>confdefs.h <<\_ACEOF
41156 #define HAVE_LGETXATTR
41157 _ACEOF
41158
41159
41160 cat >>confdefs.h <<\_ACEOF
41161 #define HAVE_LSETXATTR
41162 _ACEOF
41163
41164
41165
41166 fi
41167 done
41168
41169
41170
41171 fi
41172 done
41173
41174
41175    if test $have_xattr = yes; then
41176
41177 cat >>confdefs.h <<\_ACEOF
41178 #define HAVE_XATTR
41179 _ACEOF
41180
41181    fi
41182 fi
41183
41184 PTHREAD_LIB=""
41185 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
41186 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
41187 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
41188   echo $ECHO_N "(cached) $ECHO_C" >&6
41189 else
41190   ac_check_lib_save_LIBS=$LIBS
41191 LIBS="-lpthread  $LIBS"
41192 cat >conftest.$ac_ext <<_ACEOF
41193 /* confdefs.h.  */
41194 _ACEOF
41195 cat confdefs.h >>conftest.$ac_ext
41196 cat >>conftest.$ac_ext <<_ACEOF
41197 /* end confdefs.h.  */
41198
41199 /* Override any GCC internal prototype to avoid an error.
41200    Use char because int might match the return type of a GCC
41201    builtin and then its argument prototype would still apply.  */
41202 #ifdef __cplusplus
41203 extern "C"
41204 #endif
41205 char pthread_create ();
41206 int
41207 main ()
41208 {
41209 return pthread_create ();
41210   ;
41211   return 0;
41212 }
41213 _ACEOF
41214 rm -f conftest.$ac_objext conftest$ac_exeext
41215 if { (ac_try="$ac_link"
41216 case "(($ac_try" in
41217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41218   *) ac_try_echo=$ac_try;;
41219 esac
41220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41221   (eval "$ac_link") 2>conftest.er1
41222   ac_status=$?
41223   grep -v '^ *+' conftest.er1 >conftest.err
41224   rm -f conftest.er1
41225   cat conftest.err >&5
41226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41227   (exit $ac_status); } && {
41228          test -z "$ac_c_werror_flag" ||
41229          test ! -s conftest.err
41230        } && test -s conftest$ac_exeext &&
41231        $as_test_x conftest$ac_exeext; then
41232   ac_cv_lib_pthread_pthread_create=yes
41233 else
41234   echo "$as_me: failed program was:" >&5
41235 sed 's/^/| /' conftest.$ac_ext >&5
41236
41237         ac_cv_lib_pthread_pthread_create=no
41238 fi
41239
41240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41241       conftest$ac_exeext conftest.$ac_ext
41242 LIBS=$ac_check_lib_save_LIBS
41243 fi
41244 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
41245 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
41246 if test $ac_cv_lib_pthread_pthread_create = yes; then
41247   PTHREAD_LIB="-lpthread"
41248 else
41249
41250        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
41251 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
41252 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
41253   echo $ECHO_N "(cached) $ECHO_C" >&6
41254 else
41255   ac_check_lib_save_LIBS=$LIBS
41256 LIBS="-lpthreads  $LIBS"
41257 cat >conftest.$ac_ext <<_ACEOF
41258 /* confdefs.h.  */
41259 _ACEOF
41260 cat confdefs.h >>conftest.$ac_ext
41261 cat >>conftest.$ac_ext <<_ACEOF
41262 /* end confdefs.h.  */
41263
41264 /* Override any GCC internal prototype to avoid an error.
41265    Use char because int might match the return type of a GCC
41266    builtin and then its argument prototype would still apply.  */
41267 #ifdef __cplusplus
41268 extern "C"
41269 #endif
41270 char pthread_create ();
41271 int
41272 main ()
41273 {
41274 return pthread_create ();
41275   ;
41276   return 0;
41277 }
41278 _ACEOF
41279 rm -f conftest.$ac_objext conftest$ac_exeext
41280 if { (ac_try="$ac_link"
41281 case "(($ac_try" in
41282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41283   *) ac_try_echo=$ac_try;;
41284 esac
41285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41286   (eval "$ac_link") 2>conftest.er1
41287   ac_status=$?
41288   grep -v '^ *+' conftest.er1 >conftest.err
41289   rm -f conftest.er1
41290   cat conftest.err >&5
41291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41292   (exit $ac_status); } && {
41293          test -z "$ac_c_werror_flag" ||
41294          test ! -s conftest.err
41295        } && test -s conftest$ac_exeext &&
41296        $as_test_x conftest$ac_exeext; then
41297   ac_cv_lib_pthreads_pthread_create=yes
41298 else
41299   echo "$as_me: failed program was:" >&5
41300 sed 's/^/| /' conftest.$ac_ext >&5
41301
41302         ac_cv_lib_pthreads_pthread_create=no
41303 fi
41304
41305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41306       conftest$ac_exeext conftest.$ac_ext
41307 LIBS=$ac_check_lib_save_LIBS
41308 fi
41309 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
41310 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
41311 if test $ac_cv_lib_pthreads_pthread_create = yes; then
41312   PTHREAD_LIB="-lpthreads"
41313 else
41314
41315               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
41316 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
41317 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
41318   echo $ECHO_N "(cached) $ECHO_C" >&6
41319 else
41320   ac_check_lib_save_LIBS=$LIBS
41321 LIBS="-lc_r  $LIBS"
41322 cat >conftest.$ac_ext <<_ACEOF
41323 /* confdefs.h.  */
41324 _ACEOF
41325 cat confdefs.h >>conftest.$ac_ext
41326 cat >>conftest.$ac_ext <<_ACEOF
41327 /* end confdefs.h.  */
41328
41329 /* Override any GCC internal prototype to avoid an error.
41330    Use char because int might match the return type of a GCC
41331    builtin and then its argument prototype would still apply.  */
41332 #ifdef __cplusplus
41333 extern "C"
41334 #endif
41335 char pthread_create ();
41336 int
41337 main ()
41338 {
41339 return pthread_create ();
41340   ;
41341   return 0;
41342 }
41343 _ACEOF
41344 rm -f conftest.$ac_objext conftest$ac_exeext
41345 if { (ac_try="$ac_link"
41346 case "(($ac_try" in
41347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41348   *) ac_try_echo=$ac_try;;
41349 esac
41350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41351   (eval "$ac_link") 2>conftest.er1
41352   ac_status=$?
41353   grep -v '^ *+' conftest.er1 >conftest.err
41354   rm -f conftest.er1
41355   cat conftest.err >&5
41356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357   (exit $ac_status); } && {
41358          test -z "$ac_c_werror_flag" ||
41359          test ! -s conftest.err
41360        } && test -s conftest$ac_exeext &&
41361        $as_test_x conftest$ac_exeext; then
41362   ac_cv_lib_c_r_pthread_create=yes
41363 else
41364   echo "$as_me: failed program was:" >&5
41365 sed 's/^/| /' conftest.$ac_ext >&5
41366
41367         ac_cv_lib_c_r_pthread_create=no
41368 fi
41369
41370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41371       conftest$ac_exeext conftest.$ac_ext
41372 LIBS=$ac_check_lib_save_LIBS
41373 fi
41374 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
41375 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
41376 if test $ac_cv_lib_c_r_pthread_create = yes; then
41377   PTHREAD_LIB="-lc_r"
41378 else
41379
41380                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
41381 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
41382 if test "${ac_cv_func_pthread_create+set}" = set; then
41383   echo $ECHO_N "(cached) $ECHO_C" >&6
41384 else
41385   cat >conftest.$ac_ext <<_ACEOF
41386 /* confdefs.h.  */
41387 _ACEOF
41388 cat confdefs.h >>conftest.$ac_ext
41389 cat >>conftest.$ac_ext <<_ACEOF
41390 /* end confdefs.h.  */
41391 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
41392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41393 #define pthread_create innocuous_pthread_create
41394
41395 /* System header to define __stub macros and hopefully few prototypes,
41396     which can conflict with char pthread_create (); below.
41397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41398     <limits.h> exists even on freestanding compilers.  */
41399
41400 #ifdef __STDC__
41401 # include <limits.h>
41402 #else
41403 # include <assert.h>
41404 #endif
41405
41406 #undef pthread_create
41407
41408 /* Override any GCC internal prototype to avoid an error.
41409    Use char because int might match the return type of a GCC
41410    builtin and then its argument prototype would still apply.  */
41411 #ifdef __cplusplus
41412 extern "C"
41413 #endif
41414 char pthread_create ();
41415 /* The GNU C library defines this for functions which it implements
41416     to always fail with ENOSYS.  Some functions are actually named
41417     something starting with __ and the normal name is an alias.  */
41418 #if defined __stub_pthread_create || defined __stub___pthread_create
41419 choke me
41420 #endif
41421
41422 int
41423 main ()
41424 {
41425 return pthread_create ();
41426   ;
41427   return 0;
41428 }
41429 _ACEOF
41430 rm -f conftest.$ac_objext conftest$ac_exeext
41431 if { (ac_try="$ac_link"
41432 case "(($ac_try" in
41433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41434   *) ac_try_echo=$ac_try;;
41435 esac
41436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41437   (eval "$ac_link") 2>conftest.er1
41438   ac_status=$?
41439   grep -v '^ *+' conftest.er1 >conftest.err
41440   rm -f conftest.er1
41441   cat conftest.err >&5
41442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41443   (exit $ac_status); } && {
41444          test -z "$ac_c_werror_flag" ||
41445          test ! -s conftest.err
41446        } && test -s conftest$ac_exeext &&
41447        $as_test_x conftest$ac_exeext; then
41448   ac_cv_func_pthread_create=yes
41449 else
41450   echo "$as_me: failed program was:" >&5
41451 sed 's/^/| /' conftest.$ac_ext >&5
41452
41453         ac_cv_func_pthread_create=no
41454 fi
41455
41456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41457       conftest$ac_exeext conftest.$ac_ext
41458 fi
41459 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
41460 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
41461
41462
41463
41464 fi
41465
41466
41467
41468 fi
41469
41470
41471
41472 fi
41473
41474
41475
41476 cat >>confdefs.h <<\_ACEOF
41477 #define FDLIBS 1
41478 _ACEOF
41479
41480
41481 CFLAGS=${CFLAGS--O}
41482
41483 if test x$have_gcc = xyes ; then
41484    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41485    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41486 fi
41487 LDFLAGS=${LDFLAGS--O}
41488 DB_LIBS="${SQL_LFLAGS}"
41489 CPPFLAGS="$CPPFLAGS"
41490 CFLAGS="$CFLAGS"
41491
41492
41493
41494
41495
41496
41497
41498
41499
41500
41501
41502
41503
41504
41505
41506
41507 OBJLIST=
41508
41509
41510 lld="lld"
41511 llu="llu"
41512
41513 WCFLAGS=
41514 WLDFLAGS=
41515
41516 PFILES="platforms/Makefile"
41517 PSCMD="ps -e"
41518 WIN32=
41519 MACOSX=
41520 hostname=`uname -n | cut -d '.' -f 1`
41521 if test x${hostname} = x ; then
41522    hostname="localhost"
41523 fi
41524 case "$DISTNAME" in
41525 aix)
41526    DISTVER=`uname -r`
41527    PSCMD="ps -e -o pid,comm"
41528    PFILES="${PFILES} \
41529       platforms/aix/Makefile"
41530    TAPEDRIVE="/dev/rmt0.1"
41531   ;;
41532 alpha)
41533    DISTVER=`uname -r`
41534    PTHREAD_LIB="-lpthread -lexc"
41535    if test "${CC}" = "gcc" ; then
41536       lld="lld"
41537       llu="llu"
41538    else
41539       lld="ld"
41540       llu="lu"
41541    fi
41542    TAPEDRIVE="/dev/nrmt0"
41543   ;;
41544 bsdi)
41545    DISTVER=`uname -a |awk '{print $3}'`
41546    TAPEDRIVE="/dev/nrmt0"
41547    PTHREAD_LIB="-pthread"
41548    CFLAGS="${CFLAGS} -pthread"
41549    PSCMD="ps -ax -o pid,command"
41550    lld="qd"
41551    llu="qu"
41552    PFILES="${PFILES} \
41553        platforms/bsdi/Makefile \
41554        platforms/bsdi/bacula-fd \
41555        platforms/bsdi/bacula-sd \
41556        platforms/bsdi/bacula-dir"
41557    largefile_support="yes"
41558   ;;
41559 cygwin)
41560    DISTVER=`uname -a |awk '{print $3}'`
41561    TAPEDRIVE="/dev/nrst0"
41562    WIN32=win32
41563    WCFLAGS="-mwindows"
41564    WLDFLAGS="-mwindows"
41565   ;;
41566 darwin)
41567    DISTVER=`uname -r`
41568    TAPEDRIVE="/dev/nst0"
41569    PSCMD="ps -e -o pid,command"
41570    MACOSX=macosx
41571    PFILES="${PFILES} \
41572       platforms/darwin/Makefile"
41573   ;;
41574 debian)
41575       ping -c 1 $hostname 2>&1 1>/dev/null
41576    if test ! $? = 0; then
41577       hostname="localhost"
41578    fi
41579    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
41580       DISTNAME="ubuntu"
41581    fi
41582    DISTVER=`cat /etc/debian_version`
41583    if test -f /etc/lsb-release ; then
41584       . /etc/lsb-release
41585       if test "x$DISTRIB_ID" != "x" ; then
41586          DISTNAME=$DISTRIB_ID
41587       fi
41588       if test "x$DISTRIB_RELEASE" != "x" ; then
41589          DISTVER=$DISTRIB_RELEASE
41590       fi
41591    fi
41592    if test "$DISTNAME" = "Ubuntu" ; then
41593       DISTNAME="ubuntu"
41594    fi
41595    TAPEDRIVE="/dev/nst0"
41596    PSCMD="ps -e -o pid,command"
41597    if test "$DISTNAME" = "ubuntu" ; then
41598       PFILES="${PFILES} \
41599          platforms/ubuntu/Makefile \
41600          platforms/ubuntu/bacula-fd \
41601          platforms/ubuntu/bacula-sd \
41602          platforms/ubuntu/bacula-dir"
41603    else
41604       PFILES="${PFILES} \
41605          platforms/debian/Makefile \
41606          platforms/debian/bacula-fd \
41607          platforms/debian/bacula-sd \
41608          platforms/debian/bacula-dir"
41609    fi
41610   ;;
41611 freebsd)
41612       ping -c 1 $hostname 2>&1 1>/dev/null
41613    if test ! $? = 0; then
41614       hostname="localhost"
41615    fi
41616    DISTVER=`uname -a |awk '{print $3}'`
41617    VER=`echo $DISTVER | cut -c 1`
41618    if test x$VER = x4 ; then
41619       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41620       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41621    fi
41622    lld="qd"
41623    llu="qu"
41624    TAPEDRIVE="/dev/nrsa0"
41625    PSCMD="ps -ax -o pid,command"
41626    PFILES="${PFILES} \
41627        platforms/freebsd/Makefile \
41628        platforms/freebsd/bacula-fd \
41629        platforms/freebsd/bacula-sd \
41630        platforms/freebsd/bacula-dir"
41631    largefile_support="yes"
41632   ;;
41633 hpux)
41634    PSCMD="UNIX95=1; ps -e -o pid,comm"
41635    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41636    DISTVER=`uname -r`
41637    TAPEDRIVE="/dev/rmt/0hnb"
41638    PTHREAD_LIB="-lpthread"
41639    cat >>confdefs.h <<\_ACEOF
41640 #define _INCLUDE_LONGLONG 1
41641 _ACEOF
41642
41643   ;;
41644 irix)
41645    DISTVER=`uname -r`
41646    TAPEDRIVE="/dev/rmt/0cbn"
41647    PSCMD="ps -e -o pid,comm"
41648    PFILES="${PFILES} \
41649        platforms/irix/Makefile \
41650        platforms/irix/bacula-fd \
41651        platforms/irix/bacula-sd \
41652        platforms/irix/bacula-dir"
41653   ;;
41654 netbsd)
41655    DISTVER=`uname -a |awk '{print $3}'`
41656    lld="qd"
41657    llu="qu"
41658    TAPEDRIVE="/dev/nrst0"
41659    PSCMD="ps -ax -o pid,command"
41660    PTHREAD_LIB="-pthread"
41661    CFLAGS="${CFLAGS} -pthread"
41662   ;;
41663 openbsd)
41664    DISTVER=`uname -a |awk '{print $3}'`
41665    lld="qd"
41666    llu="qu"
41667    TAPEDRIVE="/dev/nrst0"
41668    PSCMD="ps -ax -o pid,command"
41669    PTHREAD_LIB="-pthread"
41670    CFLAGS="${CFLAGS} -pthread"
41671    PFILES="${PFILES} \
41672        platforms/openbsd/Makefile \
41673        platforms/openbsd/bacula-fd \
41674        platforms/openbsd/bacula-sd \
41675        platforms/openbsd/bacula-dir"
41676   ;;
41677 redhat)
41678       ping -c 1 $hostname 2>&1 1>/dev/null
41679    if test ! $? = 0; then
41680       hostname="localhost"
41681    fi
41682    if test -f /etc/whitebox-release ; then
41683       f=/etc/whitebox-release
41684    else
41685       f=/etc/redhat-release
41686    fi
41687    if test `cat $f | grep release |\
41688          cut -f 3 -d ' '`x = "Enterprise"x ; then
41689       DISTVER="Enterprise "`cat $f | grep release |\
41690           cut -f 6 -d ' '`
41691    else
41692        DISTVER=`cat /etc/redhat-release | grep release |\
41693            cut -f 5 -d ' '`
41694    fi
41695    TAPEDRIVE="/dev/nst0"
41696    PSCMD="ps -e -o pid,command"
41697    PFILES="${PFILES} \
41698        platforms/redhat/Makefile \
41699        platforms/redhat/bacula-fd \
41700        platforms/redhat/bacula-sd \
41701        platforms/redhat/bacula-dir \
41702        platforms/redhat/bacula.spec \
41703        "
41704   ;;
41705 mandrake)
41706       ping -c 1 $hostname 2>&1 1>/dev/null
41707    if test ! $? = 0; then
41708       hostname="localhost"
41709    fi
41710    DISTVER=`cat /etc/mandrake-release | grep release |\
41711       cut -f 5 -d ' '`
41712    TAPEDRIVE="/dev/nst0"
41713    PSCMD="ps -e -o pid,command"
41714    PFILES="${PFILES} \
41715        platforms/mandrake/Makefile \
41716        platforms/mandrake/bacula-fd \
41717        platforms/mandrake/bacula-sd \
41718        platforms/mandrake/bacula-dir \
41719        platforms/mandrake/bacula.spec \
41720        "
41721   ;;
41722 gentoo)
41723       ping -c 1 $hostname 2>&1 1>/dev/null
41724    if test ! $? = 0; then
41725       hostname="localhost"
41726    fi
41727    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41728    TAPEDRIVE="/dev/nst0"
41729    PSCMD="ps -e -o pid,command"
41730    PFILES="${PFILES} \
41731        platforms/gentoo/Makefile \
41732     platforms/gentoo/bacula-init \
41733        platforms/gentoo/bacula-fd \
41734        platforms/gentoo/bacula-sd \
41735        platforms/gentoo/bacula-dir"
41736   ;;
41737 slackware)
41738       ping -c 1 $hostname 2>&1 1>/dev/null
41739    if test ! $? = 0; then
41740       hostname="localhost"
41741    fi
41742    DISTVER=`cat /etc/slackware-version`
41743    TAPEDRIVE="/dev/nst0"
41744    PSCMD="ps -e -o pid,command"
41745    PFILES="${PFILES} \
41746        platforms/slackware/Makefile \
41747        platforms/slackware/rc.bacula-fd \
41748        platforms/slackware/rc.bacula-sd \
41749        platforms/slackware/rc.bacula-dir\
41750        platforms/slackware/functions.bacula"
41751   ;;
41752 solaris)
41753    DISTVER=`uname -r`
41754    TAPEDRIVE="/dev/rmt/0cbn"
41755    PSCMD="ps -e -o pid,comm"
41756    PFILES="${PFILES} \
41757        platforms/solaris/Makefile \
41758        platforms/solaris/bacula-fd \
41759        platforms/solaris/bacula-sd \
41760        platforms/solaris/bacula-dir"
41761    if test x$DISTVER = x5.6 ; then
41762        cat >>confdefs.h <<\_ACEOF
41763 #define HAVE_OLD_SOCKOPT 1
41764 _ACEOF
41765
41766    fi
41767    LIBS="$LIBS -lresolv"
41768   ;;
41769 suse)
41770       ping -c 1 $hostname 2>&1 1>/dev/null
41771    if test ! $? = 0; then
41772       hostname="localhost"
41773    fi
41774    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41775        cut -f 3 -d ' '`
41776    TAPEDRIVE="/dev/nst0"
41777    PSCMD="ps -e -o pid,command"
41778    PFILES="${PFILES} \
41779        platforms/suse/Makefile \
41780        platforms/suse/bacula-fd \
41781        platforms/suse/bacula-sd \
41782        platforms/suse/bacula-dir \
41783        platforms/suse/bacula \
41784        platforms/suse/bacula.spec"
41785   ;;
41786 suse5)
41787       ping -c 1 $hostname 2>&1 1>/dev/null
41788    if test ! $? = 0; then
41789       hostname="localhost"
41790    fi
41791    DISTNAME=suse
41792    DISTVER=5.x
41793    TAPEDRIVE="/dev/nst0"
41794    PSCMD="ps -e -o pid,command"
41795    PFILES="${PFILES} \
41796        platforms/suse/Makefile \
41797        platforms/suse/bacula-fd \
41798        platforms/suse/bacula-sd \
41799        platforms/suse/bacula-dir"
41800   ;;
41801 unknown)
41802    DISTVER=unknown
41803    TAPEDRIVE="/dev/nst0"
41804   ;;
41805 *)
41806   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41807   ;;
41808 esac
41809
41810
41811
41812 LIBS="$PTHREAD_LIB $LIBS"
41813
41814 cat >>confdefs.h <<_ACEOF
41815 #define lld "$lld"
41816 _ACEOF
41817
41818 cat >>confdefs.h <<_ACEOF
41819 #define llu "$llu"
41820 _ACEOF
41821
41822
41823
41824
41825
41826
41827
41828
41829 MCOMMON=./autoconf/Make.common
41830
41831
41832 if test "x${subsysdir}" = "x${sbindir}" ; then
41833    echo " "
41834    echo " "
41835    echo "You have set both --sbindir and --with-subsys-dir"
41836    echo "  equal to: ${subsysdir} "
41837    echo "This is not permitted. Please reconfigure."
41838    echo " "
41839    echo "Aborting configuration ..."
41840    echo " "
41841    echo " "
41842    exit 1
41843 fi
41844
41845 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_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"
41846
41847 ac_config_commands="$ac_config_commands default"
41848
41849 cat >confcache <<\_ACEOF
41850 # This file is a shell script that caches the results of configure
41851 # tests run on this system so they can be shared between configure
41852 # scripts and configure runs, see configure's option --config-cache.
41853 # It is not useful on other systems.  If it contains results you don't
41854 # want to keep, you may remove or edit it.
41855 #
41856 # config.status only pays attention to the cache file if you give it
41857 # the --recheck option to rerun configure.
41858 #
41859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41861 # following values.
41862
41863 _ACEOF
41864
41865 # The following way of writing the cache mishandles newlines in values,
41866 # but we know of no workaround that is simple, portable, and efficient.
41867 # So, we kill variables containing newlines.
41868 # Ultrix sh set writes to stderr and can't be redirected directly,
41869 # and sets the high bit in the cache file unless we assign to the vars.
41870 (
41871   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41872     eval ac_val=\$$ac_var
41873     case $ac_val in #(
41874     *${as_nl}*)
41875       case $ac_var in #(
41876       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41877 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41878       esac
41879       case $ac_var in #(
41880       _ | IFS | as_nl) ;; #(
41881       *) $as_unset $ac_var ;;
41882       esac ;;
41883     esac
41884   done
41885
41886   (set) 2>&1 |
41887     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41888     *${as_nl}ac_space=\ *)
41889       # `set' does not quote correctly, so add quotes (double-quote
41890       # substitution turns \\\\ into \\, and sed turns \\ into \).
41891       sed -n \
41892         "s/'/'\\\\''/g;
41893           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41894       ;; #(
41895     *)
41896       # `set' quotes correctly as required by POSIX, so do not add quotes.
41897       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41898       ;;
41899     esac |
41900     sort
41901 ) |
41902   sed '
41903      /^ac_cv_env_/b end
41904      t clear
41905      :clear
41906      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41907      t end
41908      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41909      :end' >>confcache
41910 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41911   if test -w "$cache_file"; then
41912     test "x$cache_file" != "x/dev/null" &&
41913       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41914 echo "$as_me: updating cache $cache_file" >&6;}
41915     cat confcache >$cache_file
41916   else
41917     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41918 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41919   fi
41920 fi
41921 rm -f confcache
41922
41923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41924 # Let make expand exec_prefix.
41925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41926
41927 DEFS=-DHAVE_CONFIG_H
41928
41929 ac_libobjs=
41930 ac_ltlibobjs=
41931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41932   # 1. Remove the extension, and $U if already installed.
41933   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41934   ac_i=`echo "$ac_i" | sed "$ac_script"`
41935   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41936   #    will be set to the directory where LIBOBJS objects are built.
41937   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41938   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41939 done
41940 LIBOBJS=$ac_libobjs
41941
41942 LTLIBOBJS=$ac_ltlibobjs
41943
41944
41945
41946 : ${CONFIG_STATUS=./config.status}
41947 ac_clean_files_save=$ac_clean_files
41948 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41949 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41950 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41951 cat >$CONFIG_STATUS <<_ACEOF
41952 #! $SHELL
41953 # Generated by $as_me.
41954 # Run this file to recreate the current configuration.
41955 # Compiler output produced by configure, useful for debugging
41956 # configure, is in config.log if it exists.
41957
41958 debug=false
41959 ac_cs_recheck=false
41960 ac_cs_silent=false
41961 SHELL=\${CONFIG_SHELL-$SHELL}
41962 _ACEOF
41963
41964 cat >>$CONFIG_STATUS <<\_ACEOF
41965 ## --------------------- ##
41966 ## M4sh Initialization.  ##
41967 ## --------------------- ##
41968
41969 # Be more Bourne compatible
41970 DUALCASE=1; export DUALCASE # for MKS sh
41971 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41972   emulate sh
41973   NULLCMD=:
41974   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41975   # is contrary to our usage.  Disable this feature.
41976   alias -g '${1+"$@"}'='"$@"'
41977   setopt NO_GLOB_SUBST
41978 else
41979   case `(set -o) 2>/dev/null` in
41980   *posix*) set -o posix ;;
41981 esac
41982
41983 fi
41984
41985
41986
41987
41988 # PATH needs CR
41989 # Avoid depending upon Character Ranges.
41990 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41991 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41992 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41993 as_cr_digits='0123456789'
41994 as_cr_alnum=$as_cr_Letters$as_cr_digits
41995
41996 # The user is always right.
41997 if test "${PATH_SEPARATOR+set}" != set; then
41998   echo "#! /bin/sh" >conf$$.sh
41999   echo  "exit 0"   >>conf$$.sh
42000   chmod +x conf$$.sh
42001   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42002     PATH_SEPARATOR=';'
42003   else
42004     PATH_SEPARATOR=:
42005   fi
42006   rm -f conf$$.sh
42007 fi
42008
42009 # Support unset when possible.
42010 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42011   as_unset=unset
42012 else
42013   as_unset=false
42014 fi
42015
42016
42017 # IFS
42018 # We need space, tab and new line, in precisely that order.  Quoting is
42019 # there to prevent editors from complaining about space-tab.
42020 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
42021 # splitting by setting IFS to empty value.)
42022 as_nl='
42023 '
42024 IFS=" ""        $as_nl"
42025
42026 # Find who we are.  Look in the path if we contain no directory separator.
42027 case $0 in
42028   *[\\/]* ) as_myself=$0 ;;
42029   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42030 for as_dir in $PATH
42031 do
42032   IFS=$as_save_IFS
42033   test -z "$as_dir" && as_dir=.
42034   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42035 done
42036 IFS=$as_save_IFS
42037
42038      ;;
42039 esac
42040 # We did not find ourselves, most probably we were run as `sh COMMAND'
42041 # in which case we are not to be found in the path.
42042 if test "x$as_myself" = x; then
42043   as_myself=$0
42044 fi
42045 if test ! -f "$as_myself"; then
42046   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42047   { (exit 1); exit 1; }
42048 fi
42049
42050 # Work around bugs in pre-3.0 UWIN ksh.
42051 for as_var in ENV MAIL MAILPATH
42052 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42053 done
42054 PS1='$ '
42055 PS2='> '
42056 PS4='+ '
42057
42058 # NLS nuisances.
42059 for as_var in \
42060   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42061   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42062   LC_TELEPHONE LC_TIME
42063 do
42064   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42065     eval $as_var=C; export $as_var
42066   else
42067     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42068   fi
42069 done
42070
42071 # Required to use basename.
42072 if expr a : '\(a\)' >/dev/null 2>&1 &&
42073    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42074   as_expr=expr
42075 else
42076   as_expr=false
42077 fi
42078
42079 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42080   as_basename=basename
42081 else
42082   as_basename=false
42083 fi
42084
42085
42086 # Name of the executable.
42087 as_me=`$as_basename -- "$0" ||
42088 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42089          X"$0" : 'X\(//\)$' \| \
42090          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42091 echo X/"$0" |
42092     sed '/^.*\/\([^/][^/]*\)\/*$/{
42093             s//\1/
42094             q
42095           }
42096           /^X\/\(\/\/\)$/{
42097             s//\1/
42098             q
42099           }
42100           /^X\/\(\/\).*/{
42101             s//\1/
42102             q
42103           }
42104           s/.*/./; q'`
42105
42106 # CDPATH.
42107 $as_unset CDPATH
42108
42109
42110
42111   as_lineno_1=$LINENO
42112   as_lineno_2=$LINENO
42113   test "x$as_lineno_1" != "x$as_lineno_2" &&
42114   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
42115
42116   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42117   # uniformly replaced by the line number.  The first 'sed' inserts a
42118   # line-number line after each line using $LINENO; the second 'sed'
42119   # does the real work.  The second script uses 'N' to pair each
42120   # line-number line with the line containing $LINENO, and appends
42121   # trailing '-' during substitution so that $LINENO is not a special
42122   # case at line end.
42123   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42124   # scripts with optimization help from Paolo Bonzini.  Blame Lee
42125   # E. McMahon (1931-1989) for sed's syntax.  :-)
42126   sed -n '
42127     p
42128     /[$]LINENO/=
42129   ' <$as_myself |
42130     sed '
42131       s/[$]LINENO.*/&-/
42132       t lineno
42133       b
42134       :lineno
42135       N
42136       :loop
42137       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42138       t loop
42139       s/-\n.*//
42140     ' >$as_me.lineno &&
42141   chmod +x "$as_me.lineno" ||
42142     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
42143    { (exit 1); exit 1; }; }
42144
42145   # Don't try to exec as it changes $[0], causing all sort of problems
42146   # (the dirname of $[0] is not the place where we might find the
42147   # original and so on.  Autoconf is especially sensitive to this).
42148   . "./$as_me.lineno"
42149   # Exit status is that of the last command.
42150   exit
42151 }
42152
42153
42154 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42155   as_dirname=dirname
42156 else
42157   as_dirname=false
42158 fi
42159
42160 ECHO_C= ECHO_N= ECHO_T=
42161 case `echo -n x` in
42162 -n*)
42163   case `echo 'x\c'` in
42164   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
42165   *)   ECHO_C='\c';;
42166   esac;;
42167 *)
42168   ECHO_N='-n';;
42169 esac
42170
42171 if expr a : '\(a\)' >/dev/null 2>&1 &&
42172    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42173   as_expr=expr
42174 else
42175   as_expr=false
42176 fi
42177
42178 rm -f conf$$ conf$$.exe conf$$.file
42179 if test -d conf$$.dir; then
42180   rm -f conf$$.dir/conf$$.file
42181 else
42182   rm -f conf$$.dir
42183   mkdir conf$$.dir
42184 fi
42185 echo >conf$$.file
42186 if ln -s conf$$.file conf$$ 2>/dev/null; then
42187   as_ln_s='ln -s'
42188   # ... but there are two gotchas:
42189   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42190   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42191   # In both cases, we have to default to `cp -p'.
42192   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42193     as_ln_s='cp -p'
42194 elif ln conf$$.file conf$$ 2>/dev/null; then
42195   as_ln_s=ln
42196 else
42197   as_ln_s='cp -p'
42198 fi
42199 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42200 rmdir conf$$.dir 2>/dev/null
42201
42202 if mkdir -p . 2>/dev/null; then
42203   as_mkdir_p=:
42204 else
42205   test -d ./-p && rmdir ./-p
42206   as_mkdir_p=false
42207 fi
42208
42209 if test -x / >/dev/null 2>&1; then
42210   as_test_x='test -x'
42211 else
42212   if ls -dL / >/dev/null 2>&1; then
42213     as_ls_L_option=L
42214   else
42215     as_ls_L_option=
42216   fi
42217   as_test_x='
42218     eval sh -c '\''
42219       if test -d "$1"; then
42220         test -d "$1/.";
42221       else
42222         case $1 in
42223         -*)set "./$1";;
42224         esac;
42225         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
42226         ???[sx]*):;;*)false;;esac;fi
42227     '\'' sh
42228   '
42229 fi
42230 as_executable_p=$as_test_x
42231
42232 # Sed expression to map a string onto a valid CPP name.
42233 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42234
42235 # Sed expression to map a string onto a valid variable name.
42236 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42237
42238
42239 exec 6>&1
42240
42241 # Save the log message, to keep $[0] and so on meaningful, and to
42242 # report actual input values of CONFIG_FILES etc. instead of their
42243 # values after options handling.
42244 ac_log="
42245 This file was extended by $as_me, which was
42246 generated by GNU Autoconf 2.61.  Invocation command line was
42247
42248   CONFIG_FILES    = $CONFIG_FILES
42249   CONFIG_HEADERS  = $CONFIG_HEADERS
42250   CONFIG_LINKS    = $CONFIG_LINKS
42251   CONFIG_COMMANDS = $CONFIG_COMMANDS
42252   $ $0 $@
42253
42254 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42255 "
42256
42257 _ACEOF
42258
42259 cat >>$CONFIG_STATUS <<_ACEOF
42260 # Files that config.status was made for.
42261 config_files="$ac_config_files"
42262 config_headers="$ac_config_headers"
42263 config_commands="$ac_config_commands"
42264
42265 _ACEOF
42266
42267 cat >>$CONFIG_STATUS <<\_ACEOF
42268 ac_cs_usage="\
42269 \`$as_me' instantiates files from templates according to the
42270 current configuration.
42271
42272 Usage: $0 [OPTIONS] [FILE]...
42273
42274   -h, --help       print this help, then exit
42275   -V, --version    print version number and configuration settings, then exit
42276   -q, --quiet      do not print progress messages
42277   -d, --debug      don't remove temporary files
42278       --recheck    update $as_me by reconfiguring in the same conditions
42279   --file=FILE[:TEMPLATE]
42280                    instantiate the configuration file FILE
42281   --header=FILE[:TEMPLATE]
42282                    instantiate the configuration header FILE
42283
42284 Configuration files:
42285 $config_files
42286
42287 Configuration headers:
42288 $config_headers
42289
42290 Configuration commands:
42291 $config_commands
42292
42293 Report bugs to <bug-autoconf@gnu.org>."
42294
42295 _ACEOF
42296 cat >>$CONFIG_STATUS <<_ACEOF
42297 ac_cs_version="\\
42298 config.status
42299 configured by $0, generated by GNU Autoconf 2.61,
42300   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42301
42302 Copyright (C) 2006 Free Software Foundation, Inc.
42303 This config.status script is free software; the Free Software Foundation
42304 gives unlimited permission to copy, distribute and modify it."
42305
42306 ac_pwd='$ac_pwd'
42307 srcdir='$srcdir'
42308 INSTALL='$INSTALL'
42309 _ACEOF
42310
42311 cat >>$CONFIG_STATUS <<\_ACEOF
42312 # If no file are specified by the user, then we need to provide default
42313 # value.  By we need to know if files were specified by the user.
42314 ac_need_defaults=:
42315 while test $# != 0
42316 do
42317   case $1 in
42318   --*=*)
42319     ac_option=`expr "X$1" : 'X\([^=]*\)='`
42320     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42321     ac_shift=:
42322     ;;
42323   *)
42324     ac_option=$1
42325     ac_optarg=$2
42326     ac_shift=shift
42327     ;;
42328   esac
42329
42330   case $ac_option in
42331   # Handling of the options.
42332   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42333     ac_cs_recheck=: ;;
42334   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42335     echo "$ac_cs_version"; exit ;;
42336   --debug | --debu | --deb | --de | --d | -d )
42337     debug=: ;;
42338   --file | --fil | --fi | --f )
42339     $ac_shift
42340     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42341     ac_need_defaults=false;;
42342   --header | --heade | --head | --hea )
42343     $ac_shift
42344     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42345     ac_need_defaults=false;;
42346   --he | --h)
42347     # Conflict between --help and --header
42348     { echo "$as_me: error: ambiguous option: $1
42349 Try \`$0 --help' for more information." >&2
42350    { (exit 1); exit 1; }; };;
42351   --help | --hel | -h )
42352     echo "$ac_cs_usage"; exit ;;
42353   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42354   | -silent | --silent | --silen | --sile | --sil | --si | --s)
42355     ac_cs_silent=: ;;
42356
42357   # This is an error.
42358   -*) { echo "$as_me: error: unrecognized option: $1
42359 Try \`$0 --help' for more information." >&2
42360    { (exit 1); exit 1; }; } ;;
42361
42362   *) ac_config_targets="$ac_config_targets $1"
42363      ac_need_defaults=false ;;
42364
42365   esac
42366   shift
42367 done
42368
42369 ac_configure_extra_args=
42370
42371 if $ac_cs_silent; then
42372   exec 6>/dev/null
42373   ac_configure_extra_args="$ac_configure_extra_args --silent"
42374 fi
42375
42376 _ACEOF
42377 cat >>$CONFIG_STATUS <<_ACEOF
42378 if \$ac_cs_recheck; then
42379   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42380   CONFIG_SHELL=$SHELL
42381   export CONFIG_SHELL
42382   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42383 fi
42384
42385 _ACEOF
42386 cat >>$CONFIG_STATUS <<\_ACEOF
42387 exec 5>>config.log
42388 {
42389   echo
42390   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42391 ## Running $as_me. ##
42392 _ASBOX
42393   echo "$ac_log"
42394 } >&5
42395
42396 _ACEOF
42397 cat >>$CONFIG_STATUS <<_ACEOF
42398 #
42399 # INIT-COMMANDS
42400 #
42401
42402
42403 # The HP-UX ksh and POSIX shell print the target directory to stdout
42404 # if CDPATH is set.
42405 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42406
42407 sed_quote_subst='$sed_quote_subst'
42408 double_quote_subst='$double_quote_subst'
42409 delay_variable_subst='$delay_variable_subst'
42410 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
42411 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
42412 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
42413 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
42414 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
42415 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
42416 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
42417 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
42418 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
42419 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
42420 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
42421 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
42422 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
42423 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
42424 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
42425 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
42426 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
42427 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
42428 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
42429 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
42430 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
42431 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
42432 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
42433 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
42434 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
42435 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
42436 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
42437 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42438 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
42439 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
42440 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
42441 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
42442 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42443 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
42444 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
42445 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42446 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42447 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42448 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
42449 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42450 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
42451 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
42452 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
42453 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
42454 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"`'
42455 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"`'
42456 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
42457 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
42458 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
42459 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
42460 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
42461 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
42462 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
42463 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
42464 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
42465 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
42466 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
42467 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
42468 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
42469 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
42470 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
42471 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
42472 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42473 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42474 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
42475 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
42476 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42477 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42478 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
42479 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42480 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42481 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42482 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42483 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42484 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42485 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
42486 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42487 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42488 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42489 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
42490 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
42491 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
42492 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
42493 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
42494 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42495 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
42496 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
42497 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
42498 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
42499 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
42500 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42501 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42502 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42503 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42504 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
42505 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
42506 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
42507 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
42508 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
42509 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42510 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42511 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
42512 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42513 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
42514 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42515 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42516 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42517 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42518 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
42519 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
42520 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42521 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42522 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
42523 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
42524 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
42525 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
42526 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
42527 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
42528 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
42529 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42530 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42531 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
42532 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
42533 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
42534 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42535 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42536 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42537 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42538 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42539 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42540 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42541 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42542 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42543 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42544 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42545 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42546 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42547 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42548 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42549 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42550 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42551 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42552 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42553 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42554 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42555 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42556 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42557 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42558 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42559 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42560 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42561 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42562 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42563 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42564 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42565 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42566 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42567 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42568 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42569 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42570 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42571 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42572 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42573 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42574 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42575 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42576 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42577 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42578 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42579 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42580 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42581
42582 LTCC='$LTCC'
42583 LTCFLAGS='$LTCFLAGS'
42584 compiler='$compiler_DEFAULT'
42585
42586 # Quote evaled strings.
42587 for var in SED \
42588 GREP \
42589 EGREP \
42590 FGREP \
42591 LD \
42592 NM \
42593 LN_S \
42594 lt_SP2NL \
42595 lt_NL2SP \
42596 reload_flag \
42597 OBJDUMP \
42598 deplibs_check_method \
42599 file_magic_cmd \
42600 AR \
42601 AR_FLAGS \
42602 STRIP \
42603 RANLIB \
42604 CC \
42605 CFLAGS \
42606 compiler \
42607 lt_cv_sys_global_symbol_pipe \
42608 lt_cv_sys_global_symbol_to_cdecl \
42609 lt_cv_sys_global_symbol_to_c_name_address \
42610 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42611 SHELL \
42612 ECHO \
42613 lt_prog_compiler_no_builtin_flag \
42614 lt_prog_compiler_wl \
42615 lt_prog_compiler_pic \
42616 lt_prog_compiler_static \
42617 lt_cv_prog_compiler_c_o \
42618 need_locks \
42619 DSYMUTIL \
42620 NMEDIT \
42621 LIPO \
42622 OTOOL \
42623 OTOOL64 \
42624 shrext_cmds \
42625 export_dynamic_flag_spec \
42626 whole_archive_flag_spec \
42627 compiler_needs_object \
42628 with_gnu_ld \
42629 allow_undefined_flag \
42630 no_undefined_flag \
42631 hardcode_libdir_flag_spec \
42632 hardcode_libdir_flag_spec_ld \
42633 hardcode_libdir_separator \
42634 fix_srcfile_path \
42635 exclude_expsyms \
42636 include_expsyms \
42637 file_list_spec \
42638 variables_saved_for_relink \
42639 libname_spec \
42640 library_names_spec \
42641 soname_spec \
42642 finish_eval \
42643 old_striplib \
42644 striplib \
42645 compiler_lib_search_dirs \
42646 predep_objects \
42647 postdep_objects \
42648 predeps \
42649 postdeps \
42650 compiler_lib_search_path \
42651 LD_CXX \
42652 compiler_CXX \
42653 lt_prog_compiler_no_builtin_flag_CXX \
42654 lt_prog_compiler_wl_CXX \
42655 lt_prog_compiler_pic_CXX \
42656 lt_prog_compiler_static_CXX \
42657 lt_cv_prog_compiler_c_o_CXX \
42658 export_dynamic_flag_spec_CXX \
42659 whole_archive_flag_spec_CXX \
42660 compiler_needs_object_CXX \
42661 with_gnu_ld_CXX \
42662 allow_undefined_flag_CXX \
42663 no_undefined_flag_CXX \
42664 hardcode_libdir_flag_spec_CXX \
42665 hardcode_libdir_flag_spec_ld_CXX \
42666 hardcode_libdir_separator_CXX \
42667 fix_srcfile_path_CXX \
42668 exclude_expsyms_CXX \
42669 include_expsyms_CXX \
42670 file_list_spec_CXX \
42671 compiler_lib_search_dirs_CXX \
42672 predep_objects_CXX \
42673 postdep_objects_CXX \
42674 predeps_CXX \
42675 postdeps_CXX \
42676 compiler_lib_search_path_CXX; do
42677     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42678     *[\\\\\\\`\\"\\\$]*)
42679       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42680       ;;
42681     *)
42682       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42683       ;;
42684     esac
42685 done
42686
42687 # Double-quote double-evaled strings.
42688 for var in reload_cmds \
42689 old_postinstall_cmds \
42690 old_postuninstall_cmds \
42691 old_archive_cmds \
42692 extract_expsyms_cmds \
42693 old_archive_from_new_cmds \
42694 old_archive_from_expsyms_cmds \
42695 archive_cmds \
42696 archive_expsym_cmds \
42697 module_cmds \
42698 module_expsym_cmds \
42699 export_symbols_cmds \
42700 prelink_cmds \
42701 postinstall_cmds \
42702 postuninstall_cmds \
42703 finish_cmds \
42704 sys_lib_search_path_spec \
42705 sys_lib_dlsearch_path_spec \
42706 old_archive_cmds_CXX \
42707 old_archive_from_new_cmds_CXX \
42708 old_archive_from_expsyms_cmds_CXX \
42709 archive_cmds_CXX \
42710 archive_expsym_cmds_CXX \
42711 module_cmds_CXX \
42712 module_expsym_cmds_CXX \
42713 export_symbols_cmds_CXX \
42714 prelink_cmds_CXX; do
42715     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42716     *[\\\\\\\`\\"\\\$]*)
42717       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42718       ;;
42719     *)
42720       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42721       ;;
42722     esac
42723 done
42724
42725 # Fix-up fallback echo if it was mangled by the above quoting rules.
42726 case \$lt_ECHO in
42727 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42728   ;;
42729 esac
42730
42731 ac_aux_dir='$ac_aux_dir'
42732 xsi_shell='$xsi_shell'
42733 lt_shell_append='$lt_shell_append'
42734
42735 # See if we are running on zsh, and set the options which allow our
42736 # commands through without removal of \ escapes INIT.
42737 if test -n "\${ZSH_VERSION+set}" ; then
42738    setopt NO_GLOB_SUBST
42739 fi
42740
42741
42742     PACKAGE='$PACKAGE'
42743     VERSION='$VERSION'
42744     TIMESTAMP='$TIMESTAMP'
42745     RM='$RM'
42746     ofile='$ofile'
42747
42748
42749
42750
42751
42752 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42753     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42754     # from automake.
42755     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42756     # Capture the value of LINGUAS because we need it to compute CATALOGS.
42757     LINGUAS="${LINGUAS-%UNSET%}"
42758
42759
42760 _ACEOF
42761
42762 cat >>$CONFIG_STATUS <<\_ACEOF
42763
42764 # Handling of arguments.
42765 for ac_config_target in $ac_config_targets
42766 do
42767   case $ac_config_target in
42768     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42769     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42770     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42771     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42772     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42773     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42774     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42775     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42776     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42777     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42778     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42779     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42780     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42781     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42782     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42783     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42784     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42785     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42786     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42787     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42788     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42789     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42790     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42791     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42792     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42793     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42794     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42795     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42796     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42797     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42798     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42799     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42800     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42801     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42802     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42803     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42804     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42805     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42806     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42807     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42808     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42809     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42810     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42811     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42812     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42813     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42814     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42815     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42816     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42817     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42818     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42819     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42820     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42821     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42822     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42823     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42824     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42825     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42826     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42827     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42828     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42829     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42830     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42831     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42832     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42833     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42834     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42835     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42836     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42837     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42838     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42839     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42840     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42841     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42842     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42843     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42844     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42845     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42846     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42847     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42848     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42849     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42850     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42851     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42852     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42853     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42854     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42855     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42856     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42857     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42858     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42859     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42860     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42861     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42862     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42863     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42864     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42865     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42866     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42867     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42868     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42869     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42870     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42871     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42872     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42873     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42874     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
42875     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
42876     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
42877     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42878     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42879     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42880     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42881     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42882     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42883     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42884
42885   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42886 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42887    { (exit 1); exit 1; }; };;
42888   esac
42889 done
42890
42891
42892 # If the user did not use the arguments to specify the items to instantiate,
42893 # then the envvar interface is used.  Set only those that are not.
42894 # We use the long form for the default assignment because of an extremely
42895 # bizarre bug on SunOS 4.1.3.
42896 if $ac_need_defaults; then
42897   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42898   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42899   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42900 fi
42901
42902 # Have a temporary directory for convenience.  Make it in the build tree
42903 # simply because there is no reason against having it here, and in addition,
42904 # creating and moving files from /tmp can sometimes cause problems.
42905 # Hook for its removal unless debugging.
42906 # Note that there is a small window in which the directory will not be cleaned:
42907 # after its creation but before its name has been assigned to `$tmp'.
42908 $debug ||
42909 {
42910   tmp=
42911   trap 'exit_status=$?
42912   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42913 ' 0
42914   trap '{ (exit 1); exit 1; }' 1 2 13 15
42915 }
42916 # Create a (secure) tmp directory for tmp files.
42917
42918 {
42919   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42920   test -n "$tmp" && test -d "$tmp"
42921 }  ||
42922 {
42923   tmp=./conf$$-$RANDOM
42924   (umask 077 && mkdir "$tmp")
42925 } ||
42926 {
42927    echo "$me: cannot create a temporary directory in ." >&2
42928    { (exit 1); exit 1; }
42929 }
42930
42931 #
42932 # Set up the sed scripts for CONFIG_FILES section.
42933 #
42934
42935 # No need to generate the scripts if there are no CONFIG_FILES.
42936 # This happens for instance when ./config.status config.h
42937 if test -n "$CONFIG_FILES"; then
42938
42939 _ACEOF
42940
42941 # Create sed commands to just substitute file output variables.
42942
42943 # Remaining file output variables are in a fragment that also has non-file
42944 # output varibles.
42945
42946
42947
42948 ac_delim='%!_!# '
42949 for ac_last_try in false false false false false :; do
42950   cat >conf$$subs.sed <<_ACEOF
42951 SHELL!$SHELL$ac_delim
42952 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42953 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42954 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42955 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42956 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42957 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42958 exec_prefix!$exec_prefix$ac_delim
42959 prefix!$prefix$ac_delim
42960 program_transform_name!$program_transform_name$ac_delim
42961 bindir!$bindir$ac_delim
42962 sbindir!$sbindir$ac_delim
42963 libexecdir!$libexecdir$ac_delim
42964 datarootdir!$datarootdir$ac_delim
42965 datadir!$datadir$ac_delim
42966 sysconfdir!$sysconfdir$ac_delim
42967 sharedstatedir!$sharedstatedir$ac_delim
42968 localstatedir!$localstatedir$ac_delim
42969 includedir!$includedir$ac_delim
42970 oldincludedir!$oldincludedir$ac_delim
42971 docdir!$docdir$ac_delim
42972 infodir!$infodir$ac_delim
42973 htmldir!$htmldir$ac_delim
42974 dvidir!$dvidir$ac_delim
42975 pdfdir!$pdfdir$ac_delim
42976 psdir!$psdir$ac_delim
42977 libdir!$libdir$ac_delim
42978 localedir!$localedir$ac_delim
42979 mandir!$mandir$ac_delim
42980 DEFS!$DEFS$ac_delim
42981 ECHO_C!$ECHO_C$ac_delim
42982 ECHO_N!$ECHO_N$ac_delim
42983 ECHO_T!$ECHO_T$ac_delim
42984 LIBS!$LIBS$ac_delim
42985 build_alias!$build_alias$ac_delim
42986 host_alias!$host_alias$ac_delim
42987 target_alias!$target_alias$ac_delim
42988 BUILD_DIR!$BUILD_DIR$ac_delim
42989 TOP_DIR!$TOP_DIR$ac_delim
42990 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
42991 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
42992 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
42993 TRUEPRG!$TRUEPRG$ac_delim
42994 FALSEPRG!$FALSEPRG$ac_delim
42995 VERSION!$VERSION$ac_delim
42996 DATE!$DATE$ac_delim
42997 LSMDATE!$LSMDATE$ac_delim
42998 BACULA!$BACULA$ac_delim
42999 post_host!$post_host$ac_delim
43000 CC!$CC$ac_delim
43001 CFLAGS!$CFLAGS$ac_delim
43002 LDFLAGS!$LDFLAGS$ac_delim
43003 CPPFLAGS!$CPPFLAGS$ac_delim
43004 ac_ct_CC!$ac_ct_CC$ac_delim
43005 EXEEXT!$EXEEXT$ac_delim
43006 OBJEXT!$OBJEXT$ac_delim
43007 CXX!$CXX$ac_delim
43008 CXXFLAGS!$CXXFLAGS$ac_delim
43009 ac_ct_CXX!$ac_ct_CXX$ac_delim
43010 CPP!$CPP$ac_delim
43011 GREP!$GREP$ac_delim
43012 EGREP!$EGREP$ac_delim
43013 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
43014 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
43015 INSTALL_DATA!$INSTALL_DATA$ac_delim
43016 MV!$MV$ac_delim
43017 REMOVE!$REMOVE$ac_delim
43018 CP!$CP$ac_delim
43019 SED!$SED$ac_delim
43020 ECHO!$ECHO$ac_delim
43021 CMP!$CMP$ac_delim
43022 TBL!$TBL$ac_delim
43023 AR!$AR$ac_delim
43024 OPENSSL!$OPENSSL$ac_delim
43025 MTX!$MTX$ac_delim
43026 DD!$DD$ac_delim
43027 MKISOFS!$MKISOFS$ac_delim
43028 PYTHON!$PYTHON$ac_delim
43029 GROWISOFS!$GROWISOFS$ac_delim
43030 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
43031 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
43032 PKGCONFIG!$PKGCONFIG$ac_delim
43033 QMAKE!$QMAKE$ac_delim
43034 QMAKEQT4!$QMAKEQT4$ac_delim
43035 WXCONFIG!$WXCONFIG$ac_delim
43036 WXFLAGS!$WXFLAGS$ac_delim
43037 CDRECORD!$CDRECORD$ac_delim
43038 PIDOF!$PIDOF$ac_delim
43039 AWK!$AWK$ac_delim
43040 ARFLAGS!$ARFLAGS$ac_delim
43041 MAKE_SHELL!$MAKE_SHELL$ac_delim
43042 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
43043 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
43044 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
43045 _ACEOF
43046
43047   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
43048     break
43049   elif $ac_last_try; then
43050     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43051 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43052    { (exit 1); exit 1; }; }
43053   else
43054     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43055   fi
43056 done
43057
43058 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43059 if test -n "$ac_eof"; then
43060   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43061   ac_eof=`expr $ac_eof + 1`
43062 fi
43063
43064 cat >>$CONFIG_STATUS <<_ACEOF
43065 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43067 /^[      ]*@MCOMMON@[    ]*$/{
43068 r $MCOMMON
43069 d
43070 }
43071 _ACEOF
43072 sed '
43073 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43074 s/^/s,@/; s/!/@,|#_!!_#|/
43075 :n
43076 t n
43077 s/'"$ac_delim"'$/,g/; t
43078 s/$/\\/; p
43079 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43080 ' >>$CONFIG_STATUS <conf$$subs.sed
43081 rm -f conf$$subs.sed
43082 cat >>$CONFIG_STATUS <<_ACEOF
43083 CEOF$ac_eof
43084 _ACEOF
43085
43086
43087 ac_delim='%!_!# '
43088 for ac_last_try in false false false false false :; do
43089   cat >conf$$subs.sed <<_ACEOF
43090 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
43091 LIBTOOL!$LIBTOOL$ac_delim
43092 build!$build$ac_delim
43093 build_cpu!$build_cpu$ac_delim
43094 build_vendor!$build_vendor$ac_delim
43095 build_os!$build_os$ac_delim
43096 host!$host$ac_delim
43097 host_cpu!$host_cpu$ac_delim
43098 host_vendor!$host_vendor$ac_delim
43099 host_os!$host_os$ac_delim
43100 FGREP!$FGREP$ac_delim
43101 LD!$LD$ac_delim
43102 DUMPBIN!$DUMPBIN$ac_delim
43103 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
43104 NM!$NM$ac_delim
43105 LN_S!$LN_S$ac_delim
43106 OBJDUMP!$OBJDUMP$ac_delim
43107 STRIP!$STRIP$ac_delim
43108 RANLIB!$RANLIB$ac_delim
43109 lt_ECHO!$lt_ECHO$ac_delim
43110 DSYMUTIL!$DSYMUTIL$ac_delim
43111 NMEDIT!$NMEDIT$ac_delim
43112 LIPO!$LIPO$ac_delim
43113 OTOOL!$OTOOL$ac_delim
43114 OTOOL64!$OTOOL64$ac_delim
43115 CXXCPP!$CXXCPP$ac_delim
43116 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
43117 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
43118 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
43119 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
43120 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
43121 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
43122 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
43123 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
43124 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
43125 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
43126 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
43127 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
43128 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
43129 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
43130 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
43131 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
43132 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
43133 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
43134 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
43135 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
43136 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
43137 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
43138 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
43139 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
43140 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
43141 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
43142 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
43143 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
43144 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
43145 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
43146 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
43147 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
43148 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
43149 SET_MAKE!$SET_MAKE$ac_delim
43150 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
43151 USE_NLS!$USE_NLS$ac_delim
43152 MSGFMT!$MSGFMT$ac_delim
43153 GMSGFMT!$GMSGFMT$ac_delim
43154 XGETTEXT!$XGETTEXT$ac_delim
43155 MSGMERGE!$MSGMERGE$ac_delim
43156 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
43157 LIBICONV!$LIBICONV$ac_delim
43158 LTLIBICONV!$LTLIBICONV$ac_delim
43159 INTLLIBS!$INTLLIBS$ac_delim
43160 LIBINTL!$LIBINTL$ac_delim
43161 LTLIBINTL!$LTLIBINTL$ac_delim
43162 POSUB!$POSUB$ac_delim
43163 GLIBC2!$GLIBC2$ac_delim
43164 ALLOCA!$ALLOCA$ac_delim
43165 GLIBC21!$GLIBC21$ac_delim
43166 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
43167 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
43168 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
43169 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
43170 INTLBISON!$INTLBISON$ac_delim
43171 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
43172 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
43173 CATOBJEXT!$CATOBJEXT$ac_delim
43174 DATADIRNAME!$DATADIRNAME$ac_delim
43175 INSTOBJEXT!$INSTOBJEXT$ac_delim
43176 GENCAT!$GENCAT$ac_delim
43177 INTLOBJS!$INTLOBJS$ac_delim
43178 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
43179 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
43180 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
43181 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
43182 GNOME_LIBS!$GNOME_LIBS$ac_delim
43183 GNOME_DIR!$GNOME_DIR$ac_delim
43184 BAT_DIR!$BAT_DIR$ac_delim
43185 QWT_INC!$QWT_INC$ac_delim
43186 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
43187 _ACEOF
43188
43189   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43190     break
43191   elif $ac_last_try; then
43192     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43193 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43194    { (exit 1); exit 1; }; }
43195   else
43196     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43197   fi
43198 done
43199
43200 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43201 if test -n "$ac_eof"; then
43202   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43203   ac_eof=`expr $ac_eof + 1`
43204 fi
43205
43206 cat >>$CONFIG_STATUS <<_ACEOF
43207 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43209 _ACEOF
43210 sed '
43211 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43212 s/^/s,@/; s/!/@,|#_!!_#|/
43213 :n
43214 t n
43215 s/'"$ac_delim"'$/,g/; t
43216 s/$/\\/; p
43217 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43218 ' >>$CONFIG_STATUS <conf$$subs.sed
43219 rm -f conf$$subs.sed
43220 cat >>$CONFIG_STATUS <<_ACEOF
43221 CEOF$ac_eof
43222 _ACEOF
43223
43224
43225 ac_delim='%!_!# '
43226 for ac_last_try in false false false false false :; do
43227   cat >conf$$subs.sed <<_ACEOF
43228 QWT_LIB!$QWT_LIB$ac_delim
43229 QWT!$QWT$ac_delim
43230 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
43231 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
43232 WX_DIR!$WX_DIR$ac_delim
43233 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
43234 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
43235 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
43236 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
43237 STATIC_FD!$STATIC_FD$ac_delim
43238 STATIC_SD!$STATIC_SD$ac_delim
43239 STATIC_DIR!$STATIC_DIR$ac_delim
43240 STATIC_CONS!$STATIC_CONS$ac_delim
43241 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
43242 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
43243 ALL_DIRS!$ALL_DIRS$ac_delim
43244 DIRD_DIR!$DIRD_DIR$ac_delim
43245 DIR_TOOLS!$DIR_TOOLS$ac_delim
43246 STORED_DIR!$STORED_DIR$ac_delim
43247 CONS_INC!$CONS_INC$ac_delim
43248 CONS_OBJ!$CONS_OBJ$ac_delim
43249 CONS_SRC!$CONS_SRC$ac_delim
43250 CONS_LIBS!$CONS_LIBS$ac_delim
43251 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
43252 READLINE_SRC!$READLINE_SRC$ac_delim
43253 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
43254 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
43255 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
43256 OPENSSL_INC!$OPENSSL_INC$ac_delim
43257 working_dir!$working_dir$ac_delim
43258 archivedir!$archivedir$ac_delim
43259 scriptdir!$scriptdir$ac_delim
43260 plugindir!$plugindir$ac_delim
43261 dump_email!$dump_email$ac_delim
43262 job_email!$job_email$ac_delim
43263 smtp_host!$smtp_host$ac_delim
43264 piddir!$piddir$ac_delim
43265 subsysdir!$subsysdir$ac_delim
43266 baseport!$baseport$ac_delim
43267 dir_port!$dir_port$ac_delim
43268 fd_port!$fd_port$ac_delim
43269 sd_port!$sd_port$ac_delim
43270 dir_password!$dir_password$ac_delim
43271 fd_password!$fd_password$ac_delim
43272 sd_password!$sd_password$ac_delim
43273 mon_dir_password!$mon_dir_password$ac_delim
43274 mon_fd_password!$mon_fd_password$ac_delim
43275 mon_sd_password!$mon_sd_password$ac_delim
43276 db_name!$db_name$ac_delim
43277 db_user!$db_user$ac_delim
43278 db_password!$db_password$ac_delim
43279 db_port!$db_port$ac_delim
43280 dir_user!$dir_user$ac_delim
43281 dir_group!$dir_group$ac_delim
43282 sd_user!$sd_user$ac_delim
43283 sd_group!$sd_group$ac_delim
43284 fd_user!$fd_user$ac_delim
43285 fd_group!$fd_group$ac_delim
43286 SBINPERM!$SBINPERM$ac_delim
43287 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
43288 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
43289 SQL_BINDIR!$SQL_BINDIR$ac_delim
43290 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
43291 uncomment_dbi!$uncomment_dbi$ac_delim
43292 DB_PROG!$DB_PROG$ac_delim
43293 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
43294 cats!$cats$ac_delim
43295 DB_TYPE!$DB_TYPE$ac_delim
43296 GETCONF!$GETCONF$ac_delim
43297 XMKMF!$XMKMF$ac_delim
43298 X_CFLAGS!$X_CFLAGS$ac_delim
43299 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
43300 X_LIBS!$X_LIBS$ac_delim
43301 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
43302 LIBOBJS!$LIBOBJS$ac_delim
43303 FDLIBS!$FDLIBS$ac_delim
43304 DEBUG!$DEBUG$ac_delim
43305 DINCLUDE!$DINCLUDE$ac_delim
43306 DLIB!$DLIB$ac_delim
43307 DB_LIBS!$DB_LIBS$ac_delim
43308 WCFLAGS!$WCFLAGS$ac_delim
43309 WLDFLAGS!$WLDFLAGS$ac_delim
43310 WRAPLIBS!$WRAPLIBS$ac_delim
43311 OBJLIST!$OBJLIST$ac_delim
43312 hostname!$hostname$ac_delim
43313 TAPEDRIVE!$TAPEDRIVE$ac_delim
43314 PSCMD!$PSCMD$ac_delim
43315 WIN32!$WIN32$ac_delim
43316 MACOSX!$MACOSX$ac_delim
43317 DISTNAME!$DISTNAME$ac_delim
43318 DISTVER!$DISTVER$ac_delim
43319 LTLIBOBJS!$LTLIBOBJS$ac_delim
43320 _ACEOF
43321
43322   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
43323     break
43324   elif $ac_last_try; then
43325     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43326 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43327    { (exit 1); exit 1; }; }
43328   else
43329     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43330   fi
43331 done
43332
43333 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43334 if test -n "$ac_eof"; then
43335   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43336   ac_eof=`expr $ac_eof + 1`
43337 fi
43338
43339 cat >>$CONFIG_STATUS <<_ACEOF
43340 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
43341 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43342 _ACEOF
43343 sed '
43344 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43345 s/^/s,@/; s/!/@,|#_!!_#|/
43346 :n
43347 t n
43348 s/'"$ac_delim"'$/,g/; t
43349 s/$/\\/; p
43350 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43351 ' >>$CONFIG_STATUS <conf$$subs.sed
43352 rm -f conf$$subs.sed
43353 cat >>$CONFIG_STATUS <<_ACEOF
43354 :end
43355 s/|#_!!_#|//g
43356 CEOF$ac_eof
43357 _ACEOF
43358
43359
43360 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43361 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43362 # trailing colons and then remove the whole line if VPATH becomes empty
43363 # (actually we leave an empty line to preserve line numbers).
43364 if test "x$srcdir" = x.; then
43365   ac_vpsub='/^[  ]*VPATH[        ]*=/{
43366 s/:*\$(srcdir):*/:/
43367 s/:*\${srcdir}:*/:/
43368 s/:*@srcdir@:*/:/
43369 s/^\([^=]*=[     ]*\):*/\1/
43370 s/:*$//
43371 s/^[^=]*=[       ]*$//
43372 }'
43373 fi
43374
43375 cat >>$CONFIG_STATUS <<\_ACEOF
43376 fi # test -n "$CONFIG_FILES"
43377
43378
43379 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
43380 do
43381   case $ac_tag in
43382   :[FHLC]) ac_mode=$ac_tag; continue;;
43383   esac
43384   case $ac_mode$ac_tag in
43385   :[FHL]*:*);;
43386   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43387 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43388    { (exit 1); exit 1; }; };;
43389   :[FH]-) ac_tag=-:-;;
43390   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43391   esac
43392   ac_save_IFS=$IFS
43393   IFS=:
43394   set x $ac_tag
43395   IFS=$ac_save_IFS
43396   shift
43397   ac_file=$1
43398   shift
43399
43400   case $ac_mode in
43401   :L) ac_source=$1;;
43402   :[FH])
43403     ac_file_inputs=
43404     for ac_f
43405     do
43406       case $ac_f in
43407       -) ac_f="$tmp/stdin";;
43408       *) # Look for the file first in the build tree, then in the source tree
43409          # (if the path is not absolute).  The absolute path cannot be DOS-style,
43410          # because $ac_f cannot contain `:'.
43411          test -f "$ac_f" ||
43412            case $ac_f in
43413            [\\/$]*) false;;
43414            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43415            esac ||
43416            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43417 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43418    { (exit 1); exit 1; }; };;
43419       esac
43420       ac_file_inputs="$ac_file_inputs $ac_f"
43421     done
43422
43423     # Let's still pretend it is `configure' which instantiates (i.e., don't
43424     # use $as_me), people would be surprised to read:
43425     #    /* config.h.  Generated by config.status.  */
43426     configure_input="Generated from "`IFS=:
43427           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
43428     if test x"$ac_file" != x-; then
43429       configure_input="$ac_file.  $configure_input"
43430       { echo "$as_me:$LINENO: creating $ac_file" >&5
43431 echo "$as_me: creating $ac_file" >&6;}
43432     fi
43433
43434     case $ac_tag in
43435     *:-:* | *:-) cat >"$tmp/stdin";;
43436     esac
43437     ;;
43438   esac
43439
43440   ac_dir=`$as_dirname -- "$ac_file" ||
43441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43442          X"$ac_file" : 'X\(//\)[^/]' \| \
43443          X"$ac_file" : 'X\(//\)$' \| \
43444          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43445 echo X"$ac_file" |
43446     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43447             s//\1/
43448             q
43449           }
43450           /^X\(\/\/\)[^/].*/{
43451             s//\1/
43452             q
43453           }
43454           /^X\(\/\/\)$/{
43455             s//\1/
43456             q
43457           }
43458           /^X\(\/\).*/{
43459             s//\1/
43460             q
43461           }
43462           s/.*/./; q'`
43463   { as_dir="$ac_dir"
43464   case $as_dir in #(
43465   -*) as_dir=./$as_dir;;
43466   esac
43467   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43468     as_dirs=
43469     while :; do
43470       case $as_dir in #(
43471       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
43472       *) as_qdir=$as_dir;;
43473       esac
43474       as_dirs="'$as_qdir' $as_dirs"
43475       as_dir=`$as_dirname -- "$as_dir" ||
43476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43477          X"$as_dir" : 'X\(//\)[^/]' \| \
43478          X"$as_dir" : 'X\(//\)$' \| \
43479          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43480 echo X"$as_dir" |
43481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43482             s//\1/
43483             q
43484           }
43485           /^X\(\/\/\)[^/].*/{
43486             s//\1/
43487             q
43488           }
43489           /^X\(\/\/\)$/{
43490             s//\1/
43491             q
43492           }
43493           /^X\(\/\).*/{
43494             s//\1/
43495             q
43496           }
43497           s/.*/./; q'`
43498       test -d "$as_dir" && break
43499     done
43500     test -z "$as_dirs" || eval "mkdir $as_dirs"
43501   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43502 echo "$as_me: error: cannot create directory $as_dir" >&2;}
43503    { (exit 1); exit 1; }; }; }
43504   ac_builddir=.
43505
43506 case "$ac_dir" in
43507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43508 *)
43509   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43510   # A ".." for each directory in $ac_dir_suffix.
43511   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
43512   case $ac_top_builddir_sub in
43513   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43514   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43515   esac ;;
43516 esac
43517 ac_abs_top_builddir=$ac_pwd
43518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43519 # for backward compatibility:
43520 ac_top_builddir=$ac_top_build_prefix
43521
43522 case $srcdir in
43523   .)  # We are building in place.
43524     ac_srcdir=.
43525     ac_top_srcdir=$ac_top_builddir_sub
43526     ac_abs_top_srcdir=$ac_pwd ;;
43527   [\\/]* | ?:[\\/]* )  # Absolute name.
43528     ac_srcdir=$srcdir$ac_dir_suffix;
43529     ac_top_srcdir=$srcdir
43530     ac_abs_top_srcdir=$srcdir ;;
43531   *) # Relative name.
43532     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43533     ac_top_srcdir=$ac_top_build_prefix$srcdir
43534     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43535 esac
43536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43537
43538
43539   case $ac_mode in
43540   :F)
43541   #
43542   # CONFIG_FILE
43543   #
43544
43545   case $INSTALL in
43546   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43547   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43548   esac
43549 _ACEOF
43550
43551 cat >>$CONFIG_STATUS <<\_ACEOF
43552 # If the template does not know about datarootdir, expand it.
43553 # FIXME: This hack should be removed a few years after 2.60.
43554 ac_datarootdir_hack=; ac_datarootdir_seen=
43555
43556 case `sed -n '/datarootdir/ {
43557   p
43558   q
43559 }
43560 /@datadir@/p
43561 /@docdir@/p
43562 /@infodir@/p
43563 /@localedir@/p
43564 /@mandir@/p
43565 ' $ac_file_inputs` in
43566 *datarootdir*) ac_datarootdir_seen=yes;;
43567 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43568   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43569 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43570 _ACEOF
43571 cat >>$CONFIG_STATUS <<_ACEOF
43572   ac_datarootdir_hack='
43573   s&@datadir@&$datadir&g
43574   s&@docdir@&$docdir&g
43575   s&@infodir@&$infodir&g
43576   s&@localedir@&$localedir&g
43577   s&@mandir@&$mandir&g
43578     s&\\\${datarootdir}&$datarootdir&g' ;;
43579 esac
43580 _ACEOF
43581
43582 # Neutralize VPATH when `$srcdir' = `.'.
43583 # Shell code in configure.ac might set extrasub.
43584 # FIXME: do we really want to maintain this feature?
43585 cat >>$CONFIG_STATUS <<_ACEOF
43586   sed "$ac_vpsub
43587 $extrasub
43588 _ACEOF
43589 cat >>$CONFIG_STATUS <<\_ACEOF
43590 :t
43591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43592 s&@configure_input@&$configure_input&;t t
43593 s&@top_builddir@&$ac_top_builddir_sub&;t t
43594 s&@srcdir@&$ac_srcdir&;t t
43595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43596 s&@top_srcdir@&$ac_top_srcdir&;t t
43597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43598 s&@builddir@&$ac_builddir&;t t
43599 s&@abs_builddir@&$ac_abs_builddir&;t t
43600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43601 s&@INSTALL@&$ac_INSTALL&;t t
43602 $ac_datarootdir_hack
43603 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
43604
43605 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43606   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43607   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43608   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43609 which seems to be undefined.  Please make sure it is defined." >&5
43610 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43611 which seems to be undefined.  Please make sure it is defined." >&2;}
43612
43613   rm -f "$tmp/stdin"
43614   case $ac_file in
43615   -) cat "$tmp/out"; rm -f "$tmp/out";;
43616   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43617   esac
43618  ;;
43619   :H)
43620   #
43621   # CONFIG_HEADER
43622   #
43623 _ACEOF
43624
43625 # Transform confdefs.h into a sed script `conftest.defines', that
43626 # substitutes the proper values into config.h.in to produce config.h.
43627 rm -f conftest.defines conftest.tail
43628 # First, append a space to every undef/define line, to ease matching.
43629 echo 's/$/ /' >conftest.defines
43630 # Then, protect against being on the right side of a sed subst, or in
43631 # an unquoted here document, in config.status.  If some macros were
43632 # called several times there might be several #defines for the same
43633 # symbol, which is useless.  But do not sort them, since the last
43634 # AC_DEFINE must be honored.
43635 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43636 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43637 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43638 # PARAMS is the parameter list in the macro definition--in most cases, it's
43639 # just an empty string.
43640 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
43641 ac_dB='\\)[      (].*,\\1define\\2'
43642 ac_dC=' '
43643 ac_dD=' ,'
43644
43645 uniq confdefs.h |
43646   sed -n '
43647         t rset
43648         :rset
43649         s/^[     ]*#[    ]*define[       ][      ]*//
43650         t ok
43651         d
43652         :ok
43653         s/[\\&,]/\\&/g
43654         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43655         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43656   ' >>conftest.defines
43657
43658 # Remove the space that was appended to ease matching.
43659 # Then replace #undef with comments.  This is necessary, for
43660 # example, in the case of _POSIX_SOURCE, which is predefined and required
43661 # on some systems where configure will not decide to define it.
43662 # (The regexp can be short, since the line contains either #define or #undef.)
43663 echo 's/ $//
43664 s,^[     #]*u.*,/* & */,' >>conftest.defines
43665
43666 # Break up conftest.defines:
43667 ac_max_sed_lines=50
43668
43669 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43670 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43671 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43672 # et cetera.
43673 ac_in='$ac_file_inputs'
43674 ac_out='"$tmp/out1"'
43675 ac_nxt='"$tmp/out2"'
43676
43677 while :
43678 do
43679   # Write a here document:
43680     cat >>$CONFIG_STATUS <<_ACEOF
43681     # First, check the format of the line:
43682     cat >"\$tmp/defines.sed" <<\\CEOF
43683 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
43684 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
43685 b
43686 :def
43687 _ACEOF
43688   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43689   echo 'CEOF
43690     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43691   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43692   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43693   grep . conftest.tail >/dev/null || break
43694   rm -f conftest.defines
43695   mv conftest.tail conftest.defines
43696 done
43697 rm -f conftest.defines conftest.tail
43698
43699 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43700 cat >>$CONFIG_STATUS <<\_ACEOF
43701   if test x"$ac_file" != x-; then
43702     echo "/* $configure_input  */" >"$tmp/config.h"
43703     cat "$ac_result" >>"$tmp/config.h"
43704     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43705       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43706 echo "$as_me: $ac_file is unchanged" >&6;}
43707     else
43708       rm -f $ac_file
43709       mv "$tmp/config.h" $ac_file
43710     fi
43711   else
43712     echo "/* $configure_input  */"
43713     cat "$ac_result"
43714   fi
43715   rm -f "$tmp/out12"
43716  ;;
43717
43718   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43719 echo "$as_me: executing $ac_file commands" >&6;}
43720  ;;
43721   esac
43722
43723
43724   case $ac_file$ac_mode in
43725     "libtool":C)
43726
43727     # See if we are running on zsh, and set the options which allow our
43728     # commands through without removal of \ escapes.
43729     if test -n "${ZSH_VERSION+set}" ; then
43730       setopt NO_GLOB_SUBST
43731     fi
43732
43733     cfgfile="${ofile}T"
43734     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43735     $RM "$cfgfile"
43736
43737     cat <<_LT_EOF >> "$cfgfile"
43738 #! $SHELL
43739
43740 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43741 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43743 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43744 #
43745 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43746 #                 2006, 2007, 2008 Free Software Foundation, Inc.
43747 #   Written by Gordon Matzigkeit, 1996
43748 #
43749 #   This file is part of GNU Libtool.
43750 #
43751 # GNU Libtool is free software; you can redistribute it and/or
43752 # modify it under the terms of the GNU General Public License as
43753 # published by the Free Software Foundation; either version 2 of
43754 # the License, or (at your option) any later version.
43755 #
43756 # As a special exception to the GNU General Public License,
43757 # if you distribute this file as part of a program or library that
43758 # is built using GNU Libtool, you may include this file under the
43759 # same distribution terms that you use for the rest of that program.
43760 #
43761 # GNU Libtool is distributed in the hope that it will be useful,
43762 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43763 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43764 # GNU General Public License for more details.
43765 #
43766 # You should have received a copy of the GNU General Public License
43767 # along with GNU Libtool; see the file COPYING.  If not, a copy
43768 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43769 # obtained by writing to the Free Software Foundation, Inc.,
43770 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43771
43772
43773 # The names of the tagged configurations supported by this script.
43774 available_tags="CXX "
43775
43776 # ### BEGIN LIBTOOL CONFIG
43777
43778 # Which release of libtool.m4 was used?
43779 macro_version=$macro_version
43780 macro_revision=$macro_revision
43781
43782 # Whether or not to build shared libraries.
43783 build_libtool_libs=$enable_shared
43784
43785 # Whether or not to build static libraries.
43786 build_old_libs=$enable_static
43787
43788 # What type of objects to build.
43789 pic_mode=$pic_mode
43790
43791 # Whether or not to optimize for fast installation.
43792 fast_install=$enable_fast_install
43793
43794 # The host system.
43795 host_alias=$host_alias
43796 host=$host
43797 host_os=$host_os
43798
43799 # The build system.
43800 build_alias=$build_alias
43801 build=$build
43802 build_os=$build_os
43803
43804 # A sed program that does not truncate output.
43805 SED=$lt_SED
43806
43807 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43808 Xsed="\$SED -e 1s/^X//"
43809
43810 # A grep program that handles long lines.
43811 GREP=$lt_GREP
43812
43813 # An ERE matcher.
43814 EGREP=$lt_EGREP
43815
43816 # A literal string matcher.
43817 FGREP=$lt_FGREP
43818
43819 # A BSD- or MS-compatible name lister.
43820 NM=$lt_NM
43821
43822 # Whether we need soft or hard links.
43823 LN_S=$lt_LN_S
43824
43825 # What is the maximum length of a command?
43826 max_cmd_len=$max_cmd_len
43827
43828 # Object file suffix (normally "o").
43829 objext=$ac_objext
43830
43831 # Executable file suffix (normally "").
43832 exeext=$exeext
43833
43834 # whether the shell understands "unset".
43835 lt_unset=$lt_unset
43836
43837 # turn spaces into newlines.
43838 SP2NL=$lt_lt_SP2NL
43839
43840 # turn newlines into spaces.
43841 NL2SP=$lt_lt_NL2SP
43842
43843 # How to create reloadable object files.
43844 reload_flag=$lt_reload_flag
43845 reload_cmds=$lt_reload_cmds
43846
43847 # An object symbol dumper.
43848 OBJDUMP=$lt_OBJDUMP
43849
43850 # Method to check whether dependent libraries are shared objects.
43851 deplibs_check_method=$lt_deplibs_check_method
43852
43853 # Command to use when deplibs_check_method == "file_magic".
43854 file_magic_cmd=$lt_file_magic_cmd
43855
43856 # The archiver.
43857 AR=$lt_AR
43858 AR_FLAGS=$lt_AR_FLAGS
43859
43860 # A symbol stripping program.
43861 STRIP=$lt_STRIP
43862
43863 # Commands used to install an old-style archive.
43864 RANLIB=$lt_RANLIB
43865 old_postinstall_cmds=$lt_old_postinstall_cmds
43866 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43867
43868 # A C compiler.
43869 LTCC=$lt_CC
43870
43871 # LTCC compiler flags.
43872 LTCFLAGS=$lt_CFLAGS
43873
43874 # Take the output of nm and produce a listing of raw symbols and C names.
43875 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43876
43877 # Transform the output of nm in a proper C declaration.
43878 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43879
43880 # Transform the output of nm in a C name address pair.
43881 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43882
43883 # Transform the output of nm in a C name address pair when lib prefix is needed.
43884 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43885
43886 # The name of the directory that contains temporary libtool files.
43887 objdir=$objdir
43888
43889 # Shell to use when invoking shell scripts.
43890 SHELL=$lt_SHELL
43891
43892 # An echo program that does not interpret backslashes.
43893 ECHO=$lt_ECHO
43894
43895 # Used to examine libraries when file_magic_cmd begins with "file".
43896 MAGIC_CMD=$MAGIC_CMD
43897
43898 # Must we lock files when doing compilation?
43899 need_locks=$lt_need_locks
43900
43901 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43902 DSYMUTIL=$lt_DSYMUTIL
43903
43904 # Tool to change global to local symbols on Mac OS X.
43905 NMEDIT=$lt_NMEDIT
43906
43907 # Tool to manipulate fat objects and archives on Mac OS X.
43908 LIPO=$lt_LIPO
43909
43910 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43911 OTOOL=$lt_OTOOL
43912
43913 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43914 OTOOL64=$lt_OTOOL64
43915
43916 # Old archive suffix (normally "a").
43917 libext=$libext
43918
43919 # Shared library suffix (normally ".so").
43920 shrext_cmds=$lt_shrext_cmds
43921
43922 # The commands to extract the exported symbol list from a shared archive.
43923 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43924
43925 # Variables whose values should be saved in libtool wrapper scripts and
43926 # restored at link time.
43927 variables_saved_for_relink=$lt_variables_saved_for_relink
43928
43929 # Do we need the "lib" prefix for modules?
43930 need_lib_prefix=$need_lib_prefix
43931
43932 # Do we need a version for libraries?
43933 need_version=$need_version
43934
43935 # Library versioning type.
43936 version_type=$version_type
43937
43938 # Shared library runtime path variable.
43939 runpath_var=$runpath_var
43940
43941 # Shared library path variable.
43942 shlibpath_var=$shlibpath_var
43943
43944 # Is shlibpath searched before the hard-coded library search path?
43945 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43946
43947 # Format of library name prefix.
43948 libname_spec=$lt_libname_spec
43949
43950 # List of archive names.  First name is the real one, the rest are links.
43951 # The last name is the one that the linker finds with -lNAME
43952 library_names_spec=$lt_library_names_spec
43953
43954 # The coded name of the library, if different from the real name.
43955 soname_spec=$lt_soname_spec
43956
43957 # Command to use after installation of a shared archive.
43958 postinstall_cmds=$lt_postinstall_cmds
43959
43960 # Command to use after uninstallation of a shared archive.
43961 postuninstall_cmds=$lt_postuninstall_cmds
43962
43963 # Commands used to finish a libtool library installation in a directory.
43964 finish_cmds=$lt_finish_cmds
43965
43966 # As "finish_cmds", except a single script fragment to be evaled but
43967 # not shown.
43968 finish_eval=$lt_finish_eval
43969
43970 # Whether we should hardcode library paths into libraries.
43971 hardcode_into_libs=$hardcode_into_libs
43972
43973 # Compile-time system search path for libraries.
43974 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43975
43976 # Run-time system search path for libraries.
43977 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43978
43979 # Whether dlopen is supported.
43980 dlopen_support=$enable_dlopen
43981
43982 # Whether dlopen of programs is supported.
43983 dlopen_self=$enable_dlopen_self
43984
43985 # Whether dlopen of statically linked programs is supported.
43986 dlopen_self_static=$enable_dlopen_self_static
43987
43988 # Commands to strip libraries.
43989 old_striplib=$lt_old_striplib
43990 striplib=$lt_striplib
43991
43992
43993 # The linker used to build libraries.
43994 LD=$lt_LD
43995
43996 # Commands used to build an old-style archive.
43997 old_archive_cmds=$lt_old_archive_cmds
43998
43999 # A language specific compiler.
44000 CC=$lt_compiler
44001
44002 # Is the compiler the GNU compiler?
44003 with_gcc=$GCC
44004
44005 # Compiler flag to turn off builtin functions.
44006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
44007
44008 # How to pass a linker flag through the compiler.
44009 wl=$lt_lt_prog_compiler_wl
44010
44011 # Additional compiler flags for building library objects.
44012 pic_flag=$lt_lt_prog_compiler_pic
44013
44014 # Compiler flag to prevent dynamic linking.
44015 link_static_flag=$lt_lt_prog_compiler_static
44016
44017 # Does compiler simultaneously support -c and -o options?
44018 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
44019
44020 # Whether or not to add -lc for building shared libraries.
44021 build_libtool_need_lc=$archive_cmds_need_lc
44022
44023 # Whether or not to disallow shared libs when runtime libs are static.
44024 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
44025
44026 # Compiler flag to allow reflexive dlopens.
44027 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
44028
44029 # Compiler flag to generate shared objects directly from archives.
44030 whole_archive_flag_spec=$lt_whole_archive_flag_spec
44031
44032 # Whether the compiler copes with passing no objects directly.
44033 compiler_needs_object=$lt_compiler_needs_object
44034
44035 # Create an old-style archive from a shared archive.
44036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
44037
44038 # Create a temporary old-style archive to link instead of a shared archive.
44039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
44040
44041 # Commands used to build a shared archive.
44042 archive_cmds=$lt_archive_cmds
44043 archive_expsym_cmds=$lt_archive_expsym_cmds
44044
44045 # Commands used to build a loadable module if different from building
44046 # a shared archive.
44047 module_cmds=$lt_module_cmds
44048 module_expsym_cmds=$lt_module_expsym_cmds
44049
44050 # Whether we are building with GNU ld or not.
44051 with_gnu_ld=$lt_with_gnu_ld
44052
44053 # Flag that allows shared libraries with undefined symbols to be built.
44054 allow_undefined_flag=$lt_allow_undefined_flag
44055
44056 # Flag that enforces no undefined symbols.
44057 no_undefined_flag=$lt_no_undefined_flag
44058
44059 # Flag to hardcode \$libdir into a binary during linking.
44060 # This must work even if \$libdir does not exist
44061 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44062
44063 # If ld is used when linking, flag to hardcode \$libdir into a binary
44064 # during linking.  This must work even if \$libdir does not exist.
44065 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
44066
44067 # Whether we need a single "-rpath" flag with a separated argument.
44068 hardcode_libdir_separator=$lt_hardcode_libdir_separator
44069
44070 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44071 # DIR into the resulting binary.
44072 hardcode_direct=$hardcode_direct
44073
44074 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44075 # DIR into the resulting binary and the resulting library dependency is
44076 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44077 # library is relocated.
44078 hardcode_direct_absolute=$hardcode_direct_absolute
44079
44080 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44081 # into the resulting binary.
44082 hardcode_minus_L=$hardcode_minus_L
44083
44084 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44085 # into the resulting binary.
44086 hardcode_shlibpath_var=$hardcode_shlibpath_var
44087
44088 # Set to "yes" if building a shared library automatically hardcodes DIR
44089 # into the library and all subsequent libraries and executables linked
44090 # against it.
44091 hardcode_automatic=$hardcode_automatic
44092
44093 # Set to yes if linker adds runtime paths of dependent libraries
44094 # to runtime path list.
44095 inherit_rpath=$inherit_rpath
44096
44097 # Whether libtool must link a program against all its dependency libraries.
44098 link_all_deplibs=$link_all_deplibs
44099
44100 # Fix the shell variable \$srcfile for the compiler.
44101 fix_srcfile_path=$lt_fix_srcfile_path
44102
44103 # Set to "yes" if exported symbols are required.
44104 always_export_symbols=$always_export_symbols
44105
44106 # The commands to list exported symbols.
44107 export_symbols_cmds=$lt_export_symbols_cmds
44108
44109 # Symbols that should not be listed in the preloaded symbols.
44110 exclude_expsyms=$lt_exclude_expsyms
44111
44112 # Symbols that must always be exported.
44113 include_expsyms=$lt_include_expsyms
44114
44115 # Commands necessary for linking programs (against libraries) with templates.
44116 prelink_cmds=$lt_prelink_cmds
44117
44118 # Specify filename containing input files.
44119 file_list_spec=$lt_file_list_spec
44120
44121 # How to hardcode a shared library path into an executable.
44122 hardcode_action=$hardcode_action
44123
44124 # The directories searched by this compiler when creating a shared library.
44125 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
44126
44127 # Dependencies to place before and after the objects being linked to
44128 # create a shared library.
44129 predep_objects=$lt_predep_objects
44130 postdep_objects=$lt_postdep_objects
44131 predeps=$lt_predeps
44132 postdeps=$lt_postdeps
44133
44134 # The library search path used internally by the compiler when linking
44135 # a shared library.
44136 compiler_lib_search_path=$lt_compiler_lib_search_path
44137
44138 # ### END LIBTOOL CONFIG
44139
44140 _LT_EOF
44141
44142   case $host_os in
44143   aix3*)
44144     cat <<\_LT_EOF >> "$cfgfile"
44145 # AIX sometimes has problems with the GCC collect2 program.  For some
44146 # reason, if we set the COLLECT_NAMES environment variable, the problems
44147 # vanish in a puff of smoke.
44148 if test "X${COLLECT_NAMES+set}" != Xset; then
44149   COLLECT_NAMES=
44150   export COLLECT_NAMES
44151 fi
44152 _LT_EOF
44153     ;;
44154   esac
44155
44156
44157 ltmain="$ac_aux_dir/ltmain.sh"
44158
44159
44160   # We use sed instead of cat because bash on DJGPP gets confused if
44161   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
44162   # text mode, it properly converts lines to CR/LF.  This bash problem
44163   # is reportedly fixed, but why not run on old versions too?
44164   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
44165     || (rm -f "$cfgfile"; exit 1)
44166
44167   case $xsi_shell in
44168   yes)
44169     cat << \_LT_EOF >> "$cfgfile"
44170
44171 # func_dirname file append nondir_replacement
44172 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
44173 # otherwise set result to NONDIR_REPLACEMENT.
44174 func_dirname ()
44175 {
44176   case ${1} in
44177     */*) func_dirname_result="${1%/*}${2}" ;;
44178     *  ) func_dirname_result="${3}" ;;
44179   esac
44180 }
44181
44182 # func_basename file
44183 func_basename ()
44184 {
44185   func_basename_result="${1##*/}"
44186 }
44187
44188 # func_dirname_and_basename file append nondir_replacement
44189 # perform func_basename and func_dirname in a single function
44190 # call:
44191 #   dirname:  Compute the dirname of FILE.  If nonempty,
44192 #             add APPEND to the result, otherwise set result
44193 #             to NONDIR_REPLACEMENT.
44194 #             value returned in "$func_dirname_result"
44195 #   basename: Compute filename of FILE.
44196 #             value retuned in "$func_basename_result"
44197 # Implementation must be kept synchronized with func_dirname
44198 # and func_basename. For efficiency, we do not delegate to
44199 # those functions but instead duplicate the functionality here.
44200 func_dirname_and_basename ()
44201 {
44202   case ${1} in
44203     */*) func_dirname_result="${1%/*}${2}" ;;
44204     *  ) func_dirname_result="${3}" ;;
44205   esac
44206   func_basename_result="${1##*/}"
44207 }
44208
44209 # func_stripname prefix suffix name
44210 # strip PREFIX and SUFFIX off of NAME.
44211 # PREFIX and SUFFIX must not contain globbing or regex special
44212 # characters, hashes, percent signs, but SUFFIX may contain a leading
44213 # dot (in which case that matches only a dot).
44214 func_stripname ()
44215 {
44216   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
44217   # positional parameters, so assign one to ordinary parameter first.
44218   func_stripname_result=${3}
44219   func_stripname_result=${func_stripname_result#"${1}"}
44220   func_stripname_result=${func_stripname_result%"${2}"}
44221 }
44222
44223 # func_opt_split
44224 func_opt_split ()
44225 {
44226   func_opt_split_opt=${1%%=*}
44227   func_opt_split_arg=${1#*=}
44228 }
44229
44230 # func_lo2o object
44231 func_lo2o ()
44232 {
44233   case ${1} in
44234     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
44235     *)    func_lo2o_result=${1} ;;
44236   esac
44237 }
44238
44239 # func_xform libobj-or-source
44240 func_xform ()
44241 {
44242   func_xform_result=${1%.*}.lo
44243 }
44244
44245 # func_arith arithmetic-term...
44246 func_arith ()
44247 {
44248   func_arith_result=$(( $* ))
44249 }
44250
44251 # func_len string
44252 # STRING may not start with a hyphen.
44253 func_len ()
44254 {
44255   func_len_result=${#1}
44256 }
44257
44258 _LT_EOF
44259     ;;
44260   *) # Bourne compatible functions.
44261     cat << \_LT_EOF >> "$cfgfile"
44262
44263 # func_dirname file append nondir_replacement
44264 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
44265 # otherwise set result to NONDIR_REPLACEMENT.
44266 func_dirname ()
44267 {
44268   # Extract subdirectory from the argument.
44269   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
44270   if test "X$func_dirname_result" = "X${1}"; then
44271     func_dirname_result="${3}"
44272   else
44273     func_dirname_result="$func_dirname_result${2}"
44274   fi
44275 }
44276
44277 # func_basename file
44278 func_basename ()
44279 {
44280   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
44281 }
44282
44283
44284 # func_stripname prefix suffix name
44285 # strip PREFIX and SUFFIX off of NAME.
44286 # PREFIX and SUFFIX must not contain globbing or regex special
44287 # characters, hashes, percent signs, but SUFFIX may contain a leading
44288 # dot (in which case that matches only a dot).
44289 # func_strip_suffix prefix name
44290 func_stripname ()
44291 {
44292   case ${2} in
44293     .*) func_stripname_result=`$ECHO "X${3}" \
44294            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
44295     *)  func_stripname_result=`$ECHO "X${3}" \
44296            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
44297   esac
44298 }
44299
44300 # sed scripts:
44301 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
44302 my_sed_long_arg='1s/^-[^=]*=//'
44303
44304 # func_opt_split
44305 func_opt_split ()
44306 {
44307   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
44308   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
44309 }
44310
44311 # func_lo2o object
44312 func_lo2o ()
44313 {
44314   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
44315 }
44316
44317 # func_xform libobj-or-source
44318 func_xform ()
44319 {
44320   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
44321 }
44322
44323 # func_arith arithmetic-term...
44324 func_arith ()
44325 {
44326   func_arith_result=`expr "$@"`
44327 }
44328
44329 # func_len string
44330 # STRING may not start with a hyphen.
44331 func_len ()
44332 {
44333   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
44334 }
44335
44336 _LT_EOF
44337 esac
44338
44339 case $lt_shell_append in
44340   yes)
44341     cat << \_LT_EOF >> "$cfgfile"
44342
44343 # func_append var value
44344 # Append VALUE to the end of shell variable VAR.
44345 func_append ()
44346 {
44347   eval "$1+=\$2"
44348 }
44349 _LT_EOF
44350     ;;
44351   *)
44352     cat << \_LT_EOF >> "$cfgfile"
44353
44354 # func_append var value
44355 # Append VALUE to the end of shell variable VAR.
44356 func_append ()
44357 {
44358   eval "$1=\$$1\$2"
44359 }
44360
44361 _LT_EOF
44362     ;;
44363   esac
44364
44365
44366   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
44367     || (rm -f "$cfgfile"; exit 1)
44368
44369   mv -f "$cfgfile" "$ofile" ||
44370     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44371   chmod +x "$ofile"
44372
44373
44374     cat <<_LT_EOF >> "$ofile"
44375
44376 # ### BEGIN LIBTOOL TAG CONFIG: CXX
44377
44378 # The linker used to build libraries.
44379 LD=$lt_LD_CXX
44380
44381 # Commands used to build an old-style archive.
44382 old_archive_cmds=$lt_old_archive_cmds_CXX
44383
44384 # A language specific compiler.
44385 CC=$lt_compiler_CXX
44386
44387 # Is the compiler the GNU compiler?
44388 with_gcc=$GCC_CXX
44389
44390 # Compiler flag to turn off builtin functions.
44391 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
44392
44393 # How to pass a linker flag through the compiler.
44394 wl=$lt_lt_prog_compiler_wl_CXX
44395
44396 # Additional compiler flags for building library objects.
44397 pic_flag=$lt_lt_prog_compiler_pic_CXX
44398
44399 # Compiler flag to prevent dynamic linking.
44400 link_static_flag=$lt_lt_prog_compiler_static_CXX
44401
44402 # Does compiler simultaneously support -c and -o options?
44403 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
44404
44405 # Whether or not to add -lc for building shared libraries.
44406 build_libtool_need_lc=$archive_cmds_need_lc_CXX
44407
44408 # Whether or not to disallow shared libs when runtime libs are static.
44409 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
44410
44411 # Compiler flag to allow reflexive dlopens.
44412 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
44413
44414 # Compiler flag to generate shared objects directly from archives.
44415 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
44416
44417 # Whether the compiler copes with passing no objects directly.
44418 compiler_needs_object=$lt_compiler_needs_object_CXX
44419
44420 # Create an old-style archive from a shared archive.
44421 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
44422
44423 # Create a temporary old-style archive to link instead of a shared archive.
44424 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
44425
44426 # Commands used to build a shared archive.
44427 archive_cmds=$lt_archive_cmds_CXX
44428 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
44429
44430 # Commands used to build a loadable module if different from building
44431 # a shared archive.
44432 module_cmds=$lt_module_cmds_CXX
44433 module_expsym_cmds=$lt_module_expsym_cmds_CXX
44434
44435 # Whether we are building with GNU ld or not.
44436 with_gnu_ld=$lt_with_gnu_ld_CXX
44437
44438 # Flag that allows shared libraries with undefined symbols to be built.
44439 allow_undefined_flag=$lt_allow_undefined_flag_CXX
44440
44441 # Flag that enforces no undefined symbols.
44442 no_undefined_flag=$lt_no_undefined_flag_CXX
44443
44444 # Flag to hardcode \$libdir into a binary during linking.
44445 # This must work even if \$libdir does not exist
44446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
44447
44448 # If ld is used when linking, flag to hardcode \$libdir into a binary
44449 # during linking.  This must work even if \$libdir does not exist.
44450 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
44451
44452 # Whether we need a single "-rpath" flag with a separated argument.
44453 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
44454
44455 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44456 # DIR into the resulting binary.
44457 hardcode_direct=$hardcode_direct_CXX
44458
44459 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44460 # DIR into the resulting binary and the resulting library dependency is
44461 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44462 # library is relocated.
44463 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
44464
44465 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44466 # into the resulting binary.
44467 hardcode_minus_L=$hardcode_minus_L_CXX
44468
44469 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44470 # into the resulting binary.
44471 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
44472
44473 # Set to "yes" if building a shared library automatically hardcodes DIR
44474 # into the library and all subsequent libraries and executables linked
44475 # against it.
44476 hardcode_automatic=$hardcode_automatic_CXX
44477
44478 # Set to yes if linker adds runtime paths of dependent libraries
44479 # to runtime path list.
44480 inherit_rpath=$inherit_rpath_CXX
44481
44482 # Whether libtool must link a program against all its dependency libraries.
44483 link_all_deplibs=$link_all_deplibs_CXX
44484
44485 # Fix the shell variable \$srcfile for the compiler.
44486 fix_srcfile_path=$lt_fix_srcfile_path_CXX
44487
44488 # Set to "yes" if exported symbols are required.
44489 always_export_symbols=$always_export_symbols_CXX
44490
44491 # The commands to list exported symbols.
44492 export_symbols_cmds=$lt_export_symbols_cmds_CXX
44493
44494 # Symbols that should not be listed in the preloaded symbols.
44495 exclude_expsyms=$lt_exclude_expsyms_CXX
44496
44497 # Symbols that must always be exported.
44498 include_expsyms=$lt_include_expsyms_CXX
44499
44500 # Commands necessary for linking programs (against libraries) with templates.
44501 prelink_cmds=$lt_prelink_cmds_CXX
44502
44503 # Specify filename containing input files.
44504 file_list_spec=$lt_file_list_spec_CXX
44505
44506 # How to hardcode a shared library path into an executable.
44507 hardcode_action=$hardcode_action_CXX
44508
44509 # The directories searched by this compiler when creating a shared library.
44510 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
44511
44512 # Dependencies to place before and after the objects being linked to
44513 # create a shared library.
44514 predep_objects=$lt_predep_objects_CXX
44515 postdep_objects=$lt_postdep_objects_CXX
44516 predeps=$lt_predeps_CXX
44517 postdeps=$lt_postdeps_CXX
44518
44519 # The library search path used internally by the compiler when linking
44520 # a shared library.
44521 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
44522
44523 # ### END LIBTOOL TAG CONFIG: CXX
44524 _LT_EOF
44525
44526  ;;
44527     "default-1":C)
44528     for ac_file in $CONFIG_FILES; do
44529       # Support "outfile[:infile[:infile...]]"
44530       case "$ac_file" in
44531         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44532       esac
44533       # PO directories have a Makefile.in generated from Makefile.in.in.
44534       case "$ac_file" in */Makefile.in)
44535         # Adjust a relative srcdir.
44536         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44537         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44538         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44539         # In autoconf-2.13 it is called $ac_given_srcdir.
44540         # In autoconf-2.50 it is called $srcdir.
44541         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44542         case "$ac_given_srcdir" in
44543           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44544           /*) top_srcdir="$ac_given_srcdir" ;;
44545           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
44546         esac
44547         # Treat a directory as a PO directory if and only if it has a
44548         # POTFILES.in file. This allows packages to have multiple PO
44549         # directories under different names or in different locations.
44550         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44551           rm -f "$ac_dir/POTFILES"
44552           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44553           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44554           POMAKEFILEDEPS="POTFILES.in"
44555           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44556           # on $ac_dir but don't depend on user-specified configuration
44557           # parameters.
44558           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44559             # The LINGUAS file contains the set of available languages.
44560             if test -n "$OBSOLETE_ALL_LINGUAS"; then
44561               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44562             fi
44563             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44564             # Hide the ALL_LINGUAS assigment from automake.
44565             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44566             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44567           else
44568             # The set of available languages was given in configure.in.
44569             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44570           fi
44571           # Compute POFILES
44572           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44573           # Compute UPDATEPOFILES
44574           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44575           # Compute DUMMYPOFILES
44576           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44577           # Compute GMOFILES
44578           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44579           case "$ac_given_srcdir" in
44580             .) srcdirpre= ;;
44581             *) srcdirpre='$(srcdir)/' ;;
44582           esac
44583           POFILES=
44584           UPDATEPOFILES=
44585           DUMMYPOFILES=
44586           GMOFILES=
44587           for lang in $ALL_LINGUAS; do
44588             POFILES="$POFILES $srcdirpre$lang.po"
44589             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44590             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44591             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44592           done
44593           # CATALOGS depends on both $ac_dir and the user's LINGUAS
44594           # environment variable.
44595           INST_LINGUAS=
44596           if test -n "$ALL_LINGUAS"; then
44597             for presentlang in $ALL_LINGUAS; do
44598               useit=no
44599               if test "%UNSET%" != "$LINGUAS"; then
44600                 desiredlanguages="$LINGUAS"
44601               else
44602                 desiredlanguages="$ALL_LINGUAS"
44603               fi
44604               for desiredlang in $desiredlanguages; do
44605                 # Use the presentlang catalog if desiredlang is
44606                 #   a. equal to presentlang, or
44607                 #   b. a variant of presentlang (because in this case,
44608                 #      presentlang can be used as a fallback for messages
44609                 #      which are not translated in the desiredlang catalog).
44610                 case "$desiredlang" in
44611                   "$presentlang"*) useit=yes;;
44612                 esac
44613               done
44614               if test $useit = yes; then
44615                 INST_LINGUAS="$INST_LINGUAS $presentlang"
44616               fi
44617             done
44618           fi
44619           CATALOGS=
44620           if test -n "$INST_LINGUAS"; then
44621             for lang in $INST_LINGUAS; do
44622               CATALOGS="$CATALOGS $lang.gmo"
44623             done
44624           fi
44625           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44626           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"
44627           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44628             if test -f "$f"; then
44629               case "$f" in
44630                 *.orig | *.bak | *~) ;;
44631                 *) cat "$f" >> "$ac_dir/Makefile" ;;
44632               esac
44633             fi
44634           done
44635         fi
44636         ;;
44637       esac
44638     done ;;
44639     "default":C)
44640  ;;
44641
44642   esac
44643 done # for ac_tag
44644
44645
44646 { (exit 0); exit 0; }
44647 _ACEOF
44648 chmod +x $CONFIG_STATUS
44649 ac_clean_files=$ac_clean_files_save
44650
44651
44652 # configure is writing to config.log, and then calls config.status.
44653 # config.status does its own redirection, appending to config.log.
44654 # Unfortunately, on DOS this fails, as config.log is still kept open
44655 # by configure, so config.status won't be able to write to it; its
44656 # output is simply discarded.  So we exec the FD to /dev/null,
44657 # effectively closing config.log, so it can be properly (re)opened and
44658 # appended to by config.status.  When coming back to configure, we
44659 # need to make the FD available again.
44660 if test "$no_create" != yes; then
44661   ac_cs_success=:
44662   ac_config_status_args=
44663   test "$silent" = yes &&
44664     ac_config_status_args="$ac_config_status_args --quiet"
44665   exec 5>/dev/null
44666   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44667   exec 5>>config.log
44668   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44669   # would make configure fail if this is the last instruction.
44670   $ac_cs_success || { (exit 1); exit 1; }
44671 fi
44672
44673
44674 if test "${support_bat}" = "yes" ; then
44675    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44676       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44677       exit 1
44678    fi
44679
44680    QMAKEBIN="qmake"
44681
44682    if test "x$QMAKEQT4" != "xnone"; then
44683        QMAKEBIN=qmake-qt4
44684    fi
44685
44686    cd src/qt-console
44687    chmod 755 install_conf_file build-depkgs-qt-console
44688    echo "Creating bat Makefile"
44689    $QMAKEBIN
44690    make clean
44691    cd ${BUILD_DIR}
44692 fi
44693
44694 if test X"$GCC" = "Xyes" ; then
44695   echo "Doing make of dependencies"
44696   ${MAKE:-make} depend
44697 fi
44698
44699 cd scripts
44700 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44701 chmod 755 dvd-handler dvd-simulator
44702 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44703 cd ..
44704
44705 c=updatedb
44706 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
44707 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
44708
44709 c=src/cats
44710
44711 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
44712 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
44713
44714 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
44715 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
44716
44717 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
44718 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
44719
44720 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
44721 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
44722
44723 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
44724 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
44725
44726 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
44727 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
44728
44729 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44730 chmod 755 $c/sqlite
44731 chmod 755 $c/mysql
44732
44733 chmod 755 src/win32/build-depkgs-mingw32
44734
44735 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44736    largefile_support="yes"
44737 fi
44738
44739 if test X"$GCC" = "Xyes" ; then
44740                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44741    if test "x${CCVERSION}" = "x" ; then
44742       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44743    fi
44744    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44745    if test x"${CXXVERSION}" = x ; then
44746       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44747    fi
44748 fi
44749
44750 # clean up any old junk
44751 echo " "
44752 echo "Cleaning up"
44753 echo " "
44754 make clean
44755
44756 if test "x${db_type}" = "xInternal" ; then
44757    echo " "
44758    echo " "
44759    echo "You have not specified either --enable-client-only or one of the"
44760    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44761    echo "  This is not permitted. Please reconfigure."
44762    echo " "
44763    echo "Aborting the configuration ..."
44764    echo " "
44765    echo " "
44766    exit 1
44767 fi
44768
44769 echo "
44770 Configuration on `date`:
44771
44772    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44773    Bacula version:          ${BACULA} ${VERSION} (${DATE})
44774    Source code location:    ${srcdir}
44775    Install binaries:        ${sbindir}
44776    Install libraries:       ${libdir}
44777    Install config files:    ${sysconfdir}
44778    Scripts directory:       ${scriptdir}
44779    Archive directory:       ${archivedir}
44780    Working directory:       ${working_dir}
44781    PID directory:           ${piddir}
44782    Subsys directory:        ${subsysdir}
44783    Man directory:           ${mandir}
44784    Data directory:          ${datarootdir}
44785    Plugin directory:        ${plugindir}
44786    C Compiler:              ${CC} ${CCVERSION}
44787    C++ Compiler:            ${CXX} ${CXXVERSION}
44788    Compiler flags:          ${WCFLAGS} ${CFLAGS}
44789    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
44790    Libraries:               ${LIBS}
44791    Statically Linked Tools: ${support_static_tools}
44792    Statically Linked FD:    ${support_static_fd}
44793    Statically Linked SD:    ${support_static_sd}
44794    Statically Linked DIR:   ${support_static_dir}
44795    Statically Linked CONS:  ${support_static_cons}
44796    Database type:           ${db_type}
44797    Database port:           ${db_port}
44798    Database lib:            ${DB_LIBS}
44799    Database name:           ${db_name}
44800    Database user:           ${db_user}
44801
44802    Job Output Email:        ${job_email}
44803    Traceback Email:         ${dump_email}
44804    SMTP Host Address:       ${smtp_host}
44805
44806    Director Port:           ${dir_port}
44807    File daemon Port:        ${fd_port}
44808    Storage daemon Port:     ${sd_port}
44809
44810    Director User:           ${dir_user}
44811    Director Group:          ${dir_group}
44812    Storage Daemon User:     ${sd_user}
44813    Storage DaemonGroup:     ${sd_group}
44814    File Daemon User:        ${fd_user}
44815    File Daemon Group:       ${fd_group}
44816
44817    SQL binaries Directory   ${SQL_BINDIR}
44818
44819    Large file support:      $largefile_support
44820    Bacula conio support:    ${got_conio} ${CONS_LIBS}
44821    readline support:        ${got_readline} ${PRTREADLINE_SRC}
44822    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
44823    TLS support:             ${support_tls}
44824    Encryption support:      ${support_crypto}
44825    ZLIB support:            ${have_zlib}
44826    enable-smartalloc:       ${support_smartalloc}
44827    enable-lockmgr:          ${support_lockmgr}
44828    bat support:             ${support_bat} ${QWT_LDFLAGS}
44829    enable-gnome:            ${support_gnome} ${gnome_version}
44830    enable-bwx-console:      ${support_wx_console} ${wx_version}
44831    enable-tray-monitor:     ${support_tray_monitor}
44832    client-only:             ${build_client_only}
44833    build-dird:              ${build_dird}
44834    build-stored:            ${build_stored}
44835    ACL support:             ${have_acl}
44836    XATTR support:           ${have_xattr}
44837    Python support:          ${support_python} ${PYTHON_LIBS}
44838    Batch insert enabled:    ${support_batch_insert}
44839
44840   " > config.out
44841
44842 cat config.out