]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add Marco's Extended ACL documentation
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 TRUEPRG
805 FALSEPRG
806 VERSION
807 DATE
808 LSMDATE
809 BACULA
810 post_host
811 CC
812 CFLAGS
813 LDFLAGS
814 CPPFLAGS
815 ac_ct_CC
816 EXEEXT
817 OBJEXT
818 CXX
819 CXXFLAGS
820 ac_ct_CXX
821 CPP
822 GREP
823 EGREP
824 INSTALL_PROGRAM
825 INSTALL_SCRIPT
826 INSTALL_DATA
827 MV
828 REMOVE
829 CP
830 SED
831 ECHO
832 CMP
833 TBL
834 AR
835 OPENSSL
836 MTX
837 DD
838 MKISOFS
839 PYTHON
840 GROWISOFS
841 DVDRWMEDIAINFO
842 DVDRWFORMAT
843 PKGCONFIG
844 QMAKE
845 QMAKEQT4
846 WXCONFIG
847 WXFLAGS
848 CDRECORD
849 PIDOF
850 AWK
851 ARFLAGS
852 MAKE_SHELL
853 LOCAL_LIBS
854 LOCAL_CFLAGS
855 LOCAL_LDFLAGS
856 LOCAL_DEFS
857 LIBTOOL
858 build
859 build_cpu
860 build_vendor
861 build_os
862 host
863 host_cpu
864 host_vendor
865 host_os
866 FGREP
867 LD
868 DUMPBIN
869 ac_ct_DUMPBIN
870 NM
871 LN_S
872 OBJDUMP
873 STRIP
874 RANLIB
875 lt_ECHO
876 DSYMUTIL
877 NMEDIT
878 LIPO
879 OTOOL
880 OTOOL64
881 CXXCPP
882 DEFAULT_OBJECT_TYPE
883 DEFAULT_ARCHIVE_TYPE
884 DEFAULT_SHARED_OBJECT_TYPE
885 LIBTOOL_INSTALL_TARGET
886 LIBTOOL_UNINSTALL_TARGET
887 LIBTOOL_CLEAN_TARGET
888 QMAKE_LIBTOOL
889 INCLUDE_INSTALL_TARGET
890 INCLUDE_UNINSTALL_TARGET
891 HAVE_SUN_OS_TRUE
892 HAVE_SUN_OS_FALSE
893 HAVE_OSF1_OS_TRUE
894 HAVE_OSF1_OS_FALSE
895 HAVE_AIX_OS_TRUE
896 HAVE_AIX_OS_FALSE
897 HAVE_HPUX_OS_TRUE
898 HAVE_HPUX_OS_FALSE
899 HAVE_LINUX_OS_TRUE
900 HAVE_LINUX_OS_FALSE
901 HAVE_FREEBSD_OS_TRUE
902 HAVE_FREEBSD_OS_FALSE
903 HAVE_NETBSD_OS_TRUE
904 HAVE_NETBSD_OS_FALSE
905 HAVE_OPENBSD_OS_TRUE
906 HAVE_OPENBSD_OS_FALSE
907 HAVE_BSDI_OS_TRUE
908 HAVE_BSDI_OS_FALSE
909 HAVE_SGI_OS_TRUE
910 HAVE_SGI_OS_FALSE
911 HAVE_IRIX_OS_TRUE
912 HAVE_IRIX_OS_FALSE
913 HAVE_DARWIN_OS_TRUE
914 HAVE_DARWIN_OS_FALSE
915 SET_MAKE
916 MKINSTALLDIRS
917 USE_NLS
918 MSGFMT
919 GMSGFMT
920 XGETTEXT
921 MSGMERGE
922 INTL_MACOSX_LIBS
923 LIBICONV
924 LTLIBICONV
925 INTLLIBS
926 LIBINTL
927 LTLIBINTL
928 POSUB
929 GLIBC2
930 ALLOCA
931 GLIBC21
932 HAVE_POSIX_PRINTF
933 HAVE_ASPRINTF
934 HAVE_SNPRINTF
935 HAVE_WPRINTF
936 INTLBISON
937 BUILD_INCLUDED_LIBINTL
938 USE_INCLUDED_LIBINTL
939 CATOBJEXT
940 DATADIRNAME
941 INSTOBJEXT
942 GENCAT
943 INTLOBJS
944 INTL_LIBTOOL_SUFFIX_PREFIX
945 GNOME_INCLUDEDIR
946 GNOMEUI_LIBS
947 GNOME_LIBDIR
948 GNOME_LIBS
949 GNOME_DIR
950 BAT_DIR
951 QWT_INC
952 QWT_LDFLAGS
953 QWT_LIB
954 QWT
955 WXCONS_CPPFLAGS
956 WXCONS_LDFLAGS
957 WX_DIR
958 TRAY_MONITOR_CPPFLAGS
959 TRAY_MONITOR_LDFLAGS
960 TRAY_MONITOR_DIR
961 TTOOL_LDFLAGS
962 STATIC_FD
963 STATIC_SD
964 STATIC_DIR
965 STATIC_CONS
966 STATIC_GNOME_CONS
967 STATIC_WX_CONS
968 ALL_DIRS
969 DIRD_DIR
970 DIR_TOOLS
971 STORED_DIR
972 CONS_INC
973 CONS_OBJ
974 CONS_SRC
975 CONS_LIBS
976 CONS_LDFLAGS
977 READLINE_SRC
978 PYTHON_LIBS
979 PYTHON_INCDIR
980 OPENSSL_LIBS
981 OPENSSL_INC
982 working_dir
983 archivedir
984 scriptdir
985 plugindir
986 dump_email
987 job_email
988 smtp_host
989 piddir
990 subsysdir
991 baseport
992 dir_port
993 fd_port
994 sd_port
995 dir_password
996 fd_password
997 sd_password
998 mon_dir_password
999 mon_fd_password
1000 mon_sd_password
1001 db_name
1002 db_user
1003 db_password
1004 db_port
1005 dir_user
1006 dir_group
1007 sd_user
1008 sd_group
1009 fd_user
1010 fd_group
1011 SBINPERM
1012 SQL_LFLAGS
1013 SQL_INCLUDE
1014 SQL_BINDIR
1015 DBI_DBD_DRIVERDIR
1016 uncomment_dbi
1017 DB_PROG
1018 DB_PROG_LIB
1019 cats
1020 DB_TYPE
1021 GETCONF
1022 XMKMF
1023 X_CFLAGS
1024 X_PRE_LIBS
1025 X_LIBS
1026 X_EXTRA_LIBS
1027 LIBOBJS
1028 FDLIBS
1029 DEBUG
1030 DINCLUDE
1031 DLIB
1032 DB_LIBS
1033 WCFLAGS
1034 WLDFLAGS
1035 WRAPLIBS
1036 OBJLIST
1037 hostname
1038 TAPEDRIVE
1039 PSCMD
1040 WIN32
1041 MACOSX
1042 DISTNAME
1043 DISTVER
1044 LTLIBOBJS'
1045 ac_subst_files='MCOMMON'
1046       ac_precious_vars='build_alias
1047 host_alias
1048 target_alias
1049 CC
1050 CFLAGS
1051 LDFLAGS
1052 LIBS
1053 CPPFLAGS
1054 CXX
1055 CXXFLAGS
1056 CCC
1057 CPP
1058 WXCONFIG
1059 WXFLAGS
1060 CXXCPP
1061 XMKMF'
1062
1063
1064 # Initialize some variables set by options.
1065 ac_init_help=
1066 ac_init_version=false
1067 # The variables have the same names as the options, with
1068 # dashes changed to underlines.
1069 cache_file=/dev/null
1070 exec_prefix=NONE
1071 no_create=
1072 no_recursion=
1073 prefix=NONE
1074 program_prefix=NONE
1075 program_suffix=NONE
1076 program_transform_name=s,x,x,
1077 silent=
1078 site=
1079 srcdir=
1080 verbose=
1081 x_includes=NONE
1082 x_libraries=NONE
1083
1084 # Installation directory options.
1085 # These are left unexpanded so users can "make install exec_prefix=/foo"
1086 # and all the variables that are supposed to be based on exec_prefix
1087 # by default will actually change.
1088 # Use braces instead of parens because sh, perl, etc. also accept them.
1089 # (The list follows the same order as the GNU Coding Standards.)
1090 bindir='${exec_prefix}/bin'
1091 sbindir='${exec_prefix}/sbin'
1092 libexecdir='${exec_prefix}/libexec'
1093 datarootdir='${prefix}/share'
1094 datadir='${datarootdir}'
1095 sysconfdir='${prefix}/etc'
1096 sharedstatedir='${prefix}/com'
1097 localstatedir='${prefix}/var'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE}'
1101 infodir='${datarootdir}/info'
1102 htmldir='${docdir}'
1103 dvidir='${docdir}'
1104 pdfdir='${docdir}'
1105 psdir='${docdir}'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1109
1110 ac_prev=
1111 ac_dashdash=
1112 for ac_option
1113 do
1114   # If the previous option needs an argument, assign it.
1115   if test -n "$ac_prev"; then
1116     eval $ac_prev=\$ac_option
1117     ac_prev=
1118     continue
1119   fi
1120
1121   case $ac_option in
1122   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1123   *)    ac_optarg=yes ;;
1124   esac
1125
1126   # Accept the important Cygnus configure options, so we can diagnose typos.
1127
1128   case $ac_dashdash$ac_option in
1129   --)
1130     ac_dashdash=yes ;;
1131
1132   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1133     ac_prev=bindir ;;
1134   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135     bindir=$ac_optarg ;;
1136
1137   -build | --build | --buil | --bui | --bu)
1138     ac_prev=build_alias ;;
1139   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140     build_alias=$ac_optarg ;;
1141
1142   -cache-file | --cache-file | --cache-fil | --cache-fi \
1143   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144     ac_prev=cache_file ;;
1145   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147     cache_file=$ac_optarg ;;
1148
1149   --config-cache | -C)
1150     cache_file=config.cache ;;
1151
1152   -datadir | --datadir | --datadi | --datad)
1153     ac_prev=datadir ;;
1154   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155     datadir=$ac_optarg ;;
1156
1157   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158   | --dataroo | --dataro | --datar)
1159     ac_prev=datarootdir ;;
1160   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162     datarootdir=$ac_optarg ;;
1163
1164   -disable-* | --disable-*)
1165     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1169    { (exit 1); exit 1; }; }
1170     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1171     eval enable_$ac_feature=no ;;
1172
1173   -docdir | --docdir | --docdi | --doc | --do)
1174     ac_prev=docdir ;;
1175   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1176     docdir=$ac_optarg ;;
1177
1178   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1179     ac_prev=dvidir ;;
1180   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1181     dvidir=$ac_optarg ;;
1182
1183   -enable-* | --enable-*)
1184     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1185     # Reject names that are not valid shell variable names.
1186     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1188    { (exit 1); exit 1; }; }
1189     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1190     eval enable_$ac_feature=\$ac_optarg ;;
1191
1192   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1193   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1194   | --exec | --exe | --ex)
1195     ac_prev=exec_prefix ;;
1196   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1197   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1198   | --exec=* | --exe=* | --ex=*)
1199     exec_prefix=$ac_optarg ;;
1200
1201   -gas | --gas | --ga | --g)
1202     # Obsolete; use --with-gas.
1203     with_gas=yes ;;
1204
1205   -help | --help | --hel | --he | -h)
1206     ac_init_help=long ;;
1207   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1208     ac_init_help=recursive ;;
1209   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1210     ac_init_help=short ;;
1211
1212   -host | --host | --hos | --ho)
1213     ac_prev=host_alias ;;
1214   -host=* | --host=* | --hos=* | --ho=*)
1215     host_alias=$ac_optarg ;;
1216
1217   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1218     ac_prev=htmldir ;;
1219   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1220   | --ht=*)
1221     htmldir=$ac_optarg ;;
1222
1223   -includedir | --includedir | --includedi | --included | --include \
1224   | --includ | --inclu | --incl | --inc)
1225     ac_prev=includedir ;;
1226   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1227   | --includ=* | --inclu=* | --incl=* | --inc=*)
1228     includedir=$ac_optarg ;;
1229
1230   -infodir | --infodir | --infodi | --infod | --info | --inf)
1231     ac_prev=infodir ;;
1232   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1233     infodir=$ac_optarg ;;
1234
1235   -libdir | --libdir | --libdi | --libd)
1236     ac_prev=libdir ;;
1237   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1238     libdir=$ac_optarg ;;
1239
1240   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1241   | --libexe | --libex | --libe)
1242     ac_prev=libexecdir ;;
1243   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1244   | --libexe=* | --libex=* | --libe=*)
1245     libexecdir=$ac_optarg ;;
1246
1247   -localedir | --localedir | --localedi | --localed | --locale)
1248     ac_prev=localedir ;;
1249   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1250     localedir=$ac_optarg ;;
1251
1252   -localstatedir | --localstatedir | --localstatedi | --localstated \
1253   | --localstate | --localstat | --localsta | --localst | --locals)
1254     ac_prev=localstatedir ;;
1255   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1256   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1257     localstatedir=$ac_optarg ;;
1258
1259   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1260     ac_prev=mandir ;;
1261   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1262     mandir=$ac_optarg ;;
1263
1264   -nfp | --nfp | --nf)
1265     # Obsolete; use --without-fp.
1266     with_fp=no ;;
1267
1268   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1269   | --no-cr | --no-c | -n)
1270     no_create=yes ;;
1271
1272   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1273   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1274     no_recursion=yes ;;
1275
1276   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1277   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1278   | --oldin | --oldi | --old | --ol | --o)
1279     ac_prev=oldincludedir ;;
1280   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1281   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1282   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1283     oldincludedir=$ac_optarg ;;
1284
1285   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1286     ac_prev=prefix ;;
1287   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1288     prefix=$ac_optarg ;;
1289
1290   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1291   | --program-pre | --program-pr | --program-p)
1292     ac_prev=program_prefix ;;
1293   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1294   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1295     program_prefix=$ac_optarg ;;
1296
1297   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1298   | --program-suf | --program-su | --program-s)
1299     ac_prev=program_suffix ;;
1300   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1301   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1302     program_suffix=$ac_optarg ;;
1303
1304   -program-transform-name | --program-transform-name \
1305   | --program-transform-nam | --program-transform-na \
1306   | --program-transform-n | --program-transform- \
1307   | --program-transform | --program-transfor \
1308   | --program-transfo | --program-transf \
1309   | --program-trans | --program-tran \
1310   | --progr-tra | --program-tr | --program-t)
1311     ac_prev=program_transform_name ;;
1312   -program-transform-name=* | --program-transform-name=* \
1313   | --program-transform-nam=* | --program-transform-na=* \
1314   | --program-transform-n=* | --program-transform-=* \
1315   | --program-transform=* | --program-transfor=* \
1316   | --program-transfo=* | --program-transf=* \
1317   | --program-trans=* | --program-tran=* \
1318   | --progr-tra=* | --program-tr=* | --program-t=*)
1319     program_transform_name=$ac_optarg ;;
1320
1321   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1322     ac_prev=pdfdir ;;
1323   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1324     pdfdir=$ac_optarg ;;
1325
1326   -psdir | --psdir | --psdi | --psd | --ps)
1327     ac_prev=psdir ;;
1328   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1329     psdir=$ac_optarg ;;
1330
1331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332   | -silent | --silent | --silen | --sile | --sil)
1333     silent=yes ;;
1334
1335   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1336     ac_prev=sbindir ;;
1337   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1338   | --sbi=* | --sb=*)
1339     sbindir=$ac_optarg ;;
1340
1341   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1342   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1343   | --sharedst | --shareds | --shared | --share | --shar \
1344   | --sha | --sh)
1345     ac_prev=sharedstatedir ;;
1346   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1347   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1348   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1349   | --sha=* | --sh=*)
1350     sharedstatedir=$ac_optarg ;;
1351
1352   -site | --site | --sit)
1353     ac_prev=site ;;
1354   -site=* | --site=* | --sit=*)
1355     site=$ac_optarg ;;
1356
1357   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1358     ac_prev=srcdir ;;
1359   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1360     srcdir=$ac_optarg ;;
1361
1362   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1363   | --syscon | --sysco | --sysc | --sys | --sy)
1364     ac_prev=sysconfdir ;;
1365   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1366   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1367     sysconfdir=$ac_optarg ;;
1368
1369   -target | --target | --targe | --targ | --tar | --ta | --t)
1370     ac_prev=target_alias ;;
1371   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1372     target_alias=$ac_optarg ;;
1373
1374   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1375     verbose=yes ;;
1376
1377   -version | --version | --versio | --versi | --vers | -V)
1378     ac_init_version=: ;;
1379
1380   -with-* | --with-*)
1381     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384       { echo "$as_me: error: invalid package name: $ac_package" >&2
1385    { (exit 1); exit 1; }; }
1386     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387     eval with_$ac_package=\$ac_optarg ;;
1388
1389   -without-* | --without-*)
1390     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391     # Reject names that are not valid shell variable names.
1392     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393       { echo "$as_me: error: invalid package name: $ac_package" >&2
1394    { (exit 1); exit 1; }; }
1395     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1396     eval with_$ac_package=no ;;
1397
1398   --x)
1399     # Obsolete; use --with-x.
1400     with_x=yes ;;
1401
1402   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1403   | --x-incl | --x-inc | --x-in | --x-i)
1404     ac_prev=x_includes ;;
1405   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1406   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1407     x_includes=$ac_optarg ;;
1408
1409   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1410   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1411     ac_prev=x_libraries ;;
1412   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1413   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1414     x_libraries=$ac_optarg ;;
1415
1416   -*) { echo "$as_me: error: unrecognized option: $ac_option
1417 Try \`$0 --help' for more information." >&2
1418    { (exit 1); exit 1; }; }
1419     ;;
1420
1421   *=*)
1422     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423     # Reject names that are not valid shell variable names.
1424     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1425       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1426    { (exit 1); exit 1; }; }
1427     eval $ac_envvar=\$ac_optarg
1428     export $ac_envvar ;;
1429
1430   *)
1431     # FIXME: should be removed in autoconf 3.0.
1432     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1433     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1434       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1435     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1436     ;;
1437
1438   esac
1439 done
1440
1441 if test -n "$ac_prev"; then
1442   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1443   { echo "$as_me: error: missing argument to $ac_option" >&2
1444    { (exit 1); exit 1; }; }
1445 fi
1446
1447 # Be sure to have absolute directory names.
1448 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449                 datadir sysconfdir sharedstatedir localstatedir includedir \
1450                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451                 libdir localedir mandir
1452 do
1453   eval ac_val=\$$ac_var
1454   case $ac_val in
1455     [\\/$]* | ?:[\\/]* )  continue;;
1456     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1457   esac
1458   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1459    { (exit 1); exit 1; }; }
1460 done
1461
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1465 build=$build_alias
1466 host=$host_alias
1467 target=$target_alias
1468
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471   if test "x$build_alias" = x; then
1472     cross_compiling=maybe
1473     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1474     If a cross compiler is detected then cross compile mode will be used." >&2
1475   elif test "x$build_alias" != "x$host_alias"; then
1476     cross_compiling=yes
1477   fi
1478 fi
1479
1480 ac_tool_prefix=
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1482
1483 test "$silent" = yes && exec 6>/dev/null
1484
1485
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489   { echo "$as_me: error: Working directory cannot be determined" >&2
1490    { (exit 1); exit 1; }; }
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492   { echo "$as_me: error: pwd does not report name of working directory" >&2
1493    { (exit 1); exit 1; }; }
1494
1495
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498   ac_srcdir_defaulted=yes
1499   # Try the directory containing this script, then the parent directory.
1500   ac_confdir=`$as_dirname -- "$0" ||
1501 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502          X"$0" : 'X\(//\)[^/]' \| \
1503          X"$0" : 'X\(//\)$' \| \
1504          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1505 echo X"$0" |
1506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)[^/].*/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)$/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\).*/{
1519             s//\1/
1520             q
1521           }
1522           s/.*/./; q'`
1523   srcdir=$ac_confdir
1524   if test ! -r "$srcdir/$ac_unique_file"; then
1525     srcdir=..
1526   fi
1527 else
1528   ac_srcdir_defaulted=no
1529 fi
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1533    { (exit 1); exit 1; }; }
1534 fi
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 ac_abs_confdir=`(
1537         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1538    { (exit 1); exit 1; }; }
1539         pwd)`
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1542   srcdir=.
1543 fi
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1547 case $srcdir in
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1549 esac
1550 for ac_var in $ac_precious_vars; do
1551   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_env_${ac_var}_value=\$${ac_var}
1553   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1555 done
1556
1557 #
1558 # Report the --help message.
1559 #
1560 if test "$ac_init_help" = "long"; then
1561   # Omit some internal or obsolete options to make the list less imposing.
1562   # This message is too long to be a string in the A/UX 3.1 sh.
1563   cat <<_ACEOF
1564 \`configure' configures this package to adapt to many kinds of systems.
1565
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1567
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE.  See below for descriptions of some of the useful variables.
1570
1571 Defaults for the options are specified in brackets.
1572
1573 Configuration:
1574   -h, --help              display this help and exit
1575       --help=short        display options specific to this package
1576       --help=recursive    display the short help of all the included packages
1577   -V, --version           display version information and exit
1578   -q, --quiet, --silent   do not print \`checking...' messages
1579       --cache-file=FILE   cache test results in FILE [disabled]
1580   -C, --config-cache      alias for \`--cache-file=config.cache'
1581   -n, --no-create         do not create output files
1582       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1583
1584 Installation directories:
1585   --prefix=PREFIX         install architecture-independent files in PREFIX
1586                           [$ac_default_prefix]
1587   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1588                           [PREFIX]
1589
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1594
1595 For better control, use the options below.
1596
1597 Fine tuning of the installation directories:
1598   --bindir=DIR           user executables [EPREFIX/bin]
1599   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1600   --libexecdir=DIR       program executables [EPREFIX/libexec]
1601   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1602   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1603   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1604   --libdir=DIR           object code libraries [EPREFIX/lib]
1605   --includedir=DIR       C header files [PREFIX/include]
1606   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1607   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1608   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1609   --infodir=DIR          info documentation [DATAROOTDIR/info]
1610   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1611   --mandir=DIR           man documentation [DATAROOTDIR/man]
1612   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1613   --htmldir=DIR          html documentation [DOCDIR]
1614   --dvidir=DIR           dvi documentation [DOCDIR]
1615   --pdfdir=DIR           pdf documentation [DOCDIR]
1616   --psdir=DIR            ps documentation [DOCDIR]
1617 _ACEOF
1618
1619   cat <<\_ACEOF
1620
1621 X features:
1622   --x-includes=DIR    X include files are in DIR
1623   --x-libraries=DIR   X library files are in DIR
1624
1625 System types:
1626   --build=BUILD     configure for building on BUILD [guessed]
1627   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1628 _ACEOF
1629 fi
1630
1631 if test -n "$ac_init_help"; then
1632
1633   cat <<\_ACEOF
1634
1635 Optional Features:
1636   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1637   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1638   --disable-libtool       disable building using GNU libtool [default=no]
1639   --enable-shared[=PKGS]  build shared libraries [default=yes]
1640   --enable-static[=PKGS]  build static libraries [default=no]
1641   --enable-fast-install[=PKGS]
1642                           optimize for fast installation [default=yes]
1643   --disable-libtool-lock  avoid locking (might break parallel builds)
1644   --enable-includes       enable installing of include files [default=no]
1645   --disable-nls           do not use Native Language Support
1646   --disable-rpath         do not hardcode runtime library paths
1647   --enable-gnome          enable build of bgnome-console GUI [default=no]
1648   --enable-bat            enable build of bat Qt4 GUI [default=no]
1649   --enable-bwx-console    enable build of wxWidgets console [default=no]
1650   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1651                           KDE [default=no]
1652   --enable-smartalloc     enable smartalloc debugging support [default=no]
1653   --enable-static-tools   enable static tape tools [default=no]
1654   --enable-static-fd      enable static File daemon [default=no]
1655   --enable-static-sd      enable static Storage daemon [default=no]
1656   --enable-static-dir     enable static Director [default=no]
1657   --enable-static-cons    enable static Console [default=no]
1658   --enable-client-only    build client (File daemon) only [default=no]
1659   --enable-build-dird     enable building of dird (Director) [default=yes]
1660   --enable-build-stored   enable building of stored (Storage daemon)
1661                           [default=yes]
1662   --disable-conio         disable conio support [default=no]
1663   --enable-ipv6           enable ipv6 support [default=yes]
1664   --disable-readline      disable readline support [default=yes]
1665   --enable-batch-insert   enable the DB batch insert code [default=no]
1666   --disable-largefile     omit support for large files
1667   --disable-acl           disable acl support [default=auto]
1668   --disable-xattr         disable xattr support [default=auto]
1669
1670 Optional Packages:
1671   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1672   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1673   --with-pic              try to use only PIC/non-PIC objects [default=use
1674                           both]
1675   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1676   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1677   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1678   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1679   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1680   --without-libintl-prefix     don't search for libintl in includedir and libdir
1681   --with-included-gettext use the GNU gettext library included here
1682   --with-qwt[=DIR]        specify qwt library directory
1683   --with-readline[=DIR]   specify readline library directory
1684   --with-python[=DIR]     Include Python support. DIR is the Python base
1685                           install directory, default is to search through a
1686                           number of common places for the Python files.
1687   --with-tcp-wrappers[=DIR]
1688                           enable tcpwrappers support
1689   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1690   --with-working-dir=PATH specify path of Bacula working directory
1691   --with-archivedir=PATH  specify path of SD archive directory
1692   --with-scriptdir=PATH   specify path of Bacula scripts directory
1693   --with-plugindir=PATH   specify path of Bacula plugins directory
1694   --with-dump-email=EMAIL dump email address
1695   --with-job-email=EMAIL  job output email address
1696   --with-smtp-host=HOST   SMTP mail host address
1697   --with-pid-dir=PATH     specify location of Bacula pid files
1698   --with-subsys-dir=PATH  specify location of Bacula subsys file
1699   --with-baseport=PORT    specify base port address for daemons
1700   --with-dir-password=PASSWORD
1701                           specify Director's password
1702   --with-fd-password=PASSWORD
1703                           specify Client's password
1704   --with-sd-password=PASSWORD
1705                           specify Storage daemon's password
1706   --with-mon-dir-password=PASSWORD
1707                           specify Director's password used by the monitor
1708   --with-mon-fd-password=PASSWORD
1709                           specify Client's password used by the monitor
1710   --with-mon-sd-password=PASSWORD
1711                           specify Storage daemon's password used by the
1712                           monitor
1713   --with-db-name=DBNAME   specify database name [default=bacula]
1714   --with-db-user=UNAME    specify database user [default=bacula]
1715   --with-db-password=PWD  specify database password [default=*none*]
1716   --with-db-port=DBPORT   specify a database port [default=null]
1717   --with-dir-user=USER    specify user for Director daemon
1718   --with-dir-group=GROUP  specify group for Director daemon
1719   --with-sd-user=USER     specify user for Storage daemon
1720   --with-sd-group=GROUP   specify group for Storage daemon
1721   --with-fd-user=USER     specify user for File daemon
1722   --with-fd-group=GROUP   specify group for File daemon
1723   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1724   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1725                           base install directory, [default=/usr/local/pgsql]
1726   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1727                           directory, default is to search through a number of
1728                           common places for the MySQL files.
1729   --with-embedded-mysql[=DIR]
1730                           Include MySQL support. DIR is the MySQL base install
1731                           directory, default is to search through a number of
1732                           common places for the MySQL files.
1733   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1734                           install directory, default is to search through a
1735                           number of common places for the SQLite3 files.
1736   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1737                           install directory, default is to search through a
1738                           number of common places for the SQLite files.
1739   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1740                           directory, default is to search through a number of
1741                           common places for the DBI files.
1742   --with-dbi-driver[=DRIVER]
1743                           Suport for DBI driver. DRIVER is the one DBI driver
1744                           like Mysql, Postgresql, others. Default is to not
1745                           configure any driver.
1746   --with-x                use the X Window System
1747
1748 Some influential environment variables:
1749   CC          C compiler command
1750   CFLAGS      C compiler flags
1751   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1752               nonstandard directory <lib dir>
1753   LIBS        libraries to pass to the linker, e.g. -l<library>
1754   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1755               you have headers in a nonstandard directory <include dir>
1756   CXX         C++ compiler command
1757   CXXFLAGS    C++ compiler flags
1758   CPP         C preprocessor
1759   WXCONFIG    wx-config command. On some systems, you must set it to
1760               wx-config-2.6 to use wxWidgets 2.6.
1761   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1762   CXXCPP      C++ preprocessor
1763   XMKMF       Path to xmkmf, Makefile generator for X Window System
1764
1765 Use these variables to override the choices made by `configure' or to help
1766 it to find libraries and programs with nonstandard names/locations.
1767
1768 _ACEOF
1769 ac_status=$?
1770 fi
1771
1772 if test "$ac_init_help" = "recursive"; then
1773   # If there are subdirs, report their specific --help.
1774   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1775     test -d "$ac_dir" || continue
1776     ac_builddir=.
1777
1778 case "$ac_dir" in
1779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780 *)
1781   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1782   # A ".." for each directory in $ac_dir_suffix.
1783   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1784   case $ac_top_builddir_sub in
1785   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1787   esac ;;
1788 esac
1789 ac_abs_top_builddir=$ac_pwd
1790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1791 # for backward compatibility:
1792 ac_top_builddir=$ac_top_build_prefix
1793
1794 case $srcdir in
1795   .)  # We are building in place.
1796     ac_srcdir=.
1797     ac_top_srcdir=$ac_top_builddir_sub
1798     ac_abs_top_srcdir=$ac_pwd ;;
1799   [\\/]* | ?:[\\/]* )  # Absolute name.
1800     ac_srcdir=$srcdir$ac_dir_suffix;
1801     ac_top_srcdir=$srcdir
1802     ac_abs_top_srcdir=$srcdir ;;
1803   *) # Relative name.
1804     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1805     ac_top_srcdir=$ac_top_build_prefix$srcdir
1806     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1807 esac
1808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1809
1810     cd "$ac_dir" || { ac_status=$?; continue; }
1811     # Check for guested configure.
1812     if test -f "$ac_srcdir/configure.gnu"; then
1813       echo &&
1814       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1815     elif test -f "$ac_srcdir/configure"; then
1816       echo &&
1817       $SHELL "$ac_srcdir/configure" --help=recursive
1818     else
1819       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1820     fi || ac_status=$?
1821     cd "$ac_pwd" || { ac_status=$?; break; }
1822   done
1823 fi
1824
1825 test -n "$ac_init_help" && exit $ac_status
1826 if $ac_init_version; then
1827   cat <<\_ACEOF
1828 configure
1829 generated by GNU Autoconf 2.61
1830
1831 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1832 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1833 This configure script is free software; the Free Software Foundation
1834 gives unlimited permission to copy, distribute and modify it.
1835 _ACEOF
1836   exit
1837 fi
1838 cat >config.log <<_ACEOF
1839 This file contains any messages produced by compilers while
1840 running configure, to aid debugging if configure makes a mistake.
1841
1842 It was created by $as_me, which was
1843 generated by GNU Autoconf 2.61.  Invocation command line was
1844
1845   $ $0 $@
1846
1847 _ACEOF
1848 exec 5>>config.log
1849 {
1850 cat <<_ASUNAME
1851 ## --------- ##
1852 ## Platform. ##
1853 ## --------- ##
1854
1855 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1856 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1857 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1858 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1859 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1860
1861 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1862 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1863
1864 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1865 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1866 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1867 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1868 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1869 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1870 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1871
1872 _ASUNAME
1873
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   echo "PATH: $as_dir"
1880 done
1881 IFS=$as_save_IFS
1882
1883 } >&5
1884
1885 cat >&5 <<_ACEOF
1886
1887
1888 ## ----------- ##
1889 ## Core tests. ##
1890 ## ----------- ##
1891
1892 _ACEOF
1893
1894
1895 # Keep a trace of the command line.
1896 # Strip out --no-create and --no-recursion so they do not pile up.
1897 # Strip out --silent because we don't want to record it for future runs.
1898 # Also quote any args containing shell meta-characters.
1899 # Make two passes to allow for proper duplicate-argument suppression.
1900 ac_configure_args=
1901 ac_configure_args0=
1902 ac_configure_args1=
1903 ac_must_keep_next=false
1904 for ac_pass in 1 2
1905 do
1906   for ac_arg
1907   do
1908     case $ac_arg in
1909     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1910     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1911     | -silent | --silent | --silen | --sile | --sil)
1912       continue ;;
1913     *\'*)
1914       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1915     esac
1916     case $ac_pass in
1917     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1918     2)
1919       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1920       if test $ac_must_keep_next = true; then
1921         ac_must_keep_next=false # Got value, back to normal.
1922       else
1923         case $ac_arg in
1924           *=* | --config-cache | -C | -disable-* | --disable-* \
1925           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1926           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1927           | -with-* | --with-* | -without-* | --without-* | --x)
1928             case "$ac_configure_args0 " in
1929               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1930             esac
1931             ;;
1932           -* ) ac_must_keep_next=true ;;
1933         esac
1934       fi
1935       ac_configure_args="$ac_configure_args '$ac_arg'"
1936       ;;
1937     esac
1938   done
1939 done
1940 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1941 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1942
1943 # When interrupted or exit'd, cleanup temporary files, and complete
1944 # config.log.  We remove comments because anyway the quotes in there
1945 # would cause problems or look ugly.
1946 # WARNING: Use '\'' to represent an apostrophe within the trap.
1947 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1948 trap 'exit_status=$?
1949   # Save into config.log some information that might help in debugging.
1950   {
1951     echo
1952
1953     cat <<\_ASBOX
1954 ## ---------------- ##
1955 ## Cache variables. ##
1956 ## ---------------- ##
1957 _ASBOX
1958     echo
1959     # The following way of writing the cache mishandles newlines in values,
1960 (
1961   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1962     eval ac_val=\$$ac_var
1963     case $ac_val in #(
1964     *${as_nl}*)
1965       case $ac_var in #(
1966       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1967 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1968       esac
1969       case $ac_var in #(
1970       _ | IFS | as_nl) ;; #(
1971       *) $as_unset $ac_var ;;
1972       esac ;;
1973     esac
1974   done
1975   (set) 2>&1 |
1976     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1977     *${as_nl}ac_space=\ *)
1978       sed -n \
1979         "s/'\''/'\''\\\\'\'''\''/g;
1980           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1981       ;; #(
1982     *)
1983       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1984       ;;
1985     esac |
1986     sort
1987 )
1988     echo
1989
1990     cat <<\_ASBOX
1991 ## ----------------- ##
1992 ## Output variables. ##
1993 ## ----------------- ##
1994 _ASBOX
1995     echo
1996     for ac_var in $ac_subst_vars
1997     do
1998       eval ac_val=\$$ac_var
1999       case $ac_val in
2000       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2001       esac
2002       echo "$ac_var='\''$ac_val'\''"
2003     done | sort
2004     echo
2005
2006     if test -n "$ac_subst_files"; then
2007       cat <<\_ASBOX
2008 ## ------------------- ##
2009 ## File substitutions. ##
2010 ## ------------------- ##
2011 _ASBOX
2012       echo
2013       for ac_var in $ac_subst_files
2014       do
2015         eval ac_val=\$$ac_var
2016         case $ac_val in
2017         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2018         esac
2019         echo "$ac_var='\''$ac_val'\''"
2020       done | sort
2021       echo
2022     fi
2023
2024     if test -s confdefs.h; then
2025       cat <<\_ASBOX
2026 ## ----------- ##
2027 ## confdefs.h. ##
2028 ## ----------- ##
2029 _ASBOX
2030       echo
2031       cat confdefs.h
2032       echo
2033     fi
2034     test "$ac_signal" != 0 &&
2035       echo "$as_me: caught signal $ac_signal"
2036     echo "$as_me: exit $exit_status"
2037   } >&5
2038   rm -f core *.core core.conftest.* &&
2039     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2040     exit $exit_status
2041 ' 0
2042 for ac_signal in 1 2 13 15; do
2043   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2044 done
2045 ac_signal=0
2046
2047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2048 rm -f -r conftest* confdefs.h
2049
2050 # Predefined preprocessor variables.
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_NAME "$PACKAGE_NAME"
2054 _ACEOF
2055
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2059 _ACEOF
2060
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2064 _ACEOF
2065
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_STRING "$PACKAGE_STRING"
2069 _ACEOF
2070
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2074 _ACEOF
2075
2076
2077 # Let the site file select an alternate cache file if it wants to.
2078 # Prefer explicitly selected file to automatically selected ones.
2079 if test -n "$CONFIG_SITE"; then
2080   set x "$CONFIG_SITE"
2081 elif test "x$prefix" != xNONE; then
2082   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2083 else
2084   set x "$ac_default_prefix/share/config.site" \
2085         "$ac_default_prefix/etc/config.site"
2086 fi
2087 shift
2088 for ac_site_file
2089 do
2090   if test -r "$ac_site_file"; then
2091     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2092 echo "$as_me: loading site script $ac_site_file" >&6;}
2093     sed 's/^/| /' "$ac_site_file" >&5
2094     . "$ac_site_file"
2095   fi
2096 done
2097
2098 if test -r "$cache_file"; then
2099   # Some versions of bash will fail to source /dev/null (special
2100   # files actually), so we avoid doing that.
2101   if test -f "$cache_file"; then
2102     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2103 echo "$as_me: loading cache $cache_file" >&6;}
2104     case $cache_file in
2105       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2106       *)                      . "./$cache_file";;
2107     esac
2108   fi
2109 else
2110   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2111 echo "$as_me: creating cache $cache_file" >&6;}
2112   >$cache_file
2113 fi
2114
2115 # Check that the precious variables saved in the cache have kept the same
2116 # value.
2117 ac_cache_corrupted=false
2118 for ac_var in $ac_precious_vars; do
2119   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2120   eval ac_new_set=\$ac_env_${ac_var}_set
2121   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2122   eval ac_new_val=\$ac_env_${ac_var}_value
2123   case $ac_old_set,$ac_new_set in
2124     set,)
2125       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2126 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2127       ac_cache_corrupted=: ;;
2128     ,set)
2129       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2130 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2131       ac_cache_corrupted=: ;;
2132     ,);;
2133     *)
2134       if test "x$ac_old_val" != "x$ac_new_val"; then
2135         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2136 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2137         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2138 echo "$as_me:   former value:  $ac_old_val" >&2;}
2139         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2140 echo "$as_me:   current value: $ac_new_val" >&2;}
2141         ac_cache_corrupted=:
2142       fi;;
2143   esac
2144   # Pass precious variables to config.status.
2145   if test "$ac_new_set" = set; then
2146     case $ac_new_val in
2147     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2148     *) ac_arg=$ac_var=$ac_new_val ;;
2149     esac
2150     case " $ac_configure_args " in
2151       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2152       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2153     esac
2154   fi
2155 done
2156 if $ac_cache_corrupted; then
2157   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2158 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2159   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2160 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2161    { (exit 1); exit 1; }; }
2162 fi
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180 ac_ext=c
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185
2186
2187 BUILD_DIR=`pwd`
2188 cd ..
2189 TOP_DIR=`pwd`
2190 cd ${BUILD_DIR}
2191
2192
2193 ac_aux_dir=
2194 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2195   if test -f "$ac_dir/install-sh"; then
2196     ac_aux_dir=$ac_dir
2197     ac_install_sh="$ac_aux_dir/install-sh -c"
2198     break
2199   elif test -f "$ac_dir/install.sh"; then
2200     ac_aux_dir=$ac_dir
2201     ac_install_sh="$ac_aux_dir/install.sh -c"
2202     break
2203   elif test -f "$ac_dir/shtool"; then
2204     ac_aux_dir=$ac_dir
2205     ac_install_sh="$ac_aux_dir/shtool install -c"
2206     break
2207   fi
2208 done
2209 if test -z "$ac_aux_dir"; then
2210   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2211 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2212    { (exit 1); exit 1; }; }
2213 fi
2214
2215 # These three variables are undocumented and unsupported,
2216 # and are intended to be withdrawn in a future Autoconf release.
2217 # They can cause serious problems if a builder's source tree is in a directory
2218 # whose full name contains unusual characters.
2219 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2220 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2221 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2222
2223
2224 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2225
2226
2227
2228
2229
2230 for ac_prog in true
2231 do
2232   # Extract the first word of "$ac_prog", so it can be a program name with args.
2233 set dummy $ac_prog; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2237   echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239   case $TRUEPRG in
2240   [\\/]* | ?:[\\/]*)
2241   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2242   ;;
2243   *)
2244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247   IFS=$as_save_IFS
2248   test -z "$as_dir" && as_dir=.
2249   for ac_exec_ext in '' $ac_executable_extensions; do
2250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253     break 2
2254   fi
2255 done
2256 done
2257 IFS=$as_save_IFS
2258
2259   ;;
2260 esac
2261 fi
2262 TRUEPRG=$ac_cv_path_TRUEPRG
2263 if test -n "$TRUEPRG"; then
2264   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2265 echo "${ECHO_T}$TRUEPRG" >&6; }
2266 else
2267   { echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6; }
2269 fi
2270
2271
2272   test -n "$TRUEPRG" && break
2273 done
2274 test -n "$TRUEPRG" || TRUEPRG=":"
2275
2276 for ac_prog in false
2277 do
2278   # Extract the first word of "$ac_prog", so it can be a program name with args.
2279 set dummy $ac_prog; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2283   echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285   case $FALSEPRG in
2286   [\\/]* | ?:[\\/]*)
2287   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2288   ;;
2289   *)
2290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293   IFS=$as_save_IFS
2294   test -z "$as_dir" && as_dir=.
2295   for ac_exec_ext in '' $ac_executable_extensions; do
2296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2297     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299     break 2
2300   fi
2301 done
2302 done
2303 IFS=$as_save_IFS
2304
2305   ;;
2306 esac
2307 fi
2308 FALSEPRG=$ac_cv_path_FALSEPRG
2309 if test -n "$FALSEPRG"; then
2310   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2311 echo "${ECHO_T}$FALSEPRG" >&6; }
2312 else
2313   { echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6; }
2315 fi
2316
2317
2318   test -n "$FALSEPRG" && break
2319 done
2320 test -n "$FALSEPRG" || FALSEPRG=":"
2321
2322
2323
2324 post_host=
2325 if test "x$BACULA" != x; then
2326    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2327 fi
2328 BACULA=${BACULA-Bacula}
2329 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2330 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2331 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2332 echo "configuring for ${BACULA} $VERSION ($DATE)"
2333
2334
2335 ac_ext=c
2336 ac_cpp='$CPP $CPPFLAGS'
2337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2340 if test -n "$ac_tool_prefix"; then
2341   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2342 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_CC+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   if test -n "$CC"; then
2349   ac_cv_prog_CC="$CC" # Let the user override the test.
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354   IFS=$as_save_IFS
2355   test -z "$as_dir" && as_dir=.
2356   for ac_exec_ext in '' $ac_executable_extensions; do
2357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360     break 2
2361   fi
2362 done
2363 done
2364 IFS=$as_save_IFS
2365
2366 fi
2367 fi
2368 CC=$ac_cv_prog_CC
2369 if test -n "$CC"; then
2370   { echo "$as_me:$LINENO: result: $CC" >&5
2371 echo "${ECHO_T}$CC" >&6; }
2372 else
2373   { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2375 fi
2376
2377
2378 fi
2379 if test -z "$ac_cv_prog_CC"; then
2380   ac_ct_CC=$CC
2381   # Extract the first word of "gcc", so it can be a program name with args.
2382 set dummy gcc; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   if test -n "$ac_ct_CC"; then
2389   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394   IFS=$as_save_IFS
2395   test -z "$as_dir" && as_dir=.
2396   for ac_exec_ext in '' $ac_executable_extensions; do
2397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398     ac_cv_prog_ac_ct_CC="gcc"
2399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400     break 2
2401   fi
2402 done
2403 done
2404 IFS=$as_save_IFS
2405
2406 fi
2407 fi
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6; }
2412 else
2413   { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2415 fi
2416
2417   if test "x$ac_ct_CC" = x; then
2418     CC=""
2419   else
2420     case $cross_compiling:$ac_tool_warned in
2421 yes:)
2422 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2423 whose name does not start with the host triplet.  If you think this
2424 configuration is useful to you, please write to autoconf@gnu.org." >&5
2425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet.  If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2428 ac_tool_warned=yes ;;
2429 esac
2430     CC=$ac_ct_CC
2431   fi
2432 else
2433   CC="$ac_cv_prog_CC"
2434 fi
2435
2436 if test -z "$CC"; then
2437           if test -n "$ac_tool_prefix"; then
2438     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}cc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$CC"; then
2446   ac_cv_prog_CC="$CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455     ac_cv_prog_CC="${ac_tool_prefix}cc"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 CC=$ac_cv_prog_CC
2466 if test -n "$CC"; then
2467   { echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6; }
2469 else
2470   { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472 fi
2473
2474
2475   fi
2476 fi
2477 if test -z "$CC"; then
2478   # Extract the first word of "cc", so it can be a program name with args.
2479 set dummy cc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$CC"; then
2486   ac_cv_prog_CC="$CC" # Let the user override the test.
2487 else
2488   ac_prog_rejected=no
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492   IFS=$as_save_IFS
2493   test -z "$as_dir" && as_dir=.
2494   for ac_exec_ext in '' $ac_executable_extensions; do
2495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2497        ac_prog_rejected=yes
2498        continue
2499      fi
2500     ac_cv_prog_CC="cc"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506 IFS=$as_save_IFS
2507
2508 if test $ac_prog_rejected = yes; then
2509   # We found a bogon in the path, so make sure we never use it.
2510   set dummy $ac_cv_prog_CC
2511   shift
2512   if test $# != 0; then
2513     # We chose a different compiler from the bogus one.
2514     # However, it has the same basename, so the bogon will be chosen
2515     # first if we set CC to just the basename; use the full file name.
2516     shift
2517     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2518   fi
2519 fi
2520 fi
2521 fi
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524   { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2526 else
2527   { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2529 fi
2530
2531
2532 fi
2533 if test -z "$CC"; then
2534   if test -n "$ac_tool_prefix"; then
2535   for ac_prog in cl.exe
2536   do
2537     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_CC+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   if test -n "$CC"; then
2545   ac_cv_prog_CC="$CC" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552   for ac_exec_ext in '' $ac_executable_extensions; do
2553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 CC=$ac_cv_prog_CC
2565 if test -n "$CC"; then
2566   { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2568 else
2569   { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2571 fi
2572
2573
2574     test -n "$CC" && break
2575   done
2576 fi
2577 if test -z "$CC"; then
2578   ac_ct_CC=$CC
2579   for ac_prog in cl.exe
2580 do
2581   # Extract the first word of "$ac_prog", so it can be a program name with args.
2582 set dummy $ac_prog; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if test -n "$ac_ct_CC"; then
2589   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594   IFS=$as_save_IFS
2595   test -z "$as_dir" && as_dir=.
2596   for ac_exec_ext in '' $ac_executable_extensions; do
2597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598     ac_cv_prog_ac_ct_CC="$ac_prog"
2599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600     break 2
2601   fi
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 fi
2607 fi
2608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609 if test -n "$ac_ct_CC"; then
2610   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2611 echo "${ECHO_T}$ac_ct_CC" >&6; }
2612 else
2613   { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2615 fi
2616
2617
2618   test -n "$ac_ct_CC" && break
2619 done
2620
2621   if test "x$ac_ct_CC" = x; then
2622     CC=""
2623   else
2624     case $cross_compiling:$ac_tool_warned in
2625 yes:)
2626 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet.  If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&5
2629 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2630 whose name does not start with the host triplet.  If you think this
2631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2632 ac_tool_warned=yes ;;
2633 esac
2634     CC=$ac_ct_CC
2635   fi
2636 fi
2637
2638 fi
2639
2640
2641 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2642 See \`config.log' for more details." >&5
2643 echo "$as_me: error: no acceptable C compiler found in \$PATH
2644 See \`config.log' for more details." >&2;}
2645    { (exit 1); exit 1; }; }
2646
2647 # Provide some information about the compiler.
2648 echo "$as_me:$LINENO: checking for C compiler version" >&5
2649 ac_compiler=`set X $ac_compile; echo $2`
2650 { (ac_try="$ac_compiler --version >&5"
2651 case "(($ac_try" in
2652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653   *) ac_try_echo=$ac_try;;
2654 esac
2655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656   (eval "$ac_compiler --version >&5") 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }
2660 { (ac_try="$ac_compiler -v >&5"
2661 case "(($ac_try" in
2662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663   *) ac_try_echo=$ac_try;;
2664 esac
2665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2666   (eval "$ac_compiler -v >&5") 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }
2670 { (ac_try="$ac_compiler -V >&5"
2671 case "(($ac_try" in
2672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673   *) ac_try_echo=$ac_try;;
2674 esac
2675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676   (eval "$ac_compiler -V >&5") 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); }
2680
2681 cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h.  */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h.  */
2687
2688 int
2689 main ()
2690 {
2691
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 ac_clean_files_save=$ac_clean_files
2697 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2698 # Try to create an executable without -o first, disregard a.out.
2699 # It will help us diagnose broken compilers, and finding out an intuition
2700 # of exeext.
2701 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2702 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2703 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2704 #
2705 # List of possible output files, starting from the most likely.
2706 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2707 # only as a last resort.  b.out is created by i960 compilers.
2708 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2709 #
2710 # The IRIX 6 linker writes into existing files which may not be
2711 # executable, retaining their permissions.  Remove them first so a
2712 # subsequent execution test works.
2713 ac_rmfiles=
2714 for ac_file in $ac_files
2715 do
2716   case $ac_file in
2717     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2718     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2719   esac
2720 done
2721 rm -f $ac_rmfiles
2722
2723 if { (ac_try="$ac_link_default"
2724 case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729   (eval "$ac_link_default") 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; then
2733   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2734 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2735 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2736 # so that the user can short-circuit this test for compilers unknown to
2737 # Autoconf.
2738 for ac_file in $ac_files ''
2739 do
2740   test -f "$ac_file" || continue
2741   case $ac_file in
2742     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2743         ;;
2744     [ab].out )
2745         # We found the default executable, but exeext='' is most
2746         # certainly right.
2747         break;;
2748     *.* )
2749         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2750         then :; else
2751            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2752         fi
2753         # We set ac_cv_exeext here because the later test for it is not
2754         # safe: cross compilers may not add the suffix if given an `-o'
2755         # argument, so we may need to know it at that point already.
2756         # Even if this section looks crufty: it has the advantage of
2757         # actually working.
2758         break;;
2759     * )
2760         break;;
2761   esac
2762 done
2763 test "$ac_cv_exeext" = no && ac_cv_exeext=
2764
2765 else
2766   ac_file=''
2767 fi
2768
2769 { echo "$as_me:$LINENO: result: $ac_file" >&5
2770 echo "${ECHO_T}$ac_file" >&6; }
2771 if test -z "$ac_file"; then
2772   echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: C compiler cannot create executables
2778 See \`config.log' for more details." >&2;}
2779    { (exit 77); exit 77; }; }
2780 fi
2781
2782 ac_exeext=$ac_cv_exeext
2783
2784 # Check that the compiler produces executables we can run.  If not, either
2785 # the compiler is broken, or we cross compile.
2786 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2787 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2788 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2789 # If not cross compiling, check that we can run a simple program.
2790 if test "$cross_compiling" != yes; then
2791   if { ac_try='./$ac_file'
2792   { (case "(($ac_try" in
2793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794   *) ac_try_echo=$ac_try;;
2795 esac
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797   (eval "$ac_try") 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); }; }; then
2801     cross_compiling=no
2802   else
2803     if test "$cross_compiling" = maybe; then
2804         cross_compiling=yes
2805     else
2806         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2807 If you meant to cross compile, use \`--host'.
2808 See \`config.log' for more details." >&5
2809 echo "$as_me: error: cannot run C compiled programs.
2810 If you meant to cross compile, use \`--host'.
2811 See \`config.log' for more details." >&2;}
2812    { (exit 1); exit 1; }; }
2813     fi
2814   fi
2815 fi
2816 { echo "$as_me:$LINENO: result: yes" >&5
2817 echo "${ECHO_T}yes" >&6; }
2818
2819 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2820 ac_clean_files=$ac_clean_files_save
2821 # Check that the compiler produces executables we can run.  If not, either
2822 # the compiler is broken, or we cross compile.
2823 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2824 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2825 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2826 echo "${ECHO_T}$cross_compiling" >&6; }
2827
2828 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2829 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2830 if { (ac_try="$ac_link"
2831 case "(($ac_try" in
2832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833   *) ac_try_echo=$ac_try;;
2834 esac
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836   (eval "$ac_link") 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; then
2840   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2841 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2842 # work properly (i.e., refer to `conftest.exe'), while it won't with
2843 # `rm'.
2844 for ac_file in conftest.exe conftest conftest.*; do
2845   test -f "$ac_file" || continue
2846   case $ac_file in
2847     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2848     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849           break;;
2850     * ) break;;
2851   esac
2852 done
2853 else
2854   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2857 See \`config.log' for more details." >&2;}
2858    { (exit 1); exit 1; }; }
2859 fi
2860
2861 rm -f conftest$ac_cv_exeext
2862 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2863 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2864
2865 rm -f conftest.$ac_ext
2866 EXEEXT=$ac_cv_exeext
2867 ac_exeext=$EXEEXT
2868 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2869 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2870 if test "${ac_cv_objext+set}" = set; then
2871   echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873   cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h.  */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h.  */
2879
2880 int
2881 main ()
2882 {
2883
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 rm -f conftest.o conftest.obj
2889 if { (ac_try="$ac_compile"
2890 case "(($ac_try" in
2891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892   *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895   (eval "$ac_compile") 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }; then
2899   for ac_file in conftest.o conftest.obj conftest.*; do
2900   test -f "$ac_file" || continue;
2901   case $ac_file in
2902     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2903     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2904        break;;
2905   esac
2906 done
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2914 See \`config.log' for more details." >&2;}
2915    { (exit 1); exit 1; }; }
2916 fi
2917
2918 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2919 fi
2920 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2921 echo "${ECHO_T}$ac_cv_objext" >&6; }
2922 OBJEXT=$ac_cv_objext
2923 ac_objext=$OBJEXT
2924 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2925 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2926 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929   cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935
2936 int
2937 main ()
2938 {
2939 #ifndef __GNUC__
2940        choke me
2941 #endif
2942
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (ac_try="$ac_compile"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954   (eval "$ac_compile") 2>conftest.er1
2955   ac_status=$?
2956   grep -v '^ *+' conftest.er1 >conftest.err
2957   rm -f conftest.er1
2958   cat conftest.err >&5
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); } && {
2961          test -z "$ac_c_werror_flag" ||
2962          test ! -s conftest.err
2963        } && test -s conftest.$ac_objext; then
2964   ac_compiler_gnu=yes
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969         ac_compiler_gnu=no
2970 fi
2971
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2974
2975 fi
2976 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2978 GCC=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CFLAGS=${CFLAGS+set}
2980 ac_save_CFLAGS=$CFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2982 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cc_g+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986   ac_save_c_werror_flag=$ac_c_werror_flag
2987    ac_c_werror_flag=yes
2988    ac_cv_prog_cc_g=no
2989    CFLAGS="-g"
2990    cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996
2997 int
2998 main ()
2999 {
3000
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compile") 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } && {
3019          test -z "$ac_c_werror_flag" ||
3020          test ! -s conftest.err
3021        } && test -s conftest.$ac_objext; then
3022   ac_cv_prog_cc_g=yes
3023 else
3024   echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3026
3027         CFLAGS=""
3028       cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034
3035 int
3036 main ()
3037 {
3038
3039   ;
3040   return 0;
3041 }
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3045 case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_compile") 2>conftest.er1
3051   ac_status=$?
3052   grep -v '^ *+' conftest.er1 >conftest.err
3053   rm -f conftest.er1
3054   cat conftest.err >&5
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); } && {
3057          test -z "$ac_c_werror_flag" ||
3058          test ! -s conftest.err
3059        } && test -s conftest.$ac_objext; then
3060   :
3061 else
3062   echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065         ac_c_werror_flag=$ac_save_c_werror_flag
3066          CFLAGS="-g"
3067          cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073
3074 int
3075 main ()
3076 {
3077
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3084 case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_compile") 2>conftest.er1
3090   ac_status=$?
3091   grep -v '^ *+' conftest.er1 >conftest.err
3092   rm -f conftest.er1
3093   cat conftest.err >&5
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); } && {
3096          test -z "$ac_c_werror_flag" ||
3097          test ! -s conftest.err
3098        } && test -s conftest.$ac_objext; then
3099   ac_cv_prog_cc_g=yes
3100 else
3101   echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104
3105 fi
3106
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 fi
3109
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 fi
3112
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114    ac_c_werror_flag=$ac_save_c_werror_flag
3115 fi
3116 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3117 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3118 if test "$ac_test_CFLAGS" = set; then
3119   CFLAGS=$ac_save_CFLAGS
3120 elif test $ac_cv_prog_cc_g = yes; then
3121   if test "$GCC" = yes; then
3122     CFLAGS="-g -O2"
3123   else
3124     CFLAGS="-g"
3125   fi
3126 else
3127   if test "$GCC" = yes; then
3128     CFLAGS="-O2"
3129   else
3130     CFLAGS=
3131   fi
3132 fi
3133 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3134 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3135 if test "${ac_cv_prog_cc_c89+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   ac_cv_prog_cc_c89=no
3139 ac_save_CC=$CC
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146 #include <stdarg.h>
3147 #include <stdio.h>
3148 #include <sys/types.h>
3149 #include <sys/stat.h>
3150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3151 struct buf { int x; };
3152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3153 static char *e (p, i)
3154      char **p;
3155      int i;
3156 {
3157   return p[i];
3158 }
3159 static char *f (char * (*g) (char **, int), char **p, ...)
3160 {
3161   char *s;
3162   va_list v;
3163   va_start (v,p);
3164   s = g (p, va_arg (v,int));
3165   va_end (v);
3166   return s;
3167 }
3168
3169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3170    function prototypes and stuff, but not '\xHH' hex character constants.
3171    These don't provoke an error unfortunately, instead are silently treated
3172    as 'x'.  The following induces an error, until -std is added to get
3173    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3174    array size at least.  It's necessary to write '\x00'==0 to get something
3175    that's true only with -std.  */
3176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3177
3178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3179    inside strings and character constants.  */
3180 #define FOO(x) 'x'
3181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3182
3183 int test (int i, double x);
3184 struct s1 {int (*f) (int a);};
3185 struct s2 {int (*f) (double a);};
3186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187 int argc;
3188 char **argv;
3189 int
3190 main ()
3191 {
3192 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3198         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3199 do
3200   CC="$ac_save_CC $ac_arg"
3201   rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3203 case "(($ac_try" in
3204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205   *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208   (eval "$ac_compile") 2>conftest.er1
3209   ac_status=$?
3210   grep -v '^ *+' conftest.er1 >conftest.err
3211   rm -f conftest.er1
3212   cat conftest.err >&5
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); } && {
3215          test -z "$ac_c_werror_flag" ||
3216          test ! -s conftest.err
3217        } && test -s conftest.$ac_objext; then
3218   ac_cv_prog_cc_c89=$ac_arg
3219 else
3220   echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223
3224 fi
3225
3226 rm -f core conftest.err conftest.$ac_objext
3227   test "x$ac_cv_prog_cc_c89" != "xno" && break
3228 done
3229 rm -f conftest.$ac_ext
3230 CC=$ac_save_CC
3231
3232 fi
3233 # AC_CACHE_VAL
3234 case "x$ac_cv_prog_cc_c89" in
3235   x)
3236     { echo "$as_me:$LINENO: result: none needed" >&5
3237 echo "${ECHO_T}none needed" >&6; } ;;
3238   xno)
3239     { echo "$as_me:$LINENO: result: unsupported" >&5
3240 echo "${ECHO_T}unsupported" >&6; } ;;
3241   *)
3242     CC="$CC $ac_cv_prog_cc_c89"
3243     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3244 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3245 esac
3246
3247
3248 ac_ext=c
3249 ac_cpp='$CPP $CPPFLAGS'
3250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253
3254 ac_ext=cpp
3255 ac_cpp='$CXXCPP $CPPFLAGS'
3256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3259 if test -z "$CXX"; then
3260   if test -n "$CCC"; then
3261     CXX=$CCC
3262   else
3263     if test -n "$ac_tool_prefix"; then
3264   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3265   do
3266     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3270 if test "${ac_cv_prog_CXX+set}" = set; then
3271   echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273   if test -n "$CXX"; then
3274   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281   for ac_exec_ext in '' $ac_executable_extensions; do
3282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 CXX=$ac_cv_prog_CXX
3294 if test -n "$CXX"; then
3295   { echo "$as_me:$LINENO: result: $CXX" >&5
3296 echo "${ECHO_T}$CXX" >&6; }
3297 else
3298   { echo "$as_me:$LINENO: result: no" >&5
3299 echo "${ECHO_T}no" >&6; }
3300 fi
3301
3302
3303     test -n "$CXX" && break
3304   done
3305 fi
3306 if test -z "$CXX"; then
3307   ac_ct_CXX=$CXX
3308   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3309 do
3310   # Extract the first word of "$ac_prog", so it can be a program name with args.
3311 set dummy $ac_prog; ac_word=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   if test -n "$ac_ct_CXX"; then
3318   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323   IFS=$as_save_IFS
3324   test -z "$as_dir" && as_dir=.
3325   for ac_exec_ext in '' $ac_executable_extensions; do
3326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327     ac_cv_prog_ac_ct_CXX="$ac_prog"
3328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329     break 2
3330   fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3338 if test -n "$ac_ct_CXX"; then
3339   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3340 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3341 else
3342   { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3344 fi
3345
3346
3347   test -n "$ac_ct_CXX" && break
3348 done
3349
3350   if test "x$ac_ct_CXX" = x; then
3351     CXX="g++"
3352   else
3353     case $cross_compiling:$ac_tool_warned in
3354 yes:)
3355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3356 whose name does not start with the host triplet.  If you think this
3357 configuration is useful to you, please write to autoconf@gnu.org." >&5
3358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3359 whose name does not start with the host triplet.  If you think this
3360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3361 ac_tool_warned=yes ;;
3362 esac
3363     CXX=$ac_ct_CXX
3364   fi
3365 fi
3366
3367   fi
3368 fi
3369 # Provide some information about the compiler.
3370 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3371 ac_compiler=`set X $ac_compile; echo $2`
3372 { (ac_try="$ac_compiler --version >&5"
3373 case "(($ac_try" in
3374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375   *) ac_try_echo=$ac_try;;
3376 esac
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378   (eval "$ac_compiler --version >&5") 2>&5
3379   ac_status=$?
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); }
3382 { (ac_try="$ac_compiler -v >&5"
3383 case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388   (eval "$ac_compiler -v >&5") 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }
3392 { (ac_try="$ac_compiler -V >&5"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398   (eval "$ac_compiler -V >&5") 2>&5
3399   ac_status=$?
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); }
3402
3403 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3404 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3405 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414
3415 int
3416 main ()
3417 {
3418 #ifndef __GNUC__
3419        choke me
3420 #endif
3421
3422   ;
3423   return 0;
3424 }
3425 _ACEOF
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433   (eval "$ac_compile") 2>conftest.er1
3434   ac_status=$?
3435   grep -v '^ *+' conftest.er1 >conftest.err
3436   rm -f conftest.er1
3437   cat conftest.err >&5
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } && {
3440          test -z "$ac_cxx_werror_flag" ||
3441          test ! -s conftest.err
3442        } && test -s conftest.$ac_objext; then
3443   ac_compiler_gnu=yes
3444 else
3445   echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448         ac_compiler_gnu=no
3449 fi
3450
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3453
3454 fi
3455 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3456 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3457 GXX=`test $ac_compiler_gnu = yes && echo yes`
3458 ac_test_CXXFLAGS=${CXXFLAGS+set}
3459 ac_save_CXXFLAGS=$CXXFLAGS
3460 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3461 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3462 if test "${ac_cv_prog_cxx_g+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3466    ac_cxx_werror_flag=yes
3467    ac_cv_prog_cxx_g=no
3468    CXXFLAGS="-g"
3469    cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (ac_try="$ac_compile"
3486 case "(($ac_try" in
3487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488   *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491   (eval "$ac_compile") 2>conftest.er1
3492   ac_status=$?
3493   grep -v '^ *+' conftest.er1 >conftest.err
3494   rm -f conftest.er1
3495   cat conftest.err >&5
3496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); } && {
3498          test -z "$ac_cxx_werror_flag" ||
3499          test ! -s conftest.err
3500        } && test -s conftest.$ac_objext; then
3501   ac_cv_prog_cxx_g=yes
3502 else
3503   echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506         CXXFLAGS=""
3507       cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513
3514 int
3515 main ()
3516 {
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3524 case "(($ac_try" in
3525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526   *) ac_try_echo=$ac_try;;
3527 esac
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529   (eval "$ac_compile") 2>conftest.er1
3530   ac_status=$?
3531   grep -v '^ *+' conftest.er1 >conftest.err
3532   rm -f conftest.er1
3533   cat conftest.err >&5
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } && {
3536          test -z "$ac_cxx_werror_flag" ||
3537          test ! -s conftest.err
3538        } && test -s conftest.$ac_objext; then
3539   :
3540 else
3541   echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3545          CXXFLAGS="-g"
3546          cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h.  */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h.  */
3552
3553 int
3554 main ()
3555 {
3556
3557   ;
3558   return 0;
3559 }
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (ac_try="$ac_compile"
3563 case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568   (eval "$ac_compile") 2>conftest.er1
3569   ac_status=$?
3570   grep -v '^ *+' conftest.er1 >conftest.err
3571   rm -f conftest.er1
3572   cat conftest.err >&5
3573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574   (exit $ac_status); } && {
3575          test -z "$ac_cxx_werror_flag" ||
3576          test ! -s conftest.err
3577        } && test -s conftest.$ac_objext; then
3578   ac_cv_prog_cxx_g=yes
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583
3584 fi
3585
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 fi
3591
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3594 fi
3595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3596 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3597 if test "$ac_test_CXXFLAGS" = set; then
3598   CXXFLAGS=$ac_save_CXXFLAGS
3599 elif test $ac_cv_prog_cxx_g = yes; then
3600   if test "$GXX" = yes; then
3601     CXXFLAGS="-g -O2"
3602   else
3603     CXXFLAGS="-g"
3604   fi
3605 else
3606   if test "$GXX" = yes; then
3607     CXXFLAGS="-O2"
3608   else
3609     CXXFLAGS=
3610   fi
3611 fi
3612 ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618 if test "x$CC" != xcc; then
3619   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3620 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3621 else
3622   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3623 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3624 fi
3625 set dummy $CC; ac_cc=`echo $2 |
3626                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3627 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 # Make sure it works both with $CC and with simple cc.
3646 # We do the test twice because some compilers refuse to overwrite an
3647 # existing .o file with -o, though they will create one.
3648 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3649 rm -f conftest2.*
3650 if { (case "(($ac_try" in
3651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652   *) ac_try_echo=$ac_try;;
3653 esac
3654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655   (eval "$ac_try") 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); } &&
3659    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664   (eval "$ac_try") 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); };
3668 then
3669   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3670   if test "x$CC" != xcc; then
3671     # Test first that cc exists at all.
3672     if { ac_try='cc -c conftest.$ac_ext >&5'
3673   { (case "(($ac_try" in
3674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675   *) ac_try_echo=$ac_try;;
3676 esac
3677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678   (eval "$ac_try") 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; }; then
3682       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3683       rm -f conftest2.*
3684       if { (case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689   (eval "$ac_try") 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); } &&
3693          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695   *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698   (eval "$ac_try") 2>&5
3699   ac_status=$?
3700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701   (exit $ac_status); };
3702       then
3703         # cc works too.
3704         :
3705       else
3706         # cc exists but doesn't like -o.
3707         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3708       fi
3709     fi
3710   fi
3711 else
3712   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3713 fi
3714 rm -f core conftest*
3715
3716 fi
3717 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3718   { echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6; }
3720 else
3721   { echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6; }
3723
3724 cat >>confdefs.h <<\_ACEOF
3725 #define NO_MINUS_C_MINUS_O 1
3726 _ACEOF
3727
3728 fi
3729
3730 ac_ext=c
3731 ac_cpp='$CPP $CPPFLAGS'
3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3736 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3737 # On Suns, sometimes $CPP names a directory.
3738 if test -n "$CPP" && test -d "$CPP"; then
3739   CPP=
3740 fi
3741 if test -z "$CPP"; then
3742   if test "${ac_cv_prog_CPP+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745       # Double quotes because CPP needs to be expanded
3746     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3747     do
3748       ac_preproc_ok=false
3749 for ac_c_preproc_warn_flag in '' yes
3750 do
3751   # Use a header file that comes with gcc, so configuring glibc
3752   # with a fresh cross-compiler works.
3753   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3754   # <limits.h> exists even on freestanding compilers.
3755   # On the NeXT, cc -E runs the code through the compiler's parser,
3756   # not just through cpp. "Syntax error" is here to catch this case.
3757   cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h.  */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h.  */
3763 #ifdef __STDC__
3764 # include <limits.h>
3765 #else
3766 # include <assert.h>
3767 #endif
3768                      Syntax error
3769 _ACEOF
3770 if { (ac_try="$ac_cpp conftest.$ac_ext"
3771 case "(($ac_try" in
3772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773   *) ac_try_echo=$ac_try;;
3774 esac
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3777   ac_status=$?
3778   grep -v '^ *+' conftest.er1 >conftest.err
3779   rm -f conftest.er1
3780   cat conftest.err >&5
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); } >/dev/null && {
3783          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3784          test ! -s conftest.err
3785        }; then
3786   :
3787 else
3788   echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791   # Broken: fails on valid input.
3792 continue
3793 fi
3794
3795 rm -f conftest.err conftest.$ac_ext
3796
3797   # OK, works on sane cases.  Now check whether nonexistent headers
3798   # can be detected and how.
3799   cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h.  */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h.  */
3805 #include <ac_nonexistent.h>
3806 _ACEOF
3807 if { (ac_try="$ac_cpp conftest.$ac_ext"
3808 case "(($ac_try" in
3809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810   *) ac_try_echo=$ac_try;;
3811 esac
3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3814   ac_status=$?
3815   grep -v '^ *+' conftest.er1 >conftest.err
3816   rm -f conftest.er1
3817   cat conftest.err >&5
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); } >/dev/null && {
3820          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3821          test ! -s conftest.err
3822        }; then
3823   # Broken: success on invalid input.
3824 continue
3825 else
3826   echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3828
3829   # Passes both tests.
3830 ac_preproc_ok=:
3831 break
3832 fi
3833
3834 rm -f conftest.err conftest.$ac_ext
3835
3836 done
3837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3838 rm -f conftest.err conftest.$ac_ext
3839 if $ac_preproc_ok; then
3840   break
3841 fi
3842
3843     done
3844     ac_cv_prog_CPP=$CPP
3845
3846 fi
3847   CPP=$ac_cv_prog_CPP
3848 else
3849   ac_cv_prog_CPP=$CPP
3850 fi
3851 { echo "$as_me:$LINENO: result: $CPP" >&5
3852 echo "${ECHO_T}$CPP" >&6; }
3853 ac_preproc_ok=false
3854 for ac_c_preproc_warn_flag in '' yes
3855 do
3856   # Use a header file that comes with gcc, so configuring glibc
3857   # with a fresh cross-compiler works.
3858   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3859   # <limits.h> exists even on freestanding compilers.
3860   # On the NeXT, cc -E runs the code through the compiler's parser,
3861   # not just through cpp. "Syntax error" is here to catch this case.
3862   cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h.  */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h.  */
3868 #ifdef __STDC__
3869 # include <limits.h>
3870 #else
3871 # include <assert.h>
3872 #endif
3873                      Syntax error
3874 _ACEOF
3875 if { (ac_try="$ac_cpp conftest.$ac_ext"
3876 case "(($ac_try" in
3877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878   *) ac_try_echo=$ac_try;;
3879 esac
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3882   ac_status=$?
3883   grep -v '^ *+' conftest.er1 >conftest.err
3884   rm -f conftest.er1
3885   cat conftest.err >&5
3886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887   (exit $ac_status); } >/dev/null && {
3888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3889          test ! -s conftest.err
3890        }; then
3891   :
3892 else
3893   echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896   # Broken: fails on valid input.
3897 continue
3898 fi
3899
3900 rm -f conftest.err conftest.$ac_ext
3901
3902   # OK, works on sane cases.  Now check whether nonexistent headers
3903   # can be detected and how.
3904   cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 #include <ac_nonexistent.h>
3911 _ACEOF
3912 if { (ac_try="$ac_cpp conftest.$ac_ext"
3913 case "(($ac_try" in
3914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915   *) ac_try_echo=$ac_try;;
3916 esac
3917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3919   ac_status=$?
3920   grep -v '^ *+' conftest.er1 >conftest.err
3921   rm -f conftest.er1
3922   cat conftest.err >&5
3923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); } >/dev/null && {
3925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3926          test ! -s conftest.err
3927        }; then
3928   # Broken: success on invalid input.
3929 continue
3930 else
3931   echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934   # Passes both tests.
3935 ac_preproc_ok=:
3936 break
3937 fi
3938
3939 rm -f conftest.err conftest.$ac_ext
3940
3941 done
3942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3943 rm -f conftest.err conftest.$ac_ext
3944 if $ac_preproc_ok; then
3945   :
3946 else
3947   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3948 See \`config.log' for more details." >&5
3949 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3950 See \`config.log' for more details." >&2;}
3951    { (exit 1); exit 1; }; }
3952 fi
3953
3954 ac_ext=c
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959
3960
3961 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3962 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3963 if test "${ac_cv_path_GREP+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   # Extract the first word of "grep ggrep" to use in msg output
3967 if test -z "$GREP"; then
3968 set dummy grep ggrep; ac_prog_name=$2
3969 if test "${ac_cv_path_GREP+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   ac_path_GREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979   for ac_prog in grep ggrep; do
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3982     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3983     # Check for GNU ac_path_GREP and select it if it is found.
3984   # Check for GNU $ac_path_GREP
3985 case `"$ac_path_GREP" --version 2>&1` in
3986 *GNU*)
3987   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988 *)
3989   ac_count=0
3990   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991   while :
3992   do
3993     cat "conftest.in" "conftest.in" >"conftest.tmp"
3994     mv "conftest.tmp" "conftest.in"
3995     cp "conftest.in" "conftest.nl"
3996     echo 'GREP' >> "conftest.nl"
3997     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999     ac_count=`expr $ac_count + 1`
4000     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4001       # Best one so far, save it but keep looking for a better one
4002       ac_cv_path_GREP="$ac_path_GREP"
4003       ac_path_GREP_max=$ac_count
4004     fi
4005     # 10*(2^10) chars as input seems more than enough
4006     test $ac_count -gt 10 && break
4007   done
4008   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 esac
4010
4011
4012     $ac_path_GREP_found && break 3
4013   done
4014 done
4015
4016 done
4017 IFS=$as_save_IFS
4018
4019
4020 fi
4021
4022 GREP="$ac_cv_path_GREP"
4023 if test -z "$GREP"; then
4024   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026    { (exit 1); exit 1; }; }
4027 fi
4028
4029 else
4030   ac_cv_path_GREP=$GREP
4031 fi
4032
4033
4034 fi
4035 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4036 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4037  GREP="$ac_cv_path_GREP"
4038
4039
4040 { echo "$as_me:$LINENO: checking for egrep" >&5
4041 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4042 if test "${ac_cv_path_EGREP+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4046    then ac_cv_path_EGREP="$GREP -E"
4047    else
4048      # Extract the first word of "egrep" to use in msg output
4049 if test -z "$EGREP"; then
4050 set dummy egrep; ac_prog_name=$2
4051 if test "${ac_cv_path_EGREP+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   ac_path_EGREP_found=false
4055 # Loop through the user's path and test for each of PROGNAME-LIST
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061   for ac_prog in egrep; do
4062   for ac_exec_ext in '' $ac_executable_extensions; do
4063     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4064     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4065     # Check for GNU ac_path_EGREP and select it if it is found.
4066   # Check for GNU $ac_path_EGREP
4067 case `"$ac_path_EGREP" --version 2>&1` in
4068 *GNU*)
4069   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070 *)
4071   ac_count=0
4072   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4073   while :
4074   do
4075     cat "conftest.in" "conftest.in" >"conftest.tmp"
4076     mv "conftest.tmp" "conftest.in"
4077     cp "conftest.in" "conftest.nl"
4078     echo 'EGREP' >> "conftest.nl"
4079     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4081     ac_count=`expr $ac_count + 1`
4082     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4083       # Best one so far, save it but keep looking for a better one
4084       ac_cv_path_EGREP="$ac_path_EGREP"
4085       ac_path_EGREP_max=$ac_count
4086     fi
4087     # 10*(2^10) chars as input seems more than enough
4088     test $ac_count -gt 10 && break
4089   done
4090   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091 esac
4092
4093
4094     $ac_path_EGREP_found && break 3
4095   done
4096 done
4097
4098 done
4099 IFS=$as_save_IFS
4100
4101
4102 fi
4103
4104 EGREP="$ac_cv_path_EGREP"
4105 if test -z "$EGREP"; then
4106   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4107 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4108    { (exit 1); exit 1; }; }
4109 fi
4110
4111 else
4112   ac_cv_path_EGREP=$EGREP
4113 fi
4114
4115
4116    fi
4117 fi
4118 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4119 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4120  EGREP="$ac_cv_path_EGREP"
4121
4122
4123 if test $ac_cv_c_compiler_gnu = yes; then
4124     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4125 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4126 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129     ac_pattern="Autoconf.*'x'"
4130   cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 #include <sgtty.h>
4137 Autoconf TIOCGETP
4138 _ACEOF
4139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4140   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4141   ac_cv_prog_gcc_traditional=yes
4142 else
4143   ac_cv_prog_gcc_traditional=no
4144 fi
4145 rm -f conftest*
4146
4147
4148   if test $ac_cv_prog_gcc_traditional = no; then
4149     cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155 #include <termio.h>
4156 Autoconf TCGETA
4157 _ACEOF
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4160   ac_cv_prog_gcc_traditional=yes
4161 fi
4162 rm -f conftest*
4163
4164   fi
4165 fi
4166 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4167 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4168   if test $ac_cv_prog_gcc_traditional = yes; then
4169     CC="$CC -traditional"
4170   fi
4171 fi
4172
4173 BASECC=`basename $CC`
4174 have_gcc=no
4175 if test "x$BASECC" = xgcc; then
4176    cat >>confdefs.h <<\_ACEOF
4177 #define HAVE_GCC 1
4178 _ACEOF
4179
4180    have_gcc=yes
4181 fi
4182 # Extract the first word of "$CXX", so it can be a program name with args.
4183 set dummy $CXX; ac_word=$2
4184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4186 if test "${ac_cv_path_CXX+set}" = set; then
4187   echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189   case $CXX in
4190   [\\/]* | ?:[\\/]*)
4191   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4192   ;;
4193   *)
4194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197   IFS=$as_save_IFS
4198   test -z "$as_dir" && as_dir=.
4199   for ac_exec_ext in '' $ac_executable_extensions; do
4200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203     break 2
4204   fi
4205 done
4206 done
4207 IFS=$as_save_IFS
4208
4209   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4210   ;;
4211 esac
4212 fi
4213 CXX=$ac_cv_path_CXX
4214 if test -n "$CXX"; then
4215   { echo "$as_me:$LINENO: result: $CXX" >&5
4216 echo "${ECHO_T}$CXX" >&6; }
4217 else
4218   { echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6; }
4220 fi
4221
4222
4223 if test ! -e $CXX; then
4224    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4225 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4226    { (exit 1); exit 1; }; }
4227 fi
4228
4229 # Find a good install program.  We prefer a C program (faster),
4230 # so one script is as good as another.  But avoid the broken or
4231 # incompatible versions:
4232 # SysV /etc/install, /usr/sbin/install
4233 # SunOS /usr/etc/install
4234 # IRIX /sbin/install
4235 # AIX /bin/install
4236 # AmigaOS /C/install, which installs bootblocks on floppy discs
4237 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4238 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4239 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4240 # OS/2's system install, which has a completely different semantic
4241 # ./install, which can be erroneously created by make from ./install.sh.
4242 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4243 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4244 if test -z "$INSTALL"; then
4245 if test "${ac_cv_path_install+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251   IFS=$as_save_IFS
4252   test -z "$as_dir" && as_dir=.
4253   # Account for people who put trailing slashes in PATH elements.
4254 case $as_dir/ in
4255   ./ | .// | /cC/* | \
4256   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4257   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4258   /usr/ucb/* ) ;;
4259   *)
4260     # OSF1 and SCO ODT 3.0 have their own names for install.
4261     # Don't use installbsd from OSF since it installs stuff as root
4262     # by default.
4263     for ac_prog in ginstall scoinst install; do
4264       for ac_exec_ext in '' $ac_executable_extensions; do
4265         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4266           if test $ac_prog = install &&
4267             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268             # AIX install.  It has an incompatible calling convention.
4269             :
4270           elif test $ac_prog = install &&
4271             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4272             # program-specific install script used by HP pwplus--don't use.
4273             :
4274           else
4275             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4276             break 3
4277           fi
4278         fi
4279       done
4280     done
4281     ;;
4282 esac
4283 done
4284 IFS=$as_save_IFS
4285
4286
4287 fi
4288   if test "${ac_cv_path_install+set}" = set; then
4289     INSTALL=$ac_cv_path_install
4290   else
4291     # As a last resort, use the slow shell script.  Don't cache a
4292     # value for INSTALL within a source directory, because that will
4293     # break other packages using the cache if that directory is
4294     # removed, or if the value is a relative name.
4295     INSTALL=$ac_install_sh
4296   fi
4297 fi
4298 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4299 echo "${ECHO_T}$INSTALL" >&6; }
4300
4301 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4302 # It thinks the first close brace ends the variable substitution.
4303 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4304
4305 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4306
4307 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4308
4309 # Extract the first word of "mv", so it can be a program name with args.
4310 set dummy mv; ac_word=$2
4311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4313 if test "${ac_cv_path_MV+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   case $MV in
4317   [\\/]* | ?:[\\/]*)
4318   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4319   ;;
4320   *)
4321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326   for ac_exec_ext in '' $ac_executable_extensions; do
4327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330     break 2
4331   fi
4332 done
4333 done
4334 IFS=$as_save_IFS
4335
4336   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4337   ;;
4338 esac
4339 fi
4340 MV=$ac_cv_path_MV
4341 if test -n "$MV"; then
4342   { echo "$as_me:$LINENO: result: $MV" >&5
4343 echo "${ECHO_T}$MV" >&6; }
4344 else
4345   { echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6; }
4347 fi
4348
4349
4350 # Extract the first word of "rm", so it can be a program name with args.
4351 set dummy rm; ac_word=$2
4352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4354 if test "${ac_cv_path_REMOVE+set}" = set; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357   case $REMOVE in
4358   [\\/]* | ?:[\\/]*)
4359   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4360   ;;
4361   *)
4362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367   for ac_exec_ext in '' $ac_executable_extensions; do
4368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4378   ;;
4379 esac
4380 fi
4381 REMOVE=$ac_cv_path_REMOVE
4382 if test -n "$REMOVE"; then
4383   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4384 echo "${ECHO_T}$REMOVE" >&6; }
4385 else
4386   { echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6; }
4388 fi
4389
4390
4391 # Extract the first word of "cp", so it can be a program name with args.
4392 set dummy cp; ac_word=$2
4393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4395 if test "${ac_cv_path_CP+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   case $CP in
4399   [\\/]* | ?:[\\/]*)
4400   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4401   ;;
4402   *)
4403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408   for ac_exec_ext in '' $ac_executable_extensions; do
4409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412     break 2
4413   fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4419   ;;
4420 esac
4421 fi
4422 CP=$ac_cv_path_CP
4423 if test -n "$CP"; then
4424   { echo "$as_me:$LINENO: result: $CP" >&5
4425 echo "${ECHO_T}$CP" >&6; }
4426 else
4427   { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4429 fi
4430
4431
4432 # Extract the first word of "sed", so it can be a program name with args.
4433 set dummy sed; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_path_SED+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   case $SED in
4440   [\\/]* | ?:[\\/]*)
4441   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4442   ;;
4443   *)
4444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449   for ac_exec_ext in '' $ac_executable_extensions; do
4450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456 done
4457 IFS=$as_save_IFS
4458
4459   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4460   ;;
4461 esac
4462 fi
4463 SED=$ac_cv_path_SED
4464 if test -n "$SED"; then
4465   { echo "$as_me:$LINENO: result: $SED" >&5
4466 echo "${ECHO_T}$SED" >&6; }
4467 else
4468   { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4470 fi
4471
4472
4473 # Extract the first word of "echo", so it can be a program name with args.
4474 set dummy echo; ac_word=$2
4475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4477 if test "${ac_cv_path_ECHO+set}" = set; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480   case $ECHO in
4481   [\\/]* | ?:[\\/]*)
4482   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4483   ;;
4484   *)
4485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4487 do
4488   IFS=$as_save_IFS
4489   test -z "$as_dir" && as_dir=.
4490   for ac_exec_ext in '' $ac_executable_extensions; do
4491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494     break 2
4495   fi
4496 done
4497 done
4498 IFS=$as_save_IFS
4499
4500   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4501   ;;
4502 esac
4503 fi
4504 ECHO=$ac_cv_path_ECHO
4505 if test -n "$ECHO"; then
4506   { echo "$as_me:$LINENO: result: $ECHO" >&5
4507 echo "${ECHO_T}$ECHO" >&6; }
4508 else
4509   { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4511 fi
4512
4513
4514 # Extract the first word of "cmp", so it can be a program name with args.
4515 set dummy cmp; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_path_CMP+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   case $CMP in
4522   [\\/]* | ?:[\\/]*)
4523   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4524   ;;
4525   *)
4526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529   IFS=$as_save_IFS
4530   test -z "$as_dir" && as_dir=.
4531   for ac_exec_ext in '' $ac_executable_extensions; do
4532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535     break 2
4536   fi
4537 done
4538 done
4539 IFS=$as_save_IFS
4540
4541   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4542   ;;
4543 esac
4544 fi
4545 CMP=$ac_cv_path_CMP
4546 if test -n "$CMP"; then
4547   { echo "$as_me:$LINENO: result: $CMP" >&5
4548 echo "${ECHO_T}$CMP" >&6; }
4549 else
4550   { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4552 fi
4553
4554
4555 # Extract the first word of "tbl", so it can be a program name with args.
4556 set dummy tbl; ac_word=$2
4557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559 if test "${ac_cv_path_TBL+set}" = set; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   case $TBL in
4563   [\\/]* | ?:[\\/]*)
4564   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4565   ;;
4566   *)
4567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572   for ac_exec_ext in '' $ac_executable_extensions; do
4573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576     break 2
4577   fi
4578 done
4579 done
4580 IFS=$as_save_IFS
4581
4582   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4583   ;;
4584 esac
4585 fi
4586 TBL=$ac_cv_path_TBL
4587 if test -n "$TBL"; then
4588   { echo "$as_me:$LINENO: result: $TBL" >&5
4589 echo "${ECHO_T}$TBL" >&6; }
4590 else
4591   { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4593 fi
4594
4595
4596 # Extract the first word of "ar", so it can be a program name with args.
4597 set dummy ar; ac_word=$2
4598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4600 if test "${ac_cv_path_AR+set}" = set; then
4601   echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603   case $AR in
4604   [\\/]* | ?:[\\/]*)
4605   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4606   ;;
4607   *)
4608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611   IFS=$as_save_IFS
4612   test -z "$as_dir" && as_dir=.
4613   for ac_exec_ext in '' $ac_executable_extensions; do
4614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617     break 2
4618   fi
4619 done
4620 done
4621 IFS=$as_save_IFS
4622
4623   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4624   ;;
4625 esac
4626 fi
4627 AR=$ac_cv_path_AR
4628 if test -n "$AR"; then
4629   { echo "$as_me:$LINENO: result: $AR" >&5
4630 echo "${ECHO_T}$AR" >&6; }
4631 else
4632   { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4634 fi
4635
4636
4637 # Extract the first word of "openssl", so it can be a program name with args.
4638 set dummy openssl; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_path_OPENSSL+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644   case $OPENSSL in
4645   [\\/]* | ?:[\\/]*)
4646   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4647   ;;
4648   *)
4649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654   for ac_exec_ext in '' $ac_executable_extensions; do
4655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658     break 2
4659   fi
4660 done
4661 done
4662 IFS=$as_save_IFS
4663
4664   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4665   ;;
4666 esac
4667 fi
4668 OPENSSL=$ac_cv_path_OPENSSL
4669 if test -n "$OPENSSL"; then
4670   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4671 echo "${ECHO_T}$OPENSSL" >&6; }
4672 else
4673   { echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6; }
4675 fi
4676
4677
4678 # Extract the first word of "mtx", so it can be a program name with args.
4679 set dummy mtx; ac_word=$2
4680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4682 if test "${ac_cv_path_MTX+set}" = set; then
4683   echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685   case $MTX in
4686   [\\/]* | ?:[\\/]*)
4687   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4688   ;;
4689   *)
4690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693   IFS=$as_save_IFS
4694   test -z "$as_dir" && as_dir=.
4695   for ac_exec_ext in '' $ac_executable_extensions; do
4696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699     break 2
4700   fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4706   ;;
4707 esac
4708 fi
4709 MTX=$ac_cv_path_MTX
4710 if test -n "$MTX"; then
4711   { echo "$as_me:$LINENO: result: $MTX" >&5
4712 echo "${ECHO_T}$MTX" >&6; }
4713 else
4714   { echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6; }
4716 fi
4717
4718
4719 # Extract the first word of "dd", so it can be a program name with args.
4720 set dummy dd; ac_word=$2
4721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4723 if test "${ac_cv_path_DD+set}" = set; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   case $DD in
4727   [\\/]* | ?:[\\/]*)
4728   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4729   ;;
4730   *)
4731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734   IFS=$as_save_IFS
4735   test -z "$as_dir" && as_dir=.
4736   for ac_exec_ext in '' $ac_executable_extensions; do
4737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740     break 2
4741   fi
4742 done
4743 done
4744 IFS=$as_save_IFS
4745
4746   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4747   ;;
4748 esac
4749 fi
4750 DD=$ac_cv_path_DD
4751 if test -n "$DD"; then
4752   { echo "$as_me:$LINENO: result: $DD" >&5
4753 echo "${ECHO_T}$DD" >&6; }
4754 else
4755   { echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6; }
4757 fi
4758
4759
4760 # Extract the first word of "mkisofs", so it can be a program name with args.
4761 set dummy mkisofs; ac_word=$2
4762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4764 if test "${ac_cv_path_MKISOFS+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   case $MKISOFS in
4768   [\\/]* | ?:[\\/]*)
4769   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4770   ;;
4771   *)
4772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775   IFS=$as_save_IFS
4776   test -z "$as_dir" && as_dir=.
4777   for ac_exec_ext in '' $ac_executable_extensions; do
4778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781     break 2
4782   fi
4783 done
4784 done
4785 IFS=$as_save_IFS
4786
4787   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4788   ;;
4789 esac
4790 fi
4791 MKISOFS=$ac_cv_path_MKISOFS
4792 if test -n "$MKISOFS"; then
4793   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4794 echo "${ECHO_T}$MKISOFS" >&6; }
4795 else
4796   { echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6; }
4798 fi
4799
4800
4801 # Extract the first word of "python", so it can be a program name with args.
4802 set dummy python; ac_word=$2
4803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4805 if test "${ac_cv_path_PYTHON+set}" = set; then
4806   echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808   case $PYTHON in
4809   [\\/]* | ?:[\\/]*)
4810   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4811   ;;
4812   *)
4813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816   IFS=$as_save_IFS
4817   test -z "$as_dir" && as_dir=.
4818   for ac_exec_ext in '' $ac_executable_extensions; do
4819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822     break 2
4823   fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4829   ;;
4830 esac
4831 fi
4832 PYTHON=$ac_cv_path_PYTHON
4833 if test -n "$PYTHON"; then
4834   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4835 echo "${ECHO_T}$PYTHON" >&6; }
4836 else
4837   { echo "$as_me:$LINENO: result: no" >&5
4838 echo "${ECHO_T}no" >&6; }
4839 fi
4840
4841
4842 # Extract the first word of "growisofs", so it can be a program name with args.
4843 set dummy growisofs; ac_word=$2
4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4846 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   case $GROWISOFS in
4850   [\\/]* | ?:[\\/]*)
4851   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4852   ;;
4853   *)
4854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857   IFS=$as_save_IFS
4858   test -z "$as_dir" && as_dir=.
4859   for ac_exec_ext in '' $ac_executable_extensions; do
4860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4863     break 2
4864   fi
4865 done
4866 done
4867 IFS=$as_save_IFS
4868
4869   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4870   ;;
4871 esac
4872 fi
4873 GROWISOFS=$ac_cv_path_GROWISOFS
4874 if test -n "$GROWISOFS"; then
4875   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4876 echo "${ECHO_T}$GROWISOFS" >&6; }
4877 else
4878   { echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6; }
4880 fi
4881
4882
4883 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4884 set dummy dvd+rw-mediainfo; ac_word=$2
4885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4887 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   case $DVDRWMEDIAINFO in
4891   [\\/]* | ?:[\\/]*)
4892   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4893   ;;
4894   *)
4895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898   IFS=$as_save_IFS
4899   test -z "$as_dir" && as_dir=.
4900   for ac_exec_ext in '' $ac_executable_extensions; do
4901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904     break 2
4905   fi
4906 done
4907 done
4908 IFS=$as_save_IFS
4909
4910   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4911   ;;
4912 esac
4913 fi
4914 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4915 if test -n "$DVDRWMEDIAINFO"; then
4916   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4917 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4918 else
4919   { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4921 fi
4922
4923
4924 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4925 set dummy dvd+rw-format; ac_word=$2
4926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4928 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931   case $DVDRWFORMAT in
4932   [\\/]* | ?:[\\/]*)
4933   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4934   ;;
4935   *)
4936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939   IFS=$as_save_IFS
4940   test -z "$as_dir" && as_dir=.
4941   for ac_exec_ext in '' $ac_executable_extensions; do
4942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945     break 2
4946   fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4952   ;;
4953 esac
4954 fi
4955 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4956 if test -n "$DVDRWFORMAT"; then
4957   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4958 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4959 else
4960   { echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6; }
4962 fi
4963
4964
4965 # Extract the first word of "pkg-config", so it can be a program name with args.
4966 set dummy pkg-config; ac_word=$2
4967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4969 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   case $PKGCONFIG in
4973   [\\/]* | ?:[\\/]*)
4974   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4975   ;;
4976   *)
4977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980   IFS=$as_save_IFS
4981   test -z "$as_dir" && as_dir=.
4982   for ac_exec_ext in '' $ac_executable_extensions; do
4983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986     break 2
4987   fi
4988 done
4989 done
4990 IFS=$as_save_IFS
4991
4992   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4993   ;;
4994 esac
4995 fi
4996 PKGCONFIG=$ac_cv_path_PKGCONFIG
4997 if test -n "$PKGCONFIG"; then
4998   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4999 echo "${ECHO_T}$PKGCONFIG" >&6; }
5000 else
5001   { echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6; }
5003 fi
5004
5005
5006 # Extract the first word of "qmake", so it can be a program name with args.
5007 set dummy qmake; ac_word=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_path_QMAKE+set}" = set; then
5011   echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013   case $QMAKE in
5014   [\\/]* | ?:[\\/]*)
5015   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5016   ;;
5017   *)
5018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023   for ac_exec_ext in '' $ac_executable_extensions; do
5024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027     break 2
5028   fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5034   ;;
5035 esac
5036 fi
5037 QMAKE=$ac_cv_path_QMAKE
5038 if test -n "$QMAKE"; then
5039   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5040 echo "${ECHO_T}$QMAKE" >&6; }
5041 else
5042   { echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6; }
5044 fi
5045
5046
5047 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5048 set dummy qmake-qt4; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   case $QMAKEQT4 in
5055   [\\/]* | ?:[\\/]*)
5056   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5057   ;;
5058   *)
5059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064   for ac_exec_ext in '' $ac_executable_extensions; do
5065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5075   ;;
5076 esac
5077 fi
5078 QMAKEQT4=$ac_cv_path_QMAKEQT4
5079 if test -n "$QMAKEQT4"; then
5080   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5081 echo "${ECHO_T}$QMAKEQT4" >&6; }
5082 else
5083   { echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6; }
5085 fi
5086
5087
5088
5089 if test "x$WXCONFIG" = x; then
5090    WXCONFIG=wx-config
5091 fi
5092 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5093 set dummy ${WXCONFIG}; ac_word=$2
5094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5096 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5097   echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099   case $WXCONFIG in
5100   [\\/]* | ?:[\\/]*)
5101   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5102   ;;
5103   *)
5104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109   for ac_exec_ext in '' $ac_executable_extensions; do
5110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113     break 2
5114   fi
5115 done
5116 done
5117 IFS=$as_save_IFS
5118
5119   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5120   ;;
5121 esac
5122 fi
5123 WXCONFIG=$ac_cv_path_WXCONFIG
5124 if test -n "$WXCONFIG"; then
5125   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5126 echo "${ECHO_T}$WXCONFIG" >&6; }
5127 else
5128   { echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6; }
5130 fi
5131
5132
5133
5134 # Extract the first word of "cdrecord", so it can be a program name with args.
5135 set dummy cdrecord; ac_word=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_path_CDRECORD+set}" = set; then
5139   echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141   case $CDRECORD in
5142   [\\/]* | ?:[\\/]*)
5143   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5144   ;;
5145   *)
5146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149   IFS=$as_save_IFS
5150   test -z "$as_dir" && as_dir=.
5151   for ac_exec_ext in '' $ac_executable_extensions; do
5152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155     break 2
5156   fi
5157 done
5158 done
5159 IFS=$as_save_IFS
5160
5161   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5162   ;;
5163 esac
5164 fi
5165 CDRECORD=$ac_cv_path_CDRECORD
5166 if test -n "$CDRECORD"; then
5167   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5168 echo "${ECHO_T}$CDRECORD" >&6; }
5169 else
5170   { echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6; }
5172 fi
5173
5174
5175 # Extract the first word of "pidof", so it can be a program name with args.
5176 set dummy pidof; ac_word=$2
5177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5179 if test "${ac_cv_path_PIDOF+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   case $PIDOF in
5183   [\\/]* | ?:[\\/]*)
5184   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5185   ;;
5186   *)
5187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190   IFS=$as_save_IFS
5191   test -z "$as_dir" && as_dir=.
5192   for ac_exec_ext in '' $ac_executable_extensions; do
5193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196     break 2
5197   fi
5198 done
5199 done
5200 IFS=$as_save_IFS
5201
5202   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5203   ;;
5204 esac
5205 fi
5206 PIDOF=$ac_cv_path_PIDOF
5207 if test -n "$PIDOF"; then
5208   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5209 echo "${ECHO_T}$PIDOF" >&6; }
5210 else
5211   { echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6; }
5213 fi
5214
5215
5216 for ac_prog in gawk mawk nawk awk
5217 do
5218   # Extract the first word of "$ac_prog", so it can be a program name with args.
5219 set dummy $ac_prog; ac_word=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_prog_AWK+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   if test -n "$AWK"; then
5226   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233   for ac_exec_ext in '' $ac_executable_extensions; do
5234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235     ac_cv_prog_AWK="$ac_prog"
5236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240 done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 AWK=$ac_cv_prog_AWK
5246 if test -n "$AWK"; then
5247   { echo "$as_me:$LINENO: result: $AWK" >&5
5248 echo "${ECHO_T}$AWK" >&6; }
5249 else
5250   { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5252 fi
5253
5254
5255   test -n "$AWK" && break
5256 done
5257
5258 # Some AWK programs fail, so test it and warn the user
5259 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5260       { if ((prog == $2) || (("(" prog ")") == $2) ||
5261       (("" prog "") == $2) ||
5262       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5263 else
5264   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5265    The regex engine of $AWK is too broken to be used you
5266    might want to install GNU AWK.
5267    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5268 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5269    The regex engine of $AWK is too broken to be used you
5270    might want to install GNU AWK.
5271    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5272    { (exit 1); exit 1; }; }
5273 fi
5274 THE_AWK=$AWK
5275 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5276 set dummy $THE_AWK; ac_word=$2
5277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5279 if test "${ac_cv_path_AWK+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   case $AWK in
5283   [\\/]* | ?:[\\/]*)
5284   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5285   ;;
5286   *)
5287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292   for ac_exec_ext in '' $ac_executable_extensions; do
5293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299 done
5300 IFS=$as_save_IFS
5301
5302   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5303   ;;
5304 esac
5305 fi
5306 AWK=$ac_cv_path_AWK
5307 if test -n "$AWK"; then
5308   { echo "$as_me:$LINENO: result: $AWK" >&5
5309 echo "${ECHO_T}$AWK" >&6; }
5310 else
5311   { echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6; }
5313 fi
5314
5315
5316
5317
5318 test -n "$ARFLAG" || ARFLAGS="cr"
5319
5320
5321 MAKE_SHELL=/bin/sh
5322
5323
5324
5325
5326
5327
5328
5329 # Check whether --enable-libtool was given.
5330 if test "${enable_libtool+set}" = set; then
5331   enableval=$enable_libtool;
5332        if test x$enableval = xno; then
5333           use_libtool=no
5334        fi
5335
5336
5337 fi
5338
5339 case `pwd` in
5340   *\ * | *\     *)
5341     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5342 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5343 esac
5344
5345
5346
5347 macro_version='2.2.6'
5348 macro_revision='1.3012'
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362 ltmain="$ac_aux_dir/ltmain.sh"
5363
5364 # Make sure we can run config.sub.
5365 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5366   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5367 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5368    { (exit 1); exit 1; }; }
5369
5370 { echo "$as_me:$LINENO: checking build system type" >&5
5371 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5372 if test "${ac_cv_build+set}" = set; then
5373   echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375   ac_build_alias=$build_alias
5376 test "x$ac_build_alias" = x &&
5377   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5378 test "x$ac_build_alias" = x &&
5379   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5380 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5381    { (exit 1); exit 1; }; }
5382 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5383   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5384 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5385    { (exit 1); exit 1; }; }
5386
5387 fi
5388 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5389 echo "${ECHO_T}$ac_cv_build" >&6; }
5390 case $ac_cv_build in
5391 *-*-*) ;;
5392 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5393 echo "$as_me: error: invalid value of canonical build" >&2;}
5394    { (exit 1); exit 1; }; };;
5395 esac
5396 build=$ac_cv_build
5397 ac_save_IFS=$IFS; IFS='-'
5398 set x $ac_cv_build
5399 shift
5400 build_cpu=$1
5401 build_vendor=$2
5402 shift; shift
5403 # Remember, the first character of IFS is used to create $*,
5404 # except with old shells:
5405 build_os=$*
5406 IFS=$ac_save_IFS
5407 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5408
5409
5410 { echo "$as_me:$LINENO: checking host system type" >&5
5411 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5412 if test "${ac_cv_host+set}" = set; then
5413   echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415   if test "x$host_alias" = x; then
5416   ac_cv_host=$ac_cv_build
5417 else
5418   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5419     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5420 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5421    { (exit 1); exit 1; }; }
5422 fi
5423
5424 fi
5425 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5426 echo "${ECHO_T}$ac_cv_host" >&6; }
5427 case $ac_cv_host in
5428 *-*-*) ;;
5429 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5430 echo "$as_me: error: invalid value of canonical host" >&2;}
5431    { (exit 1); exit 1; }; };;
5432 esac
5433 host=$ac_cv_host
5434 ac_save_IFS=$IFS; IFS='-'
5435 set x $ac_cv_host
5436 shift
5437 host_cpu=$1
5438 host_vendor=$2
5439 shift; shift
5440 # Remember, the first character of IFS is used to create $*,
5441 # except with old shells:
5442 host_os=$*
5443 IFS=$ac_save_IFS
5444 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5445
5446
5447 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5448 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5449 if test "${ac_cv_path_SED+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5453      for ac_i in 1 2 3 4 5 6 7; do
5454        ac_script="$ac_script$as_nl$ac_script"
5455      done
5456      echo "$ac_script" | sed 99q >conftest.sed
5457      $as_unset ac_script || ac_script=
5458      # Extract the first word of "sed gsed" to use in msg output
5459 if test -z "$SED"; then
5460 set dummy sed gsed; ac_prog_name=$2
5461 if test "${ac_cv_path_SED+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   ac_path_SED_found=false
5465 # Loop through the user's path and test for each of PROGNAME-LIST
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469   IFS=$as_save_IFS
5470   test -z "$as_dir" && as_dir=.
5471   for ac_prog in sed gsed; do
5472   for ac_exec_ext in '' $ac_executable_extensions; do
5473     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5474     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5475     # Check for GNU ac_path_SED and select it if it is found.
5476   # Check for GNU $ac_path_SED
5477 case `"$ac_path_SED" --version 2>&1` in
5478 *GNU*)
5479   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5480 *)
5481   ac_count=0
5482   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5483   while :
5484   do
5485     cat "conftest.in" "conftest.in" >"conftest.tmp"
5486     mv "conftest.tmp" "conftest.in"
5487     cp "conftest.in" "conftest.nl"
5488     echo '' >> "conftest.nl"
5489     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5490     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5491     ac_count=`expr $ac_count + 1`
5492     if test $ac_count -gt ${ac_path_SED_max-0}; then
5493       # Best one so far, save it but keep looking for a better one
5494       ac_cv_path_SED="$ac_path_SED"
5495       ac_path_SED_max=$ac_count
5496     fi
5497     # 10*(2^10) chars as input seems more than enough
5498     test $ac_count -gt 10 && break
5499   done
5500   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5501 esac
5502
5503
5504     $ac_path_SED_found && break 3
5505   done
5506 done
5507
5508 done
5509 IFS=$as_save_IFS
5510
5511
5512 fi
5513
5514 SED="$ac_cv_path_SED"
5515 if test -z "$SED"; then
5516   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5517 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5518    { (exit 1); exit 1; }; }
5519 fi
5520
5521 else
5522   ac_cv_path_SED=$SED
5523 fi
5524
5525 fi
5526 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5527 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5528  SED="$ac_cv_path_SED"
5529   rm -f conftest.sed
5530
5531 test -z "$SED" && SED=sed
5532 Xsed="$SED -e 1s/^X//"
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544 { echo "$as_me:$LINENO: checking for fgrep" >&5
5545 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5546 if test "${ac_cv_path_FGREP+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5550    then ac_cv_path_FGREP="$GREP -F"
5551    else
5552      # Extract the first word of "fgrep" to use in msg output
5553 if test -z "$FGREP"; then
5554 set dummy fgrep; ac_prog_name=$2
5555 if test "${ac_cv_path_FGREP+set}" = set; then
5556   echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558   ac_path_FGREP_found=false
5559 # Loop through the user's path and test for each of PROGNAME-LIST
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562 do
5563   IFS=$as_save_IFS
5564   test -z "$as_dir" && as_dir=.
5565   for ac_prog in fgrep; do
5566   for ac_exec_ext in '' $ac_executable_extensions; do
5567     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5568     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5569     # Check for GNU ac_path_FGREP and select it if it is found.
5570   # Check for GNU $ac_path_FGREP
5571 case `"$ac_path_FGREP" --version 2>&1` in
5572 *GNU*)
5573   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5574 *)
5575   ac_count=0
5576   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5577   while :
5578   do
5579     cat "conftest.in" "conftest.in" >"conftest.tmp"
5580     mv "conftest.tmp" "conftest.in"
5581     cp "conftest.in" "conftest.nl"
5582     echo 'FGREP' >> "conftest.nl"
5583     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5584     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5585     ac_count=`expr $ac_count + 1`
5586     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5587       # Best one so far, save it but keep looking for a better one
5588       ac_cv_path_FGREP="$ac_path_FGREP"
5589       ac_path_FGREP_max=$ac_count
5590     fi
5591     # 10*(2^10) chars as input seems more than enough
5592     test $ac_count -gt 10 && break
5593   done
5594   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5595 esac
5596
5597
5598     $ac_path_FGREP_found && break 3
5599   done
5600 done
5601
5602 done
5603 IFS=$as_save_IFS
5604
5605
5606 fi
5607
5608 FGREP="$ac_cv_path_FGREP"
5609 if test -z "$FGREP"; then
5610   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5611 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5612    { (exit 1); exit 1; }; }
5613 fi
5614
5615 else
5616   ac_cv_path_FGREP=$FGREP
5617 fi
5618
5619
5620    fi
5621 fi
5622 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5623 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5624  FGREP="$ac_cv_path_FGREP"
5625
5626
5627 test -z "$GREP" && GREP=grep
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647 # Check whether --with-gnu-ld was given.
5648 if test "${with_gnu_ld+set}" = set; then
5649   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5650 else
5651   with_gnu_ld=no
5652 fi
5653
5654 ac_prog=ld
5655 if test "$GCC" = yes; then
5656   # Check if gcc -print-prog-name=ld gives a path.
5657   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5658 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5659   case $host in
5660   *-*-mingw*)
5661     # gcc leaves a trailing carriage return which upsets mingw
5662     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5663   *)
5664     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5665   esac
5666   case $ac_prog in
5667     # Accept absolute paths.
5668     [\\/]* | ?:[\\/]*)
5669       re_direlt='/[^/][^/]*/\.\./'
5670       # Canonicalize the pathname of ld
5671       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5672       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5673         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5674       done
5675       test -z "$LD" && LD="$ac_prog"
5676       ;;
5677   "")
5678     # If it fails, then pretend we aren't using GCC.
5679     ac_prog=ld
5680     ;;
5681   *)
5682     # If it is relative, then search for the first ld in PATH.
5683     with_gnu_ld=unknown
5684     ;;
5685   esac
5686 elif test "$with_gnu_ld" = yes; then
5687   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5688 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5689 else
5690   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5691 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5692 fi
5693 if test "${lt_cv_path_LD+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   if test -z "$LD"; then
5697   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5698   for ac_dir in $PATH; do
5699     IFS="$lt_save_ifs"
5700     test -z "$ac_dir" && ac_dir=.
5701     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5702       lt_cv_path_LD="$ac_dir/$ac_prog"
5703       # Check to see if the program is GNU ld.  I'd rather use --version,
5704       # but apparently some variants of GNU ld only accept -v.
5705       # Break only if it was the GNU/non-GNU ld that we prefer.
5706       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5707       *GNU* | *'with BFD'*)
5708         test "$with_gnu_ld" != no && break
5709         ;;
5710       *)
5711         test "$with_gnu_ld" != yes && break
5712         ;;
5713       esac
5714     fi
5715   done
5716   IFS="$lt_save_ifs"
5717 else
5718   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5719 fi
5720 fi
5721
5722 LD="$lt_cv_path_LD"
5723 if test -n "$LD"; then
5724   { echo "$as_me:$LINENO: result: $LD" >&5
5725 echo "${ECHO_T}$LD" >&6; }
5726 else
5727   { echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6; }
5729 fi
5730 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5731 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5732    { (exit 1); exit 1; }; }
5733 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5734 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5735 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5736   echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5739 case `$LD -v 2>&1 </dev/null` in
5740 *GNU* | *'with BFD'*)
5741   lt_cv_prog_gnu_ld=yes
5742   ;;
5743 *)
5744   lt_cv_prog_gnu_ld=no
5745   ;;
5746 esac
5747 fi
5748 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5749 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5750 with_gnu_ld=$lt_cv_prog_gnu_ld
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5761 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5762 if test "${lt_cv_path_NM+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   if test -n "$NM"; then
5766   # Let the user override the test.
5767   lt_cv_path_NM="$NM"
5768 else
5769   lt_nm_to_check="${ac_tool_prefix}nm"
5770   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5771     lt_nm_to_check="$lt_nm_to_check nm"
5772   fi
5773   for lt_tmp_nm in $lt_nm_to_check; do
5774     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5775     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5776       IFS="$lt_save_ifs"
5777       test -z "$ac_dir" && ac_dir=.
5778       tmp_nm="$ac_dir/$lt_tmp_nm"
5779       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5780         # Check to see if the nm accepts a BSD-compat flag.
5781         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5782         #   nm: unknown option "B" ignored
5783         # Tru64's nm complains that /dev/null is an invalid object file
5784         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5785         */dev/null* | *'Invalid file or object type'*)
5786           lt_cv_path_NM="$tmp_nm -B"
5787           break
5788           ;;
5789         *)
5790           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5791           */dev/null*)
5792             lt_cv_path_NM="$tmp_nm -p"
5793             break
5794             ;;
5795           *)
5796             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5797             continue # so that we can try to find one that supports BSD flags
5798             ;;
5799           esac
5800           ;;
5801         esac
5802       fi
5803     done
5804     IFS="$lt_save_ifs"
5805   done
5806   : ${lt_cv_path_NM=no}
5807 fi
5808 fi
5809 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5810 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5811 if test "$lt_cv_path_NM" != "no"; then
5812   NM="$lt_cv_path_NM"
5813 else
5814   # Didn't find any BSD compatible name lister, look for dumpbin.
5815   if test -n "$ac_tool_prefix"; then
5816   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5817   do
5818     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   if test -n "$DUMPBIN"; then
5826   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833   for ac_exec_ext in '' $ac_executable_extensions; do
5834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 DUMPBIN=$ac_cv_prog_DUMPBIN
5846 if test -n "$DUMPBIN"; then
5847   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5848 echo "${ECHO_T}$DUMPBIN" >&6; }
5849 else
5850   { echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6; }
5852 fi
5853
5854
5855     test -n "$DUMPBIN" && break
5856   done
5857 fi
5858 if test -z "$DUMPBIN"; then
5859   ac_ct_DUMPBIN=$DUMPBIN
5860   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5861 do
5862   # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   if test -n "$ac_ct_DUMPBIN"; then
5870   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5890 if test -n "$ac_ct_DUMPBIN"; then
5891   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5892 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5893 else
5894   { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5896 fi
5897
5898
5899   test -n "$ac_ct_DUMPBIN" && break
5900 done
5901
5902   if test "x$ac_ct_DUMPBIN" = x; then
5903     DUMPBIN=":"
5904   else
5905     case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5908 whose name does not start with the host triplet.  If you think this
5909 configuration is useful to you, please write to autoconf@gnu.org." >&5
5910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5911 whose name does not start with the host triplet.  If you think this
5912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5913 ac_tool_warned=yes ;;
5914 esac
5915     DUMPBIN=$ac_ct_DUMPBIN
5916   fi
5917 fi
5918
5919
5920   if test "$DUMPBIN" != ":"; then
5921     NM="$DUMPBIN"
5922   fi
5923 fi
5924 test -z "$NM" && NM=nm
5925
5926
5927
5928
5929
5930
5931 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5932 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5933 if test "${lt_cv_nm_interface+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   lt_cv_nm_interface="BSD nm"
5937   echo "int some_variable = 0;" > conftest.$ac_ext
5938   (eval echo "\"\$as_me:5938: $ac_compile\"" >&5)
5939   (eval "$ac_compile" 2>conftest.err)
5940   cat conftest.err >&5
5941   (eval echo "\"\$as_me:5941: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5942   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5943   cat conftest.err >&5
5944   (eval echo "\"\$as_me:5944: output\"" >&5)
5945   cat conftest.out >&5
5946   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5947     lt_cv_nm_interface="MS dumpbin"
5948   fi
5949   rm -f conftest*
5950 fi
5951 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5952 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5953
5954 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5955 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5956 LN_S=$as_ln_s
5957 if test "$LN_S" = "ln -s"; then
5958   { echo "$as_me:$LINENO: result: yes" >&5
5959 echo "${ECHO_T}yes" >&6; }
5960 else
5961   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5962 echo "${ECHO_T}no, using $LN_S" >&6; }
5963 fi
5964
5965 # find the maximum length of command line arguments
5966 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5967 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5968 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971     i=0
5972   teststring="ABCD"
5973
5974   case $build_os in
5975   msdosdjgpp*)
5976     # On DJGPP, this test can blow up pretty badly due to problems in libc
5977     # (any single argument exceeding 2000 bytes causes a buffer overrun
5978     # during glob expansion).  Even if it were fixed, the result of this
5979     # check would be larger than it should be.
5980     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5981     ;;
5982
5983   gnu*)
5984     # Under GNU Hurd, this test is not required because there is
5985     # no limit to the length of command line arguments.
5986     # Libtool will interpret -1 as no limit whatsoever
5987     lt_cv_sys_max_cmd_len=-1;
5988     ;;
5989
5990   cygwin* | mingw* | cegcc*)
5991     # On Win9x/ME, this test blows up -- it succeeds, but takes
5992     # about 5 minutes as the teststring grows exponentially.
5993     # Worse, since 9x/ME are not pre-emptively multitasking,
5994     # you end up with a "frozen" computer, even though with patience
5995     # the test eventually succeeds (with a max line length of 256k).
5996     # Instead, let's just punt: use the minimum linelength reported by
5997     # all of the supported platforms: 8192 (on NT/2K/XP).
5998     lt_cv_sys_max_cmd_len=8192;
5999     ;;
6000
6001   amigaos*)
6002     # On AmigaOS with pdksh, this test takes hours, literally.
6003     # So we just punt and use a minimum line length of 8192.
6004     lt_cv_sys_max_cmd_len=8192;
6005     ;;
6006
6007   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6008     # This has been around since 386BSD, at least.  Likely further.
6009     if test -x /sbin/sysctl; then
6010       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6011     elif test -x /usr/sbin/sysctl; then
6012       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6013     else
6014       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6015     fi
6016     # And add a safety zone
6017     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6018     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6019     ;;
6020
6021   interix*)
6022     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6023     lt_cv_sys_max_cmd_len=196608
6024     ;;
6025
6026   osf*)
6027     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6028     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6029     # nice to cause kernel panics so lets avoid the loop below.
6030     # First set a reasonable default.
6031     lt_cv_sys_max_cmd_len=16384
6032     #
6033     if test -x /sbin/sysconfig; then
6034       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6035         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6036       esac
6037     fi
6038     ;;
6039   sco3.2v5*)
6040     lt_cv_sys_max_cmd_len=102400
6041     ;;
6042   sysv5* | sco5v6* | sysv4.2uw2*)
6043     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6044     if test -n "$kargmax"; then
6045       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6046     else
6047       lt_cv_sys_max_cmd_len=32768
6048     fi
6049     ;;
6050   *)
6051     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6052     if test -n "$lt_cv_sys_max_cmd_len"; then
6053       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6054       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6055     else
6056       # Make teststring a little bigger before we do anything with it.
6057       # a 1K string should be a reasonable start.
6058       for i in 1 2 3 4 5 6 7 8 ; do
6059         teststring=$teststring$teststring
6060       done
6061       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6062       # If test is not a shell built-in, we'll probably end up computing a
6063       # maximum length that is only half of the actual maximum length, but
6064       # we can't tell.
6065       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6066                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6067               test $i != 17 # 1/2 MB should be enough
6068       do
6069         i=`expr $i + 1`
6070         teststring=$teststring$teststring
6071       done
6072       # Only check the string length outside the loop.
6073       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6074       teststring=
6075       # Add a significant safety factor because C++ compilers can tack on
6076       # massive amounts of additional arguments before passing them to the
6077       # linker.  It appears as though 1/2 is a usable value.
6078       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6079     fi
6080     ;;
6081   esac
6082
6083 fi
6084
6085 if test -n $lt_cv_sys_max_cmd_len ; then
6086   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6087 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6088 else
6089   { echo "$as_me:$LINENO: result: none" >&5
6090 echo "${ECHO_T}none" >&6; }
6091 fi
6092 max_cmd_len=$lt_cv_sys_max_cmd_len
6093
6094
6095
6096
6097
6098
6099 : ${CP="cp -f"}
6100 : ${MV="mv -f"}
6101 : ${RM="rm -f"}
6102
6103 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6104 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6105 # Try some XSI features
6106 xsi_shell=no
6107 ( _lt_dummy="a/b/c"
6108   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6109       = c,a/b,, \
6110     && eval 'test $(( 1 + 1 )) -eq 2 \
6111     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6112   && xsi_shell=yes
6113 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6114 echo "${ECHO_T}$xsi_shell" >&6; }
6115
6116
6117 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6118 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6119 lt_shell_append=no
6120 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6121     >/dev/null 2>&1 \
6122   && lt_shell_append=yes
6123 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6124 echo "${ECHO_T}$lt_shell_append" >&6; }
6125
6126
6127 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6128   lt_unset=unset
6129 else
6130   lt_unset=false
6131 fi
6132
6133
6134
6135
6136
6137 # test EBCDIC or ASCII
6138 case `echo X|tr X '\101'` in
6139  A) # ASCII based system
6140     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6141   lt_SP2NL='tr \040 \012'
6142   lt_NL2SP='tr \015\012 \040\040'
6143   ;;
6144  *) # EBCDIC based system
6145   lt_SP2NL='tr \100 \n'
6146   lt_NL2SP='tr \r\n \100\100'
6147   ;;
6148 esac
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6159 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6160 if test "${lt_cv_ld_reload_flag+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   lt_cv_ld_reload_flag='-r'
6164 fi
6165 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6166 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6167 reload_flag=$lt_cv_ld_reload_flag
6168 case $reload_flag in
6169 "" | " "*) ;;
6170 *) reload_flag=" $reload_flag" ;;
6171 esac
6172 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6173 case $host_os in
6174   darwin*)
6175     if test "$GCC" = yes; then
6176       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6177     else
6178       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6179     fi
6180     ;;
6181 esac
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191 if test -n "$ac_tool_prefix"; then
6192   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6196 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6197   echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199   if test -n "$OBJDUMP"; then
6200   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207   for ac_exec_ext in '' $ac_executable_extensions; do
6208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 OBJDUMP=$ac_cv_prog_OBJDUMP
6220 if test -n "$OBJDUMP"; then
6221   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6222 echo "${ECHO_T}$OBJDUMP" >&6; }
6223 else
6224   { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6226 fi
6227
6228
6229 fi
6230 if test -z "$ac_cv_prog_OBJDUMP"; then
6231   ac_ct_OBJDUMP=$OBJDUMP
6232   # Extract the first word of "objdump", so it can be a program name with args.
6233 set dummy objdump; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   if test -n "$ac_ct_OBJDUMP"; then
6240   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6260 if test -n "$ac_ct_OBJDUMP"; then
6261   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6262 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6263 else
6264   { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6266 fi
6267
6268   if test "x$ac_ct_OBJDUMP" = x; then
6269     OBJDUMP="false"
6270   else
6271     case $cross_compiling:$ac_tool_warned in
6272 yes:)
6273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6274 whose name does not start with the host triplet.  If you think this
6275 configuration is useful to you, please write to autoconf@gnu.org." >&5
6276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6277 whose name does not start with the host triplet.  If you think this
6278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281     OBJDUMP=$ac_ct_OBJDUMP
6282   fi
6283 else
6284   OBJDUMP="$ac_cv_prog_OBJDUMP"
6285 fi
6286
6287 test -z "$OBJDUMP" && OBJDUMP=objdump
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6298 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6299 if test "${lt_cv_deplibs_check_method+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   lt_cv_file_magic_cmd='$MAGIC_CMD'
6303 lt_cv_file_magic_test_file=
6304 lt_cv_deplibs_check_method='unknown'
6305 # Need to set the preceding variable on all platforms that support
6306 # interlibrary dependencies.
6307 # 'none' -- dependencies not supported.
6308 # `unknown' -- same as none, but documents that we really don't know.
6309 # 'pass_all' -- all dependencies passed with no checks.
6310 # 'test_compile' -- check by making test program.
6311 # 'file_magic [[regex]]' -- check by looking for files in library path
6312 # which responds to the $file_magic_cmd with a given extended regex.
6313 # If you have `file' or equivalent on your system and you're not sure
6314 # whether `pass_all' will *always* work, you probably want this one.
6315
6316 case $host_os in
6317 aix[4-9]*)
6318   lt_cv_deplibs_check_method=pass_all
6319   ;;
6320
6321 beos*)
6322   lt_cv_deplibs_check_method=pass_all
6323   ;;
6324
6325 bsdi[45]*)
6326   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6327   lt_cv_file_magic_cmd='/usr/bin/file -L'
6328   lt_cv_file_magic_test_file=/shlib/libc.so
6329   ;;
6330
6331 cygwin*)
6332   # func_win32_libid is a shell function defined in ltmain.sh
6333   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6334   lt_cv_file_magic_cmd='func_win32_libid'
6335   ;;
6336
6337 mingw* | pw32*)
6338   # Base MSYS/MinGW do not provide the 'file' command needed by
6339   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6340   # unless we find 'file', for example because we are cross-compiling.
6341   if ( file / ) >/dev/null 2>&1; then
6342     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6343     lt_cv_file_magic_cmd='func_win32_libid'
6344   else
6345     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6346     lt_cv_file_magic_cmd='$OBJDUMP -f'
6347   fi
6348   ;;
6349
6350 cegcc)
6351   # use the weaker test based on 'objdump'. See mingw*.
6352   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6353   lt_cv_file_magic_cmd='$OBJDUMP -f'
6354   ;;
6355
6356 darwin* | rhapsody*)
6357   lt_cv_deplibs_check_method=pass_all
6358   ;;
6359
6360 freebsd* | dragonfly*)
6361   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6362     case $host_cpu in
6363     i*86 )
6364       # Not sure whether the presence of OpenBSD here was a mistake.
6365       # Let's accept both of them until this is cleared up.
6366       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6367       lt_cv_file_magic_cmd=/usr/bin/file
6368       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6369       ;;
6370     esac
6371   else
6372     lt_cv_deplibs_check_method=pass_all
6373   fi
6374   ;;
6375
6376 gnu*)
6377   lt_cv_deplibs_check_method=pass_all
6378   ;;
6379
6380 hpux10.20* | hpux11*)
6381   lt_cv_file_magic_cmd=/usr/bin/file
6382   case $host_cpu in
6383   ia64*)
6384     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6385     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6386     ;;
6387   hppa*64*)
6388     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6389     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6390     ;;
6391   *)
6392     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6393     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6394     ;;
6395   esac
6396   ;;
6397
6398 interix[3-9]*)
6399   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6400   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6401   ;;
6402
6403 irix5* | irix6* | nonstopux*)
6404   case $LD in
6405   *-32|*"-32 ") libmagic=32-bit;;
6406   *-n32|*"-n32 ") libmagic=N32;;
6407   *-64|*"-64 ") libmagic=64-bit;;
6408   *) libmagic=never-match;;
6409   esac
6410   lt_cv_deplibs_check_method=pass_all
6411   ;;
6412
6413 # This must be Linux ELF.
6414 linux* | k*bsd*-gnu)
6415   lt_cv_deplibs_check_method=pass_all
6416   ;;
6417
6418 netbsd*)
6419   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6420     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6421   else
6422     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6423   fi
6424   ;;
6425
6426 newos6*)
6427   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6428   lt_cv_file_magic_cmd=/usr/bin/file
6429   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6430   ;;
6431
6432 *nto* | *qnx*)
6433   lt_cv_deplibs_check_method=pass_all
6434   ;;
6435
6436 openbsd*)
6437   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6438     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6439   else
6440     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6441   fi
6442   ;;
6443
6444 osf3* | osf4* | osf5*)
6445   lt_cv_deplibs_check_method=pass_all
6446   ;;
6447
6448 rdos*)
6449   lt_cv_deplibs_check_method=pass_all
6450   ;;
6451
6452 solaris*)
6453   lt_cv_deplibs_check_method=pass_all
6454   ;;
6455
6456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6457   lt_cv_deplibs_check_method=pass_all
6458   ;;
6459
6460 sysv4 | sysv4.3*)
6461   case $host_vendor in
6462   motorola)
6463     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6464     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6465     ;;
6466   ncr)
6467     lt_cv_deplibs_check_method=pass_all
6468     ;;
6469   sequent)
6470     lt_cv_file_magic_cmd='/bin/file'
6471     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6472     ;;
6473   sni)
6474     lt_cv_file_magic_cmd='/bin/file'
6475     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6476     lt_cv_file_magic_test_file=/lib/libc.so
6477     ;;
6478   siemens)
6479     lt_cv_deplibs_check_method=pass_all
6480     ;;
6481   pc)
6482     lt_cv_deplibs_check_method=pass_all
6483     ;;
6484   esac
6485   ;;
6486
6487 tpf*)
6488   lt_cv_deplibs_check_method=pass_all
6489   ;;
6490 esac
6491
6492 fi
6493 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6494 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6495 file_magic_cmd=$lt_cv_file_magic_cmd
6496 deplibs_check_method=$lt_cv_deplibs_check_method
6497 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510 if test -n "$ac_tool_prefix"; then
6511   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}ar; ac_word=$2
6513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515 if test "${ac_cv_prog_AR+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   if test -n "$AR"; then
6519   ac_cv_prog_AR="$AR" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526   for ac_exec_ext in '' $ac_executable_extensions; do
6527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528     ac_cv_prog_AR="${ac_tool_prefix}ar"
6529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 AR=$ac_cv_prog_AR
6539 if test -n "$AR"; then
6540   { echo "$as_me:$LINENO: result: $AR" >&5
6541 echo "${ECHO_T}$AR" >&6; }
6542 else
6543   { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6545 fi
6546
6547
6548 fi
6549 if test -z "$ac_cv_prog_AR"; then
6550   ac_ct_AR=$AR
6551   # Extract the first word of "ar", so it can be a program name with args.
6552 set dummy ar; ac_word=$2
6553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6555 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558   if test -n "$ac_ct_AR"; then
6559   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564   IFS=$as_save_IFS
6565   test -z "$as_dir" && as_dir=.
6566   for ac_exec_ext in '' $ac_executable_extensions; do
6567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568     ac_cv_prog_ac_ct_AR="ar"
6569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570     break 2
6571   fi
6572 done
6573 done
6574 IFS=$as_save_IFS
6575
6576 fi
6577 fi
6578 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6579 if test -n "$ac_ct_AR"; then
6580   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6581 echo "${ECHO_T}$ac_ct_AR" >&6; }
6582 else
6583   { echo "$as_me:$LINENO: result: no" >&5
6584 echo "${ECHO_T}no" >&6; }
6585 fi
6586
6587   if test "x$ac_ct_AR" = x; then
6588     AR="false"
6589   else
6590     case $cross_compiling:$ac_tool_warned in
6591 yes:)
6592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6593 whose name does not start with the host triplet.  If you think this
6594 configuration is useful to you, please write to autoconf@gnu.org." >&5
6595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6596 whose name does not start with the host triplet.  If you think this
6597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6598 ac_tool_warned=yes ;;
6599 esac
6600     AR=$ac_ct_AR
6601   fi
6602 else
6603   AR="$ac_cv_prog_AR"
6604 fi
6605
6606 test -z "$AR" && AR=ar
6607 test -z "$AR_FLAGS" && AR_FLAGS=cru
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619 if test -n "$ac_tool_prefix"; then
6620   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}strip; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_prog_STRIP+set}" = set; then
6625   echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627   if test -n "$STRIP"; then
6628   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635   for ac_exec_ext in '' $ac_executable_extensions; do
6636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645 fi
6646 fi
6647 STRIP=$ac_cv_prog_STRIP
6648 if test -n "$STRIP"; then
6649   { echo "$as_me:$LINENO: result: $STRIP" >&5
6650 echo "${ECHO_T}$STRIP" >&6; }
6651 else
6652   { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6654 fi
6655
6656
6657 fi
6658 if test -z "$ac_cv_prog_STRIP"; then
6659   ac_ct_STRIP=$STRIP
6660   # Extract the first word of "strip", so it can be a program name with args.
6661 set dummy strip; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   if test -n "$ac_ct_STRIP"; then
6668   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   test -z "$as_dir" && as_dir=.
6675   for ac_exec_ext in '' $ac_executable_extensions; do
6676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677     ac_cv_prog_ac_ct_STRIP="strip"
6678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679     break 2
6680   fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6688 if test -n "$ac_ct_STRIP"; then
6689   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6690 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6691 else
6692   { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6694 fi
6695
6696   if test "x$ac_ct_STRIP" = x; then
6697     STRIP=":"
6698   else
6699     case $cross_compiling:$ac_tool_warned in
6700 yes:)
6701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6702 whose name does not start with the host triplet.  If you think this
6703 configuration is useful to you, please write to autoconf@gnu.org." >&5
6704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6705 whose name does not start with the host triplet.  If you think this
6706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709     STRIP=$ac_ct_STRIP
6710   fi
6711 else
6712   STRIP="$ac_cv_prog_STRIP"
6713 fi
6714
6715 test -z "$STRIP" && STRIP=:
6716
6717
6718
6719
6720
6721
6722 if test -n "$ac_tool_prefix"; then
6723   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_prog_RANLIB+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   if test -n "$RANLIB"; then
6731   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738   for ac_exec_ext in '' $ac_executable_extensions; do
6739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 RANLIB=$ac_cv_prog_RANLIB
6751 if test -n "$RANLIB"; then
6752   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6753 echo "${ECHO_T}$RANLIB" >&6; }
6754 else
6755   { echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6; }
6757 fi
6758
6759
6760 fi
6761 if test -z "$ac_cv_prog_RANLIB"; then
6762   ac_ct_RANLIB=$RANLIB
6763   # Extract the first word of "ranlib", so it can be a program name with args.
6764 set dummy ranlib; ac_word=$2
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6768   echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770   if test -n "$ac_ct_RANLIB"; then
6771   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776   IFS=$as_save_IFS
6777   test -z "$as_dir" && as_dir=.
6778   for ac_exec_ext in '' $ac_executable_extensions; do
6779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780     ac_cv_prog_ac_ct_RANLIB="ranlib"
6781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785 done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6791 if test -n "$ac_ct_RANLIB"; then
6792   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6793 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6794 else
6795   { echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6; }
6797 fi
6798
6799   if test "x$ac_ct_RANLIB" = x; then
6800     RANLIB=":"
6801   else
6802     case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6805 whose name does not start with the host triplet.  If you think this
6806 configuration is useful to you, please write to autoconf@gnu.org." >&5
6807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6808 whose name does not start with the host triplet.  If you think this
6809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6810 ac_tool_warned=yes ;;
6811 esac
6812     RANLIB=$ac_ct_RANLIB
6813   fi
6814 else
6815   RANLIB="$ac_cv_prog_RANLIB"
6816 fi
6817
6818 test -z "$RANLIB" && RANLIB=:
6819
6820
6821
6822
6823
6824
6825 # Determine commands to create old-style static archives.
6826 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6827 old_postinstall_cmds='chmod 644 $oldlib'
6828 old_postuninstall_cmds=
6829
6830 if test -n "$RANLIB"; then
6831   case $host_os in
6832   openbsd*)
6833     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6834     ;;
6835   *)
6836     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6837     ;;
6838   esac
6839   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6840 fi
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875 # If no C compiler was specified, use CC.
6876 LTCC=${LTCC-"$CC"}
6877
6878 # If no C compiler flags were specified, use CFLAGS.
6879 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6880
6881 # Allow CC to be a program name with arguments.
6882 compiler=$CC
6883
6884
6885 # Check for command to grab the raw symbol name followed by C symbol from nm.
6886 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6887 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6888 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891
6892 # These are sane defaults that work on at least a few old systems.
6893 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6894
6895 # Character class describing NM global symbol codes.
6896 symcode='[BCDEGRST]'
6897
6898 # Regexp to match symbols that can be accessed directly from C.
6899 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6900
6901 # Define system-specific variables.
6902 case $host_os in
6903 aix*)
6904   symcode='[BCDT]'
6905   ;;
6906 cygwin* | mingw* | pw32* | cegcc*)
6907   symcode='[ABCDGISTW]'
6908   ;;
6909 hpux*)
6910   if test "$host_cpu" = ia64; then
6911     symcode='[ABCDEGRST]'
6912   fi
6913   ;;
6914 irix* | nonstopux*)
6915   symcode='[BCDEGRST]'
6916   ;;
6917 osf*)
6918   symcode='[BCDEGQRST]'
6919   ;;
6920 solaris*)
6921   symcode='[BDRT]'
6922   ;;
6923 sco3.2v5*)
6924   symcode='[DT]'
6925   ;;
6926 sysv4.2uw2*)
6927   symcode='[DT]'
6928   ;;
6929 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6930   symcode='[ABDT]'
6931   ;;
6932 sysv4)
6933   symcode='[DFNSTU]'
6934   ;;
6935 esac
6936
6937 # If we're using GNU nm, then use its standard symbol codes.
6938 case `$NM -V 2>&1` in
6939 *GNU* | *'with BFD'*)
6940   symcode='[ABCDGIRSTW]' ;;
6941 esac
6942
6943 # Transform an extracted symbol line into a proper C declaration.
6944 # Some systems (esp. on ia64) link data and code symbols differently,
6945 # so use this general approach.
6946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6947
6948 # Transform an extracted symbol line into symbol name and symbol address
6949 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6950 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6951
6952 # Handle CRLF in mingw tool chain
6953 opt_cr=
6954 case $build_os in
6955 mingw*)
6956   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6957   ;;
6958 esac
6959
6960 # Try without a prefix underscore, then with it.
6961 for ac_symprfx in "" "_"; do
6962
6963   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6964   symxfrm="\\1 $ac_symprfx\\2 \\2"
6965
6966   # Write the raw and C identifiers.
6967   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6968     # Fake it for dumpbin and say T for any non-static function
6969     # and D for any global variable.
6970     # Also find C++ and __fastcall symbols from MSVC++,
6971     # which start with @ or ?.
6972     lt_cv_sys_global_symbol_pipe="$AWK '"\
6973 "     {last_section=section; section=\$ 3};"\
6974 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6975 "     \$ 0!~/External *\|/{next};"\
6976 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6977 "     {if(hide[section]) next};"\
6978 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6979 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6980 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6981 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6982 "     ' prfx=^$ac_symprfx"
6983   else
6984     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6985   fi
6986
6987   # Check to see that the pipe works correctly.
6988   pipe_works=no
6989
6990   rm -f conftest*
6991   cat > conftest.$ac_ext <<_LT_EOF
6992 #ifdef __cplusplus
6993 extern "C" {
6994 #endif
6995 char nm_test_var;
6996 void nm_test_func(void);
6997 void nm_test_func(void){}
6998 #ifdef __cplusplus
6999 }
7000 #endif
7001 int main(){nm_test_var='a';nm_test_func();return(0);}
7002 _LT_EOF
7003
7004   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005   (eval $ac_compile) 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); }; then
7009     # Now try to grab the symbols.
7010     nlist=conftest.nm
7011     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7012   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); } && test -s "$nlist"; then
7016       # Try sorting and uniquifying the output.
7017       if sort "$nlist" | uniq > "$nlist"T; then
7018         mv -f "$nlist"T "$nlist"
7019       else
7020         rm -f "$nlist"T
7021       fi
7022
7023       # Make sure that we snagged all the symbols we need.
7024       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7025         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7026           cat <<_LT_EOF > conftest.$ac_ext
7027 #ifdef __cplusplus
7028 extern "C" {
7029 #endif
7030
7031 _LT_EOF
7032           # Now generate the symbol file.
7033           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7034
7035           cat <<_LT_EOF >> conftest.$ac_ext
7036
7037 /* The mapping between symbol names and symbols.  */
7038 const struct {
7039   const char *name;
7040   void       *address;
7041 }
7042 lt__PROGRAM__LTX_preloaded_symbols[] =
7043 {
7044   { "@PROGRAM@", (void *) 0 },
7045 _LT_EOF
7046           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7047           cat <<\_LT_EOF >> conftest.$ac_ext
7048   {0, (void *) 0}
7049 };
7050
7051 /* This works around a problem in FreeBSD linker */
7052 #ifdef FREEBSD_WORKAROUND
7053 static const void *lt_preloaded_setup() {
7054   return lt__PROGRAM__LTX_preloaded_symbols;
7055 }
7056 #endif
7057
7058 #ifdef __cplusplus
7059 }
7060 #endif
7061 _LT_EOF
7062           # Now try linking the two files.
7063           mv conftest.$ac_objext conftstm.$ac_objext
7064           lt_save_LIBS="$LIBS"
7065           lt_save_CFLAGS="$CFLAGS"
7066           LIBS="conftstm.$ac_objext"
7067           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7068           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7069   (eval $ac_link) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7073             pipe_works=yes
7074           fi
7075           LIBS="$lt_save_LIBS"
7076           CFLAGS="$lt_save_CFLAGS"
7077         else
7078           echo "cannot find nm_test_func in $nlist" >&5
7079         fi
7080       else
7081         echo "cannot find nm_test_var in $nlist" >&5
7082       fi
7083     else
7084       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7085     fi
7086   else
7087     echo "$progname: failed program was:" >&5
7088     cat conftest.$ac_ext >&5
7089   fi
7090   rm -rf conftest* conftst*
7091
7092   # Do not use the global_symbol_pipe unless it works.
7093   if test "$pipe_works" = yes; then
7094     break
7095   else
7096     lt_cv_sys_global_symbol_pipe=
7097   fi
7098 done
7099
7100 fi
7101
7102 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7103   lt_cv_sys_global_symbol_to_cdecl=
7104 fi
7105 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7106   { echo "$as_me:$LINENO: result: failed" >&5
7107 echo "${ECHO_T}failed" >&6; }
7108 else
7109   { echo "$as_me:$LINENO: result: ok" >&5
7110 echo "${ECHO_T}ok" >&6; }
7111 fi
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134 # Check whether --enable-libtool-lock was given.
7135 if test "${enable_libtool_lock+set}" = set; then
7136   enableval=$enable_libtool_lock;
7137 fi
7138
7139 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7140
7141 # Some flags need to be propagated to the compiler or linker for good
7142 # libtool support.
7143 case $host in
7144 ia64-*-hpux*)
7145   # Find out which ABI we are using.
7146   echo 'int i;' > conftest.$ac_ext
7147   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7148   (eval $ac_compile) 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); }; then
7152     case `/usr/bin/file conftest.$ac_objext` in
7153       *ELF-32*)
7154         HPUX_IA64_MODE="32"
7155         ;;
7156       *ELF-64*)
7157         HPUX_IA64_MODE="64"
7158         ;;
7159     esac
7160   fi
7161   rm -rf conftest*
7162   ;;
7163 *-*-irix6*)
7164   # Find out which ABI we are using.
7165   echo '#line 7165 "configure"' > conftest.$ac_ext
7166   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167   (eval $ac_compile) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); }; then
7171     if test "$lt_cv_prog_gnu_ld" = yes; then
7172       case `/usr/bin/file conftest.$ac_objext` in
7173         *32-bit*)
7174           LD="${LD-ld} -melf32bsmip"
7175           ;;
7176         *N32*)
7177           LD="${LD-ld} -melf32bmipn32"
7178           ;;
7179         *64-bit*)
7180           LD="${LD-ld} -melf64bmip"
7181         ;;
7182       esac
7183     else
7184       case `/usr/bin/file conftest.$ac_objext` in
7185         *32-bit*)
7186           LD="${LD-ld} -32"
7187           ;;
7188         *N32*)
7189           LD="${LD-ld} -n32"
7190           ;;
7191         *64-bit*)
7192           LD="${LD-ld} -64"
7193           ;;
7194       esac
7195     fi
7196   fi
7197   rm -rf conftest*
7198   ;;
7199
7200 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7201 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7202   # Find out which ABI we are using.
7203   echo 'int i;' > conftest.$ac_ext
7204   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205   (eval $ac_compile) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); }; then
7209     case `/usr/bin/file conftest.o` in
7210       *32-bit*)
7211         case $host in
7212           x86_64-*kfreebsd*-gnu)
7213             LD="${LD-ld} -m elf_i386_fbsd"
7214             ;;
7215           x86_64-*linux*)
7216             LD="${LD-ld} -m elf_i386"
7217             ;;
7218           ppc64-*linux*|powerpc64-*linux*)
7219             LD="${LD-ld} -m elf32ppclinux"
7220             ;;
7221           s390x-*linux*)
7222             LD="${LD-ld} -m elf_s390"
7223             ;;
7224           sparc64-*linux*)
7225             LD="${LD-ld} -m elf32_sparc"
7226             ;;
7227         esac
7228         ;;
7229       *64-bit*)
7230         case $host in
7231           x86_64-*kfreebsd*-gnu)
7232             LD="${LD-ld} -m elf_x86_64_fbsd"
7233             ;;
7234           x86_64-*linux*)
7235             LD="${LD-ld} -m elf_x86_64"
7236             ;;
7237           ppc*-*linux*|powerpc*-*linux*)
7238             LD="${LD-ld} -m elf64ppc"
7239             ;;
7240           s390*-*linux*|s390*-*tpf*)
7241             LD="${LD-ld} -m elf64_s390"
7242             ;;
7243           sparc*-*linux*)
7244             LD="${LD-ld} -m elf64_sparc"
7245             ;;
7246         esac
7247         ;;
7248     esac
7249   fi
7250   rm -rf conftest*
7251   ;;
7252
7253 *-*-sco3.2v5*)
7254   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7255   SAVE_CFLAGS="$CFLAGS"
7256   CFLAGS="$CFLAGS -belf"
7257   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7258 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7259 if test "${lt_cv_cc_needs_belf+set}" = set; then
7260   echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262   ac_ext=c
7263 ac_cpp='$CPP $CPPFLAGS'
7264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267
7268      cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h.  */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h.  */
7274
7275 int
7276 main ()
7277 {
7278
7279   ;
7280   return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (ac_try="$ac_link"
7285 case "(($ac_try" in
7286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287   *) ac_try_echo=$ac_try;;
7288 esac
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290   (eval "$ac_link") 2>conftest.er1
7291   ac_status=$?
7292   grep -v '^ *+' conftest.er1 >conftest.err
7293   rm -f conftest.er1
7294   cat conftest.err >&5
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } && {
7297          test -z "$ac_c_werror_flag" ||
7298          test ! -s conftest.err
7299        } && test -s conftest$ac_exeext &&
7300        $as_test_x conftest$ac_exeext; then
7301   lt_cv_cc_needs_belf=yes
7302 else
7303   echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7305
7306         lt_cv_cc_needs_belf=no
7307 fi
7308
7309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7310       conftest$ac_exeext conftest.$ac_ext
7311      ac_ext=c
7312 ac_cpp='$CPP $CPPFLAGS'
7313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316
7317 fi
7318 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7319 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7320   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7321     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7322     CFLAGS="$SAVE_CFLAGS"
7323   fi
7324   ;;
7325 sparc*-*solaris*)
7326   # Find out which ABI we are using.
7327   echo 'int i;' > conftest.$ac_ext
7328   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329   (eval $ac_compile) 2>&5
7330   ac_status=$?
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); }; then
7333     case `/usr/bin/file conftest.o` in
7334     *64-bit*)
7335       case $lt_cv_prog_gnu_ld in
7336       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7337       *)
7338         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7339           LD="${LD-ld} -64"
7340         fi
7341         ;;
7342       esac
7343       ;;
7344     esac
7345   fi
7346   rm -rf conftest*
7347   ;;
7348 esac
7349
7350 need_locks="$enable_libtool_lock"
7351
7352
7353   case $host_os in
7354     rhapsody* | darwin*)
7355     if test -n "$ac_tool_prefix"; then
7356   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   if test -n "$DSYMUTIL"; then
7364   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371   for ac_exec_ext in '' $ac_executable_extensions; do
7372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378 done
7379 IFS=$as_save_IFS
7380
7381 fi
7382 fi
7383 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7384 if test -n "$DSYMUTIL"; then
7385   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7386 echo "${ECHO_T}$DSYMUTIL" >&6; }
7387 else
7388   { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7390 fi
7391
7392
7393 fi
7394 if test -z "$ac_cv_prog_DSYMUTIL"; then
7395   ac_ct_DSYMUTIL=$DSYMUTIL
7396   # Extract the first word of "dsymutil", so it can be a program name with args.
7397 set dummy dsymutil; ac_word=$2
7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403   if test -n "$ac_ct_DSYMUTIL"; then
7404   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   test -z "$as_dir" && as_dir=.
7411   for ac_exec_ext in '' $ac_executable_extensions; do
7412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7424 if test -n "$ac_ct_DSYMUTIL"; then
7425   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7426 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7427 else
7428   { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7430 fi
7431
7432   if test "x$ac_ct_DSYMUTIL" = x; then
7433     DSYMUTIL=":"
7434   else
7435     case $cross_compiling:$ac_tool_warned in
7436 yes:)
7437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7438 whose name does not start with the host triplet.  If you think this
7439 configuration is useful to you, please write to autoconf@gnu.org." >&5
7440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7441 whose name does not start with the host triplet.  If you think this
7442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7443 ac_tool_warned=yes ;;
7444 esac
7445     DSYMUTIL=$ac_ct_DSYMUTIL
7446   fi
7447 else
7448   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7449 fi
7450
7451     if test -n "$ac_tool_prefix"; then
7452   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7453 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   if test -n "$NMEDIT"; then
7460   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477 fi
7478 fi
7479 NMEDIT=$ac_cv_prog_NMEDIT
7480 if test -n "$NMEDIT"; then
7481   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7482 echo "${ECHO_T}$NMEDIT" >&6; }
7483 else
7484   { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7486 fi
7487
7488
7489 fi
7490 if test -z "$ac_cv_prog_NMEDIT"; then
7491   ac_ct_NMEDIT=$NMEDIT
7492   # Extract the first word of "nmedit", so it can be a program name with args.
7493 set dummy nmedit; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   if test -n "$ac_ct_NMEDIT"; then
7500   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7501 else
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507   for ac_exec_ext in '' $ac_executable_extensions; do
7508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517 fi
7518 fi
7519 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7520 if test -n "$ac_ct_NMEDIT"; then
7521   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7522 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7523 else
7524   { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7526 fi
7527
7528   if test "x$ac_ct_NMEDIT" = x; then
7529     NMEDIT=":"
7530   else
7531     case $cross_compiling:$ac_tool_warned in
7532 yes:)
7533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7534 whose name does not start with the host triplet.  If you think this
7535 configuration is useful to you, please write to autoconf@gnu.org." >&5
7536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7537 whose name does not start with the host triplet.  If you think this
7538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7539 ac_tool_warned=yes ;;
7540 esac
7541     NMEDIT=$ac_ct_NMEDIT
7542   fi
7543 else
7544   NMEDIT="$ac_cv_prog_NMEDIT"
7545 fi
7546
7547     if test -n "$ac_tool_prefix"; then
7548   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7549 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_prog_LIPO+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   if test -n "$LIPO"; then
7556   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563   for ac_exec_ext in '' $ac_executable_extensions; do
7564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570 done
7571 IFS=$as_save_IFS
7572
7573 fi
7574 fi
7575 LIPO=$ac_cv_prog_LIPO
7576 if test -n "$LIPO"; then
7577   { echo "$as_me:$LINENO: result: $LIPO" >&5
7578 echo "${ECHO_T}$LIPO" >&6; }
7579 else
7580   { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7582 fi
7583
7584
7585 fi
7586 if test -z "$ac_cv_prog_LIPO"; then
7587   ac_ct_LIPO=$LIPO
7588   # Extract the first word of "lipo", so it can be a program name with args.
7589 set dummy lipo; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   if test -n "$ac_ct_LIPO"; then
7596   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603   for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_prog_ac_ct_LIPO="lipo"
7606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610 done
7611 IFS=$as_save_IFS
7612
7613 fi
7614 fi
7615 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7616 if test -n "$ac_ct_LIPO"; then
7617   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7618 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7619 else
7620   { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7622 fi
7623
7624   if test "x$ac_ct_LIPO" = x; then
7625     LIPO=":"
7626   else
7627     case $cross_compiling:$ac_tool_warned in
7628 yes:)
7629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7630 whose name does not start with the host triplet.  If you think this
7631 configuration is useful to you, please write to autoconf@gnu.org." >&5
7632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7633 whose name does not start with the host triplet.  If you think this
7634 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7635 ac_tool_warned=yes ;;
7636 esac
7637     LIPO=$ac_ct_LIPO
7638   fi
7639 else
7640   LIPO="$ac_cv_prog_LIPO"
7641 fi
7642
7643     if test -n "$ac_tool_prefix"; then
7644   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7645 set dummy ${ac_tool_prefix}otool; ac_word=$2
7646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7648 if test "${ac_cv_prog_OTOOL+set}" = set; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651   if test -n "$OTOOL"; then
7652   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659   for ac_exec_ext in '' $ac_executable_extensions; do
7660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 OTOOL=$ac_cv_prog_OTOOL
7672 if test -n "$OTOOL"; then
7673   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7674 echo "${ECHO_T}$OTOOL" >&6; }
7675 else
7676   { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7678 fi
7679
7680
7681 fi
7682 if test -z "$ac_cv_prog_OTOOL"; then
7683   ac_ct_OTOOL=$OTOOL
7684   # Extract the first word of "otool", so it can be a program name with args.
7685 set dummy otool; ac_word=$2
7686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7688 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7689   echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691   if test -n "$ac_ct_OTOOL"; then
7692   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7693 else
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7696 do
7697   IFS=$as_save_IFS
7698   test -z "$as_dir" && as_dir=.
7699   for ac_exec_ext in '' $ac_executable_extensions; do
7700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7701     ac_cv_prog_ac_ct_OTOOL="otool"
7702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703     break 2
7704   fi
7705 done
7706 done
7707 IFS=$as_save_IFS
7708
7709 fi
7710 fi
7711 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7712 if test -n "$ac_ct_OTOOL"; then
7713   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7714 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7715 else
7716   { echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6; }
7718 fi
7719
7720   if test "x$ac_ct_OTOOL" = x; then
7721     OTOOL=":"
7722   else
7723     case $cross_compiling:$ac_tool_warned in
7724 yes:)
7725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7726 whose name does not start with the host triplet.  If you think this
7727 configuration is useful to you, please write to autoconf@gnu.org." >&5
7728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7729 whose name does not start with the host triplet.  If you think this
7730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7731 ac_tool_warned=yes ;;
7732 esac
7733     OTOOL=$ac_ct_OTOOL
7734   fi
7735 else
7736   OTOOL="$ac_cv_prog_OTOOL"
7737 fi
7738
7739     if test -n "$ac_tool_prefix"; then
7740   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7741 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747   if test -n "$OTOOL64"; then
7748   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753   IFS=$as_save_IFS
7754   test -z "$as_dir" && as_dir=.
7755   for ac_exec_ext in '' $ac_executable_extensions; do
7756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759     break 2
7760   fi
7761 done
7762 done
7763 IFS=$as_save_IFS
7764
7765 fi
7766 fi
7767 OTOOL64=$ac_cv_prog_OTOOL64
7768 if test -n "$OTOOL64"; then
7769   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7770 echo "${ECHO_T}$OTOOL64" >&6; }
7771 else
7772   { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7774 fi
7775
7776
7777 fi
7778 if test -z "$ac_cv_prog_OTOOL64"; then
7779   ac_ct_OTOOL64=$OTOOL64
7780   # Extract the first word of "otool64", so it can be a program name with args.
7781 set dummy otool64; ac_word=$2
7782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787   if test -n "$ac_ct_OTOOL64"; then
7788   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793   IFS=$as_save_IFS
7794   test -z "$as_dir" && as_dir=.
7795   for ac_exec_ext in '' $ac_executable_extensions; do
7796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797     ac_cv_prog_ac_ct_OTOOL64="otool64"
7798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799     break 2
7800   fi
7801 done
7802 done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7808 if test -n "$ac_ct_OTOOL64"; then
7809   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7810 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7811 else
7812   { echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6; }
7814 fi
7815
7816   if test "x$ac_ct_OTOOL64" = x; then
7817     OTOOL64=":"
7818   else
7819     case $cross_compiling:$ac_tool_warned in
7820 yes:)
7821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7822 whose name does not start with the host triplet.  If you think this
7823 configuration is useful to you, please write to autoconf@gnu.org." >&5
7824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7825 whose name does not start with the host triplet.  If you think this
7826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7827 ac_tool_warned=yes ;;
7828 esac
7829     OTOOL64=$ac_ct_OTOOL64
7830   fi
7831 else
7832   OTOOL64="$ac_cv_prog_OTOOL64"
7833 fi
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7862 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7863 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7864   echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866   lt_cv_apple_cc_single_mod=no
7867       if test -z "${LT_MULTI_MODULE}"; then
7868         # By default we will add the -single_module flag. You can override
7869         # by either setting the environment variable LT_MULTI_MODULE
7870         # non-empty at configure time, or by adding -multi_module to the
7871         # link flags.
7872         rm -rf libconftest.dylib*
7873         echo "int foo(void){return 1;}" > conftest.c
7874         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7875 -dynamiclib -Wl,-single_module conftest.c" >&5
7876         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7877           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7878         _lt_result=$?
7879         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7880           lt_cv_apple_cc_single_mod=yes
7881         else
7882           cat conftest.err >&5
7883         fi
7884         rm -rf libconftest.dylib*
7885         rm -f conftest.*
7886       fi
7887 fi
7888 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7889 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7890     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7891 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7892 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7893   echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895   lt_cv_ld_exported_symbols_list=no
7896       save_LDFLAGS=$LDFLAGS
7897       echo "_main" > conftest.sym
7898       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7899       cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905
7906 int
7907 main ()
7908 {
7909
7910   ;
7911   return 0;
7912 }
7913 _ACEOF
7914 rm -f conftest.$ac_objext conftest$ac_exeext
7915 if { (ac_try="$ac_link"
7916 case "(($ac_try" in
7917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918   *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921   (eval "$ac_link") 2>conftest.er1
7922   ac_status=$?
7923   grep -v '^ *+' conftest.er1 >conftest.err
7924   rm -f conftest.er1
7925   cat conftest.err >&5
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); } && {
7928          test -z "$ac_c_werror_flag" ||
7929          test ! -s conftest.err
7930        } && test -s conftest$ac_exeext &&
7931        $as_test_x conftest$ac_exeext; then
7932   lt_cv_ld_exported_symbols_list=yes
7933 else
7934   echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7936
7937         lt_cv_ld_exported_symbols_list=no
7938 fi
7939
7940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7941       conftest$ac_exeext conftest.$ac_ext
7942         LDFLAGS="$save_LDFLAGS"
7943
7944 fi
7945 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7946 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7947     case $host_os in
7948     rhapsody* | darwin1.[012])
7949       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7950     darwin1.*)
7951       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7952     darwin*) # darwin 5.x on
7953       # if running on 10.5 or later, the deployment target defaults
7954       # to the OS version, if on x86, and 10.4, the deployment
7955       # target defaults to 10.4. Don't you love it?
7956       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7957         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7958           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7959         10.[012]*)
7960           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7961         10.*)
7962           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7963       esac
7964     ;;
7965   esac
7966     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7967       _lt_dar_single_mod='$single_module'
7968     fi
7969     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7970       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7971     else
7972       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7973     fi
7974     if test "$DSYMUTIL" != ":"; then
7975       _lt_dsymutil='~$DSYMUTIL $lib || :'
7976     else
7977       _lt_dsymutil=
7978     fi
7979     ;;
7980   esac
7981
7982 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7983 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7984 if test "${ac_cv_header_stdc+set}" = set; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h.  */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h.  */
7993 #include <stdlib.h>
7994 #include <stdarg.h>
7995 #include <string.h>
7996 #include <float.h>
7997
7998 int
7999 main ()
8000 {
8001
8002   ;
8003   return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext
8007 if { (ac_try="$ac_compile"
8008 case "(($ac_try" in
8009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010   *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013   (eval "$ac_compile") 2>conftest.er1
8014   ac_status=$?
8015   grep -v '^ *+' conftest.er1 >conftest.err
8016   rm -f conftest.er1
8017   cat conftest.err >&5
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } && {
8020          test -z "$ac_c_werror_flag" ||
8021          test ! -s conftest.err
8022        } && test -s conftest.$ac_objext; then
8023   ac_cv_header_stdc=yes
8024 else
8025   echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028         ac_cv_header_stdc=no
8029 fi
8030
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032
8033 if test $ac_cv_header_stdc = yes; then
8034   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8035   cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h.  */
8041 #include <string.h>
8042
8043 _ACEOF
8044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8045   $EGREP "memchr" >/dev/null 2>&1; then
8046   :
8047 else
8048   ac_cv_header_stdc=no
8049 fi
8050 rm -f conftest*
8051
8052 fi
8053
8054 if test $ac_cv_header_stdc = yes; then
8055   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8056   cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h.  */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h.  */
8062 #include <stdlib.h>
8063
8064 _ACEOF
8065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8066   $EGREP "free" >/dev/null 2>&1; then
8067   :
8068 else
8069   ac_cv_header_stdc=no
8070 fi
8071 rm -f conftest*
8072
8073 fi
8074
8075 if test $ac_cv_header_stdc = yes; then
8076   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8077   if test "$cross_compiling" = yes; then
8078   :
8079 else
8080   cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h.  */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h.  */
8086 #include <ctype.h>
8087 #include <stdlib.h>
8088 #if ((' ' & 0x0FF) == 0x020)
8089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8091 #else
8092 # define ISLOWER(c) \
8093                    (('a' <= (c) && (c) <= 'i') \
8094                      || ('j' <= (c) && (c) <= 'r') \
8095                      || ('s' <= (c) && (c) <= 'z'))
8096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8097 #endif
8098
8099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8100 int
8101 main ()
8102 {
8103   int i;
8104   for (i = 0; i < 256; i++)
8105     if (XOR (islower (i), ISLOWER (i))
8106         || toupper (i) != TOUPPER (i))
8107       return 2;
8108   return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest$ac_exeext
8112 if { (ac_try="$ac_link"
8113 case "(($ac_try" in
8114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115   *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118   (eval "$ac_link") 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8122   { (case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127   (eval "$ac_try") 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; }; then
8131   :
8132 else
8133   echo "$as_me: program exited with status $ac_status" >&5
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8136
8137 ( exit $ac_status )
8138 ac_cv_header_stdc=no
8139 fi
8140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8141 fi
8142
8143
8144 fi
8145 fi
8146 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8147 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8148 if test $ac_cv_header_stdc = yes; then
8149
8150 cat >>confdefs.h <<\_ACEOF
8151 #define STDC_HEADERS 1
8152 _ACEOF
8153
8154 fi
8155
8156 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8167                   inttypes.h stdint.h unistd.h
8168 do
8169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8173   echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175   cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181 $ac_includes_default
8182
8183 #include <$ac_header>
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8187 case "(($ac_try" in
8188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189   *) ac_try_echo=$ac_try;;
8190 esac
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192   (eval "$ac_compile") 2>conftest.er1
8193   ac_status=$?
8194   grep -v '^ *+' conftest.er1 >conftest.err
8195   rm -f conftest.er1
8196   cat conftest.err >&5
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } && {
8199          test -z "$ac_c_werror_flag" ||
8200          test ! -s conftest.err
8201        } && test -s conftest.$ac_objext; then
8202   eval "$as_ac_Header=yes"
8203 else
8204   echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207         eval "$as_ac_Header=no"
8208 fi
8209
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 ac_res=`eval echo '${'$as_ac_Header'}'`
8213                { echo "$as_me:$LINENO: result: $ac_res" >&5
8214 echo "${ECHO_T}$ac_res" >&6; }
8215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8216   cat >>confdefs.h <<_ACEOF
8217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8218 _ACEOF
8219
8220 fi
8221
8222 done
8223
8224
8225
8226 for ac_header in dlfcn.h
8227 do
8228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h.  */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h.  */
8240 $ac_includes_default
8241
8242 #include <$ac_header>
8243 _ACEOF
8244 rm -f conftest.$ac_objext
8245 if { (ac_try="$ac_compile"
8246 case "(($ac_try" in
8247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248   *) ac_try_echo=$ac_try;;
8249 esac
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251   (eval "$ac_compile") 2>conftest.er1
8252   ac_status=$?
8253   grep -v '^ *+' conftest.er1 >conftest.err
8254   rm -f conftest.er1
8255   cat conftest.err >&5
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); } && {
8258          test -z "$ac_c_werror_flag" ||
8259          test ! -s conftest.err
8260        } && test -s conftest.$ac_objext; then
8261   eval "$as_ac_Header=yes"
8262 else
8263   echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8265
8266         eval "$as_ac_Header=no"
8267 fi
8268
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270 fi
8271 ac_res=`eval echo '${'$as_ac_Header'}'`
8272                { echo "$as_me:$LINENO: result: $ac_res" >&5
8273 echo "${ECHO_T}$ac_res" >&6; }
8274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8275   cat >>confdefs.h <<_ACEOF
8276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8277 _ACEOF
8278
8279 fi
8280
8281 done
8282
8283
8284
8285 ac_ext=cpp
8286 ac_cpp='$CXXCPP $CPPFLAGS'
8287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8290 if test -z "$CXX"; then
8291   if test -n "$CCC"; then
8292     CXX=$CCC
8293   else
8294     if test -n "$ac_tool_prefix"; then
8295   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8296   do
8297     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8301 if test "${ac_cv_prog_CXX+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   if test -n "$CXX"; then
8305   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8309 do
8310   IFS=$as_save_IFS
8311   test -z "$as_dir" && as_dir=.
8312   for ac_exec_ext in '' $ac_executable_extensions; do
8313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8316     break 2
8317   fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8321
8322 fi
8323 fi
8324 CXX=$ac_cv_prog_CXX
8325 if test -n "$CXX"; then
8326   { echo "$as_me:$LINENO: result: $CXX" >&5
8327 echo "${ECHO_T}$CXX" >&6; }
8328 else
8329   { echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6; }
8331 fi
8332
8333
8334     test -n "$CXX" && break
8335   done
8336 fi
8337 if test -z "$CXX"; then
8338   ac_ct_CXX=$CXX
8339   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8340 do
8341   # Extract the first word of "$ac_prog", so it can be a program name with args.
8342 set dummy $ac_prog; ac_word=$2
8343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8345 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   if test -n "$ac_ct_CXX"; then
8349   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8350 else
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8353 do
8354   IFS=$as_save_IFS
8355   test -z "$as_dir" && as_dir=.
8356   for ac_exec_ext in '' $ac_executable_extensions; do
8357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8358     ac_cv_prog_ac_ct_CXX="$ac_prog"
8359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8360     break 2
8361   fi
8362 done
8363 done
8364 IFS=$as_save_IFS
8365
8366 fi
8367 fi
8368 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8369 if test -n "$ac_ct_CXX"; then
8370   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8371 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8372 else
8373   { echo "$as_me:$LINENO: result: no" >&5
8374 echo "${ECHO_T}no" >&6; }
8375 fi
8376
8377
8378   test -n "$ac_ct_CXX" && break
8379 done
8380
8381   if test "x$ac_ct_CXX" = x; then
8382     CXX="g++"
8383   else
8384     case $cross_compiling:$ac_tool_warned in
8385 yes:)
8386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8387 whose name does not start with the host triplet.  If you think this
8388 configuration is useful to you, please write to autoconf@gnu.org." >&5
8389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8390 whose name does not start with the host triplet.  If you think this
8391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8392 ac_tool_warned=yes ;;
8393 esac
8394     CXX=$ac_ct_CXX
8395   fi
8396 fi
8397
8398   fi
8399 fi
8400 # Provide some information about the compiler.
8401 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8402 ac_compiler=`set X $ac_compile; echo $2`
8403 { (ac_try="$ac_compiler --version >&5"
8404 case "(($ac_try" in
8405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406   *) ac_try_echo=$ac_try;;
8407 esac
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409   (eval "$ac_compiler --version >&5") 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }
8413 { (ac_try="$ac_compiler -v >&5"
8414 case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419   (eval "$ac_compiler -v >&5") 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }
8423 { (ac_try="$ac_compiler -V >&5"
8424 case "(($ac_try" in
8425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426   *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429   (eval "$ac_compiler -V >&5") 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }
8433
8434 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8435 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8436 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8437   echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439   cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h.  */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h.  */
8445
8446 int
8447 main ()
8448 {
8449 #ifndef __GNUC__
8450        choke me
8451 #endif
8452
8453   ;
8454   return 0;
8455 }
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (ac_try="$ac_compile"
8459 case "(($ac_try" in
8460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461   *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464   (eval "$ac_compile") 2>conftest.er1
8465   ac_status=$?
8466   grep -v '^ *+' conftest.er1 >conftest.err
8467   rm -f conftest.er1
8468   cat conftest.err >&5
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); } && {
8471          test -z "$ac_cxx_werror_flag" ||
8472          test ! -s conftest.err
8473        } && test -s conftest.$ac_objext; then
8474   ac_compiler_gnu=yes
8475 else
8476   echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479         ac_compiler_gnu=no
8480 fi
8481
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8484
8485 fi
8486 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8487 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8488 GXX=`test $ac_compiler_gnu = yes && echo yes`
8489 ac_test_CXXFLAGS=${CXXFLAGS+set}
8490 ac_save_CXXFLAGS=$CXXFLAGS
8491 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8492 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8493 if test "${ac_cv_prog_cxx_g+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8497    ac_cxx_werror_flag=yes
8498    ac_cv_prog_cxx_g=no
8499    CXXFLAGS="-g"
8500    cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506
8507 int
8508 main ()
8509 {
8510
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext
8516 if { (ac_try="$ac_compile"
8517 case "(($ac_try" in
8518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519   *) ac_try_echo=$ac_try;;
8520 esac
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522   (eval "$ac_compile") 2>conftest.er1
8523   ac_status=$?
8524   grep -v '^ *+' conftest.er1 >conftest.err
8525   rm -f conftest.er1
8526   cat conftest.err >&5
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); } && {
8529          test -z "$ac_cxx_werror_flag" ||
8530          test ! -s conftest.err
8531        } && test -s conftest.$ac_objext; then
8532   ac_cv_prog_cxx_g=yes
8533 else
8534   echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8536
8537         CXXFLAGS=""
8538       cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h.  */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h.  */
8544
8545 int
8546 main ()
8547 {
8548
8549   ;
8550   return 0;
8551 }
8552 _ACEOF
8553 rm -f conftest.$ac_objext
8554 if { (ac_try="$ac_compile"
8555 case "(($ac_try" in
8556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557   *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560   (eval "$ac_compile") 2>conftest.er1
8561   ac_status=$?
8562   grep -v '^ *+' conftest.er1 >conftest.err
8563   rm -f conftest.er1
8564   cat conftest.err >&5
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); } && {
8567          test -z "$ac_cxx_werror_flag" ||
8568          test ! -s conftest.err
8569        } && test -s conftest.$ac_objext; then
8570   :
8571 else
8572   echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8576          CXXFLAGS="-g"
8577          cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h.  */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h.  */
8583
8584 int
8585 main ()
8586 {
8587
8588   ;
8589   return 0;
8590 }
8591 _ACEOF
8592 rm -f conftest.$ac_objext
8593 if { (ac_try="$ac_compile"
8594 case "(($ac_try" in
8595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596   *) ac_try_echo=$ac_try;;
8597 esac
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599   (eval "$ac_compile") 2>conftest.er1
8600   ac_status=$?
8601   grep -v '^ *+' conftest.er1 >conftest.err
8602   rm -f conftest.er1
8603   cat conftest.err >&5
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } && {
8606          test -z "$ac_cxx_werror_flag" ||
8607          test ! -s conftest.err
8608        } && test -s conftest.$ac_objext; then
8609   ac_cv_prog_cxx_g=yes
8610 else
8611   echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614
8615 fi
8616
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 fi
8619
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 fi
8622
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8625 fi
8626 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8627 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8628 if test "$ac_test_CXXFLAGS" = set; then
8629   CXXFLAGS=$ac_save_CXXFLAGS
8630 elif test $ac_cv_prog_cxx_g = yes; then
8631   if test "$GXX" = yes; then
8632     CXXFLAGS="-g -O2"
8633   else
8634     CXXFLAGS="-g"
8635   fi
8636 else
8637   if test "$GXX" = yes; then
8638     CXXFLAGS="-O2"
8639   else
8640     CXXFLAGS=
8641   fi
8642 fi
8643 ac_ext=c
8644 ac_cpp='$CPP $CPPFLAGS'
8645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8648
8649 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8650     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8651     (test "X$CXX" != "Xg++"))) ; then
8652   ac_ext=cpp
8653 ac_cpp='$CXXCPP $CPPFLAGS'
8654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8657 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8658 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8659 if test -z "$CXXCPP"; then
8660   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663       # Double quotes because CXXCPP needs to be expanded
8664     for CXXCPP in "$CXX -E" "/lib/cpp"
8665     do
8666       ac_preproc_ok=false
8667 for ac_cxx_preproc_warn_flag in '' yes
8668 do
8669   # Use a header file that comes with gcc, so configuring glibc
8670   # with a fresh cross-compiler works.
8671   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672   # <limits.h> exists even on freestanding compilers.
8673   # On the NeXT, cc -E runs the code through the compiler's parser,
8674   # not just through cpp. "Syntax error" is here to catch this case.
8675   cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h.  */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h.  */
8681 #ifdef __STDC__
8682 # include <limits.h>
8683 #else
8684 # include <assert.h>
8685 #endif
8686                      Syntax error
8687 _ACEOF
8688 if { (ac_try="$ac_cpp conftest.$ac_ext"
8689 case "(($ac_try" in
8690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691   *) ac_try_echo=$ac_try;;
8692 esac
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8695   ac_status=$?
8696   grep -v '^ *+' conftest.er1 >conftest.err
8697   rm -f conftest.er1
8698   cat conftest.err >&5
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); } >/dev/null && {
8701          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8702          test ! -s conftest.err
8703        }; then
8704   :
8705 else
8706   echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8708
8709   # Broken: fails on valid input.
8710 continue
8711 fi
8712
8713 rm -f conftest.err conftest.$ac_ext
8714
8715   # OK, works on sane cases.  Now check whether nonexistent headers
8716   # can be detected and how.
8717   cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h.  */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h.  */
8723 #include <ac_nonexistent.h>
8724 _ACEOF
8725 if { (ac_try="$ac_cpp conftest.$ac_ext"
8726 case "(($ac_try" in
8727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728   *) ac_try_echo=$ac_try;;
8729 esac
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8732   ac_status=$?
8733   grep -v '^ *+' conftest.er1 >conftest.err
8734   rm -f conftest.er1
8735   cat conftest.err >&5
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); } >/dev/null && {
8738          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8739          test ! -s conftest.err
8740        }; then
8741   # Broken: success on invalid input.
8742 continue
8743 else
8744   echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8746
8747   # Passes both tests.
8748 ac_preproc_ok=:
8749 break
8750 fi
8751
8752 rm -f conftest.err conftest.$ac_ext
8753
8754 done
8755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8756 rm -f conftest.err conftest.$ac_ext
8757 if $ac_preproc_ok; then
8758   break
8759 fi
8760
8761     done
8762     ac_cv_prog_CXXCPP=$CXXCPP
8763
8764 fi
8765   CXXCPP=$ac_cv_prog_CXXCPP
8766 else
8767   ac_cv_prog_CXXCPP=$CXXCPP
8768 fi
8769 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8770 echo "${ECHO_T}$CXXCPP" >&6; }
8771 ac_preproc_ok=false
8772 for ac_cxx_preproc_warn_flag in '' yes
8773 do
8774   # Use a header file that comes with gcc, so configuring glibc
8775   # with a fresh cross-compiler works.
8776   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8777   # <limits.h> exists even on freestanding compilers.
8778   # On the NeXT, cc -E runs the code through the compiler's parser,
8779   # not just through cpp. "Syntax error" is here to catch this case.
8780   cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 #ifdef __STDC__
8787 # include <limits.h>
8788 #else
8789 # include <assert.h>
8790 #endif
8791                      Syntax error
8792 _ACEOF
8793 if { (ac_try="$ac_cpp conftest.$ac_ext"
8794 case "(($ac_try" in
8795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796   *) ac_try_echo=$ac_try;;
8797 esac
8798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8800   ac_status=$?
8801   grep -v '^ *+' conftest.er1 >conftest.err
8802   rm -f conftest.er1
8803   cat conftest.err >&5
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); } >/dev/null && {
8806          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8807          test ! -s conftest.err
8808        }; then
8809   :
8810 else
8811   echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814   # Broken: fails on valid input.
8815 continue
8816 fi
8817
8818 rm -f conftest.err conftest.$ac_ext
8819
8820   # OK, works on sane cases.  Now check whether nonexistent headers
8821   # can be detected and how.
8822   cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828 #include <ac_nonexistent.h>
8829 _ACEOF
8830 if { (ac_try="$ac_cpp conftest.$ac_ext"
8831 case "(($ac_try" in
8832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833   *) ac_try_echo=$ac_try;;
8834 esac
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8837   ac_status=$?
8838   grep -v '^ *+' conftest.er1 >conftest.err
8839   rm -f conftest.er1
8840   cat conftest.err >&5
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); } >/dev/null && {
8843          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8844          test ! -s conftest.err
8845        }; then
8846   # Broken: success on invalid input.
8847 continue
8848 else
8849   echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8851
8852   # Passes both tests.
8853 ac_preproc_ok=:
8854 break
8855 fi
8856
8857 rm -f conftest.err conftest.$ac_ext
8858
8859 done
8860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8861 rm -f conftest.err conftest.$ac_ext
8862 if $ac_preproc_ok; then
8863   :
8864 else
8865   _lt_caught_CXX_error=yes
8866 fi
8867
8868 ac_ext=c
8869 ac_cpp='$CPP $CPPFLAGS'
8870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8873
8874 else
8875   _lt_caught_CXX_error=yes
8876 fi
8877
8878
8879
8880
8881
8882 # Set options
8883 # Check whether --enable-shared was given.
8884 if test "${enable_shared+set}" = set; then
8885   enableval=$enable_shared; p=${PACKAGE-default}
8886     case $enableval in
8887     yes) enable_shared=yes ;;
8888     no) enable_shared=no ;;
8889     *)
8890       enable_shared=no
8891       # Look at the argument we got.  We use all the common list separators.
8892       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8893       for pkg in $enableval; do
8894         IFS="$lt_save_ifs"
8895         if test "X$pkg" = "X$p"; then
8896           enable_shared=yes
8897         fi
8898       done
8899       IFS="$lt_save_ifs"
8900       ;;
8901     esac
8902 else
8903   enable_shared=yes
8904 fi
8905
8906
8907
8908
8909
8910
8911
8912 # Check whether --enable-static was given.
8913 if test "${enable_static+set}" = set; then
8914   enableval=$enable_static; p=${PACKAGE-default}
8915     case $enableval in
8916     yes) enable_static=yes ;;
8917     no) enable_static=no ;;
8918     *)
8919      enable_static=no
8920       # Look at the argument we got.  We use all the common list separators.
8921       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8922       for pkg in $enableval; do
8923         IFS="$lt_save_ifs"
8924         if test "X$pkg" = "X$p"; then
8925           enable_static=yes
8926         fi
8927       done
8928       IFS="$lt_save_ifs"
8929       ;;
8930     esac
8931 else
8932   enable_static=no
8933 fi
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944         enable_dlopen=no
8945
8946
8947   enable_win32_dll=no
8948
8949
8950
8951
8952
8953 # Check whether --with-pic was given.
8954 if test "${with_pic+set}" = set; then
8955   withval=$with_pic; pic_mode="$withval"
8956 else
8957   pic_mode=default
8958 fi
8959
8960
8961 test -z "$pic_mode" && pic_mode=default
8962
8963
8964
8965
8966
8967
8968
8969   # Check whether --enable-fast-install was given.
8970 if test "${enable_fast_install+set}" = set; then
8971   enableval=$enable_fast_install; p=${PACKAGE-default}
8972     case $enableval in
8973     yes) enable_fast_install=yes ;;
8974     no) enable_fast_install=no ;;
8975     *)
8976       enable_fast_install=no
8977       # Look at the argument we got.  We use all the common list separators.
8978       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8979       for pkg in $enableval; do
8980         IFS="$lt_save_ifs"
8981         if test "X$pkg" = "X$p"; then
8982           enable_fast_install=yes
8983         fi
8984       done
8985       IFS="$lt_save_ifs"
8986       ;;
8987     esac
8988 else
8989   enable_fast_install=yes
8990 fi
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002 # This can be used to rebuild libtool when needed
9003 LIBTOOL_DEPS="$ltmain"
9004
9005 # Always use our own libtool.
9006 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032 test -z "$LN_S" && LN_S="ln -s"
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047 if test -n "${ZSH_VERSION+set}" ; then
9048    setopt NO_GLOB_SUBST
9049 fi
9050
9051 { echo "$as_me:$LINENO: checking for objdir" >&5
9052 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9053 if test "${lt_cv_objdir+set}" = set; then
9054   echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056   rm -f .libs 2>/dev/null
9057 mkdir .libs 2>/dev/null
9058 if test -d .libs; then
9059   lt_cv_objdir=.libs
9060 else
9061   # MS-DOS does not allow filenames that begin with a dot.
9062   lt_cv_objdir=_libs
9063 fi
9064 rmdir .libs 2>/dev/null
9065 fi
9066 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9067 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9068 objdir=$lt_cv_objdir
9069
9070
9071
9072
9073
9074 cat >>confdefs.h <<_ACEOF
9075 #define LT_OBJDIR "$lt_cv_objdir/"
9076 _ACEOF
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094 case $host_os in
9095 aix3*)
9096   # AIX sometimes has problems with the GCC collect2 program.  For some
9097   # reason, if we set the COLLECT_NAMES environment variable, the problems
9098   # vanish in a puff of smoke.
9099   if test "X${COLLECT_NAMES+set}" != Xset; then
9100     COLLECT_NAMES=
9101     export COLLECT_NAMES
9102   fi
9103   ;;
9104 esac
9105
9106 # Sed substitution that helps us do robust quoting.  It backslashifies
9107 # metacharacters that are still active within double-quoted strings.
9108 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9109
9110 # Same as above, but do not quote variable references.
9111 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9112
9113 # Sed substitution to delay expansion of an escaped shell variable in a
9114 # double_quote_subst'ed string.
9115 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9116
9117 # Sed substitution to delay expansion of an escaped single quote.
9118 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9119
9120 # Sed substitution to avoid accidental globbing in evaled expressions
9121 no_glob_subst='s/\*/\\\*/g'
9122
9123 # Global variables:
9124 ofile=libtool
9125 can_build_shared=yes
9126
9127 # All known linkers require a `.a' archive for static linking (except MSVC,
9128 # which needs '.lib').
9129 libext=a
9130
9131 with_gnu_ld="$lt_cv_prog_gnu_ld"
9132
9133 old_CC="$CC"
9134 old_CFLAGS="$CFLAGS"
9135
9136 # Set sane defaults for various variables
9137 test -z "$CC" && CC=cc
9138 test -z "$LTCC" && LTCC=$CC
9139 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9140 test -z "$LD" && LD=ld
9141 test -z "$ac_objext" && ac_objext=o
9142
9143 for cc_temp in $compiler""; do
9144   case $cc_temp in
9145     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9146     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9147     \-*) ;;
9148     *) break;;
9149   esac
9150 done
9151 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9152
9153
9154 # Only perform the check for file, if the check method requires it
9155 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9156 case $deplibs_check_method in
9157 file_magic*)
9158   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9159     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9160 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9161 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9162   echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164   case $MAGIC_CMD in
9165 [\\/*] |  ?:[\\/]*)
9166   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9167   ;;
9168 *)
9169   lt_save_MAGIC_CMD="$MAGIC_CMD"
9170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9171   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9172   for ac_dir in $ac_dummy; do
9173     IFS="$lt_save_ifs"
9174     test -z "$ac_dir" && ac_dir=.
9175     if test -f $ac_dir/${ac_tool_prefix}file; then
9176       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9177       if test -n "$file_magic_test_file"; then
9178         case $deplibs_check_method in
9179         "file_magic "*)
9180           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9181           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9182           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9183             $EGREP "$file_magic_regex" > /dev/null; then
9184             :
9185           else
9186             cat <<_LT_EOF 1>&2
9187
9188 *** Warning: the command libtool uses to detect shared libraries,
9189 *** $file_magic_cmd, produces output that libtool cannot recognize.
9190 *** The result is that libtool may fail to recognize shared libraries
9191 *** as such.  This will affect the creation of libtool libraries that
9192 *** depend on shared libraries, but programs linked with such libtool
9193 *** libraries will work regardless of this problem.  Nevertheless, you
9194 *** may want to report the problem to your system manager and/or to
9195 *** bug-libtool@gnu.org
9196
9197 _LT_EOF
9198           fi ;;
9199         esac
9200       fi
9201       break
9202     fi
9203   done
9204   IFS="$lt_save_ifs"
9205   MAGIC_CMD="$lt_save_MAGIC_CMD"
9206   ;;
9207 esac
9208 fi
9209
9210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9211 if test -n "$MAGIC_CMD"; then
9212   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9213 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9214 else
9215   { echo "$as_me:$LINENO: result: no" >&5
9216 echo "${ECHO_T}no" >&6; }
9217 fi
9218
9219
9220
9221
9222
9223 if test -z "$lt_cv_path_MAGIC_CMD"; then
9224   if test -n "$ac_tool_prefix"; then
9225     { echo "$as_me:$LINENO: checking for file" >&5
9226 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9228   echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230   case $MAGIC_CMD in
9231 [\\/*] |  ?:[\\/]*)
9232   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9233   ;;
9234 *)
9235   lt_save_MAGIC_CMD="$MAGIC_CMD"
9236   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9237   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9238   for ac_dir in $ac_dummy; do
9239     IFS="$lt_save_ifs"
9240     test -z "$ac_dir" && ac_dir=.
9241     if test -f $ac_dir/file; then
9242       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9243       if test -n "$file_magic_test_file"; then
9244         case $deplibs_check_method in
9245         "file_magic "*)
9246           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9247           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9248           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9249             $EGREP "$file_magic_regex" > /dev/null; then
9250             :
9251           else
9252             cat <<_LT_EOF 1>&2
9253
9254 *** Warning: the command libtool uses to detect shared libraries,
9255 *** $file_magic_cmd, produces output that libtool cannot recognize.
9256 *** The result is that libtool may fail to recognize shared libraries
9257 *** as such.  This will affect the creation of libtool libraries that
9258 *** depend on shared libraries, but programs linked with such libtool
9259 *** libraries will work regardless of this problem.  Nevertheless, you
9260 *** may want to report the problem to your system manager and/or to
9261 *** bug-libtool@gnu.org
9262
9263 _LT_EOF
9264           fi ;;
9265         esac
9266       fi
9267       break
9268     fi
9269   done
9270   IFS="$lt_save_ifs"
9271   MAGIC_CMD="$lt_save_MAGIC_CMD"
9272   ;;
9273 esac
9274 fi
9275
9276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9277 if test -n "$MAGIC_CMD"; then
9278   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9279 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9280 else
9281   { echo "$as_me:$LINENO: result: no" >&5
9282 echo "${ECHO_T}no" >&6; }
9283 fi
9284
9285
9286   else
9287     MAGIC_CMD=:
9288   fi
9289 fi
9290
9291   fi
9292   ;;
9293 esac
9294
9295 # Use C for the default configuration in the libtool script
9296
9297 lt_save_CC="$CC"
9298 ac_ext=c
9299 ac_cpp='$CPP $CPPFLAGS'
9300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9303
9304
9305 # Source file extension for C test sources.
9306 ac_ext=c
9307
9308 # Object file extension for compiled C test sources.
9309 objext=o
9310 objext=$objext
9311
9312 # Code to be used in simple compile tests
9313 lt_simple_compile_test_code="int some_variable = 0;"
9314
9315 # Code to be used in simple link tests
9316 lt_simple_link_test_code='int main(){return(0);}'
9317
9318
9319
9320
9321
9322
9323
9324 # If no C compiler was specified, use CC.
9325 LTCC=${LTCC-"$CC"}
9326
9327 # If no C compiler flags were specified, use CFLAGS.
9328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9329
9330 # Allow CC to be a program name with arguments.
9331 compiler=$CC
9332
9333 # Save the default compiler, since it gets overwritten when the other
9334 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9335 compiler_DEFAULT=$CC
9336
9337 # save warnings/boilerplate of simple test code
9338 ac_outfile=conftest.$ac_objext
9339 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9340 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9341 _lt_compiler_boilerplate=`cat conftest.err`
9342 $RM conftest*
9343
9344 ac_outfile=conftest.$ac_objext
9345 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9346 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9347 _lt_linker_boilerplate=`cat conftest.err`
9348 $RM -r conftest*
9349
9350
9351 ## CAVEAT EMPTOR:
9352 ## There is no encapsulation within the following macros, do not change
9353 ## the running order or otherwise move them around unless you know exactly
9354 ## what you are doing...
9355 if test -n "$compiler"; then
9356
9357 lt_prog_compiler_no_builtin_flag=
9358
9359 if test "$GCC" = yes; then
9360   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9361
9362   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9363 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9364 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9365   echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367   lt_cv_prog_compiler_rtti_exceptions=no
9368    ac_outfile=conftest.$ac_objext
9369    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9370    lt_compiler_flag="-fno-rtti -fno-exceptions"
9371    # Insert the option either (1) after the last *FLAGS variable, or
9372    # (2) before a word containing "conftest.", or (3) at the end.
9373    # Note that $ac_compile itself does not contain backslashes and begins
9374    # with a dollar sign (not a hyphen), so the echo should work correctly.
9375    # The option is referenced via a variable to avoid confusing sed.
9376    lt_compile=`echo "$ac_compile" | $SED \
9377    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9378    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9379    -e 's:$: $lt_compiler_flag:'`
9380    (eval echo "\"\$as_me:9380: $lt_compile\"" >&5)
9381    (eval "$lt_compile" 2>conftest.err)
9382    ac_status=$?
9383    cat conftest.err >&5
9384    echo "$as_me:9384: \$? = $ac_status" >&5
9385    if (exit $ac_status) && test -s "$ac_outfile"; then
9386      # The compiler can only warn and ignore the option if not recognized
9387      # So say no if there are warnings other than the usual output.
9388      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9389      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9390      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9391        lt_cv_prog_compiler_rtti_exceptions=yes
9392      fi
9393    fi
9394    $RM conftest*
9395
9396 fi
9397 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9398 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9399
9400 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9401     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9402 else
9403     :
9404 fi
9405
9406 fi
9407
9408
9409
9410
9411
9412
9413   lt_prog_compiler_wl=
9414 lt_prog_compiler_pic=
9415 lt_prog_compiler_static=
9416
9417 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9418 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9419
9420   if test "$GCC" = yes; then
9421     lt_prog_compiler_wl='-Wl,'
9422     lt_prog_compiler_static='-static'
9423
9424     case $host_os in
9425       aix*)
9426       # All AIX code is PIC.
9427       if test "$host_cpu" = ia64; then
9428         # AIX 5 now supports IA64 processor
9429         lt_prog_compiler_static='-Bstatic'
9430       fi
9431       ;;
9432
9433     amigaos*)
9434       case $host_cpu in
9435       powerpc)
9436             # see comment about AmigaOS4 .so support
9437             lt_prog_compiler_pic='-fPIC'
9438         ;;
9439       m68k)
9440             # FIXME: we need at least 68020 code to build shared libraries, but
9441             # adding the `-m68020' flag to GCC prevents building anything better,
9442             # like `-m68040'.
9443             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9444         ;;
9445       esac
9446       ;;
9447
9448     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9449       # PIC is the default for these OSes.
9450       ;;
9451
9452     mingw* | cygwin* | pw32* | os2* | cegcc*)
9453       # This hack is so that the source file can tell whether it is being
9454       # built for inclusion in a dll (and should export symbols for example).
9455       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9456       # (--disable-auto-import) libraries
9457       lt_prog_compiler_pic='-DDLL_EXPORT'
9458       ;;
9459
9460     darwin* | rhapsody*)
9461       # PIC is the default on this platform
9462       # Common symbols not allowed in MH_DYLIB files
9463       lt_prog_compiler_pic='-fno-common'
9464       ;;
9465
9466     hpux*)
9467       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9468       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9469       # sets the default TLS model and affects inlining.
9470       case $host_cpu in
9471       hppa*64*)
9472         # +Z the default
9473         ;;
9474       *)
9475         lt_prog_compiler_pic='-fPIC'
9476         ;;
9477       esac
9478       ;;
9479
9480     interix[3-9]*)
9481       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9482       # Instead, we relocate shared libraries at runtime.
9483       ;;
9484
9485     msdosdjgpp*)
9486       # Just because we use GCC doesn't mean we suddenly get shared libraries
9487       # on systems that don't support them.
9488       lt_prog_compiler_can_build_shared=no
9489       enable_shared=no
9490       ;;
9491
9492     *nto* | *qnx*)
9493       # QNX uses GNU C++, but need to define -shared option too, otherwise
9494       # it will coredump.
9495       lt_prog_compiler_pic='-fPIC -shared'
9496       ;;
9497
9498     sysv4*MP*)
9499       if test -d /usr/nec; then
9500         lt_prog_compiler_pic=-Kconform_pic
9501       fi
9502       ;;
9503
9504     *)
9505       lt_prog_compiler_pic='-fPIC'
9506       ;;
9507     esac
9508   else
9509     # PORTME Check for flag to pass linker flags through the system compiler.
9510     case $host_os in
9511     aix*)
9512       lt_prog_compiler_wl='-Wl,'
9513       if test "$host_cpu" = ia64; then
9514         # AIX 5 now supports IA64 processor
9515         lt_prog_compiler_static='-Bstatic'
9516       else
9517         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9518       fi
9519       ;;
9520
9521     mingw* | cygwin* | pw32* | os2* | cegcc*)
9522       # This hack is so that the source file can tell whether it is being
9523       # built for inclusion in a dll (and should export symbols for example).
9524       lt_prog_compiler_pic='-DDLL_EXPORT'
9525       ;;
9526
9527     hpux9* | hpux10* | hpux11*)
9528       lt_prog_compiler_wl='-Wl,'
9529       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9530       # not for PA HP-UX.
9531       case $host_cpu in
9532       hppa*64*|ia64*)
9533         # +Z the default
9534         ;;
9535       *)
9536         lt_prog_compiler_pic='+Z'
9537         ;;
9538       esac
9539       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9540       lt_prog_compiler_static='${wl}-a ${wl}archive'
9541       ;;
9542
9543     irix5* | irix6* | nonstopux*)
9544       lt_prog_compiler_wl='-Wl,'
9545       # PIC (with -KPIC) is the default.
9546       lt_prog_compiler_static='-non_shared'
9547       ;;
9548
9549     linux* | k*bsd*-gnu)
9550       case $cc_basename in
9551       # old Intel for x86_64 which still supported -KPIC.
9552       ecc*)
9553         lt_prog_compiler_wl='-Wl,'
9554         lt_prog_compiler_pic='-KPIC'
9555         lt_prog_compiler_static='-static'
9556         ;;
9557       # icc used to be incompatible with GCC.
9558       # ICC 10 doesn't accept -KPIC any more.
9559       icc* | ifort*)
9560         lt_prog_compiler_wl='-Wl,'
9561         lt_prog_compiler_pic='-fPIC'
9562         lt_prog_compiler_static='-static'
9563         ;;
9564       # Lahey Fortran 8.1.
9565       lf95*)
9566         lt_prog_compiler_wl='-Wl,'
9567         lt_prog_compiler_pic='--shared'
9568         lt_prog_compiler_static='--static'
9569         ;;
9570       pgcc* | pgf77* | pgf90* | pgf95*)
9571         # Portland Group compilers (*not* the Pentium gcc compiler,
9572         # which looks to be a dead project)
9573         lt_prog_compiler_wl='-Wl,'
9574         lt_prog_compiler_pic='-fpic'
9575         lt_prog_compiler_static='-Bstatic'
9576         ;;
9577       ccc*)
9578         lt_prog_compiler_wl='-Wl,'
9579         # All Alpha code is PIC.
9580         lt_prog_compiler_static='-non_shared'
9581         ;;
9582       xl*)
9583         # IBM XL C 8.0/Fortran 10.1 on PPC
9584         lt_prog_compiler_wl='-Wl,'
9585         lt_prog_compiler_pic='-qpic'
9586         lt_prog_compiler_static='-qstaticlink'
9587         ;;
9588       *)
9589         case `$CC -V 2>&1 | sed 5q` in
9590         *Sun\ C*)
9591           # Sun C 5.9
9592           lt_prog_compiler_pic='-KPIC'
9593           lt_prog_compiler_static='-Bstatic'
9594           lt_prog_compiler_wl='-Wl,'
9595           ;;
9596         *Sun\ F*)
9597           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9598           lt_prog_compiler_pic='-KPIC'
9599           lt_prog_compiler_static='-Bstatic'
9600           lt_prog_compiler_wl=''
9601           ;;
9602         esac
9603         ;;
9604       esac
9605       ;;
9606
9607     newsos6)
9608       lt_prog_compiler_pic='-KPIC'
9609       lt_prog_compiler_static='-Bstatic'
9610       ;;
9611
9612     *nto* | *qnx*)
9613       # QNX uses GNU C++, but need to define -shared option too, otherwise
9614       # it will coredump.
9615       lt_prog_compiler_pic='-fPIC -shared'
9616       ;;
9617
9618     osf3* | osf4* | osf5*)
9619       lt_prog_compiler_wl='-Wl,'
9620       # All OSF/1 code is PIC.
9621       lt_prog_compiler_static='-non_shared'
9622       ;;
9623
9624     rdos*)
9625       lt_prog_compiler_static='-non_shared'
9626       ;;
9627
9628     solaris*)
9629       lt_prog_compiler_pic='-KPIC'
9630       lt_prog_compiler_static='-Bstatic'
9631       case $cc_basename in
9632       f77* | f90* | f95*)
9633         lt_prog_compiler_wl='-Qoption ld ';;
9634       *)
9635         lt_prog_compiler_wl='-Wl,';;
9636       esac
9637       ;;
9638
9639     sunos4*)
9640       lt_prog_compiler_wl='-Qoption ld '
9641       lt_prog_compiler_pic='-PIC'
9642       lt_prog_compiler_static='-Bstatic'
9643       ;;
9644
9645     sysv4 | sysv4.2uw2* | sysv4.3*)
9646       lt_prog_compiler_wl='-Wl,'
9647       lt_prog_compiler_pic='-KPIC'
9648       lt_prog_compiler_static='-Bstatic'
9649       ;;
9650
9651     sysv4*MP*)
9652       if test -d /usr/nec ;then
9653         lt_prog_compiler_pic='-Kconform_pic'
9654         lt_prog_compiler_static='-Bstatic'
9655       fi
9656       ;;
9657
9658     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9659       lt_prog_compiler_wl='-Wl,'
9660       lt_prog_compiler_pic='-KPIC'
9661       lt_prog_compiler_static='-Bstatic'
9662       ;;
9663
9664     unicos*)
9665       lt_prog_compiler_wl='-Wl,'
9666       lt_prog_compiler_can_build_shared=no
9667       ;;
9668
9669     uts4*)
9670       lt_prog_compiler_pic='-pic'
9671       lt_prog_compiler_static='-Bstatic'
9672       ;;
9673
9674     *)
9675       lt_prog_compiler_can_build_shared=no
9676       ;;
9677     esac
9678   fi
9679
9680 case $host_os in
9681   # For platforms which do not support PIC, -DPIC is meaningless:
9682   *djgpp*)
9683     lt_prog_compiler_pic=
9684     ;;
9685   *)
9686     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9687     ;;
9688 esac
9689 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9690 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9691
9692
9693
9694
9695
9696
9697 #
9698 # Check to make sure the PIC flag actually works.
9699 #
9700 if test -n "$lt_prog_compiler_pic"; then
9701   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9702 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9703 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9704   echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706   lt_cv_prog_compiler_pic_works=no
9707    ac_outfile=conftest.$ac_objext
9708    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9709    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9710    # Insert the option either (1) after the last *FLAGS variable, or
9711    # (2) before a word containing "conftest.", or (3) at the end.
9712    # Note that $ac_compile itself does not contain backslashes and begins
9713    # with a dollar sign (not a hyphen), so the echo should work correctly.
9714    # The option is referenced via a variable to avoid confusing sed.
9715    lt_compile=`echo "$ac_compile" | $SED \
9716    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9717    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9718    -e 's:$: $lt_compiler_flag:'`
9719    (eval echo "\"\$as_me:9719: $lt_compile\"" >&5)
9720    (eval "$lt_compile" 2>conftest.err)
9721    ac_status=$?
9722    cat conftest.err >&5
9723    echo "$as_me:9723: \$? = $ac_status" >&5
9724    if (exit $ac_status) && test -s "$ac_outfile"; then
9725      # The compiler can only warn and ignore the option if not recognized
9726      # So say no if there are warnings other than the usual output.
9727      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9728      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9729      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9730        lt_cv_prog_compiler_pic_works=yes
9731      fi
9732    fi
9733    $RM conftest*
9734
9735 fi
9736 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9737 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9738
9739 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9740     case $lt_prog_compiler_pic in
9741      "" | " "*) ;;
9742      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9743      esac
9744 else
9745     lt_prog_compiler_pic=
9746      lt_prog_compiler_can_build_shared=no
9747 fi
9748
9749 fi
9750
9751
9752
9753
9754
9755
9756 #
9757 # Check to make sure the static flag actually works.
9758 #
9759 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9760 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9761 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9762 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   lt_cv_prog_compiler_static_works=no
9766    save_LDFLAGS="$LDFLAGS"
9767    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9768    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9769    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9770      # The linker can only warn and ignore the option if not recognized
9771      # So say no if there are warnings
9772      if test -s conftest.err; then
9773        # Append any errors to the config.log.
9774        cat conftest.err 1>&5
9775        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9776        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9777        if diff conftest.exp conftest.er2 >/dev/null; then
9778          lt_cv_prog_compiler_static_works=yes
9779        fi
9780      else
9781        lt_cv_prog_compiler_static_works=yes
9782      fi
9783    fi
9784    $RM -r conftest*
9785    LDFLAGS="$save_LDFLAGS"
9786
9787 fi
9788 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9789 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9790
9791 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9792     :
9793 else
9794     lt_prog_compiler_static=
9795 fi
9796
9797
9798
9799
9800
9801
9802
9803   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9804 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9805 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9806   echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808   lt_cv_prog_compiler_c_o=no
9809    $RM -r conftest 2>/dev/null
9810    mkdir conftest
9811    cd conftest
9812    mkdir out
9813    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9814
9815    lt_compiler_flag="-o out/conftest2.$ac_objext"
9816    # Insert the option either (1) after the last *FLAGS variable, or
9817    # (2) before a word containing "conftest.", or (3) at the end.
9818    # Note that $ac_compile itself does not contain backslashes and begins
9819    # with a dollar sign (not a hyphen), so the echo should work correctly.
9820    lt_compile=`echo "$ac_compile" | $SED \
9821    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9823    -e 's:$: $lt_compiler_flag:'`
9824    (eval echo "\"\$as_me:9824: $lt_compile\"" >&5)
9825    (eval "$lt_compile" 2>out/conftest.err)
9826    ac_status=$?
9827    cat out/conftest.err >&5
9828    echo "$as_me:9828: \$? = $ac_status" >&5
9829    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9830    then
9831      # The compiler can only warn and ignore the option if not recognized
9832      # So say no if there are warnings
9833      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9834      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9835      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9836        lt_cv_prog_compiler_c_o=yes
9837      fi
9838    fi
9839    chmod u+w . 2>&5
9840    $RM conftest*
9841    # SGI C++ compiler will create directory out/ii_files/ for
9842    # template instantiation
9843    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9844    $RM out/* && rmdir out
9845    cd ..
9846    $RM -r conftest
9847    $RM conftest*
9848
9849 fi
9850 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9851 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9852
9853
9854
9855
9856
9857
9858   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9859 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9860 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   lt_cv_prog_compiler_c_o=no
9864    $RM -r conftest 2>/dev/null
9865    mkdir conftest
9866    cd conftest
9867    mkdir out
9868    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9869
9870    lt_compiler_flag="-o out/conftest2.$ac_objext"
9871    # Insert the option either (1) after the last *FLAGS variable, or
9872    # (2) before a word containing "conftest.", or (3) at the end.
9873    # Note that $ac_compile itself does not contain backslashes and begins
9874    # with a dollar sign (not a hyphen), so the echo should work correctly.
9875    lt_compile=`echo "$ac_compile" | $SED \
9876    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9877    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9878    -e 's:$: $lt_compiler_flag:'`
9879    (eval echo "\"\$as_me:9879: $lt_compile\"" >&5)
9880    (eval "$lt_compile" 2>out/conftest.err)
9881    ac_status=$?
9882    cat out/conftest.err >&5
9883    echo "$as_me:9883: \$? = $ac_status" >&5
9884    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9885    then
9886      # The compiler can only warn and ignore the option if not recognized
9887      # So say no if there are warnings
9888      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9889      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9890      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9891        lt_cv_prog_compiler_c_o=yes
9892      fi
9893    fi
9894    chmod u+w . 2>&5
9895    $RM conftest*
9896    # SGI C++ compiler will create directory out/ii_files/ for
9897    # template instantiation
9898    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9899    $RM out/* && rmdir out
9900    cd ..
9901    $RM -r conftest
9902    $RM conftest*
9903
9904 fi
9905 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9906 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9907
9908
9909
9910
9911 hard_links="nottested"
9912 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9913   # do not overwrite the value of need_locks provided by the user
9914   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9915 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9916   hard_links=yes
9917   $RM conftest*
9918   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9919   touch conftest.a
9920   ln conftest.a conftest.b 2>&5 || hard_links=no
9921   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9922   { echo "$as_me:$LINENO: result: $hard_links" >&5
9923 echo "${ECHO_T}$hard_links" >&6; }
9924   if test "$hard_links" = no; then
9925     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9926 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9927     need_locks=warn
9928   fi
9929 else
9930   need_locks=no
9931 fi
9932
9933
9934
9935
9936
9937
9938   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9940
9941   runpath_var=
9942   allow_undefined_flag=
9943   always_export_symbols=no
9944   archive_cmds=
9945   archive_expsym_cmds=
9946   compiler_needs_object=no
9947   enable_shared_with_static_runtimes=no
9948   export_dynamic_flag_spec=
9949   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9950   hardcode_automatic=no
9951   hardcode_direct=no
9952   hardcode_direct_absolute=no
9953   hardcode_libdir_flag_spec=
9954   hardcode_libdir_flag_spec_ld=
9955   hardcode_libdir_separator=
9956   hardcode_minus_L=no
9957   hardcode_shlibpath_var=unsupported
9958   inherit_rpath=no
9959   link_all_deplibs=unknown
9960   module_cmds=
9961   module_expsym_cmds=
9962   old_archive_from_new_cmds=
9963   old_archive_from_expsyms_cmds=
9964   thread_safe_flag_spec=
9965   whole_archive_flag_spec=
9966   # include_expsyms should be a list of space-separated symbols to be *always*
9967   # included in the symbol list
9968   include_expsyms=
9969   # exclude_expsyms can be an extended regexp of symbols to exclude
9970   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9971   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9972   # as well as any symbol that contains `d'.
9973   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9974   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9975   # platforms (ab)use it in PIC code, but their linkers get confused if
9976   # the symbol is explicitly referenced.  Since portable code cannot
9977   # rely on this symbol name, it's probably fine to never include it in
9978   # preloaded symbol tables.
9979   # Exclude shared library initialization/finalization symbols.
9980   extract_expsyms_cmds=
9981
9982   case $host_os in
9983   cygwin* | mingw* | pw32* | cegcc*)
9984     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9985     # When not using gcc, we currently assume that we are using
9986     # Microsoft Visual C++.
9987     if test "$GCC" != yes; then
9988       with_gnu_ld=no
9989     fi
9990     ;;
9991   interix*)
9992     # we just hope/assume this is gcc and not c89 (= MSVC++)
9993     with_gnu_ld=yes
9994     ;;
9995   openbsd*)
9996     with_gnu_ld=no
9997     ;;
9998   esac
9999
10000   ld_shlibs=yes
10001   if test "$with_gnu_ld" = yes; then
10002     # If archive_cmds runs LD, not CC, wlarc should be empty
10003     wlarc='${wl}'
10004
10005     # Set some defaults for GNU ld with shared library support. These
10006     # are reset later if shared libraries are not supported. Putting them
10007     # here allows them to be overridden if necessary.
10008     runpath_var=LD_RUN_PATH
10009     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10010     export_dynamic_flag_spec='${wl}--export-dynamic'
10011     # ancient GNU ld didn't support --whole-archive et. al.
10012     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10013       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10014     else
10015       whole_archive_flag_spec=
10016     fi
10017     supports_anon_versioning=no
10018     case `$LD -v 2>&1` in
10019       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10020       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10021       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10022       *\ 2.11.*) ;; # other 2.11 versions
10023       *) supports_anon_versioning=yes ;;
10024     esac
10025
10026     # See if GNU ld supports shared libraries.
10027     case $host_os in
10028     aix[3-9]*)
10029       # On AIX/PPC, the GNU linker is very broken
10030       if test "$host_cpu" != ia64; then
10031         ld_shlibs=no
10032         cat <<_LT_EOF 1>&2
10033
10034 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10035 *** to be unable to reliably create shared libraries on AIX.
10036 *** Therefore, libtool is disabling shared libraries support.  If you
10037 *** really care for shared libraries, you may want to modify your PATH
10038 *** so that a non-GNU linker is found, and then restart.
10039
10040 _LT_EOF
10041       fi
10042       ;;
10043
10044     amigaos*)
10045       case $host_cpu in
10046       powerpc)
10047             # see comment about AmigaOS4 .so support
10048             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10049             archive_expsym_cmds=''
10050         ;;
10051       m68k)
10052             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10053             hardcode_libdir_flag_spec='-L$libdir'
10054             hardcode_minus_L=yes
10055         ;;
10056       esac
10057       ;;
10058
10059     beos*)
10060       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10061         allow_undefined_flag=unsupported
10062         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10063         # support --undefined.  This deserves some investigation.  FIXME
10064         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10065       else
10066         ld_shlibs=no
10067       fi
10068       ;;
10069
10070     cygwin* | mingw* | pw32* | cegcc*)
10071       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10072       # as there is no search path for DLLs.
10073       hardcode_libdir_flag_spec='-L$libdir'
10074       allow_undefined_flag=unsupported
10075       always_export_symbols=no
10076       enable_shared_with_static_runtimes=yes
10077       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10078
10079       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10080         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10081         # If the export-symbols file already is a .def file (1st line
10082         # is EXPORTS), use it as is; otherwise, prepend...
10083         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10084           cp $export_symbols $output_objdir/$soname.def;
10085         else
10086           echo EXPORTS > $output_objdir/$soname.def;
10087           cat $export_symbols >> $output_objdir/$soname.def;
10088         fi~
10089         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10090       else
10091         ld_shlibs=no
10092       fi
10093       ;;
10094
10095     interix[3-9]*)
10096       hardcode_direct=no
10097       hardcode_shlibpath_var=no
10098       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10099       export_dynamic_flag_spec='${wl}-E'
10100       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10101       # Instead, shared libraries are loaded at an image base (0x10000000 by
10102       # default) and relocated if they conflict, which is a slow very memory
10103       # consuming and fragmenting process.  To avoid this, we pick a random,
10104       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10105       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10106       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10107       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10108       ;;
10109
10110     gnu* | linux* | tpf* | k*bsd*-gnu)
10111       tmp_diet=no
10112       if test "$host_os" = linux-dietlibc; then
10113         case $cc_basename in
10114           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10115         esac
10116       fi
10117       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10118          && test "$tmp_diet" = no
10119       then
10120         tmp_addflag=
10121         tmp_sharedflag='-shared'
10122         case $cc_basename,$host_cpu in
10123         pgcc*)                          # Portland Group C compiler
10124           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10125           tmp_addflag=' $pic_flag'
10126           ;;
10127         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10128           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10129           tmp_addflag=' $pic_flag -Mnomain' ;;
10130         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10131           tmp_addflag=' -i_dynamic' ;;
10132         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10133           tmp_addflag=' -i_dynamic -nofor_main' ;;
10134         ifc* | ifort*)                  # Intel Fortran compiler
10135           tmp_addflag=' -nofor_main' ;;
10136         lf95*)                          # Lahey Fortran 8.1
10137           whole_archive_flag_spec=
10138           tmp_sharedflag='--shared' ;;
10139         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10140           tmp_sharedflag='-qmkshrobj'
10141           tmp_addflag= ;;
10142         esac
10143         case `$CC -V 2>&1 | sed 5q` in
10144         *Sun\ C*)                       # Sun C 5.9
10145           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10146           compiler_needs_object=yes
10147           tmp_sharedflag='-G' ;;
10148         *Sun\ F*)                       # Sun Fortran 8.3
10149           tmp_sharedflag='-G' ;;
10150         esac
10151         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10152
10153         if test "x$supports_anon_versioning" = xyes; then
10154           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10155             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10156             echo "local: *; };" >> $output_objdir/$libname.ver~
10157             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10158         fi
10159
10160         case $cc_basename in
10161         xlf*)
10162           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10163           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10164           hardcode_libdir_flag_spec=
10165           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10166           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10167           if test "x$supports_anon_versioning" = xyes; then
10168             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10169               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10170               echo "local: *; };" >> $output_objdir/$libname.ver~
10171               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10172           fi
10173           ;;
10174         esac
10175       else
10176         ld_shlibs=no
10177       fi
10178       ;;
10179
10180     netbsd*)
10181       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10182         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10183         wlarc=
10184       else
10185         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10186         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10187       fi
10188       ;;
10189
10190     solaris*)
10191       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10192         ld_shlibs=no
10193         cat <<_LT_EOF 1>&2
10194
10195 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10196 *** create shared libraries on Solaris systems.  Therefore, libtool
10197 *** is disabling shared libraries support.  We urge you to upgrade GNU
10198 *** binutils to release 2.9.1 or newer.  Another option is to modify
10199 *** your PATH or compiler configuration so that the native linker is
10200 *** used, and then restart.
10201
10202 _LT_EOF
10203       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10204         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10206       else
10207         ld_shlibs=no
10208       fi
10209       ;;
10210
10211     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10212       case `$LD -v 2>&1` in
10213         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10214         ld_shlibs=no
10215         cat <<_LT_EOF 1>&2
10216
10217 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10218 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10219 *** is disabling shared libraries support.  We urge you to upgrade GNU
10220 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10221 *** your PATH or compiler configuration so that the native linker is
10222 *** used, and then restart.
10223
10224 _LT_EOF
10225         ;;
10226         *)
10227           # For security reasons, it is highly recommended that you always
10228           # use absolute paths for naming shared libraries, and exclude the
10229           # DT_RUNPATH tag from executables and libraries.  But doing so
10230           # requires that you compile everything twice, which is a pain.
10231           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10232             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10233             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10235           else
10236             ld_shlibs=no
10237           fi
10238         ;;
10239       esac
10240       ;;
10241
10242     sunos4*)
10243       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10244       wlarc=
10245       hardcode_direct=yes
10246       hardcode_shlibpath_var=no
10247       ;;
10248
10249     *)
10250       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10251         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10252         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10253       else
10254         ld_shlibs=no
10255       fi
10256       ;;
10257     esac
10258
10259     if test "$ld_shlibs" = no; then
10260       runpath_var=
10261       hardcode_libdir_flag_spec=
10262       export_dynamic_flag_spec=
10263       whole_archive_flag_spec=
10264     fi
10265   else
10266     # PORTME fill in a description of your system's linker (not GNU ld)
10267     case $host_os in
10268     aix3*)
10269       allow_undefined_flag=unsupported
10270       always_export_symbols=yes
10271       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10272       # Note: this linker hardcodes the directories in LIBPATH if there
10273       # are no directories specified by -L.
10274       hardcode_minus_L=yes
10275       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10276         # Neither direct hardcoding nor static linking is supported with a
10277         # broken collect2.
10278         hardcode_direct=unsupported
10279       fi
10280       ;;
10281
10282     aix[4-9]*)
10283       if test "$host_cpu" = ia64; then
10284         # On IA64, the linker does run time linking by default, so we don't
10285         # have to do anything special.
10286         aix_use_runtimelinking=no
10287         exp_sym_flag='-Bexport'
10288         no_entry_flag=""
10289       else
10290         # If we're using GNU nm, then we don't want the "-C" option.
10291         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10292         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10293           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10294         else
10295           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10296         fi
10297         aix_use_runtimelinking=no
10298
10299         # Test if we are trying to use run time linking or normal
10300         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10301         # need to do runtime linking.
10302         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10303           for ld_flag in $LDFLAGS; do
10304           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10305             aix_use_runtimelinking=yes
10306             break
10307           fi
10308           done
10309           ;;
10310         esac
10311
10312         exp_sym_flag='-bexport'
10313         no_entry_flag='-bnoentry'
10314       fi
10315
10316       # When large executables or shared objects are built, AIX ld can
10317       # have problems creating the table of contents.  If linking a library
10318       # or program results in "error TOC overflow" add -mminimal-toc to
10319       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10320       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10321
10322       archive_cmds=''
10323       hardcode_direct=yes
10324       hardcode_direct_absolute=yes
10325       hardcode_libdir_separator=':'
10326       link_all_deplibs=yes
10327       file_list_spec='${wl}-f,'
10328
10329       if test "$GCC" = yes; then
10330         case $host_os in aix4.[012]|aix4.[012].*)
10331         # We only want to do this on AIX 4.2 and lower, the check
10332         # below for broken collect2 doesn't work under 4.3+
10333           collect2name=`${CC} -print-prog-name=collect2`
10334           if test -f "$collect2name" &&
10335            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10336           then
10337           # We have reworked collect2
10338           :
10339           else
10340           # We have old collect2
10341           hardcode_direct=unsupported
10342           # It fails to find uninstalled libraries when the uninstalled
10343           # path is not listed in the libpath.  Setting hardcode_minus_L
10344           # to unsupported forces relinking
10345           hardcode_minus_L=yes
10346           hardcode_libdir_flag_spec='-L$libdir'
10347           hardcode_libdir_separator=
10348           fi
10349           ;;
10350         esac
10351         shared_flag='-shared'
10352         if test "$aix_use_runtimelinking" = yes; then
10353           shared_flag="$shared_flag "'${wl}-G'
10354         fi
10355       else
10356         # not using gcc
10357         if test "$host_cpu" = ia64; then
10358         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10359         # chokes on -Wl,-G. The following line is correct:
10360           shared_flag='-G'
10361         else
10362           if test "$aix_use_runtimelinking" = yes; then
10363             shared_flag='${wl}-G'
10364           else
10365             shared_flag='${wl}-bM:SRE'
10366           fi
10367         fi
10368       fi
10369
10370       export_dynamic_flag_spec='${wl}-bexpall'
10371       # It seems that -bexpall does not export symbols beginning with
10372       # underscore (_), so it is better to generate a list of symbols to export.
10373       always_export_symbols=yes
10374       if test "$aix_use_runtimelinking" = yes; then
10375         # Warning - without using the other runtime loading flags (-brtl),
10376         # -berok will link without error, but may produce a broken library.
10377         allow_undefined_flag='-berok'
10378         # Determine the default libpath from the value encoded in an
10379         # empty executable.
10380         cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386
10387 int
10388 main ()
10389 {
10390
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399   *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402   (eval "$ac_link") 2>conftest.er1
10403   ac_status=$?
10404   grep -v '^ *+' conftest.er1 >conftest.err
10405   rm -f conftest.er1
10406   cat conftest.err >&5
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); } && {
10409          test -z "$ac_c_werror_flag" ||
10410          test ! -s conftest.err
10411        } && test -s conftest$ac_exeext &&
10412        $as_test_x conftest$ac_exeext; then
10413
10414 lt_aix_libpath_sed='
10415     /Import File Strings/,/^$/ {
10416         /^0/ {
10417             s/^0  *\(.*\)$/\1/
10418             p
10419         }
10420     }'
10421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10422 # Check for a 64-bit object if we didn't find anything.
10423 if test -z "$aix_libpath"; then
10424   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10425 fi
10426 else
10427   echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430
10431 fi
10432
10433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10434       conftest$ac_exeext conftest.$ac_ext
10435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10436
10437         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10438         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10439       else
10440         if test "$host_cpu" = ia64; then
10441           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10442           allow_undefined_flag="-z nodefs"
10443           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10444         else
10445          # Determine the default libpath from the value encoded in an
10446          # empty executable.
10447          cat >conftest.$ac_ext <<_ACEOF
10448 /* confdefs.h.  */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h.  */
10453
10454 int
10455 main ()
10456 {
10457
10458   ;
10459   return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466   *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469   (eval "$ac_link") 2>conftest.er1
10470   ac_status=$?
10471   grep -v '^ *+' conftest.er1 >conftest.err
10472   rm -f conftest.er1
10473   cat conftest.err >&5
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); } && {
10476          test -z "$ac_c_werror_flag" ||
10477          test ! -s conftest.err
10478        } && test -s conftest$ac_exeext &&
10479        $as_test_x conftest$ac_exeext; then
10480
10481 lt_aix_libpath_sed='
10482     /Import File Strings/,/^$/ {
10483         /^0/ {
10484             s/^0  *\(.*\)$/\1/
10485             p
10486         }
10487     }'
10488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10489 # Check for a 64-bit object if we didn't find anything.
10490 if test -z "$aix_libpath"; then
10491   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10492 fi
10493 else
10494   echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497
10498 fi
10499
10500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10501       conftest$ac_exeext conftest.$ac_ext
10502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10503
10504          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10505           # Warning - without using the other run time loading flags,
10506           # -berok will link without error, but may produce a broken library.
10507           no_undefined_flag=' ${wl}-bernotok'
10508           allow_undefined_flag=' ${wl}-berok'
10509           # Exported symbols can be pulled into shared objects from archives
10510           whole_archive_flag_spec='$convenience'
10511           archive_cmds_need_lc=yes
10512           # This is similar to how AIX traditionally builds its shared libraries.
10513           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10514         fi
10515       fi
10516       ;;
10517
10518     amigaos*)
10519       case $host_cpu in
10520       powerpc)
10521             # see comment about AmigaOS4 .so support
10522             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10523             archive_expsym_cmds=''
10524         ;;
10525       m68k)
10526             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10527             hardcode_libdir_flag_spec='-L$libdir'
10528             hardcode_minus_L=yes
10529         ;;
10530       esac
10531       ;;
10532
10533     bsdi[45]*)
10534       export_dynamic_flag_spec=-rdynamic
10535       ;;
10536
10537     cygwin* | mingw* | pw32* | cegcc*)
10538       # When not using gcc, we currently assume that we are using
10539       # Microsoft Visual C++.
10540       # hardcode_libdir_flag_spec is actually meaningless, as there is
10541       # no search path for DLLs.
10542       hardcode_libdir_flag_spec=' '
10543       allow_undefined_flag=unsupported
10544       # Tell ltmain to make .lib files, not .a files.
10545       libext=lib
10546       # Tell ltmain to make .dll files, not .so files.
10547       shrext_cmds=".dll"
10548       # FIXME: Setting linknames here is a bad hack.
10549       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10550       # The linker will automatically build a .lib file if we build a DLL.
10551       old_archive_from_new_cmds='true'
10552       # FIXME: Should let the user specify the lib program.
10553       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10554       fix_srcfile_path='`cygpath -w "$srcfile"`'
10555       enable_shared_with_static_runtimes=yes
10556       ;;
10557
10558     darwin* | rhapsody*)
10559
10560
10561   archive_cmds_need_lc=no
10562   hardcode_direct=no
10563   hardcode_automatic=yes
10564   hardcode_shlibpath_var=unsupported
10565   whole_archive_flag_spec=''
10566   link_all_deplibs=yes
10567   allow_undefined_flag="$_lt_dar_allow_undefined"
10568   case $cc_basename in
10569      ifort*) _lt_dar_can_shared=yes ;;
10570      *) _lt_dar_can_shared=$GCC ;;
10571   esac
10572   if test "$_lt_dar_can_shared" = "yes"; then
10573     output_verbose_link_cmd=echo
10574     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10575     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10576     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10577     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10578
10579   else
10580   ld_shlibs=no
10581   fi
10582
10583       ;;
10584
10585     dgux*)
10586       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10587       hardcode_libdir_flag_spec='-L$libdir'
10588       hardcode_shlibpath_var=no
10589       ;;
10590
10591     freebsd1*)
10592       ld_shlibs=no
10593       ;;
10594
10595     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10596     # support.  Future versions do this automatically, but an explicit c++rt0.o
10597     # does not break anything, and helps significantly (at the cost of a little
10598     # extra space).
10599     freebsd2.2*)
10600       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10601       hardcode_libdir_flag_spec='-R$libdir'
10602       hardcode_direct=yes
10603       hardcode_shlibpath_var=no
10604       ;;
10605
10606     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10607     freebsd2*)
10608       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10609       hardcode_direct=yes
10610       hardcode_minus_L=yes
10611       hardcode_shlibpath_var=no
10612       ;;
10613
10614     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10615     freebsd* | dragonfly*)
10616       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10617       hardcode_libdir_flag_spec='-R$libdir'
10618       hardcode_direct=yes
10619       hardcode_shlibpath_var=no
10620       ;;
10621
10622     hpux9*)
10623       if test "$GCC" = yes; then
10624         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10625       else
10626         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10627       fi
10628       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10629       hardcode_libdir_separator=:
10630       hardcode_direct=yes
10631
10632       # hardcode_minus_L: Not really in the search PATH,
10633       # but as the default location of the library.
10634       hardcode_minus_L=yes
10635       export_dynamic_flag_spec='${wl}-E'
10636       ;;
10637
10638     hpux10*)
10639       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10640         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10641       else
10642         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10643       fi
10644       if test "$with_gnu_ld" = no; then
10645         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10646         hardcode_libdir_flag_spec_ld='+b $libdir'
10647         hardcode_libdir_separator=:
10648         hardcode_direct=yes
10649         hardcode_direct_absolute=yes
10650         export_dynamic_flag_spec='${wl}-E'
10651         # hardcode_minus_L: Not really in the search PATH,
10652         # but as the default location of the library.
10653         hardcode_minus_L=yes
10654       fi
10655       ;;
10656
10657     hpux11*)
10658       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10659         case $host_cpu in
10660         hppa*64*)
10661           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10662           ;;
10663         ia64*)
10664           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10665           ;;
10666         *)
10667           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10668           ;;
10669         esac
10670       else
10671         case $host_cpu in
10672         hppa*64*)
10673           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10674           ;;
10675         ia64*)
10676           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10677           ;;
10678         *)
10679           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10680           ;;
10681         esac
10682       fi
10683       if test "$with_gnu_ld" = no; then
10684         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10685         hardcode_libdir_separator=:
10686
10687         case $host_cpu in
10688         hppa*64*|ia64*)
10689           hardcode_direct=no
10690           hardcode_shlibpath_var=no
10691           ;;
10692         *)
10693           hardcode_direct=yes
10694           hardcode_direct_absolute=yes
10695           export_dynamic_flag_spec='${wl}-E'
10696
10697           # hardcode_minus_L: Not really in the search PATH,
10698           # but as the default location of the library.
10699           hardcode_minus_L=yes
10700           ;;
10701         esac
10702       fi
10703       ;;
10704
10705     irix5* | irix6* | nonstopux*)
10706       if test "$GCC" = yes; then
10707         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10708         # Try to use the -exported_symbol ld option, if it does not
10709         # work, assume that -exports_file does not work either and
10710         # implicitly export all symbols.
10711         save_LDFLAGS="$LDFLAGS"
10712         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10713         cat >conftest.$ac_ext <<_ACEOF
10714 int foo(void) {}
10715 _ACEOF
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (ac_try="$ac_link"
10718 case "(($ac_try" in
10719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720   *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723   (eval "$ac_link") 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } && {
10730          test -z "$ac_c_werror_flag" ||
10731          test ! -s conftest.err
10732        } && test -s conftest$ac_exeext &&
10733        $as_test_x conftest$ac_exeext; then
10734   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10735
10736 else
10737   echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10739
10740
10741 fi
10742
10743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10744       conftest$ac_exeext conftest.$ac_ext
10745         LDFLAGS="$save_LDFLAGS"
10746       else
10747         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10748         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10749       fi
10750       archive_cmds_need_lc='no'
10751       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10752       hardcode_libdir_separator=:
10753       inherit_rpath=yes
10754       link_all_deplibs=yes
10755       ;;
10756
10757     netbsd*)
10758       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10759         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10760       else
10761         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10762       fi
10763       hardcode_libdir_flag_spec='-R$libdir'
10764       hardcode_direct=yes
10765       hardcode_shlibpath_var=no
10766       ;;
10767
10768     newsos6)
10769       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10770       hardcode_direct=yes
10771       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10772       hardcode_libdir_separator=:
10773       hardcode_shlibpath_var=no
10774       ;;
10775
10776     *nto* | *qnx*)
10777       ;;
10778
10779     openbsd*)
10780       if test -f /usr/libexec/ld.so; then
10781         hardcode_direct=yes
10782         hardcode_shlibpath_var=no
10783         hardcode_direct_absolute=yes
10784         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10785           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10786           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10787           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10788           export_dynamic_flag_spec='${wl}-E'
10789         else
10790           case $host_os in
10791            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10792              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10793              hardcode_libdir_flag_spec='-R$libdir'
10794              ;;
10795            *)
10796              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10797              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10798              ;;
10799           esac
10800         fi
10801       else
10802         ld_shlibs=no
10803       fi
10804       ;;
10805
10806     os2*)
10807       hardcode_libdir_flag_spec='-L$libdir'
10808       hardcode_minus_L=yes
10809       allow_undefined_flag=unsupported
10810       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10811       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10812       ;;
10813
10814     osf3*)
10815       if test "$GCC" = yes; then
10816         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10817         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10818       else
10819         allow_undefined_flag=' -expect_unresolved \*'
10820         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10821       fi
10822       archive_cmds_need_lc='no'
10823       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10824       hardcode_libdir_separator=:
10825       ;;
10826
10827     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10828       if test "$GCC" = yes; then
10829         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10830         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10831         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10832       else
10833         allow_undefined_flag=' -expect_unresolved \*'
10834         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10835         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10836         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10837
10838         # Both c and cxx compiler support -rpath directly
10839         hardcode_libdir_flag_spec='-rpath $libdir'
10840       fi
10841       archive_cmds_need_lc='no'
10842       hardcode_libdir_separator=:
10843       ;;
10844
10845     solaris*)
10846       no_undefined_flag=' -z defs'
10847       if test "$GCC" = yes; then
10848         wlarc='${wl}'
10849         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10850         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10851           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10852       else
10853         case `$CC -V 2>&1` in
10854         *"Compilers 5.0"*)
10855           wlarc=''
10856           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10857           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10858           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10859           ;;
10860         *)
10861           wlarc='${wl}'
10862           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10863           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10864           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10865           ;;
10866         esac
10867       fi
10868       hardcode_libdir_flag_spec='-R$libdir'
10869       hardcode_shlibpath_var=no
10870       case $host_os in
10871       solaris2.[0-5] | solaris2.[0-5].*) ;;
10872       *)
10873         # The compiler driver will combine and reorder linker options,
10874         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10875         # but is careful enough not to reorder.
10876         # Supported since Solaris 2.6 (maybe 2.5.1?)
10877         if test "$GCC" = yes; then
10878           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10879         else
10880           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10881         fi
10882         ;;
10883       esac
10884       link_all_deplibs=yes
10885       ;;
10886
10887     sunos4*)
10888       if test "x$host_vendor" = xsequent; then
10889         # Use $CC to link under sequent, because it throws in some extra .o
10890         # files that make .init and .fini sections work.
10891         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10892       else
10893         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10894       fi
10895       hardcode_libdir_flag_spec='-L$libdir'
10896       hardcode_direct=yes
10897       hardcode_minus_L=yes
10898       hardcode_shlibpath_var=no
10899       ;;
10900
10901     sysv4)
10902       case $host_vendor in
10903         sni)
10904           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905           hardcode_direct=yes # is this really true???
10906         ;;
10907         siemens)
10908           ## LD is ld it makes a PLAMLIB
10909           ## CC just makes a GrossModule.
10910           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10911           reload_cmds='$CC -r -o $output$reload_objs'
10912           hardcode_direct=no
10913         ;;
10914         motorola)
10915           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10917         ;;
10918       esac
10919       runpath_var='LD_RUN_PATH'
10920       hardcode_shlibpath_var=no
10921       ;;
10922
10923     sysv4.3*)
10924       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10925       hardcode_shlibpath_var=no
10926       export_dynamic_flag_spec='-Bexport'
10927       ;;
10928
10929     sysv4*MP*)
10930       if test -d /usr/nec; then
10931         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10932         hardcode_shlibpath_var=no
10933         runpath_var=LD_RUN_PATH
10934         hardcode_runpath_var=yes
10935         ld_shlibs=yes
10936       fi
10937       ;;
10938
10939     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10940       no_undefined_flag='${wl}-z,text'
10941       archive_cmds_need_lc=no
10942       hardcode_shlibpath_var=no
10943       runpath_var='LD_RUN_PATH'
10944
10945       if test "$GCC" = yes; then
10946         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948       else
10949         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951       fi
10952       ;;
10953
10954     sysv5* | sco3.2v5* | sco5v6*)
10955       # Note: We can NOT use -z defs as we might desire, because we do not
10956       # link with -lc, and that would cause any symbols used from libc to
10957       # always be unresolved, which means just about no library would
10958       # ever link correctly.  If we're not using GNU ld we use -z text
10959       # though, which does catch some bad symbols but isn't as heavy-handed
10960       # as -z defs.
10961       no_undefined_flag='${wl}-z,text'
10962       allow_undefined_flag='${wl}-z,nodefs'
10963       archive_cmds_need_lc=no
10964       hardcode_shlibpath_var=no
10965       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10966       hardcode_libdir_separator=':'
10967       link_all_deplibs=yes
10968       export_dynamic_flag_spec='${wl}-Bexport'
10969       runpath_var='LD_RUN_PATH'
10970
10971       if test "$GCC" = yes; then
10972         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10973         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10974       else
10975         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10976         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10977       fi
10978       ;;
10979
10980     uts4*)
10981       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982       hardcode_libdir_flag_spec='-L$libdir'
10983       hardcode_shlibpath_var=no
10984       ;;
10985
10986     *)
10987       ld_shlibs=no
10988       ;;
10989     esac
10990
10991     if test x$host_vendor = xsni; then
10992       case $host in
10993       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10994         export_dynamic_flag_spec='${wl}-Blargedynsym'
10995         ;;
10996       esac
10997     fi
10998   fi
10999
11000 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11001 echo "${ECHO_T}$ld_shlibs" >&6; }
11002 test "$ld_shlibs" = no && can_build_shared=no
11003
11004 with_gnu_ld=$with_gnu_ld
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020 #
11021 # Do we need to explicitly link libc?
11022 #
11023 case "x$archive_cmds_need_lc" in
11024 x|xyes)
11025   # Assume -lc should be added
11026   archive_cmds_need_lc=yes
11027
11028   if test "$enable_shared" = yes && test "$GCC" = yes; then
11029     case $archive_cmds in
11030     *'~'*)
11031       # FIXME: we may have to deal with multi-command sequences.
11032       ;;
11033     '$CC '*)
11034       # Test whether the compiler implicitly links with -lc since on some
11035       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11036       # to ld, don't add -lc before -lgcc.
11037       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11038 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11039       $RM conftest*
11040       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11041
11042       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043   (eval $ac_compile) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); } 2>conftest.err; then
11047         soname=conftest
11048         lib=conftest
11049         libobjs=conftest.$ac_objext
11050         deplibs=
11051         wl=$lt_prog_compiler_wl
11052         pic_flag=$lt_prog_compiler_pic
11053         compiler_flags=-v
11054         linker_flags=-v
11055         verstring=
11056         output_objdir=.
11057         libname=conftest
11058         lt_save_allow_undefined_flag=$allow_undefined_flag
11059         allow_undefined_flag=
11060         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11061   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }
11065         then
11066           archive_cmds_need_lc=no
11067         else
11068           archive_cmds_need_lc=yes
11069         fi
11070         allow_undefined_flag=$lt_save_allow_undefined_flag
11071       else
11072         cat conftest.err 1>&5
11073       fi
11074       $RM conftest*
11075       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11076 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11077       ;;
11078     esac
11079   fi
11080   ;;
11081 esac
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11240 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11241
11242 if test "$GCC" = yes; then
11243   case $host_os in
11244     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11245     *) lt_awk_arg="/^libraries:/" ;;
11246   esac
11247   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11248   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11249     # if the path contains ";" then we assume it to be the separator
11250     # otherwise default to the standard path separator (i.e. ":") - it is
11251     # assumed that no part of a normal pathname contains ";" but that should
11252     # okay in the real world where ";" in dirpaths is itself problematic.
11253     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11254   else
11255     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11256   fi
11257   # Ok, now we have the path, separated by spaces, we can step through it
11258   # and add multilib dir if necessary.
11259   lt_tmp_lt_search_path_spec=
11260   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11261   for lt_sys_path in $lt_search_path_spec; do
11262     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11263       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11264     else
11265       test -d "$lt_sys_path" && \
11266         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11267     fi
11268   done
11269   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11270 BEGIN {RS=" "; FS="/|\n";} {
11271   lt_foo="";
11272   lt_count=0;
11273   for (lt_i = NF; lt_i > 0; lt_i--) {
11274     if ($lt_i != "" && $lt_i != ".") {
11275       if ($lt_i == "..") {
11276         lt_count++;
11277       } else {
11278         if (lt_count == 0) {
11279           lt_foo="/" $lt_i lt_foo;
11280         } else {
11281           lt_count--;
11282         }
11283       }
11284     }
11285   }
11286   if (lt_foo != "") { lt_freq[lt_foo]++; }
11287   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11288 }'`
11289   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11290 else
11291   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11292 fi
11293 library_names_spec=
11294 libname_spec='lib$name'
11295 soname_spec=
11296 shrext_cmds=".so"
11297 postinstall_cmds=
11298 postuninstall_cmds=
11299 finish_cmds=
11300 finish_eval=
11301 shlibpath_var=
11302 shlibpath_overrides_runpath=unknown
11303 version_type=none
11304 dynamic_linker="$host_os ld.so"
11305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11306 need_lib_prefix=unknown
11307 hardcode_into_libs=no
11308
11309 # when you set need_version to no, make sure it does not cause -set_version
11310 # flags to be left without arguments
11311 need_version=unknown
11312
11313 case $host_os in
11314 aix3*)
11315   version_type=linux
11316   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11317   shlibpath_var=LIBPATH
11318
11319   # AIX 3 has no versioning support, so we append a major version to the name.
11320   soname_spec='${libname}${release}${shared_ext}$major'
11321   ;;
11322
11323 aix[4-9]*)
11324   version_type=linux
11325   need_lib_prefix=no
11326   need_version=no
11327   hardcode_into_libs=yes
11328   if test "$host_cpu" = ia64; then
11329     # AIX 5 supports IA64
11330     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11331     shlibpath_var=LD_LIBRARY_PATH
11332   else
11333     # With GCC up to 2.95.x, collect2 would create an import file
11334     # for dependence libraries.  The import file would start with
11335     # the line `#! .'.  This would cause the generated library to
11336     # depend on `.', always an invalid library.  This was fixed in
11337     # development snapshots of GCC prior to 3.0.
11338     case $host_os in
11339       aix4 | aix4.[01] | aix4.[01].*)
11340       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11341            echo ' yes '
11342            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11343         :
11344       else
11345         can_build_shared=no
11346       fi
11347       ;;
11348     esac
11349     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11350     # soname into executable. Probably we can add versioning support to
11351     # collect2, so additional links can be useful in future.
11352     if test "$aix_use_runtimelinking" = yes; then
11353       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11354       # instead of lib<name>.a to let people know that these are not
11355       # typical AIX shared libraries.
11356       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357     else
11358       # We preserve .a as extension for shared libraries through AIX4.2
11359       # and later when we are not doing run time linking.
11360       library_names_spec='${libname}${release}.a $libname.a'
11361       soname_spec='${libname}${release}${shared_ext}$major'
11362     fi
11363     shlibpath_var=LIBPATH
11364   fi
11365   ;;
11366
11367 amigaos*)
11368   case $host_cpu in
11369   powerpc)
11370     # Since July 2007 AmigaOS4 officially supports .so libraries.
11371     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11373     ;;
11374   m68k)
11375     library_names_spec='$libname.ixlibrary $libname.a'
11376     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11377     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11378     ;;
11379   esac
11380   ;;
11381
11382 beos*)
11383   library_names_spec='${libname}${shared_ext}'
11384   dynamic_linker="$host_os ld.so"
11385   shlibpath_var=LIBRARY_PATH
11386   ;;
11387
11388 bsdi[45]*)
11389   version_type=linux
11390   need_version=no
11391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392   soname_spec='${libname}${release}${shared_ext}$major'
11393   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11394   shlibpath_var=LD_LIBRARY_PATH
11395   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11396   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11397   # the default ld.so.conf also contains /usr/contrib/lib and
11398   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11399   # libtool to hard-code these into programs
11400   ;;
11401
11402 cygwin* | mingw* | pw32* | cegcc*)
11403   version_type=windows
11404   shrext_cmds=".dll"
11405   need_version=no
11406   need_lib_prefix=no
11407
11408   case $GCC,$host_os in
11409   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11410     library_names_spec='$libname.dll.a'
11411     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11412     postinstall_cmds='base_file=`basename \${file}`~
11413       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11414       dldir=$destdir/`dirname \$dlpath`~
11415       test -d \$dldir || mkdir -p \$dldir~
11416       $install_prog $dir/$dlname \$dldir/$dlname~
11417       chmod a+x \$dldir/$dlname~
11418       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11419         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11420       fi'
11421     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11422       dlpath=$dir/\$dldll~
11423        $RM \$dlpath'
11424     shlibpath_overrides_runpath=yes
11425
11426     case $host_os in
11427     cygwin*)
11428       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11429       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11430       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11431       ;;
11432     mingw* | cegcc*)
11433       # MinGW DLLs use traditional 'lib' prefix
11434       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11435       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11436       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11437         # It is most probably a Windows format PATH printed by
11438         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11439         # path with ; separators, and with drive letters. We can handle the
11440         # drive letters (cygwin fileutils understands them), so leave them,
11441         # especially as we might pass files found there to a mingw objdump,
11442         # which wouldn't understand a cygwinified path. Ahh.
11443         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11444       else
11445         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11446       fi
11447       ;;
11448     pw32*)
11449       # pw32 DLLs use 'pw' prefix rather than 'lib'
11450       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11451       ;;
11452     esac
11453     ;;
11454
11455   *)
11456     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11457     ;;
11458   esac
11459   dynamic_linker='Win32 ld.exe'
11460   # FIXME: first we should search . and the directory the executable is in
11461   shlibpath_var=PATH
11462   ;;
11463
11464 darwin* | rhapsody*)
11465   dynamic_linker="$host_os dyld"
11466   version_type=darwin
11467   need_lib_prefix=no
11468   need_version=no
11469   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11470   soname_spec='${libname}${release}${major}$shared_ext'
11471   shlibpath_overrides_runpath=yes
11472   shlibpath_var=DYLD_LIBRARY_PATH
11473   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11474
11475   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11476   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11477   ;;
11478
11479 dgux*)
11480   version_type=linux
11481   need_lib_prefix=no
11482   need_version=no
11483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11484   soname_spec='${libname}${release}${shared_ext}$major'
11485   shlibpath_var=LD_LIBRARY_PATH
11486   ;;
11487
11488 freebsd1*)
11489   dynamic_linker=no
11490   ;;
11491
11492 freebsd* | dragonfly*)
11493   # DragonFly does not have aout.  When/if they implement a new
11494   # versioning mechanism, adjust this.
11495   if test -x /usr/bin/objformat; then
11496     objformat=`/usr/bin/objformat`
11497   else
11498     case $host_os in
11499     freebsd[123]*) objformat=aout ;;
11500     *) objformat=elf ;;
11501     esac
11502   fi
11503   version_type=freebsd-$objformat
11504   case $version_type in
11505     freebsd-elf*)
11506       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11507       need_version=no
11508       need_lib_prefix=no
11509       ;;
11510     freebsd-*)
11511       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11512       need_version=yes
11513       ;;
11514   esac
11515   shlibpath_var=LD_LIBRARY_PATH
11516   case $host_os in
11517   freebsd2*)
11518     shlibpath_overrides_runpath=yes
11519     ;;
11520   freebsd3.[01]* | freebsdelf3.[01]*)
11521     shlibpath_overrides_runpath=yes
11522     hardcode_into_libs=yes
11523     ;;
11524   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11525   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11526     shlibpath_overrides_runpath=no
11527     hardcode_into_libs=yes
11528     ;;
11529   *) # from 4.6 on, and DragonFly
11530     shlibpath_overrides_runpath=yes
11531     hardcode_into_libs=yes
11532     ;;
11533   esac
11534   ;;
11535
11536 gnu*)
11537   version_type=linux
11538   need_lib_prefix=no
11539   need_version=no
11540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11541   soname_spec='${libname}${release}${shared_ext}$major'
11542   shlibpath_var=LD_LIBRARY_PATH
11543   hardcode_into_libs=yes
11544   ;;
11545
11546 hpux9* | hpux10* | hpux11*)
11547   # Give a soname corresponding to the major version so that dld.sl refuses to
11548   # link against other versions.
11549   version_type=sunos
11550   need_lib_prefix=no
11551   need_version=no
11552   case $host_cpu in
11553   ia64*)
11554     shrext_cmds='.so'
11555     hardcode_into_libs=yes
11556     dynamic_linker="$host_os dld.so"
11557     shlibpath_var=LD_LIBRARY_PATH
11558     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560     soname_spec='${libname}${release}${shared_ext}$major'
11561     if test "X$HPUX_IA64_MODE" = X32; then
11562       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11563     else
11564       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11565     fi
11566     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11567     ;;
11568   hppa*64*)
11569     shrext_cmds='.sl'
11570     hardcode_into_libs=yes
11571     dynamic_linker="$host_os dld.sl"
11572     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11573     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575     soname_spec='${libname}${release}${shared_ext}$major'
11576     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11577     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11578     ;;
11579   *)
11580     shrext_cmds='.sl'
11581     dynamic_linker="$host_os dld.sl"
11582     shlibpath_var=SHLIB_PATH
11583     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11584     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585     soname_spec='${libname}${release}${shared_ext}$major'
11586     ;;
11587   esac
11588   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11589   postinstall_cmds='chmod 555 $lib'
11590   ;;
11591
11592 interix[3-9]*)
11593   version_type=linux
11594   need_lib_prefix=no
11595   need_version=no
11596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11597   soname_spec='${libname}${release}${shared_ext}$major'
11598   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11599   shlibpath_var=LD_LIBRARY_PATH
11600   shlibpath_overrides_runpath=no
11601   hardcode_into_libs=yes
11602   ;;
11603
11604 irix5* | irix6* | nonstopux*)
11605   case $host_os in
11606     nonstopux*) version_type=nonstopux ;;
11607     *)
11608         if test "$lt_cv_prog_gnu_ld" = yes; then
11609                 version_type=linux
11610         else
11611                 version_type=irix
11612         fi ;;
11613   esac
11614   need_lib_prefix=no
11615   need_version=no
11616   soname_spec='${libname}${release}${shared_ext}$major'
11617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11618   case $host_os in
11619   irix5* | nonstopux*)
11620     libsuff= shlibsuff=
11621     ;;
11622   *)
11623     case $LD in # libtool.m4 will add one of these switches to LD
11624     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11625       libsuff= shlibsuff= libmagic=32-bit;;
11626     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11627       libsuff=32 shlibsuff=N32 libmagic=N32;;
11628     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11629       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11630     *) libsuff= shlibsuff= libmagic=never-match;;
11631     esac
11632     ;;
11633   esac
11634   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11635   shlibpath_overrides_runpath=no
11636   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11637   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11638   hardcode_into_libs=yes
11639   ;;
11640
11641 # No shared lib support for Linux oldld, aout, or coff.
11642 linux*oldld* | linux*aout* | linux*coff*)
11643   dynamic_linker=no
11644   ;;
11645
11646 # This must be Linux ELF.
11647 linux* | k*bsd*-gnu)
11648   version_type=linux
11649   need_lib_prefix=no
11650   need_version=no
11651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652   soname_spec='${libname}${release}${shared_ext}$major'
11653   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11654   shlibpath_var=LD_LIBRARY_PATH
11655   shlibpath_overrides_runpath=no
11656   # Some binutils ld are patched to set DT_RUNPATH
11657   save_LDFLAGS=$LDFLAGS
11658   save_libdir=$libdir
11659   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11660        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11661   cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h.  */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h.  */
11667
11668 int
11669 main ()
11670 {
11671
11672   ;
11673   return 0;
11674 }
11675 _ACEOF
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (ac_try="$ac_link"
11678 case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_link") 2>conftest.er1
11684   ac_status=$?
11685   grep -v '^ *+' conftest.er1 >conftest.err
11686   rm -f conftest.er1
11687   cat conftest.err >&5
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); } && {
11690          test -z "$ac_c_werror_flag" ||
11691          test ! -s conftest.err
11692        } && test -s conftest$ac_exeext &&
11693        $as_test_x conftest$ac_exeext; then
11694   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11695   shlibpath_overrides_runpath=yes
11696 fi
11697
11698 else
11699   echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702
11703 fi
11704
11705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11706       conftest$ac_exeext conftest.$ac_ext
11707   LDFLAGS=$save_LDFLAGS
11708   libdir=$save_libdir
11709
11710   # This implies no fast_install, which is unacceptable.
11711   # Some rework will be needed to allow for fast_install
11712   # before this can be enabled.
11713   hardcode_into_libs=yes
11714
11715   # Append ld.so.conf contents to the search path
11716   if test -f /etc/ld.so.conf; then
11717     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11718     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11719   fi
11720
11721   # We used to test for /lib/ld.so.1 and disable shared libraries on
11722   # powerpc, because MkLinux only supported shared libraries with the
11723   # GNU dynamic linker.  Since this was broken with cross compilers,
11724   # most powerpc-linux boxes support dynamic linking these days and
11725   # people can always --disable-shared, the test was removed, and we
11726   # assume the GNU/Linux dynamic linker is in use.
11727   dynamic_linker='GNU/Linux ld.so'
11728   ;;
11729
11730 netbsd*)
11731   version_type=sunos
11732   need_lib_prefix=no
11733   need_version=no
11734   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11736     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11737     dynamic_linker='NetBSD (a.out) ld.so'
11738   else
11739     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11740     soname_spec='${libname}${release}${shared_ext}$major'
11741     dynamic_linker='NetBSD ld.elf_so'
11742   fi
11743   shlibpath_var=LD_LIBRARY_PATH
11744   shlibpath_overrides_runpath=yes
11745   hardcode_into_libs=yes
11746   ;;
11747
11748 newsos6)
11749   version_type=linux
11750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751   shlibpath_var=LD_LIBRARY_PATH
11752   shlibpath_overrides_runpath=yes
11753   ;;
11754
11755 *nto* | *qnx*)
11756   version_type=qnx
11757   need_lib_prefix=no
11758   need_version=no
11759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760   soname_spec='${libname}${release}${shared_ext}$major'
11761   shlibpath_var=LD_LIBRARY_PATH
11762   shlibpath_overrides_runpath=no
11763   hardcode_into_libs=yes
11764   dynamic_linker='ldqnx.so'
11765   ;;
11766
11767 openbsd*)
11768   version_type=sunos
11769   sys_lib_dlsearch_path_spec="/usr/lib"
11770   need_lib_prefix=no
11771   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11772   case $host_os in
11773     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11774     *)                          need_version=no  ;;
11775   esac
11776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11777   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11778   shlibpath_var=LD_LIBRARY_PATH
11779   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11780     case $host_os in
11781       openbsd2.[89] | openbsd2.[89].*)
11782         shlibpath_overrides_runpath=no
11783         ;;
11784       *)
11785         shlibpath_overrides_runpath=yes
11786         ;;
11787       esac
11788   else
11789     shlibpath_overrides_runpath=yes
11790   fi
11791   ;;
11792
11793 os2*)
11794   libname_spec='$name'
11795   shrext_cmds=".dll"
11796   need_lib_prefix=no
11797   library_names_spec='$libname${shared_ext} $libname.a'
11798   dynamic_linker='OS/2 ld.exe'
11799   shlibpath_var=LIBPATH
11800   ;;
11801
11802 osf3* | osf4* | osf5*)
11803   version_type=osf
11804   need_lib_prefix=no
11805   need_version=no
11806   soname_spec='${libname}${release}${shared_ext}$major'
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808   shlibpath_var=LD_LIBRARY_PATH
11809   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11810   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11811   ;;
11812
11813 rdos*)
11814   dynamic_linker=no
11815   ;;
11816
11817 solaris*)
11818   version_type=linux
11819   need_lib_prefix=no
11820   need_version=no
11821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822   soname_spec='${libname}${release}${shared_ext}$major'
11823   shlibpath_var=LD_LIBRARY_PATH
11824   shlibpath_overrides_runpath=yes
11825   hardcode_into_libs=yes
11826   # ldd complains unless libraries are executable
11827   postinstall_cmds='chmod +x $lib'
11828   ;;
11829
11830 sunos4*)
11831   version_type=sunos
11832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11833   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11834   shlibpath_var=LD_LIBRARY_PATH
11835   shlibpath_overrides_runpath=yes
11836   if test "$with_gnu_ld" = yes; then
11837     need_lib_prefix=no
11838   fi
11839   need_version=yes
11840   ;;
11841
11842 sysv4 | sysv4.3*)
11843   version_type=linux
11844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845   soname_spec='${libname}${release}${shared_ext}$major'
11846   shlibpath_var=LD_LIBRARY_PATH
11847   case $host_vendor in
11848     sni)
11849       shlibpath_overrides_runpath=no
11850       need_lib_prefix=no
11851       runpath_var=LD_RUN_PATH
11852       ;;
11853     siemens)
11854       need_lib_prefix=no
11855       ;;
11856     motorola)
11857       need_lib_prefix=no
11858       need_version=no
11859       shlibpath_overrides_runpath=no
11860       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11861       ;;
11862   esac
11863   ;;
11864
11865 sysv4*MP*)
11866   if test -d /usr/nec ;then
11867     version_type=linux
11868     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11869     soname_spec='$libname${shared_ext}.$major'
11870     shlibpath_var=LD_LIBRARY_PATH
11871   fi
11872   ;;
11873
11874 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11875   version_type=freebsd-elf
11876   need_lib_prefix=no
11877   need_version=no
11878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11879   soname_spec='${libname}${release}${shared_ext}$major'
11880   shlibpath_var=LD_LIBRARY_PATH
11881   shlibpath_overrides_runpath=yes
11882   hardcode_into_libs=yes
11883   if test "$with_gnu_ld" = yes; then
11884     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11885   else
11886     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11887     case $host_os in
11888       sco3.2v5*)
11889         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11890         ;;
11891     esac
11892   fi
11893   sys_lib_dlsearch_path_spec='/usr/lib'
11894   ;;
11895
11896 tpf*)
11897   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11898   version_type=linux
11899   need_lib_prefix=no
11900   need_version=no
11901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11902   shlibpath_var=LD_LIBRARY_PATH
11903   shlibpath_overrides_runpath=no
11904   hardcode_into_libs=yes
11905   ;;
11906
11907 uts4*)
11908   version_type=linux
11909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11910   soname_spec='${libname}${release}${shared_ext}$major'
11911   shlibpath_var=LD_LIBRARY_PATH
11912   ;;
11913
11914 *)
11915   dynamic_linker=no
11916   ;;
11917 esac
11918 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11919 echo "${ECHO_T}$dynamic_linker" >&6; }
11920 test "$dynamic_linker" = no && can_build_shared=no
11921
11922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11923 if test "$GCC" = yes; then
11924   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11925 fi
11926
11927 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11928   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11929 fi
11930 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11931   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11932 fi
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12021 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12022 hardcode_action=
12023 if test -n "$hardcode_libdir_flag_spec" ||
12024    test -n "$runpath_var" ||
12025    test "X$hardcode_automatic" = "Xyes" ; then
12026
12027   # We can hardcode non-existent directories.
12028   if test "$hardcode_direct" != no &&
12029      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12030      # have to relink, otherwise we might link with an installed library
12031      # when we should be linking with a yet-to-be-installed one
12032      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12033      test "$hardcode_minus_L" != no; then
12034     # Linking always hardcodes the temporary library directory.
12035     hardcode_action=relink
12036   else
12037     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12038     hardcode_action=immediate
12039   fi
12040 else
12041   # We cannot hardcode anything, or else we can only hardcode existing
12042   # directories.
12043   hardcode_action=unsupported
12044 fi
12045 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12046 echo "${ECHO_T}$hardcode_action" >&6; }
12047
12048 if test "$hardcode_action" = relink ||
12049    test "$inherit_rpath" = yes; then
12050   # Fast installation is not supported
12051   enable_fast_install=no
12052 elif test "$shlibpath_overrides_runpath" = yes ||
12053      test "$enable_shared" = no; then
12054   # Fast installation is not necessary
12055   enable_fast_install=needless
12056 fi
12057
12058
12059
12060
12061
12062
12063   if test "x$enable_dlopen" != xyes; then
12064   enable_dlopen=unknown
12065   enable_dlopen_self=unknown
12066   enable_dlopen_self_static=unknown
12067 else
12068   lt_cv_dlopen=no
12069   lt_cv_dlopen_libs=
12070
12071   case $host_os in
12072   beos*)
12073     lt_cv_dlopen="load_add_on"
12074     lt_cv_dlopen_libs=
12075     lt_cv_dlopen_self=yes
12076     ;;
12077
12078   mingw* | pw32* | cegcc*)
12079     lt_cv_dlopen="LoadLibrary"
12080     lt_cv_dlopen_libs=
12081     ;;
12082
12083   cygwin*)
12084     lt_cv_dlopen="dlopen"
12085     lt_cv_dlopen_libs=
12086     ;;
12087
12088   darwin*)
12089   # if libdl is installed we need to link against it
12090     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12091 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12092 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12093   echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095   ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-ldl  $LIBS"
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h.  */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h.  */
12103
12104 /* Override any GCC internal prototype to avoid an error.
12105    Use char because int might match the return type of a GCC
12106    builtin and then its argument prototype would still apply.  */
12107 #ifdef __cplusplus
12108 extern "C"
12109 #endif
12110 char dlopen ();
12111 int
12112 main ()
12113 {
12114 return dlopen ();
12115   ;
12116   return 0;
12117 }
12118 _ACEOF
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (ac_try="$ac_link"
12121 case "(($ac_try" in
12122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123   *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126   (eval "$ac_link") 2>conftest.er1
12127   ac_status=$?
12128   grep -v '^ *+' conftest.er1 >conftest.err
12129   rm -f conftest.er1
12130   cat conftest.err >&5
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); } && {
12133          test -z "$ac_c_werror_flag" ||
12134          test ! -s conftest.err
12135        } && test -s conftest$ac_exeext &&
12136        $as_test_x conftest$ac_exeext; then
12137   ac_cv_lib_dl_dlopen=yes
12138 else
12139   echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142         ac_cv_lib_dl_dlopen=no
12143 fi
12144
12145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12146       conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12150 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12151 if test $ac_cv_lib_dl_dlopen = yes; then
12152   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12153 else
12154
12155     lt_cv_dlopen="dyld"
12156     lt_cv_dlopen_libs=
12157     lt_cv_dlopen_self=yes
12158
12159 fi
12160
12161     ;;
12162
12163   *)
12164     { echo "$as_me:$LINENO: checking for shl_load" >&5
12165 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12166 if test "${ac_cv_func_shl_load+set}" = set; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12177 #define shl_load innocuous_shl_load
12178
12179 /* System header to define __stub macros and hopefully few prototypes,
12180     which can conflict with char shl_load (); below.
12181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12182     <limits.h> exists even on freestanding compilers.  */
12183
12184 #ifdef __STDC__
12185 # include <limits.h>
12186 #else
12187 # include <assert.h>
12188 #endif
12189
12190 #undef shl_load
12191
12192 /* Override any GCC internal prototype to avoid an error.
12193    Use char because int might match the return type of a GCC
12194    builtin and then its argument prototype would still apply.  */
12195 #ifdef __cplusplus
12196 extern "C"
12197 #endif
12198 char shl_load ();
12199 /* The GNU C library defines this for functions which it implements
12200     to always fail with ENOSYS.  Some functions are actually named
12201     something starting with __ and the normal name is an alias.  */
12202 #if defined __stub_shl_load || defined __stub___shl_load
12203 choke me
12204 #endif
12205
12206 int
12207 main ()
12208 {
12209 return shl_load ();
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218   *) ac_try_echo=$ac_try;;
12219 esac
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221   (eval "$ac_link") 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } && {
12228          test -z "$ac_c_werror_flag" ||
12229          test ! -s conftest.err
12230        } && test -s conftest$ac_exeext &&
12231        $as_test_x conftest$ac_exeext; then
12232   ac_cv_func_shl_load=yes
12233 else
12234   echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12236
12237         ac_cv_func_shl_load=no
12238 fi
12239
12240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12241       conftest$ac_exeext conftest.$ac_ext
12242 fi
12243 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12244 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12245 if test $ac_cv_func_shl_load = yes; then
12246   lt_cv_dlopen="shl_load"
12247 else
12248   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12249 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12250 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12251   echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253   ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-ldld  $LIBS"
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261
12262 /* Override any GCC internal prototype to avoid an error.
12263    Use char because int might match the return type of a GCC
12264    builtin and then its argument prototype would still apply.  */
12265 #ifdef __cplusplus
12266 extern "C"
12267 #endif
12268 char shl_load ();
12269 int
12270 main ()
12271 {
12272 return shl_load ();
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (ac_try="$ac_link"
12279 case "(($ac_try" in
12280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281   *) ac_try_echo=$ac_try;;
12282 esac
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284   (eval "$ac_link") 2>conftest.er1
12285   ac_status=$?
12286   grep -v '^ *+' conftest.er1 >conftest.err
12287   rm -f conftest.er1
12288   cat conftest.err >&5
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); } && {
12291          test -z "$ac_c_werror_flag" ||
12292          test ! -s conftest.err
12293        } && test -s conftest$ac_exeext &&
12294        $as_test_x conftest$ac_exeext; then
12295   ac_cv_lib_dld_shl_load=yes
12296 else
12297   echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12299
12300         ac_cv_lib_dld_shl_load=no
12301 fi
12302
12303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12304       conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12306 fi
12307 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12308 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12309 if test $ac_cv_lib_dld_shl_load = yes; then
12310   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12311 else
12312   { echo "$as_me:$LINENO: checking for dlopen" >&5
12313 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12314 if test "${ac_cv_func_dlopen+set}" = set; then
12315   echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317   cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h.  */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h.  */
12323 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12325 #define dlopen innocuous_dlopen
12326
12327 /* System header to define __stub macros and hopefully few prototypes,
12328     which can conflict with char dlopen (); below.
12329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12330     <limits.h> exists even on freestanding compilers.  */
12331
12332 #ifdef __STDC__
12333 # include <limits.h>
12334 #else
12335 # include <assert.h>
12336 #endif
12337
12338 #undef dlopen
12339
12340 /* Override any GCC internal prototype to avoid an error.
12341    Use char because int might match the return type of a GCC
12342    builtin and then its argument prototype would still apply.  */
12343 #ifdef __cplusplus
12344 extern "C"
12345 #endif
12346 char dlopen ();
12347 /* The GNU C library defines this for functions which it implements
12348     to always fail with ENOSYS.  Some functions are actually named
12349     something starting with __ and the normal name is an alias.  */
12350 #if defined __stub_dlopen || defined __stub___dlopen
12351 choke me
12352 #endif
12353
12354 int
12355 main ()
12356 {
12357 return dlopen ();
12358   ;
12359   return 0;
12360 }
12361 _ACEOF
12362 rm -f conftest.$ac_objext conftest$ac_exeext
12363 if { (ac_try="$ac_link"
12364 case "(($ac_try" in
12365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366   *) ac_try_echo=$ac_try;;
12367 esac
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369   (eval "$ac_link") 2>conftest.er1
12370   ac_status=$?
12371   grep -v '^ *+' conftest.er1 >conftest.err
12372   rm -f conftest.er1
12373   cat conftest.err >&5
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); } && {
12376          test -z "$ac_c_werror_flag" ||
12377          test ! -s conftest.err
12378        } && test -s conftest$ac_exeext &&
12379        $as_test_x conftest$ac_exeext; then
12380   ac_cv_func_dlopen=yes
12381 else
12382   echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12384
12385         ac_cv_func_dlopen=no
12386 fi
12387
12388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12389       conftest$ac_exeext conftest.$ac_ext
12390 fi
12391 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12392 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12393 if test $ac_cv_func_dlopen = yes; then
12394   lt_cv_dlopen="dlopen"
12395 else
12396   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12397 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12398 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12399   echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401   ac_check_lib_save_LIBS=$LIBS
12402 LIBS="-ldl  $LIBS"
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h.  */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h.  */
12409
12410 /* Override any GCC internal prototype to avoid an error.
12411    Use char because int might match the return type of a GCC
12412    builtin and then its argument prototype would still apply.  */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 char dlopen ();
12417 int
12418 main ()
12419 {
12420 return dlopen ();
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (ac_try="$ac_link"
12427 case "(($ac_try" in
12428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429   *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432   (eval "$ac_link") 2>conftest.er1
12433   ac_status=$?
12434   grep -v '^ *+' conftest.er1 >conftest.err
12435   rm -f conftest.er1
12436   cat conftest.err >&5
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); } && {
12439          test -z "$ac_c_werror_flag" ||
12440          test ! -s conftest.err
12441        } && test -s conftest$ac_exeext &&
12442        $as_test_x conftest$ac_exeext; then
12443   ac_cv_lib_dl_dlopen=yes
12444 else
12445   echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448         ac_cv_lib_dl_dlopen=no
12449 fi
12450
12451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12452       conftest$ac_exeext conftest.$ac_ext
12453 LIBS=$ac_check_lib_save_LIBS
12454 fi
12455 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12456 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12457 if test $ac_cv_lib_dl_dlopen = yes; then
12458   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12459 else
12460   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12461 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12462 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12463   echo $ECHO_N "(cached) $ECHO_C" >&6
12464 else
12465   ac_check_lib_save_LIBS=$LIBS
12466 LIBS="-lsvld  $LIBS"
12467 cat >conftest.$ac_ext <<_ACEOF
12468 /* confdefs.h.  */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h.  */
12473
12474 /* Override any GCC internal prototype to avoid an error.
12475    Use char because int might match the return type of a GCC
12476    builtin and then its argument prototype would still apply.  */
12477 #ifdef __cplusplus
12478 extern "C"
12479 #endif
12480 char dlopen ();
12481 int
12482 main ()
12483 {
12484 return dlopen ();
12485   ;
12486   return 0;
12487 }
12488 _ACEOF
12489 rm -f conftest.$ac_objext conftest$ac_exeext
12490 if { (ac_try="$ac_link"
12491 case "(($ac_try" in
12492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493   *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496   (eval "$ac_link") 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } && {
12503          test -z "$ac_c_werror_flag" ||
12504          test ! -s conftest.err
12505        } && test -s conftest$ac_exeext &&
12506        $as_test_x conftest$ac_exeext; then
12507   ac_cv_lib_svld_dlopen=yes
12508 else
12509   echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12511
12512         ac_cv_lib_svld_dlopen=no
12513 fi
12514
12515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12516       conftest$ac_exeext conftest.$ac_ext
12517 LIBS=$ac_check_lib_save_LIBS
12518 fi
12519 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12520 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12521 if test $ac_cv_lib_svld_dlopen = yes; then
12522   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12523 else
12524   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12525 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12526 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12527   echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529   ac_check_lib_save_LIBS=$LIBS
12530 LIBS="-ldld  $LIBS"
12531 cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h.  */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h.  */
12537
12538 /* Override any GCC internal prototype to avoid an error.
12539    Use char because int might match the return type of a GCC
12540    builtin and then its argument prototype would still apply.  */
12541 #ifdef __cplusplus
12542 extern "C"
12543 #endif
12544 char dld_link ();
12545 int
12546 main ()
12547 {
12548 return dld_link ();
12549   ;
12550   return 0;
12551 }
12552 _ACEOF
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (ac_try="$ac_link"
12555 case "(($ac_try" in
12556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557   *) ac_try_echo=$ac_try;;
12558 esac
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560   (eval "$ac_link") 2>conftest.er1
12561   ac_status=$?
12562   grep -v '^ *+' conftest.er1 >conftest.err
12563   rm -f conftest.er1
12564   cat conftest.err >&5
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); } && {
12567          test -z "$ac_c_werror_flag" ||
12568          test ! -s conftest.err
12569        } && test -s conftest$ac_exeext &&
12570        $as_test_x conftest$ac_exeext; then
12571   ac_cv_lib_dld_dld_link=yes
12572 else
12573   echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12575
12576         ac_cv_lib_dld_dld_link=no
12577 fi
12578
12579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12580       conftest$ac_exeext conftest.$ac_ext
12581 LIBS=$ac_check_lib_save_LIBS
12582 fi
12583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12584 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12585 if test $ac_cv_lib_dld_dld_link = yes; then
12586   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12587 fi
12588
12589
12590 fi
12591
12592
12593 fi
12594
12595
12596 fi
12597
12598
12599 fi
12600
12601
12602 fi
12603
12604     ;;
12605   esac
12606
12607   if test "x$lt_cv_dlopen" != xno; then
12608     enable_dlopen=yes
12609   else
12610     enable_dlopen=no
12611   fi
12612
12613   case $lt_cv_dlopen in
12614   dlopen)
12615     save_CPPFLAGS="$CPPFLAGS"
12616     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12617
12618     save_LDFLAGS="$LDFLAGS"
12619     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12620
12621     save_LIBS="$LIBS"
12622     LIBS="$lt_cv_dlopen_libs $LIBS"
12623
12624     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12625 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12626 if test "${lt_cv_dlopen_self+set}" = set; then
12627   echo $ECHO_N "(cached) $ECHO_C" >&6
12628 else
12629           if test "$cross_compiling" = yes; then :
12630   lt_cv_dlopen_self=cross
12631 else
12632   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12633   lt_status=$lt_dlunknown
12634   cat > conftest.$ac_ext <<_LT_EOF
12635 #line 12635 "configure"
12636 #include "confdefs.h"
12637
12638 #if HAVE_DLFCN_H
12639 #include <dlfcn.h>
12640 #endif
12641
12642 #include <stdio.h>
12643
12644 #ifdef RTLD_GLOBAL
12645 #  define LT_DLGLOBAL           RTLD_GLOBAL
12646 #else
12647 #  ifdef DL_GLOBAL
12648 #    define LT_DLGLOBAL         DL_GLOBAL
12649 #  else
12650 #    define LT_DLGLOBAL         0
12651 #  endif
12652 #endif
12653
12654 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12655    find out it does not work in some platform. */
12656 #ifndef LT_DLLAZY_OR_NOW
12657 #  ifdef RTLD_LAZY
12658 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12659 #  else
12660 #    ifdef DL_LAZY
12661 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12662 #    else
12663 #      ifdef RTLD_NOW
12664 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12665 #      else
12666 #        ifdef DL_NOW
12667 #          define LT_DLLAZY_OR_NOW      DL_NOW
12668 #        else
12669 #          define LT_DLLAZY_OR_NOW      0
12670 #        endif
12671 #      endif
12672 #    endif
12673 #  endif
12674 #endif
12675
12676 void fnord() { int i=42;}
12677 int main ()
12678 {
12679   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12680   int status = $lt_dlunknown;
12681
12682   if (self)
12683     {
12684       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12685       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12686       /* dlclose (self); */
12687     }
12688   else
12689     puts (dlerror ());
12690
12691   return status;
12692 }
12693 _LT_EOF
12694   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695   (eval $ac_link) 2>&5
12696   ac_status=$?
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12699     (./conftest; exit; ) >&5 2>/dev/null
12700     lt_status=$?
12701     case x$lt_status in
12702       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12703       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12704       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12705     esac
12706   else :
12707     # compilation failed
12708     lt_cv_dlopen_self=no
12709   fi
12710 fi
12711 rm -fr conftest*
12712
12713
12714 fi
12715 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12716 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12717
12718     if test "x$lt_cv_dlopen_self" = xyes; then
12719       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12720       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12721 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12722 if test "${lt_cv_dlopen_self_static+set}" = set; then
12723   echo $ECHO_N "(cached) $ECHO_C" >&6
12724 else
12725           if test "$cross_compiling" = yes; then :
12726   lt_cv_dlopen_self_static=cross
12727 else
12728   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12729   lt_status=$lt_dlunknown
12730   cat > conftest.$ac_ext <<_LT_EOF
12731 #line 12731 "configure"
12732 #include "confdefs.h"
12733
12734 #if HAVE_DLFCN_H
12735 #include <dlfcn.h>
12736 #endif
12737
12738 #include <stdio.h>
12739
12740 #ifdef RTLD_GLOBAL
12741 #  define LT_DLGLOBAL           RTLD_GLOBAL
12742 #else
12743 #  ifdef DL_GLOBAL
12744 #    define LT_DLGLOBAL         DL_GLOBAL
12745 #  else
12746 #    define LT_DLGLOBAL         0
12747 #  endif
12748 #endif
12749
12750 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12751    find out it does not work in some platform. */
12752 #ifndef LT_DLLAZY_OR_NOW
12753 #  ifdef RTLD_LAZY
12754 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12755 #  else
12756 #    ifdef DL_LAZY
12757 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12758 #    else
12759 #      ifdef RTLD_NOW
12760 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12761 #      else
12762 #        ifdef DL_NOW
12763 #          define LT_DLLAZY_OR_NOW      DL_NOW
12764 #        else
12765 #          define LT_DLLAZY_OR_NOW      0
12766 #        endif
12767 #      endif
12768 #    endif
12769 #  endif
12770 #endif
12771
12772 void fnord() { int i=42;}
12773 int main ()
12774 {
12775   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12776   int status = $lt_dlunknown;
12777
12778   if (self)
12779     {
12780       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12781       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12782       /* dlclose (self); */
12783     }
12784   else
12785     puts (dlerror ());
12786
12787   return status;
12788 }
12789 _LT_EOF
12790   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12791   (eval $ac_link) 2>&5
12792   ac_status=$?
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12795     (./conftest; exit; ) >&5 2>/dev/null
12796     lt_status=$?
12797     case x$lt_status in
12798       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12799       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12800       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12801     esac
12802   else :
12803     # compilation failed
12804     lt_cv_dlopen_self_static=no
12805   fi
12806 fi
12807 rm -fr conftest*
12808
12809
12810 fi
12811 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12812 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12813     fi
12814
12815     CPPFLAGS="$save_CPPFLAGS"
12816     LDFLAGS="$save_LDFLAGS"
12817     LIBS="$save_LIBS"
12818     ;;
12819   esac
12820
12821   case $lt_cv_dlopen_self in
12822   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12823   *) enable_dlopen_self=unknown ;;
12824   esac
12825
12826   case $lt_cv_dlopen_self_static in
12827   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12828   *) enable_dlopen_self_static=unknown ;;
12829   esac
12830 fi
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848 striplib=
12849 old_striplib=
12850 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12851 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12852 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12853   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12854   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12855   { echo "$as_me:$LINENO: result: yes" >&5
12856 echo "${ECHO_T}yes" >&6; }
12857 else
12858 # FIXME - insert some real tests, host_os isn't really good enough
12859   case $host_os in
12860   darwin*)
12861     if test -n "$STRIP" ; then
12862       striplib="$STRIP -x"
12863       old_striplib="$STRIP -S"
12864       { echo "$as_me:$LINENO: result: yes" >&5
12865 echo "${ECHO_T}yes" >&6; }
12866     else
12867       { echo "$as_me:$LINENO: result: no" >&5
12868 echo "${ECHO_T}no" >&6; }
12869     fi
12870     ;;
12871   *)
12872     { echo "$as_me:$LINENO: result: no" >&5
12873 echo "${ECHO_T}no" >&6; }
12874     ;;
12875   esac
12876 fi
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889   # Report which library types will actually be built
12890   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12891 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12892   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12893 echo "${ECHO_T}$can_build_shared" >&6; }
12894
12895   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12896 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12897   test "$can_build_shared" = "no" && enable_shared=no
12898
12899   # On AIX, shared libraries and static libraries use the same namespace, and
12900   # are all built from PIC.
12901   case $host_os in
12902   aix3*)
12903     test "$enable_shared" = yes && enable_static=no
12904     if test -n "$RANLIB"; then
12905       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12906       postinstall_cmds='$RANLIB $lib'
12907     fi
12908     ;;
12909
12910   aix[4-9]*)
12911     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12912       test "$enable_shared" = yes && enable_static=no
12913     fi
12914     ;;
12915   esac
12916   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12917 echo "${ECHO_T}$enable_shared" >&6; }
12918
12919   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12920 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12921   # Make sure either enable_shared or enable_static is yes.
12922   test "$enable_shared" = yes || enable_static=yes
12923   { echo "$as_me:$LINENO: result: $enable_static" >&5
12924 echo "${ECHO_T}$enable_static" >&6; }
12925
12926
12927
12928
12929 fi
12930 ac_ext=c
12931 ac_cpp='$CPP $CPPFLAGS'
12932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12935
12936 CC="$lt_save_CC"
12937
12938
12939 ac_ext=cpp
12940 ac_cpp='$CXXCPP $CPPFLAGS'
12941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12944
12945 archive_cmds_need_lc_CXX=no
12946 allow_undefined_flag_CXX=
12947 always_export_symbols_CXX=no
12948 archive_expsym_cmds_CXX=
12949 compiler_needs_object_CXX=no
12950 export_dynamic_flag_spec_CXX=
12951 hardcode_direct_CXX=no
12952 hardcode_direct_absolute_CXX=no
12953 hardcode_libdir_flag_spec_CXX=
12954 hardcode_libdir_flag_spec_ld_CXX=
12955 hardcode_libdir_separator_CXX=
12956 hardcode_minus_L_CXX=no
12957 hardcode_shlibpath_var_CXX=unsupported
12958 hardcode_automatic_CXX=no
12959 inherit_rpath_CXX=no
12960 module_cmds_CXX=
12961 module_expsym_cmds_CXX=
12962 link_all_deplibs_CXX=unknown
12963 old_archive_cmds_CXX=$old_archive_cmds
12964 no_undefined_flag_CXX=
12965 whole_archive_flag_spec_CXX=
12966 enable_shared_with_static_runtimes_CXX=no
12967
12968 # Source file extension for C++ test sources.
12969 ac_ext=cpp
12970
12971 # Object file extension for compiled C++ test sources.
12972 objext=o
12973 objext_CXX=$objext
12974
12975 # No sense in running all these tests if we already determined that
12976 # the CXX compiler isn't working.  Some variables (like enable_shared)
12977 # are currently assumed to apply to all compilers on this platform,
12978 # and will be corrupted by setting them based on a non-working compiler.
12979 if test "$_lt_caught_CXX_error" != yes; then
12980   # Code to be used in simple compile tests
12981   lt_simple_compile_test_code="int some_variable = 0;"
12982
12983   # Code to be used in simple link tests
12984   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12985
12986   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12987
12988
12989
12990
12991
12992
12993 # If no C compiler was specified, use CC.
12994 LTCC=${LTCC-"$CC"}
12995
12996 # If no C compiler flags were specified, use CFLAGS.
12997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12998
12999 # Allow CC to be a program name with arguments.
13000 compiler=$CC
13001
13002
13003   # save warnings/boilerplate of simple test code
13004   ac_outfile=conftest.$ac_objext
13005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13007 _lt_compiler_boilerplate=`cat conftest.err`
13008 $RM conftest*
13009
13010   ac_outfile=conftest.$ac_objext
13011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13013 _lt_linker_boilerplate=`cat conftest.err`
13014 $RM -r conftest*
13015
13016
13017   # Allow CC to be a program name with arguments.
13018   lt_save_CC=$CC
13019   lt_save_LD=$LD
13020   lt_save_GCC=$GCC
13021   GCC=$GXX
13022   lt_save_with_gnu_ld=$with_gnu_ld
13023   lt_save_path_LD=$lt_cv_path_LD
13024   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13025     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13026   else
13027     $as_unset lt_cv_prog_gnu_ld
13028   fi
13029   if test -n "${lt_cv_path_LDCXX+set}"; then
13030     lt_cv_path_LD=$lt_cv_path_LDCXX
13031   else
13032     $as_unset lt_cv_path_LD
13033   fi
13034   test -z "${LDCXX+set}" || LD=$LDCXX
13035   CC=${CXX-"c++"}
13036   compiler=$CC
13037   compiler_CXX=$CC
13038   for cc_temp in $compiler""; do
13039   case $cc_temp in
13040     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13041     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13042     \-*) ;;
13043     *) break;;
13044   esac
13045 done
13046 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13047
13048
13049   if test -n "$compiler"; then
13050     # We don't want -fno-exception when compiling C++ code, so set the
13051     # no_builtin_flag separately
13052     if test "$GXX" = yes; then
13053       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13054     else
13055       lt_prog_compiler_no_builtin_flag_CXX=
13056     fi
13057
13058     if test "$GXX" = yes; then
13059       # Set up default GNU C++ configuration
13060
13061
13062
13063 # Check whether --with-gnu-ld was given.
13064 if test "${with_gnu_ld+set}" = set; then
13065   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13066 else
13067   with_gnu_ld=no
13068 fi
13069
13070 ac_prog=ld
13071 if test "$GCC" = yes; then
13072   # Check if gcc -print-prog-name=ld gives a path.
13073   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13074 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13075   case $host in
13076   *-*-mingw*)
13077     # gcc leaves a trailing carriage return which upsets mingw
13078     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13079   *)
13080     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13081   esac
13082   case $ac_prog in
13083     # Accept absolute paths.
13084     [\\/]* | ?:[\\/]*)
13085       re_direlt='/[^/][^/]*/\.\./'
13086       # Canonicalize the pathname of ld
13087       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13088       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13089         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13090       done
13091       test -z "$LD" && LD="$ac_prog"
13092       ;;
13093   "")
13094     # If it fails, then pretend we aren't using GCC.
13095     ac_prog=ld
13096     ;;
13097   *)
13098     # If it is relative, then search for the first ld in PATH.
13099     with_gnu_ld=unknown
13100     ;;
13101   esac
13102 elif test "$with_gnu_ld" = yes; then
13103   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13104 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13105 else
13106   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13107 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13108 fi
13109 if test "${lt_cv_path_LD+set}" = set; then
13110   echo $ECHO_N "(cached) $ECHO_C" >&6
13111 else
13112   if test -z "$LD"; then
13113   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13114   for ac_dir in $PATH; do
13115     IFS="$lt_save_ifs"
13116     test -z "$ac_dir" && ac_dir=.
13117     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13118       lt_cv_path_LD="$ac_dir/$ac_prog"
13119       # Check to see if the program is GNU ld.  I'd rather use --version,
13120       # but apparently some variants of GNU ld only accept -v.
13121       # Break only if it was the GNU/non-GNU ld that we prefer.
13122       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13123       *GNU* | *'with BFD'*)
13124         test "$with_gnu_ld" != no && break
13125         ;;
13126       *)
13127         test "$with_gnu_ld" != yes && break
13128         ;;
13129       esac
13130     fi
13131   done
13132   IFS="$lt_save_ifs"
13133 else
13134   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13135 fi
13136 fi
13137
13138 LD="$lt_cv_path_LD"
13139 if test -n "$LD"; then
13140   { echo "$as_me:$LINENO: result: $LD" >&5
13141 echo "${ECHO_T}$LD" >&6; }
13142 else
13143   { echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6; }
13145 fi
13146 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13147 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13148    { (exit 1); exit 1; }; }
13149 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13150 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13151 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13152   echo $ECHO_N "(cached) $ECHO_C" >&6
13153 else
13154   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13155 case `$LD -v 2>&1 </dev/null` in
13156 *GNU* | *'with BFD'*)
13157   lt_cv_prog_gnu_ld=yes
13158   ;;
13159 *)
13160   lt_cv_prog_gnu_ld=no
13161   ;;
13162 esac
13163 fi
13164 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13165 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13166 with_gnu_ld=$lt_cv_prog_gnu_ld
13167
13168
13169
13170
13171
13172
13173
13174       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13175       # archiving commands below assume that GNU ld is being used.
13176       if test "$with_gnu_ld" = yes; then
13177         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13178         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13179
13180         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13181         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13182
13183         # If archive_cmds runs LD, not CC, wlarc should be empty
13184         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13185         #     investigate it a little bit more. (MM)
13186         wlarc='${wl}'
13187
13188         # ancient GNU ld didn't support --whole-archive et. al.
13189         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13190           $GREP 'no-whole-archive' > /dev/null; then
13191           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13192         else
13193           whole_archive_flag_spec_CXX=
13194         fi
13195       else
13196         with_gnu_ld=no
13197         wlarc=
13198
13199         # A generic and very simple default shared library creation
13200         # command for GNU C++ for the case where it uses the native
13201         # linker, instead of GNU ld.  If possible, this setting should
13202         # overridden to take advantage of the native linker features on
13203         # the platform it is being used on.
13204         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13205       fi
13206
13207       # Commands to make compiler produce verbose output that lists
13208       # what "hidden" libraries, object files and flags are used when
13209       # linking a shared library.
13210       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13211
13212     else
13213       GXX=no
13214       with_gnu_ld=no
13215       wlarc=
13216     fi
13217
13218     # PORTME: fill in a description of your system's C++ link characteristics
13219     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13220 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13221     ld_shlibs_CXX=yes
13222     case $host_os in
13223       aix3*)
13224         # FIXME: insert proper C++ library support
13225         ld_shlibs_CXX=no
13226         ;;
13227       aix[4-9]*)
13228         if test "$host_cpu" = ia64; then
13229           # On IA64, the linker does run time linking by default, so we don't
13230           # have to do anything special.
13231           aix_use_runtimelinking=no
13232           exp_sym_flag='-Bexport'
13233           no_entry_flag=""
13234         else
13235           aix_use_runtimelinking=no
13236
13237           # Test if we are trying to use run time linking or normal
13238           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13239           # need to do runtime linking.
13240           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13241             for ld_flag in $LDFLAGS; do
13242               case $ld_flag in
13243               *-brtl*)
13244                 aix_use_runtimelinking=yes
13245                 break
13246                 ;;
13247               esac
13248             done
13249             ;;
13250           esac
13251
13252           exp_sym_flag='-bexport'
13253           no_entry_flag='-bnoentry'
13254         fi
13255
13256         # When large executables or shared objects are built, AIX ld can
13257         # have problems creating the table of contents.  If linking a library
13258         # or program results in "error TOC overflow" add -mminimal-toc to
13259         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13260         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13261
13262         archive_cmds_CXX=''
13263         hardcode_direct_CXX=yes
13264         hardcode_direct_absolute_CXX=yes
13265         hardcode_libdir_separator_CXX=':'
13266         link_all_deplibs_CXX=yes
13267         file_list_spec_CXX='${wl}-f,'
13268
13269         if test "$GXX" = yes; then
13270           case $host_os in aix4.[012]|aix4.[012].*)
13271           # We only want to do this on AIX 4.2 and lower, the check
13272           # below for broken collect2 doesn't work under 4.3+
13273           collect2name=`${CC} -print-prog-name=collect2`
13274           if test -f "$collect2name" &&
13275              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13276           then
13277             # We have reworked collect2
13278             :
13279           else
13280             # We have old collect2
13281             hardcode_direct_CXX=unsupported
13282             # It fails to find uninstalled libraries when the uninstalled
13283             # path is not listed in the libpath.  Setting hardcode_minus_L
13284             # to unsupported forces relinking
13285             hardcode_minus_L_CXX=yes
13286             hardcode_libdir_flag_spec_CXX='-L$libdir'
13287             hardcode_libdir_separator_CXX=
13288           fi
13289           esac
13290           shared_flag='-shared'
13291           if test "$aix_use_runtimelinking" = yes; then
13292             shared_flag="$shared_flag "'${wl}-G'
13293           fi
13294         else
13295           # not using gcc
13296           if test "$host_cpu" = ia64; then
13297           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13298           # chokes on -Wl,-G. The following line is correct:
13299           shared_flag='-G'
13300           else
13301             if test "$aix_use_runtimelinking" = yes; then
13302               shared_flag='${wl}-G'
13303             else
13304               shared_flag='${wl}-bM:SRE'
13305             fi
13306           fi
13307         fi
13308
13309         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13310         # It seems that -bexpall does not export symbols beginning with
13311         # underscore (_), so it is better to generate a list of symbols to
13312         # export.
13313         always_export_symbols_CXX=yes
13314         if test "$aix_use_runtimelinking" = yes; then
13315           # Warning - without using the other runtime loading flags (-brtl),
13316           # -berok will link without error, but may produce a broken library.
13317           allow_undefined_flag_CXX='-berok'
13318           # Determine the default libpath from the value encoded in an empty
13319           # executable.
13320           cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h.  */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h.  */
13326
13327 int
13328 main ()
13329 {
13330
13331   ;
13332   return 0;
13333 }
13334 _ACEOF
13335 rm -f conftest.$ac_objext conftest$ac_exeext
13336 if { (ac_try="$ac_link"
13337 case "(($ac_try" in
13338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339   *) ac_try_echo=$ac_try;;
13340 esac
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342   (eval "$ac_link") 2>conftest.er1
13343   ac_status=$?
13344   grep -v '^ *+' conftest.er1 >conftest.err
13345   rm -f conftest.er1
13346   cat conftest.err >&5
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); } && {
13349          test -z "$ac_cxx_werror_flag" ||
13350          test ! -s conftest.err
13351        } && test -s conftest$ac_exeext &&
13352        $as_test_x conftest$ac_exeext; then
13353
13354 lt_aix_libpath_sed='
13355     /Import File Strings/,/^$/ {
13356         /^0/ {
13357             s/^0  *\(.*\)$/\1/
13358             p
13359         }
13360     }'
13361 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13362 # Check for a 64-bit object if we didn't find anything.
13363 if test -z "$aix_libpath"; then
13364   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13365 fi
13366 else
13367   echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13369
13370
13371 fi
13372
13373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13374       conftest$ac_exeext conftest.$ac_ext
13375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13376
13377           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13378
13379           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13380         else
13381           if test "$host_cpu" = ia64; then
13382             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13383             allow_undefined_flag_CXX="-z nodefs"
13384             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13385           else
13386             # Determine the default libpath from the value encoded in an
13387             # empty executable.
13388             cat >conftest.$ac_ext <<_ACEOF
13389 /* confdefs.h.  */
13390 _ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h.  */
13394
13395 int
13396 main ()
13397 {
13398
13399   ;
13400   return 0;
13401 }
13402 _ACEOF
13403 rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407   *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410   (eval "$ac_link") 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } && {
13417          test -z "$ac_cxx_werror_flag" ||
13418          test ! -s conftest.err
13419        } && test -s conftest$ac_exeext &&
13420        $as_test_x conftest$ac_exeext; then
13421
13422 lt_aix_libpath_sed='
13423     /Import File Strings/,/^$/ {
13424         /^0/ {
13425             s/^0  *\(.*\)$/\1/
13426             p
13427         }
13428     }'
13429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13430 # Check for a 64-bit object if we didn't find anything.
13431 if test -z "$aix_libpath"; then
13432   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13433 fi
13434 else
13435   echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13437
13438
13439 fi
13440
13441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13442       conftest$ac_exeext conftest.$ac_ext
13443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13444
13445             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13446             # Warning - without using the other run time loading flags,
13447             # -berok will link without error, but may produce a broken library.
13448             no_undefined_flag_CXX=' ${wl}-bernotok'
13449             allow_undefined_flag_CXX=' ${wl}-berok'
13450             # Exported symbols can be pulled into shared objects from archives
13451             whole_archive_flag_spec_CXX='$convenience'
13452             archive_cmds_need_lc_CXX=yes
13453             # This is similar to how AIX traditionally builds its shared
13454             # libraries.
13455             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13456           fi
13457         fi
13458         ;;
13459
13460       beos*)
13461         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13462           allow_undefined_flag_CXX=unsupported
13463           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13464           # support --undefined.  This deserves some investigation.  FIXME
13465           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13466         else
13467           ld_shlibs_CXX=no
13468         fi
13469         ;;
13470
13471       chorus*)
13472         case $cc_basename in
13473           *)
13474           # FIXME: insert proper C++ library support
13475           ld_shlibs_CXX=no
13476           ;;
13477         esac
13478         ;;
13479
13480       cygwin* | mingw* | pw32* | cegcc*)
13481         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13482         # as there is no search path for DLLs.
13483         hardcode_libdir_flag_spec_CXX='-L$libdir'
13484         allow_undefined_flag_CXX=unsupported
13485         always_export_symbols_CXX=no
13486         enable_shared_with_static_runtimes_CXX=yes
13487
13488         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13489           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13490           # If the export-symbols file already is a .def file (1st line
13491           # is EXPORTS), use it as is; otherwise, prepend...
13492           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13493             cp $export_symbols $output_objdir/$soname.def;
13494           else
13495             echo EXPORTS > $output_objdir/$soname.def;
13496             cat $export_symbols >> $output_objdir/$soname.def;
13497           fi~
13498           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13499         else
13500           ld_shlibs_CXX=no
13501         fi
13502         ;;
13503       darwin* | rhapsody*)
13504
13505
13506   archive_cmds_need_lc_CXX=no
13507   hardcode_direct_CXX=no
13508   hardcode_automatic_CXX=yes
13509   hardcode_shlibpath_var_CXX=unsupported
13510   whole_archive_flag_spec_CXX=''
13511   link_all_deplibs_CXX=yes
13512   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13513   case $cc_basename in
13514      ifort*) _lt_dar_can_shared=yes ;;
13515      *) _lt_dar_can_shared=$GCC ;;
13516   esac
13517   if test "$_lt_dar_can_shared" = "yes"; then
13518     output_verbose_link_cmd=echo
13519     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13520     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13521     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13522     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13523        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13524       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13525       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13526     fi
13527
13528   else
13529   ld_shlibs_CXX=no
13530   fi
13531
13532         ;;
13533
13534       dgux*)
13535         case $cc_basename in
13536           ec++*)
13537             # FIXME: insert proper C++ library support
13538             ld_shlibs_CXX=no
13539             ;;
13540           ghcx*)
13541             # Green Hills C++ Compiler
13542             # FIXME: insert proper C++ library support
13543             ld_shlibs_CXX=no
13544             ;;
13545           *)
13546             # FIXME: insert proper C++ library support
13547             ld_shlibs_CXX=no
13548             ;;
13549         esac
13550         ;;
13551
13552       freebsd[12]*)
13553         # C++ shared libraries reported to be fairly broken before
13554         # switch to ELF
13555         ld_shlibs_CXX=no
13556         ;;
13557
13558       freebsd-elf*)
13559         archive_cmds_need_lc_CXX=no
13560         ;;
13561
13562       freebsd* | dragonfly*)
13563         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13564         # conventions
13565         ld_shlibs_CXX=yes
13566         ;;
13567
13568       gnu*)
13569         ;;
13570
13571       hpux9*)
13572         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13573         hardcode_libdir_separator_CXX=:
13574         export_dynamic_flag_spec_CXX='${wl}-E'
13575         hardcode_direct_CXX=yes
13576         hardcode_minus_L_CXX=yes # Not in the search PATH,
13577                                              # but as the default
13578                                              # location of the library.
13579
13580         case $cc_basename in
13581           CC*)
13582             # FIXME: insert proper C++ library support
13583             ld_shlibs_CXX=no
13584             ;;
13585           aCC*)
13586             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13587             # Commands to make compiler produce verbose output that lists
13588             # what "hidden" libraries, object files and flags are used when
13589             # linking a shared library.
13590             #
13591             # There doesn't appear to be a way to prevent this compiler from
13592             # explicitly linking system object files so we need to strip them
13593             # from the output so that they don't get included in the library
13594             # dependencies.
13595             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13596             ;;
13597           *)
13598             if test "$GXX" = yes; then
13599               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13600             else
13601               # FIXME: insert proper C++ library support
13602               ld_shlibs_CXX=no
13603             fi
13604             ;;
13605         esac
13606         ;;
13607
13608       hpux10*|hpux11*)
13609         if test $with_gnu_ld = no; then
13610           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13611           hardcode_libdir_separator_CXX=:
13612
13613           case $host_cpu in
13614             hppa*64*|ia64*)
13615               ;;
13616             *)
13617               export_dynamic_flag_spec_CXX='${wl}-E'
13618               ;;
13619           esac
13620         fi
13621         case $host_cpu in
13622           hppa*64*|ia64*)
13623             hardcode_direct_CXX=no
13624             hardcode_shlibpath_var_CXX=no
13625             ;;
13626           *)
13627             hardcode_direct_CXX=yes
13628             hardcode_direct_absolute_CXX=yes
13629             hardcode_minus_L_CXX=yes # Not in the search PATH,
13630                                                  # but as the default
13631                                                  # location of the library.
13632             ;;
13633         esac
13634
13635         case $cc_basename in
13636           CC*)
13637             # FIXME: insert proper C++ library support
13638             ld_shlibs_CXX=no
13639             ;;
13640           aCC*)
13641             case $host_cpu in
13642               hppa*64*)
13643                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13644                 ;;
13645               ia64*)
13646                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647                 ;;
13648               *)
13649                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13650                 ;;
13651             esac
13652             # Commands to make compiler produce verbose output that lists
13653             # what "hidden" libraries, object files and flags are used when
13654             # linking a shared library.
13655             #
13656             # There doesn't appear to be a way to prevent this compiler from
13657             # explicitly linking system object files so we need to strip them
13658             # from the output so that they don't get included in the library
13659             # dependencies.
13660             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13661             ;;
13662           *)
13663             if test "$GXX" = yes; then
13664               if test $with_gnu_ld = no; then
13665                 case $host_cpu in
13666                   hppa*64*)
13667                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13668                     ;;
13669                   ia64*)
13670                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13671                     ;;
13672                   *)
13673                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13674                     ;;
13675                 esac
13676               fi
13677             else
13678               # FIXME: insert proper C++ library support
13679               ld_shlibs_CXX=no
13680             fi
13681             ;;
13682         esac
13683         ;;
13684
13685       interix[3-9]*)
13686         hardcode_direct_CXX=no
13687         hardcode_shlibpath_var_CXX=no
13688         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13689         export_dynamic_flag_spec_CXX='${wl}-E'
13690         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13691         # Instead, shared libraries are loaded at an image base (0x10000000 by
13692         # default) and relocated if they conflict, which is a slow very memory
13693         # consuming and fragmenting process.  To avoid this, we pick a random,
13694         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13695         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13696         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13697         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13698         ;;
13699       irix5* | irix6*)
13700         case $cc_basename in
13701           CC*)
13702             # SGI C++
13703             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13704
13705             # Archives containing C++ object files must be created using
13706             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13707             # necessary to make sure instantiated templates are included
13708             # in the archive.
13709             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13710             ;;
13711           *)
13712             if test "$GXX" = yes; then
13713               if test "$with_gnu_ld" = no; then
13714                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13715               else
13716                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13717               fi
13718             fi
13719             link_all_deplibs_CXX=yes
13720             ;;
13721         esac
13722         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13723         hardcode_libdir_separator_CXX=:
13724         inherit_rpath_CXX=yes
13725         ;;
13726
13727       linux* | k*bsd*-gnu)
13728         case $cc_basename in
13729           KCC*)
13730             # Kuck and Associates, Inc. (KAI) C++ Compiler
13731
13732             # KCC will only create a shared library if the output file
13733             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13734             # to its proper name (with version) after linking.
13735             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13736             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13737             # Commands to make compiler produce verbose output that lists
13738             # what "hidden" libraries, object files and flags are used when
13739             # linking a shared library.
13740             #
13741             # There doesn't appear to be a way to prevent this compiler from
13742             # explicitly linking system object files so we need to strip them
13743             # from the output so that they don't get included in the library
13744             # dependencies.
13745             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13746
13747             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13748             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13749
13750             # Archives containing C++ object files must be created using
13751             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13752             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13753             ;;
13754           icpc* | ecpc* )
13755             # Intel C++
13756             with_gnu_ld=yes
13757             # version 8.0 and above of icpc choke on multiply defined symbols
13758             # if we add $predep_objects and $postdep_objects, however 7.1 and
13759             # earlier do not add the objects themselves.
13760             case `$CC -V 2>&1` in
13761               *"Version 7."*)
13762                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13763                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13764                 ;;
13765               *)  # Version 8.0 or newer
13766                 tmp_idyn=
13767                 case $host_cpu in
13768                   ia64*) tmp_idyn=' -i_dynamic';;
13769                 esac
13770                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13771                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13772                 ;;
13773             esac
13774             archive_cmds_need_lc_CXX=no
13775             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13776             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13777             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13778             ;;
13779           pgCC* | pgcpp*)
13780             # Portland Group C++ compiler
13781             case `$CC -V` in
13782             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13783               prelink_cmds_CXX='tpldir=Template.dir~
13784                 rm -rf $tpldir~
13785                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13786                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13787               old_archive_cmds_CXX='tpldir=Template.dir~
13788                 rm -rf $tpldir~
13789                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13790                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13791                 $RANLIB $oldlib'
13792               archive_cmds_CXX='tpldir=Template.dir~
13793                 rm -rf $tpldir~
13794                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13795                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13796               archive_expsym_cmds_CXX='tpldir=Template.dir~
13797                 rm -rf $tpldir~
13798                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13799                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13800               ;;
13801             *) # Version 6 will use weak symbols
13802               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13803               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13804               ;;
13805             esac
13806
13807             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13808             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13809             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13810             ;;
13811           cxx*)
13812             # Compaq C++
13813             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13814             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13815
13816             runpath_var=LD_RUN_PATH
13817             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13818             hardcode_libdir_separator_CXX=:
13819
13820             # Commands to make compiler produce verbose output that lists
13821             # what "hidden" libraries, object files and flags are used when
13822             # linking a shared library.
13823             #
13824             # There doesn't appear to be a way to prevent this compiler from
13825             # explicitly linking system object files so we need to strip them
13826             # from the output so that they don't get included in the library
13827             # dependencies.
13828             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13829             ;;
13830           xl*)
13831             # IBM XL 8.0 on PPC, with GNU ld
13832             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13833             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13834             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13835             if test "x$supports_anon_versioning" = xyes; then
13836               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13837                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13838                 echo "local: *; };" >> $output_objdir/$libname.ver~
13839                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13840             fi
13841             ;;
13842           *)
13843             case `$CC -V 2>&1 | sed 5q` in
13844             *Sun\ C*)
13845               # Sun C++ 5.9
13846               no_undefined_flag_CXX=' -zdefs'
13847               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13848               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13849               hardcode_libdir_flag_spec_CXX='-R$libdir'
13850               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13851               compiler_needs_object_CXX=yes
13852
13853               # Not sure whether something based on
13854               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13855               # would be better.
13856               output_verbose_link_cmd='echo'
13857
13858               # Archives containing C++ object files must be created using
13859               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13860               # necessary to make sure instantiated templates are included
13861               # in the archive.
13862               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13863               ;;
13864             esac
13865             ;;
13866         esac
13867         ;;
13868
13869       lynxos*)
13870         # FIXME: insert proper C++ library support
13871         ld_shlibs_CXX=no
13872         ;;
13873
13874       m88k*)
13875         # FIXME: insert proper C++ library support
13876         ld_shlibs_CXX=no
13877         ;;
13878
13879       mvs*)
13880         case $cc_basename in
13881           cxx*)
13882             # FIXME: insert proper C++ library support
13883             ld_shlibs_CXX=no
13884             ;;
13885           *)
13886             # FIXME: insert proper C++ library support
13887             ld_shlibs_CXX=no
13888             ;;
13889         esac
13890         ;;
13891
13892       netbsd*)
13893         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13894           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13895           wlarc=
13896           hardcode_libdir_flag_spec_CXX='-R$libdir'
13897           hardcode_direct_CXX=yes
13898           hardcode_shlibpath_var_CXX=no
13899         fi
13900         # Workaround some broken pre-1.5 toolchains
13901         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13902         ;;
13903
13904       *nto* | *qnx*)
13905         ld_shlibs_CXX=yes
13906         ;;
13907
13908       openbsd2*)
13909         # C++ shared libraries are fairly broken
13910         ld_shlibs_CXX=no
13911         ;;
13912
13913       openbsd*)
13914         if test -f /usr/libexec/ld.so; then
13915           hardcode_direct_CXX=yes
13916           hardcode_shlibpath_var_CXX=no
13917           hardcode_direct_absolute_CXX=yes
13918           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13919           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13920           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13921             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13922             export_dynamic_flag_spec_CXX='${wl}-E'
13923             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13924           fi
13925           output_verbose_link_cmd=echo
13926         else
13927           ld_shlibs_CXX=no
13928         fi
13929         ;;
13930
13931       osf3* | osf4* | osf5*)
13932         case $cc_basename in
13933           KCC*)
13934             # Kuck and Associates, Inc. (KAI) C++ Compiler
13935
13936             # KCC will only create a shared library if the output file
13937             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13938             # to its proper name (with version) after linking.
13939             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13940
13941             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13942             hardcode_libdir_separator_CXX=:
13943
13944             # Archives containing C++ object files must be created using
13945             # the KAI C++ compiler.
13946             case $host in
13947               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13948               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13949             esac
13950             ;;
13951           RCC*)
13952             # Rational C++ 2.4.1
13953             # FIXME: insert proper C++ library support
13954             ld_shlibs_CXX=no
13955             ;;
13956           cxx*)
13957             case $host in
13958               osf3*)
13959                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13960                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13961                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13962                 ;;
13963               *)
13964                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13965                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13966                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13967                   echo "-hidden">> $lib.exp~
13968                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13969                   $RM $lib.exp'
13970                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13971                 ;;
13972             esac
13973
13974             hardcode_libdir_separator_CXX=:
13975
13976             # Commands to make compiler produce verbose output that lists
13977             # what "hidden" libraries, object files and flags are used when
13978             # linking a shared library.
13979             #
13980             # There doesn't appear to be a way to prevent this compiler from
13981             # explicitly linking system object files so we need to strip them
13982             # from the output so that they don't get included in the library
13983             # dependencies.
13984             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13985             ;;
13986           *)
13987             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13988               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13989               case $host in
13990                 osf3*)
13991                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13992                   ;;
13993                 *)
13994                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13995                   ;;
13996               esac
13997
13998               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13999               hardcode_libdir_separator_CXX=:
14000
14001               # Commands to make compiler produce verbose output that lists
14002               # what "hidden" libraries, object files and flags are used when
14003               # linking a shared library.
14004               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14005
14006             else
14007               # FIXME: insert proper C++ library support
14008               ld_shlibs_CXX=no
14009             fi
14010             ;;
14011         esac
14012         ;;
14013
14014       psos*)
14015         # FIXME: insert proper C++ library support
14016         ld_shlibs_CXX=no
14017         ;;
14018
14019       sunos4*)
14020         case $cc_basename in
14021           CC*)
14022             # Sun C++ 4.x
14023             # FIXME: insert proper C++ library support
14024             ld_shlibs_CXX=no
14025             ;;
14026           lcc*)
14027             # Lucid
14028             # FIXME: insert proper C++ library support
14029             ld_shlibs_CXX=no
14030             ;;
14031           *)
14032             # FIXME: insert proper C++ library support
14033             ld_shlibs_CXX=no
14034             ;;
14035         esac
14036         ;;
14037
14038       solaris*)
14039         case $cc_basename in
14040           CC*)
14041             # Sun C++ 4.2, 5.x and Centerline C++
14042             archive_cmds_need_lc_CXX=yes
14043             no_undefined_flag_CXX=' -zdefs'
14044             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14045             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14046               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14047
14048             hardcode_libdir_flag_spec_CXX='-R$libdir'
14049             hardcode_shlibpath_var_CXX=no
14050             case $host_os in
14051               solaris2.[0-5] | solaris2.[0-5].*) ;;
14052               *)
14053                 # The compiler driver will combine and reorder linker options,
14054                 # but understands `-z linker_flag'.
14055                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14056                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14057                 ;;
14058             esac
14059             link_all_deplibs_CXX=yes
14060
14061             output_verbose_link_cmd='echo'
14062
14063             # Archives containing C++ object files must be created using
14064             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14065             # necessary to make sure instantiated templates are included
14066             # in the archive.
14067             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14068             ;;
14069           gcx*)
14070             # Green Hills C++ Compiler
14071             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14072
14073             # The C++ compiler must be used to create the archive.
14074             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14075             ;;
14076           *)
14077             # GNU C++ compiler with Solaris linker
14078             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14079               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14080               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14081                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14082                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14083                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14084
14085                 # Commands to make compiler produce verbose output that lists
14086                 # what "hidden" libraries, object files and flags are used when
14087                 # linking a shared library.
14088                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14089               else
14090                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14091                 # platform.
14092                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14093                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14094                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14095
14096                 # Commands to make compiler produce verbose output that lists
14097                 # what "hidden" libraries, object files and flags are used when
14098                 # linking a shared library.
14099                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14100               fi
14101
14102               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14103               case $host_os in
14104                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14105                 *)
14106                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14107                   ;;
14108               esac
14109             fi
14110             ;;
14111         esac
14112         ;;
14113
14114     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14115       no_undefined_flag_CXX='${wl}-z,text'
14116       archive_cmds_need_lc_CXX=no
14117       hardcode_shlibpath_var_CXX=no
14118       runpath_var='LD_RUN_PATH'
14119
14120       case $cc_basename in
14121         CC*)
14122           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14123           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14124           ;;
14125         *)
14126           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14127           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14128           ;;
14129       esac
14130       ;;
14131
14132       sysv5* | sco3.2v5* | sco5v6*)
14133         # Note: We can NOT use -z defs as we might desire, because we do not
14134         # link with -lc, and that would cause any symbols used from libc to
14135         # always be unresolved, which means just about no library would
14136         # ever link correctly.  If we're not using GNU ld we use -z text
14137         # though, which does catch some bad symbols but isn't as heavy-handed
14138         # as -z defs.
14139         no_undefined_flag_CXX='${wl}-z,text'
14140         allow_undefined_flag_CXX='${wl}-z,nodefs'
14141         archive_cmds_need_lc_CXX=no
14142         hardcode_shlibpath_var_CXX=no
14143         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14144         hardcode_libdir_separator_CXX=':'
14145         link_all_deplibs_CXX=yes
14146         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14147         runpath_var='LD_RUN_PATH'
14148
14149         case $cc_basename in
14150           CC*)
14151             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14152             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14153             ;;
14154           *)
14155             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14156             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14157             ;;
14158         esac
14159       ;;
14160
14161       tandem*)
14162         case $cc_basename in
14163           NCC*)
14164             # NonStop-UX NCC 3.20
14165             # FIXME: insert proper C++ library support
14166             ld_shlibs_CXX=no
14167             ;;
14168           *)
14169             # FIXME: insert proper C++ library support
14170             ld_shlibs_CXX=no
14171             ;;
14172         esac
14173         ;;
14174
14175       vxworks*)
14176         # FIXME: insert proper C++ library support
14177         ld_shlibs_CXX=no
14178         ;;
14179
14180       *)
14181         # FIXME: insert proper C++ library support
14182         ld_shlibs_CXX=no
14183         ;;
14184     esac
14185
14186     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14187 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14188     test "$ld_shlibs_CXX" = no && can_build_shared=no
14189
14190     GCC_CXX="$GXX"
14191     LD_CXX="$LD"
14192
14193     ## CAVEAT EMPTOR:
14194     ## There is no encapsulation within the following macros, do not change
14195     ## the running order or otherwise move them around unless you know exactly
14196     ## what you are doing...
14197     # Dependencies to place before and after the object being linked:
14198 predep_objects_CXX=
14199 postdep_objects_CXX=
14200 predeps_CXX=
14201 postdeps_CXX=
14202 compiler_lib_search_path_CXX=
14203
14204 cat > conftest.$ac_ext <<_LT_EOF
14205 class Foo
14206 {
14207 public:
14208   Foo (void) { a = 0; }
14209 private:
14210   int a;
14211 };
14212 _LT_EOF
14213
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215   (eval $ac_compile) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; then
14219   # Parse the compiler output and extract the necessary
14220   # objects, libraries and library flags.
14221
14222   # Sentinel used to keep track of whether or not we are before
14223   # the conftest object file.
14224   pre_test_object_deps_done=no
14225
14226   for p in `eval "$output_verbose_link_cmd"`; do
14227     case $p in
14228
14229     -L* | -R* | -l*)
14230        # Some compilers place space between "-{L,R}" and the path.
14231        # Remove the space.
14232        if test $p = "-L" ||
14233           test $p = "-R"; then
14234          prev=$p
14235          continue
14236        else
14237          prev=
14238        fi
14239
14240        if test "$pre_test_object_deps_done" = no; then
14241          case $p in
14242          -L* | -R*)
14243            # Internal compiler library paths should come after those
14244            # provided the user.  The postdeps already come after the
14245            # user supplied libs so there is no need to process them.
14246            if test -z "$compiler_lib_search_path_CXX"; then
14247              compiler_lib_search_path_CXX="${prev}${p}"
14248            else
14249              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14250            fi
14251            ;;
14252          # The "-l" case would never come before the object being
14253          # linked, so don't bother handling this case.
14254          esac
14255        else
14256          if test -z "$postdeps_CXX"; then
14257            postdeps_CXX="${prev}${p}"
14258          else
14259            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14260          fi
14261        fi
14262        ;;
14263
14264     *.$objext)
14265        # This assumes that the test object file only shows up
14266        # once in the compiler output.
14267        if test "$p" = "conftest.$objext"; then
14268          pre_test_object_deps_done=yes
14269          continue
14270        fi
14271
14272        if test "$pre_test_object_deps_done" = no; then
14273          if test -z "$predep_objects_CXX"; then
14274            predep_objects_CXX="$p"
14275          else
14276            predep_objects_CXX="$predep_objects_CXX $p"
14277          fi
14278        else
14279          if test -z "$postdep_objects_CXX"; then
14280            postdep_objects_CXX="$p"
14281          else
14282            postdep_objects_CXX="$postdep_objects_CXX $p"
14283          fi
14284        fi
14285        ;;
14286
14287     *) ;; # Ignore the rest.
14288
14289     esac
14290   done
14291
14292   # Clean up.
14293   rm -f a.out a.exe
14294 else
14295   echo "libtool.m4: error: problem compiling CXX test program"
14296 fi
14297
14298 $RM -f confest.$objext
14299
14300 # PORTME: override above test on systems where it is broken
14301 case $host_os in
14302 interix[3-9]*)
14303   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14304   # hack all around it, let's just trust "g++" to DTRT.
14305   predep_objects_CXX=
14306   postdep_objects_CXX=
14307   postdeps_CXX=
14308   ;;
14309
14310 linux*)
14311   case `$CC -V 2>&1 | sed 5q` in
14312   *Sun\ C*)
14313     # Sun C++ 5.9
14314
14315     # The more standards-conforming stlport4 library is
14316     # incompatible with the Cstd library. Avoid specifying
14317     # it if it's in CXXFLAGS. Ignore libCrun as
14318     # -library=stlport4 depends on it.
14319     case " $CXX $CXXFLAGS " in
14320     *" -library=stlport4 "*)
14321       solaris_use_stlport4=yes
14322       ;;
14323     esac
14324
14325     if test "$solaris_use_stlport4" != yes; then
14326       postdeps_CXX='-library=Cstd -library=Crun'
14327     fi
14328     ;;
14329   esac
14330   ;;
14331
14332 solaris*)
14333   case $cc_basename in
14334   CC*)
14335     # The more standards-conforming stlport4 library is
14336     # incompatible with the Cstd library. Avoid specifying
14337     # it if it's in CXXFLAGS. Ignore libCrun as
14338     # -library=stlport4 depends on it.
14339     case " $CXX $CXXFLAGS " in
14340     *" -library=stlport4 "*)
14341       solaris_use_stlport4=yes
14342       ;;
14343     esac
14344
14345     # Adding this requires a known-good setup of shared libraries for
14346     # Sun compiler versions before 5.6, else PIC objects from an old
14347     # archive will be linked into the output, leading to subtle bugs.
14348     if test "$solaris_use_stlport4" != yes; then
14349       postdeps_CXX='-library=Cstd -library=Crun'
14350     fi
14351     ;;
14352   esac
14353   ;;
14354 esac
14355
14356
14357 case " $postdeps_CXX " in
14358 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14359 esac
14360  compiler_lib_search_dirs_CXX=
14361 if test -n "${compiler_lib_search_path_CXX}"; then
14362  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14363 fi
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395     lt_prog_compiler_wl_CXX=
14396 lt_prog_compiler_pic_CXX=
14397 lt_prog_compiler_static_CXX=
14398
14399 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14400 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14401
14402   # C++ specific cases for pic, static, wl, etc.
14403   if test "$GXX" = yes; then
14404     lt_prog_compiler_wl_CXX='-Wl,'
14405     lt_prog_compiler_static_CXX='-static'
14406
14407     case $host_os in
14408     aix*)
14409       # All AIX code is PIC.
14410       if test "$host_cpu" = ia64; then
14411         # AIX 5 now supports IA64 processor
14412         lt_prog_compiler_static_CXX='-Bstatic'
14413       fi
14414       ;;
14415
14416     amigaos*)
14417       case $host_cpu in
14418       powerpc)
14419             # see comment about AmigaOS4 .so support
14420             lt_prog_compiler_pic_CXX='-fPIC'
14421         ;;
14422       m68k)
14423             # FIXME: we need at least 68020 code to build shared libraries, but
14424             # adding the `-m68020' flag to GCC prevents building anything better,
14425             # like `-m68040'.
14426             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14427         ;;
14428       esac
14429       ;;
14430
14431     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14432       # PIC is the default for these OSes.
14433       ;;
14434     mingw* | cygwin* | os2* | pw32* | cegcc*)
14435       # This hack is so that the source file can tell whether it is being
14436       # built for inclusion in a dll (and should export symbols for example).
14437       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14438       # (--disable-auto-import) libraries
14439       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14440       ;;
14441     darwin* | rhapsody*)
14442       # PIC is the default on this platform
14443       # Common symbols not allowed in MH_DYLIB files
14444       lt_prog_compiler_pic_CXX='-fno-common'
14445       ;;
14446     *djgpp*)
14447       # DJGPP does not support shared libraries at all
14448       lt_prog_compiler_pic_CXX=
14449       ;;
14450     interix[3-9]*)
14451       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14452       # Instead, we relocate shared libraries at runtime.
14453       ;;
14454     sysv4*MP*)
14455       if test -d /usr/nec; then
14456         lt_prog_compiler_pic_CXX=-Kconform_pic
14457       fi
14458       ;;
14459     hpux*)
14460       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14461       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14462       # sets the default TLS model and affects inlining.
14463       case $host_cpu in
14464       hppa*64*)
14465         ;;
14466       *)
14467         lt_prog_compiler_pic_CXX='-fPIC'
14468         ;;
14469       esac
14470       ;;
14471     *qnx* | *nto*)
14472       # QNX uses GNU C++, but need to define -shared option too, otherwise
14473       # it will coredump.
14474       lt_prog_compiler_pic_CXX='-fPIC -shared'
14475       ;;
14476     *)
14477       lt_prog_compiler_pic_CXX='-fPIC'
14478       ;;
14479     esac
14480   else
14481     case $host_os in
14482       aix[4-9]*)
14483         # All AIX code is PIC.
14484         if test "$host_cpu" = ia64; then
14485           # AIX 5 now supports IA64 processor
14486           lt_prog_compiler_static_CXX='-Bstatic'
14487         else
14488           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14489         fi
14490         ;;
14491       chorus*)
14492         case $cc_basename in
14493         cxch68*)
14494           # Green Hills C++ Compiler
14495           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14496           ;;
14497         esac
14498         ;;
14499       dgux*)
14500         case $cc_basename in
14501           ec++*)
14502             lt_prog_compiler_pic_CXX='-KPIC'
14503             ;;
14504           ghcx*)
14505             # Green Hills C++ Compiler
14506             lt_prog_compiler_pic_CXX='-pic'
14507             ;;
14508           *)
14509             ;;
14510         esac
14511         ;;
14512       freebsd* | dragonfly*)
14513         # FreeBSD uses GNU C++
14514         ;;
14515       hpux9* | hpux10* | hpux11*)
14516         case $cc_basename in
14517           CC*)
14518             lt_prog_compiler_wl_CXX='-Wl,'
14519             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14520             if test "$host_cpu" != ia64; then
14521               lt_prog_compiler_pic_CXX='+Z'
14522             fi
14523             ;;
14524           aCC*)
14525             lt_prog_compiler_wl_CXX='-Wl,'
14526             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14527             case $host_cpu in
14528             hppa*64*|ia64*)
14529               # +Z the default
14530               ;;
14531             *)
14532               lt_prog_compiler_pic_CXX='+Z'
14533               ;;
14534             esac
14535             ;;
14536           *)
14537             ;;
14538         esac
14539         ;;
14540       interix*)
14541         # This is c89, which is MS Visual C++ (no shared libs)
14542         # Anyone wants to do a port?
14543         ;;
14544       irix5* | irix6* | nonstopux*)
14545         case $cc_basename in
14546           CC*)
14547             lt_prog_compiler_wl_CXX='-Wl,'
14548             lt_prog_compiler_static_CXX='-non_shared'
14549             # CC pic flag -KPIC is the default.
14550             ;;
14551           *)
14552             ;;
14553         esac
14554         ;;
14555       linux* | k*bsd*-gnu)
14556         case $cc_basename in
14557           KCC*)
14558             # KAI C++ Compiler
14559             lt_prog_compiler_wl_CXX='--backend -Wl,'
14560             lt_prog_compiler_pic_CXX='-fPIC'
14561             ;;
14562           ecpc* )
14563             # old Intel C++ for x86_64 which still supported -KPIC.
14564             lt_prog_compiler_wl_CXX='-Wl,'
14565             lt_prog_compiler_pic_CXX='-KPIC'
14566             lt_prog_compiler_static_CXX='-static'
14567             ;;
14568           icpc* )
14569             # Intel C++, used to be incompatible with GCC.
14570             # ICC 10 doesn't accept -KPIC any more.
14571             lt_prog_compiler_wl_CXX='-Wl,'
14572             lt_prog_compiler_pic_CXX='-fPIC'
14573             lt_prog_compiler_static_CXX='-static'
14574             ;;
14575           pgCC* | pgcpp*)
14576             # Portland Group C++ compiler
14577             lt_prog_compiler_wl_CXX='-Wl,'
14578             lt_prog_compiler_pic_CXX='-fpic'
14579             lt_prog_compiler_static_CXX='-Bstatic'
14580             ;;
14581           cxx*)
14582             # Compaq C++
14583             # Make sure the PIC flag is empty.  It appears that all Alpha
14584             # Linux and Compaq Tru64 Unix objects are PIC.
14585             lt_prog_compiler_pic_CXX=
14586             lt_prog_compiler_static_CXX='-non_shared'
14587             ;;
14588           xlc* | xlC*)
14589             # IBM XL 8.0 on PPC
14590             lt_prog_compiler_wl_CXX='-Wl,'
14591             lt_prog_compiler_pic_CXX='-qpic'
14592             lt_prog_compiler_static_CXX='-qstaticlink'
14593             ;;
14594           *)
14595             case `$CC -V 2>&1 | sed 5q` in
14596             *Sun\ C*)
14597               # Sun C++ 5.9
14598               lt_prog_compiler_pic_CXX='-KPIC'
14599               lt_prog_compiler_static_CXX='-Bstatic'
14600               lt_prog_compiler_wl_CXX='-Qoption ld '
14601               ;;
14602             esac
14603             ;;
14604         esac
14605         ;;
14606       lynxos*)
14607         ;;
14608       m88k*)
14609         ;;
14610       mvs*)
14611         case $cc_basename in
14612           cxx*)
14613             lt_prog_compiler_pic_CXX='-W c,exportall'
14614             ;;
14615           *)
14616             ;;
14617         esac
14618         ;;
14619       netbsd*)
14620         ;;
14621       *qnx* | *nto*)
14622         # QNX uses GNU C++, but need to define -shared option too, otherwise
14623         # it will coredump.
14624         lt_prog_compiler_pic_CXX='-fPIC -shared'
14625         ;;
14626       osf3* | osf4* | osf5*)
14627         case $cc_basename in
14628           KCC*)
14629             lt_prog_compiler_wl_CXX='--backend -Wl,'
14630             ;;
14631           RCC*)
14632             # Rational C++ 2.4.1
14633             lt_prog_compiler_pic_CXX='-pic'
14634             ;;
14635           cxx*)
14636             # Digital/Compaq C++
14637             lt_prog_compiler_wl_CXX='-Wl,'
14638             # Make sure the PIC flag is empty.  It appears that all Alpha
14639             # Linux and Compaq Tru64 Unix objects are PIC.
14640             lt_prog_compiler_pic_CXX=
14641             lt_prog_compiler_static_CXX='-non_shared'
14642             ;;
14643           *)
14644             ;;
14645         esac
14646         ;;
14647       psos*)
14648         ;;
14649       solaris*)
14650         case $cc_basename in
14651           CC*)
14652             # Sun C++ 4.2, 5.x and Centerline C++
14653             lt_prog_compiler_pic_CXX='-KPIC'
14654             lt_prog_compiler_static_CXX='-Bstatic'
14655             lt_prog_compiler_wl_CXX='-Qoption ld '
14656             ;;
14657           gcx*)
14658             # Green Hills C++ Compiler
14659             lt_prog_compiler_pic_CXX='-PIC'
14660             ;;
14661           *)
14662             ;;
14663         esac
14664         ;;
14665       sunos4*)
14666         case $cc_basename in
14667           CC*)
14668             # Sun C++ 4.x
14669             lt_prog_compiler_pic_CXX='-pic'
14670             lt_prog_compiler_static_CXX='-Bstatic'
14671             ;;
14672           lcc*)
14673             # Lucid
14674             lt_prog_compiler_pic_CXX='-pic'
14675             ;;
14676           *)
14677             ;;
14678         esac
14679         ;;
14680       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14681         case $cc_basename in
14682           CC*)
14683             lt_prog_compiler_wl_CXX='-Wl,'
14684             lt_prog_compiler_pic_CXX='-KPIC'
14685             lt_prog_compiler_static_CXX='-Bstatic'
14686             ;;
14687         esac
14688         ;;
14689       tandem*)
14690         case $cc_basename in
14691           NCC*)
14692             # NonStop-UX NCC 3.20
14693             lt_prog_compiler_pic_CXX='-KPIC'
14694             ;;
14695           *)
14696             ;;
14697         esac
14698         ;;
14699       vxworks*)
14700         ;;
14701       *)
14702         lt_prog_compiler_can_build_shared_CXX=no
14703         ;;
14704     esac
14705   fi
14706
14707 case $host_os in
14708   # For platforms which do not support PIC, -DPIC is meaningless:
14709   *djgpp*)
14710     lt_prog_compiler_pic_CXX=
14711     ;;
14712   *)
14713     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14714     ;;
14715 esac
14716 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14717 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14718
14719
14720
14721 #
14722 # Check to make sure the PIC flag actually works.
14723 #
14724 if test -n "$lt_prog_compiler_pic_CXX"; then
14725   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14726 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14727 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14728   echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730   lt_cv_prog_compiler_pic_works_CXX=no
14731    ac_outfile=conftest.$ac_objext
14732    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14733    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14734    # Insert the option either (1) after the last *FLAGS variable, or
14735    # (2) before a word containing "conftest.", or (3) at the end.
14736    # Note that $ac_compile itself does not contain backslashes and begins
14737    # with a dollar sign (not a hyphen), so the echo should work correctly.
14738    # The option is referenced via a variable to avoid confusing sed.
14739    lt_compile=`echo "$ac_compile" | $SED \
14740    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14741    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14742    -e 's:$: $lt_compiler_flag:'`
14743    (eval echo "\"\$as_me:14743: $lt_compile\"" >&5)
14744    (eval "$lt_compile" 2>conftest.err)
14745    ac_status=$?
14746    cat conftest.err >&5
14747    echo "$as_me:14747: \$? = $ac_status" >&5
14748    if (exit $ac_status) && test -s "$ac_outfile"; then
14749      # The compiler can only warn and ignore the option if not recognized
14750      # So say no if there are warnings other than the usual output.
14751      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14752      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14753      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14754        lt_cv_prog_compiler_pic_works_CXX=yes
14755      fi
14756    fi
14757    $RM conftest*
14758
14759 fi
14760 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14761 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14762
14763 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14764     case $lt_prog_compiler_pic_CXX in
14765      "" | " "*) ;;
14766      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14767      esac
14768 else
14769     lt_prog_compiler_pic_CXX=
14770      lt_prog_compiler_can_build_shared_CXX=no
14771 fi
14772
14773 fi
14774
14775
14776
14777 #
14778 # Check to make sure the static flag actually works.
14779 #
14780 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14781 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14782 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14783 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14784   echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786   lt_cv_prog_compiler_static_works_CXX=no
14787    save_LDFLAGS="$LDFLAGS"
14788    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14789    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14790    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14791      # The linker can only warn and ignore the option if not recognized
14792      # So say no if there are warnings
14793      if test -s conftest.err; then
14794        # Append any errors to the config.log.
14795        cat conftest.err 1>&5
14796        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14797        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798        if diff conftest.exp conftest.er2 >/dev/null; then
14799          lt_cv_prog_compiler_static_works_CXX=yes
14800        fi
14801      else
14802        lt_cv_prog_compiler_static_works_CXX=yes
14803      fi
14804    fi
14805    $RM -r conftest*
14806    LDFLAGS="$save_LDFLAGS"
14807
14808 fi
14809 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14810 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14811
14812 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14813     :
14814 else
14815     lt_prog_compiler_static_CXX=
14816 fi
14817
14818
14819
14820
14821     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14823 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14824   echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826   lt_cv_prog_compiler_c_o_CXX=no
14827    $RM -r conftest 2>/dev/null
14828    mkdir conftest
14829    cd conftest
14830    mkdir out
14831    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14832
14833    lt_compiler_flag="-o out/conftest2.$ac_objext"
14834    # Insert the option either (1) after the last *FLAGS variable, or
14835    # (2) before a word containing "conftest.", or (3) at the end.
14836    # Note that $ac_compile itself does not contain backslashes and begins
14837    # with a dollar sign (not a hyphen), so the echo should work correctly.
14838    lt_compile=`echo "$ac_compile" | $SED \
14839    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14840    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14841    -e 's:$: $lt_compiler_flag:'`
14842    (eval echo "\"\$as_me:14842: $lt_compile\"" >&5)
14843    (eval "$lt_compile" 2>out/conftest.err)
14844    ac_status=$?
14845    cat out/conftest.err >&5
14846    echo "$as_me:14846: \$? = $ac_status" >&5
14847    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14848    then
14849      # The compiler can only warn and ignore the option if not recognized
14850      # So say no if there are warnings
14851      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14852      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14853      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14854        lt_cv_prog_compiler_c_o_CXX=yes
14855      fi
14856    fi
14857    chmod u+w . 2>&5
14858    $RM conftest*
14859    # SGI C++ compiler will create directory out/ii_files/ for
14860    # template instantiation
14861    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14862    $RM out/* && rmdir out
14863    cd ..
14864    $RM -r conftest
14865    $RM conftest*
14866
14867 fi
14868 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14869 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14870
14871
14872
14873     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14874 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14875 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14876   echo $ECHO_N "(cached) $ECHO_C" >&6
14877 else
14878   lt_cv_prog_compiler_c_o_CXX=no
14879    $RM -r conftest 2>/dev/null
14880    mkdir conftest
14881    cd conftest
14882    mkdir out
14883    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14884
14885    lt_compiler_flag="-o out/conftest2.$ac_objext"
14886    # Insert the option either (1) after the last *FLAGS variable, or
14887    # (2) before a word containing "conftest.", or (3) at the end.
14888    # Note that $ac_compile itself does not contain backslashes and begins
14889    # with a dollar sign (not a hyphen), so the echo should work correctly.
14890    lt_compile=`echo "$ac_compile" | $SED \
14891    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14892    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14893    -e 's:$: $lt_compiler_flag:'`
14894    (eval echo "\"\$as_me:14894: $lt_compile\"" >&5)
14895    (eval "$lt_compile" 2>out/conftest.err)
14896    ac_status=$?
14897    cat out/conftest.err >&5
14898    echo "$as_me:14898: \$? = $ac_status" >&5
14899    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14900    then
14901      # The compiler can only warn and ignore the option if not recognized
14902      # So say no if there are warnings
14903      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14904      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14905      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14906        lt_cv_prog_compiler_c_o_CXX=yes
14907      fi
14908    fi
14909    chmod u+w . 2>&5
14910    $RM conftest*
14911    # SGI C++ compiler will create directory out/ii_files/ for
14912    # template instantiation
14913    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14914    $RM out/* && rmdir out
14915    cd ..
14916    $RM -r conftest
14917    $RM conftest*
14918
14919 fi
14920 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14921 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14922
14923
14924
14925
14926 hard_links="nottested"
14927 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14928   # do not overwrite the value of need_locks provided by the user
14929   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14930 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14931   hard_links=yes
14932   $RM conftest*
14933   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14934   touch conftest.a
14935   ln conftest.a conftest.b 2>&5 || hard_links=no
14936   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14937   { echo "$as_me:$LINENO: result: $hard_links" >&5
14938 echo "${ECHO_T}$hard_links" >&6; }
14939   if test "$hard_links" = no; then
14940     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14941 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14942     need_locks=warn
14943   fi
14944 else
14945   need_locks=no
14946 fi
14947
14948
14949
14950     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14951 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14952
14953   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14954   case $host_os in
14955   aix[4-9]*)
14956     # If we're using GNU nm, then we don't want the "-C" option.
14957     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14958     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14959       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14960     else
14961       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14962     fi
14963     ;;
14964   pw32*)
14965     export_symbols_cmds_CXX="$ltdll_cmds"
14966   ;;
14967   cygwin* | mingw* | cegcc*)
14968     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14969   ;;
14970   *)
14971     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14972   ;;
14973   esac
14974   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14975
14976 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14977 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14978 test "$ld_shlibs_CXX" = no && can_build_shared=no
14979
14980 with_gnu_ld_CXX=$with_gnu_ld
14981
14982
14983
14984
14985
14986
14987 #
14988 # Do we need to explicitly link libc?
14989 #
14990 case "x$archive_cmds_need_lc_CXX" in
14991 x|xyes)
14992   # Assume -lc should be added
14993   archive_cmds_need_lc_CXX=yes
14994
14995   if test "$enable_shared" = yes && test "$GCC" = yes; then
14996     case $archive_cmds_CXX in
14997     *'~'*)
14998       # FIXME: we may have to deal with multi-command sequences.
14999       ;;
15000     '$CC '*)
15001       # Test whether the compiler implicitly links with -lc since on some
15002       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15003       # to ld, don't add -lc before -lgcc.
15004       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15005 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15006       $RM conftest*
15007       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15008
15009       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15010   (eval $ac_compile) 2>&5
15011   ac_status=$?
15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013   (exit $ac_status); } 2>conftest.err; then
15014         soname=conftest
15015         lib=conftest
15016         libobjs=conftest.$ac_objext
15017         deplibs=
15018         wl=$lt_prog_compiler_wl_CXX
15019         pic_flag=$lt_prog_compiler_pic_CXX
15020         compiler_flags=-v
15021         linker_flags=-v
15022         verstring=
15023         output_objdir=.
15024         libname=conftest
15025         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15026         allow_undefined_flag_CXX=
15027         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15028   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15029   ac_status=$?
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); }
15032         then
15033           archive_cmds_need_lc_CXX=no
15034         else
15035           archive_cmds_need_lc_CXX=yes
15036         fi
15037         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15038       else
15039         cat conftest.err 1>&5
15040       fi
15041       $RM conftest*
15042       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15043 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15044       ;;
15045     esac
15046   fi
15047   ;;
15048 esac
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15114 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15115
15116 library_names_spec=
15117 libname_spec='lib$name'
15118 soname_spec=
15119 shrext_cmds=".so"
15120 postinstall_cmds=
15121 postuninstall_cmds=
15122 finish_cmds=
15123 finish_eval=
15124 shlibpath_var=
15125 shlibpath_overrides_runpath=unknown
15126 version_type=none
15127 dynamic_linker="$host_os ld.so"
15128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15129 need_lib_prefix=unknown
15130 hardcode_into_libs=no
15131
15132 # when you set need_version to no, make sure it does not cause -set_version
15133 # flags to be left without arguments
15134 need_version=unknown
15135
15136 case $host_os in
15137 aix3*)
15138   version_type=linux
15139   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15140   shlibpath_var=LIBPATH
15141
15142   # AIX 3 has no versioning support, so we append a major version to the name.
15143   soname_spec='${libname}${release}${shared_ext}$major'
15144   ;;
15145
15146 aix[4-9]*)
15147   version_type=linux
15148   need_lib_prefix=no
15149   need_version=no
15150   hardcode_into_libs=yes
15151   if test "$host_cpu" = ia64; then
15152     # AIX 5 supports IA64
15153     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15154     shlibpath_var=LD_LIBRARY_PATH
15155   else
15156     # With GCC up to 2.95.x, collect2 would create an import file
15157     # for dependence libraries.  The import file would start with
15158     # the line `#! .'.  This would cause the generated library to
15159     # depend on `.', always an invalid library.  This was fixed in
15160     # development snapshots of GCC prior to 3.0.
15161     case $host_os in
15162       aix4 | aix4.[01] | aix4.[01].*)
15163       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15164            echo ' yes '
15165            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15166         :
15167       else
15168         can_build_shared=no
15169       fi
15170       ;;
15171     esac
15172     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15173     # soname into executable. Probably we can add versioning support to
15174     # collect2, so additional links can be useful in future.
15175     if test "$aix_use_runtimelinking" = yes; then
15176       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15177       # instead of lib<name>.a to let people know that these are not
15178       # typical AIX shared libraries.
15179       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180     else
15181       # We preserve .a as extension for shared libraries through AIX4.2
15182       # and later when we are not doing run time linking.
15183       library_names_spec='${libname}${release}.a $libname.a'
15184       soname_spec='${libname}${release}${shared_ext}$major'
15185     fi
15186     shlibpath_var=LIBPATH
15187   fi
15188   ;;
15189
15190 amigaos*)
15191   case $host_cpu in
15192   powerpc)
15193     # Since July 2007 AmigaOS4 officially supports .so libraries.
15194     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196     ;;
15197   m68k)
15198     library_names_spec='$libname.ixlibrary $libname.a'
15199     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15200     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15201     ;;
15202   esac
15203   ;;
15204
15205 beos*)
15206   library_names_spec='${libname}${shared_ext}'
15207   dynamic_linker="$host_os ld.so"
15208   shlibpath_var=LIBRARY_PATH
15209   ;;
15210
15211 bsdi[45]*)
15212   version_type=linux
15213   need_version=no
15214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215   soname_spec='${libname}${release}${shared_ext}$major'
15216   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15217   shlibpath_var=LD_LIBRARY_PATH
15218   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15219   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15220   # the default ld.so.conf also contains /usr/contrib/lib and
15221   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15222   # libtool to hard-code these into programs
15223   ;;
15224
15225 cygwin* | mingw* | pw32* | cegcc*)
15226   version_type=windows
15227   shrext_cmds=".dll"
15228   need_version=no
15229   need_lib_prefix=no
15230
15231   case $GCC,$host_os in
15232   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15233     library_names_spec='$libname.dll.a'
15234     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15235     postinstall_cmds='base_file=`basename \${file}`~
15236       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15237       dldir=$destdir/`dirname \$dlpath`~
15238       test -d \$dldir || mkdir -p \$dldir~
15239       $install_prog $dir/$dlname \$dldir/$dlname~
15240       chmod a+x \$dldir/$dlname~
15241       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15242         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15243       fi'
15244     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15245       dlpath=$dir/\$dldll~
15246        $RM \$dlpath'
15247     shlibpath_overrides_runpath=yes
15248
15249     case $host_os in
15250     cygwin*)
15251       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15252       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15253       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15254       ;;
15255     mingw* | cegcc*)
15256       # MinGW DLLs use traditional 'lib' prefix
15257       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15258       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15259       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15260         # It is most probably a Windows format PATH printed by
15261         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15262         # path with ; separators, and with drive letters. We can handle the
15263         # drive letters (cygwin fileutils understands them), so leave them,
15264         # especially as we might pass files found there to a mingw objdump,
15265         # which wouldn't understand a cygwinified path. Ahh.
15266         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15267       else
15268         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15269       fi
15270       ;;
15271     pw32*)
15272       # pw32 DLLs use 'pw' prefix rather than 'lib'
15273       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15274       ;;
15275     esac
15276     ;;
15277
15278   *)
15279     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15280     ;;
15281   esac
15282   dynamic_linker='Win32 ld.exe'
15283   # FIXME: first we should search . and the directory the executable is in
15284   shlibpath_var=PATH
15285   ;;
15286
15287 darwin* | rhapsody*)
15288   dynamic_linker="$host_os dyld"
15289   version_type=darwin
15290   need_lib_prefix=no
15291   need_version=no
15292   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15293   soname_spec='${libname}${release}${major}$shared_ext'
15294   shlibpath_overrides_runpath=yes
15295   shlibpath_var=DYLD_LIBRARY_PATH
15296   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15297
15298   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15299   ;;
15300
15301 dgux*)
15302   version_type=linux
15303   need_lib_prefix=no
15304   need_version=no
15305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15306   soname_spec='${libname}${release}${shared_ext}$major'
15307   shlibpath_var=LD_LIBRARY_PATH
15308   ;;
15309
15310 freebsd1*)
15311   dynamic_linker=no
15312   ;;
15313
15314 freebsd* | dragonfly*)
15315   # DragonFly does not have aout.  When/if they implement a new
15316   # versioning mechanism, adjust this.
15317   if test -x /usr/bin/objformat; then
15318     objformat=`/usr/bin/objformat`
15319   else
15320     case $host_os in
15321     freebsd[123]*) objformat=aout ;;
15322     *) objformat=elf ;;
15323     esac
15324   fi
15325   version_type=freebsd-$objformat
15326   case $version_type in
15327     freebsd-elf*)
15328       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15329       need_version=no
15330       need_lib_prefix=no
15331       ;;
15332     freebsd-*)
15333       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15334       need_version=yes
15335       ;;
15336   esac
15337   shlibpath_var=LD_LIBRARY_PATH
15338   case $host_os in
15339   freebsd2*)
15340     shlibpath_overrides_runpath=yes
15341     ;;
15342   freebsd3.[01]* | freebsdelf3.[01]*)
15343     shlibpath_overrides_runpath=yes
15344     hardcode_into_libs=yes
15345     ;;
15346   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15347   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15348     shlibpath_overrides_runpath=no
15349     hardcode_into_libs=yes
15350     ;;
15351   *) # from 4.6 on, and DragonFly
15352     shlibpath_overrides_runpath=yes
15353     hardcode_into_libs=yes
15354     ;;
15355   esac
15356   ;;
15357
15358 gnu*)
15359   version_type=linux
15360   need_lib_prefix=no
15361   need_version=no
15362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15363   soname_spec='${libname}${release}${shared_ext}$major'
15364   shlibpath_var=LD_LIBRARY_PATH
15365   hardcode_into_libs=yes
15366   ;;
15367
15368 hpux9* | hpux10* | hpux11*)
15369   # Give a soname corresponding to the major version so that dld.sl refuses to
15370   # link against other versions.
15371   version_type=sunos
15372   need_lib_prefix=no
15373   need_version=no
15374   case $host_cpu in
15375   ia64*)
15376     shrext_cmds='.so'
15377     hardcode_into_libs=yes
15378     dynamic_linker="$host_os dld.so"
15379     shlibpath_var=LD_LIBRARY_PATH
15380     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382     soname_spec='${libname}${release}${shared_ext}$major'
15383     if test "X$HPUX_IA64_MODE" = X32; then
15384       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15385     else
15386       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15387     fi
15388     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15389     ;;
15390   hppa*64*)
15391     shrext_cmds='.sl'
15392     hardcode_into_libs=yes
15393     dynamic_linker="$host_os dld.sl"
15394     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15395     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397     soname_spec='${libname}${release}${shared_ext}$major'
15398     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15399     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15400     ;;
15401   *)
15402     shrext_cmds='.sl'
15403     dynamic_linker="$host_os dld.sl"
15404     shlibpath_var=SHLIB_PATH
15405     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407     soname_spec='${libname}${release}${shared_ext}$major'
15408     ;;
15409   esac
15410   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15411   postinstall_cmds='chmod 555 $lib'
15412   ;;
15413
15414 interix[3-9]*)
15415   version_type=linux
15416   need_lib_prefix=no
15417   need_version=no
15418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15419   soname_spec='${libname}${release}${shared_ext}$major'
15420   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15421   shlibpath_var=LD_LIBRARY_PATH
15422   shlibpath_overrides_runpath=no
15423   hardcode_into_libs=yes
15424   ;;
15425
15426 irix5* | irix6* | nonstopux*)
15427   case $host_os in
15428     nonstopux*) version_type=nonstopux ;;
15429     *)
15430         if test "$lt_cv_prog_gnu_ld" = yes; then
15431                 version_type=linux
15432         else
15433                 version_type=irix
15434         fi ;;
15435   esac
15436   need_lib_prefix=no
15437   need_version=no
15438   soname_spec='${libname}${release}${shared_ext}$major'
15439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15440   case $host_os in
15441   irix5* | nonstopux*)
15442     libsuff= shlibsuff=
15443     ;;
15444   *)
15445     case $LD in # libtool.m4 will add one of these switches to LD
15446     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15447       libsuff= shlibsuff= libmagic=32-bit;;
15448     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15449       libsuff=32 shlibsuff=N32 libmagic=N32;;
15450     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15451       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15452     *) libsuff= shlibsuff= libmagic=never-match;;
15453     esac
15454     ;;
15455   esac
15456   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15457   shlibpath_overrides_runpath=no
15458   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15459   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15460   hardcode_into_libs=yes
15461   ;;
15462
15463 # No shared lib support for Linux oldld, aout, or coff.
15464 linux*oldld* | linux*aout* | linux*coff*)
15465   dynamic_linker=no
15466   ;;
15467
15468 # This must be Linux ELF.
15469 linux* | k*bsd*-gnu)
15470   version_type=linux
15471   need_lib_prefix=no
15472   need_version=no
15473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474   soname_spec='${libname}${release}${shared_ext}$major'
15475   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15476   shlibpath_var=LD_LIBRARY_PATH
15477   shlibpath_overrides_runpath=no
15478   # Some binutils ld are patched to set DT_RUNPATH
15479   save_LDFLAGS=$LDFLAGS
15480   save_libdir=$libdir
15481   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15482        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15483   cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h.  */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h.  */
15489
15490 int
15491 main ()
15492 {
15493
15494   ;
15495   return 0;
15496 }
15497 _ACEOF
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (ac_try="$ac_link"
15500 case "(($ac_try" in
15501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502   *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505   (eval "$ac_link") 2>conftest.er1
15506   ac_status=$?
15507   grep -v '^ *+' conftest.er1 >conftest.err
15508   rm -f conftest.er1
15509   cat conftest.err >&5
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); } && {
15512          test -z "$ac_cxx_werror_flag" ||
15513          test ! -s conftest.err
15514        } && test -s conftest$ac_exeext &&
15515        $as_test_x conftest$ac_exeext; then
15516   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15517   shlibpath_overrides_runpath=yes
15518 fi
15519
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524
15525 fi
15526
15527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15528       conftest$ac_exeext conftest.$ac_ext
15529   LDFLAGS=$save_LDFLAGS
15530   libdir=$save_libdir
15531
15532   # This implies no fast_install, which is unacceptable.
15533   # Some rework will be needed to allow for fast_install
15534   # before this can be enabled.
15535   hardcode_into_libs=yes
15536
15537   # Append ld.so.conf contents to the search path
15538   if test -f /etc/ld.so.conf; then
15539     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15540     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15541   fi
15542
15543   # We used to test for /lib/ld.so.1 and disable shared libraries on
15544   # powerpc, because MkLinux only supported shared libraries with the
15545   # GNU dynamic linker.  Since this was broken with cross compilers,
15546   # most powerpc-linux boxes support dynamic linking these days and
15547   # people can always --disable-shared, the test was removed, and we
15548   # assume the GNU/Linux dynamic linker is in use.
15549   dynamic_linker='GNU/Linux ld.so'
15550   ;;
15551
15552 netbsd*)
15553   version_type=sunos
15554   need_lib_prefix=no
15555   need_version=no
15556   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15558     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15559     dynamic_linker='NetBSD (a.out) ld.so'
15560   else
15561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15562     soname_spec='${libname}${release}${shared_ext}$major'
15563     dynamic_linker='NetBSD ld.elf_so'
15564   fi
15565   shlibpath_var=LD_LIBRARY_PATH
15566   shlibpath_overrides_runpath=yes
15567   hardcode_into_libs=yes
15568   ;;
15569
15570 newsos6)
15571   version_type=linux
15572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573   shlibpath_var=LD_LIBRARY_PATH
15574   shlibpath_overrides_runpath=yes
15575   ;;
15576
15577 *nto* | *qnx*)
15578   version_type=qnx
15579   need_lib_prefix=no
15580   need_version=no
15581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582   soname_spec='${libname}${release}${shared_ext}$major'
15583   shlibpath_var=LD_LIBRARY_PATH
15584   shlibpath_overrides_runpath=no
15585   hardcode_into_libs=yes
15586   dynamic_linker='ldqnx.so'
15587   ;;
15588
15589 openbsd*)
15590   version_type=sunos
15591   sys_lib_dlsearch_path_spec="/usr/lib"
15592   need_lib_prefix=no
15593   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15594   case $host_os in
15595     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15596     *)                          need_version=no  ;;
15597   esac
15598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15599   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15600   shlibpath_var=LD_LIBRARY_PATH
15601   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15602     case $host_os in
15603       openbsd2.[89] | openbsd2.[89].*)
15604         shlibpath_overrides_runpath=no
15605         ;;
15606       *)
15607         shlibpath_overrides_runpath=yes
15608         ;;
15609       esac
15610   else
15611     shlibpath_overrides_runpath=yes
15612   fi
15613   ;;
15614
15615 os2*)
15616   libname_spec='$name'
15617   shrext_cmds=".dll"
15618   need_lib_prefix=no
15619   library_names_spec='$libname${shared_ext} $libname.a'
15620   dynamic_linker='OS/2 ld.exe'
15621   shlibpath_var=LIBPATH
15622   ;;
15623
15624 osf3* | osf4* | osf5*)
15625   version_type=osf
15626   need_lib_prefix=no
15627   need_version=no
15628   soname_spec='${libname}${release}${shared_ext}$major'
15629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630   shlibpath_var=LD_LIBRARY_PATH
15631   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15632   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15633   ;;
15634
15635 rdos*)
15636   dynamic_linker=no
15637   ;;
15638
15639 solaris*)
15640   version_type=linux
15641   need_lib_prefix=no
15642   need_version=no
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644   soname_spec='${libname}${release}${shared_ext}$major'
15645   shlibpath_var=LD_LIBRARY_PATH
15646   shlibpath_overrides_runpath=yes
15647   hardcode_into_libs=yes
15648   # ldd complains unless libraries are executable
15649   postinstall_cmds='chmod +x $lib'
15650   ;;
15651
15652 sunos4*)
15653   version_type=sunos
15654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15655   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15656   shlibpath_var=LD_LIBRARY_PATH
15657   shlibpath_overrides_runpath=yes
15658   if test "$with_gnu_ld" = yes; then
15659     need_lib_prefix=no
15660   fi
15661   need_version=yes
15662   ;;
15663
15664 sysv4 | sysv4.3*)
15665   version_type=linux
15666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15667   soname_spec='${libname}${release}${shared_ext}$major'
15668   shlibpath_var=LD_LIBRARY_PATH
15669   case $host_vendor in
15670     sni)
15671       shlibpath_overrides_runpath=no
15672       need_lib_prefix=no
15673       runpath_var=LD_RUN_PATH
15674       ;;
15675     siemens)
15676       need_lib_prefix=no
15677       ;;
15678     motorola)
15679       need_lib_prefix=no
15680       need_version=no
15681       shlibpath_overrides_runpath=no
15682       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15683       ;;
15684   esac
15685   ;;
15686
15687 sysv4*MP*)
15688   if test -d /usr/nec ;then
15689     version_type=linux
15690     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15691     soname_spec='$libname${shared_ext}.$major'
15692     shlibpath_var=LD_LIBRARY_PATH
15693   fi
15694   ;;
15695
15696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15697   version_type=freebsd-elf
15698   need_lib_prefix=no
15699   need_version=no
15700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15701   soname_spec='${libname}${release}${shared_ext}$major'
15702   shlibpath_var=LD_LIBRARY_PATH
15703   shlibpath_overrides_runpath=yes
15704   hardcode_into_libs=yes
15705   if test "$with_gnu_ld" = yes; then
15706     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15707   else
15708     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15709     case $host_os in
15710       sco3.2v5*)
15711         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15712         ;;
15713     esac
15714   fi
15715   sys_lib_dlsearch_path_spec='/usr/lib'
15716   ;;
15717
15718 tpf*)
15719   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15720   version_type=linux
15721   need_lib_prefix=no
15722   need_version=no
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   shlibpath_overrides_runpath=no
15726   hardcode_into_libs=yes
15727   ;;
15728
15729 uts4*)
15730   version_type=linux
15731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15732   soname_spec='${libname}${release}${shared_ext}$major'
15733   shlibpath_var=LD_LIBRARY_PATH
15734   ;;
15735
15736 *)
15737   dynamic_linker=no
15738   ;;
15739 esac
15740 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15741 echo "${ECHO_T}$dynamic_linker" >&6; }
15742 test "$dynamic_linker" = no && can_build_shared=no
15743
15744 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15745 if test "$GCC" = yes; then
15746   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15747 fi
15748
15749 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15750   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15751 fi
15752 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15753   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15754 fi
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15792 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15793 hardcode_action_CXX=
15794 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15795    test -n "$runpath_var_CXX" ||
15796    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15797
15798   # We can hardcode non-existent directories.
15799   if test "$hardcode_direct_CXX" != no &&
15800      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15801      # have to relink, otherwise we might link with an installed library
15802      # when we should be linking with a yet-to-be-installed one
15803      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15804      test "$hardcode_minus_L_CXX" != no; then
15805     # Linking always hardcodes the temporary library directory.
15806     hardcode_action_CXX=relink
15807   else
15808     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15809     hardcode_action_CXX=immediate
15810   fi
15811 else
15812   # We cannot hardcode anything, or else we can only hardcode existing
15813   # directories.
15814   hardcode_action_CXX=unsupported
15815 fi
15816 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15817 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15818
15819 if test "$hardcode_action_CXX" = relink ||
15820    test "$inherit_rpath_CXX" = yes; then
15821   # Fast installation is not supported
15822   enable_fast_install=no
15823 elif test "$shlibpath_overrides_runpath" = yes ||
15824      test "$enable_shared" = no; then
15825   # Fast installation is not necessary
15826   enable_fast_install=needless
15827 fi
15828
15829
15830
15831
15832
15833
15834
15835   fi # test -n "$compiler"
15836
15837   CC=$lt_save_CC
15838   LDCXX=$LD
15839   LD=$lt_save_LD
15840   GCC=$lt_save_GCC
15841   with_gnu_ld=$lt_save_with_gnu_ld
15842   lt_cv_path_LDCXX=$lt_cv_path_LD
15843   lt_cv_path_LD=$lt_save_path_LD
15844   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15845   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15846 fi # test "$_lt_caught_CXX_error" != yes
15847
15848 ac_ext=c
15849 ac_cpp='$CPP $CPPFLAGS'
15850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866         ac_config_commands="$ac_config_commands libtool"
15867
15868
15869
15870
15871 # Only expand once:
15872
15873
15874
15875
15876 if test x$use_libtool != xno; then
15877    DEFAULT_OBJECT_TYPE=".lo"
15878    DEFAULT_ARCHIVE_TYPE=".la"
15879    DEFAULT_SHARED_OBJECT_TYPE=".la"
15880    LIBTOOL="\$(LIBTOOL)"
15881    LIBTOOL_INSTALL_TARGET="libtool-install"
15882    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15883    LIBTOOL_CLEAN_TARGET="libtool-clean"
15884    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15885 else
15886    DEFAULT_OBJECT_TYPE=".o"
15887    DEFAULT_ARCHIVE_TYPE=".a"
15888    DEFAULT_SHARED_OBJECT_TYPE=".so"
15889    LIBTOOL="# \$(LIBTOOL)"
15890    LIBTOOL_INSTALL_TARGET=""
15891    LIBTOOL_UNINSTALL_TARGET=""
15892    LIBTOOL_CLEAN_TARGET=""
15893    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15894 fi
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905 # Check whether --enable-includes was given.
15906 if test "${enable_includes+set}" = set; then
15907   enableval=$enable_includes;
15908        if test x$enableval = xyes; then
15909           install_includes=yes
15910        fi
15911
15912
15913 fi
15914
15915
15916
15917 if test x$use_libtool != xno -a x$install_includes = xyes; then
15918    INCLUDE_INSTALL_TARGET="install-includes"
15919    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15920 else
15921    INCLUDE_INSTALL_TARGET=""
15922    INCLUDE_UNINSTALL_TARGET=""
15923 fi
15924
15925
15926
15927
15928 { echo "$as_me:$LINENO: checking host system type" >&5
15929 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15930 if test "${ac_cv_host+set}" = set; then
15931   echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933   if test "x$host_alias" = x; then
15934   ac_cv_host=$ac_cv_build
15935 else
15936   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15937     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15938 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15939    { (exit 1); exit 1; }; }
15940 fi
15941
15942 fi
15943 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15944 echo "${ECHO_T}$ac_cv_host" >&6; }
15945 case $ac_cv_host in
15946 *-*-*) ;;
15947 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15948 echo "$as_me: error: invalid value of canonical host" >&2;}
15949    { (exit 1); exit 1; }; };;
15950 esac
15951 host=$ac_cv_host
15952 ac_save_IFS=$IFS; IFS='-'
15953 set x $ac_cv_host
15954 shift
15955 host_cpu=$1
15956 host_vendor=$2
15957 shift; shift
15958 # Remember, the first character of IFS is used to create $*,
15959 # except with old shells:
15960 host_os=$*
15961 IFS=$ac_save_IFS
15962 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15963
15964
15965 case $host_os in
15966   *cygwin* ) CYGWIN=yes;;
15967          * ) CYGWIN=no;;
15968 esac
15969
15970 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15971 then
15972
15973
15974 if $TRUEPRG; then
15975   HAVE_SUN_OS_TRUE=
15976   HAVE_SUN_OS_FALSE='#'
15977 else
15978   HAVE_SUN_OS_TRUE='#'
15979   HAVE_SUN_OS_FALSE=
15980 fi
15981         cat >>confdefs.h <<\_ACEOF
15982 #define HAVE_SUN_OS 1
15983 _ACEOF
15984
15985 else
15986
15987
15988 if $FALSEPRG; then
15989   HAVE_SUN_OS_TRUE=
15990   HAVE_SUN_OS_FALSE='#'
15991 else
15992   HAVE_SUN_OS_TRUE='#'
15993   HAVE_SUN_OS_FALSE=
15994 fi
15995 fi
15996
15997 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15998 then
15999
16000
16001 if $TRUEPRG; then
16002   HAVE_OSF1_OS_TRUE=
16003   HAVE_OSF1_OS_FALSE='#'
16004 else
16005   HAVE_OSF1_OS_TRUE='#'
16006   HAVE_OSF1_OS_FALSE=
16007 fi
16008         cat >>confdefs.h <<\_ACEOF
16009 #define HAVE_OSF1_OS 1
16010 _ACEOF
16011
16012 else
16013
16014
16015 if $FALSEPRG; then
16016   HAVE_OSF1_OS_TRUE=
16017   HAVE_OSF1_OS_FALSE='#'
16018 else
16019   HAVE_OSF1_OS_TRUE='#'
16020   HAVE_OSF1_OS_FALSE=
16021 fi
16022 fi
16023
16024 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16025 then
16026
16027
16028 if $TRUEPRG; then
16029   HAVE_AIX_OS_TRUE=
16030   HAVE_AIX_OS_FALSE='#'
16031 else
16032   HAVE_AIX_OS_TRUE='#'
16033   HAVE_AIX_OS_FALSE=
16034 fi
16035         cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_AIX_OS 1
16037 _ACEOF
16038
16039 else
16040
16041
16042 if $FALSEPRG; then
16043   HAVE_AIX_OS_TRUE=
16044   HAVE_AIX_OS_FALSE='#'
16045 else
16046   HAVE_AIX_OS_TRUE='#'
16047   HAVE_AIX_OS_FALSE=
16048 fi
16049 fi
16050
16051 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16052 then
16053
16054
16055 if $TRUEPRG; then
16056   HAVE_HPUX_OS_TRUE=
16057   HAVE_HPUX_OS_FALSE='#'
16058 else
16059   HAVE_HPUX_OS_TRUE='#'
16060   HAVE_HPUX_OS_FALSE=
16061 fi
16062         cat >>confdefs.h <<\_ACEOF
16063 #define HAVE_HPUX_OS 1
16064 _ACEOF
16065
16066 else
16067
16068
16069 if $FALSEPRG; then
16070   HAVE_HPUX_OS_TRUE=
16071   HAVE_HPUX_OS_FALSE='#'
16072 else
16073   HAVE_HPUX_OS_TRUE='#'
16074   HAVE_HPUX_OS_FALSE=
16075 fi
16076 fi
16077
16078 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16079 then
16080
16081
16082 if $TRUEPRG; then
16083   HAVE_LINUX_OS_TRUE=
16084   HAVE_LINUX_OS_FALSE='#'
16085 else
16086   HAVE_LINUX_OS_TRUE='#'
16087   HAVE_LINUX_OS_FALSE=
16088 fi
16089         cat >>confdefs.h <<\_ACEOF
16090 #define HAVE_LINUX_OS 1
16091 _ACEOF
16092
16093 else
16094
16095
16096 if $FALSEPRG; then
16097   HAVE_LINUX_OS_TRUE=
16098   HAVE_LINUX_OS_FALSE='#'
16099 else
16100   HAVE_LINUX_OS_TRUE='#'
16101   HAVE_LINUX_OS_FALSE=
16102 fi
16103 fi
16104
16105 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16106 then
16107
16108
16109 if $TRUEPRG; then
16110   HAVE_FREEBSD_OS_TRUE=
16111   HAVE_FREEBSD_OS_FALSE='#'
16112 else
16113   HAVE_FREEBSD_OS_TRUE='#'
16114   HAVE_FREEBSD_OS_FALSE=
16115 fi
16116         cat >>confdefs.h <<\_ACEOF
16117 #define HAVE_FREEBSD_OS 1
16118 _ACEOF
16119
16120 else
16121
16122
16123 if $FALSEPRG; then
16124   HAVE_FREEBSD_OS_TRUE=
16125   HAVE_FREEBSD_OS_FALSE='#'
16126 else
16127   HAVE_FREEBSD_OS_TRUE='#'
16128   HAVE_FREEBSD_OS_FALSE=
16129 fi
16130 fi
16131
16132 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16133 then
16134
16135
16136 if $TRUEPRG; then
16137   HAVE_NETBSD_OS_TRUE=
16138   HAVE_NETBSD_OS_FALSE='#'
16139 else
16140   HAVE_NETBSD_OS_TRUE='#'
16141   HAVE_NETBSD_OS_FALSE=
16142 fi
16143         cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_NETBSD_OS 1
16145 _ACEOF
16146
16147 else
16148
16149
16150 if $FALSEPRG; then
16151   HAVE_NETBSD_OS_TRUE=
16152   HAVE_NETBSD_OS_FALSE='#'
16153 else
16154   HAVE_NETBSD_OS_TRUE='#'
16155   HAVE_NETBSD_OS_FALSE=
16156 fi
16157 fi
16158
16159 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16160 then
16161
16162
16163 if $TRUEPRG; then
16164   HAVE_OPENBSD_OS_TRUE=
16165   HAVE_OPENBSD_OS_FALSE='#'
16166 else
16167   HAVE_OPENBSD_OS_TRUE='#'
16168   HAVE_OPENBSD_OS_FALSE=
16169 fi
16170         cat >>confdefs.h <<\_ACEOF
16171 #define HAVE_OPENBSD_OS 1
16172 _ACEOF
16173
16174 else
16175
16176
16177 if $FALSEPRG; then
16178   HAVE_OPENBSD_OS_TRUE=
16179   HAVE_OPENBSD_OS_FALSE='#'
16180 else
16181   HAVE_OPENBSD_OS_TRUE='#'
16182   HAVE_OPENBSD_OS_FALSE=
16183 fi
16184 fi
16185
16186 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16187 then
16188
16189
16190 if $TRUEPRG; then
16191   HAVE_BSDI_OS_TRUE=
16192   HAVE_BSDI_OS_FALSE='#'
16193 else
16194   HAVE_BSDI_OS_TRUE='#'
16195   HAVE_BSDI_OS_FALSE=
16196 fi
16197         cat >>confdefs.h <<\_ACEOF
16198 #define HAVE_BSDI_OS 1
16199 _ACEOF
16200
16201 else
16202
16203
16204 if $FALSEPRG; then
16205   HAVE_BSDI_OS_TRUE=
16206   HAVE_BSDI_OS_FALSE='#'
16207 else
16208   HAVE_BSDI_OS_TRUE='#'
16209   HAVE_BSDI_OS_FALSE=
16210 fi
16211 fi
16212
16213 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16214 then
16215
16216
16217 if $TRUEPRG; then
16218   HAVE_SGI_OS_TRUE=
16219   HAVE_SGI_OS_FALSE='#'
16220 else
16221   HAVE_SGI_OS_TRUE='#'
16222   HAVE_SGI_OS_FALSE=
16223 fi
16224         cat >>confdefs.h <<\_ACEOF
16225 #define HAVE_SGI_OS 1
16226 _ACEOF
16227
16228 else
16229
16230
16231 if $FALSEPRG; then
16232   HAVE_SGI_OS_TRUE=
16233   HAVE_SGI_OS_FALSE='#'
16234 else
16235   HAVE_SGI_OS_TRUE='#'
16236   HAVE_SGI_OS_FALSE=
16237 fi
16238 fi
16239
16240 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16241 then
16242
16243
16244 if $TRUEPRG; then
16245   HAVE_IRIX_OS_TRUE=
16246   HAVE_IRIX_OS_FALSE='#'
16247 else
16248   HAVE_IRIX_OS_TRUE='#'
16249   HAVE_IRIX_OS_FALSE=
16250 fi
16251         cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_IRIX_OS 1
16253 _ACEOF
16254
16255 else
16256
16257
16258 if $FALSEPRG; then
16259   HAVE_IRIX_OS_TRUE=
16260   HAVE_IRIX_OS_FALSE='#'
16261 else
16262   HAVE_IRIX_OS_TRUE='#'
16263   HAVE_IRIX_OS_FALSE=
16264 fi
16265 fi
16266
16267 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16268 then
16269
16270
16271 if $TRUEPRG; then
16272   HAVE_DARWIN_OS_TRUE=
16273   HAVE_DARWIN_OS_FALSE='#'
16274 else
16275   HAVE_DARWIN_OS_TRUE='#'
16276   HAVE_DARWIN_OS_FALSE=
16277 fi
16278     cat >>confdefs.h <<\_ACEOF
16279 #define HAVE_DARWIN_OS 1
16280 _ACEOF
16281
16282 else
16283
16284
16285 if $FALSEPRG; then
16286   HAVE_DARWIN_OS_TRUE=
16287   HAVE_DARWIN_OS_FALSE='#'
16288 else
16289   HAVE_DARWIN_OS_TRUE='#'
16290   HAVE_DARWIN_OS_FALSE=
16291 fi
16292 fi
16293
16294
16295 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16296 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16297 if test "x$DISTNAME" != "x"
16298 then
16299         echo "distname set to $DISTNAME"
16300 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16301 then
16302         DISTNAME=alpha
16303 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16304 then
16305         DISTNAME=aix
16306 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16307 then
16308         DISTNAME=hpux
16309 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16310 then
16311         DISTNAME=solaris
16312 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16313 then
16314         DISTNAME=freebsd
16315 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16316 then
16317         DISTNAME=netbsd
16318 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16319 then
16320         DISTNAME=openbsd
16321 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16322 then
16323         DISTNAME=irix
16324 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16325 then
16326         DISTNAME=bsdi
16327 elif test -f /etc/SuSE-release
16328 then
16329         DISTNAME=suse
16330 elif test -d /etc/SuSEconfig
16331 then
16332         DISTNAME=suse5
16333 elif test -f /etc/mandrake-release
16334 then
16335         DISTNAME=mandrake
16336 elif test -f /etc/whitebox-release
16337 then
16338        DISTNAME=redhat
16339 elif test -f /etc/redhat-release
16340 then
16341         DISTNAME=redhat
16342 elif test -f /etc/gentoo-release
16343 then
16344         DISTNAME=gentoo
16345 elif test -f /etc/debian_version
16346 then
16347         DISTNAME=debian
16348 elif test -f /etc/slackware-version
16349 then
16350         DISTNAME=slackware
16351 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16352 then
16353     DISTNAME=darwin
16354 elif test -f /etc/engarde-version
16355 then
16356         DISTNAME=engarde
16357 elif test "$CYGWIN" = yes
16358 then
16359         DISTNAME=cygwin
16360         cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_CYGWIN 1
16362 _ACEOF
16363
16364 else
16365         DISTNAME=unknown
16366 fi
16367 { echo "$as_me:$LINENO: result: done" >&5
16368 echo "${ECHO_T}done" >&6; }
16369
16370
16371 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16372 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16373 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16374 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16375   echo $ECHO_N "(cached) $ECHO_C" >&6
16376 else
16377   cat >conftest.make <<\_ACEOF
16378 SHELL = /bin/sh
16379 all:
16380         @echo '@@@%%%=$(MAKE)=@@@%%%'
16381 _ACEOF
16382 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16383 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16384   *@@@%%%=?*=@@@%%%*)
16385     eval ac_cv_prog_make_${ac_make}_set=yes;;
16386   *)
16387     eval ac_cv_prog_make_${ac_make}_set=no;;
16388 esac
16389 rm -f conftest.make
16390 fi
16391 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16392   { echo "$as_me:$LINENO: result: yes" >&5
16393 echo "${ECHO_T}yes" >&6; }
16394   SET_MAKE=
16395 else
16396   { echo "$as_me:$LINENO: result: no" >&5
16397 echo "${ECHO_T}no" >&6; }
16398   SET_MAKE="MAKE=${MAKE-make}"
16399 fi
16400
16401
16402
16403         MKINSTALLDIRS=
16404   if test -n "$ac_aux_dir"; then
16405     case "$ac_aux_dir" in
16406       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16407       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16408     esac
16409   fi
16410   if test -z "$MKINSTALLDIRS"; then
16411     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16412   fi
16413
16414
16415
16416   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16417 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16418     # Check whether --enable-nls was given.
16419 if test "${enable_nls+set}" = set; then
16420   enableval=$enable_nls; USE_NLS=$enableval
16421 else
16422   USE_NLS=yes
16423 fi
16424
16425   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16426 echo "${ECHO_T}$USE_NLS" >&6; }
16427
16428
16429
16430
16431
16432
16433 # Prepare PATH_SEPARATOR.
16434 # The user is always right.
16435 if test "${PATH_SEPARATOR+set}" != set; then
16436   echo "#! /bin/sh" >conf$$.sh
16437   echo  "exit 0"   >>conf$$.sh
16438   chmod +x conf$$.sh
16439   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16440     PATH_SEPARATOR=';'
16441   else
16442     PATH_SEPARATOR=:
16443   fi
16444   rm -f conf$$.sh
16445 fi
16446
16447 # Find out how to test for executable files. Don't use a zero-byte file,
16448 # as systems may use methods other than mode bits to determine executability.
16449 cat >conf$$.file <<_ASEOF
16450 #! /bin/sh
16451 exit 0
16452 _ASEOF
16453 chmod +x conf$$.file
16454 if test -x conf$$.file >/dev/null 2>&1; then
16455   ac_executable_p="test -x"
16456 else
16457   ac_executable_p="test -f"
16458 fi
16459 rm -f conf$$.file
16460
16461 # Extract the first word of "msgfmt", so it can be a program name with args.
16462 set dummy msgfmt; ac_word=$2
16463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16465 if test "${ac_cv_path_MSGFMT+set}" = set; then
16466   echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468   case "$MSGFMT" in
16469   [\\/]* | ?:[\\/]*)
16470     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16471     ;;
16472   *)
16473     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16474     for ac_dir in $PATH; do
16475       IFS="$ac_save_IFS"
16476       test -z "$ac_dir" && ac_dir=.
16477       for ac_exec_ext in '' $ac_executable_extensions; do
16478         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16479           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16480           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16481      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16482             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16483             break 2
16484           fi
16485         fi
16486       done
16487     done
16488     IFS="$ac_save_IFS"
16489   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16490     ;;
16491 esac
16492 fi
16493 MSGFMT="$ac_cv_path_MSGFMT"
16494 if test "$MSGFMT" != ":"; then
16495   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16496 echo "${ECHO_T}$MSGFMT" >&6; }
16497 else
16498   { echo "$as_me:$LINENO: result: no" >&5
16499 echo "${ECHO_T}no" >&6; }
16500 fi
16501
16502   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16503 set dummy gmsgfmt; ac_word=$2
16504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16506 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16507   echo $ECHO_N "(cached) $ECHO_C" >&6
16508 else
16509   case $GMSGFMT in
16510   [\\/]* | ?:[\\/]*)
16511   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16512   ;;
16513   *)
16514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16516 do
16517   IFS=$as_save_IFS
16518   test -z "$as_dir" && as_dir=.
16519   for ac_exec_ext in '' $ac_executable_extensions; do
16520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16521     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16523     break 2
16524   fi
16525 done
16526 done
16527 IFS=$as_save_IFS
16528
16529   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16530   ;;
16531 esac
16532 fi
16533 GMSGFMT=$ac_cv_path_GMSGFMT
16534 if test -n "$GMSGFMT"; then
16535   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16536 echo "${ECHO_T}$GMSGFMT" >&6; }
16537 else
16538   { echo "$as_me:$LINENO: result: no" >&5
16539 echo "${ECHO_T}no" >&6; }
16540 fi
16541
16542
16543
16544
16545 # Prepare PATH_SEPARATOR.
16546 # The user is always right.
16547 if test "${PATH_SEPARATOR+set}" != set; then
16548   echo "#! /bin/sh" >conf$$.sh
16549   echo  "exit 0"   >>conf$$.sh
16550   chmod +x conf$$.sh
16551   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16552     PATH_SEPARATOR=';'
16553   else
16554     PATH_SEPARATOR=:
16555   fi
16556   rm -f conf$$.sh
16557 fi
16558
16559 # Find out how to test for executable files. Don't use a zero-byte file,
16560 # as systems may use methods other than mode bits to determine executability.
16561 cat >conf$$.file <<_ASEOF
16562 #! /bin/sh
16563 exit 0
16564 _ASEOF
16565 chmod +x conf$$.file
16566 if test -x conf$$.file >/dev/null 2>&1; then
16567   ac_executable_p="test -x"
16568 else
16569   ac_executable_p="test -f"
16570 fi
16571 rm -f conf$$.file
16572
16573 # Extract the first word of "xgettext", so it can be a program name with args.
16574 set dummy xgettext; ac_word=$2
16575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16577 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16578   echo $ECHO_N "(cached) $ECHO_C" >&6
16579 else
16580   case "$XGETTEXT" in
16581   [\\/]* | ?:[\\/]*)
16582     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16583     ;;
16584   *)
16585     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16586     for ac_dir in $PATH; do
16587       IFS="$ac_save_IFS"
16588       test -z "$ac_dir" && ac_dir=.
16589       for ac_exec_ext in '' $ac_executable_extensions; do
16590         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16591           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16592           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16593      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16594             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16595             break 2
16596           fi
16597         fi
16598       done
16599     done
16600     IFS="$ac_save_IFS"
16601   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16602     ;;
16603 esac
16604 fi
16605 XGETTEXT="$ac_cv_path_XGETTEXT"
16606 if test "$XGETTEXT" != ":"; then
16607   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16608 echo "${ECHO_T}$XGETTEXT" >&6; }
16609 else
16610   { echo "$as_me:$LINENO: result: no" >&5
16611 echo "${ECHO_T}no" >&6; }
16612 fi
16613
16614     rm -f messages.po
16615
16616
16617 # Prepare PATH_SEPARATOR.
16618 # The user is always right.
16619 if test "${PATH_SEPARATOR+set}" != set; then
16620   echo "#! /bin/sh" >conf$$.sh
16621   echo  "exit 0"   >>conf$$.sh
16622   chmod +x conf$$.sh
16623   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16624     PATH_SEPARATOR=';'
16625   else
16626     PATH_SEPARATOR=:
16627   fi
16628   rm -f conf$$.sh
16629 fi
16630
16631 # Find out how to test for executable files. Don't use a zero-byte file,
16632 # as systems may use methods other than mode bits to determine executability.
16633 cat >conf$$.file <<_ASEOF
16634 #! /bin/sh
16635 exit 0
16636 _ASEOF
16637 chmod +x conf$$.file
16638 if test -x conf$$.file >/dev/null 2>&1; then
16639   ac_executable_p="test -x"
16640 else
16641   ac_executable_p="test -f"
16642 fi
16643 rm -f conf$$.file
16644
16645 # Extract the first word of "msgmerge", so it can be a program name with args.
16646 set dummy msgmerge; ac_word=$2
16647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16649 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16650   echo $ECHO_N "(cached) $ECHO_C" >&6
16651 else
16652   case "$MSGMERGE" in
16653   [\\/]* | ?:[\\/]*)
16654     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16655     ;;
16656   *)
16657     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16658     for ac_dir in $PATH; do
16659       IFS="$ac_save_IFS"
16660       test -z "$ac_dir" && ac_dir=.
16661       for ac_exec_ext in '' $ac_executable_extensions; do
16662         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16663           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16664           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16665             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16666             break 2
16667           fi
16668         fi
16669       done
16670     done
16671     IFS="$ac_save_IFS"
16672   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16673     ;;
16674 esac
16675 fi
16676 MSGMERGE="$ac_cv_path_MSGMERGE"
16677 if test "$MSGMERGE" != ":"; then
16678   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16679 echo "${ECHO_T}$MSGMERGE" >&6; }
16680 else
16681   { echo "$as_me:$LINENO: result: no" >&5
16682 echo "${ECHO_T}no" >&6; }
16683 fi
16684
16685
16686       if test "$GMSGFMT" != ":"; then
16687             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16688        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16689       : ;
16690     else
16691       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16692       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16693 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16694       GMSGFMT=":"
16695     fi
16696   fi
16697
16698       if test "$XGETTEXT" != ":"; then
16699             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16700        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16701       : ;
16702     else
16703       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16704 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16705       XGETTEXT=":"
16706     fi
16707         rm -f messages.po
16708   fi
16709
16710   ac_config_commands="$ac_config_commands default-1"
16711
16712
16713
16714       if test "X$prefix" = "XNONE"; then
16715     acl_final_prefix="$ac_default_prefix"
16716   else
16717     acl_final_prefix="$prefix"
16718   fi
16719   if test "X$exec_prefix" = "XNONE"; then
16720     acl_final_exec_prefix='${prefix}'
16721   else
16722     acl_final_exec_prefix="$exec_prefix"
16723   fi
16724   acl_save_prefix="$prefix"
16725   prefix="$acl_final_prefix"
16726   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16727   prefix="$acl_save_prefix"
16728
16729
16730 # Check whether --with-gnu-ld was given.
16731 if test "${with_gnu_ld+set}" = set; then
16732   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16733 else
16734   with_gnu_ld=no
16735 fi
16736
16737 # Prepare PATH_SEPARATOR.
16738 # The user is always right.
16739 if test "${PATH_SEPARATOR+set}" != set; then
16740   echo "#! /bin/sh" >conf$$.sh
16741   echo  "exit 0"   >>conf$$.sh
16742   chmod +x conf$$.sh
16743   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16744     PATH_SEPARATOR=';'
16745   else
16746     PATH_SEPARATOR=:
16747   fi
16748   rm -f conf$$.sh
16749 fi
16750 ac_prog=ld
16751 if test "$GCC" = yes; then
16752   # Check if gcc -print-prog-name=ld gives a path.
16753   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16754 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16755   case $host in
16756   *-*-mingw*)
16757     # gcc leaves a trailing carriage return which upsets mingw
16758     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16759   *)
16760     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16761   esac
16762   case $ac_prog in
16763     # Accept absolute paths.
16764     [\\/]* | [A-Za-z]:[\\/]*)
16765       re_direlt='/[^/][^/]*/\.\./'
16766       # Canonicalize the path of ld
16767       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16768       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16769         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16770       done
16771       test -z "$LD" && LD="$ac_prog"
16772       ;;
16773   "")
16774     # If it fails, then pretend we aren't using GCC.
16775     ac_prog=ld
16776     ;;
16777   *)
16778     # If it is relative, then search for the first ld in PATH.
16779     with_gnu_ld=unknown
16780     ;;
16781   esac
16782 elif test "$with_gnu_ld" = yes; then
16783   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16784 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16785 else
16786   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16787 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16788 fi
16789 if test "${acl_cv_path_LD+set}" = set; then
16790   echo $ECHO_N "(cached) $ECHO_C" >&6
16791 else
16792   if test -z "$LD"; then
16793   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16794   for ac_dir in $PATH; do
16795     test -z "$ac_dir" && ac_dir=.
16796     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16797       acl_cv_path_LD="$ac_dir/$ac_prog"
16798       # Check to see if the program is GNU ld.  I'd rather use --version,
16799       # but apparently some GNU ld's only accept -v.
16800       # Break only if it was the GNU/non-GNU ld that we prefer.
16801       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16802       *GNU* | *'with BFD'*)
16803         test "$with_gnu_ld" != no && break ;;
16804       *)
16805         test "$with_gnu_ld" != yes && break ;;
16806       esac
16807     fi
16808   done
16809   IFS="$ac_save_ifs"
16810 else
16811   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16812 fi
16813 fi
16814
16815 LD="$acl_cv_path_LD"
16816 if test -n "$LD"; then
16817   { echo "$as_me:$LINENO: result: $LD" >&5
16818 echo "${ECHO_T}$LD" >&6; }
16819 else
16820   { echo "$as_me:$LINENO: result: no" >&5
16821 echo "${ECHO_T}no" >&6; }
16822 fi
16823 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16824 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16825    { (exit 1); exit 1; }; }
16826 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16827 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16828 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16829   echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16832 case `$LD -v 2>&1 </dev/null` in
16833 *GNU* | *'with BFD'*)
16834   acl_cv_prog_gnu_ld=yes ;;
16835 *)
16836   acl_cv_prog_gnu_ld=no ;;
16837 esac
16838 fi
16839 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16840 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16841 with_gnu_ld=$acl_cv_prog_gnu_ld
16842
16843
16844
16845
16846                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16847 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16848 if test "${acl_cv_rpath+set}" = set; then
16849   echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851
16852     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16853     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16854     . ./conftest.sh
16855     rm -f ./conftest.sh
16856     acl_cv_rpath=done
16857
16858 fi
16859 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16860 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16861   wl="$acl_cv_wl"
16862   libext="$acl_cv_libext"
16863   shlibext="$acl_cv_shlibext"
16864   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16865   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16866   hardcode_direct="$acl_cv_hardcode_direct"
16867   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16868     # Check whether --enable-rpath was given.
16869 if test "${enable_rpath+set}" = set; then
16870   enableval=$enable_rpath; :
16871 else
16872   enable_rpath=yes
16873 fi
16874
16875
16876
16877
16878
16879
16880
16881
16882     use_additional=yes
16883
16884   acl_save_prefix="$prefix"
16885   prefix="$acl_final_prefix"
16886   acl_save_exec_prefix="$exec_prefix"
16887   exec_prefix="$acl_final_exec_prefix"
16888
16889     eval additional_includedir=\"$includedir\"
16890     eval additional_libdir=\"$libdir\"
16891
16892   exec_prefix="$acl_save_exec_prefix"
16893   prefix="$acl_save_prefix"
16894
16895
16896 # Check whether --with-libiconv-prefix was given.
16897 if test "${with_libiconv_prefix+set}" = set; then
16898   withval=$with_libiconv_prefix;
16899     if test "X$withval" = "Xno"; then
16900       use_additional=no
16901     else
16902       if test "X$withval" = "X"; then
16903
16904   acl_save_prefix="$prefix"
16905   prefix="$acl_final_prefix"
16906   acl_save_exec_prefix="$exec_prefix"
16907   exec_prefix="$acl_final_exec_prefix"
16908
16909           eval additional_includedir=\"$includedir\"
16910           eval additional_libdir=\"$libdir\"
16911
16912   exec_prefix="$acl_save_exec_prefix"
16913   prefix="$acl_save_prefix"
16914
16915       else
16916         additional_includedir="$withval/include"
16917         additional_libdir="$withval/lib"
16918       fi
16919     fi
16920
16921 fi
16922
16923       LIBICONV=
16924   LTLIBICONV=
16925   INCICONV=
16926   rpathdirs=
16927   ltrpathdirs=
16928   names_already_handled=
16929   names_next_round='iconv '
16930   while test -n "$names_next_round"; do
16931     names_this_round="$names_next_round"
16932     names_next_round=
16933     for name in $names_this_round; do
16934       already_handled=
16935       for n in $names_already_handled; do
16936         if test "$n" = "$name"; then
16937           already_handled=yes
16938           break
16939         fi
16940       done
16941       if test -z "$already_handled"; then
16942         names_already_handled="$names_already_handled $name"
16943                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16944         eval value=\"\$HAVE_LIB$uppername\"
16945         if test -n "$value"; then
16946           if test "$value" = yes; then
16947             eval value=\"\$LIB$uppername\"
16948             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16949             eval value=\"\$LTLIB$uppername\"
16950             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16951           else
16952                                     :
16953           fi
16954         else
16955                               found_dir=
16956           found_la=
16957           found_so=
16958           found_a=
16959           if test $use_additional = yes; then
16960             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16961               found_dir="$additional_libdir"
16962               found_so="$additional_libdir/lib$name.$shlibext"
16963               if test -f "$additional_libdir/lib$name.la"; then
16964                 found_la="$additional_libdir/lib$name.la"
16965               fi
16966             else
16967               if test -f "$additional_libdir/lib$name.$libext"; then
16968                 found_dir="$additional_libdir"
16969                 found_a="$additional_libdir/lib$name.$libext"
16970                 if test -f "$additional_libdir/lib$name.la"; then
16971                   found_la="$additional_libdir/lib$name.la"
16972                 fi
16973               fi
16974             fi
16975           fi
16976           if test "X$found_dir" = "X"; then
16977             for x in $LDFLAGS $LTLIBICONV; do
16978
16979   acl_save_prefix="$prefix"
16980   prefix="$acl_final_prefix"
16981   acl_save_exec_prefix="$exec_prefix"
16982   exec_prefix="$acl_final_exec_prefix"
16983   eval x=\"$x\"
16984   exec_prefix="$acl_save_exec_prefix"
16985   prefix="$acl_save_prefix"
16986
16987               case "$x" in
16988                 -L*)
16989                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16990                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16991                     found_dir="$dir"
16992                     found_so="$dir/lib$name.$shlibext"
16993                     if test -f "$dir/lib$name.la"; then
16994                       found_la="$dir/lib$name.la"
16995                     fi
16996                   else
16997                     if test -f "$dir/lib$name.$libext"; then
16998                       found_dir="$dir"
16999                       found_a="$dir/lib$name.$libext"
17000                       if test -f "$dir/lib$name.la"; then
17001                         found_la="$dir/lib$name.la"
17002                       fi
17003                     fi
17004                   fi
17005                   ;;
17006               esac
17007               if test "X$found_dir" != "X"; then
17008                 break
17009               fi
17010             done
17011           fi
17012           if test "X$found_dir" != "X"; then
17013                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17014             if test "X$found_so" != "X"; then
17015                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17016                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17017               else
17018                                                                                 haveit=
17019                 for x in $ltrpathdirs; do
17020                   if test "X$x" = "X$found_dir"; then
17021                     haveit=yes
17022                     break
17023                   fi
17024                 done
17025                 if test -z "$haveit"; then
17026                   ltrpathdirs="$ltrpathdirs $found_dir"
17027                 fi
17028                                 if test "$hardcode_direct" = yes; then
17029                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17030                 else
17031                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17032                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17033                                                             haveit=
17034                     for x in $rpathdirs; do
17035                       if test "X$x" = "X$found_dir"; then
17036                         haveit=yes
17037                         break
17038                       fi
17039                     done
17040                     if test -z "$haveit"; then
17041                       rpathdirs="$rpathdirs $found_dir"
17042                     fi
17043                   else
17044                                                                                 haveit=
17045                     for x in $LDFLAGS $LIBICONV; do
17046
17047   acl_save_prefix="$prefix"
17048   prefix="$acl_final_prefix"
17049   acl_save_exec_prefix="$exec_prefix"
17050   exec_prefix="$acl_final_exec_prefix"
17051   eval x=\"$x\"
17052   exec_prefix="$acl_save_exec_prefix"
17053   prefix="$acl_save_prefix"
17054
17055                       if test "X$x" = "X-L$found_dir"; then
17056                         haveit=yes
17057                         break
17058                       fi
17059                     done
17060                     if test -z "$haveit"; then
17061                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17062                     fi
17063                     if test "$hardcode_minus_L" != no; then
17064                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17065                     else
17066                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17067                     fi
17068                   fi
17069                 fi
17070               fi
17071             else
17072               if test "X$found_a" != "X"; then
17073                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17074               else
17075                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17076               fi
17077             fi
17078                         additional_includedir=
17079             case "$found_dir" in
17080               */lib | */lib/)
17081                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17082                 additional_includedir="$basedir/include"
17083                 ;;
17084             esac
17085             if test "X$additional_includedir" != "X"; then
17086                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17087                 haveit=
17088                 if test "X$additional_includedir" = "X/usr/local/include"; then
17089                   if test -n "$GCC"; then
17090                     case $host_os in
17091                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17092                     esac
17093                   fi
17094                 fi
17095                 if test -z "$haveit"; then
17096                   for x in $CPPFLAGS $INCICONV; do
17097
17098   acl_save_prefix="$prefix"
17099   prefix="$acl_final_prefix"
17100   acl_save_exec_prefix="$exec_prefix"
17101   exec_prefix="$acl_final_exec_prefix"
17102   eval x=\"$x\"
17103   exec_prefix="$acl_save_exec_prefix"
17104   prefix="$acl_save_prefix"
17105
17106                     if test "X$x" = "X-I$additional_includedir"; then
17107                       haveit=yes
17108                       break
17109                     fi
17110                   done
17111                   if test -z "$haveit"; then
17112                     if test -d "$additional_includedir"; then
17113                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17114                     fi
17115                   fi
17116                 fi
17117               fi
17118             fi
17119                         if test -n "$found_la"; then
17120                                                         save_libdir="$libdir"
17121               case "$found_la" in
17122                 */* | *\\*) . "$found_la" ;;
17123                 *) . "./$found_la" ;;
17124               esac
17125               libdir="$save_libdir"
17126                             for dep in $dependency_libs; do
17127                 case "$dep" in
17128                   -L*)
17129                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17130                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17131                       haveit=
17132                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17133                         if test -n "$GCC"; then
17134                           case $host_os in
17135                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17136                           esac
17137                         fi
17138                       fi
17139                       if test -z "$haveit"; then
17140                         haveit=
17141                         for x in $LDFLAGS $LIBICONV; do
17142
17143   acl_save_prefix="$prefix"
17144   prefix="$acl_final_prefix"
17145   acl_save_exec_prefix="$exec_prefix"
17146   exec_prefix="$acl_final_exec_prefix"
17147   eval x=\"$x\"
17148   exec_prefix="$acl_save_exec_prefix"
17149   prefix="$acl_save_prefix"
17150
17151                           if test "X$x" = "X-L$additional_libdir"; then
17152                             haveit=yes
17153                             break
17154                           fi
17155                         done
17156                         if test -z "$haveit"; then
17157                           if test -d "$additional_libdir"; then
17158                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17159                           fi
17160                         fi
17161                         haveit=
17162                         for x in $LDFLAGS $LTLIBICONV; do
17163
17164   acl_save_prefix="$prefix"
17165   prefix="$acl_final_prefix"
17166   acl_save_exec_prefix="$exec_prefix"
17167   exec_prefix="$acl_final_exec_prefix"
17168   eval x=\"$x\"
17169   exec_prefix="$acl_save_exec_prefix"
17170   prefix="$acl_save_prefix"
17171
17172                           if test "X$x" = "X-L$additional_libdir"; then
17173                             haveit=yes
17174                             break
17175                           fi
17176                         done
17177                         if test -z "$haveit"; then
17178                           if test -d "$additional_libdir"; then
17179                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17180                           fi
17181                         fi
17182                       fi
17183                     fi
17184                     ;;
17185                   -R*)
17186                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17187                     if test "$enable_rpath" != no; then
17188                                                                   haveit=
17189                       for x in $rpathdirs; do
17190                         if test "X$x" = "X$dir"; then
17191                           haveit=yes
17192                           break
17193                         fi
17194                       done
17195                       if test -z "$haveit"; then
17196                         rpathdirs="$rpathdirs $dir"
17197                       fi
17198                                                                   haveit=
17199                       for x in $ltrpathdirs; do
17200                         if test "X$x" = "X$dir"; then
17201                           haveit=yes
17202                           break
17203                         fi
17204                       done
17205                       if test -z "$haveit"; then
17206                         ltrpathdirs="$ltrpathdirs $dir"
17207                       fi
17208                     fi
17209                     ;;
17210                   -l*)
17211                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17212                     ;;
17213                   *.la)
17214                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17215                     ;;
17216                   *)
17217                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17218                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17219                     ;;
17220                 esac
17221               done
17222             fi
17223           else
17224                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17225             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17226           fi
17227         fi
17228       fi
17229     done
17230   done
17231   if test "X$rpathdirs" != "X"; then
17232     if test -n "$hardcode_libdir_separator"; then
17233                         alldirs=
17234       for found_dir in $rpathdirs; do
17235         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17236       done
17237             acl_save_libdir="$libdir"
17238       libdir="$alldirs"
17239       eval flag=\"$hardcode_libdir_flag_spec\"
17240       libdir="$acl_save_libdir"
17241       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17242     else
17243             for found_dir in $rpathdirs; do
17244         acl_save_libdir="$libdir"
17245         libdir="$found_dir"
17246         eval flag=\"$hardcode_libdir_flag_spec\"
17247         libdir="$acl_save_libdir"
17248         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17249       done
17250     fi
17251   fi
17252   if test "X$ltrpathdirs" != "X"; then
17253             for found_dir in $ltrpathdirs; do
17254       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17255     done
17256   fi
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17276 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17277 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17278   echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280   gt_save_CPPFLAGS="$CPPFLAGS"
17281      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17282      gt_save_LIBS="$LIBS"
17283      LIBS="$LIBS -framework CoreFoundation"
17284      cat >conftest.$ac_ext <<_ACEOF
17285 /* confdefs.h.  */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h.  */
17290 #include <CFPreferences.h>
17291 int
17292 main ()
17293 {
17294 CFPreferencesCopyAppValue(NULL, NULL)
17295   ;
17296   return 0;
17297 }
17298 _ACEOF
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (ac_try="$ac_link"
17301 case "(($ac_try" in
17302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303   *) ac_try_echo=$ac_try;;
17304 esac
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306   (eval "$ac_link") 2>conftest.er1
17307   ac_status=$?
17308   grep -v '^ *+' conftest.er1 >conftest.err
17309   rm -f conftest.er1
17310   cat conftest.err >&5
17311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312   (exit $ac_status); } && {
17313          test -z "$ac_c_werror_flag" ||
17314          test ! -s conftest.err
17315        } && test -s conftest$ac_exeext &&
17316        $as_test_x conftest$ac_exeext; then
17317   gt_cv_func_CFPreferencesCopyAppValue=yes
17318 else
17319   echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322         gt_cv_func_CFPreferencesCopyAppValue=no
17323 fi
17324
17325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17326       conftest$ac_exeext conftest.$ac_ext
17327      CPPFLAGS="$gt_save_CPPFLAGS"
17328      LIBS="$gt_save_LIBS"
17329 fi
17330 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17331 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17332   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17333
17334 cat >>confdefs.h <<\_ACEOF
17335 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17336 _ACEOF
17337
17338   fi
17339     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17340 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17341 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17342   echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344   gt_save_CPPFLAGS="$CPPFLAGS"
17345      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17346      gt_save_LIBS="$LIBS"
17347      LIBS="$LIBS -framework CoreFoundation"
17348      cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h.  */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h.  */
17354 #include <CFLocale.h>
17355 int
17356 main ()
17357 {
17358 CFLocaleCopyCurrent();
17359   ;
17360   return 0;
17361 }
17362 _ACEOF
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (ac_try="$ac_link"
17365 case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_link") 2>conftest.er1
17371   ac_status=$?
17372   grep -v '^ *+' conftest.er1 >conftest.err
17373   rm -f conftest.er1
17374   cat conftest.err >&5
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } && {
17377          test -z "$ac_c_werror_flag" ||
17378          test ! -s conftest.err
17379        } && test -s conftest$ac_exeext &&
17380        $as_test_x conftest$ac_exeext; then
17381   gt_cv_func_CFLocaleCopyCurrent=yes
17382 else
17383   echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17385
17386         gt_cv_func_CFLocaleCopyCurrent=no
17387 fi
17388
17389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17390       conftest$ac_exeext conftest.$ac_ext
17391      CPPFLAGS="$gt_save_CPPFLAGS"
17392      LIBS="$gt_save_LIBS"
17393 fi
17394 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17395 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17396   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17397
17398 cat >>confdefs.h <<\_ACEOF
17399 #define HAVE_CFLOCALECOPYCURRENT 1
17400 _ACEOF
17401
17402   fi
17403   INTL_MACOSX_LIBS=
17404   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17405     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17406   fi
17407
17408
17409
17410
17411   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17412 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17413     # Check whether --enable-nls was given.
17414 if test "${enable_nls+set}" = set; then
17415   enableval=$enable_nls; USE_NLS=$enableval
17416 else
17417   USE_NLS=yes
17418 fi
17419
17420   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17421 echo "${ECHO_T}$USE_NLS" >&6; }
17422
17423
17424
17425
17426   LIBINTL=
17427   LTLIBINTL=
17428   POSUB=
17429
17430     if test "$USE_NLS" = "yes"; then
17431     gt_use_preinstalled_gnugettext=no
17432
17433
17434
17435
17436
17437
17438         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17439 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17440 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443   cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h.  */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h.  */
17449 #include <libintl.h>
17450 extern int _nl_msg_cat_cntr;
17451 extern int *_nl_domain_bindings;
17452 int
17453 main ()
17454 {
17455 bindtextdomain ("", "");
17456 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17457   ;
17458   return 0;
17459 }
17460 _ACEOF
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (ac_try="$ac_link"
17463 case "(($ac_try" in
17464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465   *) ac_try_echo=$ac_try;;
17466 esac
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468   (eval "$ac_link") 2>conftest.er1
17469   ac_status=$?
17470   grep -v '^ *+' conftest.er1 >conftest.err
17471   rm -f conftest.er1
17472   cat conftest.err >&5
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); } && {
17475          test -z "$ac_c_werror_flag" ||
17476          test ! -s conftest.err
17477        } && test -s conftest$ac_exeext &&
17478        $as_test_x conftest$ac_exeext; then
17479   gt_cv_func_gnugettext1_libc=yes
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484         gt_cv_func_gnugettext1_libc=no
17485 fi
17486
17487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17488       conftest$ac_exeext conftest.$ac_ext
17489 fi
17490 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17491 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17492
17493         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17494
17495
17496
17497
17498
17499           am_save_CPPFLAGS="$CPPFLAGS"
17500
17501   for element in $INCICONV; do
17502     haveit=
17503     for x in $CPPFLAGS; do
17504
17505   acl_save_prefix="$prefix"
17506   prefix="$acl_final_prefix"
17507   acl_save_exec_prefix="$exec_prefix"
17508   exec_prefix="$acl_final_exec_prefix"
17509   eval x=\"$x\"
17510   exec_prefix="$acl_save_exec_prefix"
17511   prefix="$acl_save_prefix"
17512
17513       if test "X$x" = "X$element"; then
17514         haveit=yes
17515         break
17516       fi
17517     done
17518     if test -z "$haveit"; then
17519       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17520     fi
17521   done
17522
17523
17524   { echo "$as_me:$LINENO: checking for iconv" >&5
17525 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17526 if test "${am_cv_func_iconv+set}" = set; then
17527   echo $ECHO_N "(cached) $ECHO_C" >&6
17528 else
17529
17530     am_cv_func_iconv="no, consider installing GNU libiconv"
17531     am_cv_lib_iconv=no
17532     cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h.  */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h.  */
17538 #include <stdlib.h>
17539 #include <iconv.h>
17540 int
17541 main ()
17542 {
17543 iconv_t cd = iconv_open("","");
17544        iconv(cd,NULL,NULL,NULL,NULL);
17545        iconv_close(cd);
17546   ;
17547   return 0;
17548 }
17549 _ACEOF
17550 rm -f conftest.$ac_objext conftest$ac_exeext
17551 if { (ac_try="$ac_link"
17552 case "(($ac_try" in
17553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554   *) ac_try_echo=$ac_try;;
17555 esac
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557   (eval "$ac_link") 2>conftest.er1
17558   ac_status=$?
17559   grep -v '^ *+' conftest.er1 >conftest.err
17560   rm -f conftest.er1
17561   cat conftest.err >&5
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); } && {
17564          test -z "$ac_c_werror_flag" ||
17565          test ! -s conftest.err
17566        } && test -s conftest$ac_exeext &&
17567        $as_test_x conftest$ac_exeext; then
17568   am_cv_func_iconv=yes
17569 else
17570   echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17572
17573
17574 fi
17575
17576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17577       conftest$ac_exeext conftest.$ac_ext
17578     if test "$am_cv_func_iconv" != yes; then
17579       am_save_LIBS="$LIBS"
17580       LIBS="$LIBS $LIBICONV"
17581       cat >conftest.$ac_ext <<_ACEOF
17582 /* confdefs.h.  */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h.  */
17587 #include <stdlib.h>
17588 #include <iconv.h>
17589 int
17590 main ()
17591 {
17592 iconv_t cd = iconv_open("","");
17593          iconv(cd,NULL,NULL,NULL,NULL);
17594          iconv_close(cd);
17595   ;
17596   return 0;
17597 }
17598 _ACEOF
17599 rm -f conftest.$ac_objext conftest$ac_exeext
17600 if { (ac_try="$ac_link"
17601 case "(($ac_try" in
17602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603   *) ac_try_echo=$ac_try;;
17604 esac
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606   (eval "$ac_link") 2>conftest.er1
17607   ac_status=$?
17608   grep -v '^ *+' conftest.er1 >conftest.err
17609   rm -f conftest.er1
17610   cat conftest.err >&5
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); } && {
17613          test -z "$ac_c_werror_flag" ||
17614          test ! -s conftest.err
17615        } && test -s conftest$ac_exeext &&
17616        $as_test_x conftest$ac_exeext; then
17617   am_cv_lib_iconv=yes
17618         am_cv_func_iconv=yes
17619 else
17620   echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17622
17623
17624 fi
17625
17626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17627       conftest$ac_exeext conftest.$ac_ext
17628       LIBS="$am_save_LIBS"
17629     fi
17630
17631 fi
17632 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17633 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17634   if test "$am_cv_func_iconv" = yes; then
17635
17636 cat >>confdefs.h <<\_ACEOF
17637 #define HAVE_ICONV 1
17638 _ACEOF
17639
17640   fi
17641   if test "$am_cv_lib_iconv" = yes; then
17642     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17643 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17644     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17645 echo "${ECHO_T}$LIBICONV" >&6; }
17646   else
17647             CPPFLAGS="$am_save_CPPFLAGS"
17648     LIBICONV=
17649     LTLIBICONV=
17650   fi
17651
17652
17653
17654
17655
17656
17657     use_additional=yes
17658
17659   acl_save_prefix="$prefix"
17660   prefix="$acl_final_prefix"
17661   acl_save_exec_prefix="$exec_prefix"
17662   exec_prefix="$acl_final_exec_prefix"
17663
17664     eval additional_includedir=\"$includedir\"
17665     eval additional_libdir=\"$libdir\"
17666
17667   exec_prefix="$acl_save_exec_prefix"
17668   prefix="$acl_save_prefix"
17669
17670
17671 # Check whether --with-libintl-prefix was given.
17672 if test "${with_libintl_prefix+set}" = set; then
17673   withval=$with_libintl_prefix;
17674     if test "X$withval" = "Xno"; then
17675       use_additional=no
17676     else
17677       if test "X$withval" = "X"; then
17678
17679   acl_save_prefix="$prefix"
17680   prefix="$acl_final_prefix"
17681   acl_save_exec_prefix="$exec_prefix"
17682   exec_prefix="$acl_final_exec_prefix"
17683
17684           eval additional_includedir=\"$includedir\"
17685           eval additional_libdir=\"$libdir\"
17686
17687   exec_prefix="$acl_save_exec_prefix"
17688   prefix="$acl_save_prefix"
17689
17690       else
17691         additional_includedir="$withval/include"
17692         additional_libdir="$withval/lib"
17693       fi
17694     fi
17695
17696 fi
17697
17698       LIBINTL=
17699   LTLIBINTL=
17700   INCINTL=
17701   rpathdirs=
17702   ltrpathdirs=
17703   names_already_handled=
17704   names_next_round='intl '
17705   while test -n "$names_next_round"; do
17706     names_this_round="$names_next_round"
17707     names_next_round=
17708     for name in $names_this_round; do
17709       already_handled=
17710       for n in $names_already_handled; do
17711         if test "$n" = "$name"; then
17712           already_handled=yes
17713           break
17714         fi
17715       done
17716       if test -z "$already_handled"; then
17717         names_already_handled="$names_already_handled $name"
17718                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17719         eval value=\"\$HAVE_LIB$uppername\"
17720         if test -n "$value"; then
17721           if test "$value" = yes; then
17722             eval value=\"\$LIB$uppername\"
17723             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17724             eval value=\"\$LTLIB$uppername\"
17725             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17726           else
17727                                     :
17728           fi
17729         else
17730                               found_dir=
17731           found_la=
17732           found_so=
17733           found_a=
17734           if test $use_additional = yes; then
17735             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17736               found_dir="$additional_libdir"
17737               found_so="$additional_libdir/lib$name.$shlibext"
17738               if test -f "$additional_libdir/lib$name.la"; then
17739                 found_la="$additional_libdir/lib$name.la"
17740               fi
17741             else
17742               if test -f "$additional_libdir/lib$name.$libext"; then
17743                 found_dir="$additional_libdir"
17744                 found_a="$additional_libdir/lib$name.$libext"
17745                 if test -f "$additional_libdir/lib$name.la"; then
17746                   found_la="$additional_libdir/lib$name.la"
17747                 fi
17748               fi
17749             fi
17750           fi
17751           if test "X$found_dir" = "X"; then
17752             for x in $LDFLAGS $LTLIBINTL; do
17753
17754   acl_save_prefix="$prefix"
17755   prefix="$acl_final_prefix"
17756   acl_save_exec_prefix="$exec_prefix"
17757   exec_prefix="$acl_final_exec_prefix"
17758   eval x=\"$x\"
17759   exec_prefix="$acl_save_exec_prefix"
17760   prefix="$acl_save_prefix"
17761
17762               case "$x" in
17763                 -L*)
17764                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17765                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17766                     found_dir="$dir"
17767                     found_so="$dir/lib$name.$shlibext"
17768                     if test -f "$dir/lib$name.la"; then
17769                       found_la="$dir/lib$name.la"
17770                     fi
17771                   else
17772                     if test -f "$dir/lib$name.$libext"; then
17773                       found_dir="$dir"
17774                       found_a="$dir/lib$name.$libext"
17775                       if test -f "$dir/lib$name.la"; then
17776                         found_la="$dir/lib$name.la"
17777                       fi
17778                     fi
17779                   fi
17780                   ;;
17781               esac
17782               if test "X$found_dir" != "X"; then
17783                 break
17784               fi
17785             done
17786           fi
17787           if test "X$found_dir" != "X"; then
17788                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17789             if test "X$found_so" != "X"; then
17790                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17791                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17792               else
17793                                                                                 haveit=
17794                 for x in $ltrpathdirs; do
17795                   if test "X$x" = "X$found_dir"; then
17796                     haveit=yes
17797                     break
17798                   fi
17799                 done
17800                 if test -z "$haveit"; then
17801                   ltrpathdirs="$ltrpathdirs $found_dir"
17802                 fi
17803                                 if test "$hardcode_direct" = yes; then
17804                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17805                 else
17806                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17807                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17808                                                             haveit=
17809                     for x in $rpathdirs; do
17810                       if test "X$x" = "X$found_dir"; then
17811                         haveit=yes
17812                         break
17813                       fi
17814                     done
17815                     if test -z "$haveit"; then
17816                       rpathdirs="$rpathdirs $found_dir"
17817                     fi
17818                   else
17819                                                                                 haveit=
17820                     for x in $LDFLAGS $LIBINTL; do
17821
17822   acl_save_prefix="$prefix"
17823   prefix="$acl_final_prefix"
17824   acl_save_exec_prefix="$exec_prefix"
17825   exec_prefix="$acl_final_exec_prefix"
17826   eval x=\"$x\"
17827   exec_prefix="$acl_save_exec_prefix"
17828   prefix="$acl_save_prefix"
17829
17830                       if test "X$x" = "X-L$found_dir"; then
17831                         haveit=yes
17832                         break
17833                       fi
17834                     done
17835                     if test -z "$haveit"; then
17836                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17837                     fi
17838                     if test "$hardcode_minus_L" != no; then
17839                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17840                     else
17841                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17842                     fi
17843                   fi
17844                 fi
17845               fi
17846             else
17847               if test "X$found_a" != "X"; then
17848                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17849               else
17850                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17851               fi
17852             fi
17853                         additional_includedir=
17854             case "$found_dir" in
17855               */lib | */lib/)
17856                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17857                 additional_includedir="$basedir/include"
17858                 ;;
17859             esac
17860             if test "X$additional_includedir" != "X"; then
17861                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17862                 haveit=
17863                 if test "X$additional_includedir" = "X/usr/local/include"; then
17864                   if test -n "$GCC"; then
17865                     case $host_os in
17866                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17867                     esac
17868                   fi
17869                 fi
17870                 if test -z "$haveit"; then
17871                   for x in $CPPFLAGS $INCINTL; do
17872
17873   acl_save_prefix="$prefix"
17874   prefix="$acl_final_prefix"
17875   acl_save_exec_prefix="$exec_prefix"
17876   exec_prefix="$acl_final_exec_prefix"
17877   eval x=\"$x\"
17878   exec_prefix="$acl_save_exec_prefix"
17879   prefix="$acl_save_prefix"
17880
17881                     if test "X$x" = "X-I$additional_includedir"; then
17882                       haveit=yes
17883                       break
17884                     fi
17885                   done
17886                   if test -z "$haveit"; then
17887                     if test -d "$additional_includedir"; then
17888                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17889                     fi
17890                   fi
17891                 fi
17892               fi
17893             fi
17894                         if test -n "$found_la"; then
17895                                                         save_libdir="$libdir"
17896               case "$found_la" in
17897                 */* | *\\*) . "$found_la" ;;
17898                 *) . "./$found_la" ;;
17899               esac
17900               libdir="$save_libdir"
17901                             for dep in $dependency_libs; do
17902                 case "$dep" in
17903                   -L*)
17904                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17905                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17906                       haveit=
17907                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17908                         if test -n "$GCC"; then
17909                           case $host_os in
17910                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17911                           esac
17912                         fi
17913                       fi
17914                       if test -z "$haveit"; then
17915                         haveit=
17916                         for x in $LDFLAGS $LIBINTL; do
17917
17918   acl_save_prefix="$prefix"
17919   prefix="$acl_final_prefix"
17920   acl_save_exec_prefix="$exec_prefix"
17921   exec_prefix="$acl_final_exec_prefix"
17922   eval x=\"$x\"
17923   exec_prefix="$acl_save_exec_prefix"
17924   prefix="$acl_save_prefix"
17925
17926                           if test "X$x" = "X-L$additional_libdir"; then
17927                             haveit=yes
17928                             break
17929                           fi
17930                         done
17931                         if test -z "$haveit"; then
17932                           if test -d "$additional_libdir"; then
17933                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17934                           fi
17935                         fi
17936                         haveit=
17937                         for x in $LDFLAGS $LTLIBINTL; do
17938
17939   acl_save_prefix="$prefix"
17940   prefix="$acl_final_prefix"
17941   acl_save_exec_prefix="$exec_prefix"
17942   exec_prefix="$acl_final_exec_prefix"
17943   eval x=\"$x\"
17944   exec_prefix="$acl_save_exec_prefix"
17945   prefix="$acl_save_prefix"
17946
17947                           if test "X$x" = "X-L$additional_libdir"; then
17948                             haveit=yes
17949                             break
17950                           fi
17951                         done
17952                         if test -z "$haveit"; then
17953                           if test -d "$additional_libdir"; then
17954                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17955                           fi
17956                         fi
17957                       fi
17958                     fi
17959                     ;;
17960                   -R*)
17961                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17962                     if test "$enable_rpath" != no; then
17963                                                                   haveit=
17964                       for x in $rpathdirs; do
17965                         if test "X$x" = "X$dir"; then
17966                           haveit=yes
17967                           break
17968                         fi
17969                       done
17970                       if test -z "$haveit"; then
17971                         rpathdirs="$rpathdirs $dir"
17972                       fi
17973                                                                   haveit=
17974                       for x in $ltrpathdirs; do
17975                         if test "X$x" = "X$dir"; then
17976                           haveit=yes
17977                           break
17978                         fi
17979                       done
17980                       if test -z "$haveit"; then
17981                         ltrpathdirs="$ltrpathdirs $dir"
17982                       fi
17983                     fi
17984                     ;;
17985                   -l*)
17986                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17987                     ;;
17988                   *.la)
17989                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17990                     ;;
17991                   *)
17992                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17993                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17994                     ;;
17995                 esac
17996               done
17997             fi
17998           else
17999                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18000             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18001           fi
18002         fi
18003       fi
18004     done
18005   done
18006   if test "X$rpathdirs" != "X"; then
18007     if test -n "$hardcode_libdir_separator"; then
18008                         alldirs=
18009       for found_dir in $rpathdirs; do
18010         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18011       done
18012             acl_save_libdir="$libdir"
18013       libdir="$alldirs"
18014       eval flag=\"$hardcode_libdir_flag_spec\"
18015       libdir="$acl_save_libdir"
18016       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18017     else
18018             for found_dir in $rpathdirs; do
18019         acl_save_libdir="$libdir"
18020         libdir="$found_dir"
18021         eval flag=\"$hardcode_libdir_flag_spec\"
18022         libdir="$acl_save_libdir"
18023         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18024       done
18025     fi
18026   fi
18027   if test "X$ltrpathdirs" != "X"; then
18028             for found_dir in $ltrpathdirs; do
18029       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18030     done
18031   fi
18032
18033           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18034 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18035 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18036   echo $ECHO_N "(cached) $ECHO_C" >&6
18037 else
18038   gt_save_CPPFLAGS="$CPPFLAGS"
18039             CPPFLAGS="$CPPFLAGS $INCINTL"
18040             gt_save_LIBS="$LIBS"
18041             LIBS="$LIBS $LIBINTL"
18042                         cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h.  */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h.  */
18048 #include <libintl.h>
18049 extern int _nl_msg_cat_cntr;
18050 extern
18051 #ifdef __cplusplus
18052 "C"
18053 #endif
18054 const char *_nl_expand_alias (const char *);
18055 int
18056 main ()
18057 {
18058 bindtextdomain ("", "");
18059 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18060   ;
18061   return 0;
18062 }
18063 _ACEOF
18064 rm -f conftest.$ac_objext conftest$ac_exeext
18065 if { (ac_try="$ac_link"
18066 case "(($ac_try" in
18067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068   *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071   (eval "$ac_link") 2>conftest.er1
18072   ac_status=$?
18073   grep -v '^ *+' conftest.er1 >conftest.err
18074   rm -f conftest.er1
18075   cat conftest.err >&5
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); } && {
18078          test -z "$ac_c_werror_flag" ||
18079          test ! -s conftest.err
18080        } && test -s conftest$ac_exeext &&
18081        $as_test_x conftest$ac_exeext; then
18082   gt_cv_func_gnugettext1_libintl=yes
18083 else
18084   echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18086
18087         gt_cv_func_gnugettext1_libintl=no
18088 fi
18089
18090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18091       conftest$ac_exeext conftest.$ac_ext
18092                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18093               LIBS="$LIBS $LIBICONV"
18094               cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h.  */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h.  */
18100 #include <libintl.h>
18101 extern int _nl_msg_cat_cntr;
18102 extern
18103 #ifdef __cplusplus
18104 "C"
18105 #endif
18106 const char *_nl_expand_alias (const char *);
18107 int
18108 main ()
18109 {
18110 bindtextdomain ("", "");
18111 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18112   ;
18113   return 0;
18114 }
18115 _ACEOF
18116 rm -f conftest.$ac_objext conftest$ac_exeext
18117 if { (ac_try="$ac_link"
18118 case "(($ac_try" in
18119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120   *) ac_try_echo=$ac_try;;
18121 esac
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123   (eval "$ac_link") 2>conftest.er1
18124   ac_status=$?
18125   grep -v '^ *+' conftest.er1 >conftest.err
18126   rm -f conftest.er1
18127   cat conftest.err >&5
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); } && {
18130          test -z "$ac_c_werror_flag" ||
18131          test ! -s conftest.err
18132        } && test -s conftest$ac_exeext &&
18133        $as_test_x conftest$ac_exeext; then
18134   LIBINTL="$LIBINTL $LIBICONV"
18135                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18136                 gt_cv_func_gnugettext1_libintl=yes
18137
18138 else
18139   echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142
18143 fi
18144
18145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18146       conftest$ac_exeext conftest.$ac_ext
18147             fi
18148             CPPFLAGS="$gt_save_CPPFLAGS"
18149             LIBS="$gt_save_LIBS"
18150 fi
18151 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18152 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18153         fi
18154
18155                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18156            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18157                 && test "$PACKAGE" != gettext-runtime \
18158                 && test "$PACKAGE" != gettext-tools; }; then
18159           gt_use_preinstalled_gnugettext=yes
18160         else
18161                     LIBINTL=
18162           LTLIBINTL=
18163           INCINTL=
18164         fi
18165
18166
18167
18168     if test -n "$INTL_MACOSX_LIBS"; then
18169       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18170          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18171                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18172         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18173       fi
18174     fi
18175
18176     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18177        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18178
18179 cat >>confdefs.h <<\_ACEOF
18180 #define ENABLE_NLS 1
18181 _ACEOF
18182
18183     else
18184       USE_NLS=no
18185     fi
18186   fi
18187
18188   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18189 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18190   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18191 echo "${ECHO_T}$USE_NLS" >&6; }
18192   if test "$USE_NLS" = "yes"; then
18193     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18194 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18195     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18196       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18197         gt_source="external libintl"
18198       else
18199         gt_source="libc"
18200       fi
18201     else
18202       gt_source="included intl directory"
18203     fi
18204     { echo "$as_me:$LINENO: result: $gt_source" >&5
18205 echo "${ECHO_T}$gt_source" >&6; }
18206   fi
18207
18208   if test "$USE_NLS" = "yes"; then
18209
18210     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18211       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18212         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18213 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18214         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18215 echo "${ECHO_T}$LIBINTL" >&6; }
18216
18217   for element in $INCINTL; do
18218     haveit=
18219     for x in $CPPFLAGS; do
18220
18221   acl_save_prefix="$prefix"
18222   prefix="$acl_final_prefix"
18223   acl_save_exec_prefix="$exec_prefix"
18224   exec_prefix="$acl_final_exec_prefix"
18225   eval x=\"$x\"
18226   exec_prefix="$acl_save_exec_prefix"
18227   prefix="$acl_save_prefix"
18228
18229       if test "X$x" = "X$element"; then
18230         haveit=yes
18231         break
18232       fi
18233     done
18234     if test -z "$haveit"; then
18235       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18236     fi
18237   done
18238
18239       fi
18240
18241
18242 cat >>confdefs.h <<\_ACEOF
18243 #define HAVE_GETTEXT 1
18244 _ACEOF
18245
18246
18247 cat >>confdefs.h <<\_ACEOF
18248 #define HAVE_DCGETTEXT 1
18249 _ACEOF
18250
18251     fi
18252
18253         POSUB=po
18254   fi
18255
18256
18257
18258     INTLLIBS="$LIBINTL"
18259
18260
18261
18262
18263
18264
18265 if test x${prefix} = xNONE ; then
18266    if test `eval echo ${datarootdir}` = NONE/share ; then
18267       datarootdir=/usr/share
18268    fi
18269 fi
18270
18271 if test x${prefix} = xNONE ; then
18272    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18273       sysconfdir=/etc/bacula
18274    fi
18275
18276    if test `eval echo ${libdir}` = NONE/lib ; then
18277       #
18278       # Some platforms have other defaults (for 64 bits libs)
18279       #
18280       case `uname -s` in
18281          Linux)
18282             case `uname -m` in
18283                x86_64)
18284                   libdir=/usr/lib64
18285                   ;;
18286                *)
18287                   libdir=/usr/lib
18288                   ;;
18289             esac
18290             ;;
18291          *)
18292             libdir=/usr/lib
18293             ;;
18294       esac
18295    fi
18296
18297    if test `eval echo ${includedir}` = NONE/include ; then
18298       includedir=/usr/include
18299    fi
18300
18301    prefix=
18302 fi
18303
18304 if test x${exec_prefix} = xNONE ; then
18305    exec_prefix=${prefix}
18306 fi
18307
18308 sysconfdir=`eval echo ${sysconfdir}`
18309 datarootdir=`eval echo ${datarootdir}`
18310 libdir=`eval echo ${libdir}`
18311 includedir=`eval echo ${includedir}`
18312 localedir=`eval echo ${datarootdir}/locale`
18313 cat >>confdefs.h <<_ACEOF
18314 #define SYSCONFDIR "$sysconfdir"
18315 _ACEOF
18316
18317 cat >>confdefs.h <<_ACEOF
18318 #define LOCALEDIR "$localedir"
18319 _ACEOF
18320
18321
18322 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18323    sbindir=${exec_prefix}/sbin
18324 fi
18325 sbindir=`eval echo ${sbindir}`
18326
18327 if test x$mandir = x'${prefix}/man' ; then
18328    mandir=/usr/share/man
18329 fi
18330
18331 for ac_prog in msgfmt
18332 do
18333   # Extract the first word of "$ac_prog", so it can be a program name with args.
18334 set dummy $ac_prog; ac_word=$2
18335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18337 if test "${ac_cv_path_MSGFMT+set}" = set; then
18338   echo $ECHO_N "(cached) $ECHO_C" >&6
18339 else
18340   case $MSGFMT in
18341   [\\/]* | ?:[\\/]*)
18342   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18343   ;;
18344   *)
18345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18346 for as_dir in $PATH
18347 do
18348   IFS=$as_save_IFS
18349   test -z "$as_dir" && as_dir=.
18350   for ac_exec_ext in '' $ac_executable_extensions; do
18351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18352     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18354     break 2
18355   fi
18356 done
18357 done
18358 IFS=$as_save_IFS
18359
18360   ;;
18361 esac
18362 fi
18363 MSGFMT=$ac_cv_path_MSGFMT
18364 if test -n "$MSGFMT"; then
18365   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18366 echo "${ECHO_T}$MSGFMT" >&6; }
18367 else
18368   { echo "$as_me:$LINENO: result: no" >&5
18369 echo "${ECHO_T}no" >&6; }
18370 fi
18371
18372
18373   test -n "$MSGFMT" && break
18374 done
18375 test -n "$MSGFMT" || MSGFMT="no"
18376
18377 if test "$MSGFMT" = "no"
18378 then
18379    echo 'msgfmt program not found, disabling NLS !'
18380    USE_NLS=no
18381    USE_INCLUDED_LIBINTL=no
18382 #else
18383
18384     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18385 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18386 if test "${ac_cv_gnu_library_2+set}" = set; then
18387   echo $ECHO_N "(cached) $ECHO_C" >&6
18388 else
18389   cat >conftest.$ac_ext <<_ACEOF
18390 /* confdefs.h.  */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h.  */
18395
18396 #include <features.h>
18397 #ifdef __GNU_LIBRARY__
18398  #if (__GLIBC__ >= 2)
18399   Lucky GNU user
18400  #endif
18401 #endif
18402
18403 _ACEOF
18404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18405   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18406   ac_cv_gnu_library_2=yes
18407 else
18408   ac_cv_gnu_library_2=no
18409 fi
18410 rm -f conftest*
18411
18412
18413
18414 fi
18415 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18416 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18417
18418     GLIBC2="$ac_cv_gnu_library_2"
18419
18420
18421 if test -n "$ac_tool_prefix"; then
18422   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18426 if test "${ac_cv_prog_RANLIB+set}" = set; then
18427   echo $ECHO_N "(cached) $ECHO_C" >&6
18428 else
18429   if test -n "$RANLIB"; then
18430   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18431 else
18432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18433 for as_dir in $PATH
18434 do
18435   IFS=$as_save_IFS
18436   test -z "$as_dir" && as_dir=.
18437   for ac_exec_ext in '' $ac_executable_extensions; do
18438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18439     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18441     break 2
18442   fi
18443 done
18444 done
18445 IFS=$as_save_IFS
18446
18447 fi
18448 fi
18449 RANLIB=$ac_cv_prog_RANLIB
18450 if test -n "$RANLIB"; then
18451   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18452 echo "${ECHO_T}$RANLIB" >&6; }
18453 else
18454   { echo "$as_me:$LINENO: result: no" >&5
18455 echo "${ECHO_T}no" >&6; }
18456 fi
18457
18458
18459 fi
18460 if test -z "$ac_cv_prog_RANLIB"; then
18461   ac_ct_RANLIB=$RANLIB
18462   # Extract the first word of "ranlib", so it can be a program name with args.
18463 set dummy ranlib; ac_word=$2
18464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18466 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18467   echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469   if test -n "$ac_ct_RANLIB"; then
18470   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18471 else
18472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18473 for as_dir in $PATH
18474 do
18475   IFS=$as_save_IFS
18476   test -z "$as_dir" && as_dir=.
18477   for ac_exec_ext in '' $ac_executable_extensions; do
18478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18479     ac_cv_prog_ac_ct_RANLIB="ranlib"
18480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18481     break 2
18482   fi
18483 done
18484 done
18485 IFS=$as_save_IFS
18486
18487 fi
18488 fi
18489 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18490 if test -n "$ac_ct_RANLIB"; then
18491   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18492 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18493 else
18494   { echo "$as_me:$LINENO: result: no" >&5
18495 echo "${ECHO_T}no" >&6; }
18496 fi
18497
18498   if test "x$ac_ct_RANLIB" = x; then
18499     RANLIB=":"
18500   else
18501     case $cross_compiling:$ac_tool_warned in
18502 yes:)
18503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18504 whose name does not start with the host triplet.  If you think this
18505 configuration is useful to you, please write to autoconf@gnu.org." >&5
18506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18507 whose name does not start with the host triplet.  If you think this
18508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18509 ac_tool_warned=yes ;;
18510 esac
18511     RANLIB=$ac_ct_RANLIB
18512   fi
18513 else
18514   RANLIB="$ac_cv_prog_RANLIB"
18515 fi
18516
18517
18518         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18519 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18520 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18521   echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523   ac_check_lib_save_LIBS=$LIBS
18524 LIBS="-lcposix  $LIBS"
18525 cat >conftest.$ac_ext <<_ACEOF
18526 /* confdefs.h.  */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h.  */
18531
18532 /* Override any GCC internal prototype to avoid an error.
18533    Use char because int might match the return type of a GCC
18534    builtin and then its argument prototype would still apply.  */
18535 #ifdef __cplusplus
18536 extern "C"
18537 #endif
18538 char strerror ();
18539 int
18540 main ()
18541 {
18542 return strerror ();
18543   ;
18544   return 0;
18545 }
18546 _ACEOF
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (ac_try="$ac_link"
18549 case "(($ac_try" in
18550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551   *) ac_try_echo=$ac_try;;
18552 esac
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554   (eval "$ac_link") 2>conftest.er1
18555   ac_status=$?
18556   grep -v '^ *+' conftest.er1 >conftest.err
18557   rm -f conftest.er1
18558   cat conftest.err >&5
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); } && {
18561          test -z "$ac_c_werror_flag" ||
18562          test ! -s conftest.err
18563        } && test -s conftest$ac_exeext &&
18564        $as_test_x conftest$ac_exeext; then
18565   ac_cv_lib_cposix_strerror=yes
18566 else
18567   echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18569
18570         ac_cv_lib_cposix_strerror=no
18571 fi
18572
18573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18574       conftest$ac_exeext conftest.$ac_ext
18575 LIBS=$ac_check_lib_save_LIBS
18576 fi
18577 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18578 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18579 if test $ac_cv_lib_cposix_strerror = yes; then
18580   LIBS="$LIBS -lcposix"
18581 fi
18582
18583
18584
18585 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18586 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18587 if test "${ac_cv_c_const+set}" = set; then
18588   echo $ECHO_N "(cached) $ECHO_C" >&6
18589 else
18590   cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h.  */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h.  */
18596
18597 int
18598 main ()
18599 {
18600 /* FIXME: Include the comments suggested by Paul. */
18601 #ifndef __cplusplus
18602   /* Ultrix mips cc rejects this.  */
18603   typedef int charset[2];
18604   const charset cs;
18605   /* SunOS 4.1.1 cc rejects this.  */
18606   char const *const *pcpcc;
18607   char **ppc;
18608   /* NEC SVR4.0.2 mips cc rejects this.  */
18609   struct point {int x, y;};
18610   static struct point const zero = {0,0};
18611   /* AIX XL C 1.02.0.0 rejects this.
18612      It does not let you subtract one const X* pointer from another in
18613      an arm of an if-expression whose if-part is not a constant
18614      expression */
18615   const char *g = "string";
18616   pcpcc = &g + (g ? g-g : 0);
18617   /* HPUX 7.0 cc rejects these. */
18618   ++pcpcc;
18619   ppc = (char**) pcpcc;
18620   pcpcc = (char const *const *) ppc;
18621   { /* SCO 3.2v4 cc rejects this.  */
18622     char *t;
18623     char const *s = 0 ? (char *) 0 : (char const *) 0;
18624
18625     *t++ = 0;
18626     if (s) return 0;
18627   }
18628   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18629     int x[] = {25, 17};
18630     const int *foo = &x[0];
18631     ++foo;
18632   }
18633   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18634     typedef const int *iptr;
18635     iptr p = 0;
18636     ++p;
18637   }
18638   { /* AIX XL C 1.02.0.0 rejects this saying
18639        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18640     struct s { int j; const int *ap[3]; };
18641     struct s *b; b->j = 5;
18642   }
18643   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18644     const int foo = 10;
18645     if (!foo) return 0;
18646   }
18647   return !cs[0] && !zero.x;
18648 #endif
18649
18650   ;
18651   return 0;
18652 }
18653 _ACEOF
18654 rm -f conftest.$ac_objext
18655 if { (ac_try="$ac_compile"
18656 case "(($ac_try" in
18657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658   *) ac_try_echo=$ac_try;;
18659 esac
18660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661   (eval "$ac_compile") 2>conftest.er1
18662   ac_status=$?
18663   grep -v '^ *+' conftest.er1 >conftest.err
18664   rm -f conftest.er1
18665   cat conftest.err >&5
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); } && {
18668          test -z "$ac_c_werror_flag" ||
18669          test ! -s conftest.err
18670        } && test -s conftest.$ac_objext; then
18671   ac_cv_c_const=yes
18672 else
18673   echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676         ac_cv_c_const=no
18677 fi
18678
18679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18680 fi
18681 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18682 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18683 if test $ac_cv_c_const = no; then
18684
18685 cat >>confdefs.h <<\_ACEOF
18686 #define const
18687 _ACEOF
18688
18689 fi
18690
18691
18692   { echo "$as_me:$LINENO: checking for signed" >&5
18693 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18694 if test "${bh_cv_c_signed+set}" = set; then
18695   echo $ECHO_N "(cached) $ECHO_C" >&6
18696 else
18697   cat >conftest.$ac_ext <<_ACEOF
18698 /* confdefs.h.  */
18699 _ACEOF
18700 cat confdefs.h >>conftest.$ac_ext
18701 cat >>conftest.$ac_ext <<_ACEOF
18702 /* end confdefs.h.  */
18703
18704 int
18705 main ()
18706 {
18707 signed char x;
18708   ;
18709   return 0;
18710 }
18711 _ACEOF
18712 rm -f conftest.$ac_objext
18713 if { (ac_try="$ac_compile"
18714 case "(($ac_try" in
18715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716   *) ac_try_echo=$ac_try;;
18717 esac
18718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719   (eval "$ac_compile") 2>conftest.er1
18720   ac_status=$?
18721   grep -v '^ *+' conftest.er1 >conftest.err
18722   rm -f conftest.er1
18723   cat conftest.err >&5
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); } && {
18726          test -z "$ac_c_werror_flag" ||
18727          test ! -s conftest.err
18728        } && test -s conftest.$ac_objext; then
18729   bh_cv_c_signed=yes
18730 else
18731   echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734         bh_cv_c_signed=no
18735 fi
18736
18737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18738 fi
18739 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18740 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18741   if test $bh_cv_c_signed = no; then
18742
18743 cat >>confdefs.h <<\_ACEOF
18744 #define signed
18745 _ACEOF
18746
18747   fi
18748
18749 { echo "$as_me:$LINENO: checking for inline" >&5
18750 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18751 if test "${ac_cv_c_inline+set}" = set; then
18752   echo $ECHO_N "(cached) $ECHO_C" >&6
18753 else
18754   ac_cv_c_inline=no
18755 for ac_kw in inline __inline__ __inline; do
18756   cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h.  */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h.  */
18762 #ifndef __cplusplus
18763 typedef int foo_t;
18764 static $ac_kw foo_t static_foo () {return 0; }
18765 $ac_kw foo_t foo () {return 0; }
18766 #endif
18767
18768 _ACEOF
18769 rm -f conftest.$ac_objext
18770 if { (ac_try="$ac_compile"
18771 case "(($ac_try" in
18772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773   *) ac_try_echo=$ac_try;;
18774 esac
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776   (eval "$ac_compile") 2>conftest.er1
18777   ac_status=$?
18778   grep -v '^ *+' conftest.er1 >conftest.err
18779   rm -f conftest.er1
18780   cat conftest.err >&5
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); } && {
18783          test -z "$ac_c_werror_flag" ||
18784          test ! -s conftest.err
18785        } && test -s conftest.$ac_objext; then
18786   ac_cv_c_inline=$ac_kw
18787 else
18788   echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18790
18791
18792 fi
18793
18794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18795   test "$ac_cv_c_inline" != no && break
18796 done
18797
18798 fi
18799 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18800 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18801
18802
18803 case $ac_cv_c_inline in
18804   inline | yes) ;;
18805   *)
18806     case $ac_cv_c_inline in
18807       no) ac_val=;;
18808       *) ac_val=$ac_cv_c_inline;;
18809     esac
18810     cat >>confdefs.h <<_ACEOF
18811 #ifndef __cplusplus
18812 #define inline $ac_val
18813 #endif
18814 _ACEOF
18815     ;;
18816 esac
18817
18818 { echo "$as_me:$LINENO: checking for off_t" >&5
18819 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18820 if test "${ac_cv_type_off_t+set}" = set; then
18821   echo $ECHO_N "(cached) $ECHO_C" >&6
18822 else
18823   cat >conftest.$ac_ext <<_ACEOF
18824 /* confdefs.h.  */
18825 _ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h.  */
18829 $ac_includes_default
18830 typedef off_t ac__type_new_;
18831 int
18832 main ()
18833 {
18834 if ((ac__type_new_ *) 0)
18835   return 0;
18836 if (sizeof (ac__type_new_))
18837   return 0;
18838   ;
18839   return 0;
18840 }
18841 _ACEOF
18842 rm -f conftest.$ac_objext
18843 if { (ac_try="$ac_compile"
18844 case "(($ac_try" in
18845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846   *) ac_try_echo=$ac_try;;
18847 esac
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849   (eval "$ac_compile") 2>conftest.er1
18850   ac_status=$?
18851   grep -v '^ *+' conftest.er1 >conftest.err
18852   rm -f conftest.er1
18853   cat conftest.err >&5
18854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855   (exit $ac_status); } && {
18856          test -z "$ac_c_werror_flag" ||
18857          test ! -s conftest.err
18858        } && test -s conftest.$ac_objext; then
18859   ac_cv_type_off_t=yes
18860 else
18861   echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18863
18864         ac_cv_type_off_t=no
18865 fi
18866
18867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18868 fi
18869 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18870 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18871 if test $ac_cv_type_off_t = yes; then
18872   :
18873 else
18874
18875 cat >>confdefs.h <<_ACEOF
18876 #define off_t long int
18877 _ACEOF
18878
18879 fi
18880
18881 { echo "$as_me:$LINENO: checking for size_t" >&5
18882 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18883 if test "${ac_cv_type_size_t+set}" = set; then
18884   echo $ECHO_N "(cached) $ECHO_C" >&6
18885 else
18886   cat >conftest.$ac_ext <<_ACEOF
18887 /* confdefs.h.  */
18888 _ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h.  */
18892 $ac_includes_default
18893 typedef size_t ac__type_new_;
18894 int
18895 main ()
18896 {
18897 if ((ac__type_new_ *) 0)
18898   return 0;
18899 if (sizeof (ac__type_new_))
18900   return 0;
18901   ;
18902   return 0;
18903 }
18904 _ACEOF
18905 rm -f conftest.$ac_objext
18906 if { (ac_try="$ac_compile"
18907 case "(($ac_try" in
18908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909   *) ac_try_echo=$ac_try;;
18910 esac
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912   (eval "$ac_compile") 2>conftest.er1
18913   ac_status=$?
18914   grep -v '^ *+' conftest.er1 >conftest.err
18915   rm -f conftest.er1
18916   cat conftest.err >&5
18917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918   (exit $ac_status); } && {
18919          test -z "$ac_c_werror_flag" ||
18920          test ! -s conftest.err
18921        } && test -s conftest.$ac_objext; then
18922   ac_cv_type_size_t=yes
18923 else
18924   echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18926
18927         ac_cv_type_size_t=no
18928 fi
18929
18930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18931 fi
18932 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18933 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18934 if test $ac_cv_type_size_t = yes; then
18935   :
18936 else
18937
18938 cat >>confdefs.h <<_ACEOF
18939 #define size_t unsigned int
18940 _ACEOF
18941
18942 fi
18943
18944
18945   { echo "$as_me:$LINENO: checking for long long" >&5
18946 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18947 if test "${ac_cv_type_long_long+set}" = set; then
18948   echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950   cat >conftest.$ac_ext <<_ACEOF
18951 /* confdefs.h.  */
18952 _ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h.  */
18956 long long ll = 1LL; int i = 63;
18957 int
18958 main ()
18959 {
18960 long long llmax = (long long) -1;
18961      return ll << i | ll >> i | llmax / ll | llmax % ll;
18962   ;
18963   return 0;
18964 }
18965 _ACEOF
18966 rm -f conftest.$ac_objext conftest$ac_exeext
18967 if { (ac_try="$ac_link"
18968 case "(($ac_try" in
18969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970   *) ac_try_echo=$ac_try;;
18971 esac
18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973   (eval "$ac_link") 2>conftest.er1
18974   ac_status=$?
18975   grep -v '^ *+' conftest.er1 >conftest.err
18976   rm -f conftest.er1
18977   cat conftest.err >&5
18978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979   (exit $ac_status); } && {
18980          test -z "$ac_c_werror_flag" ||
18981          test ! -s conftest.err
18982        } && test -s conftest$ac_exeext &&
18983        $as_test_x conftest$ac_exeext; then
18984   ac_cv_type_long_long=yes
18985 else
18986   echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18988
18989         ac_cv_type_long_long=no
18990 fi
18991
18992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18993       conftest$ac_exeext conftest.$ac_ext
18994 fi
18995 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18996 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18997   if test $ac_cv_type_long_long = yes; then
18998
18999 cat >>confdefs.h <<\_ACEOF
19000 #define HAVE_LONG_LONG 1
19001 _ACEOF
19002
19003   fi
19004
19005
19006   { echo "$as_me:$LINENO: checking for long double" >&5
19007 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19008 if test "${gt_cv_c_long_double+set}" = set; then
19009   echo $ECHO_N "(cached) $ECHO_C" >&6
19010 else
19011   if test "$GCC" = yes; then
19012        gt_cv_c_long_double=yes
19013      else
19014        cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h.  */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h.  */
19020
19021          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19022          long double foo = 0.0;
19023          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19024          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19025
19026 int
19027 main ()
19028 {
19029
19030   ;
19031   return 0;
19032 }
19033 _ACEOF
19034 rm -f conftest.$ac_objext
19035 if { (ac_try="$ac_compile"
19036 case "(($ac_try" in
19037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038   *) ac_try_echo=$ac_try;;
19039 esac
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041   (eval "$ac_compile") 2>conftest.er1
19042   ac_status=$?
19043   grep -v '^ *+' conftest.er1 >conftest.err
19044   rm -f conftest.er1
19045   cat conftest.err >&5
19046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047   (exit $ac_status); } && {
19048          test -z "$ac_c_werror_flag" ||
19049          test ! -s conftest.err
19050        } && test -s conftest.$ac_objext; then
19051   gt_cv_c_long_double=yes
19052 else
19053   echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19055
19056         gt_cv_c_long_double=no
19057 fi
19058
19059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060      fi
19061 fi
19062 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19063 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19064   if test $gt_cv_c_long_double = yes; then
19065
19066 cat >>confdefs.h <<\_ACEOF
19067 #define HAVE_LONG_DOUBLE 1
19068 _ACEOF
19069
19070   fi
19071
19072
19073   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19074 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19075 if test "${gt_cv_c_wchar_t+set}" = set; then
19076   echo $ECHO_N "(cached) $ECHO_C" >&6
19077 else
19078   cat >conftest.$ac_ext <<_ACEOF
19079 /* confdefs.h.  */
19080 _ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h.  */
19084 #include <stddef.h>
19085        wchar_t foo = (wchar_t)'\0';
19086 int
19087 main ()
19088 {
19089
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext
19095 if { (ac_try="$ac_compile"
19096 case "(($ac_try" in
19097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098   *) ac_try_echo=$ac_try;;
19099 esac
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101   (eval "$ac_compile") 2>conftest.er1
19102   ac_status=$?
19103   grep -v '^ *+' conftest.er1 >conftest.err
19104   rm -f conftest.er1
19105   cat conftest.err >&5
19106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107   (exit $ac_status); } && {
19108          test -z "$ac_c_werror_flag" ||
19109          test ! -s conftest.err
19110        } && test -s conftest.$ac_objext; then
19111   gt_cv_c_wchar_t=yes
19112 else
19113   echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19115
19116         gt_cv_c_wchar_t=no
19117 fi
19118
19119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19120 fi
19121 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19122 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19123   if test $gt_cv_c_wchar_t = yes; then
19124
19125 cat >>confdefs.h <<\_ACEOF
19126 #define HAVE_WCHAR_T 1
19127 _ACEOF
19128
19129   fi
19130
19131
19132   { echo "$as_me:$LINENO: checking for wint_t" >&5
19133 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19134 if test "${gt_cv_c_wint_t+set}" = set; then
19135   echo $ECHO_N "(cached) $ECHO_C" >&6
19136 else
19137   cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h.  */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h.  */
19143 #include <wchar.h>
19144        wint_t foo = (wchar_t)'\0';
19145 int
19146 main ()
19147 {
19148
19149   ;
19150   return 0;
19151 }
19152 _ACEOF
19153 rm -f conftest.$ac_objext
19154 if { (ac_try="$ac_compile"
19155 case "(($ac_try" in
19156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157   *) ac_try_echo=$ac_try;;
19158 esac
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160   (eval "$ac_compile") 2>conftest.er1
19161   ac_status=$?
19162   grep -v '^ *+' conftest.er1 >conftest.err
19163   rm -f conftest.er1
19164   cat conftest.err >&5
19165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166   (exit $ac_status); } && {
19167          test -z "$ac_c_werror_flag" ||
19168          test ! -s conftest.err
19169        } && test -s conftest.$ac_objext; then
19170   gt_cv_c_wint_t=yes
19171 else
19172   echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.$ac_ext >&5
19174
19175         gt_cv_c_wint_t=no
19176 fi
19177
19178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19179 fi
19180 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19181 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19182   if test $gt_cv_c_wint_t = yes; then
19183
19184 cat >>confdefs.h <<\_ACEOF
19185 #define HAVE_WINT_T 1
19186 _ACEOF
19187
19188   fi
19189
19190
19191   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19192 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19193 if test "${gl_cv_header_inttypes_h+set}" = set; then
19194   echo $ECHO_N "(cached) $ECHO_C" >&6
19195 else
19196   cat >conftest.$ac_ext <<_ACEOF
19197 /* confdefs.h.  */
19198 _ACEOF
19199 cat confdefs.h >>conftest.$ac_ext
19200 cat >>conftest.$ac_ext <<_ACEOF
19201 /* end confdefs.h.  */
19202 #include <sys/types.h>
19203 #include <inttypes.h>
19204 int
19205 main ()
19206 {
19207 uintmax_t i = (uintmax_t) -1;
19208   ;
19209   return 0;
19210 }
19211 _ACEOF
19212 rm -f conftest.$ac_objext
19213 if { (ac_try="$ac_compile"
19214 case "(($ac_try" in
19215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216   *) ac_try_echo=$ac_try;;
19217 esac
19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219   (eval "$ac_compile") 2>conftest.er1
19220   ac_status=$?
19221   grep -v '^ *+' conftest.er1 >conftest.err
19222   rm -f conftest.er1
19223   cat conftest.err >&5
19224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225   (exit $ac_status); } && {
19226          test -z "$ac_c_werror_flag" ||
19227          test ! -s conftest.err
19228        } && test -s conftest.$ac_objext; then
19229   gl_cv_header_inttypes_h=yes
19230 else
19231   echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19233
19234         gl_cv_header_inttypes_h=no
19235 fi
19236
19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19238 fi
19239 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19240 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19241   if test $gl_cv_header_inttypes_h = yes; then
19242
19243 cat >>confdefs.h <<_ACEOF
19244 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19245 _ACEOF
19246
19247   fi
19248
19249
19250   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19251 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19252 if test "${gl_cv_header_stdint_h+set}" = set; then
19253   echo $ECHO_N "(cached) $ECHO_C" >&6
19254 else
19255   cat >conftest.$ac_ext <<_ACEOF
19256 /* confdefs.h.  */
19257 _ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h.  */
19261 #include <sys/types.h>
19262 #include <stdint.h>
19263 int
19264 main ()
19265 {
19266 uintmax_t i = (uintmax_t) -1;
19267   ;
19268   return 0;
19269 }
19270 _ACEOF
19271 rm -f conftest.$ac_objext
19272 if { (ac_try="$ac_compile"
19273 case "(($ac_try" in
19274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275   *) ac_try_echo=$ac_try;;
19276 esac
19277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278   (eval "$ac_compile") 2>conftest.er1
19279   ac_status=$?
19280   grep -v '^ *+' conftest.er1 >conftest.err
19281   rm -f conftest.er1
19282   cat conftest.err >&5
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); } && {
19285          test -z "$ac_c_werror_flag" ||
19286          test ! -s conftest.err
19287        } && test -s conftest.$ac_objext; then
19288   gl_cv_header_stdint_h=yes
19289 else
19290   echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19292
19293         gl_cv_header_stdint_h=no
19294 fi
19295
19296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19297 fi
19298 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19299 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19300   if test $gl_cv_header_stdint_h = yes; then
19301
19302 cat >>confdefs.h <<_ACEOF
19303 #define HAVE_STDINT_H_WITH_UINTMAX 1
19304 _ACEOF
19305
19306   fi
19307
19308
19309
19310
19311   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19312 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19313 if test "${gt_cv_c_intmax_t+set}" = set; then
19314   echo $ECHO_N "(cached) $ECHO_C" >&6
19315 else
19316   cat >conftest.$ac_ext <<_ACEOF
19317 /* confdefs.h.  */
19318 _ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h.  */
19322
19323 #include <stddef.h>
19324 #include <stdlib.h>
19325 #if HAVE_STDINT_H_WITH_UINTMAX
19326 #include <stdint.h>
19327 #endif
19328 #if HAVE_INTTYPES_H_WITH_UINTMAX
19329 #include <inttypes.h>
19330 #endif
19331
19332 int
19333 main ()
19334 {
19335 intmax_t x = -1;
19336   ;
19337   return 0;
19338 }
19339 _ACEOF
19340 rm -f conftest.$ac_objext
19341 if { (ac_try="$ac_compile"
19342 case "(($ac_try" in
19343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344   *) ac_try_echo=$ac_try;;
19345 esac
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347   (eval "$ac_compile") 2>conftest.er1
19348   ac_status=$?
19349   grep -v '^ *+' conftest.er1 >conftest.err
19350   rm -f conftest.er1
19351   cat conftest.err >&5
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); } && {
19354          test -z "$ac_c_werror_flag" ||
19355          test ! -s conftest.err
19356        } && test -s conftest.$ac_objext; then
19357   gt_cv_c_intmax_t=yes
19358 else
19359   echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19361
19362         gt_cv_c_intmax_t=no
19363 fi
19364
19365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19366 fi
19367 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19368 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19369   if test $gt_cv_c_intmax_t = yes; then
19370
19371 cat >>confdefs.h <<\_ACEOF
19372 #define HAVE_INTMAX_T 1
19373 _ACEOF
19374
19375   fi
19376
19377
19378
19379   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19380 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19381 if test "${gt_cv_func_printf_posix+set}" = set; then
19382   echo $ECHO_N "(cached) $ECHO_C" >&6
19383 else
19384
19385       if test "$cross_compiling" = yes; then
19386
19387         cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h.  */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h.  */
19393
19394 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19395   notposix
19396 #endif
19397
19398 _ACEOF
19399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19400   $EGREP "notposix" >/dev/null 2>&1; then
19401   gt_cv_func_printf_posix="guessing no"
19402 else
19403   gt_cv_func_printf_posix="guessing yes"
19404 fi
19405 rm -f conftest*
19406
19407
19408 else
19409   cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h.  */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h.  */
19415
19416 #include <stdio.h>
19417 #include <string.h>
19418 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19419    dollar expansion (possibly an autoconf bug).  */
19420 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19421 static char buf[100];
19422 int main ()
19423 {
19424   sprintf (buf, format, 33, 55);
19425   return (strcmp (buf, "55 33") != 0);
19426 }
19427 _ACEOF
19428 rm -f conftest$ac_exeext
19429 if { (ac_try="$ac_link"
19430 case "(($ac_try" in
19431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432   *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435   (eval "$ac_link") 2>&5
19436   ac_status=$?
19437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19439   { (case "(($ac_try" in
19440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441   *) ac_try_echo=$ac_try;;
19442 esac
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444   (eval "$ac_try") 2>&5
19445   ac_status=$?
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); }; }; then
19448   gt_cv_func_printf_posix=yes
19449 else
19450   echo "$as_me: program exited with status $ac_status" >&5
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19453
19454 ( exit $ac_status )
19455 gt_cv_func_printf_posix=no
19456 fi
19457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19458 fi
19459
19460
19461
19462 fi
19463 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19464 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19465   case $gt_cv_func_printf_posix in
19466     *yes)
19467
19468 cat >>confdefs.h <<\_ACEOF
19469 #define HAVE_POSIX_PRINTF 1
19470 _ACEOF
19471
19472       ;;
19473   esac
19474
19475 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19476 # for constant arguments.  Useless!
19477 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19478 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19479 if test "${ac_cv_working_alloca_h+set}" = set; then
19480   echo $ECHO_N "(cached) $ECHO_C" >&6
19481 else
19482   cat >conftest.$ac_ext <<_ACEOF
19483 /* confdefs.h.  */
19484 _ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h.  */
19488 #include <alloca.h>
19489 int
19490 main ()
19491 {
19492 char *p = (char *) alloca (2 * sizeof (int));
19493                           if (p) return 0;
19494   ;
19495   return 0;
19496 }
19497 _ACEOF
19498 rm -f conftest.$ac_objext conftest$ac_exeext
19499 if { (ac_try="$ac_link"
19500 case "(($ac_try" in
19501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502   *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505   (eval "$ac_link") 2>conftest.er1
19506   ac_status=$?
19507   grep -v '^ *+' conftest.er1 >conftest.err
19508   rm -f conftest.er1
19509   cat conftest.err >&5
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); } && {
19512          test -z "$ac_c_werror_flag" ||
19513          test ! -s conftest.err
19514        } && test -s conftest$ac_exeext &&
19515        $as_test_x conftest$ac_exeext; then
19516   ac_cv_working_alloca_h=yes
19517 else
19518   echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19520
19521         ac_cv_working_alloca_h=no
19522 fi
19523
19524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19525       conftest$ac_exeext conftest.$ac_ext
19526 fi
19527 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19528 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19529 if test $ac_cv_working_alloca_h = yes; then
19530
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE_ALLOCA_H 1
19533 _ACEOF
19534
19535 fi
19536
19537 { echo "$as_me:$LINENO: checking for alloca" >&5
19538 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19539 if test "${ac_cv_func_alloca_works+set}" = set; then
19540   echo $ECHO_N "(cached) $ECHO_C" >&6
19541 else
19542   cat >conftest.$ac_ext <<_ACEOF
19543 /* confdefs.h.  */
19544 _ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h.  */
19548 #ifdef __GNUC__
19549 # define alloca __builtin_alloca
19550 #else
19551 # ifdef _MSC_VER
19552 #  include <malloc.h>
19553 #  define alloca _alloca
19554 # else
19555 #  ifdef HAVE_ALLOCA_H
19556 #   include <alloca.h>
19557 #  else
19558 #   ifdef _AIX
19559  #pragma alloca
19560 #   else
19561 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19562 char *alloca ();
19563 #    endif
19564 #   endif
19565 #  endif
19566 # endif
19567 #endif
19568
19569 int
19570 main ()
19571 {
19572 char *p = (char *) alloca (1);
19573                                     if (p) return 0;
19574   ;
19575   return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (ac_try="$ac_link"
19580 case "(($ac_try" in
19581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582   *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585   (eval "$ac_link") 2>conftest.er1
19586   ac_status=$?
19587   grep -v '^ *+' conftest.er1 >conftest.err
19588   rm -f conftest.er1
19589   cat conftest.err >&5
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); } && {
19592          test -z "$ac_c_werror_flag" ||
19593          test ! -s conftest.err
19594        } && test -s conftest$ac_exeext &&
19595        $as_test_x conftest$ac_exeext; then
19596   ac_cv_func_alloca_works=yes
19597 else
19598   echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601         ac_cv_func_alloca_works=no
19602 fi
19603
19604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19605       conftest$ac_exeext conftest.$ac_ext
19606 fi
19607 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19608 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19609
19610 if test $ac_cv_func_alloca_works = yes; then
19611
19612 cat >>confdefs.h <<\_ACEOF
19613 #define HAVE_ALLOCA 1
19614 _ACEOF
19615
19616 else
19617   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19618 # that cause trouble.  Some versions do not even contain alloca or
19619 # contain a buggy version.  If you still want to use their alloca,
19620 # use ar to extract alloca.o from them instead of compiling alloca.c.
19621
19622 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19623
19624 cat >>confdefs.h <<\_ACEOF
19625 #define C_ALLOCA 1
19626 _ACEOF
19627
19628
19629 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19630 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19631 if test "${ac_cv_os_cray+set}" = set; then
19632   echo $ECHO_N "(cached) $ECHO_C" >&6
19633 else
19634   cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h.  */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h.  */
19640 #if defined CRAY && ! defined CRAY2
19641 webecray
19642 #else
19643 wenotbecray
19644 #endif
19645
19646 _ACEOF
19647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19648   $EGREP "webecray" >/dev/null 2>&1; then
19649   ac_cv_os_cray=yes
19650 else
19651   ac_cv_os_cray=no
19652 fi
19653 rm -f conftest*
19654
19655 fi
19656 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19657 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19658 if test $ac_cv_os_cray = yes; then
19659   for ac_func in _getb67 GETB67 getb67; do
19660     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19664   echo $ECHO_N "(cached) $ECHO_C" >&6
19665 else
19666   cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19674 #define $ac_func innocuous_$ac_func
19675
19676 /* System header to define __stub macros and hopefully few prototypes,
19677     which can conflict with char $ac_func (); below.
19678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19679     <limits.h> exists even on freestanding compilers.  */
19680
19681 #ifdef __STDC__
19682 # include <limits.h>
19683 #else
19684 # include <assert.h>
19685 #endif
19686
19687 #undef $ac_func
19688
19689 /* Override any GCC internal prototype to avoid an error.
19690    Use char because int might match the return type of a GCC
19691    builtin and then its argument prototype would still apply.  */
19692 #ifdef __cplusplus
19693 extern "C"
19694 #endif
19695 char $ac_func ();
19696 /* The GNU C library defines this for functions which it implements
19697     to always fail with ENOSYS.  Some functions are actually named
19698     something starting with __ and the normal name is an alias.  */
19699 #if defined __stub_$ac_func || defined __stub___$ac_func
19700 choke me
19701 #endif
19702
19703 int
19704 main ()
19705 {
19706 return $ac_func ();
19707   ;
19708   return 0;
19709 }
19710 _ACEOF
19711 rm -f conftest.$ac_objext conftest$ac_exeext
19712 if { (ac_try="$ac_link"
19713 case "(($ac_try" in
19714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715   *) ac_try_echo=$ac_try;;
19716 esac
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718   (eval "$ac_link") 2>conftest.er1
19719   ac_status=$?
19720   grep -v '^ *+' conftest.er1 >conftest.err
19721   rm -f conftest.er1
19722   cat conftest.err >&5
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); } && {
19725          test -z "$ac_c_werror_flag" ||
19726          test ! -s conftest.err
19727        } && test -s conftest$ac_exeext &&
19728        $as_test_x conftest$ac_exeext; then
19729   eval "$as_ac_var=yes"
19730 else
19731   echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19733
19734         eval "$as_ac_var=no"
19735 fi
19736
19737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19738       conftest$ac_exeext conftest.$ac_ext
19739 fi
19740 ac_res=`eval echo '${'$as_ac_var'}'`
19741                { echo "$as_me:$LINENO: result: $ac_res" >&5
19742 echo "${ECHO_T}$ac_res" >&6; }
19743 if test `eval echo '${'$as_ac_var'}'` = yes; then
19744
19745 cat >>confdefs.h <<_ACEOF
19746 #define CRAY_STACKSEG_END $ac_func
19747 _ACEOF
19748
19749     break
19750 fi
19751
19752   done
19753 fi
19754
19755 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19756 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19757 if test "${ac_cv_c_stack_direction+set}" = set; then
19758   echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760   if test "$cross_compiling" = yes; then
19761   ac_cv_c_stack_direction=0
19762 else
19763   cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h.  */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h.  */
19769 $ac_includes_default
19770 int
19771 find_stack_direction ()
19772 {
19773   static char *addr = 0;
19774   auto char dummy;
19775   if (addr == 0)
19776     {
19777       addr = &dummy;
19778       return find_stack_direction ();
19779     }
19780   else
19781     return (&dummy > addr) ? 1 : -1;
19782 }
19783
19784 int
19785 main ()
19786 {
19787   return find_stack_direction () < 0;
19788 }
19789 _ACEOF
19790 rm -f conftest$ac_exeext
19791 if { (ac_try="$ac_link"
19792 case "(($ac_try" in
19793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794   *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797   (eval "$ac_link") 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19801   { (case "(($ac_try" in
19802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803   *) ac_try_echo=$ac_try;;
19804 esac
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806   (eval "$ac_try") 2>&5
19807   ac_status=$?
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); }; }; then
19810   ac_cv_c_stack_direction=1
19811 else
19812   echo "$as_me: program exited with status $ac_status" >&5
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19815
19816 ( exit $ac_status )
19817 ac_cv_c_stack_direction=-1
19818 fi
19819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19820 fi
19821
19822
19823 fi
19824 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19825 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19826
19827 cat >>confdefs.h <<_ACEOF
19828 #define STACK_DIRECTION $ac_cv_c_stack_direction
19829 _ACEOF
19830
19831
19832 fi
19833
19834
19835
19836 for ac_header in stdlib.h unistd.h
19837 do
19838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19840   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19843   echo $ECHO_N "(cached) $ECHO_C" >&6
19844 fi
19845 ac_res=`eval echo '${'$as_ac_Header'}'`
19846                { echo "$as_me:$LINENO: result: $ac_res" >&5
19847 echo "${ECHO_T}$ac_res" >&6; }
19848 else
19849   # Is the header compilable?
19850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h.  */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h.  */
19858 $ac_includes_default
19859 #include <$ac_header>
19860 _ACEOF
19861 rm -f conftest.$ac_objext
19862 if { (ac_try="$ac_compile"
19863 case "(($ac_try" in
19864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865   *) ac_try_echo=$ac_try;;
19866 esac
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868   (eval "$ac_compile") 2>conftest.er1
19869   ac_status=$?
19870   grep -v '^ *+' conftest.er1 >conftest.err
19871   rm -f conftest.er1
19872   cat conftest.err >&5
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); } && {
19875          test -z "$ac_c_werror_flag" ||
19876          test ! -s conftest.err
19877        } && test -s conftest.$ac_objext; then
19878   ac_header_compiler=yes
19879 else
19880   echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19882
19883         ac_header_compiler=no
19884 fi
19885
19886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19888 echo "${ECHO_T}$ac_header_compiler" >&6; }
19889
19890 # Is the header present?
19891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19893 cat >conftest.$ac_ext <<_ACEOF
19894 /* confdefs.h.  */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h.  */
19899 #include <$ac_header>
19900 _ACEOF
19901 if { (ac_try="$ac_cpp conftest.$ac_ext"
19902 case "(($ac_try" in
19903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904   *) ac_try_echo=$ac_try;;
19905 esac
19906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19908   ac_status=$?
19909   grep -v '^ *+' conftest.er1 >conftest.err
19910   rm -f conftest.er1
19911   cat conftest.err >&5
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); } >/dev/null && {
19914          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19915          test ! -s conftest.err
19916        }; then
19917   ac_header_preproc=yes
19918 else
19919   echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19921
19922   ac_header_preproc=no
19923 fi
19924
19925 rm -f conftest.err conftest.$ac_ext
19926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19927 echo "${ECHO_T}$ac_header_preproc" >&6; }
19928
19929 # So?  What about this header?
19930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19931   yes:no: )
19932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19936     ac_header_preproc=yes
19937     ;;
19938   no:yes:* )
19939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19951
19952     ;;
19953 esac
19954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957   echo $ECHO_N "(cached) $ECHO_C" >&6
19958 else
19959   eval "$as_ac_Header=\$ac_header_preproc"
19960 fi
19961 ac_res=`eval echo '${'$as_ac_Header'}'`
19962                { echo "$as_me:$LINENO: result: $ac_res" >&5
19963 echo "${ECHO_T}$ac_res" >&6; }
19964
19965 fi
19966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19967   cat >>confdefs.h <<_ACEOF
19968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19969 _ACEOF
19970
19971 fi
19972
19973 done
19974
19975
19976 for ac_func in getpagesize
19977 do
19978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19982   echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984   cat >conftest.$ac_ext <<_ACEOF
19985 /* confdefs.h.  */
19986 _ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h.  */
19990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19992 #define $ac_func innocuous_$ac_func
19993
19994 /* System header to define __stub macros and hopefully few prototypes,
19995     which can conflict with char $ac_func (); below.
19996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19997     <limits.h> exists even on freestanding compilers.  */
19998
19999 #ifdef __STDC__
20000 # include <limits.h>
20001 #else
20002 # include <assert.h>
20003 #endif
20004
20005 #undef $ac_func
20006
20007 /* Override any GCC internal prototype to avoid an error.
20008    Use char because int might match the return type of a GCC
20009    builtin and then its argument prototype would still apply.  */
20010 #ifdef __cplusplus
20011 extern "C"
20012 #endif
20013 char $ac_func ();
20014 /* The GNU C library defines this for functions which it implements
20015     to always fail with ENOSYS.  Some functions are actually named
20016     something starting with __ and the normal name is an alias.  */
20017 #if defined __stub_$ac_func || defined __stub___$ac_func
20018 choke me
20019 #endif
20020
20021 int
20022 main ()
20023 {
20024 return $ac_func ();
20025   ;
20026   return 0;
20027 }
20028 _ACEOF
20029 rm -f conftest.$ac_objext conftest$ac_exeext
20030 if { (ac_try="$ac_link"
20031 case "(($ac_try" in
20032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033   *) ac_try_echo=$ac_try;;
20034 esac
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036   (eval "$ac_link") 2>conftest.er1
20037   ac_status=$?
20038   grep -v '^ *+' conftest.er1 >conftest.err
20039   rm -f conftest.er1
20040   cat conftest.err >&5
20041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042   (exit $ac_status); } && {
20043          test -z "$ac_c_werror_flag" ||
20044          test ! -s conftest.err
20045        } && test -s conftest$ac_exeext &&
20046        $as_test_x conftest$ac_exeext; then
20047   eval "$as_ac_var=yes"
20048 else
20049   echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20051
20052         eval "$as_ac_var=no"
20053 fi
20054
20055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20056       conftest$ac_exeext conftest.$ac_ext
20057 fi
20058 ac_res=`eval echo '${'$as_ac_var'}'`
20059                { echo "$as_me:$LINENO: result: $ac_res" >&5
20060 echo "${ECHO_T}$ac_res" >&6; }
20061 if test `eval echo '${'$as_ac_var'}'` = yes; then
20062   cat >>confdefs.h <<_ACEOF
20063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20064 _ACEOF
20065
20066 fi
20067 done
20068
20069 { echo "$as_me:$LINENO: checking for working mmap" >&5
20070 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20071 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20072   echo $ECHO_N "(cached) $ECHO_C" >&6
20073 else
20074   if test "$cross_compiling" = yes; then
20075   ac_cv_func_mmap_fixed_mapped=no
20076 else
20077   cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h.  */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h.  */
20083 $ac_includes_default
20084 /* malloc might have been renamed as rpl_malloc. */
20085 #undef malloc
20086
20087 /* Thanks to Mike Haertel and Jim Avera for this test.
20088    Here is a matrix of mmap possibilities:
20089         mmap private not fixed
20090         mmap private fixed at somewhere currently unmapped
20091         mmap private fixed at somewhere already mapped
20092         mmap shared not fixed
20093         mmap shared fixed at somewhere currently unmapped
20094         mmap shared fixed at somewhere already mapped
20095    For private mappings, we should verify that changes cannot be read()
20096    back from the file, nor mmap's back from the file at a different
20097    address.  (There have been systems where private was not correctly
20098    implemented like the infamous i386 svr4.0, and systems where the
20099    VM page cache was not coherent with the file system buffer cache
20100    like early versions of FreeBSD and possibly contemporary NetBSD.)
20101    For shared mappings, we should conversely verify that changes get
20102    propagated back to all the places they're supposed to be.
20103
20104    Grep wants private fixed already mapped.
20105    The main things grep needs to know about mmap are:
20106    * does it exist and is it safe to write into the mmap'd area
20107    * how to use it (BSD variants)  */
20108
20109 #include <fcntl.h>
20110 #include <sys/mman.h>
20111
20112 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20113 char *malloc ();
20114 #endif
20115
20116 /* This mess was copied from the GNU getpagesize.h.  */
20117 #ifndef HAVE_GETPAGESIZE
20118 /* Assume that all systems that can run configure have sys/param.h.  */
20119 # ifndef HAVE_SYS_PARAM_H
20120 #  define HAVE_SYS_PARAM_H 1
20121 # endif
20122
20123 # ifdef _SC_PAGESIZE
20124 #  define getpagesize() sysconf(_SC_PAGESIZE)
20125 # else /* no _SC_PAGESIZE */
20126 #  ifdef HAVE_SYS_PARAM_H
20127 #   include <sys/param.h>
20128 #   ifdef EXEC_PAGESIZE
20129 #    define getpagesize() EXEC_PAGESIZE
20130 #   else /* no EXEC_PAGESIZE */
20131 #    ifdef NBPG
20132 #     define getpagesize() NBPG * CLSIZE
20133 #     ifndef CLSIZE
20134 #      define CLSIZE 1
20135 #     endif /* no CLSIZE */
20136 #    else /* no NBPG */
20137 #     ifdef NBPC
20138 #      define getpagesize() NBPC
20139 #     else /* no NBPC */
20140 #      ifdef PAGESIZE
20141 #       define getpagesize() PAGESIZE
20142 #      endif /* PAGESIZE */
20143 #     endif /* no NBPC */
20144 #    endif /* no NBPG */
20145 #   endif /* no EXEC_PAGESIZE */
20146 #  else /* no HAVE_SYS_PARAM_H */
20147 #   define getpagesize() 8192   /* punt totally */
20148 #  endif /* no HAVE_SYS_PARAM_H */
20149 # endif /* no _SC_PAGESIZE */
20150
20151 #endif /* no HAVE_GETPAGESIZE */
20152
20153 int
20154 main ()
20155 {
20156   char *data, *data2, *data3;
20157   int i, pagesize;
20158   int fd;
20159
20160   pagesize = getpagesize ();
20161
20162   /* First, make a file with some known garbage in it. */
20163   data = (char *) malloc (pagesize);
20164   if (!data)
20165     return 1;
20166   for (i = 0; i < pagesize; ++i)
20167     *(data + i) = rand ();
20168   umask (0);
20169   fd = creat ("conftest.mmap", 0600);
20170   if (fd < 0)
20171     return 1;
20172   if (write (fd, data, pagesize) != pagesize)
20173     return 1;
20174   close (fd);
20175
20176   /* Next, try to mmap the file at a fixed address which already has
20177      something else allocated at it.  If we can, also make sure that
20178      we see the same garbage.  */
20179   fd = open ("conftest.mmap", O_RDWR);
20180   if (fd < 0)
20181     return 1;
20182   data2 = (char *) malloc (2 * pagesize);
20183   if (!data2)
20184     return 1;
20185   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20186   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20187                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20188     return 1;
20189   for (i = 0; i < pagesize; ++i)
20190     if (*(data + i) != *(data2 + i))
20191       return 1;
20192
20193   /* Finally, make sure that changes to the mapped area do not
20194      percolate back to the file as seen by read().  (This is a bug on
20195      some variants of i386 svr4.0.)  */
20196   for (i = 0; i < pagesize; ++i)
20197     *(data2 + i) = *(data2 + i) + 1;
20198   data3 = (char *) malloc (pagesize);
20199   if (!data3)
20200     return 1;
20201   if (read (fd, data3, pagesize) != pagesize)
20202     return 1;
20203   for (i = 0; i < pagesize; ++i)
20204     if (*(data + i) != *(data3 + i))
20205       return 1;
20206   close (fd);
20207   return 0;
20208 }
20209 _ACEOF
20210 rm -f conftest$ac_exeext
20211 if { (ac_try="$ac_link"
20212 case "(($ac_try" in
20213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214   *) ac_try_echo=$ac_try;;
20215 esac
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217   (eval "$ac_link") 2>&5
20218   ac_status=$?
20219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20221   { (case "(($ac_try" in
20222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223   *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226   (eval "$ac_try") 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); }; }; then
20230   ac_cv_func_mmap_fixed_mapped=yes
20231 else
20232   echo "$as_me: program exited with status $ac_status" >&5
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20235
20236 ( exit $ac_status )
20237 ac_cv_func_mmap_fixed_mapped=no
20238 fi
20239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20240 fi
20241
20242
20243 fi
20244 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20245 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20246 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20247
20248 cat >>confdefs.h <<\_ACEOF
20249 #define HAVE_MMAP 1
20250 _ACEOF
20251
20252 fi
20253 rm -f conftest.mmap
20254
20255
20256     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20257 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20258 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20259   echo $ECHO_N "(cached) $ECHO_C" >&6
20260 else
20261   cat >conftest.$ac_ext <<_ACEOF
20262 /* confdefs.h.  */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h.  */
20267
20268 #include <features.h>
20269 #ifdef __GNU_LIBRARY__
20270  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20271   Lucky GNU user
20272  #endif
20273 #endif
20274
20275 _ACEOF
20276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20277   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20278   ac_cv_gnu_library_2_1=yes
20279 else
20280   ac_cv_gnu_library_2_1=no
20281 fi
20282 rm -f conftest*
20283
20284
20285
20286 fi
20287 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20288 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20289
20290     GLIBC21="$ac_cv_gnu_library_2_1"
20291
20292
20293
20294
20295   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20296 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20297 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20298   echo $ECHO_N "(cached) $ECHO_C" >&6
20299 else
20300
20301       if test "$cross_compiling" = yes; then
20302
20303           # Guess based on the CPU.
20304           case "$host_cpu" in
20305             alpha* | i3456786 | m68k | s390*)
20306               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20307             *)
20308               gt_cv_int_divbyzero_sigfpe="guessing no";;
20309           esac
20310
20311 else
20312   cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318
20319 #include <stdlib.h>
20320 #include <signal.h>
20321
20322 static void
20323 #ifdef __cplusplus
20324 sigfpe_handler (int sig)
20325 #else
20326 sigfpe_handler (sig) int sig;
20327 #endif
20328 {
20329   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20330   exit (sig != SIGFPE);
20331 }
20332
20333 int x = 1;
20334 int y = 0;
20335 int z;
20336 int nan;
20337
20338 int main ()
20339 {
20340   signal (SIGFPE, sigfpe_handler);
20341 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20342 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20343   signal (SIGTRAP, sigfpe_handler);
20344 #endif
20345 /* Linux/SPARC yields signal SIGILL.  */
20346 #if defined (__sparc__) && defined (__linux__)
20347   signal (SIGILL, sigfpe_handler);
20348 #endif
20349
20350   z = x / y;
20351   nan = y / y;
20352   exit (1);
20353 }
20354
20355 _ACEOF
20356 rm -f conftest$ac_exeext
20357 if { (ac_try="$ac_link"
20358 case "(($ac_try" in
20359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360   *) ac_try_echo=$ac_try;;
20361 esac
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363   (eval "$ac_link") 2>&5
20364   ac_status=$?
20365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20367   { (case "(($ac_try" in
20368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369   *) ac_try_echo=$ac_try;;
20370 esac
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372   (eval "$ac_try") 2>&5
20373   ac_status=$?
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); }; }; then
20376   gt_cv_int_divbyzero_sigfpe=yes
20377 else
20378   echo "$as_me: program exited with status $ac_status" >&5
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20381
20382 ( exit $ac_status )
20383 gt_cv_int_divbyzero_sigfpe=no
20384 fi
20385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20386 fi
20387
20388
20389
20390 fi
20391 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20392 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20393   case "$gt_cv_int_divbyzero_sigfpe" in
20394     *yes) value=1;;
20395     *) value=0;;
20396   esac
20397
20398 cat >>confdefs.h <<_ACEOF
20399 #define INTDIV0_RAISES_SIGFPE $value
20400 _ACEOF
20401
20402
20403
20404   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20405 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20406 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20407   echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409   cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415 unsigned long long ull = 1ULL; int i = 63;
20416 int
20417 main ()
20418 {
20419 unsigned long long ullmax = (unsigned long long) -1;
20420      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20421   ;
20422   return 0;
20423 }
20424 _ACEOF
20425 rm -f conftest.$ac_objext conftest$ac_exeext
20426 if { (ac_try="$ac_link"
20427 case "(($ac_try" in
20428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429   *) ac_try_echo=$ac_try;;
20430 esac
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432   (eval "$ac_link") 2>conftest.er1
20433   ac_status=$?
20434   grep -v '^ *+' conftest.er1 >conftest.err
20435   rm -f conftest.er1
20436   cat conftest.err >&5
20437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); } && {
20439          test -z "$ac_c_werror_flag" ||
20440          test ! -s conftest.err
20441        } && test -s conftest$ac_exeext &&
20442        $as_test_x conftest$ac_exeext; then
20443   ac_cv_type_unsigned_long_long=yes
20444 else
20445   echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20447
20448         ac_cv_type_unsigned_long_long=no
20449 fi
20450
20451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20452       conftest$ac_exeext conftest.$ac_ext
20453 fi
20454 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20455 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20456   if test $ac_cv_type_unsigned_long_long = yes; then
20457
20458 cat >>confdefs.h <<\_ACEOF
20459 #define HAVE_UNSIGNED_LONG_LONG 1
20460 _ACEOF
20461
20462   fi
20463
20464
20465
20466
20467   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20468
20469     test $ac_cv_type_unsigned_long_long = yes \
20470       && ac_type='unsigned long long' \
20471       || ac_type='unsigned long'
20472
20473 cat >>confdefs.h <<_ACEOF
20474 #define uintmax_t $ac_type
20475 _ACEOF
20476
20477   else
20478
20479 cat >>confdefs.h <<\_ACEOF
20480 #define HAVE_UINTMAX_T 1
20481 _ACEOF
20482
20483   fi
20484
20485
20486   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20487 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20488 if test "${gt_cv_header_inttypes_h+set}" = set; then
20489   echo $ECHO_N "(cached) $ECHO_C" >&6
20490 else
20491
20492     cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498 #include <sys/types.h>
20499 #include <inttypes.h>
20500 int
20501 main ()
20502 {
20503
20504   ;
20505   return 0;
20506 }
20507 _ACEOF
20508 rm -f conftest.$ac_objext
20509 if { (ac_try="$ac_compile"
20510 case "(($ac_try" in
20511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20512   *) ac_try_echo=$ac_try;;
20513 esac
20514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20515   (eval "$ac_compile") 2>conftest.er1
20516   ac_status=$?
20517   grep -v '^ *+' conftest.er1 >conftest.err
20518   rm -f conftest.er1
20519   cat conftest.err >&5
20520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521   (exit $ac_status); } && {
20522          test -z "$ac_c_werror_flag" ||
20523          test ! -s conftest.err
20524        } && test -s conftest.$ac_objext; then
20525   gt_cv_header_inttypes_h=yes
20526 else
20527   echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530         gt_cv_header_inttypes_h=no
20531 fi
20532
20533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20534
20535 fi
20536 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20537 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20538   if test $gt_cv_header_inttypes_h = yes; then
20539
20540 cat >>confdefs.h <<_ACEOF
20541 #define HAVE_INTTYPES_H 1
20542 _ACEOF
20543
20544   fi
20545
20546
20547
20548   if test $gt_cv_header_inttypes_h = yes; then
20549     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20550 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20551 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20552   echo $ECHO_N "(cached) $ECHO_C" >&6
20553 else
20554
20555         cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h.  */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h.  */
20561 #include <inttypes.h>
20562 #ifdef PRId32
20563 char *p = PRId32;
20564 #endif
20565
20566 int
20567 main ()
20568 {
20569
20570   ;
20571   return 0;
20572 }
20573 _ACEOF
20574 rm -f conftest.$ac_objext
20575 if { (ac_try="$ac_compile"
20576 case "(($ac_try" in
20577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578   *) ac_try_echo=$ac_try;;
20579 esac
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581   (eval "$ac_compile") 2>conftest.er1
20582   ac_status=$?
20583   grep -v '^ *+' conftest.er1 >conftest.err
20584   rm -f conftest.er1
20585   cat conftest.err >&5
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); } && {
20588          test -z "$ac_c_werror_flag" ||
20589          test ! -s conftest.err
20590        } && test -s conftest.$ac_objext; then
20591   gt_cv_inttypes_pri_broken=no
20592 else
20593   echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.$ac_ext >&5
20595
20596         gt_cv_inttypes_pri_broken=yes
20597 fi
20598
20599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20600
20601 fi
20602 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20603 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20604   fi
20605   if test "$gt_cv_inttypes_pri_broken" = yes; then
20606
20607 cat >>confdefs.h <<_ACEOF
20608 #define PRI_MACROS_BROKEN 1
20609 _ACEOF
20610
20611   fi
20612
20613
20614
20615 for ac_header in stdint.h
20616 do
20617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20619   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20622   echo $ECHO_N "(cached) $ECHO_C" >&6
20623 fi
20624 ac_res=`eval echo '${'$as_ac_Header'}'`
20625                { echo "$as_me:$LINENO: result: $ac_res" >&5
20626 echo "${ECHO_T}$ac_res" >&6; }
20627 else
20628   # Is the header compilable?
20629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20631 cat >conftest.$ac_ext <<_ACEOF
20632 /* confdefs.h.  */
20633 _ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h.  */
20637 $ac_includes_default
20638 #include <$ac_header>
20639 _ACEOF
20640 rm -f conftest.$ac_objext
20641 if { (ac_try="$ac_compile"
20642 case "(($ac_try" in
20643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644   *) ac_try_echo=$ac_try;;
20645 esac
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647   (eval "$ac_compile") 2>conftest.er1
20648   ac_status=$?
20649   grep -v '^ *+' conftest.er1 >conftest.err
20650   rm -f conftest.er1
20651   cat conftest.err >&5
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); } && {
20654          test -z "$ac_c_werror_flag" ||
20655          test ! -s conftest.err
20656        } && test -s conftest.$ac_objext; then
20657   ac_header_compiler=yes
20658 else
20659   echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20661
20662         ac_header_compiler=no
20663 fi
20664
20665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20667 echo "${ECHO_T}$ac_header_compiler" >&6; }
20668
20669 # Is the header present?
20670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20672 cat >conftest.$ac_ext <<_ACEOF
20673 /* confdefs.h.  */
20674 _ACEOF
20675 cat confdefs.h >>conftest.$ac_ext
20676 cat >>conftest.$ac_ext <<_ACEOF
20677 /* end confdefs.h.  */
20678 #include <$ac_header>
20679 _ACEOF
20680 if { (ac_try="$ac_cpp conftest.$ac_ext"
20681 case "(($ac_try" in
20682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683   *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20687   ac_status=$?
20688   grep -v '^ *+' conftest.er1 >conftest.err
20689   rm -f conftest.er1
20690   cat conftest.err >&5
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); } >/dev/null && {
20693          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20694          test ! -s conftest.err
20695        }; then
20696   ac_header_preproc=yes
20697 else
20698   echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701   ac_header_preproc=no
20702 fi
20703
20704 rm -f conftest.err conftest.$ac_ext
20705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20706 echo "${ECHO_T}$ac_header_preproc" >&6; }
20707
20708 # So?  What about this header?
20709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20710   yes:no: )
20711     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20715     ac_header_preproc=yes
20716     ;;
20717   no:yes:* )
20718     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20720     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20721 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20722     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20724     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20725 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20728     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20730
20731     ;;
20732 esac
20733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20736   echo $ECHO_N "(cached) $ECHO_C" >&6
20737 else
20738   eval "$as_ac_Header=\$ac_header_preproc"
20739 fi
20740 ac_res=`eval echo '${'$as_ac_Header'}'`
20741                { echo "$as_me:$LINENO: result: $ac_res" >&5
20742 echo "${ECHO_T}$ac_res" >&6; }
20743
20744 fi
20745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20746   cat >>confdefs.h <<_ACEOF
20747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20748 _ACEOF
20749
20750 fi
20751
20752 done
20753
20754     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20755 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20756   result=
20757   cat >conftest.$ac_ext <<_ACEOF
20758 /* confdefs.h.  */
20759 _ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h.  */
20763
20764 #include <limits.h>
20765 #if HAVE_STDINT_H
20766 #include <stdint.h>
20767 #endif
20768 #ifdef SIZE_MAX
20769 Found it
20770 #endif
20771
20772 _ACEOF
20773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20774   $EGREP "Found it" >/dev/null 2>&1; then
20775   result=yes
20776 fi
20777 rm -f conftest*
20778
20779   if test -z "$result"; then
20780                     if test "$cross_compiling" = yes; then
20781   # Depending upon the size, compute the lo and hi bounds.
20782 cat >conftest.$ac_ext <<_ACEOF
20783 /* confdefs.h.  */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h.  */
20788 #include <stddef.h>
20789 int
20790 main ()
20791 {
20792 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20793 test_array [0] = 0
20794
20795   ;
20796   return 0;
20797 }
20798 _ACEOF
20799 rm -f conftest.$ac_objext
20800 if { (ac_try="$ac_compile"
20801 case "(($ac_try" in
20802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803   *) ac_try_echo=$ac_try;;
20804 esac
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806   (eval "$ac_compile") 2>conftest.er1
20807   ac_status=$?
20808   grep -v '^ *+' conftest.er1 >conftest.err
20809   rm -f conftest.er1
20810   cat conftest.err >&5
20811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812   (exit $ac_status); } && {
20813          test -z "$ac_c_werror_flag" ||
20814          test ! -s conftest.err
20815        } && test -s conftest.$ac_objext; then
20816   ac_lo=0 ac_mid=0
20817   while :; do
20818     cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824 #include <stddef.h>
20825 int
20826 main ()
20827 {
20828 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20829 test_array [0] = 0
20830
20831   ;
20832   return 0;
20833 }
20834 _ACEOF
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839   *) ac_try_echo=$ac_try;;
20840 esac
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842   (eval "$ac_compile") 2>conftest.er1
20843   ac_status=$?
20844   grep -v '^ *+' conftest.er1 >conftest.err
20845   rm -f conftest.er1
20846   cat conftest.err >&5
20847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848   (exit $ac_status); } && {
20849          test -z "$ac_c_werror_flag" ||
20850          test ! -s conftest.err
20851        } && test -s conftest.$ac_objext; then
20852   ac_hi=$ac_mid; break
20853 else
20854   echo "$as_me: failed program was:" >&5
20855 sed 's/^/| /' conftest.$ac_ext >&5
20856
20857         ac_lo=`expr $ac_mid + 1`
20858                         if test $ac_lo -le $ac_mid; then
20859                           ac_lo= ac_hi=
20860                           break
20861                         fi
20862                         ac_mid=`expr 2 '*' $ac_mid + 1`
20863 fi
20864
20865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20866   done
20867 else
20868   echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20870
20871         cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h.  */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h.  */
20877 #include <stddef.h>
20878 int
20879 main ()
20880 {
20881 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20882 test_array [0] = 0
20883
20884   ;
20885   return 0;
20886 }
20887 _ACEOF
20888 rm -f conftest.$ac_objext
20889 if { (ac_try="$ac_compile"
20890 case "(($ac_try" in
20891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892   *) ac_try_echo=$ac_try;;
20893 esac
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895   (eval "$ac_compile") 2>conftest.er1
20896   ac_status=$?
20897   grep -v '^ *+' conftest.er1 >conftest.err
20898   rm -f conftest.er1
20899   cat conftest.err >&5
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); } && {
20902          test -z "$ac_c_werror_flag" ||
20903          test ! -s conftest.err
20904        } && test -s conftest.$ac_objext; then
20905   ac_hi=-1 ac_mid=-1
20906   while :; do
20907     cat >conftest.$ac_ext <<_ACEOF
20908 /* confdefs.h.  */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h.  */
20913 #include <stddef.h>
20914 int
20915 main ()
20916 {
20917 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20918 test_array [0] = 0
20919
20920   ;
20921   return 0;
20922 }
20923 _ACEOF
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928   *) ac_try_echo=$ac_try;;
20929 esac
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931   (eval "$ac_compile") 2>conftest.er1
20932   ac_status=$?
20933   grep -v '^ *+' conftest.er1 >conftest.err
20934   rm -f conftest.er1
20935   cat conftest.err >&5
20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937   (exit $ac_status); } && {
20938          test -z "$ac_c_werror_flag" ||
20939          test ! -s conftest.err
20940        } && test -s conftest.$ac_objext; then
20941   ac_lo=$ac_mid; break
20942 else
20943   echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20945
20946         ac_hi=`expr '(' $ac_mid ')' - 1`
20947                         if test $ac_mid -le $ac_hi; then
20948                           ac_lo= ac_hi=
20949                           break
20950                         fi
20951                         ac_mid=`expr 2 '*' $ac_mid`
20952 fi
20953
20954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20955   done
20956 else
20957   echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20959
20960         ac_lo= ac_hi=
20961 fi
20962
20963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20964 fi
20965
20966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20967 # Binary search between lo and hi bounds.
20968 while test "x$ac_lo" != "x$ac_hi"; do
20969   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20970   cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h.  */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h.  */
20976 #include <stddef.h>
20977 int
20978 main ()
20979 {
20980 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20981 test_array [0] = 0
20982
20983   ;
20984   return 0;
20985 }
20986 _ACEOF
20987 rm -f conftest.$ac_objext
20988 if { (ac_try="$ac_compile"
20989 case "(($ac_try" in
20990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991   *) ac_try_echo=$ac_try;;
20992 esac
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994   (eval "$ac_compile") 2>conftest.er1
20995   ac_status=$?
20996   grep -v '^ *+' conftest.er1 >conftest.err
20997   rm -f conftest.er1
20998   cat conftest.err >&5
20999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000   (exit $ac_status); } && {
21001          test -z "$ac_c_werror_flag" ||
21002          test ! -s conftest.err
21003        } && test -s conftest.$ac_objext; then
21004   ac_hi=$ac_mid
21005 else
21006   echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21008
21009         ac_lo=`expr '(' $ac_mid ')' + 1`
21010 fi
21011
21012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21013 done
21014 case $ac_lo in
21015 ?*) res_hi=$ac_lo;;
21016 '') result=? ;;
21017 esac
21018 else
21019   cat >conftest.$ac_ext <<_ACEOF
21020 /* confdefs.h.  */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h.  */
21025 #include <stddef.h>
21026 static long int longval () { return ~(size_t)0 / 10; }
21027 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21028 #include <stdio.h>
21029 #include <stdlib.h>
21030 int
21031 main ()
21032 {
21033
21034   FILE *f = fopen ("conftest.val", "w");
21035   if (! f)
21036     return 1;
21037   if ((~(size_t)0 / 10) < 0)
21038     {
21039       long int i = longval ();
21040       if (i != (~(size_t)0 / 10))
21041         return 1;
21042       fprintf (f, "%ld\n", i);
21043     }
21044   else
21045     {
21046       unsigned long int i = ulongval ();
21047       if (i != (~(size_t)0 / 10))
21048         return 1;
21049       fprintf (f, "%lu\n", i);
21050     }
21051   return ferror (f) || fclose (f) != 0;
21052
21053   ;
21054   return 0;
21055 }
21056 _ACEOF
21057 rm -f conftest$ac_exeext
21058 if { (ac_try="$ac_link"
21059 case "(($ac_try" in
21060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061   *) ac_try_echo=$ac_try;;
21062 esac
21063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064   (eval "$ac_link") 2>&5
21065   ac_status=$?
21066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21068   { (case "(($ac_try" in
21069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070   *) ac_try_echo=$ac_try;;
21071 esac
21072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21073   (eval "$ac_try") 2>&5
21074   ac_status=$?
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); }; }; then
21077   res_hi=`cat conftest.val`
21078 else
21079   echo "$as_me: program exited with status $ac_status" >&5
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21082
21083 ( exit $ac_status )
21084 result=?
21085 fi
21086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21087 fi
21088 rm -f conftest.val
21089
21090     if test "$cross_compiling" = yes; then
21091   # Depending upon the size, compute the lo and hi bounds.
21092 cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h.  */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h.  */
21098 #include <stddef.h>
21099 int
21100 main ()
21101 {
21102 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21103 test_array [0] = 0
21104
21105   ;
21106   return 0;
21107 }
21108 _ACEOF
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113   *) ac_try_echo=$ac_try;;
21114 esac
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116   (eval "$ac_compile") 2>conftest.er1
21117   ac_status=$?
21118   grep -v '^ *+' conftest.er1 >conftest.err
21119   rm -f conftest.er1
21120   cat conftest.err >&5
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } && {
21123          test -z "$ac_c_werror_flag" ||
21124          test ! -s conftest.err
21125        } && test -s conftest.$ac_objext; then
21126   ac_lo=0 ac_mid=0
21127   while :; do
21128     cat >conftest.$ac_ext <<_ACEOF
21129 /* confdefs.h.  */
21130 _ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h.  */
21134 #include <stddef.h>
21135 int
21136 main ()
21137 {
21138 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21139 test_array [0] = 0
21140
21141   ;
21142   return 0;
21143 }
21144 _ACEOF
21145 rm -f conftest.$ac_objext
21146 if { (ac_try="$ac_compile"
21147 case "(($ac_try" in
21148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149   *) ac_try_echo=$ac_try;;
21150 esac
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152   (eval "$ac_compile") 2>conftest.er1
21153   ac_status=$?
21154   grep -v '^ *+' conftest.er1 >conftest.err
21155   rm -f conftest.er1
21156   cat conftest.err >&5
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } && {
21159          test -z "$ac_c_werror_flag" ||
21160          test ! -s conftest.err
21161        } && test -s conftest.$ac_objext; then
21162   ac_hi=$ac_mid; break
21163 else
21164   echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21166
21167         ac_lo=`expr $ac_mid + 1`
21168                         if test $ac_lo -le $ac_mid; then
21169                           ac_lo= ac_hi=
21170                           break
21171                         fi
21172                         ac_mid=`expr 2 '*' $ac_mid + 1`
21173 fi
21174
21175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21176   done
21177 else
21178   echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21180
21181         cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h.  */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h.  */
21187 #include <stddef.h>
21188 int
21189 main ()
21190 {
21191 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21192 test_array [0] = 0
21193
21194   ;
21195   return 0;
21196 }
21197 _ACEOF
21198 rm -f conftest.$ac_objext
21199 if { (ac_try="$ac_compile"
21200 case "(($ac_try" in
21201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202   *) ac_try_echo=$ac_try;;
21203 esac
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205   (eval "$ac_compile") 2>conftest.er1
21206   ac_status=$?
21207   grep -v '^ *+' conftest.er1 >conftest.err
21208   rm -f conftest.er1
21209   cat conftest.err >&5
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); } && {
21212          test -z "$ac_c_werror_flag" ||
21213          test ! -s conftest.err
21214        } && test -s conftest.$ac_objext; then
21215   ac_hi=-1 ac_mid=-1
21216   while :; do
21217     cat >conftest.$ac_ext <<_ACEOF
21218 /* confdefs.h.  */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h.  */
21223 #include <stddef.h>
21224 int
21225 main ()
21226 {
21227 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21228 test_array [0] = 0
21229
21230   ;
21231   return 0;
21232 }
21233 _ACEOF
21234 rm -f conftest.$ac_objext
21235 if { (ac_try="$ac_compile"
21236 case "(($ac_try" in
21237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238   *) ac_try_echo=$ac_try;;
21239 esac
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241   (eval "$ac_compile") 2>conftest.er1
21242   ac_status=$?
21243   grep -v '^ *+' conftest.er1 >conftest.err
21244   rm -f conftest.er1
21245   cat conftest.err >&5
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); } && {
21248          test -z "$ac_c_werror_flag" ||
21249          test ! -s conftest.err
21250        } && test -s conftest.$ac_objext; then
21251   ac_lo=$ac_mid; break
21252 else
21253   echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21255
21256         ac_hi=`expr '(' $ac_mid ')' - 1`
21257                         if test $ac_mid -le $ac_hi; then
21258                           ac_lo= ac_hi=
21259                           break
21260                         fi
21261                         ac_mid=`expr 2 '*' $ac_mid`
21262 fi
21263
21264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21265   done
21266 else
21267   echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21269
21270         ac_lo= ac_hi=
21271 fi
21272
21273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21274 fi
21275
21276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21277 # Binary search between lo and hi bounds.
21278 while test "x$ac_lo" != "x$ac_hi"; do
21279   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21280   cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h.  */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h.  */
21286 #include <stddef.h>
21287 int
21288 main ()
21289 {
21290 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21291 test_array [0] = 0
21292
21293   ;
21294   return 0;
21295 }
21296 _ACEOF
21297 rm -f conftest.$ac_objext
21298 if { (ac_try="$ac_compile"
21299 case "(($ac_try" in
21300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301   *) ac_try_echo=$ac_try;;
21302 esac
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304   (eval "$ac_compile") 2>conftest.er1
21305   ac_status=$?
21306   grep -v '^ *+' conftest.er1 >conftest.err
21307   rm -f conftest.er1
21308   cat conftest.err >&5
21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); } && {
21311          test -z "$ac_c_werror_flag" ||
21312          test ! -s conftest.err
21313        } && test -s conftest.$ac_objext; then
21314   ac_hi=$ac_mid
21315 else
21316   echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21318
21319         ac_lo=`expr '(' $ac_mid ')' + 1`
21320 fi
21321
21322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21323 done
21324 case $ac_lo in
21325 ?*) res_lo=$ac_lo;;
21326 '') result=? ;;
21327 esac
21328 else
21329   cat >conftest.$ac_ext <<_ACEOF
21330 /* confdefs.h.  */
21331 _ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h.  */
21335 #include <stddef.h>
21336 static long int longval () { return ~(size_t)0 % 10; }
21337 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21338 #include <stdio.h>
21339 #include <stdlib.h>
21340 int
21341 main ()
21342 {
21343
21344   FILE *f = fopen ("conftest.val", "w");
21345   if (! f)
21346     return 1;
21347   if ((~(size_t)0 % 10) < 0)
21348     {
21349       long int i = longval ();
21350       if (i != (~(size_t)0 % 10))
21351         return 1;
21352       fprintf (f, "%ld\n", i);
21353     }
21354   else
21355     {
21356       unsigned long int i = ulongval ();
21357       if (i != (~(size_t)0 % 10))
21358         return 1;
21359       fprintf (f, "%lu\n", i);
21360     }
21361   return ferror (f) || fclose (f) != 0;
21362
21363   ;
21364   return 0;
21365 }
21366 _ACEOF
21367 rm -f conftest$ac_exeext
21368 if { (ac_try="$ac_link"
21369 case "(($ac_try" in
21370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371   *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374   (eval "$ac_link") 2>&5
21375   ac_status=$?
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21378   { (case "(($ac_try" in
21379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380   *) ac_try_echo=$ac_try;;
21381 esac
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383   (eval "$ac_try") 2>&5
21384   ac_status=$?
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); }; }; then
21387   res_lo=`cat conftest.val`
21388 else
21389   echo "$as_me: program exited with status $ac_status" >&5
21390 echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21392
21393 ( exit $ac_status )
21394 result=?
21395 fi
21396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21397 fi
21398 rm -f conftest.val
21399
21400     if test "$cross_compiling" = yes; then
21401   # Depending upon the size, compute the lo and hi bounds.
21402 cat >conftest.$ac_ext <<_ACEOF
21403 /* confdefs.h.  */
21404 _ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h.  */
21408 #include <stddef.h>
21409 int
21410 main ()
21411 {
21412 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21413 test_array [0] = 0
21414
21415   ;
21416   return 0;
21417 }
21418 _ACEOF
21419 rm -f conftest.$ac_objext
21420 if { (ac_try="$ac_compile"
21421 case "(($ac_try" in
21422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423   *) ac_try_echo=$ac_try;;
21424 esac
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426   (eval "$ac_compile") 2>conftest.er1
21427   ac_status=$?
21428   grep -v '^ *+' conftest.er1 >conftest.err
21429   rm -f conftest.er1
21430   cat conftest.err >&5
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } && {
21433          test -z "$ac_c_werror_flag" ||
21434          test ! -s conftest.err
21435        } && test -s conftest.$ac_objext; then
21436   ac_lo=0 ac_mid=0
21437   while :; do
21438     cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h.  */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h.  */
21444 #include <stddef.h>
21445 int
21446 main ()
21447 {
21448 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21449 test_array [0] = 0
21450
21451   ;
21452   return 0;
21453 }
21454 _ACEOF
21455 rm -f conftest.$ac_objext
21456 if { (ac_try="$ac_compile"
21457 case "(($ac_try" in
21458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459   *) ac_try_echo=$ac_try;;
21460 esac
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462   (eval "$ac_compile") 2>conftest.er1
21463   ac_status=$?
21464   grep -v '^ *+' conftest.er1 >conftest.err
21465   rm -f conftest.er1
21466   cat conftest.err >&5
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); } && {
21469          test -z "$ac_c_werror_flag" ||
21470          test ! -s conftest.err
21471        } && test -s conftest.$ac_objext; then
21472   ac_hi=$ac_mid; break
21473 else
21474   echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21476
21477         ac_lo=`expr $ac_mid + 1`
21478                         if test $ac_lo -le $ac_mid; then
21479                           ac_lo= ac_hi=
21480                           break
21481                         fi
21482                         ac_mid=`expr 2 '*' $ac_mid + 1`
21483 fi
21484
21485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21486   done
21487 else
21488   echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21490
21491         cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h.  */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h.  */
21497 #include <stddef.h>
21498 int
21499 main ()
21500 {
21501 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21502 test_array [0] = 0
21503
21504   ;
21505   return 0;
21506 }
21507 _ACEOF
21508 rm -f conftest.$ac_objext
21509 if { (ac_try="$ac_compile"
21510 case "(($ac_try" in
21511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512   *) ac_try_echo=$ac_try;;
21513 esac
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515   (eval "$ac_compile") 2>conftest.er1
21516   ac_status=$?
21517   grep -v '^ *+' conftest.er1 >conftest.err
21518   rm -f conftest.er1
21519   cat conftest.err >&5
21520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521   (exit $ac_status); } && {
21522          test -z "$ac_c_werror_flag" ||
21523          test ! -s conftest.err
21524        } && test -s conftest.$ac_objext; then
21525   ac_hi=-1 ac_mid=-1
21526   while :; do
21527     cat >conftest.$ac_ext <<_ACEOF
21528 /* confdefs.h.  */
21529 _ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h.  */
21533 #include <stddef.h>
21534 int
21535 main ()
21536 {
21537 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21538 test_array [0] = 0
21539
21540   ;
21541   return 0;
21542 }
21543 _ACEOF
21544 rm -f conftest.$ac_objext
21545 if { (ac_try="$ac_compile"
21546 case "(($ac_try" in
21547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548   *) ac_try_echo=$ac_try;;
21549 esac
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551   (eval "$ac_compile") 2>conftest.er1
21552   ac_status=$?
21553   grep -v '^ *+' conftest.er1 >conftest.err
21554   rm -f conftest.er1
21555   cat conftest.err >&5
21556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557   (exit $ac_status); } && {
21558          test -z "$ac_c_werror_flag" ||
21559          test ! -s conftest.err
21560        } && test -s conftest.$ac_objext; then
21561   ac_lo=$ac_mid; break
21562 else
21563   echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21565
21566         ac_hi=`expr '(' $ac_mid ')' - 1`
21567                         if test $ac_mid -le $ac_hi; then
21568                           ac_lo= ac_hi=
21569                           break
21570                         fi
21571                         ac_mid=`expr 2 '*' $ac_mid`
21572 fi
21573
21574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21575   done
21576 else
21577   echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21579
21580         ac_lo= ac_hi=
21581 fi
21582
21583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21584 fi
21585
21586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21587 # Binary search between lo and hi bounds.
21588 while test "x$ac_lo" != "x$ac_hi"; do
21589   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21590   cat >conftest.$ac_ext <<_ACEOF
21591 /* confdefs.h.  */
21592 _ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h.  */
21596 #include <stddef.h>
21597 int
21598 main ()
21599 {
21600 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21601 test_array [0] = 0
21602
21603   ;
21604   return 0;
21605 }
21606 _ACEOF
21607 rm -f conftest.$ac_objext
21608 if { (ac_try="$ac_compile"
21609 case "(($ac_try" in
21610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611   *) ac_try_echo=$ac_try;;
21612 esac
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614   (eval "$ac_compile") 2>conftest.er1
21615   ac_status=$?
21616   grep -v '^ *+' conftest.er1 >conftest.err
21617   rm -f conftest.er1
21618   cat conftest.err >&5
21619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620   (exit $ac_status); } && {
21621          test -z "$ac_c_werror_flag" ||
21622          test ! -s conftest.err
21623        } && test -s conftest.$ac_objext; then
21624   ac_hi=$ac_mid
21625 else
21626   echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21628
21629         ac_lo=`expr '(' $ac_mid ')' + 1`
21630 fi
21631
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633 done
21634 case $ac_lo in
21635 ?*) fits_in_uint=$ac_lo;;
21636 '') result=? ;;
21637 esac
21638 else
21639   cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h.  */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h.  */
21645 #include <stddef.h>
21646 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21647 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21648 #include <stdio.h>
21649 #include <stdlib.h>
21650 int
21651 main ()
21652 {
21653
21654   FILE *f = fopen ("conftest.val", "w");
21655   if (! f)
21656     return 1;
21657   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21658     {
21659       long int i = longval ();
21660       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21661         return 1;
21662       fprintf (f, "%ld\n", i);
21663     }
21664   else
21665     {
21666       unsigned long int i = ulongval ();
21667       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21668         return 1;
21669       fprintf (f, "%lu\n", i);
21670     }
21671   return ferror (f) || fclose (f) != 0;
21672
21673   ;
21674   return 0;
21675 }
21676 _ACEOF
21677 rm -f conftest$ac_exeext
21678 if { (ac_try="$ac_link"
21679 case "(($ac_try" in
21680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21681   *) ac_try_echo=$ac_try;;
21682 esac
21683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21684   (eval "$ac_link") 2>&5
21685   ac_status=$?
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21688   { (case "(($ac_try" in
21689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690   *) ac_try_echo=$ac_try;;
21691 esac
21692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693   (eval "$ac_try") 2>&5
21694   ac_status=$?
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); }; }; then
21697   fits_in_uint=`cat conftest.val`
21698 else
21699   echo "$as_me: program exited with status $ac_status" >&5
21700 echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21702
21703 ( exit $ac_status )
21704 result=?
21705 fi
21706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21707 fi
21708 rm -f conftest.val
21709
21710     if test "$fits_in_uint" = 1; then
21711                   cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h.  */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h.  */
21717 #include <stddef.h>
21718         extern size_t foo;
21719         extern unsigned long foo;
21720
21721 int
21722 main ()
21723 {
21724
21725   ;
21726   return 0;
21727 }
21728 _ACEOF
21729 rm -f conftest.$ac_objext
21730 if { (ac_try="$ac_compile"
21731 case "(($ac_try" in
21732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733   *) ac_try_echo=$ac_try;;
21734 esac
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736   (eval "$ac_compile") 2>conftest.er1
21737   ac_status=$?
21738   grep -v '^ *+' conftest.er1 >conftest.err
21739   rm -f conftest.er1
21740   cat conftest.err >&5
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); } && {
21743          test -z "$ac_c_werror_flag" ||
21744          test ! -s conftest.err
21745        } && test -s conftest.$ac_objext; then
21746   fits_in_uint=0
21747 else
21748   echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21750
21751
21752 fi
21753
21754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21755     fi
21756     if test -z "$result"; then
21757       if test "$fits_in_uint" = 1; then
21758         result="$res_hi$res_lo"U
21759       else
21760         result="$res_hi$res_lo"UL
21761       fi
21762     else
21763             result='~(size_t)0'
21764     fi
21765   fi
21766   { echo "$as_me:$LINENO: result: $result" >&5
21767 echo "${ECHO_T}$result" >&6; }
21768   if test "$result" != yes; then
21769
21770 cat >>confdefs.h <<_ACEOF
21771 #define SIZE_MAX $result
21772 _ACEOF
21773
21774   fi
21775
21776
21777
21778
21779
21780 for ac_header in stdint.h
21781 do
21782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21784   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21787   echo $ECHO_N "(cached) $ECHO_C" >&6
21788 fi
21789 ac_res=`eval echo '${'$as_ac_Header'}'`
21790                { echo "$as_me:$LINENO: result: $ac_res" >&5
21791 echo "${ECHO_T}$ac_res" >&6; }
21792 else
21793   # Is the header compilable?
21794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21796 cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h.  */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h.  */
21802 $ac_includes_default
21803 #include <$ac_header>
21804 _ACEOF
21805 rm -f conftest.$ac_objext
21806 if { (ac_try="$ac_compile"
21807 case "(($ac_try" in
21808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809   *) ac_try_echo=$ac_try;;
21810 esac
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812   (eval "$ac_compile") 2>conftest.er1
21813   ac_status=$?
21814   grep -v '^ *+' conftest.er1 >conftest.err
21815   rm -f conftest.er1
21816   cat conftest.err >&5
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); } && {
21819          test -z "$ac_c_werror_flag" ||
21820          test ! -s conftest.err
21821        } && test -s conftest.$ac_objext; then
21822   ac_header_compiler=yes
21823 else
21824   echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21826
21827         ac_header_compiler=no
21828 fi
21829
21830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21832 echo "${ECHO_T}$ac_header_compiler" >&6; }
21833
21834 # Is the header present?
21835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21837 cat >conftest.$ac_ext <<_ACEOF
21838 /* confdefs.h.  */
21839 _ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h.  */
21843 #include <$ac_header>
21844 _ACEOF
21845 if { (ac_try="$ac_cpp conftest.$ac_ext"
21846 case "(($ac_try" in
21847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848   *) ac_try_echo=$ac_try;;
21849 esac
21850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21852   ac_status=$?
21853   grep -v '^ *+' conftest.er1 >conftest.err
21854   rm -f conftest.er1
21855   cat conftest.err >&5
21856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857   (exit $ac_status); } >/dev/null && {
21858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21859          test ! -s conftest.err
21860        }; then
21861   ac_header_preproc=yes
21862 else
21863   echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21865
21866   ac_header_preproc=no
21867 fi
21868
21869 rm -f conftest.err conftest.$ac_ext
21870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21871 echo "${ECHO_T}$ac_header_preproc" >&6; }
21872
21873 # So?  What about this header?
21874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21875   yes:no: )
21876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21880     ac_header_preproc=yes
21881     ;;
21882   no:yes:* )
21883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21885     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21886 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21887     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21889     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21890 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21893     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21895
21896     ;;
21897 esac
21898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21901   echo $ECHO_N "(cached) $ECHO_C" >&6
21902 else
21903   eval "$as_ac_Header=\$ac_header_preproc"
21904 fi
21905 ac_res=`eval echo '${'$as_ac_Header'}'`
21906                { echo "$as_me:$LINENO: result: $ac_res" >&5
21907 echo "${ECHO_T}$ac_res" >&6; }
21908
21909 fi
21910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21911   cat >>confdefs.h <<_ACEOF
21912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21913 _ACEOF
21914
21915 fi
21916
21917 done
21918
21919
21920
21921
21922
21923
21924
21925
21926   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21927 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21928 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21929   echo $ECHO_N "(cached) $ECHO_C" >&6
21930 else
21931   cat >conftest.$ac_ext <<_ACEOF
21932 /* confdefs.h.  */
21933 _ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h.  */
21937 $ac_includes_default
21938 typedef ptrdiff_t ac__type_new_;
21939 int
21940 main ()
21941 {
21942 if ((ac__type_new_ *) 0)
21943   return 0;
21944 if (sizeof (ac__type_new_))
21945   return 0;
21946   ;
21947   return 0;
21948 }
21949 _ACEOF
21950 rm -f conftest.$ac_objext
21951 if { (ac_try="$ac_compile"
21952 case "(($ac_try" in
21953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954   *) ac_try_echo=$ac_try;;
21955 esac
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957   (eval "$ac_compile") 2>conftest.er1
21958   ac_status=$?
21959   grep -v '^ *+' conftest.er1 >conftest.err
21960   rm -f conftest.er1
21961   cat conftest.err >&5
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); } && {
21964          test -z "$ac_c_werror_flag" ||
21965          test ! -s conftest.err
21966        } && test -s conftest.$ac_objext; then
21967   ac_cv_type_ptrdiff_t=yes
21968 else
21969   echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21971
21972         ac_cv_type_ptrdiff_t=no
21973 fi
21974
21975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21976 fi
21977 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21978 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21979 if test $ac_cv_type_ptrdiff_t = yes; then
21980   :
21981 else
21982
21983 cat >>confdefs.h <<\_ACEOF
21984 #define ptrdiff_t long
21985 _ACEOF
21986
21987
21988 fi
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22001 stdlib.h string.h unistd.h sys/param.h
22002 do
22003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22005   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22008   echo $ECHO_N "(cached) $ECHO_C" >&6
22009 fi
22010 ac_res=`eval echo '${'$as_ac_Header'}'`
22011                { echo "$as_me:$LINENO: result: $ac_res" >&5
22012 echo "${ECHO_T}$ac_res" >&6; }
22013 else
22014   # Is the header compilable?
22015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22017 cat >conftest.$ac_ext <<_ACEOF
22018 /* confdefs.h.  */
22019 _ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h.  */
22023 $ac_includes_default
22024 #include <$ac_header>
22025 _ACEOF
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030   *) ac_try_echo=$ac_try;;
22031 esac
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033   (eval "$ac_compile") 2>conftest.er1
22034   ac_status=$?
22035   grep -v '^ *+' conftest.er1 >conftest.err
22036   rm -f conftest.er1
22037   cat conftest.err >&5
22038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039   (exit $ac_status); } && {
22040          test -z "$ac_c_werror_flag" ||
22041          test ! -s conftest.err
22042        } && test -s conftest.$ac_objext; then
22043   ac_header_compiler=yes
22044 else
22045   echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22047
22048         ac_header_compiler=no
22049 fi
22050
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22053 echo "${ECHO_T}$ac_header_compiler" >&6; }
22054
22055 # Is the header present?
22056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22058 cat >conftest.$ac_ext <<_ACEOF
22059 /* confdefs.h.  */
22060 _ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h.  */
22064 #include <$ac_header>
22065 _ACEOF
22066 if { (ac_try="$ac_cpp conftest.$ac_ext"
22067 case "(($ac_try" in
22068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069   *) ac_try_echo=$ac_try;;
22070 esac
22071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22073   ac_status=$?
22074   grep -v '^ *+' conftest.er1 >conftest.err
22075   rm -f conftest.er1
22076   cat conftest.err >&5
22077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078   (exit $ac_status); } >/dev/null && {
22079          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22080          test ! -s conftest.err
22081        }; then
22082   ac_header_preproc=yes
22083 else
22084   echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22086
22087   ac_header_preproc=no
22088 fi
22089
22090 rm -f conftest.err conftest.$ac_ext
22091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22092 echo "${ECHO_T}$ac_header_preproc" >&6; }
22093
22094 # So?  What about this header?
22095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22096   yes:no: )
22097     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22101     ac_header_preproc=yes
22102     ;;
22103   no:yes:* )
22104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22106     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22107 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22108     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22110     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22111 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22114     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22116
22117     ;;
22118 esac
22119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22122   echo $ECHO_N "(cached) $ECHO_C" >&6
22123 else
22124   eval "$as_ac_Header=\$ac_header_preproc"
22125 fi
22126 ac_res=`eval echo '${'$as_ac_Header'}'`
22127                { echo "$as_me:$LINENO: result: $ac_res" >&5
22128 echo "${ECHO_T}$ac_res" >&6; }
22129
22130 fi
22131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22132   cat >>confdefs.h <<_ACEOF
22133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22134 _ACEOF
22135
22136 fi
22137
22138 done
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22164 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22165 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22166 __fsetlocking
22167 do
22168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22172   echo $ECHO_N "(cached) $ECHO_C" >&6
22173 else
22174   cat >conftest.$ac_ext <<_ACEOF
22175 /* confdefs.h.  */
22176 _ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h.  */
22180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22182 #define $ac_func innocuous_$ac_func
22183
22184 /* System header to define __stub macros and hopefully few prototypes,
22185     which can conflict with char $ac_func (); below.
22186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22187     <limits.h> exists even on freestanding compilers.  */
22188
22189 #ifdef __STDC__
22190 # include <limits.h>
22191 #else
22192 # include <assert.h>
22193 #endif
22194
22195 #undef $ac_func
22196
22197 /* Override any GCC internal prototype to avoid an error.
22198    Use char because int might match the return type of a GCC
22199    builtin and then its argument prototype would still apply.  */
22200 #ifdef __cplusplus
22201 extern "C"
22202 #endif
22203 char $ac_func ();
22204 /* The GNU C library defines this for functions which it implements
22205     to always fail with ENOSYS.  Some functions are actually named
22206     something starting with __ and the normal name is an alias.  */
22207 #if defined __stub_$ac_func || defined __stub___$ac_func
22208 choke me
22209 #endif
22210
22211 int
22212 main ()
22213 {
22214 return $ac_func ();
22215   ;
22216   return 0;
22217 }
22218 _ACEOF
22219 rm -f conftest.$ac_objext conftest$ac_exeext
22220 if { (ac_try="$ac_link"
22221 case "(($ac_try" in
22222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223   *) ac_try_echo=$ac_try;;
22224 esac
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226   (eval "$ac_link") 2>conftest.er1
22227   ac_status=$?
22228   grep -v '^ *+' conftest.er1 >conftest.err
22229   rm -f conftest.er1
22230   cat conftest.err >&5
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); } && {
22233          test -z "$ac_c_werror_flag" ||
22234          test ! -s conftest.err
22235        } && test -s conftest$ac_exeext &&
22236        $as_test_x conftest$ac_exeext; then
22237   eval "$as_ac_var=yes"
22238 else
22239   echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22241
22242         eval "$as_ac_var=no"
22243 fi
22244
22245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22246       conftest$ac_exeext conftest.$ac_ext
22247 fi
22248 ac_res=`eval echo '${'$as_ac_var'}'`
22249                { echo "$as_me:$LINENO: result: $ac_res" >&5
22250 echo "${ECHO_T}$ac_res" >&6; }
22251 if test `eval echo '${'$as_ac_var'}'` = yes; then
22252   cat >>confdefs.h <<_ACEOF
22253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22254 _ACEOF
22255
22256 fi
22257 done
22258
22259
22260
22261   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22262 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22263 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22264   echo $ECHO_N "(cached) $ECHO_C" >&6
22265 else
22266   cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h.  */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h.  */
22272 #include <stdio.h>
22273 int
22274 main ()
22275 {
22276
22277 #ifndef _snprintf
22278   char *p = (char *) _snprintf;
22279 #endif
22280
22281   ;
22282   return 0;
22283 }
22284 _ACEOF
22285 rm -f conftest.$ac_objext
22286 if { (ac_try="$ac_compile"
22287 case "(($ac_try" in
22288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289   *) ac_try_echo=$ac_try;;
22290 esac
22291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22292   (eval "$ac_compile") 2>conftest.er1
22293   ac_status=$?
22294   grep -v '^ *+' conftest.er1 >conftest.err
22295   rm -f conftest.er1
22296   cat conftest.err >&5
22297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298   (exit $ac_status); } && {
22299          test -z "$ac_c_werror_flag" ||
22300          test ! -s conftest.err
22301        } && test -s conftest.$ac_objext; then
22302   ac_cv_have_decl__snprintf=yes
22303 else
22304   echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22306
22307         ac_cv_have_decl__snprintf=no
22308 fi
22309
22310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22311 fi
22312 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22313 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22314   if test $ac_cv_have_decl__snprintf = yes; then
22315     gt_value=1
22316   else
22317     gt_value=0
22318   fi
22319
22320 cat >>confdefs.h <<_ACEOF
22321 #define HAVE_DECL__SNPRINTF $gt_value
22322 _ACEOF
22323
22324
22325
22326   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22327 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22328 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22329   echo $ECHO_N "(cached) $ECHO_C" >&6
22330 else
22331   cat >conftest.$ac_ext <<_ACEOF
22332 /* confdefs.h.  */
22333 _ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h.  */
22337 #include <stdio.h>
22338 int
22339 main ()
22340 {
22341
22342 #ifndef _snwprintf
22343   char *p = (char *) _snwprintf;
22344 #endif
22345
22346   ;
22347   return 0;
22348 }
22349 _ACEOF
22350 rm -f conftest.$ac_objext
22351 if { (ac_try="$ac_compile"
22352 case "(($ac_try" in
22353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354   *) ac_try_echo=$ac_try;;
22355 esac
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357   (eval "$ac_compile") 2>conftest.er1
22358   ac_status=$?
22359   grep -v '^ *+' conftest.er1 >conftest.err
22360   rm -f conftest.er1
22361   cat conftest.err >&5
22362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363   (exit $ac_status); } && {
22364          test -z "$ac_c_werror_flag" ||
22365          test ! -s conftest.err
22366        } && test -s conftest.$ac_objext; then
22367   ac_cv_have_decl__snwprintf=yes
22368 else
22369   echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22371
22372         ac_cv_have_decl__snwprintf=no
22373 fi
22374
22375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376 fi
22377 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22378 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22379   if test $ac_cv_have_decl__snwprintf = yes; then
22380     gt_value=1
22381   else
22382     gt_value=0
22383   fi
22384
22385 cat >>confdefs.h <<_ACEOF
22386 #define HAVE_DECL__SNWPRINTF $gt_value
22387 _ACEOF
22388
22389
22390
22391
22392   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22393 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22394 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22395   echo $ECHO_N "(cached) $ECHO_C" >&6
22396 else
22397   cat >conftest.$ac_ext <<_ACEOF
22398 /* confdefs.h.  */
22399 _ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h.  */
22403 #include <stdio.h>
22404 int
22405 main ()
22406 {
22407
22408 #ifndef feof_unlocked
22409   char *p = (char *) feof_unlocked;
22410 #endif
22411
22412   ;
22413   return 0;
22414 }
22415 _ACEOF
22416 rm -f conftest.$ac_objext
22417 if { (ac_try="$ac_compile"
22418 case "(($ac_try" in
22419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420   *) ac_try_echo=$ac_try;;
22421 esac
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423   (eval "$ac_compile") 2>conftest.er1
22424   ac_status=$?
22425   grep -v '^ *+' conftest.er1 >conftest.err
22426   rm -f conftest.er1
22427   cat conftest.err >&5
22428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429   (exit $ac_status); } && {
22430          test -z "$ac_c_werror_flag" ||
22431          test ! -s conftest.err
22432        } && test -s conftest.$ac_objext; then
22433   ac_cv_have_decl_feof_unlocked=yes
22434 else
22435   echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22437
22438         ac_cv_have_decl_feof_unlocked=no
22439 fi
22440
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 fi
22443 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22444 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22445   if test $ac_cv_have_decl_feof_unlocked = yes; then
22446     gt_value=1
22447   else
22448     gt_value=0
22449   fi
22450
22451 cat >>confdefs.h <<_ACEOF
22452 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22453 _ACEOF
22454
22455
22456
22457   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22458 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22459 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22460   echo $ECHO_N "(cached) $ECHO_C" >&6
22461 else
22462   cat >conftest.$ac_ext <<_ACEOF
22463 /* confdefs.h.  */
22464 _ACEOF
22465 cat confdefs.h >>conftest.$ac_ext
22466 cat >>conftest.$ac_ext <<_ACEOF
22467 /* end confdefs.h.  */
22468 #include <stdio.h>
22469 int
22470 main ()
22471 {
22472
22473 #ifndef fgets_unlocked
22474   char *p = (char *) fgets_unlocked;
22475 #endif
22476
22477   ;
22478   return 0;
22479 }
22480 _ACEOF
22481 rm -f conftest.$ac_objext
22482 if { (ac_try="$ac_compile"
22483 case "(($ac_try" in
22484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485   *) ac_try_echo=$ac_try;;
22486 esac
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488   (eval "$ac_compile") 2>conftest.er1
22489   ac_status=$?
22490   grep -v '^ *+' conftest.er1 >conftest.err
22491   rm -f conftest.er1
22492   cat conftest.err >&5
22493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494   (exit $ac_status); } && {
22495          test -z "$ac_c_werror_flag" ||
22496          test ! -s conftest.err
22497        } && test -s conftest.$ac_objext; then
22498   ac_cv_have_decl_fgets_unlocked=yes
22499 else
22500   echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22502
22503         ac_cv_have_decl_fgets_unlocked=no
22504 fi
22505
22506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507 fi
22508 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22509 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22510   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22511     gt_value=1
22512   else
22513     gt_value=0
22514   fi
22515
22516 cat >>confdefs.h <<_ACEOF
22517 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22518 _ACEOF
22519
22520
22521
22522   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22523 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22524 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22525   echo $ECHO_N "(cached) $ECHO_C" >&6
22526 else
22527   cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h.  */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h.  */
22533 #include <stdio.h>
22534 int
22535 main ()
22536 {
22537
22538 #ifndef getc_unlocked
22539   char *p = (char *) getc_unlocked;
22540 #endif
22541
22542   ;
22543   return 0;
22544 }
22545 _ACEOF
22546 rm -f conftest.$ac_objext
22547 if { (ac_try="$ac_compile"
22548 case "(($ac_try" in
22549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550   *) ac_try_echo=$ac_try;;
22551 esac
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553   (eval "$ac_compile") 2>conftest.er1
22554   ac_status=$?
22555   grep -v '^ *+' conftest.er1 >conftest.err
22556   rm -f conftest.er1
22557   cat conftest.err >&5
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); } && {
22560          test -z "$ac_c_werror_flag" ||
22561          test ! -s conftest.err
22562        } && test -s conftest.$ac_objext; then
22563   ac_cv_have_decl_getc_unlocked=yes
22564 else
22565   echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22567
22568         ac_cv_have_decl_getc_unlocked=no
22569 fi
22570
22571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572 fi
22573 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22574 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22575   if test $ac_cv_have_decl_getc_unlocked = yes; then
22576     gt_value=1
22577   else
22578     gt_value=0
22579   fi
22580
22581 cat >>confdefs.h <<_ACEOF
22582 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22583 _ACEOF
22584
22585
22586
22587   case $gt_cv_func_printf_posix in
22588     *yes) HAVE_POSIX_PRINTF=1 ;;
22589     *) HAVE_POSIX_PRINTF=0 ;;
22590   esac
22591
22592   if test "$ac_cv_func_asprintf" = yes; then
22593     HAVE_ASPRINTF=1
22594   else
22595     HAVE_ASPRINTF=0
22596   fi
22597
22598   if test "$ac_cv_func_snprintf" = yes; then
22599     HAVE_SNPRINTF=1
22600   else
22601     HAVE_SNPRINTF=0
22602   fi
22603
22604   if test "$ac_cv_func_wprintf" = yes; then
22605     HAVE_WPRINTF=1
22606   else
22607     HAVE_WPRINTF=0
22608   fi
22609
22610
22611
22612
22613
22614
22615
22616           am_save_CPPFLAGS="$CPPFLAGS"
22617
22618   for element in $INCICONV; do
22619     haveit=
22620     for x in $CPPFLAGS; do
22621
22622   acl_save_prefix="$prefix"
22623   prefix="$acl_final_prefix"
22624   acl_save_exec_prefix="$exec_prefix"
22625   exec_prefix="$acl_final_exec_prefix"
22626   eval x=\"$x\"
22627   exec_prefix="$acl_save_exec_prefix"
22628   prefix="$acl_save_prefix"
22629
22630       if test "X$x" = "X$element"; then
22631         haveit=yes
22632         break
22633       fi
22634     done
22635     if test -z "$haveit"; then
22636       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22637     fi
22638   done
22639
22640
22641   { echo "$as_me:$LINENO: checking for iconv" >&5
22642 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22643 if test "${am_cv_func_iconv+set}" = set; then
22644   echo $ECHO_N "(cached) $ECHO_C" >&6
22645 else
22646
22647     am_cv_func_iconv="no, consider installing GNU libiconv"
22648     am_cv_lib_iconv=no
22649     cat >conftest.$ac_ext <<_ACEOF
22650 /* confdefs.h.  */
22651 _ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h.  */
22655 #include <stdlib.h>
22656 #include <iconv.h>
22657 int
22658 main ()
22659 {
22660 iconv_t cd = iconv_open("","");
22661        iconv(cd,NULL,NULL,NULL,NULL);
22662        iconv_close(cd);
22663   ;
22664   return 0;
22665 }
22666 _ACEOF
22667 rm -f conftest.$ac_objext conftest$ac_exeext
22668 if { (ac_try="$ac_link"
22669 case "(($ac_try" in
22670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671   *) ac_try_echo=$ac_try;;
22672 esac
22673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22674   (eval "$ac_link") 2>conftest.er1
22675   ac_status=$?
22676   grep -v '^ *+' conftest.er1 >conftest.err
22677   rm -f conftest.er1
22678   cat conftest.err >&5
22679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680   (exit $ac_status); } && {
22681          test -z "$ac_c_werror_flag" ||
22682          test ! -s conftest.err
22683        } && test -s conftest$ac_exeext &&
22684        $as_test_x conftest$ac_exeext; then
22685   am_cv_func_iconv=yes
22686 else
22687   echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690
22691 fi
22692
22693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22694       conftest$ac_exeext conftest.$ac_ext
22695     if test "$am_cv_func_iconv" != yes; then
22696       am_save_LIBS="$LIBS"
22697       LIBS="$LIBS $LIBICONV"
22698       cat >conftest.$ac_ext <<_ACEOF
22699 /* confdefs.h.  */
22700 _ACEOF
22701 cat confdefs.h >>conftest.$ac_ext
22702 cat >>conftest.$ac_ext <<_ACEOF
22703 /* end confdefs.h.  */
22704 #include <stdlib.h>
22705 #include <iconv.h>
22706 int
22707 main ()
22708 {
22709 iconv_t cd = iconv_open("","");
22710          iconv(cd,NULL,NULL,NULL,NULL);
22711          iconv_close(cd);
22712   ;
22713   return 0;
22714 }
22715 _ACEOF
22716 rm -f conftest.$ac_objext conftest$ac_exeext
22717 if { (ac_try="$ac_link"
22718 case "(($ac_try" in
22719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720   *) ac_try_echo=$ac_try;;
22721 esac
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723   (eval "$ac_link") 2>conftest.er1
22724   ac_status=$?
22725   grep -v '^ *+' conftest.er1 >conftest.err
22726   rm -f conftest.er1
22727   cat conftest.err >&5
22728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729   (exit $ac_status); } && {
22730          test -z "$ac_c_werror_flag" ||
22731          test ! -s conftest.err
22732        } && test -s conftest$ac_exeext &&
22733        $as_test_x conftest$ac_exeext; then
22734   am_cv_lib_iconv=yes
22735         am_cv_func_iconv=yes
22736 else
22737   echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22739
22740
22741 fi
22742
22743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22744       conftest$ac_exeext conftest.$ac_ext
22745       LIBS="$am_save_LIBS"
22746     fi
22747
22748 fi
22749 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22750 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22751   if test "$am_cv_func_iconv" = yes; then
22752
22753 cat >>confdefs.h <<\_ACEOF
22754 #define HAVE_ICONV 1
22755 _ACEOF
22756
22757   fi
22758   if test "$am_cv_lib_iconv" = yes; then
22759     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22760 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22761     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22762 echo "${ECHO_T}$LIBICONV" >&6; }
22763   else
22764             CPPFLAGS="$am_save_CPPFLAGS"
22765     LIBICONV=
22766     LTLIBICONV=
22767   fi
22768
22769
22770
22771   if test "$am_cv_func_iconv" = yes; then
22772     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22773 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22774     if test "${am_cv_proto_iconv+set}" = set; then
22775   echo $ECHO_N "(cached) $ECHO_C" >&6
22776 else
22777
22778       cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h.  */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h.  */
22784
22785 #include <stdlib.h>
22786 #include <iconv.h>
22787 extern
22788 #ifdef __cplusplus
22789 "C"
22790 #endif
22791 #if defined(__STDC__) || defined(__cplusplus)
22792 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22793 #else
22794 size_t iconv();
22795 #endif
22796
22797 int
22798 main ()
22799 {
22800
22801   ;
22802   return 0;
22803 }
22804 _ACEOF
22805 rm -f conftest.$ac_objext
22806 if { (ac_try="$ac_compile"
22807 case "(($ac_try" in
22808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22809   *) ac_try_echo=$ac_try;;
22810 esac
22811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22812   (eval "$ac_compile") 2>conftest.er1
22813   ac_status=$?
22814   grep -v '^ *+' conftest.er1 >conftest.err
22815   rm -f conftest.er1
22816   cat conftest.err >&5
22817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818   (exit $ac_status); } && {
22819          test -z "$ac_c_werror_flag" ||
22820          test ! -s conftest.err
22821        } && test -s conftest.$ac_objext; then
22822   am_cv_proto_iconv_arg1=""
22823 else
22824   echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22826
22827         am_cv_proto_iconv_arg1="const"
22828 fi
22829
22830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22831       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);"
22832 fi
22833
22834     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22835     { echo "$as_me:$LINENO: result: ${ac_t:-
22836          }$am_cv_proto_iconv" >&5
22837 echo "${ECHO_T}${ac_t:-
22838          }$am_cv_proto_iconv" >&6; }
22839
22840 cat >>confdefs.h <<_ACEOF
22841 #define ICONV_CONST $am_cv_proto_iconv_arg1
22842 _ACEOF
22843
22844   fi
22845
22846
22847   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22848 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22849 if test "${am_cv_langinfo_codeset+set}" = set; then
22850   echo $ECHO_N "(cached) $ECHO_C" >&6
22851 else
22852   cat >conftest.$ac_ext <<_ACEOF
22853 /* confdefs.h.  */
22854 _ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h.  */
22858 #include <langinfo.h>
22859 int
22860 main ()
22861 {
22862 char* cs = nl_langinfo(CODESET);
22863   ;
22864   return 0;
22865 }
22866 _ACEOF
22867 rm -f conftest.$ac_objext conftest$ac_exeext
22868 if { (ac_try="$ac_link"
22869 case "(($ac_try" in
22870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22871   *) ac_try_echo=$ac_try;;
22872 esac
22873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874   (eval "$ac_link") 2>conftest.er1
22875   ac_status=$?
22876   grep -v '^ *+' conftest.er1 >conftest.err
22877   rm -f conftest.er1
22878   cat conftest.err >&5
22879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880   (exit $ac_status); } && {
22881          test -z "$ac_c_werror_flag" ||
22882          test ! -s conftest.err
22883        } && test -s conftest$ac_exeext &&
22884        $as_test_x conftest$ac_exeext; then
22885   am_cv_langinfo_codeset=yes
22886 else
22887   echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22889
22890         am_cv_langinfo_codeset=no
22891 fi
22892
22893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22894       conftest$ac_exeext conftest.$ac_ext
22895
22896 fi
22897 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22898 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22899   if test $am_cv_langinfo_codeset = yes; then
22900
22901 cat >>confdefs.h <<\_ACEOF
22902 #define HAVE_LANGINFO_CODESET 1
22903 _ACEOF
22904
22905   fi
22906
22907   if test $ac_cv_header_locale_h = yes; then
22908
22909   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22910 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22911 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22912   echo $ECHO_N "(cached) $ECHO_C" >&6
22913 else
22914   cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h.  */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h.  */
22920 #include <locale.h>
22921 int
22922 main ()
22923 {
22924 return LC_MESSAGES
22925   ;
22926   return 0;
22927 }
22928 _ACEOF
22929 rm -f conftest.$ac_objext conftest$ac_exeext
22930 if { (ac_try="$ac_link"
22931 case "(($ac_try" in
22932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933   *) ac_try_echo=$ac_try;;
22934 esac
22935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936   (eval "$ac_link") 2>conftest.er1
22937   ac_status=$?
22938   grep -v '^ *+' conftest.er1 >conftest.err
22939   rm -f conftest.er1
22940   cat conftest.err >&5
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); } && {
22943          test -z "$ac_c_werror_flag" ||
22944          test ! -s conftest.err
22945        } && test -s conftest$ac_exeext &&
22946        $as_test_x conftest$ac_exeext; then
22947   gt_cv_val_LC_MESSAGES=yes
22948 else
22949   echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22951
22952         gt_cv_val_LC_MESSAGES=no
22953 fi
22954
22955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22956       conftest$ac_exeext conftest.$ac_ext
22957 fi
22958 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22959 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22960   if test $gt_cv_val_LC_MESSAGES = yes; then
22961
22962 cat >>confdefs.h <<\_ACEOF
22963 #define HAVE_LC_MESSAGES 1
22964 _ACEOF
22965
22966   fi
22967
22968   fi
22969
22970   if test -n "$INTL_MACOSX_LIBS"; then
22971     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22972   fi
22973
22974                       for ac_prog in bison
22975 do
22976   # Extract the first word of "$ac_prog", so it can be a program name with args.
22977 set dummy $ac_prog; ac_word=$2
22978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22980 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22981   echo $ECHO_N "(cached) $ECHO_C" >&6
22982 else
22983   if test -n "$INTLBISON"; then
22984   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22985 else
22986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22987 for as_dir in $PATH
22988 do
22989   IFS=$as_save_IFS
22990   test -z "$as_dir" && as_dir=.
22991   for ac_exec_ext in '' $ac_executable_extensions; do
22992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22993     ac_cv_prog_INTLBISON="$ac_prog"
22994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22995     break 2
22996   fi
22997 done
22998 done
22999 IFS=$as_save_IFS
23000
23001 fi
23002 fi
23003 INTLBISON=$ac_cv_prog_INTLBISON
23004 if test -n "$INTLBISON"; then
23005   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23006 echo "${ECHO_T}$INTLBISON" >&6; }
23007 else
23008   { echo "$as_me:$LINENO: result: no" >&5
23009 echo "${ECHO_T}no" >&6; }
23010 fi
23011
23012
23013   test -n "$INTLBISON" && break
23014 done
23015
23016   if test -z "$INTLBISON"; then
23017     ac_verc_fail=yes
23018   else
23019         { echo "$as_me:$LINENO: checking version of bison" >&5
23020 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23021     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23022     case $ac_prog_version in
23023       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23024       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23025          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23026       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23027     esac
23028     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23029 echo "${ECHO_T}$ac_prog_version" >&6; }
23030   fi
23031   if test $ac_verc_fail = yes; then
23032     INTLBISON=:
23033   fi
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23051 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23052 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23053   echo $ECHO_N "(cached) $ECHO_C" >&6
23054 else
23055   gt_save_CPPFLAGS="$CPPFLAGS"
23056      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23057      gt_save_LIBS="$LIBS"
23058      LIBS="$LIBS -framework CoreFoundation"
23059      cat >conftest.$ac_ext <<_ACEOF
23060 /* confdefs.h.  */
23061 _ACEOF
23062 cat confdefs.h >>conftest.$ac_ext
23063 cat >>conftest.$ac_ext <<_ACEOF
23064 /* end confdefs.h.  */
23065 #include <CFPreferences.h>
23066 int
23067 main ()
23068 {
23069 CFPreferencesCopyAppValue(NULL, NULL)
23070   ;
23071   return 0;
23072 }
23073 _ACEOF
23074 rm -f conftest.$ac_objext conftest$ac_exeext
23075 if { (ac_try="$ac_link"
23076 case "(($ac_try" in
23077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078   *) ac_try_echo=$ac_try;;
23079 esac
23080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081   (eval "$ac_link") 2>conftest.er1
23082   ac_status=$?
23083   grep -v '^ *+' conftest.er1 >conftest.err
23084   rm -f conftest.er1
23085   cat conftest.err >&5
23086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087   (exit $ac_status); } && {
23088          test -z "$ac_c_werror_flag" ||
23089          test ! -s conftest.err
23090        } && test -s conftest$ac_exeext &&
23091        $as_test_x conftest$ac_exeext; then
23092   gt_cv_func_CFPreferencesCopyAppValue=yes
23093 else
23094   echo "$as_me: failed program was:" >&5
23095 sed 's/^/| /' conftest.$ac_ext >&5
23096
23097         gt_cv_func_CFPreferencesCopyAppValue=no
23098 fi
23099
23100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23101       conftest$ac_exeext conftest.$ac_ext
23102      CPPFLAGS="$gt_save_CPPFLAGS"
23103      LIBS="$gt_save_LIBS"
23104 fi
23105 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23106 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23107   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23108
23109 cat >>confdefs.h <<\_ACEOF
23110 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23111 _ACEOF
23112
23113   fi
23114     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23115 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23116 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23117   echo $ECHO_N "(cached) $ECHO_C" >&6
23118 else
23119   gt_save_CPPFLAGS="$CPPFLAGS"
23120      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23121      gt_save_LIBS="$LIBS"
23122      LIBS="$LIBS -framework CoreFoundation"
23123      cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h.  */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h.  */
23129 #include <CFLocale.h>
23130 int
23131 main ()
23132 {
23133 CFLocaleCopyCurrent();
23134   ;
23135   return 0;
23136 }
23137 _ACEOF
23138 rm -f conftest.$ac_objext conftest$ac_exeext
23139 if { (ac_try="$ac_link"
23140 case "(($ac_try" in
23141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23142   *) ac_try_echo=$ac_try;;
23143 esac
23144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23145   (eval "$ac_link") 2>conftest.er1
23146   ac_status=$?
23147   grep -v '^ *+' conftest.er1 >conftest.err
23148   rm -f conftest.er1
23149   cat conftest.err >&5
23150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); } && {
23152          test -z "$ac_c_werror_flag" ||
23153          test ! -s conftest.err
23154        } && test -s conftest$ac_exeext &&
23155        $as_test_x conftest$ac_exeext; then
23156   gt_cv_func_CFLocaleCopyCurrent=yes
23157 else
23158   echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161         gt_cv_func_CFLocaleCopyCurrent=no
23162 fi
23163
23164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23165       conftest$ac_exeext conftest.$ac_ext
23166      CPPFLAGS="$gt_save_CPPFLAGS"
23167      LIBS="$gt_save_LIBS"
23168 fi
23169 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23170 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23171   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23172
23173 cat >>confdefs.h <<\_ACEOF
23174 #define HAVE_CFLOCALECOPYCURRENT 1
23175 _ACEOF
23176
23177   fi
23178   INTL_MACOSX_LIBS=
23179   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23180     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23181   fi
23182
23183
23184
23185
23186   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23187 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23188     # Check whether --enable-nls was given.
23189 if test "${enable_nls+set}" = set; then
23190   enableval=$enable_nls; USE_NLS=$enableval
23191 else
23192   USE_NLS=yes
23193 fi
23194
23195   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23196 echo "${ECHO_T}$USE_NLS" >&6; }
23197
23198
23199
23200
23201     BUILD_INCLUDED_LIBINTL=no
23202     USE_INCLUDED_LIBINTL=no
23203
23204   LIBINTL=
23205   LTLIBINTL=
23206   POSUB=
23207
23208     if test "$USE_NLS" = "yes"; then
23209     gt_use_preinstalled_gnugettext=no
23210
23211       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23212 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23213
23214 # Check whether --with-included-gettext was given.
23215 if test "${with_included_gettext+set}" = set; then
23216   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23217 else
23218   nls_cv_force_use_gnu_gettext=no
23219 fi
23220
23221       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23222 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23223
23224       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23225       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23226
23227
23228
23229
23230
23231
23232         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23233 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23234 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23235   echo $ECHO_N "(cached) $ECHO_C" >&6
23236 else
23237   cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243 #include <libintl.h>
23244 extern int _nl_msg_cat_cntr;
23245 extern int *_nl_domain_bindings;
23246 int
23247 main ()
23248 {
23249 bindtextdomain ("", "");
23250 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23251   ;
23252   return 0;
23253 }
23254 _ACEOF
23255 rm -f conftest.$ac_objext conftest$ac_exeext
23256 if { (ac_try="$ac_link"
23257 case "(($ac_try" in
23258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259   *) ac_try_echo=$ac_try;;
23260 esac
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262   (eval "$ac_link") 2>conftest.er1
23263   ac_status=$?
23264   grep -v '^ *+' conftest.er1 >conftest.err
23265   rm -f conftest.er1
23266   cat conftest.err >&5
23267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268   (exit $ac_status); } && {
23269          test -z "$ac_c_werror_flag" ||
23270          test ! -s conftest.err
23271        } && test -s conftest$ac_exeext &&
23272        $as_test_x conftest$ac_exeext; then
23273   gt_cv_func_gnugettext1_libc=yes
23274 else
23275   echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.$ac_ext >&5
23277
23278         gt_cv_func_gnugettext1_libc=no
23279 fi
23280
23281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23282       conftest$ac_exeext conftest.$ac_ext
23283 fi
23284 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23285 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23286
23287         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23288
23289
23290
23291     use_additional=yes
23292
23293   acl_save_prefix="$prefix"
23294   prefix="$acl_final_prefix"
23295   acl_save_exec_prefix="$exec_prefix"
23296   exec_prefix="$acl_final_exec_prefix"
23297
23298     eval additional_includedir=\"$includedir\"
23299     eval additional_libdir=\"$libdir\"
23300
23301   exec_prefix="$acl_save_exec_prefix"
23302   prefix="$acl_save_prefix"
23303
23304
23305 # Check whether --with-libintl-prefix was given.
23306 if test "${with_libintl_prefix+set}" = set; then
23307   withval=$with_libintl_prefix;
23308     if test "X$withval" = "Xno"; then
23309       use_additional=no
23310     else
23311       if test "X$withval" = "X"; then
23312
23313   acl_save_prefix="$prefix"
23314   prefix="$acl_final_prefix"
23315   acl_save_exec_prefix="$exec_prefix"
23316   exec_prefix="$acl_final_exec_prefix"
23317
23318           eval additional_includedir=\"$includedir\"
23319           eval additional_libdir=\"$libdir\"
23320
23321   exec_prefix="$acl_save_exec_prefix"
23322   prefix="$acl_save_prefix"
23323
23324       else
23325         additional_includedir="$withval/include"
23326         additional_libdir="$withval/lib"
23327       fi
23328     fi
23329
23330 fi
23331
23332       LIBINTL=
23333   LTLIBINTL=
23334   INCINTL=
23335   rpathdirs=
23336   ltrpathdirs=
23337   names_already_handled=
23338   names_next_round='intl '
23339   while test -n "$names_next_round"; do
23340     names_this_round="$names_next_round"
23341     names_next_round=
23342     for name in $names_this_round; do
23343       already_handled=
23344       for n in $names_already_handled; do
23345         if test "$n" = "$name"; then
23346           already_handled=yes
23347           break
23348         fi
23349       done
23350       if test -z "$already_handled"; then
23351         names_already_handled="$names_already_handled $name"
23352                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23353         eval value=\"\$HAVE_LIB$uppername\"
23354         if test -n "$value"; then
23355           if test "$value" = yes; then
23356             eval value=\"\$LIB$uppername\"
23357             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23358             eval value=\"\$LTLIB$uppername\"
23359             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23360           else
23361                                     :
23362           fi
23363         else
23364                               found_dir=
23365           found_la=
23366           found_so=
23367           found_a=
23368           if test $use_additional = yes; then
23369             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23370               found_dir="$additional_libdir"
23371               found_so="$additional_libdir/lib$name.$shlibext"
23372               if test -f "$additional_libdir/lib$name.la"; then
23373                 found_la="$additional_libdir/lib$name.la"
23374               fi
23375             else
23376               if test -f "$additional_libdir/lib$name.$libext"; then
23377                 found_dir="$additional_libdir"
23378                 found_a="$additional_libdir/lib$name.$libext"
23379                 if test -f "$additional_libdir/lib$name.la"; then
23380                   found_la="$additional_libdir/lib$name.la"
23381                 fi
23382               fi
23383             fi
23384           fi
23385           if test "X$found_dir" = "X"; then
23386             for x in $LDFLAGS $LTLIBINTL; do
23387
23388   acl_save_prefix="$prefix"
23389   prefix="$acl_final_prefix"
23390   acl_save_exec_prefix="$exec_prefix"
23391   exec_prefix="$acl_final_exec_prefix"
23392   eval x=\"$x\"
23393   exec_prefix="$acl_save_exec_prefix"
23394   prefix="$acl_save_prefix"
23395
23396               case "$x" in
23397                 -L*)
23398                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23399                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23400                     found_dir="$dir"
23401                     found_so="$dir/lib$name.$shlibext"
23402                     if test -f "$dir/lib$name.la"; then
23403                       found_la="$dir/lib$name.la"
23404                     fi
23405                   else
23406                     if test -f "$dir/lib$name.$libext"; then
23407                       found_dir="$dir"
23408                       found_a="$dir/lib$name.$libext"
23409                       if test -f "$dir/lib$name.la"; then
23410                         found_la="$dir/lib$name.la"
23411                       fi
23412                     fi
23413                   fi
23414                   ;;
23415               esac
23416               if test "X$found_dir" != "X"; then
23417                 break
23418               fi
23419             done
23420           fi
23421           if test "X$found_dir" != "X"; then
23422                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23423             if test "X$found_so" != "X"; then
23424                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23425                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23426               else
23427                                                                                 haveit=
23428                 for x in $ltrpathdirs; do
23429                   if test "X$x" = "X$found_dir"; then
23430                     haveit=yes
23431                     break
23432                   fi
23433                 done
23434                 if test -z "$haveit"; then
23435                   ltrpathdirs="$ltrpathdirs $found_dir"
23436                 fi
23437                                 if test "$hardcode_direct" = yes; then
23438                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23439                 else
23440                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23441                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23442                                                             haveit=
23443                     for x in $rpathdirs; do
23444                       if test "X$x" = "X$found_dir"; then
23445                         haveit=yes
23446                         break
23447                       fi
23448                     done
23449                     if test -z "$haveit"; then
23450                       rpathdirs="$rpathdirs $found_dir"
23451                     fi
23452                   else
23453                                                                                 haveit=
23454                     for x in $LDFLAGS $LIBINTL; do
23455
23456   acl_save_prefix="$prefix"
23457   prefix="$acl_final_prefix"
23458   acl_save_exec_prefix="$exec_prefix"
23459   exec_prefix="$acl_final_exec_prefix"
23460   eval x=\"$x\"
23461   exec_prefix="$acl_save_exec_prefix"
23462   prefix="$acl_save_prefix"
23463
23464                       if test "X$x" = "X-L$found_dir"; then
23465                         haveit=yes
23466                         break
23467                       fi
23468                     done
23469                     if test -z "$haveit"; then
23470                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23471                     fi
23472                     if test "$hardcode_minus_L" != no; then
23473                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23474                     else
23475                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23476                     fi
23477                   fi
23478                 fi
23479               fi
23480             else
23481               if test "X$found_a" != "X"; then
23482                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23483               else
23484                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23485               fi
23486             fi
23487                         additional_includedir=
23488             case "$found_dir" in
23489               */lib | */lib/)
23490                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23491                 additional_includedir="$basedir/include"
23492                 ;;
23493             esac
23494             if test "X$additional_includedir" != "X"; then
23495                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23496                 haveit=
23497                 if test "X$additional_includedir" = "X/usr/local/include"; then
23498                   if test -n "$GCC"; then
23499                     case $host_os in
23500                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23501                     esac
23502                   fi
23503                 fi
23504                 if test -z "$haveit"; then
23505                   for x in $CPPFLAGS $INCINTL; do
23506
23507   acl_save_prefix="$prefix"
23508   prefix="$acl_final_prefix"
23509   acl_save_exec_prefix="$exec_prefix"
23510   exec_prefix="$acl_final_exec_prefix"
23511   eval x=\"$x\"
23512   exec_prefix="$acl_save_exec_prefix"
23513   prefix="$acl_save_prefix"
23514
23515                     if test "X$x" = "X-I$additional_includedir"; then
23516                       haveit=yes
23517                       break
23518                     fi
23519                   done
23520                   if test -z "$haveit"; then
23521                     if test -d "$additional_includedir"; then
23522                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23523                     fi
23524                   fi
23525                 fi
23526               fi
23527             fi
23528                         if test -n "$found_la"; then
23529                                                         save_libdir="$libdir"
23530               case "$found_la" in
23531                 */* | *\\*) . "$found_la" ;;
23532                 *) . "./$found_la" ;;
23533               esac
23534               libdir="$save_libdir"
23535                             for dep in $dependency_libs; do
23536                 case "$dep" in
23537                   -L*)
23538                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23539                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23540                       haveit=
23541                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23542                         if test -n "$GCC"; then
23543                           case $host_os in
23544                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23545                           esac
23546                         fi
23547                       fi
23548                       if test -z "$haveit"; then
23549                         haveit=
23550                         for x in $LDFLAGS $LIBINTL; do
23551
23552   acl_save_prefix="$prefix"
23553   prefix="$acl_final_prefix"
23554   acl_save_exec_prefix="$exec_prefix"
23555   exec_prefix="$acl_final_exec_prefix"
23556   eval x=\"$x\"
23557   exec_prefix="$acl_save_exec_prefix"
23558   prefix="$acl_save_prefix"
23559
23560                           if test "X$x" = "X-L$additional_libdir"; then
23561                             haveit=yes
23562                             break
23563                           fi
23564                         done
23565                         if test -z "$haveit"; then
23566                           if test -d "$additional_libdir"; then
23567                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23568                           fi
23569                         fi
23570                         haveit=
23571                         for x in $LDFLAGS $LTLIBINTL; do
23572
23573   acl_save_prefix="$prefix"
23574   prefix="$acl_final_prefix"
23575   acl_save_exec_prefix="$exec_prefix"
23576   exec_prefix="$acl_final_exec_prefix"
23577   eval x=\"$x\"
23578   exec_prefix="$acl_save_exec_prefix"
23579   prefix="$acl_save_prefix"
23580
23581                           if test "X$x" = "X-L$additional_libdir"; then
23582                             haveit=yes
23583                             break
23584                           fi
23585                         done
23586                         if test -z "$haveit"; then
23587                           if test -d "$additional_libdir"; then
23588                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23589                           fi
23590                         fi
23591                       fi
23592                     fi
23593                     ;;
23594                   -R*)
23595                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23596                     if test "$enable_rpath" != no; then
23597                                                                   haveit=
23598                       for x in $rpathdirs; do
23599                         if test "X$x" = "X$dir"; then
23600                           haveit=yes
23601                           break
23602                         fi
23603                       done
23604                       if test -z "$haveit"; then
23605                         rpathdirs="$rpathdirs $dir"
23606                       fi
23607                                                                   haveit=
23608                       for x in $ltrpathdirs; do
23609                         if test "X$x" = "X$dir"; then
23610                           haveit=yes
23611                           break
23612                         fi
23613                       done
23614                       if test -z "$haveit"; then
23615                         ltrpathdirs="$ltrpathdirs $dir"
23616                       fi
23617                     fi
23618                     ;;
23619                   -l*)
23620                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23621                     ;;
23622                   *.la)
23623                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23624                     ;;
23625                   *)
23626                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23627                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23628                     ;;
23629                 esac
23630               done
23631             fi
23632           else
23633                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23634             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23635           fi
23636         fi
23637       fi
23638     done
23639   done
23640   if test "X$rpathdirs" != "X"; then
23641     if test -n "$hardcode_libdir_separator"; then
23642                         alldirs=
23643       for found_dir in $rpathdirs; do
23644         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23645       done
23646             acl_save_libdir="$libdir"
23647       libdir="$alldirs"
23648       eval flag=\"$hardcode_libdir_flag_spec\"
23649       libdir="$acl_save_libdir"
23650       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23651     else
23652             for found_dir in $rpathdirs; do
23653         acl_save_libdir="$libdir"
23654         libdir="$found_dir"
23655         eval flag=\"$hardcode_libdir_flag_spec\"
23656         libdir="$acl_save_libdir"
23657         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23658       done
23659     fi
23660   fi
23661   if test "X$ltrpathdirs" != "X"; then
23662             for found_dir in $ltrpathdirs; do
23663       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23664     done
23665   fi
23666
23667           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23668 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23669 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23670   echo $ECHO_N "(cached) $ECHO_C" >&6
23671 else
23672   gt_save_CPPFLAGS="$CPPFLAGS"
23673             CPPFLAGS="$CPPFLAGS $INCINTL"
23674             gt_save_LIBS="$LIBS"
23675             LIBS="$LIBS $LIBINTL"
23676                         cat >conftest.$ac_ext <<_ACEOF
23677 /* confdefs.h.  */
23678 _ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h.  */
23682 #include <libintl.h>
23683 extern int _nl_msg_cat_cntr;
23684 extern
23685 #ifdef __cplusplus
23686 "C"
23687 #endif
23688 const char *_nl_expand_alias (const char *);
23689 int
23690 main ()
23691 {
23692 bindtextdomain ("", "");
23693 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23694   ;
23695   return 0;
23696 }
23697 _ACEOF
23698 rm -f conftest.$ac_objext conftest$ac_exeext
23699 if { (ac_try="$ac_link"
23700 case "(($ac_try" in
23701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702   *) ac_try_echo=$ac_try;;
23703 esac
23704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23705   (eval "$ac_link") 2>conftest.er1
23706   ac_status=$?
23707   grep -v '^ *+' conftest.er1 >conftest.err
23708   rm -f conftest.er1
23709   cat conftest.err >&5
23710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711   (exit $ac_status); } && {
23712          test -z "$ac_c_werror_flag" ||
23713          test ! -s conftest.err
23714        } && test -s conftest$ac_exeext &&
23715        $as_test_x conftest$ac_exeext; then
23716   gt_cv_func_gnugettext1_libintl=yes
23717 else
23718   echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23720
23721         gt_cv_func_gnugettext1_libintl=no
23722 fi
23723
23724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23725       conftest$ac_exeext conftest.$ac_ext
23726                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23727               LIBS="$LIBS $LIBICONV"
23728               cat >conftest.$ac_ext <<_ACEOF
23729 /* confdefs.h.  */
23730 _ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h.  */
23734 #include <libintl.h>
23735 extern int _nl_msg_cat_cntr;
23736 extern
23737 #ifdef __cplusplus
23738 "C"
23739 #endif
23740 const char *_nl_expand_alias (const char *);
23741 int
23742 main ()
23743 {
23744 bindtextdomain ("", "");
23745 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23746   ;
23747   return 0;
23748 }
23749 _ACEOF
23750 rm -f conftest.$ac_objext conftest$ac_exeext
23751 if { (ac_try="$ac_link"
23752 case "(($ac_try" in
23753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754   *) ac_try_echo=$ac_try;;
23755 esac
23756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23757   (eval "$ac_link") 2>conftest.er1
23758   ac_status=$?
23759   grep -v '^ *+' conftest.er1 >conftest.err
23760   rm -f conftest.er1
23761   cat conftest.err >&5
23762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763   (exit $ac_status); } && {
23764          test -z "$ac_c_werror_flag" ||
23765          test ! -s conftest.err
23766        } && test -s conftest$ac_exeext &&
23767        $as_test_x conftest$ac_exeext; then
23768   LIBINTL="$LIBINTL $LIBICONV"
23769                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23770                 gt_cv_func_gnugettext1_libintl=yes
23771
23772 else
23773   echo "$as_me: failed program was:" >&5
23774 sed 's/^/| /' conftest.$ac_ext >&5
23775
23776
23777 fi
23778
23779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23780       conftest$ac_exeext conftest.$ac_ext
23781             fi
23782             CPPFLAGS="$gt_save_CPPFLAGS"
23783             LIBS="$gt_save_LIBS"
23784 fi
23785 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23786 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23787         fi
23788
23789                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23790            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23791                 && test "$PACKAGE" != gettext-runtime \
23792                 && test "$PACKAGE" != gettext-tools; }; then
23793           gt_use_preinstalled_gnugettext=yes
23794         else
23795                     LIBINTL=
23796           LTLIBINTL=
23797           INCINTL=
23798         fi
23799
23800
23801         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23802                               nls_cv_use_gnu_gettext=yes
23803         fi
23804       fi
23805
23806       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23807                 BUILD_INCLUDED_LIBINTL=yes
23808         USE_INCLUDED_LIBINTL=yes
23809         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23810         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23811         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23812       fi
23813
23814       CATOBJEXT=
23815       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23816          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23817                 CATOBJEXT=.gmo
23818       fi
23819
23820
23821     if test -n "$INTL_MACOSX_LIBS"; then
23822       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23823          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23824                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23825         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23826       fi
23827     fi
23828
23829     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23830        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23831
23832 cat >>confdefs.h <<\_ACEOF
23833 #define ENABLE_NLS 1
23834 _ACEOF
23835
23836     else
23837       USE_NLS=no
23838     fi
23839   fi
23840
23841   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23842 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23843   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23844 echo "${ECHO_T}$USE_NLS" >&6; }
23845   if test "$USE_NLS" = "yes"; then
23846     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23847 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23848     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23849       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23850         gt_source="external libintl"
23851       else
23852         gt_source="libc"
23853       fi
23854     else
23855       gt_source="included intl directory"
23856     fi
23857     { echo "$as_me:$LINENO: result: $gt_source" >&5
23858 echo "${ECHO_T}$gt_source" >&6; }
23859   fi
23860
23861   if test "$USE_NLS" = "yes"; then
23862
23863     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23864       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23865         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23866 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23867         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23868 echo "${ECHO_T}$LIBINTL" >&6; }
23869
23870   for element in $INCINTL; do
23871     haveit=
23872     for x in $CPPFLAGS; do
23873
23874   acl_save_prefix="$prefix"
23875   prefix="$acl_final_prefix"
23876   acl_save_exec_prefix="$exec_prefix"
23877   exec_prefix="$acl_final_exec_prefix"
23878   eval x=\"$x\"
23879   exec_prefix="$acl_save_exec_prefix"
23880   prefix="$acl_save_prefix"
23881
23882       if test "X$x" = "X$element"; then
23883         haveit=yes
23884         break
23885       fi
23886     done
23887     if test -z "$haveit"; then
23888       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23889     fi
23890   done
23891
23892       fi
23893
23894
23895 cat >>confdefs.h <<\_ACEOF
23896 #define HAVE_GETTEXT 1
23897 _ACEOF
23898
23899
23900 cat >>confdefs.h <<\_ACEOF
23901 #define HAVE_DCGETTEXT 1
23902 _ACEOF
23903
23904     fi
23905
23906         POSUB=po
23907   fi
23908
23909
23910             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23911       BUILD_INCLUDED_LIBINTL=yes
23912     fi
23913
23914
23915
23916
23917
23918         nls_cv_header_intl=
23919     nls_cv_header_libgt=
23920
23921         DATADIRNAME=share
23922
23923
23924         INSTOBJEXT=.mo
23925
23926
23927         GENCAT=gencat
23928
23929
23930         INTLOBJS=
23931     if test "$USE_INCLUDED_LIBINTL" = yes; then
23932       INTLOBJS="\$(GETTOBJS)"
23933     fi
23934
23935
23936         INTL_LIBTOOL_SUFFIX_PREFIX=
23937
23938
23939
23940     INTLLIBS="$LIBINTL"
23941
23942
23943
23944
23945
23946
23947 fi
23948
23949 support_mysql=no
23950 support_sqlite=no
23951 support_sqlite3=no
23952 support_postgresql=no
23953 support_dbi=no
23954 support_smartalloc=yes
23955 support_readline=yes
23956 support_conio=yes
23957 support_gnome=no
23958 support_bat=no
23959 support_wx_console=no
23960 support_tray_monitor=no
23961 support_tls=no
23962 support_crypto=no
23963 gnome_version=
23964 wx_version=
23965 support_static_tools=no
23966 support_static_fd=no
23967 support_static_sd=no
23968 support_static_dir=no
23969 support_static_cons=no
23970 support_python=no
23971 build_client_only=no
23972 build_dird=yes
23973 build_stored=yes
23974 cats=
23975 db_type=Internal
23976 DB_TYPE=bdb
23977
23978
23979 # Check whether --enable-gnome was given.
23980 if test "${enable_gnome+set}" = set; then
23981   enableval=$enable_gnome;
23982        if test x$enableval = xyes; then
23983           support_gnome=yes
23984        fi
23985
23986
23987 fi
23988
23989
23990 GNOME_DIR=
23991 if test x$support_gnome = xyes; then
23992    abc=`$PKGCONFIG --exists libgnomeui-2.0`
23993    pkg=$?
23994    if test $pkg = 0; then
23995       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23996       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23997       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23998       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23999
24000
24001
24002
24003       GNOME_DIR=src/gnome2-console
24004       gnome_version="Version 2.x"
24005    else
24006       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24007 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24008    { (exit 1); exit 1; }; }
24009    fi
24010 fi
24011
24012
24013 # Check whether --enable-bat was given.
24014 if test "${enable_bat+set}" = set; then
24015   enableval=$enable_bat;
24016        if test x$enableval = xyes; then
24017
24018 cat >>confdefs.h <<\_ACEOF
24019 #define HAVE_BAT 1
24020 _ACEOF
24021
24022           support_bat=yes
24023        fi
24024
24025
24026 fi
24027
24028
24029 BAT_DIR=
24030 if test x$support_bat = xyes; then
24031    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24032    pkg=$?
24033    if test $pkg = 0; then
24034       BAT_DIR=src/qt-console
24035    else
24036       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24037 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24038    { (exit 1); exit 1; }; }
24039    fi
24040 fi
24041
24042 got_qwt=no
24043 QWT_INC=
24044 QWT_LDFLAGS=
24045 QWT_LIB=
24046 QWT=
24047 no_qwt=no
24048 if test x$support_bat = xyes; then
24049    { echo "$as_me:$LINENO: checking for qwt support" >&5
24050 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24051
24052 # Check whether --with-qwt was given.
24053 if test "${with_qwt+set}" = set; then
24054   withval=$with_qwt;
24055           case "$with_qwt" in
24056           no)
24057              no_qwt=yes
24058              ;;
24059           yes|*)
24060              if test -f ${with_qwt}/include/qwt.h; then
24061                 QWT_INC="${with_qwt}/include"
24062                 QWT_LDFLAGS="-L${with_qwt}/lib"
24063                 QWT_LIB="-lqwt"
24064                 QWT="qwt"
24065              fi
24066              ;;
24067           esac
24068
24069
24070 fi
24071
24072
24073             if test $no_qwt = no; then
24074       if test x$QWT_INC = x; then
24075          for root in /usr /usr/local; do
24076             for ver in qwt qwt5 qwt-qt4; do
24077                if test -f ${root}/include/${ver}/qwt.h; then
24078                   QWT_INC="${root}/include/${ver}"
24079                   if test -d ${root}/lib64/; then
24080                      QWT_LDFLAGS="-L${root}/lib64"
24081                   elif test -d ${root}/lib/64/; then
24082                      QWT_LDFLAGS="-L${root}/64"
24083                   else
24084                      QWT_LDFLAGS="-L${root}/lib"
24085                   fi
24086                   QWT_LIB="-lqwt"
24087                   QWT="qwt"
24088                   got_qwt=yes
24089                   break;
24090                fi
24091             done
24092          done
24093       fi
24094    fi
24095    if test x$QWT_INC = x; then
24096       { echo "$as_me:$LINENO: result: no" >&5
24097 echo "${ECHO_T}no" >&6; }
24098    else
24099
24100 cat >>confdefs.h <<\_ACEOF
24101 #define HAVE_QWT 1
24102 _ACEOF
24103
24104       { echo "$as_me:$LINENO: result: yes" >&5
24105 echo "${ECHO_T}yes" >&6; }
24106    fi
24107 fi
24108
24109
24110
24111
24112
24113
24114
24115 # Check whether --enable-bwx-console was given.
24116 if test "${enable_bwx_console+set}" = set; then
24117   enableval=$enable_bwx_console;
24118        if test x$enableval = xyes; then
24119           support_wx_console=yes
24120        fi
24121
24122
24123 fi
24124
24125
24126 WX_DIR=
24127 if test x$support_wx_console = xyes; then
24128    abc=`$WXCONFIG $WXFLAGS --cppflags`
24129    pkg=$?
24130    if test $pkg = 0; then
24131       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24132       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24133       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24134
24135
24136
24137       WX_DIR=src/wx-console
24138    else
24139       echo " "
24140       echo "wx-config program not found. bwx-console disabled."
24141       echo " "
24142       support_wx_console=no
24143    fi
24144 fi
24145
24146
24147 # Check whether --enable-tray-monitor was given.
24148 if test "${enable_tray_monitor+set}" = set; then
24149   enableval=$enable_tray_monitor;
24150        if test x$enableval = xyes; then
24151           support_tray_monitor=yes
24152        fi
24153
24154
24155 fi
24156
24157
24158 TRAY_MONITOR_DIR=
24159 if test x$support_tray_monitor = xyes; then
24160    abc=`$PKGCONFIG --exists gtk+-2.0`
24161    pkg=$?
24162    if test $pkg = 0; then
24163       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24164       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24165
24166
24167       TRAY_MONITOR_DIR=src/tray-monitor
24168       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24169       pkg=$?
24170       if test $pkg = 0; then
24171
24172 cat >>confdefs.h <<\_ACEOF
24173 #define HAVE_GTK_2_4 1
24174 _ACEOF
24175
24176       fi
24177    fi
24178 fi
24179
24180
24181 # Check whether --enable-smartalloc was given.
24182 if test "${enable_smartalloc+set}" = set; then
24183   enableval=$enable_smartalloc;
24184        if test x$enableval = xno; then
24185           support_smartalloc=no
24186        fi
24187
24188
24189 fi
24190
24191
24192 if test x$support_smartalloc = xyes; then
24193
24194 cat >>confdefs.h <<\_ACEOF
24195 #define SMARTALLOC 1
24196 _ACEOF
24197
24198 fi
24199
24200 # Check whether --enable-static-tools was given.
24201 if test "${enable_static_tools+set}" = set; then
24202   enableval=$enable_static_tools;
24203        if test x$enableval = xyes; then
24204           support_static_tools=yes
24205        fi
24206
24207
24208 fi
24209
24210
24211 TTOOL_LDFLAGS=
24212 if test x$support_static_tools = xyes; then
24213    TTOOL_LDFLAGS="-static"
24214 fi
24215
24216
24217 # Check whether --enable-static-fd was given.
24218 if test "${enable_static_fd+set}" = set; then
24219   enableval=$enable_static_fd;
24220        if test x$enableval = xyes; then
24221           support_static_fd=yes
24222        fi
24223
24224
24225 fi
24226
24227
24228 STATIC_FD=
24229 if test x$support_static_fd = xyes; then
24230    STATIC_FD="static-bacula-fd"
24231 fi
24232
24233
24234 # Check whether --enable-static-sd was given.
24235 if test "${enable_static_sd+set}" = set; then
24236   enableval=$enable_static_sd;
24237        if test x$enableval = xyes; then
24238           support_static_sd=yes
24239        fi
24240
24241
24242 fi
24243
24244
24245 STATIC_SD=
24246 if test x$support_static_sd = xyes; then
24247    STATIC_SD="static-bacula-sd"
24248 fi
24249
24250
24251 # Check whether --enable-static-dir was given.
24252 if test "${enable_static_dir+set}" = set; then
24253   enableval=$enable_static_dir;
24254        if test x$enableval = xyes; then
24255           support_static_dir=yes
24256        fi
24257
24258
24259 fi
24260
24261
24262 STATIC_DIR=
24263 if test x$support_static_dir = xyes; then
24264    STATIC_DIR="static-bacula-dir"
24265 fi
24266
24267
24268 # Check whether --enable-static-cons was given.
24269 if test "${enable_static_cons+set}" = set; then
24270   enableval=$enable_static_cons;
24271        if test x$enableval = xyes; then
24272           support_static_cons=yes
24273        fi
24274
24275
24276 fi
24277
24278
24279 STATIC_CONS=
24280 STATIC_GNOME_CONS=
24281 STATIC_WX_CONS=
24282 if test x$support_static_cons = xyes; then
24283    STATIC_CONS="static-bconsole"
24284    STATIC_GNOME_CONS="static-bgnome-console"
24285    STATIC_WX_CONS="static-bwx-console"
24286 fi
24287
24288
24289
24290
24291 # Check whether --enable-client-only was given.
24292 if test "${enable_client_only+set}" = set; then
24293   enableval=$enable_client_only;
24294        if test x$enableval = xyes; then
24295           build_client_only=yes
24296           db_type=None
24297           DB_TYPE=none
24298        fi
24299
24300
24301 fi
24302
24303 if test x$build_client_only = xno; then
24304    ALL_DIRS="subdirs"
24305 else
24306    ALL_DIRS=""
24307 fi
24308
24309
24310 # Check whether --enable-build-dird was given.
24311 if test "${enable_build_dird+set}" = set; then
24312   enableval=$enable_build_dird;
24313        if test x$enableval = xno; then
24314           build_dird=no
24315        fi
24316
24317
24318 fi
24319
24320 if test x$build_dird = xyes; then
24321    DIRD_DIR="src/dird"
24322    DIR_TOOLS="DIRTOOLS"
24323 else
24324    DIRD_DIR=""
24325    DIR_TOOLS="NODIRTOOLS"
24326 fi
24327
24328
24329
24330 # Check whether --enable-build-stored was given.
24331 if test "${enable_build_stored+set}" = set; then
24332   enableval=$enable_build_stored;
24333       if test x$enableval = xno; then
24334          build_stored=no
24335       fi
24336
24337
24338 fi
24339
24340 if test x$build_stored = xyes; then
24341    STORED_DIR="src/stored"
24342 else
24343    STORED_DIR=""
24344 fi
24345
24346
24347 # Check whether --enable-conio was given.
24348 if test "${enable_conio+set}" = set; then
24349   enableval=$enable_conio;
24350        if test x$enableval = xno; then
24351           support_conio=no
24352        fi
24353
24354
24355 fi
24356
24357
24358
24359 support_ipv6=yes
24360 # Check whether --enable-ipv6 was given.
24361 if test "${enable_ipv6+set}" = set; then
24362   enableval=$enable_ipv6;
24363        if test x$enableval = xno; then
24364           support_ipv6=no
24365        fi
24366
24367
24368 fi
24369
24370
24371 if test x$support_ipv6 = xyes; then
24372     cat >conftest.$ac_ext <<_ACEOF
24373 /* confdefs.h.  */
24374 _ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h.  */
24378  #include <sys/types.h>
24379 #include <sys/socket.h>
24380 #include <netinet/in.h>
24381 int
24382 main ()
24383 {
24384 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24385   ;
24386   return 0;
24387 }
24388 _ACEOF
24389 rm -f conftest.$ac_objext conftest$ac_exeext
24390 if { (ac_try="$ac_link"
24391 case "(($ac_try" in
24392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393   *) ac_try_echo=$ac_try;;
24394 esac
24395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396   (eval "$ac_link") 2>conftest.er1
24397   ac_status=$?
24398   grep -v '^ *+' conftest.er1 >conftest.err
24399   rm -f conftest.er1
24400   cat conftest.err >&5
24401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402   (exit $ac_status); } && {
24403          test -z "$ac_c_werror_flag" ||
24404          test ! -s conftest.err
24405        } && test -s conftest$ac_exeext &&
24406        $as_test_x conftest$ac_exeext; then
24407   support_ipv6=yes
24408 else
24409   echo "$as_me: failed program was:" >&5
24410 sed 's/^/| /' conftest.$ac_ext >&5
24411
24412         support_ipv6=no
24413 fi
24414
24415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24416       conftest$ac_exeext conftest.$ac_ext
24417 fi
24418
24419 if test x$support_ipv6 = xyes; then
24420
24421 cat >>confdefs.h <<\_ACEOF
24422 #define HAVE_IPV6 1
24423 _ACEOF
24424
24425 fi
24426
24427 got_conio="no"
24428 if test x$support_conio = xyes; then
24429    if test "${ac_cv_header_termcap_h+set}" = set; then
24430   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24431 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24432 if test "${ac_cv_header_termcap_h+set}" = set; then
24433   echo $ECHO_N "(cached) $ECHO_C" >&6
24434 fi
24435 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24436 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24437 else
24438   # Is the header compilable?
24439 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24440 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24441 cat >conftest.$ac_ext <<_ACEOF
24442 /* confdefs.h.  */
24443 _ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h.  */
24447 $ac_includes_default
24448 #include <termcap.h>
24449 _ACEOF
24450 rm -f conftest.$ac_objext
24451 if { (ac_try="$ac_compile"
24452 case "(($ac_try" in
24453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454   *) ac_try_echo=$ac_try;;
24455 esac
24456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24457   (eval "$ac_compile") 2>conftest.er1
24458   ac_status=$?
24459   grep -v '^ *+' conftest.er1 >conftest.err
24460   rm -f conftest.er1
24461   cat conftest.err >&5
24462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463   (exit $ac_status); } && {
24464          test -z "$ac_c_werror_flag" ||
24465          test ! -s conftest.err
24466        } && test -s conftest.$ac_objext; then
24467   ac_header_compiler=yes
24468 else
24469   echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24471
24472         ac_header_compiler=no
24473 fi
24474
24475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24477 echo "${ECHO_T}$ac_header_compiler" >&6; }
24478
24479 # Is the header present?
24480 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24481 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24482 cat >conftest.$ac_ext <<_ACEOF
24483 /* confdefs.h.  */
24484 _ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h.  */
24488 #include <termcap.h>
24489 _ACEOF
24490 if { (ac_try="$ac_cpp conftest.$ac_ext"
24491 case "(($ac_try" in
24492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493   *) ac_try_echo=$ac_try;;
24494 esac
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24497   ac_status=$?
24498   grep -v '^ *+' conftest.er1 >conftest.err
24499   rm -f conftest.er1
24500   cat conftest.err >&5
24501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502   (exit $ac_status); } >/dev/null && {
24503          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24504          test ! -s conftest.err
24505        }; then
24506   ac_header_preproc=yes
24507 else
24508   echo "$as_me: failed program was:" >&5
24509 sed 's/^/| /' conftest.$ac_ext >&5
24510
24511   ac_header_preproc=no
24512 fi
24513
24514 rm -f conftest.err conftest.$ac_ext
24515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24516 echo "${ECHO_T}$ac_header_preproc" >&6; }
24517
24518 # So?  What about this header?
24519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24520   yes:no: )
24521     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24522 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24523     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24524 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24525     ac_header_preproc=yes
24526     ;;
24527   no:yes:* )
24528     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24529 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24530     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24531 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24532     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24533 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24534     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24535 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24536     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24537 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24538     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24539 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24540
24541     ;;
24542 esac
24543 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24544 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24545 if test "${ac_cv_header_termcap_h+set}" = set; then
24546   echo $ECHO_N "(cached) $ECHO_C" >&6
24547 else
24548   ac_cv_header_termcap_h=$ac_header_preproc
24549 fi
24550 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24551 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24552
24553 fi
24554 if test $ac_cv_header_termcap_h = yes; then
24555    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24556 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24557 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24558   echo $ECHO_N "(cached) $ECHO_C" >&6
24559 else
24560   ac_check_lib_save_LIBS=$LIBS
24561 LIBS="-ltermcap  $LIBS"
24562 cat >conftest.$ac_ext <<_ACEOF
24563 /* confdefs.h.  */
24564 _ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h.  */
24568
24569 /* Override any GCC internal prototype to avoid an error.
24570    Use char because int might match the return type of a GCC
24571    builtin and then its argument prototype would still apply.  */
24572 #ifdef __cplusplus
24573 extern "C"
24574 #endif
24575 char tgetent ();
24576 int
24577 main ()
24578 {
24579 return tgetent ();
24580   ;
24581   return 0;
24582 }
24583 _ACEOF
24584 rm -f conftest.$ac_objext conftest$ac_exeext
24585 if { (ac_try="$ac_link"
24586 case "(($ac_try" in
24587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588   *) ac_try_echo=$ac_try;;
24589 esac
24590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591   (eval "$ac_link") 2>conftest.er1
24592   ac_status=$?
24593   grep -v '^ *+' conftest.er1 >conftest.err
24594   rm -f conftest.er1
24595   cat conftest.err >&5
24596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597   (exit $ac_status); } && {
24598          test -z "$ac_c_werror_flag" ||
24599          test ! -s conftest.err
24600        } && test -s conftest$ac_exeext &&
24601        $as_test_x conftest$ac_exeext; then
24602   ac_cv_lib_termcap_tgetent=yes
24603 else
24604   echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24606
24607         ac_cv_lib_termcap_tgetent=no
24608 fi
24609
24610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24611       conftest$ac_exeext conftest.$ac_ext
24612 LIBS=$ac_check_lib_save_LIBS
24613 fi
24614 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24615 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24616 if test $ac_cv_lib_termcap_tgetent = yes; then
24617    CONS_LIBS="-ltermcap"
24618     CONS_OBJ="conio.o"
24619     CONS_SRC="conio.c"
24620     got_conio="yes"
24621     support_readline=no
24622
24623 cat >>confdefs.h <<\_ACEOF
24624 #define HAVE_CONIO 1
24625 _ACEOF
24626
24627
24628 else
24629    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24630 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24631 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24632   echo $ECHO_N "(cached) $ECHO_C" >&6
24633 else
24634   ac_check_lib_save_LIBS=$LIBS
24635 LIBS="-lncurses  $LIBS"
24636 cat >conftest.$ac_ext <<_ACEOF
24637 /* confdefs.h.  */
24638 _ACEOF
24639 cat confdefs.h >>conftest.$ac_ext
24640 cat >>conftest.$ac_ext <<_ACEOF
24641 /* end confdefs.h.  */
24642
24643 /* Override any GCC internal prototype to avoid an error.
24644    Use char because int might match the return type of a GCC
24645    builtin and then its argument prototype would still apply.  */
24646 #ifdef __cplusplus
24647 extern "C"
24648 #endif
24649 char tgetent ();
24650 int
24651 main ()
24652 {
24653 return tgetent ();
24654   ;
24655   return 0;
24656 }
24657 _ACEOF
24658 rm -f conftest.$ac_objext conftest$ac_exeext
24659 if { (ac_try="$ac_link"
24660 case "(($ac_try" in
24661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662   *) ac_try_echo=$ac_try;;
24663 esac
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665   (eval "$ac_link") 2>conftest.er1
24666   ac_status=$?
24667   grep -v '^ *+' conftest.er1 >conftest.err
24668   rm -f conftest.er1
24669   cat conftest.err >&5
24670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671   (exit $ac_status); } && {
24672          test -z "$ac_c_werror_flag" ||
24673          test ! -s conftest.err
24674        } && test -s conftest$ac_exeext &&
24675        $as_test_x conftest$ac_exeext; then
24676   ac_cv_lib_ncurses_tgetent=yes
24677 else
24678   echo "$as_me: failed program was:" >&5
24679 sed 's/^/| /' conftest.$ac_ext >&5
24680
24681         ac_cv_lib_ncurses_tgetent=no
24682 fi
24683
24684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24685       conftest$ac_exeext conftest.$ac_ext
24686 LIBS=$ac_check_lib_save_LIBS
24687 fi
24688 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24689 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24690 if test $ac_cv_lib_ncurses_tgetent = yes; then
24691    CONS_LIBS="-lncurses"
24692       CONS_OBJ="conio.o"
24693       CONS_SRC="conio.c"
24694       got_conio="yes"
24695       support_readline=no
24696
24697 cat >>confdefs.h <<\_ACEOF
24698 #define HAVE_CONIO 1
24699 _ACEOF
24700
24701
24702 fi
24703
24704
24705 fi
24706
24707
24708 else
24709
24710
24711 for ac_header in curses.h
24712 do
24713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24715   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24718   echo $ECHO_N "(cached) $ECHO_C" >&6
24719 fi
24720 ac_res=`eval echo '${'$as_ac_Header'}'`
24721                { echo "$as_me:$LINENO: result: $ac_res" >&5
24722 echo "${ECHO_T}$ac_res" >&6; }
24723 else
24724   # Is the header compilable?
24725 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24727 cat >conftest.$ac_ext <<_ACEOF
24728 /* confdefs.h.  */
24729 _ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h.  */
24733 $ac_includes_default
24734 #include <$ac_header>
24735 _ACEOF
24736 rm -f conftest.$ac_objext
24737 if { (ac_try="$ac_compile"
24738 case "(($ac_try" in
24739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24740   *) ac_try_echo=$ac_try;;
24741 esac
24742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743   (eval "$ac_compile") 2>conftest.er1
24744   ac_status=$?
24745   grep -v '^ *+' conftest.er1 >conftest.err
24746   rm -f conftest.er1
24747   cat conftest.err >&5
24748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749   (exit $ac_status); } && {
24750          test -z "$ac_c_werror_flag" ||
24751          test ! -s conftest.err
24752        } && test -s conftest.$ac_objext; then
24753   ac_header_compiler=yes
24754 else
24755   echo "$as_me: failed program was:" >&5
24756 sed 's/^/| /' conftest.$ac_ext >&5
24757
24758         ac_header_compiler=no
24759 fi
24760
24761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24763 echo "${ECHO_T}$ac_header_compiler" >&6; }
24764
24765 # Is the header present?
24766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24768 cat >conftest.$ac_ext <<_ACEOF
24769 /* confdefs.h.  */
24770 _ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h.  */
24774 #include <$ac_header>
24775 _ACEOF
24776 if { (ac_try="$ac_cpp conftest.$ac_ext"
24777 case "(($ac_try" in
24778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779   *) ac_try_echo=$ac_try;;
24780 esac
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24783   ac_status=$?
24784   grep -v '^ *+' conftest.er1 >conftest.err
24785   rm -f conftest.er1
24786   cat conftest.err >&5
24787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788   (exit $ac_status); } >/dev/null && {
24789          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24790          test ! -s conftest.err
24791        }; then
24792   ac_header_preproc=yes
24793 else
24794   echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24796
24797   ac_header_preproc=no
24798 fi
24799
24800 rm -f conftest.err conftest.$ac_ext
24801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24802 echo "${ECHO_T}$ac_header_preproc" >&6; }
24803
24804 # So?  What about this header?
24805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24806   yes:no: )
24807     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24811     ac_header_preproc=yes
24812     ;;
24813   no:yes:* )
24814     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24816     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24817 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24818     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24820     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24821 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24824     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24826
24827     ;;
24828 esac
24829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24832   echo $ECHO_N "(cached) $ECHO_C" >&6
24833 else
24834   eval "$as_ac_Header=\$ac_header_preproc"
24835 fi
24836 ac_res=`eval echo '${'$as_ac_Header'}'`
24837                { echo "$as_me:$LINENO: result: $ac_res" >&5
24838 echo "${ECHO_T}$ac_res" >&6; }
24839
24840 fi
24841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24842   cat >>confdefs.h <<_ACEOF
24843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24844 _ACEOF
24845
24846 fi
24847
24848 done
24849
24850     { echo "$as_me:$LINENO: checking for term.h" >&5
24851 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24852 if test "${ac_cv_header_term_h+set}" = set; then
24853   echo $ECHO_N "(cached) $ECHO_C" >&6
24854 else
24855   cat >conftest.$ac_ext <<_ACEOF
24856 /* confdefs.h.  */
24857 _ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h.  */
24861 #if HAVE_CURSES_H
24862 #include <curses.h>
24863 #endif
24864
24865
24866 #include <term.h>
24867 _ACEOF
24868 rm -f conftest.$ac_objext
24869 if { (ac_try="$ac_compile"
24870 case "(($ac_try" in
24871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24872   *) ac_try_echo=$ac_try;;
24873 esac
24874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24875   (eval "$ac_compile") 2>conftest.er1
24876   ac_status=$?
24877   grep -v '^ *+' conftest.er1 >conftest.err
24878   rm -f conftest.er1
24879   cat conftest.err >&5
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); } && {
24882          test -z "$ac_c_werror_flag" ||
24883          test ! -s conftest.err
24884        } && test -s conftest.$ac_objext; then
24885   ac_cv_header_term_h=yes
24886 else
24887   echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24889
24890         ac_cv_header_term_h=no
24891 fi
24892
24893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24894 fi
24895 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24896 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24897 if test $ac_cv_header_term_h = yes; then
24898    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24899 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24900 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24901   echo $ECHO_N "(cached) $ECHO_C" >&6
24902 else
24903   ac_check_lib_save_LIBS=$LIBS
24904 LIBS="-lcurses  $LIBS"
24905 cat >conftest.$ac_ext <<_ACEOF
24906 /* confdefs.h.  */
24907 _ACEOF
24908 cat confdefs.h >>conftest.$ac_ext
24909 cat >>conftest.$ac_ext <<_ACEOF
24910 /* end confdefs.h.  */
24911
24912 /* Override any GCC internal prototype to avoid an error.
24913    Use char because int might match the return type of a GCC
24914    builtin and then its argument prototype would still apply.  */
24915 #ifdef __cplusplus
24916 extern "C"
24917 #endif
24918 char tgetent ();
24919 int
24920 main ()
24921 {
24922 return tgetent ();
24923   ;
24924   return 0;
24925 }
24926 _ACEOF
24927 rm -f conftest.$ac_objext conftest$ac_exeext
24928 if { (ac_try="$ac_link"
24929 case "(($ac_try" in
24930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931   *) ac_try_echo=$ac_try;;
24932 esac
24933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24934   (eval "$ac_link") 2>conftest.er1
24935   ac_status=$?
24936   grep -v '^ *+' conftest.er1 >conftest.err
24937   rm -f conftest.er1
24938   cat conftest.err >&5
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); } && {
24941          test -z "$ac_c_werror_flag" ||
24942          test ! -s conftest.err
24943        } && test -s conftest$ac_exeext &&
24944        $as_test_x conftest$ac_exeext; then
24945   ac_cv_lib_curses_tgetent=yes
24946 else
24947   echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24949
24950         ac_cv_lib_curses_tgetent=no
24951 fi
24952
24953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24954       conftest$ac_exeext conftest.$ac_ext
24955 LIBS=$ac_check_lib_save_LIBS
24956 fi
24957 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24958 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24959 if test $ac_cv_lib_curses_tgetent = yes; then
24960    CONS_LIBS="-lcurses"
24961          CONS_OBJ="conio.o"
24962          CONS_SRC="conio.c"
24963          got_conio="yes"
24964          support_readline=no
24965
24966 cat >>confdefs.h <<\_ACEOF
24967 #define HAVE_CONIO 1
24968 _ACEOF
24969
24970
24971 fi
24972
24973
24974 else
24975    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24976 fi
24977
24978
24979
24980 fi
24981
24982
24983 fi
24984
24985
24986 # Check whether --enable-readline was given.
24987 if test "${enable_readline+set}" = set; then
24988   enableval=$enable_readline;
24989        if test x$enableval = xno; then
24990           support_readline=no
24991        fi
24992
24993
24994 fi
24995
24996
24997 got_readline="no"
24998 READLINE_SRC=
24999 if test x$support_readline = xyes; then
25000
25001 # Check whether --with-readline was given.
25002 if test "${with_readline+set}" = set; then
25003   withval=$with_readline;
25004           case "$with_readline" in
25005           no)
25006              :
25007              ;;
25008           yes|*)
25009              if test -f ${with_readline}/readline.h; then
25010                 CONS_INC="-I${with_readline}"
25011                 CONS_LDFLAGS="-L$with_readline"
25012              elif test -f ${with_readline}/include/readline/readline.h; then
25013                 CONS_INC="-I${with_readline}/include/readline"
25014                 CONS_LDFLAGS="-L${with_readline}/lib"
25015                 with_readline="${with_readline}/include/readline"
25016              else
25017                 with_readline="/usr/include/readline"
25018              fi
25019
25020              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25022   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25023 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25025   echo $ECHO_N "(cached) $ECHO_C" >&6
25026 fi
25027 ac_res=`eval echo '${'$as_ac_Header'}'`
25028                { echo "$as_me:$LINENO: result: $ac_res" >&5
25029 echo "${ECHO_T}$ac_res" >&6; }
25030 else
25031   # Is the header compilable?
25032 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25033 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25034 cat >conftest.$ac_ext <<_ACEOF
25035 /* confdefs.h.  */
25036 _ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h.  */
25040 $ac_includes_default
25041 #include <${with_readline}/readline.h>
25042 _ACEOF
25043 rm -f conftest.$ac_objext
25044 if { (ac_try="$ac_compile"
25045 case "(($ac_try" in
25046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25047   *) ac_try_echo=$ac_try;;
25048 esac
25049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25050   (eval "$ac_compile") 2>conftest.er1
25051   ac_status=$?
25052   grep -v '^ *+' conftest.er1 >conftest.err
25053   rm -f conftest.er1
25054   cat conftest.err >&5
25055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056   (exit $ac_status); } && {
25057          test -z "$ac_c_werror_flag" ||
25058          test ! -s conftest.err
25059        } && test -s conftest.$ac_objext; then
25060   ac_header_compiler=yes
25061 else
25062   echo "$as_me: failed program was:" >&5
25063 sed 's/^/| /' conftest.$ac_ext >&5
25064
25065         ac_header_compiler=no
25066 fi
25067
25068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25070 echo "${ECHO_T}$ac_header_compiler" >&6; }
25071
25072 # Is the header present?
25073 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25074 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25075 cat >conftest.$ac_ext <<_ACEOF
25076 /* confdefs.h.  */
25077 _ACEOF
25078 cat confdefs.h >>conftest.$ac_ext
25079 cat >>conftest.$ac_ext <<_ACEOF
25080 /* end confdefs.h.  */
25081 #include <${with_readline}/readline.h>
25082 _ACEOF
25083 if { (ac_try="$ac_cpp conftest.$ac_ext"
25084 case "(($ac_try" in
25085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25086   *) ac_try_echo=$ac_try;;
25087 esac
25088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25089   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25090   ac_status=$?
25091   grep -v '^ *+' conftest.er1 >conftest.err
25092   rm -f conftest.er1
25093   cat conftest.err >&5
25094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095   (exit $ac_status); } >/dev/null && {
25096          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25097          test ! -s conftest.err
25098        }; then
25099   ac_header_preproc=yes
25100 else
25101   echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25103
25104   ac_header_preproc=no
25105 fi
25106
25107 rm -f conftest.err conftest.$ac_ext
25108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25109 echo "${ECHO_T}$ac_header_preproc" >&6; }
25110
25111 # So?  What about this header?
25112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25113   yes:no: )
25114     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25115 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25116     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25117 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25118     ac_header_preproc=yes
25119     ;;
25120   no:yes:* )
25121     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25122 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25123     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25124 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25125     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25126 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25127     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25128 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25129     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25130 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25131     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25132 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25133
25134     ;;
25135 esac
25136 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25137 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25139   echo $ECHO_N "(cached) $ECHO_C" >&6
25140 else
25141   eval "$as_ac_Header=\$ac_header_preproc"
25142 fi
25143 ac_res=`eval echo '${'$as_ac_Header'}'`
25144                { echo "$as_me:$LINENO: result: $ac_res" >&5
25145 echo "${ECHO_T}$ac_res" >&6; }
25146
25147 fi
25148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25149
25150
25151 cat >>confdefs.h <<\_ACEOF
25152 #define HAVE_READLINE 1
25153 _ACEOF
25154
25155                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25156                     got_readline="yes"
25157
25158 else
25159
25160                     echo " "
25161                     echo "readline.h not found. readline turned off ..."
25162                     echo " "
25163
25164
25165 fi
25166
25167
25168              ;;
25169           esac
25170
25171 else
25172
25173                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25174   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25175 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25176 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25177   echo $ECHO_N "(cached) $ECHO_C" >&6
25178 fi
25179 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25180 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25181 else
25182   # Is the header compilable?
25183 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25184 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25185 cat >conftest.$ac_ext <<_ACEOF
25186 /* confdefs.h.  */
25187 _ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h.  */
25191 $ac_includes_default
25192 #include </usr/include/readline/readline.h>
25193 _ACEOF
25194 rm -f conftest.$ac_objext
25195 if { (ac_try="$ac_compile"
25196 case "(($ac_try" in
25197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198   *) ac_try_echo=$ac_try;;
25199 esac
25200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25201   (eval "$ac_compile") 2>conftest.er1
25202   ac_status=$?
25203   grep -v '^ *+' conftest.er1 >conftest.err
25204   rm -f conftest.er1
25205   cat conftest.err >&5
25206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207   (exit $ac_status); } && {
25208          test -z "$ac_c_werror_flag" ||
25209          test ! -s conftest.err
25210        } && test -s conftest.$ac_objext; then
25211   ac_header_compiler=yes
25212 else
25213   echo "$as_me: failed program was:" >&5
25214 sed 's/^/| /' conftest.$ac_ext >&5
25215
25216         ac_header_compiler=no
25217 fi
25218
25219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25221 echo "${ECHO_T}$ac_header_compiler" >&6; }
25222
25223 # Is the header present?
25224 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25225 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25226 cat >conftest.$ac_ext <<_ACEOF
25227 /* confdefs.h.  */
25228 _ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h.  */
25232 #include </usr/include/readline/readline.h>
25233 _ACEOF
25234 if { (ac_try="$ac_cpp conftest.$ac_ext"
25235 case "(($ac_try" in
25236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237   *) ac_try_echo=$ac_try;;
25238 esac
25239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25241   ac_status=$?
25242   grep -v '^ *+' conftest.er1 >conftest.err
25243   rm -f conftest.er1
25244   cat conftest.err >&5
25245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246   (exit $ac_status); } >/dev/null && {
25247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25248          test ! -s conftest.err
25249        }; then
25250   ac_header_preproc=yes
25251 else
25252   echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25254
25255   ac_header_preproc=no
25256 fi
25257
25258 rm -f conftest.err conftest.$ac_ext
25259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25260 echo "${ECHO_T}$ac_header_preproc" >&6; }
25261
25262 # So?  What about this header?
25263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25264   yes:no: )
25265     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25266 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25267     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25268 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25269     ac_header_preproc=yes
25270     ;;
25271   no:yes:* )
25272     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25273 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25274     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25275 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25276     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25277 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25278     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25279 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25280     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25281 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25282     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25283 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25284
25285     ;;
25286 esac
25287 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25288 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25289 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25290   echo $ECHO_N "(cached) $ECHO_C" >&6
25291 else
25292   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25293 fi
25294 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25295 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25296
25297 fi
25298 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25299
25300
25301 cat >>confdefs.h <<\_ACEOF
25302 #define HAVE_READLINE 1
25303 _ACEOF
25304
25305                 got_readline="yes"
25306                 CONS_INC="-I/usr/include/readline"
25307                 CONS_LIBS="-lreadline -ltermcap"
25308
25309 else
25310
25311                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25313   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25314 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25316   echo $ECHO_N "(cached) $ECHO_C" >&6
25317 fi
25318 ac_res=`eval echo '${'$as_ac_Header'}'`
25319                { echo "$as_me:$LINENO: result: $ac_res" >&5
25320 echo "${ECHO_T}$ac_res" >&6; }
25321 else
25322   # Is the header compilable?
25323 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25324 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25325 cat >conftest.$ac_ext <<_ACEOF
25326 /* confdefs.h.  */
25327 _ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h.  */
25331 $ac_includes_default
25332 #include <${TOP_DIR}/depkgs/readline/readline.h>
25333 _ACEOF
25334 rm -f conftest.$ac_objext
25335 if { (ac_try="$ac_compile"
25336 case "(($ac_try" in
25337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338   *) ac_try_echo=$ac_try;;
25339 esac
25340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25341   (eval "$ac_compile") 2>conftest.er1
25342   ac_status=$?
25343   grep -v '^ *+' conftest.er1 >conftest.err
25344   rm -f conftest.er1
25345   cat conftest.err >&5
25346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347   (exit $ac_status); } && {
25348          test -z "$ac_c_werror_flag" ||
25349          test ! -s conftest.err
25350        } && test -s conftest.$ac_objext; then
25351   ac_header_compiler=yes
25352 else
25353   echo "$as_me: failed program was:" >&5
25354 sed 's/^/| /' conftest.$ac_ext >&5
25355
25356         ac_header_compiler=no
25357 fi
25358
25359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25361 echo "${ECHO_T}$ac_header_compiler" >&6; }
25362
25363 # Is the header present?
25364 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25365 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25366 cat >conftest.$ac_ext <<_ACEOF
25367 /* confdefs.h.  */
25368 _ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h.  */
25372 #include <${TOP_DIR}/depkgs/readline/readline.h>
25373 _ACEOF
25374 if { (ac_try="$ac_cpp conftest.$ac_ext"
25375 case "(($ac_try" in
25376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377   *) ac_try_echo=$ac_try;;
25378 esac
25379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25381   ac_status=$?
25382   grep -v '^ *+' conftest.er1 >conftest.err
25383   rm -f conftest.er1
25384   cat conftest.err >&5
25385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386   (exit $ac_status); } >/dev/null && {
25387          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25388          test ! -s conftest.err
25389        }; then
25390   ac_header_preproc=yes
25391 else
25392   echo "$as_me: failed program was:" >&5
25393 sed 's/^/| /' conftest.$ac_ext >&5
25394
25395   ac_header_preproc=no
25396 fi
25397
25398 rm -f conftest.err conftest.$ac_ext
25399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25400 echo "${ECHO_T}$ac_header_preproc" >&6; }
25401
25402 # So?  What about this header?
25403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25404   yes:no: )
25405     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25406 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25407     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25408 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25409     ac_header_preproc=yes
25410     ;;
25411   no:yes:* )
25412     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25413 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25414     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25415 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25416     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25417 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25418     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25419 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25420     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25421 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25422     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25423 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25424
25425     ;;
25426 esac
25427 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25428 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25430   echo $ECHO_N "(cached) $ECHO_C" >&6
25431 else
25432   eval "$as_ac_Header=\$ac_header_preproc"
25433 fi
25434 ac_res=`eval echo '${'$as_ac_Header'}'`
25435                { echo "$as_me:$LINENO: result: $ac_res" >&5
25436 echo "${ECHO_T}$ac_res" >&6; }
25437
25438 fi
25439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25440
25441
25442 cat >>confdefs.h <<\_ACEOF
25443 #define HAVE_READLINE 1
25444 _ACEOF
25445
25446                         got_readline="yes"
25447                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25448                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25449                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25450                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25451
25452 else
25453
25454                         echo " "
25455                         echo "readline.h not found. readline turned off ..."
25456                         echo " "
25457
25458
25459 fi
25460
25461
25462
25463
25464 fi
25465
25466
25467
25468
25469 fi
25470
25471 fi
25472
25473
25474
25475
25476
25477
25478
25479
25480 MAKE_SHELL=/bin/sh
25481
25482 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25483 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25484 if test "${ac_cv_header_stat_broken+set}" = set; then
25485   echo $ECHO_N "(cached) $ECHO_C" >&6
25486 else
25487   cat >conftest.$ac_ext <<_ACEOF
25488 /* confdefs.h.  */
25489 _ACEOF
25490 cat confdefs.h >>conftest.$ac_ext
25491 cat >>conftest.$ac_ext <<_ACEOF
25492 /* end confdefs.h.  */
25493 #include <sys/types.h>
25494 #include <sys/stat.h>
25495
25496 #if defined S_ISBLK && defined S_IFDIR
25497 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25498 #endif
25499
25500 #if defined S_ISBLK && defined S_IFCHR
25501 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25502 #endif
25503
25504 #if defined S_ISLNK && defined S_IFREG
25505 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25506 #endif
25507
25508 #if defined S_ISSOCK && defined S_IFREG
25509 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25510 #endif
25511
25512 _ACEOF
25513 rm -f conftest.$ac_objext
25514 if { (ac_try="$ac_compile"
25515 case "(($ac_try" in
25516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25517   *) ac_try_echo=$ac_try;;
25518 esac
25519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25520   (eval "$ac_compile") 2>conftest.er1
25521   ac_status=$?
25522   grep -v '^ *+' conftest.er1 >conftest.err
25523   rm -f conftest.er1
25524   cat conftest.err >&5
25525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526   (exit $ac_status); } && {
25527          test -z "$ac_c_werror_flag" ||
25528          test ! -s conftest.err
25529        } && test -s conftest.$ac_objext; then
25530   ac_cv_header_stat_broken=no
25531 else
25532   echo "$as_me: failed program was:" >&5
25533 sed 's/^/| /' conftest.$ac_ext >&5
25534
25535         ac_cv_header_stat_broken=yes
25536 fi
25537
25538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25539 fi
25540 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25541 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25542 if test $ac_cv_header_stat_broken = yes; then
25543
25544 cat >>confdefs.h <<\_ACEOF
25545 #define STAT_MACROS_BROKEN 1
25546 _ACEOF
25547
25548 fi
25549
25550
25551
25552
25553
25554
25555 ac_header_dirent=no
25556 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25557   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25558 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25559 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25561   echo $ECHO_N "(cached) $ECHO_C" >&6
25562 else
25563   cat >conftest.$ac_ext <<_ACEOF
25564 /* confdefs.h.  */
25565 _ACEOF
25566 cat confdefs.h >>conftest.$ac_ext
25567 cat >>conftest.$ac_ext <<_ACEOF
25568 /* end confdefs.h.  */
25569 #include <sys/types.h>
25570 #include <$ac_hdr>
25571
25572 int
25573 main ()
25574 {
25575 if ((DIR *) 0)
25576 return 0;
25577   ;
25578   return 0;
25579 }
25580 _ACEOF
25581 rm -f conftest.$ac_objext
25582 if { (ac_try="$ac_compile"
25583 case "(($ac_try" in
25584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25585   *) ac_try_echo=$ac_try;;
25586 esac
25587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25588   (eval "$ac_compile") 2>conftest.er1
25589   ac_status=$?
25590   grep -v '^ *+' conftest.er1 >conftest.err
25591   rm -f conftest.er1
25592   cat conftest.err >&5
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); } && {
25595          test -z "$ac_c_werror_flag" ||
25596          test ! -s conftest.err
25597        } && test -s conftest.$ac_objext; then
25598   eval "$as_ac_Header=yes"
25599 else
25600   echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25602
25603         eval "$as_ac_Header=no"
25604 fi
25605
25606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25607 fi
25608 ac_res=`eval echo '${'$as_ac_Header'}'`
25609                { echo "$as_me:$LINENO: result: $ac_res" >&5
25610 echo "${ECHO_T}$ac_res" >&6; }
25611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25612   cat >>confdefs.h <<_ACEOF
25613 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25614 _ACEOF
25615
25616 ac_header_dirent=$ac_hdr; break
25617 fi
25618
25619 done
25620 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25621 if test $ac_header_dirent = dirent.h; then
25622   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25623 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25624 if test "${ac_cv_search_opendir+set}" = set; then
25625   echo $ECHO_N "(cached) $ECHO_C" >&6
25626 else
25627   ac_func_search_save_LIBS=$LIBS
25628 cat >conftest.$ac_ext <<_ACEOF
25629 /* confdefs.h.  */
25630 _ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h.  */
25634
25635 /* Override any GCC internal prototype to avoid an error.
25636    Use char because int might match the return type of a GCC
25637    builtin and then its argument prototype would still apply.  */
25638 #ifdef __cplusplus
25639 extern "C"
25640 #endif
25641 char opendir ();
25642 int
25643 main ()
25644 {
25645 return opendir ();
25646   ;
25647   return 0;
25648 }
25649 _ACEOF
25650 for ac_lib in '' dir; do
25651   if test -z "$ac_lib"; then
25652     ac_res="none required"
25653   else
25654     ac_res=-l$ac_lib
25655     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25656   fi
25657   rm -f conftest.$ac_objext conftest$ac_exeext
25658 if { (ac_try="$ac_link"
25659 case "(($ac_try" in
25660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661   *) ac_try_echo=$ac_try;;
25662 esac
25663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25664   (eval "$ac_link") 2>conftest.er1
25665   ac_status=$?
25666   grep -v '^ *+' conftest.er1 >conftest.err
25667   rm -f conftest.er1
25668   cat conftest.err >&5
25669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670   (exit $ac_status); } && {
25671          test -z "$ac_c_werror_flag" ||
25672          test ! -s conftest.err
25673        } && test -s conftest$ac_exeext &&
25674        $as_test_x conftest$ac_exeext; then
25675   ac_cv_search_opendir=$ac_res
25676 else
25677   echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25679
25680
25681 fi
25682
25683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25684       conftest$ac_exeext
25685   if test "${ac_cv_search_opendir+set}" = set; then
25686   break
25687 fi
25688 done
25689 if test "${ac_cv_search_opendir+set}" = set; then
25690   :
25691 else
25692   ac_cv_search_opendir=no
25693 fi
25694 rm conftest.$ac_ext
25695 LIBS=$ac_func_search_save_LIBS
25696 fi
25697 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25698 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25699 ac_res=$ac_cv_search_opendir
25700 if test "$ac_res" != no; then
25701   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25702
25703 fi
25704
25705 else
25706   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25707 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25708 if test "${ac_cv_search_opendir+set}" = set; then
25709   echo $ECHO_N "(cached) $ECHO_C" >&6
25710 else
25711   ac_func_search_save_LIBS=$LIBS
25712 cat >conftest.$ac_ext <<_ACEOF
25713 /* confdefs.h.  */
25714 _ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h.  */
25718
25719 /* Override any GCC internal prototype to avoid an error.
25720    Use char because int might match the return type of a GCC
25721    builtin and then its argument prototype would still apply.  */
25722 #ifdef __cplusplus
25723 extern "C"
25724 #endif
25725 char opendir ();
25726 int
25727 main ()
25728 {
25729 return opendir ();
25730   ;
25731   return 0;
25732 }
25733 _ACEOF
25734 for ac_lib in '' x; do
25735   if test -z "$ac_lib"; then
25736     ac_res="none required"
25737   else
25738     ac_res=-l$ac_lib
25739     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25740   fi
25741   rm -f conftest.$ac_objext conftest$ac_exeext
25742 if { (ac_try="$ac_link"
25743 case "(($ac_try" in
25744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25745   *) ac_try_echo=$ac_try;;
25746 esac
25747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25748   (eval "$ac_link") 2>conftest.er1
25749   ac_status=$?
25750   grep -v '^ *+' conftest.er1 >conftest.err
25751   rm -f conftest.er1
25752   cat conftest.err >&5
25753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754   (exit $ac_status); } && {
25755          test -z "$ac_c_werror_flag" ||
25756          test ! -s conftest.err
25757        } && test -s conftest$ac_exeext &&
25758        $as_test_x conftest$ac_exeext; then
25759   ac_cv_search_opendir=$ac_res
25760 else
25761   echo "$as_me: failed program was:" >&5
25762 sed 's/^/| /' conftest.$ac_ext >&5
25763
25764
25765 fi
25766
25767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25768       conftest$ac_exeext
25769   if test "${ac_cv_search_opendir+set}" = set; then
25770   break
25771 fi
25772 done
25773 if test "${ac_cv_search_opendir+set}" = set; then
25774   :
25775 else
25776   ac_cv_search_opendir=no
25777 fi
25778 rm conftest.$ac_ext
25779 LIBS=$ac_func_search_save_LIBS
25780 fi
25781 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25782 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25783 ac_res=$ac_cv_search_opendir
25784 if test "$ac_res" != no; then
25785   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25786
25787 fi
25788
25789 fi
25790
25791
25792
25793
25794
25795
25796
25797
25798 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25799 do
25800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25804   echo $ECHO_N "(cached) $ECHO_C" >&6
25805 else
25806   cat >conftest.$ac_ext <<_ACEOF
25807 /* confdefs.h.  */
25808 _ACEOF
25809 cat confdefs.h >>conftest.$ac_ext
25810 cat >>conftest.$ac_ext <<_ACEOF
25811 /* end confdefs.h.  */
25812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25814 #define $ac_func innocuous_$ac_func
25815
25816 /* System header to define __stub macros and hopefully few prototypes,
25817     which can conflict with char $ac_func (); below.
25818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25819     <limits.h> exists even on freestanding compilers.  */
25820
25821 #ifdef __STDC__
25822 # include <limits.h>
25823 #else
25824 # include <assert.h>
25825 #endif
25826
25827 #undef $ac_func
25828
25829 /* Override any GCC internal prototype to avoid an error.
25830    Use char because int might match the return type of a GCC
25831    builtin and then its argument prototype would still apply.  */
25832 #ifdef __cplusplus
25833 extern "C"
25834 #endif
25835 char $ac_func ();
25836 /* The GNU C library defines this for functions which it implements
25837     to always fail with ENOSYS.  Some functions are actually named
25838     something starting with __ and the normal name is an alias.  */
25839 #if defined __stub_$ac_func || defined __stub___$ac_func
25840 choke me
25841 #endif
25842
25843 int
25844 main ()
25845 {
25846 return $ac_func ();
25847   ;
25848   return 0;
25849 }
25850 _ACEOF
25851 rm -f conftest.$ac_objext conftest$ac_exeext
25852 if { (ac_try="$ac_link"
25853 case "(($ac_try" in
25854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25855   *) ac_try_echo=$ac_try;;
25856 esac
25857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25858   (eval "$ac_link") 2>conftest.er1
25859   ac_status=$?
25860   grep -v '^ *+' conftest.er1 >conftest.err
25861   rm -f conftest.er1
25862   cat conftest.err >&5
25863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864   (exit $ac_status); } && {
25865          test -z "$ac_c_werror_flag" ||
25866          test ! -s conftest.err
25867        } && test -s conftest$ac_exeext &&
25868        $as_test_x conftest$ac_exeext; then
25869   eval "$as_ac_var=yes"
25870 else
25871   echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25873
25874         eval "$as_ac_var=no"
25875 fi
25876
25877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25878       conftest$ac_exeext conftest.$ac_ext
25879 fi
25880 ac_res=`eval echo '${'$as_ac_var'}'`
25881                { echo "$as_me:$LINENO: result: $ac_res" >&5
25882 echo "${ECHO_T}$ac_res" >&6; }
25883 if test `eval echo '${'$as_ac_var'}'` = yes; then
25884   cat >>confdefs.h <<_ACEOF
25885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25886 _ACEOF
25887
25888 fi
25889 done
25890
25891
25892
25893 for ac_func in nanosleep nl_langinfo
25894 do
25895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25899   echo $ECHO_N "(cached) $ECHO_C" >&6
25900 else
25901   cat >conftest.$ac_ext <<_ACEOF
25902 /* confdefs.h.  */
25903 _ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h.  */
25907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25909 #define $ac_func innocuous_$ac_func
25910
25911 /* System header to define __stub macros and hopefully few prototypes,
25912     which can conflict with char $ac_func (); below.
25913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25914     <limits.h> exists even on freestanding compilers.  */
25915
25916 #ifdef __STDC__
25917 # include <limits.h>
25918 #else
25919 # include <assert.h>
25920 #endif
25921
25922 #undef $ac_func
25923
25924 /* Override any GCC internal prototype to avoid an error.
25925    Use char because int might match the return type of a GCC
25926    builtin and then its argument prototype would still apply.  */
25927 #ifdef __cplusplus
25928 extern "C"
25929 #endif
25930 char $ac_func ();
25931 /* The GNU C library defines this for functions which it implements
25932     to always fail with ENOSYS.  Some functions are actually named
25933     something starting with __ and the normal name is an alias.  */
25934 #if defined __stub_$ac_func || defined __stub___$ac_func
25935 choke me
25936 #endif
25937
25938 int
25939 main ()
25940 {
25941 return $ac_func ();
25942   ;
25943   return 0;
25944 }
25945 _ACEOF
25946 rm -f conftest.$ac_objext conftest$ac_exeext
25947 if { (ac_try="$ac_link"
25948 case "(($ac_try" in
25949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950   *) ac_try_echo=$ac_try;;
25951 esac
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953   (eval "$ac_link") 2>conftest.er1
25954   ac_status=$?
25955   grep -v '^ *+' conftest.er1 >conftest.err
25956   rm -f conftest.er1
25957   cat conftest.err >&5
25958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959   (exit $ac_status); } && {
25960          test -z "$ac_c_werror_flag" ||
25961          test ! -s conftest.err
25962        } && test -s conftest$ac_exeext &&
25963        $as_test_x conftest$ac_exeext; then
25964   eval "$as_ac_var=yes"
25965 else
25966   echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25968
25969         eval "$as_ac_var=no"
25970 fi
25971
25972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25973       conftest$ac_exeext conftest.$ac_ext
25974 fi
25975 ac_res=`eval echo '${'$as_ac_var'}'`
25976                { echo "$as_me:$LINENO: result: $ac_res" >&5
25977 echo "${ECHO_T}$ac_res" >&6; }
25978 if test `eval echo '${'$as_ac_var'}'` = yes; then
25979   cat >>confdefs.h <<_ACEOF
25980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25981 _ACEOF
25982
25983 fi
25984 done
25985
25986
25987 for ac_header in varargs.h
25988 do
25989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25991   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25994   echo $ECHO_N "(cached) $ECHO_C" >&6
25995 fi
25996 ac_res=`eval echo '${'$as_ac_Header'}'`
25997                { echo "$as_me:$LINENO: result: $ac_res" >&5
25998 echo "${ECHO_T}$ac_res" >&6; }
25999 else
26000   # Is the header compilable?
26001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26003 cat >conftest.$ac_ext <<_ACEOF
26004 /* confdefs.h.  */
26005 _ACEOF
26006 cat confdefs.h >>conftest.$ac_ext
26007 cat >>conftest.$ac_ext <<_ACEOF
26008 /* end confdefs.h.  */
26009 $ac_includes_default
26010 #include <$ac_header>
26011 _ACEOF
26012 rm -f conftest.$ac_objext
26013 if { (ac_try="$ac_compile"
26014 case "(($ac_try" in
26015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016   *) ac_try_echo=$ac_try;;
26017 esac
26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019   (eval "$ac_compile") 2>conftest.er1
26020   ac_status=$?
26021   grep -v '^ *+' conftest.er1 >conftest.err
26022   rm -f conftest.er1
26023   cat conftest.err >&5
26024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025   (exit $ac_status); } && {
26026          test -z "$ac_c_werror_flag" ||
26027          test ! -s conftest.err
26028        } && test -s conftest.$ac_objext; then
26029   ac_header_compiler=yes
26030 else
26031   echo "$as_me: failed program was:" >&5
26032 sed 's/^/| /' conftest.$ac_ext >&5
26033
26034         ac_header_compiler=no
26035 fi
26036
26037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26039 echo "${ECHO_T}$ac_header_compiler" >&6; }
26040
26041 # Is the header present?
26042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26044 cat >conftest.$ac_ext <<_ACEOF
26045 /* confdefs.h.  */
26046 _ACEOF
26047 cat confdefs.h >>conftest.$ac_ext
26048 cat >>conftest.$ac_ext <<_ACEOF
26049 /* end confdefs.h.  */
26050 #include <$ac_header>
26051 _ACEOF
26052 if { (ac_try="$ac_cpp conftest.$ac_ext"
26053 case "(($ac_try" in
26054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26055   *) ac_try_echo=$ac_try;;
26056 esac
26057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26059   ac_status=$?
26060   grep -v '^ *+' conftest.er1 >conftest.err
26061   rm -f conftest.er1
26062   cat conftest.err >&5
26063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064   (exit $ac_status); } >/dev/null && {
26065          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26066          test ! -s conftest.err
26067        }; then
26068   ac_header_preproc=yes
26069 else
26070   echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.$ac_ext >&5
26072
26073   ac_header_preproc=no
26074 fi
26075
26076 rm -f conftest.err conftest.$ac_ext
26077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26078 echo "${ECHO_T}$ac_header_preproc" >&6; }
26079
26080 # So?  What about this header?
26081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26082   yes:no: )
26083     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26087     ac_header_preproc=yes
26088     ;;
26089   no:yes:* )
26090     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26092     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26093 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26094     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26096     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26097 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26100     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26102
26103     ;;
26104 esac
26105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26108   echo $ECHO_N "(cached) $ECHO_C" >&6
26109 else
26110   eval "$as_ac_Header=\$ac_header_preproc"
26111 fi
26112 ac_res=`eval echo '${'$as_ac_Header'}'`
26113                { echo "$as_me:$LINENO: result: $ac_res" >&5
26114 echo "${ECHO_T}$ac_res" >&6; }
26115
26116 fi
26117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26118   cat >>confdefs.h <<_ACEOF
26119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26120 _ACEOF
26121
26122 fi
26123
26124 done
26125
26126
26127
26128 { echo "$as_me:$LINENO: checking for Python support" >&5
26129 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26130
26131 # Check whether --with-python was given.
26132 if test "${with_python+set}" = set; then
26133   withval=$with_python;
26134        PYTHON_INCDIR=
26135        PYTHON_LIBS=
26136        if test "$withval" != "no"; then
26137           if test "$withval" = "yes"; then
26138              for python_root in /usr /usr/local /usr/sfw; do
26139                 for ver in python2.2 python2.3 python2.4 python2.5; do
26140                    if test -f $python_root/include/${ver}/Python.h; then
26141                       PYTHON_INCDIR=-I$python_root/include/${ver}
26142                       if test -d $python_root/lib64/${ver}/config; then
26143                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26144                       else
26145                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26146                       fi
26147                       break
26148                    fi
26149                 done
26150              done
26151
26152              if test x$PYTHON_INCDIR = x; then
26153                 if test -f $prefix/include/Python.h; then
26154                    PYTHON_INCDIR=-I$prefix/include
26155                    if test -d $prefix/lib64/config; then
26156                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26157                    else
26158                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26159                    fi
26160                 else
26161                    { echo "$as_me:$LINENO: result: no" >&5
26162 echo "${ECHO_T}no" >&6; }
26163                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26164 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26165    { (exit 1); exit 1; }; }
26166                 fi
26167              fi
26168           else
26169              if test -f $withval/Python.h; then
26170                 PYTHON_INCDIR=-I$withval
26171                 PYTHON_LIBS="-L$withval/config -lpython"
26172              elif test -f $withval/include/Python.h; then
26173                 PYTHON_INCDIR=-I$withval/include
26174                 if test -d $withval/lib64/config; then
26175                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26176                 else
26177                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26178                 fi
26179              elif test -f $withval/include/python/Python.h; then
26180                 PYTHON_INCDIR=-I$withval/include/python
26181                 if test -d $withval/lib64/python/config; then
26182                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26183                 else
26184                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26185                 fi
26186              else
26187                 { echo "$as_me:$LINENO: result: no" >&5
26188 echo "${ECHO_T}no" >&6; }
26189                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26190 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26191    { (exit 1); exit 1; }; }
26192              fi
26193           fi
26194
26195           cat >>confdefs.h <<\_ACEOF
26196 #define HAVE_PYTHON 1
26197 _ACEOF
26198
26199           { echo "$as_me:$LINENO: result: yes" >&5
26200 echo "${ECHO_T}yes" >&6; }
26201           support_python=yes
26202           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26203 echo "$as_me: checking for more Python libs" >&6;}
26204           saved_LIBS="$LIBS"; LIBS=
26205           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26206 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26207 if test "${ac_cv_search_shm_open+set}" = set; then
26208   echo $ECHO_N "(cached) $ECHO_C" >&6
26209 else
26210   ac_func_search_save_LIBS=$LIBS
26211 cat >conftest.$ac_ext <<_ACEOF
26212 /* confdefs.h.  */
26213 _ACEOF
26214 cat confdefs.h >>conftest.$ac_ext
26215 cat >>conftest.$ac_ext <<_ACEOF
26216 /* end confdefs.h.  */
26217
26218 /* Override any GCC internal prototype to avoid an error.
26219    Use char because int might match the return type of a GCC
26220    builtin and then its argument prototype would still apply.  */
26221 #ifdef __cplusplus
26222 extern "C"
26223 #endif
26224 char shm_open ();
26225 int
26226 main ()
26227 {
26228 return shm_open ();
26229   ;
26230   return 0;
26231 }
26232 _ACEOF
26233 for ac_lib in '' rt; do
26234   if test -z "$ac_lib"; then
26235     ac_res="none required"
26236   else
26237     ac_res=-l$ac_lib
26238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26239   fi
26240   rm -f conftest.$ac_objext conftest$ac_exeext
26241 if { (ac_try="$ac_link"
26242 case "(($ac_try" in
26243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26244   *) ac_try_echo=$ac_try;;
26245 esac
26246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26247   (eval "$ac_link") 2>conftest.er1
26248   ac_status=$?
26249   grep -v '^ *+' conftest.er1 >conftest.err
26250   rm -f conftest.er1
26251   cat conftest.err >&5
26252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253   (exit $ac_status); } && {
26254          test -z "$ac_c_werror_flag" ||
26255          test ! -s conftest.err
26256        } && test -s conftest$ac_exeext &&
26257        $as_test_x conftest$ac_exeext; then
26258   ac_cv_search_shm_open=$ac_res
26259 else
26260   echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26262
26263
26264 fi
26265
26266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26267       conftest$ac_exeext
26268   if test "${ac_cv_search_shm_open+set}" = set; then
26269   break
26270 fi
26271 done
26272 if test "${ac_cv_search_shm_open+set}" = set; then
26273   :
26274 else
26275   ac_cv_search_shm_open=no
26276 fi
26277 rm conftest.$ac_ext
26278 LIBS=$ac_func_search_save_LIBS
26279 fi
26280 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26281 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26282 ac_res=$ac_cv_search_shm_open
26283 if test "$ac_res" != no; then
26284   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26285
26286 fi
26287
26288
26289 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26290 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26291 if test "${ac_cv_lib_util_openpty+set}" = set; then
26292   echo $ECHO_N "(cached) $ECHO_C" >&6
26293 else
26294   ac_check_lib_save_LIBS=$LIBS
26295 LIBS="-lutil  $LIBS"
26296 cat >conftest.$ac_ext <<_ACEOF
26297 /* confdefs.h.  */
26298 _ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h.  */
26302
26303 /* Override any GCC internal prototype to avoid an error.
26304    Use char because int might match the return type of a GCC
26305    builtin and then its argument prototype would still apply.  */
26306 #ifdef __cplusplus
26307 extern "C"
26308 #endif
26309 char openpty ();
26310 int
26311 main ()
26312 {
26313 return openpty ();
26314   ;
26315   return 0;
26316 }
26317 _ACEOF
26318 rm -f conftest.$ac_objext conftest$ac_exeext
26319 if { (ac_try="$ac_link"
26320 case "(($ac_try" in
26321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26322   *) ac_try_echo=$ac_try;;
26323 esac
26324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26325   (eval "$ac_link") 2>conftest.er1
26326   ac_status=$?
26327   grep -v '^ *+' conftest.er1 >conftest.err
26328   rm -f conftest.er1
26329   cat conftest.err >&5
26330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331   (exit $ac_status); } && {
26332          test -z "$ac_c_werror_flag" ||
26333          test ! -s conftest.err
26334        } && test -s conftest$ac_exeext &&
26335        $as_test_x conftest$ac_exeext; then
26336   ac_cv_lib_util_openpty=yes
26337 else
26338   echo "$as_me: failed program was:" >&5
26339 sed 's/^/| /' conftest.$ac_ext >&5
26340
26341         ac_cv_lib_util_openpty=no
26342 fi
26343
26344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26345       conftest$ac_exeext conftest.$ac_ext
26346 LIBS=$ac_check_lib_save_LIBS
26347 fi
26348 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26349 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26350 if test $ac_cv_lib_util_openpty = yes; then
26351   cat >>confdefs.h <<_ACEOF
26352 #define HAVE_LIBUTIL 1
26353 _ACEOF
26354
26355   LIBS="-lutil $LIBS"
26356
26357 fi
26358
26359           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26360           LIBS="$saved_LIBS"
26361        else
26362           { echo "$as_me:$LINENO: result: no" >&5
26363 echo "${ECHO_T}no" >&6; }
26364        fi
26365
26366 else
26367
26368        { echo "$as_me:$LINENO: result: no" >&5
26369 echo "${ECHO_T}no" >&6; }
26370
26371
26372 fi
26373
26374
26375
26376
26377 { echo "$as_me:$LINENO: checking for socket" >&5
26378 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26379 if test "${ac_cv_func_socket+set}" = set; then
26380   echo $ECHO_N "(cached) $ECHO_C" >&6
26381 else
26382   cat >conftest.$ac_ext <<_ACEOF
26383 /* confdefs.h.  */
26384 _ACEOF
26385 cat confdefs.h >>conftest.$ac_ext
26386 cat >>conftest.$ac_ext <<_ACEOF
26387 /* end confdefs.h.  */
26388 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26390 #define socket innocuous_socket
26391
26392 /* System header to define __stub macros and hopefully few prototypes,
26393     which can conflict with char socket (); below.
26394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26395     <limits.h> exists even on freestanding compilers.  */
26396
26397 #ifdef __STDC__
26398 # include <limits.h>
26399 #else
26400 # include <assert.h>
26401 #endif
26402
26403 #undef socket
26404
26405 /* Override any GCC internal prototype to avoid an error.
26406    Use char because int might match the return type of a GCC
26407    builtin and then its argument prototype would still apply.  */
26408 #ifdef __cplusplus
26409 extern "C"
26410 #endif
26411 char socket ();
26412 /* The GNU C library defines this for functions which it implements
26413     to always fail with ENOSYS.  Some functions are actually named
26414     something starting with __ and the normal name is an alias.  */
26415 #if defined __stub_socket || defined __stub___socket
26416 choke me
26417 #endif
26418
26419 int
26420 main ()
26421 {
26422 return socket ();
26423   ;
26424   return 0;
26425 }
26426 _ACEOF
26427 rm -f conftest.$ac_objext conftest$ac_exeext
26428 if { (ac_try="$ac_link"
26429 case "(($ac_try" in
26430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26431   *) ac_try_echo=$ac_try;;
26432 esac
26433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26434   (eval "$ac_link") 2>conftest.er1
26435   ac_status=$?
26436   grep -v '^ *+' conftest.er1 >conftest.err
26437   rm -f conftest.er1
26438   cat conftest.err >&5
26439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440   (exit $ac_status); } && {
26441          test -z "$ac_c_werror_flag" ||
26442          test ! -s conftest.err
26443        } && test -s conftest$ac_exeext &&
26444        $as_test_x conftest$ac_exeext; then
26445   ac_cv_func_socket=yes
26446 else
26447   echo "$as_me: failed program was:" >&5
26448 sed 's/^/| /' conftest.$ac_ext >&5
26449
26450         ac_cv_func_socket=no
26451 fi
26452
26453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26454       conftest$ac_exeext conftest.$ac_ext
26455 fi
26456 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26457 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26458 if test $ac_cv_func_socket = yes; then
26459   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26460 echo "${ECHO_T}using libc's socket" >&6; }
26461 else
26462
26463 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26464 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26465 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26466   echo $ECHO_N "(cached) $ECHO_C" >&6
26467 else
26468   ac_check_lib_save_LIBS=$LIBS
26469 LIBS="-lxnet  $LIBS"
26470 cat >conftest.$ac_ext <<_ACEOF
26471 /* confdefs.h.  */
26472 _ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h.  */
26476
26477 /* Override any GCC internal prototype to avoid an error.
26478    Use char because int might match the return type of a GCC
26479    builtin and then its argument prototype would still apply.  */
26480 #ifdef __cplusplus
26481 extern "C"
26482 #endif
26483 char socket ();
26484 int
26485 main ()
26486 {
26487 return socket ();
26488   ;
26489   return 0;
26490 }
26491 _ACEOF
26492 rm -f conftest.$ac_objext conftest$ac_exeext
26493 if { (ac_try="$ac_link"
26494 case "(($ac_try" in
26495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26496   *) ac_try_echo=$ac_try;;
26497 esac
26498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26499   (eval "$ac_link") 2>conftest.er1
26500   ac_status=$?
26501   grep -v '^ *+' conftest.er1 >conftest.err
26502   rm -f conftest.er1
26503   cat conftest.err >&5
26504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505   (exit $ac_status); } && {
26506          test -z "$ac_c_werror_flag" ||
26507          test ! -s conftest.err
26508        } && test -s conftest$ac_exeext &&
26509        $as_test_x conftest$ac_exeext; then
26510   ac_cv_lib_xnet_socket=yes
26511 else
26512   echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26514
26515         ac_cv_lib_xnet_socket=no
26516 fi
26517
26518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26519       conftest$ac_exeext conftest.$ac_ext
26520 LIBS=$ac_check_lib_save_LIBS
26521 fi
26522 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26523 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26524 if test $ac_cv_lib_xnet_socket = yes; then
26525   cat >>confdefs.h <<_ACEOF
26526 #define HAVE_LIBXNET 1
26527 _ACEOF
26528
26529   LIBS="-lxnet $LIBS"
26530
26531 fi
26532
26533
26534 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26535 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26536 if test "${ac_cv_lib_socket_socket+set}" = set; then
26537   echo $ECHO_N "(cached) $ECHO_C" >&6
26538 else
26539   ac_check_lib_save_LIBS=$LIBS
26540 LIBS="-lsocket  $LIBS"
26541 cat >conftest.$ac_ext <<_ACEOF
26542 /* confdefs.h.  */
26543 _ACEOF
26544 cat confdefs.h >>conftest.$ac_ext
26545 cat >>conftest.$ac_ext <<_ACEOF
26546 /* end confdefs.h.  */
26547
26548 /* Override any GCC internal prototype to avoid an error.
26549    Use char because int might match the return type of a GCC
26550    builtin and then its argument prototype would still apply.  */
26551 #ifdef __cplusplus
26552 extern "C"
26553 #endif
26554 char socket ();
26555 int
26556 main ()
26557 {
26558 return socket ();
26559   ;
26560   return 0;
26561 }
26562 _ACEOF
26563 rm -f conftest.$ac_objext conftest$ac_exeext
26564 if { (ac_try="$ac_link"
26565 case "(($ac_try" in
26566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26567   *) ac_try_echo=$ac_try;;
26568 esac
26569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26570   (eval "$ac_link") 2>conftest.er1
26571   ac_status=$?
26572   grep -v '^ *+' conftest.er1 >conftest.err
26573   rm -f conftest.er1
26574   cat conftest.err >&5
26575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576   (exit $ac_status); } && {
26577          test -z "$ac_c_werror_flag" ||
26578          test ! -s conftest.err
26579        } && test -s conftest$ac_exeext &&
26580        $as_test_x conftest$ac_exeext; then
26581   ac_cv_lib_socket_socket=yes
26582 else
26583   echo "$as_me: failed program was:" >&5
26584 sed 's/^/| /' conftest.$ac_ext >&5
26585
26586         ac_cv_lib_socket_socket=no
26587 fi
26588
26589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26590       conftest$ac_exeext conftest.$ac_ext
26591 LIBS=$ac_check_lib_save_LIBS
26592 fi
26593 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26594 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26595 if test $ac_cv_lib_socket_socket = yes; then
26596   cat >>confdefs.h <<_ACEOF
26597 #define HAVE_LIBSOCKET 1
26598 _ACEOF
26599
26600   LIBS="-lsocket $LIBS"
26601
26602 fi
26603
26604
26605 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26606 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26607 if test "${ac_cv_lib_inet_socket+set}" = set; then
26608   echo $ECHO_N "(cached) $ECHO_C" >&6
26609 else
26610   ac_check_lib_save_LIBS=$LIBS
26611 LIBS="-linet  $LIBS"
26612 cat >conftest.$ac_ext <<_ACEOF
26613 /* confdefs.h.  */
26614 _ACEOF
26615 cat confdefs.h >>conftest.$ac_ext
26616 cat >>conftest.$ac_ext <<_ACEOF
26617 /* end confdefs.h.  */
26618
26619 /* Override any GCC internal prototype to avoid an error.
26620    Use char because int might match the return type of a GCC
26621    builtin and then its argument prototype would still apply.  */
26622 #ifdef __cplusplus
26623 extern "C"
26624 #endif
26625 char socket ();
26626 int
26627 main ()
26628 {
26629 return socket ();
26630   ;
26631   return 0;
26632 }
26633 _ACEOF
26634 rm -f conftest.$ac_objext conftest$ac_exeext
26635 if { (ac_try="$ac_link"
26636 case "(($ac_try" in
26637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26638   *) ac_try_echo=$ac_try;;
26639 esac
26640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26641   (eval "$ac_link") 2>conftest.er1
26642   ac_status=$?
26643   grep -v '^ *+' conftest.er1 >conftest.err
26644   rm -f conftest.er1
26645   cat conftest.err >&5
26646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647   (exit $ac_status); } && {
26648          test -z "$ac_c_werror_flag" ||
26649          test ! -s conftest.err
26650        } && test -s conftest$ac_exeext &&
26651        $as_test_x conftest$ac_exeext; then
26652   ac_cv_lib_inet_socket=yes
26653 else
26654   echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.$ac_ext >&5
26656
26657         ac_cv_lib_inet_socket=no
26658 fi
26659
26660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26661       conftest$ac_exeext conftest.$ac_ext
26662 LIBS=$ac_check_lib_save_LIBS
26663 fi
26664 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26665 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26666 if test $ac_cv_lib_inet_socket = yes; then
26667   cat >>confdefs.h <<_ACEOF
26668 #define HAVE_LIBINET 1
26669 _ACEOF
26670
26671   LIBS="-linet $LIBS"
26672
26673 fi
26674
26675 fi
26676
26677
26678 TCPW_MSG="no"
26679 WRAPLIBS=""
26680
26681 # Check whether --with-tcp-wrappers was given.
26682 if test "${with_tcp_wrappers+set}" = set; then
26683   withval=$with_tcp_wrappers;
26684        if test "x$withval" != "xno" ; then
26685           saved_LIBS="$LIBS"
26686           LIBS="$saved_LIBS -lwrap"
26687           { echo "$as_me:$LINENO: checking for libwrap" >&5
26688 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26689           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26690 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26691 if test "${ac_cv_search_nanosleep+set}" = set; then
26692   echo $ECHO_N "(cached) $ECHO_C" >&6
26693 else
26694   ac_func_search_save_LIBS=$LIBS
26695 cat >conftest.$ac_ext <<_ACEOF
26696 /* confdefs.h.  */
26697 _ACEOF
26698 cat confdefs.h >>conftest.$ac_ext
26699 cat >>conftest.$ac_ext <<_ACEOF
26700 /* end confdefs.h.  */
26701
26702 /* Override any GCC internal prototype to avoid an error.
26703    Use char because int might match the return type of a GCC
26704    builtin and then its argument prototype would still apply.  */
26705 #ifdef __cplusplus
26706 extern "C"
26707 #endif
26708 char nanosleep ();
26709 int
26710 main ()
26711 {
26712 return nanosleep ();
26713   ;
26714   return 0;
26715 }
26716 _ACEOF
26717 for ac_lib in '' rt; do
26718   if test -z "$ac_lib"; then
26719     ac_res="none required"
26720   else
26721     ac_res=-l$ac_lib
26722     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26723   fi
26724   rm -f conftest.$ac_objext conftest$ac_exeext
26725 if { (ac_try="$ac_link"
26726 case "(($ac_try" in
26727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728   *) ac_try_echo=$ac_try;;
26729 esac
26730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731   (eval "$ac_link") 2>conftest.er1
26732   ac_status=$?
26733   grep -v '^ *+' conftest.er1 >conftest.err
26734   rm -f conftest.er1
26735   cat conftest.err >&5
26736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737   (exit $ac_status); } && {
26738          test -z "$ac_c_werror_flag" ||
26739          test ! -s conftest.err
26740        } && test -s conftest$ac_exeext &&
26741        $as_test_x conftest$ac_exeext; then
26742   ac_cv_search_nanosleep=$ac_res
26743 else
26744   echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26746
26747
26748 fi
26749
26750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26751       conftest$ac_exeext
26752   if test "${ac_cv_search_nanosleep+set}" = set; then
26753   break
26754 fi
26755 done
26756 if test "${ac_cv_search_nanosleep+set}" = set; then
26757   :
26758 else
26759   ac_cv_search_nanosleep=no
26760 fi
26761 rm conftest.$ac_ext
26762 LIBS=$ac_func_search_save_LIBS
26763 fi
26764 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26765 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26766 ac_res=$ac_cv_search_nanosleep
26767 if test "$ac_res" != no; then
26768   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26769
26770 fi
26771
26772           cat >conftest.$ac_ext <<_ACEOF
26773 /* confdefs.h.  */
26774 _ACEOF
26775 cat confdefs.h >>conftest.$ac_ext
26776 cat >>conftest.$ac_ext <<_ACEOF
26777 /* end confdefs.h.  */
26778
26779                #include <sys/types.h>
26780                #include <tcpd.h>
26781                int deny_severity = 0;
26782                int allow_severity = 0;
26783                struct request_info *req;
26784
26785 int
26786 main ()
26787 {
26788
26789                 hosts_access(req);
26790
26791   ;
26792   return 0;
26793 }
26794 _ACEOF
26795 rm -f conftest.$ac_objext conftest$ac_exeext
26796 if { (ac_try="$ac_link"
26797 case "(($ac_try" in
26798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26799   *) ac_try_echo=$ac_try;;
26800 esac
26801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26802   (eval "$ac_link") 2>conftest.er1
26803   ac_status=$?
26804   grep -v '^ *+' conftest.er1 >conftest.err
26805   rm -f conftest.er1
26806   cat conftest.err >&5
26807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808   (exit $ac_status); } && {
26809          test -z "$ac_c_werror_flag" ||
26810          test ! -s conftest.err
26811        } && test -s conftest$ac_exeext &&
26812        $as_test_x conftest$ac_exeext; then
26813
26814                  { echo "$as_me:$LINENO: result: yes" >&5
26815 echo "${ECHO_T}yes" >&6; }
26816
26817 cat >>confdefs.h <<\_ACEOF
26818 #define HAVE_LIBWRAP 1
26819 _ACEOF
26820
26821                  TCPW_MSG="yes"
26822                  LIBS="$saved_LIBS"
26823                  WRAPLIBS="-lwrap"
26824
26825 else
26826   echo "$as_me: failed program was:" >&5
26827 sed 's/^/| /' conftest.$ac_ext >&5
26828
26829
26830                  LIBS="$saved_LIBS -lwrap -lnsl"
26831                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26832                  cat >conftest.$ac_ext <<_ACEOF
26833 /* confdefs.h.  */
26834 _ACEOF
26835 cat confdefs.h >>conftest.$ac_ext
26836 cat >>conftest.$ac_ext <<_ACEOF
26837 /* end confdefs.h.  */
26838
26839                        #include <sys/types.h>
26840                        #include <tcpd.h>
26841                        int deny_severity = 0;
26842                        int allow_severity = 0;
26843                        struct request_info *req;
26844
26845 int
26846 main ()
26847 {
26848
26849                        hosts_access(req);
26850
26851   ;
26852   return 0;
26853 }
26854 _ACEOF
26855 rm -f conftest.$ac_objext conftest$ac_exeext
26856 if { (ac_try="$ac_link"
26857 case "(($ac_try" in
26858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26859   *) ac_try_echo=$ac_try;;
26860 esac
26861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26862   (eval "$ac_link") 2>conftest.er1
26863   ac_status=$?
26864   grep -v '^ *+' conftest.er1 >conftest.err
26865   rm -f conftest.er1
26866   cat conftest.err >&5
26867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868   (exit $ac_status); } && {
26869          test -z "$ac_c_werror_flag" ||
26870          test ! -s conftest.err
26871        } && test -s conftest$ac_exeext &&
26872        $as_test_x conftest$ac_exeext; then
26873
26874                       { echo "$as_me:$LINENO: result: yes" >&5
26875 echo "${ECHO_T}yes" >&6; }
26876
26877 cat >>confdefs.h <<\_ACEOF
26878 #define HAVE_LIBWRAP 1
26879 _ACEOF
26880
26881                       TCPW_MSG="yes"
26882                       LIBS="$saved_LIBS"
26883                       WRAPLIBS="-lwrap"
26884
26885 else
26886   echo "$as_me: failed program was:" >&5
26887 sed 's/^/| /' conftest.$ac_ext >&5
26888
26889
26890                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26891 echo "$as_me: error: *** libwrap missing" >&2;}
26892    { (exit 1); exit 1; }; }
26893
26894
26895 fi
26896
26897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26898       conftest$ac_exeext conftest.$ac_ext
26899
26900
26901 fi
26902
26903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26904       conftest$ac_exeext conftest.$ac_ext
26905        fi
26906
26907
26908 fi
26909
26910
26911 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26912 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26913
26914 # Check whether --with-openssl was given.
26915 if test "${with_openssl+set}" = set; then
26916   withval=$with_openssl;
26917         with_openssl_directory=${withval}
26918
26919
26920 fi
26921
26922
26923 if test "x$with_openssl_directory" != "xno"; then
26924    OPENSSL_LIBS="-lssl -lcrypto"
26925    OPENSSL_INC=""
26926
26927    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26928       #
26929       # Make sure the $with_openssl_directory also makes sense
26930       #
26931       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26932          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26933          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26934       fi
26935    fi
26936
26937    saved_LIBS="${LIBS}"
26938    saved_CFLAGS="${CFLAGS}"
26939    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26940    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26941
26942    cat >conftest.$ac_ext <<_ACEOF
26943 /* confdefs.h.  */
26944 _ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h.  */
26948
26949           #include <openssl/ssl.h>
26950
26951 int
26952 main ()
26953 {
26954
26955            CRYPTO_set_id_callback(NULL);
26956
26957   ;
26958   return 0;
26959 }
26960 _ACEOF
26961 rm -f conftest.$ac_objext conftest$ac_exeext
26962 if { (ac_try="$ac_link"
26963 case "(($ac_try" in
26964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26965   *) ac_try_echo=$ac_try;;
26966 esac
26967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26968   (eval "$ac_link") 2>conftest.er1
26969   ac_status=$?
26970   grep -v '^ *+' conftest.er1 >conftest.err
26971   rm -f conftest.er1
26972   cat conftest.err >&5
26973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974   (exit $ac_status); } && {
26975          test -z "$ac_c_werror_flag" ||
26976          test ! -s conftest.err
26977        } && test -s conftest$ac_exeext &&
26978        $as_test_x conftest$ac_exeext; then
26979
26980           support_tls="yes"
26981           support_crypto="yes"
26982
26983 else
26984   echo "$as_me: failed program was:" >&5
26985 sed 's/^/| /' conftest.$ac_ext >&5
26986
26987
26988           support_tls="no"
26989
26990
26991 fi
26992
26993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26994       conftest$ac_exeext conftest.$ac_ext
26995
26996    cat >conftest.$ac_ext <<_ACEOF
26997 /* confdefs.h.  */
26998 _ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h.  */
27002
27003           #include <openssl/evp.h>
27004
27005 int
27006 main ()
27007 {
27008
27009           EVP_sha512();
27010
27011   ;
27012   return 0;
27013 }
27014 _ACEOF
27015 rm -f conftest.$ac_objext conftest$ac_exeext
27016 if { (ac_try="$ac_link"
27017 case "(($ac_try" in
27018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019   *) ac_try_echo=$ac_try;;
27020 esac
27021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27022   (eval "$ac_link") 2>conftest.er1
27023   ac_status=$?
27024   grep -v '^ *+' conftest.er1 >conftest.err
27025   rm -f conftest.er1
27026   cat conftest.err >&5
27027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028   (exit $ac_status); } && {
27029          test -z "$ac_c_werror_flag" ||
27030          test ! -s conftest.err
27031        } && test -s conftest$ac_exeext &&
27032        $as_test_x conftest$ac_exeext; then
27033
27034           ac_cv_openssl_sha2="yes"
27035
27036 else
27037   echo "$as_me: failed program was:" >&5
27038 sed 's/^/| /' conftest.$ac_ext >&5
27039
27040
27041           ac_cv_openssl_sha2="no"
27042
27043
27044 fi
27045
27046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27047       conftest$ac_exeext conftest.$ac_ext
27048
27049                cat >conftest.$ac_ext <<_ACEOF
27050 /* confdefs.h.  */
27051 _ACEOF
27052 cat confdefs.h >>conftest.$ac_ext
27053 cat >>conftest.$ac_ext <<_ACEOF
27054 /* end confdefs.h.  */
27055
27056           #include <openssl/evp.h>
27057
27058 int
27059 main ()
27060 {
27061
27062           EVP_aes_192_cbc();
27063
27064   ;
27065   return 0;
27066 }
27067 _ACEOF
27068 rm -f conftest.$ac_objext conftest$ac_exeext
27069 if { (ac_try="$ac_link"
27070 case "(($ac_try" in
27071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072   *) ac_try_echo=$ac_try;;
27073 esac
27074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075   (eval "$ac_link") 2>conftest.er1
27076   ac_status=$?
27077   grep -v '^ *+' conftest.er1 >conftest.err
27078   rm -f conftest.er1
27079   cat conftest.err >&5
27080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081   (exit $ac_status); } && {
27082          test -z "$ac_c_werror_flag" ||
27083          test ! -s conftest.err
27084        } && test -s conftest$ac_exeext &&
27085        $as_test_x conftest$ac_exeext; then
27086
27087           ac_cv_openssl_export="no"
27088
27089 else
27090   echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27092
27093
27094           ac_cv_openssl_export="yes"
27095
27096
27097 fi
27098
27099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27100       conftest$ac_exeext conftest.$ac_ext
27101
27102    LIBS="${saved_LIBS}"
27103    CFLAGS="${saved_CFLAGS}"
27104
27105    if test "$support_tls" = "yes"; then
27106
27107 cat >>confdefs.h <<\_ACEOF
27108 #define HAVE_OPENSSL 1
27109 _ACEOF
27110
27111
27112 cat >>confdefs.h <<\_ACEOF
27113 #define HAVE_TLS 1
27114 _ACEOF
27115
27116
27117 cat >>confdefs.h <<\_ACEOF
27118 #define HAVE_CRYPTO 1
27119 _ACEOF
27120
27121    fi
27122
27123    if test "$ac_cv_openssl_sha2" = "yes"; then
27124
27125 cat >>confdefs.h <<\_ACEOF
27126 #define HAVE_SHA2 1
27127 _ACEOF
27128
27129    fi
27130
27131    if test "$ac_cv_openssl_export" = "yes"; then
27132
27133 cat >>confdefs.h <<\_ACEOF
27134 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27135 _ACEOF
27136
27137    fi
27138 else
27139    support_tls="no"
27140    support_crypto="no"
27141    OPENSSL_LIBS=""
27142    OPENSSL_INC=""
27143 fi
27144
27145 { echo "$as_me:$LINENO: result: $support_tls" >&5
27146 echo "${ECHO_T}$support_tls" >&6; }
27147
27148
27149
27150 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27151 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27152 if test "${ac_cv_search_dlopen+set}" = set; then
27153   echo $ECHO_N "(cached) $ECHO_C" >&6
27154 else
27155   ac_func_search_save_LIBS=$LIBS
27156 cat >conftest.$ac_ext <<_ACEOF
27157 /* confdefs.h.  */
27158 _ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h.  */
27162
27163 /* Override any GCC internal prototype to avoid an error.
27164    Use char because int might match the return type of a GCC
27165    builtin and then its argument prototype would still apply.  */
27166 #ifdef __cplusplus
27167 extern "C"
27168 #endif
27169 char dlopen ();
27170 int
27171 main ()
27172 {
27173 return dlopen ();
27174   ;
27175   return 0;
27176 }
27177 _ACEOF
27178 for ac_lib in '' dl; do
27179   if test -z "$ac_lib"; then
27180     ac_res="none required"
27181   else
27182     ac_res=-l$ac_lib
27183     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27184   fi
27185   rm -f conftest.$ac_objext conftest$ac_exeext
27186 if { (ac_try="$ac_link"
27187 case "(($ac_try" in
27188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27189   *) ac_try_echo=$ac_try;;
27190 esac
27191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27192   (eval "$ac_link") 2>conftest.er1
27193   ac_status=$?
27194   grep -v '^ *+' conftest.er1 >conftest.err
27195   rm -f conftest.er1
27196   cat conftest.err >&5
27197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198   (exit $ac_status); } && {
27199          test -z "$ac_c_werror_flag" ||
27200          test ! -s conftest.err
27201        } && test -s conftest$ac_exeext &&
27202        $as_test_x conftest$ac_exeext; then
27203   ac_cv_search_dlopen=$ac_res
27204 else
27205   echo "$as_me: failed program was:" >&5
27206 sed 's/^/| /' conftest.$ac_ext >&5
27207
27208
27209 fi
27210
27211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27212       conftest$ac_exeext
27213   if test "${ac_cv_search_dlopen+set}" = set; then
27214   break
27215 fi
27216 done
27217 if test "${ac_cv_search_dlopen+set}" = set; then
27218   :
27219 else
27220   ac_cv_search_dlopen=no
27221 fi
27222 rm conftest.$ac_ext
27223 LIBS=$ac_func_search_save_LIBS
27224 fi
27225 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27226 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27227 ac_res=$ac_cv_search_dlopen
27228 if test "$ac_res" != no; then
27229   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27230
27231 fi
27232
27233
27234 working_dir=`eval echo ${prefix}/var/bacula/working`
27235
27236 # Check whether --with-working-dir was given.
27237 if test "${with_working_dir+set}" = set; then
27238   withval=$with_working_dir;
27239        if test "x$withval" != "xno" ; then
27240          working_dir=$withval
27241        fi
27242
27243
27244 fi
27245
27246
27247
27248
27249 archive_dir=/tmp
27250
27251 # Check whether --with-archivedir was given.
27252 if test "${with_archivedir+set}" = set; then
27253   withval=$with_archivedir;
27254        if test "x$withval" != "xno" ; then
27255           archivedir=$withval
27256        fi
27257
27258
27259 fi
27260
27261
27262
27263
27264 scriptdir=`eval echo ${sysconfdir}`
27265
27266 # Check whether --with-scriptdir was given.
27267 if test "${with_scriptdir+set}" = set; then
27268   withval=$with_scriptdir;
27269        if test "x$withval" != "xno" ; then
27270           scriptdir=$withval
27271        fi
27272
27273
27274 fi
27275
27276
27277
27278
27279 # ------------------------------------------
27280 # Where to place plugindir (plugin files)
27281 # ------------------------------------------
27282 plugindir=`eval echo ${sysconfdir}`
27283
27284 # Check whether --with-plugindir was given.
27285 if test "${with_plugindir+set}" = set; then
27286   withval=$with_plugindir;
27287        if test "x$withval" != "xno" ; then
27288           plugindir=$withval
27289        fi
27290
27291
27292 fi
27293
27294
27295
27296
27297 dump_email=root@localhost
27298
27299 # Check whether --with-dump-email was given.
27300 if test "${with_dump_email+set}" = set; then
27301   withval=$with_dump_email;
27302        if test "x$withval" != "xno" ; then
27303           dump_email=$withval
27304        fi
27305
27306
27307 fi
27308
27309
27310
27311
27312 job_email=root@localhost
27313
27314 # Check whether --with-job-email was given.
27315 if test "${with_job_email+set}" = set; then
27316   withval=$with_job_email;
27317        if test "x$withval" != "xno" ; then
27318           job_email=$withval
27319        fi
27320
27321
27322 fi
27323
27324
27325
27326
27327 smtp_host=localhost
27328
27329 # Check whether --with-smtp_host was given.
27330 if test "${with_smtp_host+set}" = set; then
27331   withval=$with_smtp_host;
27332        if test "x$withval" != "xno" ; then
27333           smtp_host=$withval
27334        fi
27335
27336
27337 fi
27338
27339
27340
27341
27342 piddir=/var/run
27343
27344 # Check whether --with-pid-dir was given.
27345 if test "${with_pid_dir+set}" = set; then
27346   withval=$with_pid_dir;
27347        if test "x$withval" != "xno" ; then
27348           piddir=$withval
27349        fi
27350
27351
27352 fi
27353
27354
27355 cat >>confdefs.h <<_ACEOF
27356 #define _PATH_BACULA_PIDDIR "$piddir"
27357 _ACEOF
27358
27359
27360
27361 subsysdir=/var/run/subsys
27362 if test -d /var/run/subsys; then
27363    subsysdir=/var/run/subsys
27364 elif test -d /var/lock/subsys; then
27365    subsysdir=/var/lock/subsys
27366 else
27367    subsysdir=/var/run/subsys
27368 fi
27369
27370 # Check whether --with-subsys-dir was given.
27371 if test "${with_subsys_dir+set}" = set; then
27372   withval=$with_subsys_dir;
27373        if test "x$withval" != "xno" ; then
27374           subsysdir=$withval
27375        fi
27376
27377
27378 fi
27379
27380
27381
27382
27383 baseport=9101
27384
27385 # Check whether --with-baseport was given.
27386 if test "${with_baseport+set}" = set; then
27387   withval=$with_baseport;
27388        if test "x$withval" != "xno" ; then
27389           baseport=$withval
27390        fi
27391
27392
27393 fi
27394
27395
27396
27397 dir_port=`expr $baseport`
27398 fd_port=`expr $baseport + 1`
27399 sd_port=`expr $fd_port + 1`
27400
27401
27402
27403
27404
27405 dir_password=
27406
27407 # Check whether --with-dir-password was given.
27408 if test "${with_dir_password+set}" = set; then
27409   withval=$with_dir_password;
27410        if test "x$withval" != "xno" ; then
27411           dir_password=$withval
27412        fi
27413
27414
27415 fi
27416
27417
27418 if test "x$dir_password" = "x" ; then
27419    if test "x$OPENSSL" = "xnone" ; then
27420       key=`autoconf/randpass 33`
27421    else
27422       key=`openssl rand -base64 33`
27423    fi
27424    dir_password=$key
27425 fi
27426
27427 fd_password=
27428
27429 # Check whether --with-fd-password was given.
27430 if test "${with_fd_password+set}" = set; then
27431   withval=$with_fd_password;
27432        if test "x$withval" != "xno" ; then
27433           fd_password=$withval
27434        fi
27435
27436
27437 fi
27438
27439
27440 if test "x$fd_password" = "x" ; then
27441    if test "x$OPENSSL" = "xnone" ; then
27442       key=`autoconf/randpass 37`
27443    else
27444       key=`openssl rand -base64 33`
27445    fi
27446    fd_password=$key
27447 fi
27448
27449 sd_password=
27450
27451 # Check whether --with-sd-password was given.
27452 if test "${with_sd_password+set}" = set; then
27453   withval=$with_sd_password;
27454        if test "x$withval" != "xno" ; then
27455           sd_password=$withval
27456        fi
27457
27458
27459 fi
27460
27461
27462 if test "x$sd_password" = "x" ; then
27463    if test "x$OPENSSL" = "xnone" ; then
27464       key=`autoconf/randpass 41`
27465    else
27466       key=`openssl rand -base64 33`
27467    fi
27468    sd_password=$key
27469 fi
27470
27471 mon_dir_password=
27472
27473 # Check whether --with-mon-dir-password was given.
27474 if test "${with_mon_dir_password+set}" = set; then
27475   withval=$with_mon_dir_password;
27476        if test "x$withval" != "xno" ; then
27477           mon_dir_password=$withval
27478        fi
27479
27480
27481 fi
27482
27483
27484 if test "x$mon_dir_password" = "x" ; then
27485    if test "x$OPENSSL" = "xnone" ; then
27486       key=`autoconf/randpass 33`
27487    else
27488       key=`openssl rand -base64 33`
27489    fi
27490    mon_dir_password=$key
27491 fi
27492
27493 mon_fd_password=
27494
27495 # Check whether --with-mon-fd-password was given.
27496 if test "${with_mon_fd_password+set}" = set; then
27497   withval=$with_mon_fd_password;
27498        if test "x$withval" != "xno" ; then
27499           mon_fd_password=$withval
27500        fi
27501
27502
27503 fi
27504
27505
27506 if test "x$mon_fd_password" = "x" ; then
27507    if test "x$OPENSSL" = "xnone" ; then
27508       key=`autoconf/randpass 37`
27509    else
27510       key=`openssl rand -base64 33`
27511    fi
27512    mon_fd_password=$key
27513 fi
27514
27515 mon_sd_password=
27516
27517 # Check whether --with-mon-sd-password was given.
27518 if test "${with_mon_sd_password+set}" = set; then
27519   withval=$with_mon_sd_password;
27520        if test "x$withval" != "xno" ; then
27521           mon_sd_password=$withval
27522        fi
27523
27524
27525 fi
27526
27527
27528 if test "x$mon_sd_password" = "x" ; then
27529    if test "x$OPENSSL" = "xnone" ; then
27530       key=`autoconf/randpass 41`
27531    else
27532       key=`openssl rand -base64 33`
27533    fi
27534    mon_sd_password=$key
27535 fi
27536
27537
27538
27539
27540
27541
27542
27543
27544 db_name=bacula
27545
27546 # Check whether --with-db_name was given.
27547 if test "${with_db_name+set}" = set; then
27548   withval=$with_db_name;
27549        if test "x$withval" != "x" ; then
27550           db_name=$withval
27551        fi
27552
27553
27554 fi
27555
27556
27557
27558 db_user=bacula
27559
27560 # Check whether --with-db_user was given.
27561 if test "${with_db_user+set}" = set; then
27562   withval=$with_db_user;
27563        if test "x$withval" != "x" ; then
27564           db_user=$withval
27565        fi
27566
27567
27568 fi
27569
27570
27571
27572 db_password=
27573
27574 # Check whether --with-db_password was given.
27575 if test "${with_db_password+set}" = set; then
27576   withval=$with_db_password;
27577        if test "x$withval" != "x" ; then
27578           db_password=$withval
27579        fi
27580
27581
27582 fi
27583
27584
27585
27586 db_port=" "
27587
27588 # Check whether --with-db_port was given.
27589 if test "${with_db_port+set}" = set; then
27590   withval=$with_db_port;
27591        if test "x$withval" != "x" ; then
27592           db_port=$withval
27593        fi
27594
27595
27596 fi
27597
27598
27599
27600 #
27601 # Handle users and groups for each daemon
27602 #
27603 dir_user=
27604
27605 # Check whether --with-dir_user was given.
27606 if test "${with_dir_user+set}" = set; then
27607   withval=$with_dir_user;
27608        if test "x$withval" != "x" ; then
27609            dir_user=$withval
27610        fi
27611
27612
27613 fi
27614
27615
27616 dir_group=
27617
27618 # Check whether --with-dir_group was given.
27619 if test "${with_dir_group+set}" = set; then
27620   withval=$with_dir_group;
27621        if test "x$withval" != "x" ; then
27622           dir_group=$withval
27623        fi
27624
27625
27626 fi
27627
27628
27629 sd_user=
27630
27631 # Check whether --with-sd_user was given.
27632 if test "${with_sd_user+set}" = set; then
27633   withval=$with_sd_user;
27634        if test "x$withval" != "x" ; then
27635           sd_user=$withval
27636        fi
27637
27638
27639 fi
27640
27641
27642 sd_group=
27643
27644 # Check whether --with-sd_group was given.
27645 if test "${with_sd_group+set}" = set; then
27646   withval=$with_sd_group;
27647        if test "x$withval" != "x" ; then
27648           sd_group=$withval
27649        fi
27650
27651
27652 fi
27653
27654
27655 fd_user=
27656
27657 # Check whether --with-fd_user was given.
27658 if test "${with_fd_user+set}" = set; then
27659   withval=$with_fd_user;
27660        if test "x$withval" != "x" ; then
27661           fd_user=$withval
27662        fi
27663
27664
27665 fi
27666
27667
27668 fd_group=
27669
27670 # Check whether --with-fd_group was given.
27671 if test "${with_fd_group+set}" = set; then
27672   withval=$with_fd_group;
27673        if test "x$withval" != "x" ; then
27674           fd_group=$withval
27675        fi
27676
27677
27678 fi
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688 SBINPERM=0754
27689
27690 # Check whether --with-sbin-perm was given.
27691 if test "${with_sbin_perm+set}" = set; then
27692   withval=$with_sbin_perm;
27693        if test "x$withval" != "x" ; then
27694           SBINPERM=$withval
27695        fi
27696
27697
27698 fi
27699
27700
27701
27702
27703 SQL_LIB=
27704
27705 db_found=no
27706 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27707 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27708
27709 # Check whether --with-postgresql was given.
27710 if test "${with_postgresql+set}" = set; then
27711   withval=$with_postgresql;
27712   if test "$withval" != "no"; then
27713       if test "$db_found" = "yes"; then
27714           { echo "$as_me:$LINENO: result: error" >&5
27715 echo "${ECHO_T}error" >&6; }
27716           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27717 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27718    { (exit 1); exit 1; }; };
27719       fi
27720       if test "$withval" = "yes"; then
27721           PG_CONFIG=`which pg_config`
27722           if test -n "$PG_CONFIG";then
27723               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27724               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27725               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27726           elif test -f /usr/local/include/libpq-fe.h; then
27727               POSTGRESQL_INCDIR=/usr/local/include
27728               if test -d /usr/local/lib64; then
27729                  POSTGRESQL_LIBDIR=/usr/local/lib64
27730               else
27731                  POSTGRESQL_LIBDIR=/usr/local/lib
27732               fi
27733               POSTGRESQL_BINDIR=/usr/local/bin
27734           elif test -f /usr/include/libpq-fe.h; then
27735               POSTGRESQL_INCDIR=/usr/include
27736               if test -d /usr/lib64; then
27737                  POSTGRESQL_LIBDIR=/usr/lib64
27738               else
27739                  POSTGRESQL_LIBDIR=/usr/lib
27740               fi
27741               POSTGRESQL_BINDIR=/usr/bin
27742           elif test -f /usr/include/pgsql/libpq-fe.h; then
27743               POSTGRESQL_INCDIR=/usr/include/pgsql
27744               if test -d /usr/lib64/pgsql; then
27745                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27746               else
27747                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27748               fi
27749               POSTGRESQL_BINDIR=/usr/bin
27750           elif test -f /usr/include/postgresql/libpq-fe.h; then
27751               POSTGRESQL_INCDIR=/usr/include/postgresql
27752               if test -d /usr/lib64/postgresql; then
27753                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27754               else
27755                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27756               fi
27757               POSTGRESQL_BINDIR=/usr/bin
27758           else
27759               { echo "$as_me:$LINENO: result: no" >&5
27760 echo "${ECHO_T}no" >&6; }
27761               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27762 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27763    { (exit 1); exit 1; }; }
27764           fi
27765       elif test -f $withval/include/libpq-fe.h; then
27766           POSTGRESQL_INCDIR=$withval/include
27767           POSTGRESQL_LIBDIR=$withval/lib
27768           POSTGRESQL_BINDIR=$withval/bin
27769       elif test -f $withval/include/postgresql/libpq-fe.h; then
27770           POSTGRESQL_INCDIR=$withval/include/postgresql
27771      if test -d $withval/lib64; then
27772          POSTGRESQL_LIBDIR=$withval/lib64
27773      else
27774          POSTGRESQL_LIBDIR=$withval/lib
27775      fi
27776           POSTGRESQL_BINDIR=$withval/bin
27777       else
27778           { echo "$as_me:$LINENO: result: no" >&5
27779 echo "${ECHO_T}no" >&6; }
27780           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27781 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27782    { (exit 1); exit 1; }; }
27783       fi
27784       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27785       { echo "$as_me:$LINENO: checking for crypt" >&5
27786 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27787 if test "${ac_cv_func_crypt+set}" = set; then
27788   echo $ECHO_N "(cached) $ECHO_C" >&6
27789 else
27790   cat >conftest.$ac_ext <<_ACEOF
27791 /* confdefs.h.  */
27792 _ACEOF
27793 cat confdefs.h >>conftest.$ac_ext
27794 cat >>conftest.$ac_ext <<_ACEOF
27795 /* end confdefs.h.  */
27796 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27798 #define crypt innocuous_crypt
27799
27800 /* System header to define __stub macros and hopefully few prototypes,
27801     which can conflict with char crypt (); below.
27802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27803     <limits.h> exists even on freestanding compilers.  */
27804
27805 #ifdef __STDC__
27806 # include <limits.h>
27807 #else
27808 # include <assert.h>
27809 #endif
27810
27811 #undef crypt
27812
27813 /* Override any GCC internal prototype to avoid an error.
27814    Use char because int might match the return type of a GCC
27815    builtin and then its argument prototype would still apply.  */
27816 #ifdef __cplusplus
27817 extern "C"
27818 #endif
27819 char crypt ();
27820 /* The GNU C library defines this for functions which it implements
27821     to always fail with ENOSYS.  Some functions are actually named
27822     something starting with __ and the normal name is an alias.  */
27823 #if defined __stub_crypt || defined __stub___crypt
27824 choke me
27825 #endif
27826
27827 int
27828 main ()
27829 {
27830 return crypt ();
27831   ;
27832   return 0;
27833 }
27834 _ACEOF
27835 rm -f conftest.$ac_objext conftest$ac_exeext
27836 if { (ac_try="$ac_link"
27837 case "(($ac_try" in
27838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839   *) ac_try_echo=$ac_try;;
27840 esac
27841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842   (eval "$ac_link") 2>conftest.er1
27843   ac_status=$?
27844   grep -v '^ *+' conftest.er1 >conftest.err
27845   rm -f conftest.er1
27846   cat conftest.err >&5
27847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848   (exit $ac_status); } && {
27849          test -z "$ac_c_werror_flag" ||
27850          test ! -s conftest.err
27851        } && test -s conftest$ac_exeext &&
27852        $as_test_x conftest$ac_exeext; then
27853   ac_cv_func_crypt=yes
27854 else
27855   echo "$as_me: failed program was:" >&5
27856 sed 's/^/| /' conftest.$ac_ext >&5
27857
27858         ac_cv_func_crypt=no
27859 fi
27860
27861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27862       conftest$ac_exeext conftest.$ac_ext
27863 fi
27864 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27865 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27866 if test $ac_cv_func_crypt = yes; then
27867   :
27868 else
27869   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27870 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27871 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27872   echo $ECHO_N "(cached) $ECHO_C" >&6
27873 else
27874   ac_check_lib_save_LIBS=$LIBS
27875 LIBS="-lcrypt  $LIBS"
27876 cat >conftest.$ac_ext <<_ACEOF
27877 /* confdefs.h.  */
27878 _ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h.  */
27882
27883 /* Override any GCC internal prototype to avoid an error.
27884    Use char because int might match the return type of a GCC
27885    builtin and then its argument prototype would still apply.  */
27886 #ifdef __cplusplus
27887 extern "C"
27888 #endif
27889 char crypt ();
27890 int
27891 main ()
27892 {
27893 return crypt ();
27894   ;
27895   return 0;
27896 }
27897 _ACEOF
27898 rm -f conftest.$ac_objext conftest$ac_exeext
27899 if { (ac_try="$ac_link"
27900 case "(($ac_try" in
27901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27902   *) ac_try_echo=$ac_try;;
27903 esac
27904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27905   (eval "$ac_link") 2>conftest.er1
27906   ac_status=$?
27907   grep -v '^ *+' conftest.er1 >conftest.err
27908   rm -f conftest.er1
27909   cat conftest.err >&5
27910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911   (exit $ac_status); } && {
27912          test -z "$ac_c_werror_flag" ||
27913          test ! -s conftest.err
27914        } && test -s conftest$ac_exeext &&
27915        $as_test_x conftest$ac_exeext; then
27916   ac_cv_lib_crypt_crypt=yes
27917 else
27918   echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.$ac_ext >&5
27920
27921         ac_cv_lib_crypt_crypt=no
27922 fi
27923
27924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27925       conftest$ac_exeext conftest.$ac_ext
27926 LIBS=$ac_check_lib_save_LIBS
27927 fi
27928 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27929 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27930 if test $ac_cv_lib_crypt_crypt = yes; then
27931   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27932 fi
27933
27934 fi
27935
27936       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27937       SQL_LFLAGS=$POSTGRESQL_LFLAGS
27938       SQL_BINDIR=$POSTGRESQL_BINDIR
27939       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27940
27941       cat >>confdefs.h <<\_ACEOF
27942 #define HAVE_POSTGRESQL 1
27943 _ACEOF
27944
27945       { echo "$as_me:$LINENO: result: yes" >&5
27946 echo "${ECHO_T}yes" >&6; }
27947       db_found=yes
27948       support_postgresql=yes
27949       db_type=PostgreSQL
27950       DB_TYPE=postgresql
27951   else
27952       { echo "$as_me:$LINENO: result: no" >&5
27953 echo "${ECHO_T}no" >&6; }
27954   fi
27955
27956 else
27957
27958   { echo "$as_me:$LINENO: result: no" >&5
27959 echo "${ECHO_T}no" >&6; }
27960
27961 fi
27962
27963
27964
27965
27966
27967
27968
27969
27970 db_found=no
27971 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27972 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27973
27974 # Check whether --with-mysql was given.
27975 if test "${with_mysql+set}" = set; then
27976   withval=$with_mysql;
27977   if test "$withval" != "no"; then
27978         if test "$withval" = "yes"; then
27979            if test -f /usr/local/mysql/include/mysql/mysql.h; then
27980                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
27981                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27982                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27983                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27984                    else
27985                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27986                    fi
27987                    MYSQL_BINDIR=/usr/local/mysql/bin
27988            elif test -f /usr/include/mysql/mysql.h; then
27989                    MYSQL_INCDIR=/usr/include/mysql
27990                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27991                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27992                            MYSQL_LIBDIR=/usr/lib64/mysql
27993                    elif test -f /usr/lib64/libmysqlclient_r.a \
27994                         -o -f /usr/lib64/libmysqlclient_r.so; then
27995                            MYSQL_LIBDIR=/usr/lib64
27996                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27997                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27998                            MYSQL_LIBDIR=/usr/lib/mysql
27999                    else
28000                            MYSQL_LIBDIR=/usr/lib
28001                    fi
28002                    MYSQL_BINDIR=/usr/bin
28003            elif test -f /usr/include/mysql.h; then
28004                    MYSQL_INCDIR=/usr/include
28005                    if test -f /usr/lib64/libmysqlclient_r.a \
28006                         -o -f /usr/lib64/libmysqlclient_r.so; then
28007                            MYSQL_LIBDIR=/usr/lib64
28008                    else
28009                            MYSQL_LIBDIR=/usr/lib
28010                    fi
28011                    MYSQL_BINDIR=/usr/bin
28012            elif test -f /usr/local/include/mysql/mysql.h; then
28013                    MYSQL_INCDIR=/usr/local/include/mysql
28014                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28015                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28016                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28017                    else
28018                            MYSQL_LIBDIR=/usr/local/lib/mysql
28019                    fi
28020                    MYSQL_BINDIR=/usr/local/bin
28021            elif test -f /usr/local/include/mysql.h; then
28022                    MYSQL_INCDIR=/usr/local/include
28023                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28024                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28025                            MYSQL_LIBDIR=/usr/local/lib64
28026                    else
28027                            MYSQL_LIBDIR=/usr/local/lib
28028                    fi
28029                    MYSQL_BINDIR=/usr/local/bin
28030            else
28031               { echo "$as_me:$LINENO: result: no" >&5
28032 echo "${ECHO_T}no" >&6; }
28033               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28034 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28035    { (exit 1); exit 1; }; }
28036            fi
28037         else
28038            if test -f $withval/include/mysql/mysql.h; then
28039               MYSQL_INCDIR=$withval/include/mysql
28040               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28041                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28042                  MYSQL_LIBDIR=$withval/lib64/mysql
28043               elif test -f $withval/lib64/libmysqlclient_r.a \
28044                    -o -f $withval/lib64/libmysqlclient_r.so; then
28045                  MYSQL_LIBDIR=$withval/lib64
28046               elif test -f $withval/lib/libmysqlclient_r.a \
28047                    -o -f $withval/lib/libmysqlclient_r.so; then
28048                  MYSQL_LIBDIR=$withval/lib
28049               else
28050                  MYSQL_LIBDIR=$withval/lib/mysql
28051               fi
28052               MYSQL_BINDIR=$withval/bin
28053            elif test -f $withval/include/mysql.h; then
28054               MYSQL_INCDIR=$withval/include
28055               if test -f $withval/lib64/libmysqlclient_r.a \
28056                    -o -f $withval/lib64/libmysqlclient_r.so; then
28057                  MYSQL_LIBDIR=$withval/lib64
28058               else
28059                  MYSQL_LIBDIR=$withval/lib
28060               fi
28061               MYSQL_BINDIR=$withval/bin
28062            else
28063               { echo "$as_me:$LINENO: result: no" >&5
28064 echo "${ECHO_T}no" >&6; }
28065               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28066 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28067    { (exit 1); exit 1; }; }
28068            fi
28069         fi
28070     SQL_INCLUDE=-I$MYSQL_INCDIR
28071     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28072          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28073        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28074        cat >>confdefs.h <<\_ACEOF
28075 #define HAVE_THREAD_SAFE_MYSQL 1
28076 _ACEOF
28077
28078     fi
28079     SQL_BINDIR=$MYSQL_BINDIR
28080     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28081
28082     cat >>confdefs.h <<\_ACEOF
28083 #define HAVE_MYSQL 1
28084 _ACEOF
28085
28086     { echo "$as_me:$LINENO: result: yes" >&5
28087 echo "${ECHO_T}yes" >&6; }
28088     db_found=yes
28089     support_mysql=yes
28090     db_type=MySQL
28091     DB_TYPE=mysql
28092
28093   else
28094         { echo "$as_me:$LINENO: result: no" >&5
28095 echo "${ECHO_T}no" >&6; }
28096   fi
28097
28098
28099 fi
28100
28101
28102
28103 # Check whether --with-embedded-mysql was given.
28104 if test "${with_embedded_mysql+set}" = set; then
28105   withval=$with_embedded_mysql;
28106   if test "$withval" != "no"; then
28107         if test "$withval" = "yes"; then
28108                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28109                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28110                         if test -d /usr/local/mysql/lib64/mysql; then
28111                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28112                         else
28113                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28114                         fi
28115                         MYSQL_BINDIR=/usr/local/mysql/bin
28116                 elif test -f /usr/include/mysql/mysql.h; then
28117                         MYSQL_INCDIR=/usr/include/mysql
28118                         if test -d /usr/lib64/mysql; then
28119                                 MYSQL_LIBDIR=/usr/lib64/mysql
28120                         else
28121                                 MYSQL_LIBDIR=/usr/lib/mysql
28122                         fi
28123                         MYSQL_BINDIR=/usr/bin
28124                 elif test -f /usr/include/mysql.h; then
28125                         MYSQL_INCDIR=/usr/include
28126                         if test -d /usr/lib64; then
28127                                 MYSQL_LIBDIR=/usr/lib64
28128                         else
28129                                 MYSQL_LIBDIR=/usr/lib
28130                         fi
28131                         MYSQL_BINDIR=/usr/bin
28132                 elif test -f /usr/local/include/mysql/mysql.h; then
28133                         MYSQL_INCDIR=/usr/local/include/mysql
28134                         if test -d /usr/local/lib64/mysql; then
28135                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28136                         else
28137                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28138                         fi
28139                         MYSQL_BINDIR=/usr/local/bin
28140                 elif test -f /usr/local/include/mysql.h; then
28141                         MYSQL_INCDIR=/usr/local/include
28142                         if test -d /usr/local/lib64; then
28143                                 MYSQL_LIBDIR=/usr/local/lib64
28144                         else
28145                                 MYSQL_LIBDIR=/usr/local/lib
28146                         fi
28147                         MYSQL_BINDIR=/usr/local/bin
28148                 else
28149                    { echo "$as_me:$LINENO: result: no" >&5
28150 echo "${ECHO_T}no" >&6; }
28151                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28152 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28153    { (exit 1); exit 1; }; }
28154                 fi
28155         else
28156                 if test -f $withval/include/mysql/mysql.h; then
28157                         MYSQL_INCDIR=$withval/include/mysql
28158                         if test -d $withval/lib64/mysql; then
28159                                 MYSQL_LIBDIR=$withval/lib64/mysql
28160                         else
28161                                 MYSQL_LIBDIR=$withval/lib/mysql
28162                         fi
28163                         MYSQL_BINDIR=$withval/bin
28164                 elif test -f $withval/include/mysql.h; then
28165                         MYSQL_INCDIR=$withval/include
28166                         if test -d $withval/lib64; then
28167                                 MYSQL_LIBDIR=$withval/lib64
28168                         else
28169                                 MYSQL_LIBDIR=$withval/lib
28170                         fi
28171                         MYSQL_BINDIR=$withval/bin
28172                 else
28173                    { echo "$as_me:$LINENO: result: no" >&5
28174 echo "${ECHO_T}no" >&6; }
28175                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28176 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28177    { (exit 1); exit 1; }; }
28178                 fi
28179         fi
28180     SQL_INCLUDE=-I$MYSQL_INCDIR
28181     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28182     SQL_BINDIR=$MYSQL_BINDIR
28183     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28184
28185     cat >>confdefs.h <<\_ACEOF
28186 #define HAVE_MYSQL 1
28187 _ACEOF
28188
28189     cat >>confdefs.h <<\_ACEOF
28190 #define HAVE_EMBEDDED_MYSQL 1
28191 _ACEOF
28192
28193     { echo "$as_me:$LINENO: result: yes" >&5
28194 echo "${ECHO_T}yes" >&6; }
28195     db_found=yes
28196     support_mysql=yes
28197     db_type=MySQL
28198     DB_TYPE=mysql
28199
28200   else
28201         { echo "$as_me:$LINENO: result: no" >&5
28202 echo "${ECHO_T}no" >&6; }
28203   fi
28204
28205
28206 fi
28207
28208
28209
28210
28211
28212
28213
28214
28215
28216
28217 db_found=no
28218 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28219 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28220
28221 # Check whether --with-sqlite3 was given.
28222 if test "${with_sqlite3+set}" = set; then
28223   withval=$with_sqlite3;
28224   if test "$withval" != "no"; then
28225      if test "$withval" = "yes"; then
28226         if test -f /usr/local/include/sqlite3.h; then
28227            SQLITE_INCDIR=/usr/local/include
28228            if test -d /usr/local/lib64; then
28229               SQLITE_LIBDIR=/usr/local/lib64
28230            else
28231               SQLITE_LIBDIR=/usr/local/lib
28232            fi
28233            SQLITE_BINDIR=/usr/local/bin
28234         elif test -f /usr/include/sqlite3.h; then
28235            SQLITE_INCDIR=/usr/include
28236            if test -d /usr/lib64; then
28237               SQLITE_LIBDIR=/usr/lib64
28238            else
28239               SQLITE_LIBDIR=/usr/lib
28240            fi
28241            SQLITE_BINDIR=/usr/bin
28242         elif test -f $prefix/include/sqlite3.h; then
28243            SQLITE_INCDIR=$prefix/include
28244            if test -d $prefix/lib64; then
28245               SQLITE_LIBDIR=$prefix/lib64
28246            else
28247               SQLITE_LIBDIR=$prefix/lib
28248            fi
28249            SQLITE_BINDIR=$prefix/bin
28250         else
28251            { echo "$as_me:$LINENO: result: no" >&5
28252 echo "${ECHO_T}no" >&6; }
28253            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28254 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28255    { (exit 1); exit 1; }; }
28256         fi
28257      else
28258         if test -f $withval/sqlite3.h; then
28259            SQLITE_INCDIR=$withval
28260            SQLITE_LIBDIR=$withval
28261            SQLITE_BINDIR=$withval
28262         elif test -f $withval/include/sqlite3.h; then
28263            SQLITE_INCDIR=$withval/include
28264            if test -d $withval/lib64; then
28265               SQLITE_LIBDIR=$withval/lib64
28266            else
28267               SQLITE_LIBDIR=$withval/lib
28268            fi
28269            SQLITE_BINDIR=$withval/bin
28270         else
28271            { echo "$as_me:$LINENO: result: no" >&5
28272 echo "${ECHO_T}no" >&6; }
28273            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28274 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28275    { (exit 1); exit 1; }; }
28276         fi
28277      fi
28278      SQL_INCLUDE=-I$SQLITE_INCDIR
28279      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28280      SQL_BINDIR=$SQLITE_BINDIR
28281      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28282
28283      cat >>confdefs.h <<\_ACEOF
28284 #define HAVE_SQLITE3 1
28285 _ACEOF
28286
28287      { echo "$as_me:$LINENO: result: yes" >&5
28288 echo "${ECHO_T}yes" >&6; }
28289      db_found=yes
28290      support_sqlite3=yes
28291      db_type=SQLite3
28292      DB_TYPE=sqlite3
28293
28294   else
28295      { echo "$as_me:$LINENO: result: no" >&5
28296 echo "${ECHO_T}no" >&6; }
28297   fi
28298
28299 else
28300
28301   { echo "$as_me:$LINENO: result: no" >&5
28302 echo "${ECHO_T}no" >&6; }
28303
28304 fi
28305
28306
28307
28308
28309
28310
28311
28312
28313 db_found=no
28314 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28315 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28316
28317 # Check whether --with-sqlite was given.
28318 if test "${with_sqlite+set}" = set; then
28319   withval=$with_sqlite;
28320   if test "$withval" != "no"; then
28321      if test "$withval" = "yes"; then
28322         if test -f /usr/local/include/sqlite.h; then
28323            SQLITE_INCDIR=/usr/local/include
28324            if test -d /usr/local/lib64; then
28325               SQLITE_LIBDIR=/usr/local/lib64
28326            else
28327               SQLITE_LIBDIR=/usr/local/lib
28328            fi
28329            SQLITE_BINDIR=/usr/local/bin
28330         elif test -f /usr/include/sqlite.h; then
28331            SQLITE_INCDIR=/usr/include
28332            if test -d /usr/lib64; then
28333               SQLITE_LIBDIR=/usr/lib64
28334            else
28335               SQLITE_LIBDIR=/usr/lib
28336            fi
28337            SQLITE_BINDIR=/usr/bin
28338         elif test -f $prefix/include/sqlite.h; then
28339            SQLITE_INCDIR=$prefix/include
28340            if test -d $prefix/lib64; then
28341               SQLITE_LIBDIR=$prefix/lib64
28342            else
28343               SQLITE_LIBDIR=$prefix/lib
28344            fi
28345            SQLITE_BINDIR=$prefix/bin
28346         else
28347            { echo "$as_me:$LINENO: result: no" >&5
28348 echo "${ECHO_T}no" >&6; }
28349            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28350 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28351    { (exit 1); exit 1; }; }
28352         fi
28353      else
28354         if test -f $withval/sqlite.h; then
28355            SQLITE_INCDIR=$withval
28356            SQLITE_LIBDIR=$withval
28357            SQLITE_BINDIR=$withval
28358         elif test -f $withval/include/sqlite.h; then
28359            SQLITE_INCDIR=$withval/include
28360            if test -d $withval/lib64; then
28361               SQLITE_LIBDIR=$withval/lib64
28362            else
28363               SQLITE_LIBDIR=$withval/lib
28364            fi
28365            SQLITE_BINDIR=$withval/bin
28366         else
28367            { echo "$as_me:$LINENO: result: no" >&5
28368 echo "${ECHO_T}no" >&6; }
28369            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28370 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28371    { (exit 1); exit 1; }; }
28372         fi
28373      fi
28374      SQL_INCLUDE=-I$SQLITE_INCDIR
28375      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28376      SQL_BINDIR=$SQLITE_BINDIR
28377      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28378
28379      cat >>confdefs.h <<\_ACEOF
28380 #define HAVE_SQLITE 1
28381 _ACEOF
28382
28383      { echo "$as_me:$LINENO: result: yes" >&5
28384 echo "${ECHO_T}yes" >&6; }
28385      db_found=yes
28386      support_sqlite=yes
28387      db_type=SQLite
28388      DB_TYPE=sqlite
28389
28390   else
28391      { echo "$as_me:$LINENO: result: no" >&5
28392 echo "${ECHO_T}no" >&6; }
28393   fi
28394
28395 else
28396
28397   { echo "$as_me:$LINENO: result: no" >&5
28398 echo "${ECHO_T}no" >&6; }
28399
28400 fi
28401
28402
28403
28404
28405
28406
28407
28408
28409 db_found=no
28410 { echo "$as_me:$LINENO: checking for DBI support" >&5
28411 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28412
28413 # Check whether --with-dbi was given.
28414 if test "${with_dbi+set}" = set; then
28415   withval=$with_dbi;
28416   if test "$withval" != "no"; then
28417      if test "$withval" = "yes"; then
28418         if test -f /usr/local/include/dbi/dbi.h; then
28419            DBI_INCDIR=/usr/local/dbi/include
28420            if test -d /usr/local/lib64; then
28421               DBI_LIBDIR=/usr/local/lib64
28422            else
28423               DBI_LIBDIR=/usr/local/lib
28424            fi
28425            DBI_BINDIR=/usr/local/bin
28426         elif test -f /usr/include/dbi/dbi.h; then
28427            DBI_INCDIR=/usr/include
28428            if test -d /usr/lib64; then
28429               DBI_LIBDIR=/usr/lib64
28430            else
28431               DBI_LIBDIR=/usr/lib
28432            fi
28433            DBI_BINDIR=/usr/bin
28434         elif test -f $prefix/include/dbi/dbi.h; then
28435            DBI_INCDIR=$prefix/include
28436            if test -d $prefix/lib64; then
28437               DBI_LIBDIR=$prefix/lib64
28438            else
28439               DBI_LIBDIR=$prefix/lib
28440            fi
28441            DBI_BINDIR=$prefix/bin
28442         else
28443            { echo "$as_me:$LINENO: result: no" >&5
28444 echo "${ECHO_T}no" >&6; }
28445            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28446 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28447    { (exit 1); exit 1; }; }
28448         fi
28449         if test -d /usr/local/lib/dbd; then
28450            DRIVERDIR=/usr/local/lib/dbd
28451            if test -d /usr/local/lib64/dbd; then
28452               DRIVERDIR=/usr/local/lib64/dbd
28453            else
28454               DRIVERDIR=/usr/local/lib/dbd
28455            fi
28456         elif test -d /usr/lib/dbd; then
28457            DRIVERDIR=/usr/lib/dbd
28458            if test -d /usr/lib64/dbd; then
28459               DRIVERDIR=/usr/lib64/dbd
28460            else
28461               DRIVERDIR=/usr/lib/dbd
28462            fi
28463         elif test -d $prefix/lib/dbd; then
28464            if test -d $prefix/lib64/dbd; then
28465               DRIVERDIR=$prefix/lib64/dbd
28466            else
28467               DRIVERDIR=$prefix/lib/dbd
28468            fi
28469         else
28470            { echo "$as_me:$LINENO: result: no" >&5
28471 echo "${ECHO_T}no" >&6; }
28472            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28473 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28474    { (exit 1); exit 1; }; }
28475         fi
28476      else
28477         if test -f $withval/dbi.h; then
28478            DBI_INCDIR=$withval
28479            DBI_LIBDIR=$withval
28480            DBI_BINDIR=$withval
28481         elif test -f $withval/include/dbi/dbi.h; then
28482            DBI_INCDIR=$withval/include
28483            if test -d $withval/lib64; then
28484               DBI_LIBDIR=$withval/lib64
28485            else
28486               DBI_LIBDIR=$withval/lib
28487            fi
28488            DBI_BINDIR=$withval/bin
28489         else
28490            { echo "$as_me:$LINENO: result: no" >&5
28491 echo "${ECHO_T}no" >&6; }
28492            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28493 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28494    { (exit 1); exit 1; }; }
28495         fi
28496         if test -d $withval/dbd; then
28497            DRIVERDIR=$withval/dbd
28498         elif test -d $withval/lib/; then
28499            if test -d $withval/lib64/dbd; then
28500               DRIVERDIR=$withval/lib64/dbd
28501            else
28502               DRIVERDIR=$withval/lib/dbd
28503            fi
28504         else
28505            { echo "$as_me:$LINENO: result: no" >&5
28506 echo "${ECHO_T}no" >&6; }
28507            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28508 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28509    { (exit 1); exit 1; }; }
28510         fi
28511      fi
28512      SQL_INCLUDE=-I$DBI_INCDIR
28513      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28514      SQL_BINDIR=$DBI_BINDIR
28515      SQL_LIB=$DBI_LIBDIR/libdbi.a
28516      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28517
28518
28519 cat >>confdefs.h <<\_ACEOF
28520 #define HAVE_DBI 1
28521 _ACEOF
28522
28523      { echo "$as_me:$LINENO: result: yes" >&5
28524 echo "${ECHO_T}yes" >&6; }
28525      db_found=yes
28526      support_dbi=yes
28527      db_type=DBI
28528      DB_TYPE=dbi
28529      uncomment_dbi=" "
28530
28531   else
28532      { echo "$as_me:$LINENO: result: no" >&5
28533 echo "${ECHO_T}no" >&6; }
28534   fi
28535
28536 else
28537
28538   { echo "$as_me:$LINENO: result: no" >&5
28539 echo "${ECHO_T}no" >&6; }
28540
28541 fi
28542
28543
28544
28545
28546
28547
28548
28549
28550
28551
28552 db_found=no
28553 db_prog=no
28554 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28555 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28556
28557 # Check whether --with-dbi-driver was given.
28558 if test "${with_dbi_driver+set}" = set; then
28559   withval=$with_dbi_driver;
28560   if test "$withval" != "no"; then
28561      case $withval in
28562         "mysql")
28563            db_prog="mysql"
28564            if test -f /usr/local/mysql/bin/mysql; then
28565               SQL_BINDIR=/usr/local/mysql/bin
28566               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28567                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28568                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28569               else
28570                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28571               fi
28572            elif test -f /usr/bin/mysql; then
28573               SQL_BINDIR=/usr/bin
28574               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28575                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28576                   SQL_LIBDIR=/usr/lib64/mysql
28577               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28578                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28579                   SQL_LIBDIR=/usr/lib/mysql
28580               else
28581                   SQL_LIBDIR=/usr/lib
28582               fi
28583            elif test -f /usr/local/bin/mysql; then
28584               SQL_BINDIR=/usr/local/bin
28585               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28586                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28587                   SQL_LIBDIR=/usr/local/lib64/mysql
28588               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28589                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28590                   SQL_LIBDIR=/usr/local/lib/mysql
28591               else
28592                   SQL_LIBDIR=/usr/local/lib
28593               fi
28594            elif test -f $withval/bin/mysql; then
28595               SQL_BINDIR=$withval/bin
28596               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28597                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28598                   SQL_LIBDIR=$withval/lib64/mysql
28599               elif test -f $withval/lib64/libmysqlclient_r.a \
28600                   -o -f $withval/lib64/libmysqlclient_r.so; then
28601                   SQL_LIBDIR=$withval/lib64
28602               elif test -f $withval/lib/libmysqlclient_r.a \
28603                   -o -f $withval/lib/libmysqlclient_r.so; then
28604                   SQL_LIBDIR=$withval/lib/
28605               else
28606                   SQL_LIBDIR=$withval/lib/mysql
28607               fi
28608            else
28609               { echo "$as_me:$LINENO: result: no" >&5
28610 echo "${ECHO_T}no" >&6; }
28611               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28612 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28613    { (exit 1); exit 1; }; }
28614            fi
28615            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28616         ;;
28617         "postgresql")
28618            db_prog="postgresql"
28619            PG_CONFIG=`which pg_config`
28620            if test -n "$PG_CONFIG"; then
28621               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28622               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28623            elif test -f /usr/local/bin/psql; then
28624               SQL_BINDIR=/usr/local/bin
28625               if test -d /usr/local/lib64; then
28626                  SQL_LIBDIR=/usr/local/lib64
28627               else
28628                  SQL_LIBDIR=/usr/local/lib
28629               fi
28630            elif test -f /usr/bin/psql; then
28631               SQL_BINDIR=/usr/local/bin
28632               if test -d /usr/lib64/postgresql; then
28633                  SQL_LIBDIR=/usr/lib64/postgresql
28634               elif test -d /usr/lib/postgresql; then
28635                  SQL_LIBDIR=/usr/lib/postgresql
28636               elif test -d /usr/lib64; then
28637                  SQL_LIBDIR=/usr/lib64
28638               else
28639                  SQL_LIBDIR=/usr/lib
28640               fi
28641            elif test -f $withval/bin/psql; then
28642               SQL_BINDIR=$withval/bin
28643               if test -d $withval/lib64; then
28644                  SQL_LIBDIR=$withval/lib64
28645               else
28646                  SQL_LIBDIR=$withval/lib
28647               fi
28648            else
28649               { echo "$as_me:$LINENO: result: no" >&5
28650 echo "${ECHO_T}no" >&6; }
28651               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28652 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28653    { (exit 1); exit 1; }; }
28654            fi
28655            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28656         ;;
28657         "sqlite")
28658            db_prog="sqlite"
28659            if test -f /usr/local/bin/sqlite; then
28660               SQL_BINDIR=/usr/local/bin
28661               if test -d /usr/local/lib64; then
28662                  SQL_LIBDIR=/usr/local/lib64
28663               else
28664                  SQL_LIBDIR=/usr/local/lib
28665               fi
28666            elif test -f /usr/bin/sqlite; then
28667               SQL_BINDIR=/usr/bin
28668               if test -d /usr/lib64; then
28669                  SQL_LIBDIR=/usr/lib64
28670               else
28671                  SQL_LIBDIR=/usr/lib
28672               fi
28673            elif test -f $withval/bin/sqlite; then
28674               SQL_BINDIR=$withval/bin
28675               if test -d $withval/lib64; then
28676                  SQL_LIBDIR=$withval/lib64
28677               else
28678                  SQL_LIBDIR=$withval/lib
28679               fi
28680            else
28681               { echo "$as_me:$LINENO: result: no" >&5
28682 echo "${ECHO_T}no" >&6; }
28683               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28684 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28685    { (exit 1); exit 1; }; }
28686            fi
28687            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28688         ;;
28689         "sqlite3")
28690            db_prog="sqlite3"
28691            if test -f /usr/local/bin/sqlite3; then
28692               SQL_BINDIR=/usr/local/bin
28693               if test -d /usr/local/lib64; then
28694                  SQL_LIBDIR=/usr/local/lib64
28695               else
28696                  SQL_LIBDIR=/usr/local/lib
28697               fi
28698            elif test -f /usr/bin/sqlite3; then
28699               SQL_BINDIR=/usr/bin
28700               if test -d /usr/lib64; then
28701                  SQL_LIBDIR=/usr/lib64
28702               else
28703                  SQL_LIBDIR=/usr/lib
28704               fi
28705            elif test -f $withval/bin/sqlite3; then
28706               SQL_BINDIR=$withval/bin
28707               if test -d $withval/lib64; then
28708                  SQL_LIBDIR=$withval/lib64
28709               else
28710                  SQL_LIBDIR=$withval/lib
28711               fi
28712            else
28713               { echo "$as_me:$LINENO: result: no" >&5
28714 echo "${ECHO_T}no" >&6; }
28715               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28716 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28717    { (exit 1); exit 1; }; }
28718            fi
28719            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28720         ;;
28721         *)
28722            { echo "$as_me:$LINENO: result: no" >&5
28723 echo "${ECHO_T}no" >&6; }
28724            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28725 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28726    { (exit 1); exit 1; }; }
28727         ;;
28728      esac
28729
28730      { echo "$as_me:$LINENO: result: yes" >&5
28731 echo "${ECHO_T}yes" >&6; }
28732      DB_PROG=$db_prog
28733   else
28734      { echo "$as_me:$LINENO: result: no" >&5
28735 echo "${ECHO_T}no" >&6; }
28736   fi
28737
28738 else
28739
28740   { echo "$as_me:$LINENO: result: no" >&5
28741 echo "${ECHO_T}no" >&6; }
28742
28743 fi
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754 support_batch_insert=no
28755 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28756 pkg=$?
28757 if test $pkg = 0; then
28758    support_batch_insert=yes
28759    # Check whether --enable-batch-insert was given.
28760 if test "${enable_batch_insert+set}" = set; then
28761   enableval=$enable_batch_insert;
28762           if test x$enableval = xno; then
28763              support_batch_insert=no
28764           else
28765              support_batch_insert=yes
28766           fi
28767
28768
28769 fi
28770
28771 fi
28772
28773 if test x$DB_TYPE = xpostgresql; then
28774    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28775    pkg=$?
28776    if test $pkg != 0; then
28777       support_batch_insert=no
28778    fi
28779 fi
28780
28781 if test x$DB_TYPE = xdbi; then
28782    DB_TYPE=$DB_PROG
28783    db_type=$DB_PROG
28784    pkg=1
28785       if test $DB_PROG = postgresql; then
28786       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28787       pkg=$?
28788    fi
28789
28790    if test $DB_PROG = mysql; then
28791       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28792       pkg=$?
28793    fi
28794
28795    if test $DB_PROG = sqlite3; then
28796       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28797       pkg=$?
28798    fi
28799
28800    if test $pkg = 0; then
28801       # Check whether --enable-batch-insert was given.
28802 if test "${enable_batch_insert+set}" = set; then
28803   enableval=$enable_batch_insert;
28804              if test x$enableval = xno; then
28805                 support_batch_insert=no
28806              else
28807                 support_batch_insert=yes
28808              fi
28809
28810
28811 fi
28812
28813    fi
28814 else
28815       uncomment_dbi="#"
28816 fi
28817
28818
28819
28820 if test $support_batch_insert = yes ; then
28821
28822 cat >>confdefs.h <<\_ACEOF
28823 #define HAVE_BATCH_FILE_INSERT 1
28824 _ACEOF
28825
28826 fi
28827
28828 cat >>confdefs.h <<\_ACEOF
28829 #define PROTOTYPES 1
28830 _ACEOF
28831
28832
28833 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28834    if test -z "$CCOPTS"; then
28835       CCOPTS='-g -O2 -Wall'
28836    fi
28837    CFLAGS="$CCOPTS"
28838 fi
28839
28840
28841
28842 largefile_support="no"
28843
28844    # Check whether --enable-largefile was given.
28845 if test "${enable_largefile+set}" = set; then
28846   enableval=$enable_largefile;
28847 fi
28848
28849    if test "$enable_largefile" != no; then
28850      if test -n "$ac_tool_prefix"; then
28851   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28852 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28855 if test "${ac_cv_prog_GETCONF+set}" = set; then
28856   echo $ECHO_N "(cached) $ECHO_C" >&6
28857 else
28858   if test -n "$GETCONF"; then
28859   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28860 else
28861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28862 for as_dir in $PATH
28863 do
28864   IFS=$as_save_IFS
28865   test -z "$as_dir" && as_dir=.
28866   for ac_exec_ext in '' $ac_executable_extensions; do
28867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28868     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28870     break 2
28871   fi
28872 done
28873 done
28874 IFS=$as_save_IFS
28875
28876 fi
28877 fi
28878 GETCONF=$ac_cv_prog_GETCONF
28879 if test -n "$GETCONF"; then
28880   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28881 echo "${ECHO_T}$GETCONF" >&6; }
28882 else
28883   { echo "$as_me:$LINENO: result: no" >&5
28884 echo "${ECHO_T}no" >&6; }
28885 fi
28886
28887
28888 fi
28889 if test -z "$ac_cv_prog_GETCONF"; then
28890   ac_ct_GETCONF=$GETCONF
28891   # Extract the first word of "getconf", so it can be a program name with args.
28892 set dummy getconf; ac_word=$2
28893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28895 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28896   echo $ECHO_N "(cached) $ECHO_C" >&6
28897 else
28898   if test -n "$ac_ct_GETCONF"; then
28899   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28900 else
28901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28902 for as_dir in $PATH
28903 do
28904   IFS=$as_save_IFS
28905   test -z "$as_dir" && as_dir=.
28906   for ac_exec_ext in '' $ac_executable_extensions; do
28907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28908     ac_cv_prog_ac_ct_GETCONF="getconf"
28909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28910     break 2
28911   fi
28912 done
28913 done
28914 IFS=$as_save_IFS
28915
28916 fi
28917 fi
28918 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28919 if test -n "$ac_ct_GETCONF"; then
28920   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28921 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28922 else
28923   { echo "$as_me:$LINENO: result: no" >&5
28924 echo "${ECHO_T}no" >&6; }
28925 fi
28926
28927   if test "x$ac_ct_GETCONF" = x; then
28928     GETCONF=""
28929   else
28930     case $cross_compiling:$ac_tool_warned in
28931 yes:)
28932 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28933 whose name does not start with the host triplet.  If you think this
28934 configuration is useful to you, please write to autoconf@gnu.org." >&5
28935 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28936 whose name does not start with the host triplet.  If you think this
28937 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28938 ac_tool_warned=yes ;;
28939 esac
28940     GETCONF=$ac_ct_GETCONF
28941   fi
28942 else
28943   GETCONF="$ac_cv_prog_GETCONF"
28944 fi
28945
28946      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28947 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28948 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28949   echo $ECHO_N "(cached) $ECHO_C" >&6
28950 else
28951   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28952         ac_cv_sys_largefile_CFLAGS=no
28953         case "$host_os" in
28954            # IRIX 6.2 and later require cc -n32.
28955            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28956              if test "$GCC" != yes; then
28957                ac_cv_sys_largefile_CFLAGS=-n32
28958              fi
28959              ac_save_CC="$CC"
28960              CC="$CC $ac_cv_sys_largefile_CFLAGS"
28961              cat >conftest.$ac_ext <<_ACEOF
28962 /* confdefs.h.  */
28963 _ACEOF
28964 cat confdefs.h >>conftest.$ac_ext
28965 cat >>conftest.$ac_ext <<_ACEOF
28966 /* end confdefs.h.  */
28967
28968 int
28969 main ()
28970 {
28971
28972   ;
28973   return 0;
28974 }
28975 _ACEOF
28976 rm -f conftest.$ac_objext conftest$ac_exeext
28977 if { (ac_try="$ac_link"
28978 case "(($ac_try" in
28979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28980   *) ac_try_echo=$ac_try;;
28981 esac
28982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28983   (eval "$ac_link") 2>conftest.er1
28984   ac_status=$?
28985   grep -v '^ *+' conftest.er1 >conftest.err
28986   rm -f conftest.er1
28987   cat conftest.err >&5
28988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989   (exit $ac_status); } && {
28990          test -z "$ac_c_werror_flag" ||
28991          test ! -s conftest.err
28992        } && test -s conftest$ac_exeext &&
28993        $as_test_x conftest$ac_exeext; then
28994   :
28995 else
28996   echo "$as_me: failed program was:" >&5
28997 sed 's/^/| /' conftest.$ac_ext >&5
28998
28999         ac_cv_sys_largefile_CFLAGS=no
29000 fi
29001
29002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29003       conftest$ac_exeext conftest.$ac_ext
29004              CC="$ac_save_CC"
29005            esac
29006       }
29007 fi
29008 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29009 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29010      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29011 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29012 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29013   echo $ECHO_N "(cached) $ECHO_C" >&6
29014 else
29015   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29016         ac_cv_sys_largefile_LDFLAGS=no
29017
29018       }
29019 fi
29020 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29021 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29022      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29023 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29024 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29025   echo $ECHO_N "(cached) $ECHO_C" >&6
29026 else
29027   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29028         ac_cv_sys_largefile_LIBS=no
29029
29030       }
29031 fi
29032 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29033 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29034
29035      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29036        case "$ac_flag" in
29037        no) ;;
29038        -D_FILE_OFFSET_BITS=*) ;;
29039        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29040        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29041        -D?* | -I?*)
29042          case "$ac_flag" in
29043    no) ;;
29044    ?*)
29045      case "$CPPFLAGS" in
29046      '') CPPFLAGS="$ac_flag" ;;
29047      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29048      esac ;;
29049    esac ;;
29050        *)
29051          case "$ac_flag" in
29052    no) ;;
29053    ?*)
29054      case "$CFLAGS" in
29055      '') CFLAGS="$ac_flag" ;;
29056      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29057      esac ;;
29058    esac ;;
29059        esac
29060      done
29061      case "$ac_cv_sys_largefile_LDFLAGS" in
29062    no) ;;
29063    ?*)
29064      case "$LDFLAGS" in
29065      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29066      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29067      esac ;;
29068    esac
29069      case "$ac_cv_sys_largefile_LIBS" in
29070    no) ;;
29071    ?*)
29072      case "$LIBS" in
29073      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29074      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29075      esac ;;
29076    esac
29077      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29078 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29079 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29080   echo $ECHO_N "(cached) $ECHO_C" >&6
29081 else
29082   ac_cv_sys_file_offset_bits=no
29083       ac_cv_sys_file_offset_bits=64
29084       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29085         case "$ac_flag" in
29086         -D_FILE_OFFSET_BITS)
29087           ac_cv_sys_file_offset_bits=1 ;;
29088         -D_FILE_OFFSET_BITS=*)
29089           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29090         esac
29091       done
29092
29093 fi
29094 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29095 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29096    if test "$ac_cv_sys_file_offset_bits" != no; then
29097
29098 cat >>confdefs.h <<_ACEOF
29099 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29100 _ACEOF
29101
29102    fi
29103      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29104 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29105 if test "${ac_cv_sys_largefile_source+set}" = set; then
29106   echo $ECHO_N "(cached) $ECHO_C" >&6
29107 else
29108   ac_cv_sys_largefile_source=no
29109       ac_cv_sys_largefile_source=1
29110       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29111         case "$ac_flag" in
29112         -D_LARGEFILE_SOURCE)
29113           ac_cv_sys_largefile_source=1 ;;
29114         -D_LARGEFILE_SOURCE=*)
29115           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29116         esac
29117       done
29118
29119 fi
29120 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29121 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29122    if test "$ac_cv_sys_largefile_source" != no; then
29123
29124 cat >>confdefs.h <<_ACEOF
29125 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29126 _ACEOF
29127
29128    fi
29129      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29130 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29131 if test "${ac_cv_sys_large_files+set}" = set; then
29132   echo $ECHO_N "(cached) $ECHO_C" >&6
29133 else
29134   ac_cv_sys_large_files=no
29135       ac_cv_sys_large_files=1
29136       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29137         case "$ac_flag" in
29138         -D_LARGE_FILES)
29139           ac_cv_sys_large_files=1 ;;
29140         -D_LARGE_FILES=*)
29141           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29142         esac
29143       done
29144
29145 fi
29146 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29147 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29148    if test "$ac_cv_sys_large_files" != no; then
29149
29150 cat >>confdefs.h <<_ACEOF
29151 #define _LARGE_FILES $ac_cv_sys_large_files
29152 _ACEOF
29153
29154    fi
29155    fi
29156
29157
29158 { echo "$as_me:$LINENO: checking for X" >&5
29159 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29160
29161
29162 # Check whether --with-x was given.
29163 if test "${with_x+set}" = set; then
29164   withval=$with_x;
29165 fi
29166
29167 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29168 if test "x$with_x" = xno; then
29169   # The user explicitly disabled X.
29170   have_x=disabled
29171 else
29172   case $x_includes,$x_libraries in #(
29173     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29174 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29175    { (exit 1); exit 1; }; };; #(
29176     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29177   echo $ECHO_N "(cached) $ECHO_C" >&6
29178 else
29179   # One or both of the vars are not set, and there is no cached value.
29180 ac_x_includes=no ac_x_libraries=no
29181 rm -f -r conftest.dir
29182 if mkdir conftest.dir; then
29183   cd conftest.dir
29184   cat >Imakefile <<'_ACEOF'
29185 incroot:
29186         @echo incroot='${INCROOT}'
29187 usrlibdir:
29188         @echo usrlibdir='${USRLIBDIR}'
29189 libdir:
29190         @echo libdir='${LIBDIR}'
29191 _ACEOF
29192   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29193     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29194     for ac_var in incroot usrlibdir libdir; do
29195       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29196     done
29197     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29198     for ac_extension in a so sl; do
29199       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29200          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29201         ac_im_usrlibdir=$ac_im_libdir; break
29202       fi
29203     done
29204     # Screen out bogus values from the imake configuration.  They are
29205     # bogus both because they are the default anyway, and because
29206     # using them would break gcc on systems where it needs fixed includes.
29207     case $ac_im_incroot in
29208         /usr/include) ac_x_includes= ;;
29209         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29210     esac
29211     case $ac_im_usrlibdir in
29212         /usr/lib | /lib) ;;
29213         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29214     esac
29215   fi
29216   cd ..
29217   rm -f -r conftest.dir
29218 fi
29219
29220 # Standard set of common directories for X headers.
29221 # Check X11 before X11Rn because it is often a symlink to the current release.
29222 ac_x_header_dirs='
29223 /usr/X11/include
29224 /usr/X11R6/include
29225 /usr/X11R5/include
29226 /usr/X11R4/include
29227
29228 /usr/include/X11
29229 /usr/include/X11R6
29230 /usr/include/X11R5
29231 /usr/include/X11R4
29232
29233 /usr/local/X11/include
29234 /usr/local/X11R6/include
29235 /usr/local/X11R5/include
29236 /usr/local/X11R4/include
29237
29238 /usr/local/include/X11
29239 /usr/local/include/X11R6
29240 /usr/local/include/X11R5
29241 /usr/local/include/X11R4
29242
29243 /usr/X386/include
29244 /usr/x386/include
29245 /usr/XFree86/include/X11
29246
29247 /usr/include
29248 /usr/local/include
29249 /usr/unsupported/include
29250 /usr/athena/include
29251 /usr/local/x11r5/include
29252 /usr/lpp/Xamples/include
29253
29254 /usr/openwin/include
29255 /usr/openwin/share/include'
29256
29257 if test "$ac_x_includes" = no; then
29258   # Guess where to find include files, by looking for Xlib.h.
29259   # First, try using that file with no special directory specified.
29260   cat >conftest.$ac_ext <<_ACEOF
29261 /* confdefs.h.  */
29262 _ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h.  */
29266 #include <X11/Xlib.h>
29267 _ACEOF
29268 if { (ac_try="$ac_cpp conftest.$ac_ext"
29269 case "(($ac_try" in
29270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29271   *) ac_try_echo=$ac_try;;
29272 esac
29273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29275   ac_status=$?
29276   grep -v '^ *+' conftest.er1 >conftest.err
29277   rm -f conftest.er1
29278   cat conftest.err >&5
29279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280   (exit $ac_status); } >/dev/null && {
29281          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29282          test ! -s conftest.err
29283        }; then
29284   # We can compile using X headers with no special include directory.
29285 ac_x_includes=
29286 else
29287   echo "$as_me: failed program was:" >&5
29288 sed 's/^/| /' conftest.$ac_ext >&5
29289
29290   for ac_dir in $ac_x_header_dirs; do
29291   if test -r "$ac_dir/X11/Xlib.h"; then
29292     ac_x_includes=$ac_dir
29293     break
29294   fi
29295 done
29296 fi
29297
29298 rm -f conftest.err conftest.$ac_ext
29299 fi # $ac_x_includes = no
29300
29301 if test "$ac_x_libraries" = no; then
29302   # Check for the libraries.
29303   # See if we find them without any special options.
29304   # Don't add to $LIBS permanently.
29305   ac_save_LIBS=$LIBS
29306   LIBS="-lX11 $LIBS"
29307   cat >conftest.$ac_ext <<_ACEOF
29308 /* confdefs.h.  */
29309 _ACEOF
29310 cat confdefs.h >>conftest.$ac_ext
29311 cat >>conftest.$ac_ext <<_ACEOF
29312 /* end confdefs.h.  */
29313 #include <X11/Xlib.h>
29314 int
29315 main ()
29316 {
29317 XrmInitialize ()
29318   ;
29319   return 0;
29320 }
29321 _ACEOF
29322 rm -f conftest.$ac_objext conftest$ac_exeext
29323 if { (ac_try="$ac_link"
29324 case "(($ac_try" in
29325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326   *) ac_try_echo=$ac_try;;
29327 esac
29328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329   (eval "$ac_link") 2>conftest.er1
29330   ac_status=$?
29331   grep -v '^ *+' conftest.er1 >conftest.err
29332   rm -f conftest.er1
29333   cat conftest.err >&5
29334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335   (exit $ac_status); } && {
29336          test -z "$ac_c_werror_flag" ||
29337          test ! -s conftest.err
29338        } && test -s conftest$ac_exeext &&
29339        $as_test_x conftest$ac_exeext; then
29340   LIBS=$ac_save_LIBS
29341 # We can link X programs with no special library path.
29342 ac_x_libraries=
29343 else
29344   echo "$as_me: failed program was:" >&5
29345 sed 's/^/| /' conftest.$ac_ext >&5
29346
29347         LIBS=$ac_save_LIBS
29348 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29349 do
29350   # Don't even attempt the hair of trying to link an X program!
29351   for ac_extension in a so sl; do
29352     if test -r "$ac_dir/libX11.$ac_extension"; then
29353       ac_x_libraries=$ac_dir
29354       break 2
29355     fi
29356   done
29357 done
29358 fi
29359
29360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29361       conftest$ac_exeext conftest.$ac_ext
29362 fi # $ac_x_libraries = no
29363
29364 case $ac_x_includes,$ac_x_libraries in #(
29365   no,* | *,no | *\'*)
29366     # Didn't find X, or a directory has "'" in its name.
29367     ac_cv_have_x="have_x=no";; #(
29368   *)
29369     # Record where we found X for the cache.
29370     ac_cv_have_x="have_x=yes\
29371         ac_x_includes='$ac_x_includes'\
29372         ac_x_libraries='$ac_x_libraries'"
29373 esac
29374 fi
29375 ;; #(
29376     *) have_x=yes;;
29377   esac
29378   eval "$ac_cv_have_x"
29379 fi # $with_x != no
29380
29381 if test "$have_x" != yes; then
29382   { echo "$as_me:$LINENO: result: $have_x" >&5
29383 echo "${ECHO_T}$have_x" >&6; }
29384   no_x=yes
29385 else
29386   # If each of the values was on the command line, it overrides each guess.
29387   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29388   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29389   # Update the cache value to reflect the command line values.
29390   ac_cv_have_x="have_x=yes\
29391         ac_x_includes='$x_includes'\
29392         ac_x_libraries='$x_libraries'"
29393   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29394 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29395 fi
29396
29397 if test "$no_x" = yes; then
29398   # Not all programs may use this symbol, but it does not hurt to define it.
29399
29400 cat >>confdefs.h <<\_ACEOF
29401 #define X_DISPLAY_MISSING 1
29402 _ACEOF
29403
29404   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29405 else
29406   if test -n "$x_includes"; then
29407     X_CFLAGS="$X_CFLAGS -I$x_includes"
29408   fi
29409
29410   # It would also be nice to do this for all -L options, not just this one.
29411   if test -n "$x_libraries"; then
29412     X_LIBS="$X_LIBS -L$x_libraries"
29413     # For Solaris; some versions of Sun CC require a space after -R and
29414     # others require no space.  Words are not sufficient . . . .
29415     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29416 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29417     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29418     ac_xsave_c_werror_flag=$ac_c_werror_flag
29419     ac_c_werror_flag=yes
29420     cat >conftest.$ac_ext <<_ACEOF
29421 /* confdefs.h.  */
29422 _ACEOF
29423 cat confdefs.h >>conftest.$ac_ext
29424 cat >>conftest.$ac_ext <<_ACEOF
29425 /* end confdefs.h.  */
29426
29427 int
29428 main ()
29429 {
29430
29431   ;
29432   return 0;
29433 }
29434 _ACEOF
29435 rm -f conftest.$ac_objext conftest$ac_exeext
29436 if { (ac_try="$ac_link"
29437 case "(($ac_try" in
29438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439   *) ac_try_echo=$ac_try;;
29440 esac
29441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442   (eval "$ac_link") 2>conftest.er1
29443   ac_status=$?
29444   grep -v '^ *+' conftest.er1 >conftest.err
29445   rm -f conftest.er1
29446   cat conftest.err >&5
29447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448   (exit $ac_status); } && {
29449          test -z "$ac_c_werror_flag" ||
29450          test ! -s conftest.err
29451        } && test -s conftest$ac_exeext &&
29452        $as_test_x conftest$ac_exeext; then
29453   { echo "$as_me:$LINENO: result: no" >&5
29454 echo "${ECHO_T}no" >&6; }
29455        X_LIBS="$X_LIBS -R$x_libraries"
29456 else
29457   echo "$as_me: failed program was:" >&5
29458 sed 's/^/| /' conftest.$ac_ext >&5
29459
29460         LIBS="$ac_xsave_LIBS -R $x_libraries"
29461        cat >conftest.$ac_ext <<_ACEOF
29462 /* confdefs.h.  */
29463 _ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h.  */
29467
29468 int
29469 main ()
29470 {
29471
29472   ;
29473   return 0;
29474 }
29475 _ACEOF
29476 rm -f conftest.$ac_objext conftest$ac_exeext
29477 if { (ac_try="$ac_link"
29478 case "(($ac_try" in
29479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480   *) ac_try_echo=$ac_try;;
29481 esac
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483   (eval "$ac_link") 2>conftest.er1
29484   ac_status=$?
29485   grep -v '^ *+' conftest.er1 >conftest.err
29486   rm -f conftest.er1
29487   cat conftest.err >&5
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); } && {
29490          test -z "$ac_c_werror_flag" ||
29491          test ! -s conftest.err
29492        } && test -s conftest$ac_exeext &&
29493        $as_test_x conftest$ac_exeext; then
29494   { echo "$as_me:$LINENO: result: yes" >&5
29495 echo "${ECHO_T}yes" >&6; }
29496           X_LIBS="$X_LIBS -R $x_libraries"
29497 else
29498   echo "$as_me: failed program was:" >&5
29499 sed 's/^/| /' conftest.$ac_ext >&5
29500
29501         { echo "$as_me:$LINENO: result: neither works" >&5
29502 echo "${ECHO_T}neither works" >&6; }
29503 fi
29504
29505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29506       conftest$ac_exeext conftest.$ac_ext
29507 fi
29508
29509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29510       conftest$ac_exeext conftest.$ac_ext
29511     ac_c_werror_flag=$ac_xsave_c_werror_flag
29512     LIBS=$ac_xsave_LIBS
29513   fi
29514
29515   # Check for system-dependent libraries X programs must link with.
29516   # Do this before checking for the system-independent R6 libraries
29517   # (-lICE), since we may need -lsocket or whatever for X linking.
29518
29519   if test "$ISC" = yes; then
29520     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29521   else
29522     # Martyn Johnson says this is needed for Ultrix, if the X
29523     # libraries were built with DECnet support.  And Karl Berry says
29524     # the Alpha needs dnet_stub (dnet does not exist).
29525     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29526     cat >conftest.$ac_ext <<_ACEOF
29527 /* confdefs.h.  */
29528 _ACEOF
29529 cat confdefs.h >>conftest.$ac_ext
29530 cat >>conftest.$ac_ext <<_ACEOF
29531 /* end confdefs.h.  */
29532
29533 /* Override any GCC internal prototype to avoid an error.
29534    Use char because int might match the return type of a GCC
29535    builtin and then its argument prototype would still apply.  */
29536 #ifdef __cplusplus
29537 extern "C"
29538 #endif
29539 char XOpenDisplay ();
29540 int
29541 main ()
29542 {
29543 return XOpenDisplay ();
29544   ;
29545   return 0;
29546 }
29547 _ACEOF
29548 rm -f conftest.$ac_objext conftest$ac_exeext
29549 if { (ac_try="$ac_link"
29550 case "(($ac_try" in
29551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552   *) ac_try_echo=$ac_try;;
29553 esac
29554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555   (eval "$ac_link") 2>conftest.er1
29556   ac_status=$?
29557   grep -v '^ *+' conftest.er1 >conftest.err
29558   rm -f conftest.er1
29559   cat conftest.err >&5
29560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561   (exit $ac_status); } && {
29562          test -z "$ac_c_werror_flag" ||
29563          test ! -s conftest.err
29564        } && test -s conftest$ac_exeext &&
29565        $as_test_x conftest$ac_exeext; then
29566   :
29567 else
29568   echo "$as_me: failed program was:" >&5
29569 sed 's/^/| /' conftest.$ac_ext >&5
29570
29571         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29572 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29573 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29574   echo $ECHO_N "(cached) $ECHO_C" >&6
29575 else
29576   ac_check_lib_save_LIBS=$LIBS
29577 LIBS="-ldnet  $LIBS"
29578 cat >conftest.$ac_ext <<_ACEOF
29579 /* confdefs.h.  */
29580 _ACEOF
29581 cat confdefs.h >>conftest.$ac_ext
29582 cat >>conftest.$ac_ext <<_ACEOF
29583 /* end confdefs.h.  */
29584
29585 /* Override any GCC internal prototype to avoid an error.
29586    Use char because int might match the return type of a GCC
29587    builtin and then its argument prototype would still apply.  */
29588 #ifdef __cplusplus
29589 extern "C"
29590 #endif
29591 char dnet_ntoa ();
29592 int
29593 main ()
29594 {
29595 return dnet_ntoa ();
29596   ;
29597   return 0;
29598 }
29599 _ACEOF
29600 rm -f conftest.$ac_objext conftest$ac_exeext
29601 if { (ac_try="$ac_link"
29602 case "(($ac_try" in
29603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29604   *) ac_try_echo=$ac_try;;
29605 esac
29606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29607   (eval "$ac_link") 2>conftest.er1
29608   ac_status=$?
29609   grep -v '^ *+' conftest.er1 >conftest.err
29610   rm -f conftest.er1
29611   cat conftest.err >&5
29612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29613   (exit $ac_status); } && {
29614          test -z "$ac_c_werror_flag" ||
29615          test ! -s conftest.err
29616        } && test -s conftest$ac_exeext &&
29617        $as_test_x conftest$ac_exeext; then
29618   ac_cv_lib_dnet_dnet_ntoa=yes
29619 else
29620   echo "$as_me: failed program was:" >&5
29621 sed 's/^/| /' conftest.$ac_ext >&5
29622
29623         ac_cv_lib_dnet_dnet_ntoa=no
29624 fi
29625
29626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29627       conftest$ac_exeext conftest.$ac_ext
29628 LIBS=$ac_check_lib_save_LIBS
29629 fi
29630 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29631 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29632 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29633   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29634 fi
29635
29636     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29637       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29638 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29639 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29640   echo $ECHO_N "(cached) $ECHO_C" >&6
29641 else
29642   ac_check_lib_save_LIBS=$LIBS
29643 LIBS="-ldnet_stub  $LIBS"
29644 cat >conftest.$ac_ext <<_ACEOF
29645 /* confdefs.h.  */
29646 _ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h.  */
29650
29651 /* Override any GCC internal prototype to avoid an error.
29652    Use char because int might match the return type of a GCC
29653    builtin and then its argument prototype would still apply.  */
29654 #ifdef __cplusplus
29655 extern "C"
29656 #endif
29657 char dnet_ntoa ();
29658 int
29659 main ()
29660 {
29661 return dnet_ntoa ();
29662   ;
29663   return 0;
29664 }
29665 _ACEOF
29666 rm -f conftest.$ac_objext conftest$ac_exeext
29667 if { (ac_try="$ac_link"
29668 case "(($ac_try" in
29669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29670   *) ac_try_echo=$ac_try;;
29671 esac
29672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29673   (eval "$ac_link") 2>conftest.er1
29674   ac_status=$?
29675   grep -v '^ *+' conftest.er1 >conftest.err
29676   rm -f conftest.er1
29677   cat conftest.err >&5
29678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679   (exit $ac_status); } && {
29680          test -z "$ac_c_werror_flag" ||
29681          test ! -s conftest.err
29682        } && test -s conftest$ac_exeext &&
29683        $as_test_x conftest$ac_exeext; then
29684   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29685 else
29686   echo "$as_me: failed program was:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29688
29689         ac_cv_lib_dnet_stub_dnet_ntoa=no
29690 fi
29691
29692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29693       conftest$ac_exeext conftest.$ac_ext
29694 LIBS=$ac_check_lib_save_LIBS
29695 fi
29696 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29697 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29698 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29699   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29700 fi
29701
29702     fi
29703 fi
29704
29705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29706       conftest$ac_exeext conftest.$ac_ext
29707     LIBS="$ac_xsave_LIBS"
29708
29709     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29710     # to get the SysV transport functions.
29711     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29712     # needs -lnsl.
29713     # The nsl library prevents programs from opening the X display
29714     # on Irix 5.2, according to T.E. Dickey.
29715     # The functions gethostbyname, getservbyname, and inet_addr are
29716     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29717     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29718 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29719 if test "${ac_cv_func_gethostbyname+set}" = set; then
29720   echo $ECHO_N "(cached) $ECHO_C" >&6
29721 else
29722   cat >conftest.$ac_ext <<_ACEOF
29723 /* confdefs.h.  */
29724 _ACEOF
29725 cat confdefs.h >>conftest.$ac_ext
29726 cat >>conftest.$ac_ext <<_ACEOF
29727 /* end confdefs.h.  */
29728 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29730 #define gethostbyname innocuous_gethostbyname
29731
29732 /* System header to define __stub macros and hopefully few prototypes,
29733     which can conflict with char gethostbyname (); below.
29734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29735     <limits.h> exists even on freestanding compilers.  */
29736
29737 #ifdef __STDC__
29738 # include <limits.h>
29739 #else
29740 # include <assert.h>
29741 #endif
29742
29743 #undef gethostbyname
29744
29745 /* Override any GCC internal prototype to avoid an error.
29746    Use char because int might match the return type of a GCC
29747    builtin and then its argument prototype would still apply.  */
29748 #ifdef __cplusplus
29749 extern "C"
29750 #endif
29751 char gethostbyname ();
29752 /* The GNU C library defines this for functions which it implements
29753     to always fail with ENOSYS.  Some functions are actually named
29754     something starting with __ and the normal name is an alias.  */
29755 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29756 choke me
29757 #endif
29758
29759 int
29760 main ()
29761 {
29762 return gethostbyname ();
29763   ;
29764   return 0;
29765 }
29766 _ACEOF
29767 rm -f conftest.$ac_objext conftest$ac_exeext
29768 if { (ac_try="$ac_link"
29769 case "(($ac_try" in
29770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771   *) ac_try_echo=$ac_try;;
29772 esac
29773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774   (eval "$ac_link") 2>conftest.er1
29775   ac_status=$?
29776   grep -v '^ *+' conftest.er1 >conftest.err
29777   rm -f conftest.er1
29778   cat conftest.err >&5
29779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780   (exit $ac_status); } && {
29781          test -z "$ac_c_werror_flag" ||
29782          test ! -s conftest.err
29783        } && test -s conftest$ac_exeext &&
29784        $as_test_x conftest$ac_exeext; then
29785   ac_cv_func_gethostbyname=yes
29786 else
29787   echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29789
29790         ac_cv_func_gethostbyname=no
29791 fi
29792
29793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29794       conftest$ac_exeext conftest.$ac_ext
29795 fi
29796 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29797 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29798
29799     if test $ac_cv_func_gethostbyname = no; then
29800       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29801 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29802 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29803   echo $ECHO_N "(cached) $ECHO_C" >&6
29804 else
29805   ac_check_lib_save_LIBS=$LIBS
29806 LIBS="-lnsl  $LIBS"
29807 cat >conftest.$ac_ext <<_ACEOF
29808 /* confdefs.h.  */
29809 _ACEOF
29810 cat confdefs.h >>conftest.$ac_ext
29811 cat >>conftest.$ac_ext <<_ACEOF
29812 /* end confdefs.h.  */
29813
29814 /* Override any GCC internal prototype to avoid an error.
29815    Use char because int might match the return type of a GCC
29816    builtin and then its argument prototype would still apply.  */
29817 #ifdef __cplusplus
29818 extern "C"
29819 #endif
29820 char gethostbyname ();
29821 int
29822 main ()
29823 {
29824 return gethostbyname ();
29825   ;
29826   return 0;
29827 }
29828 _ACEOF
29829 rm -f conftest.$ac_objext conftest$ac_exeext
29830 if { (ac_try="$ac_link"
29831 case "(($ac_try" in
29832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833   *) ac_try_echo=$ac_try;;
29834 esac
29835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836   (eval "$ac_link") 2>conftest.er1
29837   ac_status=$?
29838   grep -v '^ *+' conftest.er1 >conftest.err
29839   rm -f conftest.er1
29840   cat conftest.err >&5
29841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842   (exit $ac_status); } && {
29843          test -z "$ac_c_werror_flag" ||
29844          test ! -s conftest.err
29845        } && test -s conftest$ac_exeext &&
29846        $as_test_x conftest$ac_exeext; then
29847   ac_cv_lib_nsl_gethostbyname=yes
29848 else
29849   echo "$as_me: failed program was:" >&5
29850 sed 's/^/| /' conftest.$ac_ext >&5
29851
29852         ac_cv_lib_nsl_gethostbyname=no
29853 fi
29854
29855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29856       conftest$ac_exeext conftest.$ac_ext
29857 LIBS=$ac_check_lib_save_LIBS
29858 fi
29859 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29860 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29861 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29862   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29863 fi
29864
29865       if test $ac_cv_lib_nsl_gethostbyname = no; then
29866         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29867 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29868 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29869   echo $ECHO_N "(cached) $ECHO_C" >&6
29870 else
29871   ac_check_lib_save_LIBS=$LIBS
29872 LIBS="-lbsd  $LIBS"
29873 cat >conftest.$ac_ext <<_ACEOF
29874 /* confdefs.h.  */
29875 _ACEOF
29876 cat confdefs.h >>conftest.$ac_ext
29877 cat >>conftest.$ac_ext <<_ACEOF
29878 /* end confdefs.h.  */
29879
29880 /* Override any GCC internal prototype to avoid an error.
29881    Use char because int might match the return type of a GCC
29882    builtin and then its argument prototype would still apply.  */
29883 #ifdef __cplusplus
29884 extern "C"
29885 #endif
29886 char gethostbyname ();
29887 int
29888 main ()
29889 {
29890 return gethostbyname ();
29891   ;
29892   return 0;
29893 }
29894 _ACEOF
29895 rm -f conftest.$ac_objext conftest$ac_exeext
29896 if { (ac_try="$ac_link"
29897 case "(($ac_try" in
29898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899   *) ac_try_echo=$ac_try;;
29900 esac
29901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902   (eval "$ac_link") 2>conftest.er1
29903   ac_status=$?
29904   grep -v '^ *+' conftest.er1 >conftest.err
29905   rm -f conftest.er1
29906   cat conftest.err >&5
29907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908   (exit $ac_status); } && {
29909          test -z "$ac_c_werror_flag" ||
29910          test ! -s conftest.err
29911        } && test -s conftest$ac_exeext &&
29912        $as_test_x conftest$ac_exeext; then
29913   ac_cv_lib_bsd_gethostbyname=yes
29914 else
29915   echo "$as_me: failed program was:" >&5
29916 sed 's/^/| /' conftest.$ac_ext >&5
29917
29918         ac_cv_lib_bsd_gethostbyname=no
29919 fi
29920
29921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29922       conftest$ac_exeext conftest.$ac_ext
29923 LIBS=$ac_check_lib_save_LIBS
29924 fi
29925 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29926 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29927 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29928   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29929 fi
29930
29931       fi
29932     fi
29933
29934     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29935     # socket/setsockopt and other routines are undefined under SCO ODT
29936     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29937     # on later versions), says Simon Leinen: it contains gethostby*
29938     # variants that don't use the name server (or something).  -lsocket
29939     # must be given before -lnsl if both are needed.  We assume that
29940     # if connect needs -lnsl, so does gethostbyname.
29941     { echo "$as_me:$LINENO: checking for connect" >&5
29942 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29943 if test "${ac_cv_func_connect+set}" = set; then
29944   echo $ECHO_N "(cached) $ECHO_C" >&6
29945 else
29946   cat >conftest.$ac_ext <<_ACEOF
29947 /* confdefs.h.  */
29948 _ACEOF
29949 cat confdefs.h >>conftest.$ac_ext
29950 cat >>conftest.$ac_ext <<_ACEOF
29951 /* end confdefs.h.  */
29952 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29954 #define connect innocuous_connect
29955
29956 /* System header to define __stub macros and hopefully few prototypes,
29957     which can conflict with char connect (); below.
29958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29959     <limits.h> exists even on freestanding compilers.  */
29960
29961 #ifdef __STDC__
29962 # include <limits.h>
29963 #else
29964 # include <assert.h>
29965 #endif
29966
29967 #undef connect
29968
29969 /* Override any GCC internal prototype to avoid an error.
29970    Use char because int might match the return type of a GCC
29971    builtin and then its argument prototype would still apply.  */
29972 #ifdef __cplusplus
29973 extern "C"
29974 #endif
29975 char connect ();
29976 /* The GNU C library defines this for functions which it implements
29977     to always fail with ENOSYS.  Some functions are actually named
29978     something starting with __ and the normal name is an alias.  */
29979 #if defined __stub_connect || defined __stub___connect
29980 choke me
29981 #endif
29982
29983 int
29984 main ()
29985 {
29986 return connect ();
29987   ;
29988   return 0;
29989 }
29990 _ACEOF
29991 rm -f conftest.$ac_objext conftest$ac_exeext
29992 if { (ac_try="$ac_link"
29993 case "(($ac_try" in
29994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995   *) ac_try_echo=$ac_try;;
29996 esac
29997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29998   (eval "$ac_link") 2>conftest.er1
29999   ac_status=$?
30000   grep -v '^ *+' conftest.er1 >conftest.err
30001   rm -f conftest.er1
30002   cat conftest.err >&5
30003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004   (exit $ac_status); } && {
30005          test -z "$ac_c_werror_flag" ||
30006          test ! -s conftest.err
30007        } && test -s conftest$ac_exeext &&
30008        $as_test_x conftest$ac_exeext; then
30009   ac_cv_func_connect=yes
30010 else
30011   echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30013
30014         ac_cv_func_connect=no
30015 fi
30016
30017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30018       conftest$ac_exeext conftest.$ac_ext
30019 fi
30020 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30021 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30022
30023     if test $ac_cv_func_connect = no; then
30024       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30025 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30026 if test "${ac_cv_lib_socket_connect+set}" = set; then
30027   echo $ECHO_N "(cached) $ECHO_C" >&6
30028 else
30029   ac_check_lib_save_LIBS=$LIBS
30030 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30031 cat >conftest.$ac_ext <<_ACEOF
30032 /* confdefs.h.  */
30033 _ACEOF
30034 cat confdefs.h >>conftest.$ac_ext
30035 cat >>conftest.$ac_ext <<_ACEOF
30036 /* end confdefs.h.  */
30037
30038 /* Override any GCC internal prototype to avoid an error.
30039    Use char because int might match the return type of a GCC
30040    builtin and then its argument prototype would still apply.  */
30041 #ifdef __cplusplus
30042 extern "C"
30043 #endif
30044 char connect ();
30045 int
30046 main ()
30047 {
30048 return connect ();
30049   ;
30050   return 0;
30051 }
30052 _ACEOF
30053 rm -f conftest.$ac_objext conftest$ac_exeext
30054 if { (ac_try="$ac_link"
30055 case "(($ac_try" in
30056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057   *) ac_try_echo=$ac_try;;
30058 esac
30059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060   (eval "$ac_link") 2>conftest.er1
30061   ac_status=$?
30062   grep -v '^ *+' conftest.er1 >conftest.err
30063   rm -f conftest.er1
30064   cat conftest.err >&5
30065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066   (exit $ac_status); } && {
30067          test -z "$ac_c_werror_flag" ||
30068          test ! -s conftest.err
30069        } && test -s conftest$ac_exeext &&
30070        $as_test_x conftest$ac_exeext; then
30071   ac_cv_lib_socket_connect=yes
30072 else
30073   echo "$as_me: failed program was:" >&5
30074 sed 's/^/| /' conftest.$ac_ext >&5
30075
30076         ac_cv_lib_socket_connect=no
30077 fi
30078
30079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30080       conftest$ac_exeext conftest.$ac_ext
30081 LIBS=$ac_check_lib_save_LIBS
30082 fi
30083 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30084 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30085 if test $ac_cv_lib_socket_connect = yes; then
30086   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30087 fi
30088
30089     fi
30090
30091     # Guillermo Gomez says -lposix is necessary on A/UX.
30092     { echo "$as_me:$LINENO: checking for remove" >&5
30093 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30094 if test "${ac_cv_func_remove+set}" = set; then
30095   echo $ECHO_N "(cached) $ECHO_C" >&6
30096 else
30097   cat >conftest.$ac_ext <<_ACEOF
30098 /* confdefs.h.  */
30099 _ACEOF
30100 cat confdefs.h >>conftest.$ac_ext
30101 cat >>conftest.$ac_ext <<_ACEOF
30102 /* end confdefs.h.  */
30103 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30105 #define remove innocuous_remove
30106
30107 /* System header to define __stub macros and hopefully few prototypes,
30108     which can conflict with char remove (); below.
30109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30110     <limits.h> exists even on freestanding compilers.  */
30111
30112 #ifdef __STDC__
30113 # include <limits.h>
30114 #else
30115 # include <assert.h>
30116 #endif
30117
30118 #undef remove
30119
30120 /* Override any GCC internal prototype to avoid an error.
30121    Use char because int might match the return type of a GCC
30122    builtin and then its argument prototype would still apply.  */
30123 #ifdef __cplusplus
30124 extern "C"
30125 #endif
30126 char remove ();
30127 /* The GNU C library defines this for functions which it implements
30128     to always fail with ENOSYS.  Some functions are actually named
30129     something starting with __ and the normal name is an alias.  */
30130 #if defined __stub_remove || defined __stub___remove
30131 choke me
30132 #endif
30133
30134 int
30135 main ()
30136 {
30137 return remove ();
30138   ;
30139   return 0;
30140 }
30141 _ACEOF
30142 rm -f conftest.$ac_objext conftest$ac_exeext
30143 if { (ac_try="$ac_link"
30144 case "(($ac_try" in
30145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30146   *) ac_try_echo=$ac_try;;
30147 esac
30148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30149   (eval "$ac_link") 2>conftest.er1
30150   ac_status=$?
30151   grep -v '^ *+' conftest.er1 >conftest.err
30152   rm -f conftest.er1
30153   cat conftest.err >&5
30154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155   (exit $ac_status); } && {
30156          test -z "$ac_c_werror_flag" ||
30157          test ! -s conftest.err
30158        } && test -s conftest$ac_exeext &&
30159        $as_test_x conftest$ac_exeext; then
30160   ac_cv_func_remove=yes
30161 else
30162   echo "$as_me: failed program was:" >&5
30163 sed 's/^/| /' conftest.$ac_ext >&5
30164
30165         ac_cv_func_remove=no
30166 fi
30167
30168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30169       conftest$ac_exeext conftest.$ac_ext
30170 fi
30171 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30172 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30173
30174     if test $ac_cv_func_remove = no; then
30175       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30176 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30177 if test "${ac_cv_lib_posix_remove+set}" = set; then
30178   echo $ECHO_N "(cached) $ECHO_C" >&6
30179 else
30180   ac_check_lib_save_LIBS=$LIBS
30181 LIBS="-lposix  $LIBS"
30182 cat >conftest.$ac_ext <<_ACEOF
30183 /* confdefs.h.  */
30184 _ACEOF
30185 cat confdefs.h >>conftest.$ac_ext
30186 cat >>conftest.$ac_ext <<_ACEOF
30187 /* end confdefs.h.  */
30188
30189 /* Override any GCC internal prototype to avoid an error.
30190    Use char because int might match the return type of a GCC
30191    builtin and then its argument prototype would still apply.  */
30192 #ifdef __cplusplus
30193 extern "C"
30194 #endif
30195 char remove ();
30196 int
30197 main ()
30198 {
30199 return remove ();
30200   ;
30201   return 0;
30202 }
30203 _ACEOF
30204 rm -f conftest.$ac_objext conftest$ac_exeext
30205 if { (ac_try="$ac_link"
30206 case "(($ac_try" in
30207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30208   *) ac_try_echo=$ac_try;;
30209 esac
30210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30211   (eval "$ac_link") 2>conftest.er1
30212   ac_status=$?
30213   grep -v '^ *+' conftest.er1 >conftest.err
30214   rm -f conftest.er1
30215   cat conftest.err >&5
30216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217   (exit $ac_status); } && {
30218          test -z "$ac_c_werror_flag" ||
30219          test ! -s conftest.err
30220        } && test -s conftest$ac_exeext &&
30221        $as_test_x conftest$ac_exeext; then
30222   ac_cv_lib_posix_remove=yes
30223 else
30224   echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30226
30227         ac_cv_lib_posix_remove=no
30228 fi
30229
30230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30231       conftest$ac_exeext conftest.$ac_ext
30232 LIBS=$ac_check_lib_save_LIBS
30233 fi
30234 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30235 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30236 if test $ac_cv_lib_posix_remove = yes; then
30237   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30238 fi
30239
30240     fi
30241
30242     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30243     { echo "$as_me:$LINENO: checking for shmat" >&5
30244 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30245 if test "${ac_cv_func_shmat+set}" = set; then
30246   echo $ECHO_N "(cached) $ECHO_C" >&6
30247 else
30248   cat >conftest.$ac_ext <<_ACEOF
30249 /* confdefs.h.  */
30250 _ACEOF
30251 cat confdefs.h >>conftest.$ac_ext
30252 cat >>conftest.$ac_ext <<_ACEOF
30253 /* end confdefs.h.  */
30254 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30256 #define shmat innocuous_shmat
30257
30258 /* System header to define __stub macros and hopefully few prototypes,
30259     which can conflict with char shmat (); below.
30260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30261     <limits.h> exists even on freestanding compilers.  */
30262
30263 #ifdef __STDC__
30264 # include <limits.h>
30265 #else
30266 # include <assert.h>
30267 #endif
30268
30269 #undef shmat
30270
30271 /* Override any GCC internal prototype to avoid an error.
30272    Use char because int might match the return type of a GCC
30273    builtin and then its argument prototype would still apply.  */
30274 #ifdef __cplusplus
30275 extern "C"
30276 #endif
30277 char shmat ();
30278 /* The GNU C library defines this for functions which it implements
30279     to always fail with ENOSYS.  Some functions are actually named
30280     something starting with __ and the normal name is an alias.  */
30281 #if defined __stub_shmat || defined __stub___shmat
30282 choke me
30283 #endif
30284
30285 int
30286 main ()
30287 {
30288 return shmat ();
30289   ;
30290   return 0;
30291 }
30292 _ACEOF
30293 rm -f conftest.$ac_objext conftest$ac_exeext
30294 if { (ac_try="$ac_link"
30295 case "(($ac_try" in
30296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30297   *) ac_try_echo=$ac_try;;
30298 esac
30299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30300   (eval "$ac_link") 2>conftest.er1
30301   ac_status=$?
30302   grep -v '^ *+' conftest.er1 >conftest.err
30303   rm -f conftest.er1
30304   cat conftest.err >&5
30305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306   (exit $ac_status); } && {
30307          test -z "$ac_c_werror_flag" ||
30308          test ! -s conftest.err
30309        } && test -s conftest$ac_exeext &&
30310        $as_test_x conftest$ac_exeext; then
30311   ac_cv_func_shmat=yes
30312 else
30313   echo "$as_me: failed program was:" >&5
30314 sed 's/^/| /' conftest.$ac_ext >&5
30315
30316         ac_cv_func_shmat=no
30317 fi
30318
30319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30320       conftest$ac_exeext conftest.$ac_ext
30321 fi
30322 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30323 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30324
30325     if test $ac_cv_func_shmat = no; then
30326       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30327 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30328 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30329   echo $ECHO_N "(cached) $ECHO_C" >&6
30330 else
30331   ac_check_lib_save_LIBS=$LIBS
30332 LIBS="-lipc  $LIBS"
30333 cat >conftest.$ac_ext <<_ACEOF
30334 /* confdefs.h.  */
30335 _ACEOF
30336 cat confdefs.h >>conftest.$ac_ext
30337 cat >>conftest.$ac_ext <<_ACEOF
30338 /* end confdefs.h.  */
30339
30340 /* Override any GCC internal prototype to avoid an error.
30341    Use char because int might match the return type of a GCC
30342    builtin and then its argument prototype would still apply.  */
30343 #ifdef __cplusplus
30344 extern "C"
30345 #endif
30346 char shmat ();
30347 int
30348 main ()
30349 {
30350 return shmat ();
30351   ;
30352   return 0;
30353 }
30354 _ACEOF
30355 rm -f conftest.$ac_objext conftest$ac_exeext
30356 if { (ac_try="$ac_link"
30357 case "(($ac_try" in
30358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359   *) ac_try_echo=$ac_try;;
30360 esac
30361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362   (eval "$ac_link") 2>conftest.er1
30363   ac_status=$?
30364   grep -v '^ *+' conftest.er1 >conftest.err
30365   rm -f conftest.er1
30366   cat conftest.err >&5
30367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368   (exit $ac_status); } && {
30369          test -z "$ac_c_werror_flag" ||
30370          test ! -s conftest.err
30371        } && test -s conftest$ac_exeext &&
30372        $as_test_x conftest$ac_exeext; then
30373   ac_cv_lib_ipc_shmat=yes
30374 else
30375   echo "$as_me: failed program was:" >&5
30376 sed 's/^/| /' conftest.$ac_ext >&5
30377
30378         ac_cv_lib_ipc_shmat=no
30379 fi
30380
30381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30382       conftest$ac_exeext conftest.$ac_ext
30383 LIBS=$ac_check_lib_save_LIBS
30384 fi
30385 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30386 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30387 if test $ac_cv_lib_ipc_shmat = yes; then
30388   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30389 fi
30390
30391     fi
30392   fi
30393
30394   # Check for libraries that X11R6 Xt/Xaw programs need.
30395   ac_save_LDFLAGS=$LDFLAGS
30396   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30397   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30398   # check for ICE first), but we must link in the order -lSM -lICE or
30399   # we get undefined symbols.  So assume we have SM if we have ICE.
30400   # These have to be linked with before -lX11, unlike the other
30401   # libraries we check for below, so use a different variable.
30402   # John Interrante, Karl Berry
30403   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30404 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30405 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30406   echo $ECHO_N "(cached) $ECHO_C" >&6
30407 else
30408   ac_check_lib_save_LIBS=$LIBS
30409 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30410 cat >conftest.$ac_ext <<_ACEOF
30411 /* confdefs.h.  */
30412 _ACEOF
30413 cat confdefs.h >>conftest.$ac_ext
30414 cat >>conftest.$ac_ext <<_ACEOF
30415 /* end confdefs.h.  */
30416
30417 /* Override any GCC internal prototype to avoid an error.
30418    Use char because int might match the return type of a GCC
30419    builtin and then its argument prototype would still apply.  */
30420 #ifdef __cplusplus
30421 extern "C"
30422 #endif
30423 char IceConnectionNumber ();
30424 int
30425 main ()
30426 {
30427 return IceConnectionNumber ();
30428   ;
30429   return 0;
30430 }
30431 _ACEOF
30432 rm -f conftest.$ac_objext conftest$ac_exeext
30433 if { (ac_try="$ac_link"
30434 case "(($ac_try" in
30435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436   *) ac_try_echo=$ac_try;;
30437 esac
30438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439   (eval "$ac_link") 2>conftest.er1
30440   ac_status=$?
30441   grep -v '^ *+' conftest.er1 >conftest.err
30442   rm -f conftest.er1
30443   cat conftest.err >&5
30444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445   (exit $ac_status); } && {
30446          test -z "$ac_c_werror_flag" ||
30447          test ! -s conftest.err
30448        } && test -s conftest$ac_exeext &&
30449        $as_test_x conftest$ac_exeext; then
30450   ac_cv_lib_ICE_IceConnectionNumber=yes
30451 else
30452   echo "$as_me: failed program was:" >&5
30453 sed 's/^/| /' conftest.$ac_ext >&5
30454
30455         ac_cv_lib_ICE_IceConnectionNumber=no
30456 fi
30457
30458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30459       conftest$ac_exeext conftest.$ac_ext
30460 LIBS=$ac_check_lib_save_LIBS
30461 fi
30462 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30463 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30464 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30465   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30466 fi
30467
30468   LDFLAGS=$ac_save_LDFLAGS
30469
30470 fi
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503 for ac_header in \
30504    assert.h \
30505    fcntl.h \
30506    grp.h \
30507    pwd.h \
30508    libc.h \
30509    limits.h \
30510    stdarg.h \
30511    stdlib.h \
30512    stdint.h \
30513    string.h \
30514    strings.h \
30515    termios.h \
30516    termcap.h \
30517    term.h \
30518    unistd.h \
30519    sys/bitypes.h \
30520    sys/byteorder.h \
30521    sys/ioctl.h \
30522    sys/select.h \
30523    sys/socket.h \
30524    sys/sockio.h \
30525    sys/stat.h \
30526    sys/time.h \
30527    sys/types.h \
30528    arpa/nameser.h \
30529    resolv.h \
30530    mtio.h \
30531    sys/mtio.h \
30532    sys/tape.h \
30533    regex.h \
30534
30535 do
30536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30538   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30541   echo $ECHO_N "(cached) $ECHO_C" >&6
30542 fi
30543 ac_res=`eval echo '${'$as_ac_Header'}'`
30544                { echo "$as_me:$LINENO: result: $ac_res" >&5
30545 echo "${ECHO_T}$ac_res" >&6; }
30546 else
30547   # Is the header compilable?
30548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30550 cat >conftest.$ac_ext <<_ACEOF
30551 /* confdefs.h.  */
30552 _ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h.  */
30556 $ac_includes_default
30557 #include <$ac_header>
30558 _ACEOF
30559 rm -f conftest.$ac_objext
30560 if { (ac_try="$ac_compile"
30561 case "(($ac_try" in
30562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30563   *) ac_try_echo=$ac_try;;
30564 esac
30565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30566   (eval "$ac_compile") 2>conftest.er1
30567   ac_status=$?
30568   grep -v '^ *+' conftest.er1 >conftest.err
30569   rm -f conftest.er1
30570   cat conftest.err >&5
30571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572   (exit $ac_status); } && {
30573          test -z "$ac_c_werror_flag" ||
30574          test ! -s conftest.err
30575        } && test -s conftest.$ac_objext; then
30576   ac_header_compiler=yes
30577 else
30578   echo "$as_me: failed program was:" >&5
30579 sed 's/^/| /' conftest.$ac_ext >&5
30580
30581         ac_header_compiler=no
30582 fi
30583
30584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30586 echo "${ECHO_T}$ac_header_compiler" >&6; }
30587
30588 # Is the header present?
30589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30591 cat >conftest.$ac_ext <<_ACEOF
30592 /* confdefs.h.  */
30593 _ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h.  */
30597 #include <$ac_header>
30598 _ACEOF
30599 if { (ac_try="$ac_cpp conftest.$ac_ext"
30600 case "(($ac_try" in
30601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30602   *) ac_try_echo=$ac_try;;
30603 esac
30604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30606   ac_status=$?
30607   grep -v '^ *+' conftest.er1 >conftest.err
30608   rm -f conftest.er1
30609   cat conftest.err >&5
30610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611   (exit $ac_status); } >/dev/null && {
30612          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30613          test ! -s conftest.err
30614        }; then
30615   ac_header_preproc=yes
30616 else
30617   echo "$as_me: failed program was:" >&5
30618 sed 's/^/| /' conftest.$ac_ext >&5
30619
30620   ac_header_preproc=no
30621 fi
30622
30623 rm -f conftest.err conftest.$ac_ext
30624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30625 echo "${ECHO_T}$ac_header_preproc" >&6; }
30626
30627 # So?  What about this header?
30628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30629   yes:no: )
30630     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30634     ac_header_preproc=yes
30635     ;;
30636   no:yes:* )
30637     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30639     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30640 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30641     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30643     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30644 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30647     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30649
30650     ;;
30651 esac
30652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30655   echo $ECHO_N "(cached) $ECHO_C" >&6
30656 else
30657   eval "$as_ac_Header=\$ac_header_preproc"
30658 fi
30659 ac_res=`eval echo '${'$as_ac_Header'}'`
30660                { echo "$as_me:$LINENO: result: $ac_res" >&5
30661 echo "${ECHO_T}$ac_res" >&6; }
30662
30663 fi
30664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30665   cat >>confdefs.h <<_ACEOF
30666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30667 _ACEOF
30668
30669 fi
30670
30671 done
30672
30673 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30674 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30675 if test "${ac_cv_header_stdc+set}" = set; then
30676   echo $ECHO_N "(cached) $ECHO_C" >&6
30677 else
30678   cat >conftest.$ac_ext <<_ACEOF
30679 /* confdefs.h.  */
30680 _ACEOF
30681 cat confdefs.h >>conftest.$ac_ext
30682 cat >>conftest.$ac_ext <<_ACEOF
30683 /* end confdefs.h.  */
30684 #include <stdlib.h>
30685 #include <stdarg.h>
30686 #include <string.h>
30687 #include <float.h>
30688
30689 int
30690 main ()
30691 {
30692
30693   ;
30694   return 0;
30695 }
30696 _ACEOF
30697 rm -f conftest.$ac_objext
30698 if { (ac_try="$ac_compile"
30699 case "(($ac_try" in
30700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30701   *) ac_try_echo=$ac_try;;
30702 esac
30703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30704   (eval "$ac_compile") 2>conftest.er1
30705   ac_status=$?
30706   grep -v '^ *+' conftest.er1 >conftest.err
30707   rm -f conftest.er1
30708   cat conftest.err >&5
30709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710   (exit $ac_status); } && {
30711          test -z "$ac_c_werror_flag" ||
30712          test ! -s conftest.err
30713        } && test -s conftest.$ac_objext; then
30714   ac_cv_header_stdc=yes
30715 else
30716   echo "$as_me: failed program was:" >&5
30717 sed 's/^/| /' conftest.$ac_ext >&5
30718
30719         ac_cv_header_stdc=no
30720 fi
30721
30722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30723
30724 if test $ac_cv_header_stdc = yes; then
30725   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30726   cat >conftest.$ac_ext <<_ACEOF
30727 /* confdefs.h.  */
30728 _ACEOF
30729 cat confdefs.h >>conftest.$ac_ext
30730 cat >>conftest.$ac_ext <<_ACEOF
30731 /* end confdefs.h.  */
30732 #include <string.h>
30733
30734 _ACEOF
30735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30736   $EGREP "memchr" >/dev/null 2>&1; then
30737   :
30738 else
30739   ac_cv_header_stdc=no
30740 fi
30741 rm -f conftest*
30742
30743 fi
30744
30745 if test $ac_cv_header_stdc = yes; then
30746   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30747   cat >conftest.$ac_ext <<_ACEOF
30748 /* confdefs.h.  */
30749 _ACEOF
30750 cat confdefs.h >>conftest.$ac_ext
30751 cat >>conftest.$ac_ext <<_ACEOF
30752 /* end confdefs.h.  */
30753 #include <stdlib.h>
30754
30755 _ACEOF
30756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30757   $EGREP "free" >/dev/null 2>&1; then
30758   :
30759 else
30760   ac_cv_header_stdc=no
30761 fi
30762 rm -f conftest*
30763
30764 fi
30765
30766 if test $ac_cv_header_stdc = yes; then
30767   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30768   if test "$cross_compiling" = yes; then
30769   :
30770 else
30771   cat >conftest.$ac_ext <<_ACEOF
30772 /* confdefs.h.  */
30773 _ACEOF
30774 cat confdefs.h >>conftest.$ac_ext
30775 cat >>conftest.$ac_ext <<_ACEOF
30776 /* end confdefs.h.  */
30777 #include <ctype.h>
30778 #include <stdlib.h>
30779 #if ((' ' & 0x0FF) == 0x020)
30780 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30781 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30782 #else
30783 # define ISLOWER(c) \
30784                    (('a' <= (c) && (c) <= 'i') \
30785                      || ('j' <= (c) && (c) <= 'r') \
30786                      || ('s' <= (c) && (c) <= 'z'))
30787 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30788 #endif
30789
30790 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30791 int
30792 main ()
30793 {
30794   int i;
30795   for (i = 0; i < 256; i++)
30796     if (XOR (islower (i), ISLOWER (i))
30797         || toupper (i) != TOUPPER (i))
30798       return 2;
30799   return 0;
30800 }
30801 _ACEOF
30802 rm -f conftest$ac_exeext
30803 if { (ac_try="$ac_link"
30804 case "(($ac_try" in
30805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30806   *) ac_try_echo=$ac_try;;
30807 esac
30808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30809   (eval "$ac_link") 2>&5
30810   ac_status=$?
30811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30813   { (case "(($ac_try" in
30814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815   *) ac_try_echo=$ac_try;;
30816 esac
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818   (eval "$ac_try") 2>&5
30819   ac_status=$?
30820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821   (exit $ac_status); }; }; then
30822   :
30823 else
30824   echo "$as_me: program exited with status $ac_status" >&5
30825 echo "$as_me: failed program was:" >&5
30826 sed 's/^/| /' conftest.$ac_ext >&5
30827
30828 ( exit $ac_status )
30829 ac_cv_header_stdc=no
30830 fi
30831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30832 fi
30833
30834
30835 fi
30836 fi
30837 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30838 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30839 if test $ac_cv_header_stdc = yes; then
30840
30841 cat >>confdefs.h <<\_ACEOF
30842 #define STDC_HEADERS 1
30843 _ACEOF
30844
30845 fi
30846
30847 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30848 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30849 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30850   echo $ECHO_N "(cached) $ECHO_C" >&6
30851 else
30852   cat >conftest.$ac_ext <<_ACEOF
30853 /* confdefs.h.  */
30854 _ACEOF
30855 cat confdefs.h >>conftest.$ac_ext
30856 cat >>conftest.$ac_ext <<_ACEOF
30857 /* end confdefs.h.  */
30858 #include <sys/types.h>
30859 int
30860 main ()
30861 {
30862 return makedev(0, 0);
30863   ;
30864   return 0;
30865 }
30866 _ACEOF
30867 rm -f conftest.$ac_objext conftest$ac_exeext
30868 if { (ac_try="$ac_link"
30869 case "(($ac_try" in
30870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871   *) ac_try_echo=$ac_try;;
30872 esac
30873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874   (eval "$ac_link") 2>conftest.er1
30875   ac_status=$?
30876   grep -v '^ *+' conftest.er1 >conftest.err
30877   rm -f conftest.er1
30878   cat conftest.err >&5
30879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880   (exit $ac_status); } && {
30881          test -z "$ac_c_werror_flag" ||
30882          test ! -s conftest.err
30883        } && test -s conftest$ac_exeext &&
30884        $as_test_x conftest$ac_exeext; then
30885   ac_cv_header_sys_types_h_makedev=yes
30886 else
30887   echo "$as_me: failed program was:" >&5
30888 sed 's/^/| /' conftest.$ac_ext >&5
30889
30890         ac_cv_header_sys_types_h_makedev=no
30891 fi
30892
30893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30894       conftest$ac_exeext conftest.$ac_ext
30895
30896 fi
30897 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30898 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30899
30900 if test $ac_cv_header_sys_types_h_makedev = no; then
30901 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30902   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30903 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30904 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30905   echo $ECHO_N "(cached) $ECHO_C" >&6
30906 fi
30907 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30908 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30909 else
30910   # Is the header compilable?
30911 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30912 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30913 cat >conftest.$ac_ext <<_ACEOF
30914 /* confdefs.h.  */
30915 _ACEOF
30916 cat confdefs.h >>conftest.$ac_ext
30917 cat >>conftest.$ac_ext <<_ACEOF
30918 /* end confdefs.h.  */
30919 $ac_includes_default
30920 #include <sys/mkdev.h>
30921 _ACEOF
30922 rm -f conftest.$ac_objext
30923 if { (ac_try="$ac_compile"
30924 case "(($ac_try" in
30925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926   *) ac_try_echo=$ac_try;;
30927 esac
30928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929   (eval "$ac_compile") 2>conftest.er1
30930   ac_status=$?
30931   grep -v '^ *+' conftest.er1 >conftest.err
30932   rm -f conftest.er1
30933   cat conftest.err >&5
30934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935   (exit $ac_status); } && {
30936          test -z "$ac_c_werror_flag" ||
30937          test ! -s conftest.err
30938        } && test -s conftest.$ac_objext; then
30939   ac_header_compiler=yes
30940 else
30941   echo "$as_me: failed program was:" >&5
30942 sed 's/^/| /' conftest.$ac_ext >&5
30943
30944         ac_header_compiler=no
30945 fi
30946
30947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30949 echo "${ECHO_T}$ac_header_compiler" >&6; }
30950
30951 # Is the header present?
30952 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30953 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30954 cat >conftest.$ac_ext <<_ACEOF
30955 /* confdefs.h.  */
30956 _ACEOF
30957 cat confdefs.h >>conftest.$ac_ext
30958 cat >>conftest.$ac_ext <<_ACEOF
30959 /* end confdefs.h.  */
30960 #include <sys/mkdev.h>
30961 _ACEOF
30962 if { (ac_try="$ac_cpp conftest.$ac_ext"
30963 case "(($ac_try" in
30964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30965   *) ac_try_echo=$ac_try;;
30966 esac
30967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30969   ac_status=$?
30970   grep -v '^ *+' conftest.er1 >conftest.err
30971   rm -f conftest.er1
30972   cat conftest.err >&5
30973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974   (exit $ac_status); } >/dev/null && {
30975          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30976          test ! -s conftest.err
30977        }; then
30978   ac_header_preproc=yes
30979 else
30980   echo "$as_me: failed program was:" >&5
30981 sed 's/^/| /' conftest.$ac_ext >&5
30982
30983   ac_header_preproc=no
30984 fi
30985
30986 rm -f conftest.err conftest.$ac_ext
30987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30988 echo "${ECHO_T}$ac_header_preproc" >&6; }
30989
30990 # So?  What about this header?
30991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30992   yes:no: )
30993     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30994 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30995     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30996 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30997     ac_header_preproc=yes
30998     ;;
30999   no:yes:* )
31000     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31001 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31002     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31003 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31004     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31005 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31006     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31007 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31008     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31009 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31010     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31011 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31012
31013     ;;
31014 esac
31015 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31016 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31017 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31018   echo $ECHO_N "(cached) $ECHO_C" >&6
31019 else
31020   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31021 fi
31022 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31023 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31024
31025 fi
31026 if test $ac_cv_header_sys_mkdev_h = yes; then
31027
31028 cat >>confdefs.h <<\_ACEOF
31029 #define MAJOR_IN_MKDEV 1
31030 _ACEOF
31031
31032 fi
31033
31034
31035
31036   if test $ac_cv_header_sys_mkdev_h = no; then
31037     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31038   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31039 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31040 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31041   echo $ECHO_N "(cached) $ECHO_C" >&6
31042 fi
31043 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31044 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31045 else
31046   # Is the header compilable?
31047 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31048 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31049 cat >conftest.$ac_ext <<_ACEOF
31050 /* confdefs.h.  */
31051 _ACEOF
31052 cat confdefs.h >>conftest.$ac_ext
31053 cat >>conftest.$ac_ext <<_ACEOF
31054 /* end confdefs.h.  */
31055 $ac_includes_default
31056 #include <sys/sysmacros.h>
31057 _ACEOF
31058 rm -f conftest.$ac_objext
31059 if { (ac_try="$ac_compile"
31060 case "(($ac_try" in
31061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062   *) ac_try_echo=$ac_try;;
31063 esac
31064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065   (eval "$ac_compile") 2>conftest.er1
31066   ac_status=$?
31067   grep -v '^ *+' conftest.er1 >conftest.err
31068   rm -f conftest.er1
31069   cat conftest.err >&5
31070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071   (exit $ac_status); } && {
31072          test -z "$ac_c_werror_flag" ||
31073          test ! -s conftest.err
31074        } && test -s conftest.$ac_objext; then
31075   ac_header_compiler=yes
31076 else
31077   echo "$as_me: failed program was:" >&5
31078 sed 's/^/| /' conftest.$ac_ext >&5
31079
31080         ac_header_compiler=no
31081 fi
31082
31083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31085 echo "${ECHO_T}$ac_header_compiler" >&6; }
31086
31087 # Is the header present?
31088 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31089 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31090 cat >conftest.$ac_ext <<_ACEOF
31091 /* confdefs.h.  */
31092 _ACEOF
31093 cat confdefs.h >>conftest.$ac_ext
31094 cat >>conftest.$ac_ext <<_ACEOF
31095 /* end confdefs.h.  */
31096 #include <sys/sysmacros.h>
31097 _ACEOF
31098 if { (ac_try="$ac_cpp conftest.$ac_ext"
31099 case "(($ac_try" in
31100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31101   *) ac_try_echo=$ac_try;;
31102 esac
31103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31105   ac_status=$?
31106   grep -v '^ *+' conftest.er1 >conftest.err
31107   rm -f conftest.er1
31108   cat conftest.err >&5
31109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110   (exit $ac_status); } >/dev/null && {
31111          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31112          test ! -s conftest.err
31113        }; then
31114   ac_header_preproc=yes
31115 else
31116   echo "$as_me: failed program was:" >&5
31117 sed 's/^/| /' conftest.$ac_ext >&5
31118
31119   ac_header_preproc=no
31120 fi
31121
31122 rm -f conftest.err conftest.$ac_ext
31123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31124 echo "${ECHO_T}$ac_header_preproc" >&6; }
31125
31126 # So?  What about this header?
31127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31128   yes:no: )
31129     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31130 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31131     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31132 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31133     ac_header_preproc=yes
31134     ;;
31135   no:yes:* )
31136     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31137 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31138     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31139 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31140     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31141 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31142     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31143 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31144     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31145 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31146     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31147 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31148
31149     ;;
31150 esac
31151 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31152 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31153 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31154   echo $ECHO_N "(cached) $ECHO_C" >&6
31155 else
31156   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31157 fi
31158 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31159 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31160
31161 fi
31162 if test $ac_cv_header_sys_sysmacros_h = yes; then
31163
31164 cat >>confdefs.h <<\_ACEOF
31165 #define MAJOR_IN_SYSMACROS 1
31166 _ACEOF
31167
31168 fi
31169
31170
31171   fi
31172 fi
31173
31174
31175
31176
31177
31178
31179 ac_header_dirent=no
31180 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31181   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31182 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31183 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31185   echo $ECHO_N "(cached) $ECHO_C" >&6
31186 else
31187   cat >conftest.$ac_ext <<_ACEOF
31188 /* confdefs.h.  */
31189 _ACEOF
31190 cat confdefs.h >>conftest.$ac_ext
31191 cat >>conftest.$ac_ext <<_ACEOF
31192 /* end confdefs.h.  */
31193 #include <sys/types.h>
31194 #include <$ac_hdr>
31195
31196 int
31197 main ()
31198 {
31199 if ((DIR *) 0)
31200 return 0;
31201   ;
31202   return 0;
31203 }
31204 _ACEOF
31205 rm -f conftest.$ac_objext
31206 if { (ac_try="$ac_compile"
31207 case "(($ac_try" in
31208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31209   *) ac_try_echo=$ac_try;;
31210 esac
31211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31212   (eval "$ac_compile") 2>conftest.er1
31213   ac_status=$?
31214   grep -v '^ *+' conftest.er1 >conftest.err
31215   rm -f conftest.er1
31216   cat conftest.err >&5
31217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218   (exit $ac_status); } && {
31219          test -z "$ac_c_werror_flag" ||
31220          test ! -s conftest.err
31221        } && test -s conftest.$ac_objext; then
31222   eval "$as_ac_Header=yes"
31223 else
31224   echo "$as_me: failed program was:" >&5
31225 sed 's/^/| /' conftest.$ac_ext >&5
31226
31227         eval "$as_ac_Header=no"
31228 fi
31229
31230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31231 fi
31232 ac_res=`eval echo '${'$as_ac_Header'}'`
31233                { echo "$as_me:$LINENO: result: $ac_res" >&5
31234 echo "${ECHO_T}$ac_res" >&6; }
31235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31236   cat >>confdefs.h <<_ACEOF
31237 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31238 _ACEOF
31239
31240 ac_header_dirent=$ac_hdr; break
31241 fi
31242
31243 done
31244 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31245 if test $ac_header_dirent = dirent.h; then
31246   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31247 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31248 if test "${ac_cv_search_opendir+set}" = set; then
31249   echo $ECHO_N "(cached) $ECHO_C" >&6
31250 else
31251   ac_func_search_save_LIBS=$LIBS
31252 cat >conftest.$ac_ext <<_ACEOF
31253 /* confdefs.h.  */
31254 _ACEOF
31255 cat confdefs.h >>conftest.$ac_ext
31256 cat >>conftest.$ac_ext <<_ACEOF
31257 /* end confdefs.h.  */
31258
31259 /* Override any GCC internal prototype to avoid an error.
31260    Use char because int might match the return type of a GCC
31261    builtin and then its argument prototype would still apply.  */
31262 #ifdef __cplusplus
31263 extern "C"
31264 #endif
31265 char opendir ();
31266 int
31267 main ()
31268 {
31269 return opendir ();
31270   ;
31271   return 0;
31272 }
31273 _ACEOF
31274 for ac_lib in '' dir; do
31275   if test -z "$ac_lib"; then
31276     ac_res="none required"
31277   else
31278     ac_res=-l$ac_lib
31279     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31280   fi
31281   rm -f conftest.$ac_objext conftest$ac_exeext
31282 if { (ac_try="$ac_link"
31283 case "(($ac_try" in
31284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31285   *) ac_try_echo=$ac_try;;
31286 esac
31287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31288   (eval "$ac_link") 2>conftest.er1
31289   ac_status=$?
31290   grep -v '^ *+' conftest.er1 >conftest.err
31291   rm -f conftest.er1
31292   cat conftest.err >&5
31293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294   (exit $ac_status); } && {
31295          test -z "$ac_c_werror_flag" ||
31296          test ! -s conftest.err
31297        } && test -s conftest$ac_exeext &&
31298        $as_test_x conftest$ac_exeext; then
31299   ac_cv_search_opendir=$ac_res
31300 else
31301   echo "$as_me: failed program was:" >&5
31302 sed 's/^/| /' conftest.$ac_ext >&5
31303
31304
31305 fi
31306
31307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31308       conftest$ac_exeext
31309   if test "${ac_cv_search_opendir+set}" = set; then
31310   break
31311 fi
31312 done
31313 if test "${ac_cv_search_opendir+set}" = set; then
31314   :
31315 else
31316   ac_cv_search_opendir=no
31317 fi
31318 rm conftest.$ac_ext
31319 LIBS=$ac_func_search_save_LIBS
31320 fi
31321 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31322 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31323 ac_res=$ac_cv_search_opendir
31324 if test "$ac_res" != no; then
31325   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31326
31327 fi
31328
31329 else
31330   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31331 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31332 if test "${ac_cv_search_opendir+set}" = set; then
31333   echo $ECHO_N "(cached) $ECHO_C" >&6
31334 else
31335   ac_func_search_save_LIBS=$LIBS
31336 cat >conftest.$ac_ext <<_ACEOF
31337 /* confdefs.h.  */
31338 _ACEOF
31339 cat confdefs.h >>conftest.$ac_ext
31340 cat >>conftest.$ac_ext <<_ACEOF
31341 /* end confdefs.h.  */
31342
31343 /* Override any GCC internal prototype to avoid an error.
31344    Use char because int might match the return type of a GCC
31345    builtin and then its argument prototype would still apply.  */
31346 #ifdef __cplusplus
31347 extern "C"
31348 #endif
31349 char opendir ();
31350 int
31351 main ()
31352 {
31353 return opendir ();
31354   ;
31355   return 0;
31356 }
31357 _ACEOF
31358 for ac_lib in '' x; do
31359   if test -z "$ac_lib"; then
31360     ac_res="none required"
31361   else
31362     ac_res=-l$ac_lib
31363     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31364   fi
31365   rm -f conftest.$ac_objext conftest$ac_exeext
31366 if { (ac_try="$ac_link"
31367 case "(($ac_try" in
31368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369   *) ac_try_echo=$ac_try;;
31370 esac
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372   (eval "$ac_link") 2>conftest.er1
31373   ac_status=$?
31374   grep -v '^ *+' conftest.er1 >conftest.err
31375   rm -f conftest.er1
31376   cat conftest.err >&5
31377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378   (exit $ac_status); } && {
31379          test -z "$ac_c_werror_flag" ||
31380          test ! -s conftest.err
31381        } && test -s conftest$ac_exeext &&
31382        $as_test_x conftest$ac_exeext; then
31383   ac_cv_search_opendir=$ac_res
31384 else
31385   echo "$as_me: failed program was:" >&5
31386 sed 's/^/| /' conftest.$ac_ext >&5
31387
31388
31389 fi
31390
31391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31392       conftest$ac_exeext
31393   if test "${ac_cv_search_opendir+set}" = set; then
31394   break
31395 fi
31396 done
31397 if test "${ac_cv_search_opendir+set}" = set; then
31398   :
31399 else
31400   ac_cv_search_opendir=no
31401 fi
31402 rm conftest.$ac_ext
31403 LIBS=$ac_func_search_save_LIBS
31404 fi
31405 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31406 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31407 ac_res=$ac_cv_search_opendir
31408 if test "$ac_res" != no; then
31409   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31410
31411 fi
31412
31413 fi
31414
31415 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31416 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31417 if test "${ac_cv_header_stat_broken+set}" = set; then
31418   echo $ECHO_N "(cached) $ECHO_C" >&6
31419 else
31420   cat >conftest.$ac_ext <<_ACEOF
31421 /* confdefs.h.  */
31422 _ACEOF
31423 cat confdefs.h >>conftest.$ac_ext
31424 cat >>conftest.$ac_ext <<_ACEOF
31425 /* end confdefs.h.  */
31426 #include <sys/types.h>
31427 #include <sys/stat.h>
31428
31429 #if defined S_ISBLK && defined S_IFDIR
31430 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31431 #endif
31432
31433 #if defined S_ISBLK && defined S_IFCHR
31434 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31435 #endif
31436
31437 #if defined S_ISLNK && defined S_IFREG
31438 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31439 #endif
31440
31441 #if defined S_ISSOCK && defined S_IFREG
31442 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31443 #endif
31444
31445 _ACEOF
31446 rm -f conftest.$ac_objext
31447 if { (ac_try="$ac_compile"
31448 case "(($ac_try" in
31449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31450   *) ac_try_echo=$ac_try;;
31451 esac
31452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31453   (eval "$ac_compile") 2>conftest.er1
31454   ac_status=$?
31455   grep -v '^ *+' conftest.er1 >conftest.err
31456   rm -f conftest.er1
31457   cat conftest.err >&5
31458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31459   (exit $ac_status); } && {
31460          test -z "$ac_c_werror_flag" ||
31461          test ! -s conftest.err
31462        } && test -s conftest.$ac_objext; then
31463   ac_cv_header_stat_broken=no
31464 else
31465   echo "$as_me: failed program was:" >&5
31466 sed 's/^/| /' conftest.$ac_ext >&5
31467
31468         ac_cv_header_stat_broken=yes
31469 fi
31470
31471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31472 fi
31473 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31474 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31475 if test $ac_cv_header_stat_broken = yes; then
31476
31477 cat >>confdefs.h <<\_ACEOF
31478 #define STAT_MACROS_BROKEN 1
31479 _ACEOF
31480
31481 fi
31482
31483 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31484 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31485 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31486   echo $ECHO_N "(cached) $ECHO_C" >&6
31487 else
31488   cat >conftest.$ac_ext <<_ACEOF
31489 /* confdefs.h.  */
31490 _ACEOF
31491 cat confdefs.h >>conftest.$ac_ext
31492 cat >>conftest.$ac_ext <<_ACEOF
31493 /* end confdefs.h.  */
31494 #include <sys/types.h>
31495 #include <sys/wait.h>
31496 #ifndef WEXITSTATUS
31497 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31498 #endif
31499 #ifndef WIFEXITED
31500 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31501 #endif
31502
31503 int
31504 main ()
31505 {
31506   int s;
31507   wait (&s);
31508   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31509   ;
31510   return 0;
31511 }
31512 _ACEOF
31513 rm -f conftest.$ac_objext
31514 if { (ac_try="$ac_compile"
31515 case "(($ac_try" in
31516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31517   *) ac_try_echo=$ac_try;;
31518 esac
31519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31520   (eval "$ac_compile") 2>conftest.er1
31521   ac_status=$?
31522   grep -v '^ *+' conftest.er1 >conftest.err
31523   rm -f conftest.er1
31524   cat conftest.err >&5
31525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526   (exit $ac_status); } && {
31527          test -z "$ac_c_werror_flag" ||
31528          test ! -s conftest.err
31529        } && test -s conftest.$ac_objext; then
31530   ac_cv_header_sys_wait_h=yes
31531 else
31532   echo "$as_me: failed program was:" >&5
31533 sed 's/^/| /' conftest.$ac_ext >&5
31534
31535         ac_cv_header_sys_wait_h=no
31536 fi
31537
31538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31539 fi
31540 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31541 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31542 if test $ac_cv_header_sys_wait_h = yes; then
31543
31544 cat >>confdefs.h <<\_ACEOF
31545 #define HAVE_SYS_WAIT_H 1
31546 _ACEOF
31547
31548 fi
31549
31550 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31551 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31552 if test "${ac_cv_header_time+set}" = set; then
31553   echo $ECHO_N "(cached) $ECHO_C" >&6
31554 else
31555   cat >conftest.$ac_ext <<_ACEOF
31556 /* confdefs.h.  */
31557 _ACEOF
31558 cat confdefs.h >>conftest.$ac_ext
31559 cat >>conftest.$ac_ext <<_ACEOF
31560 /* end confdefs.h.  */
31561 #include <sys/types.h>
31562 #include <sys/time.h>
31563 #include <time.h>
31564
31565 int
31566 main ()
31567 {
31568 if ((struct tm *) 0)
31569 return 0;
31570   ;
31571   return 0;
31572 }
31573 _ACEOF
31574 rm -f conftest.$ac_objext
31575 if { (ac_try="$ac_compile"
31576 case "(($ac_try" in
31577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31578   *) ac_try_echo=$ac_try;;
31579 esac
31580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31581   (eval "$ac_compile") 2>conftest.er1
31582   ac_status=$?
31583   grep -v '^ *+' conftest.er1 >conftest.err
31584   rm -f conftest.er1
31585   cat conftest.err >&5
31586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587   (exit $ac_status); } && {
31588          test -z "$ac_c_werror_flag" ||
31589          test ! -s conftest.err
31590        } && test -s conftest.$ac_objext; then
31591   ac_cv_header_time=yes
31592 else
31593   echo "$as_me: failed program was:" >&5
31594 sed 's/^/| /' conftest.$ac_ext >&5
31595
31596         ac_cv_header_time=no
31597 fi
31598
31599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31600 fi
31601 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31602 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31603 if test $ac_cv_header_time = yes; then
31604
31605 cat >>confdefs.h <<\_ACEOF
31606 #define TIME_WITH_SYS_TIME 1
31607 _ACEOF
31608
31609 fi
31610
31611 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31612 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31613 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31614   echo $ECHO_N "(cached) $ECHO_C" >&6
31615 else
31616   cat >conftest.$ac_ext <<_ACEOF
31617 /* confdefs.h.  */
31618 _ACEOF
31619 cat confdefs.h >>conftest.$ac_ext
31620 cat >>conftest.$ac_ext <<_ACEOF
31621 /* end confdefs.h.  */
31622 $ac_includes_default
31623 int
31624 main ()
31625 {
31626 static struct stat ac_aggr;
31627 if (ac_aggr.st_blksize)
31628 return 0;
31629   ;
31630   return 0;
31631 }
31632 _ACEOF
31633 rm -f conftest.$ac_objext
31634 if { (ac_try="$ac_compile"
31635 case "(($ac_try" in
31636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31637   *) ac_try_echo=$ac_try;;
31638 esac
31639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31640   (eval "$ac_compile") 2>conftest.er1
31641   ac_status=$?
31642   grep -v '^ *+' conftest.er1 >conftest.err
31643   rm -f conftest.er1
31644   cat conftest.err >&5
31645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646   (exit $ac_status); } && {
31647          test -z "$ac_c_werror_flag" ||
31648          test ! -s conftest.err
31649        } && test -s conftest.$ac_objext; then
31650   ac_cv_member_struct_stat_st_blksize=yes
31651 else
31652   echo "$as_me: failed program was:" >&5
31653 sed 's/^/| /' conftest.$ac_ext >&5
31654
31655         cat >conftest.$ac_ext <<_ACEOF
31656 /* confdefs.h.  */
31657 _ACEOF
31658 cat confdefs.h >>conftest.$ac_ext
31659 cat >>conftest.$ac_ext <<_ACEOF
31660 /* end confdefs.h.  */
31661 $ac_includes_default
31662 int
31663 main ()
31664 {
31665 static struct stat ac_aggr;
31666 if (sizeof ac_aggr.st_blksize)
31667 return 0;
31668   ;
31669   return 0;
31670 }
31671 _ACEOF
31672 rm -f conftest.$ac_objext
31673 if { (ac_try="$ac_compile"
31674 case "(($ac_try" in
31675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676   *) ac_try_echo=$ac_try;;
31677 esac
31678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679   (eval "$ac_compile") 2>conftest.er1
31680   ac_status=$?
31681   grep -v '^ *+' conftest.er1 >conftest.err
31682   rm -f conftest.er1
31683   cat conftest.err >&5
31684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685   (exit $ac_status); } && {
31686          test -z "$ac_c_werror_flag" ||
31687          test ! -s conftest.err
31688        } && test -s conftest.$ac_objext; then
31689   ac_cv_member_struct_stat_st_blksize=yes
31690 else
31691   echo "$as_me: failed program was:" >&5
31692 sed 's/^/| /' conftest.$ac_ext >&5
31693
31694         ac_cv_member_struct_stat_st_blksize=no
31695 fi
31696
31697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31698 fi
31699
31700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31701 fi
31702 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31703 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31704 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31705
31706 cat >>confdefs.h <<_ACEOF
31707 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31708 _ACEOF
31709
31710
31711 cat >>confdefs.h <<\_ACEOF
31712 #define HAVE_ST_BLKSIZE 1
31713 _ACEOF
31714
31715 fi
31716
31717
31718 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31719 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31720 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31721   echo $ECHO_N "(cached) $ECHO_C" >&6
31722 else
31723   cat >conftest.$ac_ext <<_ACEOF
31724 /* confdefs.h.  */
31725 _ACEOF
31726 cat confdefs.h >>conftest.$ac_ext
31727 cat >>conftest.$ac_ext <<_ACEOF
31728 /* end confdefs.h.  */
31729 $ac_includes_default
31730 int
31731 main ()
31732 {
31733 static struct stat ac_aggr;
31734 if (ac_aggr.st_blocks)
31735 return 0;
31736   ;
31737   return 0;
31738 }
31739 _ACEOF
31740 rm -f conftest.$ac_objext
31741 if { (ac_try="$ac_compile"
31742 case "(($ac_try" in
31743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31744   *) ac_try_echo=$ac_try;;
31745 esac
31746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31747   (eval "$ac_compile") 2>conftest.er1
31748   ac_status=$?
31749   grep -v '^ *+' conftest.er1 >conftest.err
31750   rm -f conftest.er1
31751   cat conftest.err >&5
31752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753   (exit $ac_status); } && {
31754          test -z "$ac_c_werror_flag" ||
31755          test ! -s conftest.err
31756        } && test -s conftest.$ac_objext; then
31757   ac_cv_member_struct_stat_st_blocks=yes
31758 else
31759   echo "$as_me: failed program was:" >&5
31760 sed 's/^/| /' conftest.$ac_ext >&5
31761
31762         cat >conftest.$ac_ext <<_ACEOF
31763 /* confdefs.h.  */
31764 _ACEOF
31765 cat confdefs.h >>conftest.$ac_ext
31766 cat >>conftest.$ac_ext <<_ACEOF
31767 /* end confdefs.h.  */
31768 $ac_includes_default
31769 int
31770 main ()
31771 {
31772 static struct stat ac_aggr;
31773 if (sizeof ac_aggr.st_blocks)
31774 return 0;
31775   ;
31776   return 0;
31777 }
31778 _ACEOF
31779 rm -f conftest.$ac_objext
31780 if { (ac_try="$ac_compile"
31781 case "(($ac_try" in
31782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783   *) ac_try_echo=$ac_try;;
31784 esac
31785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786   (eval "$ac_compile") 2>conftest.er1
31787   ac_status=$?
31788   grep -v '^ *+' conftest.er1 >conftest.err
31789   rm -f conftest.er1
31790   cat conftest.err >&5
31791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31792   (exit $ac_status); } && {
31793          test -z "$ac_c_werror_flag" ||
31794          test ! -s conftest.err
31795        } && test -s conftest.$ac_objext; then
31796   ac_cv_member_struct_stat_st_blocks=yes
31797 else
31798   echo "$as_me: failed program was:" >&5
31799 sed 's/^/| /' conftest.$ac_ext >&5
31800
31801         ac_cv_member_struct_stat_st_blocks=no
31802 fi
31803
31804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31805 fi
31806
31807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31808 fi
31809 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31810 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31811 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31812
31813 cat >>confdefs.h <<_ACEOF
31814 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31815 _ACEOF
31816
31817
31818 cat >>confdefs.h <<\_ACEOF
31819 #define HAVE_ST_BLOCKS 1
31820 _ACEOF
31821
31822 else
31823   case " $LIBOBJS " in
31824   *" fileblocks.$ac_objext "* ) ;;
31825   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31826  ;;
31827 esac
31828
31829 fi
31830
31831
31832 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31833 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31834 if test "${ac_cv_struct_tm+set}" = set; then
31835   echo $ECHO_N "(cached) $ECHO_C" >&6
31836 else
31837   cat >conftest.$ac_ext <<_ACEOF
31838 /* confdefs.h.  */
31839 _ACEOF
31840 cat confdefs.h >>conftest.$ac_ext
31841 cat >>conftest.$ac_ext <<_ACEOF
31842 /* end confdefs.h.  */
31843 #include <sys/types.h>
31844 #include <time.h>
31845
31846 int
31847 main ()
31848 {
31849 struct tm tm;
31850                                      int *p = &tm.tm_sec;
31851                                      return !p;
31852   ;
31853   return 0;
31854 }
31855 _ACEOF
31856 rm -f conftest.$ac_objext
31857 if { (ac_try="$ac_compile"
31858 case "(($ac_try" in
31859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31860   *) ac_try_echo=$ac_try;;
31861 esac
31862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31863   (eval "$ac_compile") 2>conftest.er1
31864   ac_status=$?
31865   grep -v '^ *+' conftest.er1 >conftest.err
31866   rm -f conftest.er1
31867   cat conftest.err >&5
31868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869   (exit $ac_status); } && {
31870          test -z "$ac_c_werror_flag" ||
31871          test ! -s conftest.err
31872        } && test -s conftest.$ac_objext; then
31873   ac_cv_struct_tm=time.h
31874 else
31875   echo "$as_me: failed program was:" >&5
31876 sed 's/^/| /' conftest.$ac_ext >&5
31877
31878         ac_cv_struct_tm=sys/time.h
31879 fi
31880
31881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31882 fi
31883 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31884 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31885 if test $ac_cv_struct_tm = sys/time.h; then
31886
31887 cat >>confdefs.h <<\_ACEOF
31888 #define TM_IN_SYS_TIME 1
31889 _ACEOF
31890
31891 fi
31892
31893 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31894 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31895 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31896   echo $ECHO_N "(cached) $ECHO_C" >&6
31897 else
31898   cat >conftest.$ac_ext <<_ACEOF
31899 /* confdefs.h.  */
31900 _ACEOF
31901 cat confdefs.h >>conftest.$ac_ext
31902 cat >>conftest.$ac_ext <<_ACEOF
31903 /* end confdefs.h.  */
31904 #include <sys/types.h>
31905 #include <$ac_cv_struct_tm>
31906
31907
31908 int
31909 main ()
31910 {
31911 static struct tm ac_aggr;
31912 if (ac_aggr.tm_zone)
31913 return 0;
31914   ;
31915   return 0;
31916 }
31917 _ACEOF
31918 rm -f conftest.$ac_objext
31919 if { (ac_try="$ac_compile"
31920 case "(($ac_try" in
31921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31922   *) ac_try_echo=$ac_try;;
31923 esac
31924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31925   (eval "$ac_compile") 2>conftest.er1
31926   ac_status=$?
31927   grep -v '^ *+' conftest.er1 >conftest.err
31928   rm -f conftest.er1
31929   cat conftest.err >&5
31930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931   (exit $ac_status); } && {
31932          test -z "$ac_c_werror_flag" ||
31933          test ! -s conftest.err
31934        } && test -s conftest.$ac_objext; then
31935   ac_cv_member_struct_tm_tm_zone=yes
31936 else
31937   echo "$as_me: failed program was:" >&5
31938 sed 's/^/| /' conftest.$ac_ext >&5
31939
31940         cat >conftest.$ac_ext <<_ACEOF
31941 /* confdefs.h.  */
31942 _ACEOF
31943 cat confdefs.h >>conftest.$ac_ext
31944 cat >>conftest.$ac_ext <<_ACEOF
31945 /* end confdefs.h.  */
31946 #include <sys/types.h>
31947 #include <$ac_cv_struct_tm>
31948
31949
31950 int
31951 main ()
31952 {
31953 static struct tm ac_aggr;
31954 if (sizeof ac_aggr.tm_zone)
31955 return 0;
31956   ;
31957   return 0;
31958 }
31959 _ACEOF
31960 rm -f conftest.$ac_objext
31961 if { (ac_try="$ac_compile"
31962 case "(($ac_try" in
31963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31964   *) ac_try_echo=$ac_try;;
31965 esac
31966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31967   (eval "$ac_compile") 2>conftest.er1
31968   ac_status=$?
31969   grep -v '^ *+' conftest.er1 >conftest.err
31970   rm -f conftest.er1
31971   cat conftest.err >&5
31972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973   (exit $ac_status); } && {
31974          test -z "$ac_c_werror_flag" ||
31975          test ! -s conftest.err
31976        } && test -s conftest.$ac_objext; then
31977   ac_cv_member_struct_tm_tm_zone=yes
31978 else
31979   echo "$as_me: failed program was:" >&5
31980 sed 's/^/| /' conftest.$ac_ext >&5
31981
31982         ac_cv_member_struct_tm_tm_zone=no
31983 fi
31984
31985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31986 fi
31987
31988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31989 fi
31990 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31991 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31992 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31993
31994 cat >>confdefs.h <<_ACEOF
31995 #define HAVE_STRUCT_TM_TM_ZONE 1
31996 _ACEOF
31997
31998
31999 fi
32000
32001 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32002
32003 cat >>confdefs.h <<\_ACEOF
32004 #define HAVE_TM_ZONE 1
32005 _ACEOF
32006
32007 else
32008   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32009 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32010 if test "${ac_cv_have_decl_tzname+set}" = set; then
32011   echo $ECHO_N "(cached) $ECHO_C" >&6
32012 else
32013   cat >conftest.$ac_ext <<_ACEOF
32014 /* confdefs.h.  */
32015 _ACEOF
32016 cat confdefs.h >>conftest.$ac_ext
32017 cat >>conftest.$ac_ext <<_ACEOF
32018 /* end confdefs.h.  */
32019 #include <time.h>
32020
32021 int
32022 main ()
32023 {
32024 #ifndef tzname
32025   (void) tzname;
32026 #endif
32027
32028   ;
32029   return 0;
32030 }
32031 _ACEOF
32032 rm -f conftest.$ac_objext
32033 if { (ac_try="$ac_compile"
32034 case "(($ac_try" in
32035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036   *) ac_try_echo=$ac_try;;
32037 esac
32038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039   (eval "$ac_compile") 2>conftest.er1
32040   ac_status=$?
32041   grep -v '^ *+' conftest.er1 >conftest.err
32042   rm -f conftest.er1
32043   cat conftest.err >&5
32044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045   (exit $ac_status); } && {
32046          test -z "$ac_c_werror_flag" ||
32047          test ! -s conftest.err
32048        } && test -s conftest.$ac_objext; then
32049   ac_cv_have_decl_tzname=yes
32050 else
32051   echo "$as_me: failed program was:" >&5
32052 sed 's/^/| /' conftest.$ac_ext >&5
32053
32054         ac_cv_have_decl_tzname=no
32055 fi
32056
32057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32058 fi
32059 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32060 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32061 if test $ac_cv_have_decl_tzname = yes; then
32062
32063 cat >>confdefs.h <<_ACEOF
32064 #define HAVE_DECL_TZNAME 1
32065 _ACEOF
32066
32067
32068 else
32069   cat >>confdefs.h <<_ACEOF
32070 #define HAVE_DECL_TZNAME 0
32071 _ACEOF
32072
32073
32074 fi
32075
32076
32077   { echo "$as_me:$LINENO: checking for tzname" >&5
32078 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32079 if test "${ac_cv_var_tzname+set}" = set; then
32080   echo $ECHO_N "(cached) $ECHO_C" >&6
32081 else
32082   cat >conftest.$ac_ext <<_ACEOF
32083 /* confdefs.h.  */
32084 _ACEOF
32085 cat confdefs.h >>conftest.$ac_ext
32086 cat >>conftest.$ac_ext <<_ACEOF
32087 /* end confdefs.h.  */
32088 #include <time.h>
32089 #if !HAVE_DECL_TZNAME
32090 extern char *tzname[];
32091 #endif
32092
32093 int
32094 main ()
32095 {
32096 return tzname[0][0];
32097   ;
32098   return 0;
32099 }
32100 _ACEOF
32101 rm -f conftest.$ac_objext conftest$ac_exeext
32102 if { (ac_try="$ac_link"
32103 case "(($ac_try" in
32104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105   *) ac_try_echo=$ac_try;;
32106 esac
32107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108   (eval "$ac_link") 2>conftest.er1
32109   ac_status=$?
32110   grep -v '^ *+' conftest.er1 >conftest.err
32111   rm -f conftest.er1
32112   cat conftest.err >&5
32113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114   (exit $ac_status); } && {
32115          test -z "$ac_c_werror_flag" ||
32116          test ! -s conftest.err
32117        } && test -s conftest$ac_exeext &&
32118        $as_test_x conftest$ac_exeext; then
32119   ac_cv_var_tzname=yes
32120 else
32121   echo "$as_me: failed program was:" >&5
32122 sed 's/^/| /' conftest.$ac_ext >&5
32123
32124         ac_cv_var_tzname=no
32125 fi
32126
32127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32128       conftest$ac_exeext conftest.$ac_ext
32129 fi
32130 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32131 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32132   if test $ac_cv_var_tzname = yes; then
32133
32134 cat >>confdefs.h <<\_ACEOF
32135 #define HAVE_TZNAME 1
32136 _ACEOF
32137
32138   fi
32139 fi
32140
32141
32142 { echo "$as_me:$LINENO: checking for utime.h" >&5
32143 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32144 if test "${ba_cv_header_utime_h+set}" = set; then
32145   echo $ECHO_N "(cached) $ECHO_C" >&6
32146 else
32147
32148        cat >conftest.$ac_ext <<_ACEOF
32149 /* confdefs.h.  */
32150 _ACEOF
32151 cat confdefs.h >>conftest.$ac_ext
32152 cat >>conftest.$ac_ext <<_ACEOF
32153 /* end confdefs.h.  */
32154
32155               #include <sys/types.h>
32156               #include <utime.h>
32157
32158 int
32159 main ()
32160 {
32161
32162               struct utimbuf foo
32163
32164   ;
32165   return 0;
32166 }
32167 _ACEOF
32168 rm -f conftest.$ac_objext
32169 if { (ac_try="$ac_compile"
32170 case "(($ac_try" in
32171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172   *) ac_try_echo=$ac_try;;
32173 esac
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175   (eval "$ac_compile") 2>conftest.er1
32176   ac_status=$?
32177   grep -v '^ *+' conftest.er1 >conftest.err
32178   rm -f conftest.er1
32179   cat conftest.err >&5
32180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181   (exit $ac_status); } && {
32182          test -z "$ac_c_werror_flag" ||
32183          test ! -s conftest.err
32184        } && test -s conftest.$ac_objext; then
32185
32186               ba_cv_header_utime_h=yes
32187
32188 else
32189   echo "$as_me: failed program was:" >&5
32190 sed 's/^/| /' conftest.$ac_ext >&5
32191
32192
32193               ba_cv_header_utime_h=no
32194
32195
32196 fi
32197
32198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32199
32200
32201 fi
32202 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32203 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32204 test $ba_cv_header_utime_h = yes &&
32205 cat >>confdefs.h <<\_ACEOF
32206 #define HAVE_UTIME_H 1
32207 _ACEOF
32208
32209
32210 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32211 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32212 if test "${ba_cv_header_socklen_t+set}" = set; then
32213   echo $ECHO_N "(cached) $ECHO_C" >&6
32214 else
32215
32216        cat >conftest.$ac_ext <<_ACEOF
32217 /* confdefs.h.  */
32218 _ACEOF
32219 cat confdefs.h >>conftest.$ac_ext
32220 cat >>conftest.$ac_ext <<_ACEOF
32221 /* end confdefs.h.  */
32222
32223               #include <sys/types.h>
32224               #include <sys/socket.h>
32225
32226 int
32227 main ()
32228 {
32229
32230               socklen_t x
32231
32232   ;
32233   return 0;
32234 }
32235 _ACEOF
32236 rm -f conftest.$ac_objext
32237 if { (ac_try="$ac_compile"
32238 case "(($ac_try" in
32239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32240   *) ac_try_echo=$ac_try;;
32241 esac
32242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32243   (eval "$ac_compile") 2>conftest.er1
32244   ac_status=$?
32245   grep -v '^ *+' conftest.er1 >conftest.err
32246   rm -f conftest.er1
32247   cat conftest.err >&5
32248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249   (exit $ac_status); } && {
32250          test -z "$ac_c_werror_flag" ||
32251          test ! -s conftest.err
32252        } && test -s conftest.$ac_objext; then
32253
32254              ba_cv_header_socklen_t=yes
32255
32256 else
32257   echo "$as_me: failed program was:" >&5
32258 sed 's/^/| /' conftest.$ac_ext >&5
32259
32260
32261              ba_cv_header_socklen_t=no
32262
32263
32264 fi
32265
32266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32267
32268
32269 fi
32270 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32271 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32272 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32273 #define HAVE_SOCKLEN_T 1
32274 _ACEOF
32275
32276
32277 { echo "$as_me:$LINENO: checking for bigendian" >&5
32278 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32279 if test "${ba_cv_bigendian+set}" = set; then
32280   echo $ECHO_N "(cached) $ECHO_C" >&6
32281 else
32282
32283        if test "$cross_compiling" = yes; then
32284
32285              ba_cv_bigendian=no
32286
32287
32288 else
32289   cat >conftest.$ac_ext <<_ACEOF
32290 /* confdefs.h.  */
32291 _ACEOF
32292 cat confdefs.h >>conftest.$ac_ext
32293 cat >>conftest.$ac_ext <<_ACEOF
32294 /* end confdefs.h.  */
32295
32296               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32297
32298 _ACEOF
32299 rm -f conftest$ac_exeext
32300 if { (ac_try="$ac_link"
32301 case "(($ac_try" in
32302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303   *) ac_try_echo=$ac_try;;
32304 esac
32305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306   (eval "$ac_link") 2>&5
32307   ac_status=$?
32308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32310   { (case "(($ac_try" in
32311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312   *) ac_try_echo=$ac_try;;
32313 esac
32314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32315   (eval "$ac_try") 2>&5
32316   ac_status=$?
32317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318   (exit $ac_status); }; }; then
32319
32320              ba_cv_bigendian=yes
32321
32322 else
32323   echo "$as_me: program exited with status $ac_status" >&5
32324 echo "$as_me: failed program was:" >&5
32325 sed 's/^/| /' conftest.$ac_ext >&5
32326
32327 ( exit $ac_status )
32328
32329              ba_cv_bigendian=no
32330
32331 fi
32332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32333 fi
32334
32335
32336
32337
32338 fi
32339 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32340 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32341 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32342 #define HAVE_BIGENDIAN 1
32343 _ACEOF
32344
32345
32346 ac_ext=cpp
32347 ac_cpp='$CXXCPP $CPPFLAGS'
32348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32351
32352 { echo "$as_me:$LINENO: checking for typeof" >&5
32353 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32354 if test "${ba_cv_have_typeof+set}" = set; then
32355   echo $ECHO_N "(cached) $ECHO_C" >&6
32356 else
32357
32358        if test "$cross_compiling" = yes; then
32359
32360               ba_cv_have_typeof=no
32361
32362
32363 else
32364   cat >conftest.$ac_ext <<_ACEOF
32365 /* confdefs.h.  */
32366 _ACEOF
32367 cat confdefs.h >>conftest.$ac_ext
32368 cat >>conftest.$ac_ext <<_ACEOF
32369 /* end confdefs.h.  */
32370
32371               main(){char *a = 0; a = (typeof a)a;}
32372
32373 _ACEOF
32374 rm -f conftest$ac_exeext
32375 if { (ac_try="$ac_link"
32376 case "(($ac_try" in
32377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32378   *) ac_try_echo=$ac_try;;
32379 esac
32380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32381   (eval "$ac_link") 2>&5
32382   ac_status=$?
32383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32385   { (case "(($ac_try" in
32386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32387   *) ac_try_echo=$ac_try;;
32388 esac
32389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32390   (eval "$ac_try") 2>&5
32391   ac_status=$?
32392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393   (exit $ac_status); }; }; then
32394
32395               ba_cv_have_typeof=yes
32396
32397 else
32398   echo "$as_me: program exited with status $ac_status" >&5
32399 echo "$as_me: failed program was:" >&5
32400 sed 's/^/| /' conftest.$ac_ext >&5
32401
32402 ( exit $ac_status )
32403
32404               ba_cv_have_typeof=no
32405
32406 fi
32407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32408 fi
32409
32410
32411
32412
32413 fi
32414 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32415 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32416 test $ba_cv_have_typeof = yes &&
32417 cat >>confdefs.h <<\_ACEOF
32418 #define HAVE_TYPEOF 1
32419 _ACEOF
32420
32421 ac_ext=c
32422 ac_cpp='$CPP $CPPFLAGS'
32423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32426
32427
32428 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32429 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32430 if test "${ac_cv_c_const+set}" = set; then
32431   echo $ECHO_N "(cached) $ECHO_C" >&6
32432 else
32433   cat >conftest.$ac_ext <<_ACEOF
32434 /* confdefs.h.  */
32435 _ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h.  */
32439
32440 int
32441 main ()
32442 {
32443 /* FIXME: Include the comments suggested by Paul. */
32444 #ifndef __cplusplus
32445   /* Ultrix mips cc rejects this.  */
32446   typedef int charset[2];
32447   const charset cs;
32448   /* SunOS 4.1.1 cc rejects this.  */
32449   char const *const *pcpcc;
32450   char **ppc;
32451   /* NEC SVR4.0.2 mips cc rejects this.  */
32452   struct point {int x, y;};
32453   static struct point const zero = {0,0};
32454   /* AIX XL C 1.02.0.0 rejects this.
32455      It does not let you subtract one const X* pointer from another in
32456      an arm of an if-expression whose if-part is not a constant
32457      expression */
32458   const char *g = "string";
32459   pcpcc = &g + (g ? g-g : 0);
32460   /* HPUX 7.0 cc rejects these. */
32461   ++pcpcc;
32462   ppc = (char**) pcpcc;
32463   pcpcc = (char const *const *) ppc;
32464   { /* SCO 3.2v4 cc rejects this.  */
32465     char *t;
32466     char const *s = 0 ? (char *) 0 : (char const *) 0;
32467
32468     *t++ = 0;
32469     if (s) return 0;
32470   }
32471   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32472     int x[] = {25, 17};
32473     const int *foo = &x[0];
32474     ++foo;
32475   }
32476   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32477     typedef const int *iptr;
32478     iptr p = 0;
32479     ++p;
32480   }
32481   { /* AIX XL C 1.02.0.0 rejects this saying
32482        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32483     struct s { int j; const int *ap[3]; };
32484     struct s *b; b->j = 5;
32485   }
32486   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32487     const int foo = 10;
32488     if (!foo) return 0;
32489   }
32490   return !cs[0] && !zero.x;
32491 #endif
32492
32493   ;
32494   return 0;
32495 }
32496 _ACEOF
32497 rm -f conftest.$ac_objext
32498 if { (ac_try="$ac_compile"
32499 case "(($ac_try" in
32500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32501   *) ac_try_echo=$ac_try;;
32502 esac
32503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32504   (eval "$ac_compile") 2>conftest.er1
32505   ac_status=$?
32506   grep -v '^ *+' conftest.er1 >conftest.err
32507   rm -f conftest.er1
32508   cat conftest.err >&5
32509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510   (exit $ac_status); } && {
32511          test -z "$ac_c_werror_flag" ||
32512          test ! -s conftest.err
32513        } && test -s conftest.$ac_objext; then
32514   ac_cv_c_const=yes
32515 else
32516   echo "$as_me: failed program was:" >&5
32517 sed 's/^/| /' conftest.$ac_ext >&5
32518
32519         ac_cv_c_const=no
32520 fi
32521
32522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32523 fi
32524 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32525 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32526 if test $ac_cv_c_const = no; then
32527
32528 cat >>confdefs.h <<\_ACEOF
32529 #define const
32530 _ACEOF
32531
32532 fi
32533
32534
32535 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32536 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32537 fstype=no
32538 # The order of these tests is important.
32539 cat >conftest.$ac_ext <<_ACEOF
32540 /* confdefs.h.  */
32541 _ACEOF
32542 cat confdefs.h >>conftest.$ac_ext
32543 cat >>conftest.$ac_ext <<_ACEOF
32544 /* end confdefs.h.  */
32545
32546        #include <sys/statvfs.h>
32547        #include <sys/fstyp.h>
32548
32549 _ACEOF
32550 if { (ac_try="$ac_cpp conftest.$ac_ext"
32551 case "(($ac_try" in
32552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32553   *) ac_try_echo=$ac_try;;
32554 esac
32555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32557   ac_status=$?
32558   grep -v '^ *+' conftest.er1 >conftest.err
32559   rm -f conftest.er1
32560   cat conftest.err >&5
32561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562   (exit $ac_status); } >/dev/null && {
32563          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32564          test ! -s conftest.err
32565        }; then
32566   cat >>confdefs.h <<\_ACEOF
32567 #define FSTYPE_STATVFS 1
32568 _ACEOF
32569  fstype=SVR4
32570
32571 else
32572   echo "$as_me: failed program was:" >&5
32573 sed 's/^/| /' conftest.$ac_ext >&5
32574
32575
32576 fi
32577
32578 rm -f conftest.err conftest.$ac_ext
32579 if test $fstype = no; then
32580    cat >conftest.$ac_ext <<_ACEOF
32581 /* confdefs.h.  */
32582 _ACEOF
32583 cat confdefs.h >>conftest.$ac_ext
32584 cat >>conftest.$ac_ext <<_ACEOF
32585 /* end confdefs.h.  */
32586
32587           #include <sys/statfs.h>
32588           #include <sys/fstyp.h>
32589
32590 _ACEOF
32591 if { (ac_try="$ac_cpp conftest.$ac_ext"
32592 case "(($ac_try" in
32593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32594   *) ac_try_echo=$ac_try;;
32595 esac
32596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32597   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32598   ac_status=$?
32599   grep -v '^ *+' conftest.er1 >conftest.err
32600   rm -f conftest.er1
32601   cat conftest.err >&5
32602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603   (exit $ac_status); } >/dev/null && {
32604          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32605          test ! -s conftest.err
32606        }; then
32607   cat >>confdefs.h <<\_ACEOF
32608 #define FSTYPE_USG_STATFS 1
32609 _ACEOF
32610  fstype=SVR3
32611
32612 else
32613   echo "$as_me: failed program was:" >&5
32614 sed 's/^/| /' conftest.$ac_ext >&5
32615
32616
32617 fi
32618
32619 rm -f conftest.err conftest.$ac_ext
32620 fi
32621 if test $fstype = no; then
32622    cat >conftest.$ac_ext <<_ACEOF
32623 /* confdefs.h.  */
32624 _ACEOF
32625 cat confdefs.h >>conftest.$ac_ext
32626 cat >>conftest.$ac_ext <<_ACEOF
32627 /* end confdefs.h.  */
32628
32629           #include <sys/statfs.h>
32630           #include <sys/vmount.h>
32631
32632 _ACEOF
32633 if { (ac_try="$ac_cpp conftest.$ac_ext"
32634 case "(($ac_try" in
32635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32636   *) ac_try_echo=$ac_try;;
32637 esac
32638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32640   ac_status=$?
32641   grep -v '^ *+' conftest.er1 >conftest.err
32642   rm -f conftest.er1
32643   cat conftest.err >&5
32644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645   (exit $ac_status); } >/dev/null && {
32646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32647          test ! -s conftest.err
32648        }; then
32649   cat >>confdefs.h <<\_ACEOF
32650 #define FSTYPE_AIX_STATFS 1
32651 _ACEOF
32652  fstype=AIX
32653
32654 else
32655   echo "$as_me: failed program was:" >&5
32656 sed 's/^/| /' conftest.$ac_ext >&5
32657
32658
32659 fi
32660
32661 rm -f conftest.err conftest.$ac_ext
32662 fi
32663 if test $fstype = no; then
32664    cat >conftest.$ac_ext <<_ACEOF
32665 /* confdefs.h.  */
32666 _ACEOF
32667 cat confdefs.h >>conftest.$ac_ext
32668 cat >>conftest.$ac_ext <<_ACEOF
32669 /* end confdefs.h.  */
32670
32671           #include <mntent.h>
32672
32673 _ACEOF
32674 if { (ac_try="$ac_cpp conftest.$ac_ext"
32675 case "(($ac_try" in
32676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32677   *) ac_try_echo=$ac_try;;
32678 esac
32679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32681   ac_status=$?
32682   grep -v '^ *+' conftest.er1 >conftest.err
32683   rm -f conftest.er1
32684   cat conftest.err >&5
32685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686   (exit $ac_status); } >/dev/null && {
32687          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32688          test ! -s conftest.err
32689        }; then
32690   cat >>confdefs.h <<\_ACEOF
32691 #define FSTYPE_MNTENT 1
32692 _ACEOF
32693  fstype=4.3BSD
32694
32695 else
32696   echo "$as_me: failed program was:" >&5
32697 sed 's/^/| /' conftest.$ac_ext >&5
32698
32699
32700 fi
32701
32702 rm -f conftest.err conftest.$ac_ext
32703 fi
32704 if test $fstype = no; then
32705    cat >conftest.$ac_ext <<_ACEOF
32706 /* confdefs.h.  */
32707 _ACEOF
32708 cat confdefs.h >>conftest.$ac_ext
32709 cat >>conftest.$ac_ext <<_ACEOF
32710 /* end confdefs.h.  */
32711 #include <sys/mount.h>
32712
32713 _ACEOF
32714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32715   $EGREP "f_type;" >/dev/null 2>&1; then
32716   cat >>confdefs.h <<\_ACEOF
32717 #define FSTYPE_STATFS 1
32718 _ACEOF
32719  fstype=4.4BSD/OSF1
32720 fi
32721 rm -f conftest*
32722
32723 fi
32724 if test $fstype = no; then
32725    cat >conftest.$ac_ext <<_ACEOF
32726 /* confdefs.h.  */
32727 _ACEOF
32728 cat confdefs.h >>conftest.$ac_ext
32729 cat >>conftest.$ac_ext <<_ACEOF
32730 /* end confdefs.h.  */
32731
32732           #include <sys/mount.h>
32733           #include <sys/fs_types.h>
32734
32735 _ACEOF
32736 if { (ac_try="$ac_cpp conftest.$ac_ext"
32737 case "(($ac_try" in
32738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32739   *) ac_try_echo=$ac_try;;
32740 esac
32741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32743   ac_status=$?
32744   grep -v '^ *+' conftest.er1 >conftest.err
32745   rm -f conftest.er1
32746   cat conftest.err >&5
32747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748   (exit $ac_status); } >/dev/null && {
32749          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32750          test ! -s conftest.err
32751        }; then
32752   cat >>confdefs.h <<\_ACEOF
32753 #define FSTYPE_GETMNT 1
32754 _ACEOF
32755  fstype=Ultrix
32756
32757 else
32758   echo "$as_me: failed program was:" >&5
32759 sed 's/^/| /' conftest.$ac_ext >&5
32760
32761
32762 fi
32763
32764 rm -f conftest.err conftest.$ac_ext
32765 fi
32766 { echo "$as_me:$LINENO: result: $fstype" >&5
32767 echo "${ECHO_T}$fstype" >&6; }
32768
32769 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32770   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32771 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32772 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32773   echo $ECHO_N "(cached) $ECHO_C" >&6
32774 fi
32775 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32776 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32777 else
32778   # Is the header compilable?
32779 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32780 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32781 cat >conftest.$ac_ext <<_ACEOF
32782 /* confdefs.h.  */
32783 _ACEOF
32784 cat confdefs.h >>conftest.$ac_ext
32785 cat >>conftest.$ac_ext <<_ACEOF
32786 /* end confdefs.h.  */
32787 $ac_includes_default
32788 #include <sys/statvfs.h>
32789 _ACEOF
32790 rm -f conftest.$ac_objext
32791 if { (ac_try="$ac_compile"
32792 case "(($ac_try" in
32793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794   *) ac_try_echo=$ac_try;;
32795 esac
32796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797   (eval "$ac_compile") 2>conftest.er1
32798   ac_status=$?
32799   grep -v '^ *+' conftest.er1 >conftest.err
32800   rm -f conftest.er1
32801   cat conftest.err >&5
32802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803   (exit $ac_status); } && {
32804          test -z "$ac_c_werror_flag" ||
32805          test ! -s conftest.err
32806        } && test -s conftest.$ac_objext; then
32807   ac_header_compiler=yes
32808 else
32809   echo "$as_me: failed program was:" >&5
32810 sed 's/^/| /' conftest.$ac_ext >&5
32811
32812         ac_header_compiler=no
32813 fi
32814
32815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32817 echo "${ECHO_T}$ac_header_compiler" >&6; }
32818
32819 # Is the header present?
32820 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32821 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32822 cat >conftest.$ac_ext <<_ACEOF
32823 /* confdefs.h.  */
32824 _ACEOF
32825 cat confdefs.h >>conftest.$ac_ext
32826 cat >>conftest.$ac_ext <<_ACEOF
32827 /* end confdefs.h.  */
32828 #include <sys/statvfs.h>
32829 _ACEOF
32830 if { (ac_try="$ac_cpp conftest.$ac_ext"
32831 case "(($ac_try" in
32832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32833   *) ac_try_echo=$ac_try;;
32834 esac
32835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32837   ac_status=$?
32838   grep -v '^ *+' conftest.er1 >conftest.err
32839   rm -f conftest.er1
32840   cat conftest.err >&5
32841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842   (exit $ac_status); } >/dev/null && {
32843          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32844          test ! -s conftest.err
32845        }; then
32846   ac_header_preproc=yes
32847 else
32848   echo "$as_me: failed program was:" >&5
32849 sed 's/^/| /' conftest.$ac_ext >&5
32850
32851   ac_header_preproc=no
32852 fi
32853
32854 rm -f conftest.err conftest.$ac_ext
32855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32856 echo "${ECHO_T}$ac_header_preproc" >&6; }
32857
32858 # So?  What about this header?
32859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32860   yes:no: )
32861     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32862 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32863     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32864 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32865     ac_header_preproc=yes
32866     ;;
32867   no:yes:* )
32868     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32869 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32870     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32871 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32872     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32873 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32874     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32875 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32876     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32877 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32878     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32879 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32880
32881     ;;
32882 esac
32883 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32884 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32885 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32886   echo $ECHO_N "(cached) $ECHO_C" >&6
32887 else
32888   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32889 fi
32890 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32891 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32892
32893 fi
32894 if test $ac_cv_header_sys_statvfs_h = yes; then
32895
32896 cat >>confdefs.h <<\_ACEOF
32897 #define HAVE_SYS_STATVFS_H 1
32898 _ACEOF
32899
32900 fi
32901
32902
32903
32904 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32905 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32906 if test "${ac_cv_type_signal+set}" = set; then
32907   echo $ECHO_N "(cached) $ECHO_C" >&6
32908 else
32909   cat >conftest.$ac_ext <<_ACEOF
32910 /* confdefs.h.  */
32911 _ACEOF
32912 cat confdefs.h >>conftest.$ac_ext
32913 cat >>conftest.$ac_ext <<_ACEOF
32914 /* end confdefs.h.  */
32915 #include <sys/types.h>
32916 #include <signal.h>
32917
32918 int
32919 main ()
32920 {
32921 return *(signal (0, 0)) (0) == 1;
32922   ;
32923   return 0;
32924 }
32925 _ACEOF
32926 rm -f conftest.$ac_objext
32927 if { (ac_try="$ac_compile"
32928 case "(($ac_try" in
32929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32930   *) ac_try_echo=$ac_try;;
32931 esac
32932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933   (eval "$ac_compile") 2>conftest.er1
32934   ac_status=$?
32935   grep -v '^ *+' conftest.er1 >conftest.err
32936   rm -f conftest.er1
32937   cat conftest.err >&5
32938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939   (exit $ac_status); } && {
32940          test -z "$ac_c_werror_flag" ||
32941          test ! -s conftest.err
32942        } && test -s conftest.$ac_objext; then
32943   ac_cv_type_signal=int
32944 else
32945   echo "$as_me: failed program was:" >&5
32946 sed 's/^/| /' conftest.$ac_ext >&5
32947
32948         ac_cv_type_signal=void
32949 fi
32950
32951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32952 fi
32953 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32954 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32955
32956 cat >>confdefs.h <<_ACEOF
32957 #define RETSIGTYPE $ac_cv_type_signal
32958 _ACEOF
32959
32960
32961
32962   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32963 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32964   if test "${bash_cv_signal_vintage+set}" = set; then
32965   echo $ECHO_N "(cached) $ECHO_C" >&6
32966 else
32967
32968     cat >conftest.$ac_ext <<_ACEOF
32969 /* confdefs.h.  */
32970 _ACEOF
32971 cat confdefs.h >>conftest.$ac_ext
32972 cat >>conftest.$ac_ext <<_ACEOF
32973 /* end confdefs.h.  */
32974 #include <signal.h>
32975 int
32976 main ()
32977 {
32978
32979       sigset_t ss;
32980       struct sigaction sa;
32981       sigemptyset(&ss); sigsuspend(&ss);
32982       sigaction(SIGINT, &sa, (struct sigaction *) 0);
32983       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32984
32985   ;
32986   return 0;
32987 }
32988 _ACEOF
32989 rm -f conftest.$ac_objext conftest$ac_exeext
32990 if { (ac_try="$ac_link"
32991 case "(($ac_try" in
32992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32993   *) ac_try_echo=$ac_try;;
32994 esac
32995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32996   (eval "$ac_link") 2>conftest.er1
32997   ac_status=$?
32998   grep -v '^ *+' conftest.er1 >conftest.err
32999   rm -f conftest.er1
33000   cat conftest.err >&5
33001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002   (exit $ac_status); } && {
33003          test -z "$ac_c_werror_flag" ||
33004          test ! -s conftest.err
33005        } && test -s conftest$ac_exeext &&
33006        $as_test_x conftest$ac_exeext; then
33007   bash_cv_signal_vintage="posix"
33008 else
33009   echo "$as_me: failed program was:" >&5
33010 sed 's/^/| /' conftest.$ac_ext >&5
33011
33012
33013       cat >conftest.$ac_ext <<_ACEOF
33014 /* confdefs.h.  */
33015 _ACEOF
33016 cat confdefs.h >>conftest.$ac_ext
33017 cat >>conftest.$ac_ext <<_ACEOF
33018 /* end confdefs.h.  */
33019 #include <signal.h>
33020 int
33021 main ()
33022 {
33023
33024           int mask = sigmask(SIGINT);
33025           sigsetmask(mask); sigblock(mask); sigpause(mask);
33026
33027   ;
33028   return 0;
33029 }
33030 _ACEOF
33031 rm -f conftest.$ac_objext conftest$ac_exeext
33032 if { (ac_try="$ac_link"
33033 case "(($ac_try" in
33034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33035   *) ac_try_echo=$ac_try;;
33036 esac
33037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33038   (eval "$ac_link") 2>conftest.er1
33039   ac_status=$?
33040   grep -v '^ *+' conftest.er1 >conftest.err
33041   rm -f conftest.er1
33042   cat conftest.err >&5
33043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044   (exit $ac_status); } && {
33045          test -z "$ac_c_werror_flag" ||
33046          test ! -s conftest.err
33047        } && test -s conftest$ac_exeext &&
33048        $as_test_x conftest$ac_exeext; then
33049   bash_cv_signal_vintage="4.2bsd"
33050 else
33051   echo "$as_me: failed program was:" >&5
33052 sed 's/^/| /' conftest.$ac_ext >&5
33053
33054
33055         cat >conftest.$ac_ext <<_ACEOF
33056 /* confdefs.h.  */
33057 _ACEOF
33058 cat confdefs.h >>conftest.$ac_ext
33059 cat >>conftest.$ac_ext <<_ACEOF
33060 /* end confdefs.h.  */
33061
33062           #include <signal.h>
33063           RETSIGTYPE foo() { }
33064 int
33065 main ()
33066 {
33067
33068                   int mask = sigmask(SIGINT);
33069                   sigset(SIGINT, foo); sigrelse(SIGINT);
33070                   sighold(SIGINT); sigpause(SIGINT);
33071
33072   ;
33073   return 0;
33074 }
33075 _ACEOF
33076 rm -f conftest.$ac_objext conftest$ac_exeext
33077 if { (ac_try="$ac_link"
33078 case "(($ac_try" in
33079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33080   *) ac_try_echo=$ac_try;;
33081 esac
33082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33083   (eval "$ac_link") 2>conftest.er1
33084   ac_status=$?
33085   grep -v '^ *+' conftest.er1 >conftest.err
33086   rm -f conftest.er1
33087   cat conftest.err >&5
33088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089   (exit $ac_status); } && {
33090          test -z "$ac_c_werror_flag" ||
33091          test ! -s conftest.err
33092        } && test -s conftest$ac_exeext &&
33093        $as_test_x conftest$ac_exeext; then
33094   bash_cv_signal_vintage="svr3"
33095 else
33096   echo "$as_me: failed program was:" >&5
33097 sed 's/^/| /' conftest.$ac_ext >&5
33098
33099         bash_cv_signal_vintage="v7"
33100
33101 fi
33102
33103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33104       conftest$ac_exeext conftest.$ac_ext
33105
33106 fi
33107
33108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33109       conftest$ac_exeext conftest.$ac_ext
33110
33111 fi
33112
33113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33114       conftest$ac_exeext conftest.$ac_ext
33115
33116 fi
33117
33118   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33119 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33120   if test "$bash_cv_signal_vintage" = "posix"; then
33121     cat >>confdefs.h <<\_ACEOF
33122 #define HAVE_POSIX_SIGNALS 1
33123 _ACEOF
33124
33125   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33126     cat >>confdefs.h <<\_ACEOF
33127 #define HAVE_BSD_SIGNALS 1
33128 _ACEOF
33129
33130   elif test "$bash_cv_signal_vintage" = "svr3"; then
33131     cat >>confdefs.h <<\_ACEOF
33132 #define HAVE_USG_SIGHOLD 1
33133 _ACEOF
33134
33135   fi
33136
33137 { echo "$as_me:$LINENO: checking for mode_t" >&5
33138 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33139 if test "${ac_cv_type_mode_t+set}" = set; then
33140   echo $ECHO_N "(cached) $ECHO_C" >&6
33141 else
33142   cat >conftest.$ac_ext <<_ACEOF
33143 /* confdefs.h.  */
33144 _ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h.  */
33148 $ac_includes_default
33149 typedef mode_t ac__type_new_;
33150 int
33151 main ()
33152 {
33153 if ((ac__type_new_ *) 0)
33154   return 0;
33155 if (sizeof (ac__type_new_))
33156   return 0;
33157   ;
33158   return 0;
33159 }
33160 _ACEOF
33161 rm -f conftest.$ac_objext
33162 if { (ac_try="$ac_compile"
33163 case "(($ac_try" in
33164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165   *) ac_try_echo=$ac_try;;
33166 esac
33167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168   (eval "$ac_compile") 2>conftest.er1
33169   ac_status=$?
33170   grep -v '^ *+' conftest.er1 >conftest.err
33171   rm -f conftest.er1
33172   cat conftest.err >&5
33173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174   (exit $ac_status); } && {
33175          test -z "$ac_c_werror_flag" ||
33176          test ! -s conftest.err
33177        } && test -s conftest.$ac_objext; then
33178   ac_cv_type_mode_t=yes
33179 else
33180   echo "$as_me: failed program was:" >&5
33181 sed 's/^/| /' conftest.$ac_ext >&5
33182
33183         ac_cv_type_mode_t=no
33184 fi
33185
33186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33187 fi
33188 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33189 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33190 if test $ac_cv_type_mode_t = yes; then
33191   :
33192 else
33193
33194 cat >>confdefs.h <<_ACEOF
33195 #define mode_t int
33196 _ACEOF
33197
33198 fi
33199
33200 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33201 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33202 if test "${ac_cv_type_uid_t+set}" = set; then
33203   echo $ECHO_N "(cached) $ECHO_C" >&6
33204 else
33205   cat >conftest.$ac_ext <<_ACEOF
33206 /* confdefs.h.  */
33207 _ACEOF
33208 cat confdefs.h >>conftest.$ac_ext
33209 cat >>conftest.$ac_ext <<_ACEOF
33210 /* end confdefs.h.  */
33211 #include <sys/types.h>
33212
33213 _ACEOF
33214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33215   $EGREP "uid_t" >/dev/null 2>&1; then
33216   ac_cv_type_uid_t=yes
33217 else
33218   ac_cv_type_uid_t=no
33219 fi
33220 rm -f conftest*
33221
33222 fi
33223 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33224 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33225 if test $ac_cv_type_uid_t = no; then
33226
33227 cat >>confdefs.h <<\_ACEOF
33228 #define uid_t int
33229 _ACEOF
33230
33231
33232 cat >>confdefs.h <<\_ACEOF
33233 #define gid_t int
33234 _ACEOF
33235
33236 fi
33237
33238 { echo "$as_me:$LINENO: checking for size_t" >&5
33239 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33240 if test "${ac_cv_type_size_t+set}" = set; then
33241   echo $ECHO_N "(cached) $ECHO_C" >&6
33242 else
33243   cat >conftest.$ac_ext <<_ACEOF
33244 /* confdefs.h.  */
33245 _ACEOF
33246 cat confdefs.h >>conftest.$ac_ext
33247 cat >>conftest.$ac_ext <<_ACEOF
33248 /* end confdefs.h.  */
33249 $ac_includes_default
33250 typedef size_t ac__type_new_;
33251 int
33252 main ()
33253 {
33254 if ((ac__type_new_ *) 0)
33255   return 0;
33256 if (sizeof (ac__type_new_))
33257   return 0;
33258   ;
33259   return 0;
33260 }
33261 _ACEOF
33262 rm -f conftest.$ac_objext
33263 if { (ac_try="$ac_compile"
33264 case "(($ac_try" in
33265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33266   *) ac_try_echo=$ac_try;;
33267 esac
33268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33269   (eval "$ac_compile") 2>conftest.er1
33270   ac_status=$?
33271   grep -v '^ *+' conftest.er1 >conftest.err
33272   rm -f conftest.er1
33273   cat conftest.err >&5
33274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33275   (exit $ac_status); } && {
33276          test -z "$ac_c_werror_flag" ||
33277          test ! -s conftest.err
33278        } && test -s conftest.$ac_objext; then
33279   ac_cv_type_size_t=yes
33280 else
33281   echo "$as_me: failed program was:" >&5
33282 sed 's/^/| /' conftest.$ac_ext >&5
33283
33284         ac_cv_type_size_t=no
33285 fi
33286
33287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33288 fi
33289 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33290 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33291 if test $ac_cv_type_size_t = yes; then
33292   :
33293 else
33294
33295 cat >>confdefs.h <<_ACEOF
33296 #define size_t unsigned int
33297 _ACEOF
33298
33299 fi
33300
33301 { echo "$as_me:$LINENO: checking for pid_t" >&5
33302 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33303 if test "${ac_cv_type_pid_t+set}" = set; then
33304   echo $ECHO_N "(cached) $ECHO_C" >&6
33305 else
33306   cat >conftest.$ac_ext <<_ACEOF
33307 /* confdefs.h.  */
33308 _ACEOF
33309 cat confdefs.h >>conftest.$ac_ext
33310 cat >>conftest.$ac_ext <<_ACEOF
33311 /* end confdefs.h.  */
33312 $ac_includes_default
33313 typedef pid_t ac__type_new_;
33314 int
33315 main ()
33316 {
33317 if ((ac__type_new_ *) 0)
33318   return 0;
33319 if (sizeof (ac__type_new_))
33320   return 0;
33321   ;
33322   return 0;
33323 }
33324 _ACEOF
33325 rm -f conftest.$ac_objext
33326 if { (ac_try="$ac_compile"
33327 case "(($ac_try" in
33328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33329   *) ac_try_echo=$ac_try;;
33330 esac
33331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33332   (eval "$ac_compile") 2>conftest.er1
33333   ac_status=$?
33334   grep -v '^ *+' conftest.er1 >conftest.err
33335   rm -f conftest.er1
33336   cat conftest.err >&5
33337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338   (exit $ac_status); } && {
33339          test -z "$ac_c_werror_flag" ||
33340          test ! -s conftest.err
33341        } && test -s conftest.$ac_objext; then
33342   ac_cv_type_pid_t=yes
33343 else
33344   echo "$as_me: failed program was:" >&5
33345 sed 's/^/| /' conftest.$ac_ext >&5
33346
33347         ac_cv_type_pid_t=no
33348 fi
33349
33350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33351 fi
33352 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33353 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33354 if test $ac_cv_type_pid_t = yes; then
33355   :
33356 else
33357
33358 cat >>confdefs.h <<_ACEOF
33359 #define pid_t int
33360 _ACEOF
33361
33362 fi
33363
33364 { echo "$as_me:$LINENO: checking for off_t" >&5
33365 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33366 if test "${ac_cv_type_off_t+set}" = set; then
33367   echo $ECHO_N "(cached) $ECHO_C" >&6
33368 else
33369   cat >conftest.$ac_ext <<_ACEOF
33370 /* confdefs.h.  */
33371 _ACEOF
33372 cat confdefs.h >>conftest.$ac_ext
33373 cat >>conftest.$ac_ext <<_ACEOF
33374 /* end confdefs.h.  */
33375 $ac_includes_default
33376 typedef off_t ac__type_new_;
33377 int
33378 main ()
33379 {
33380 if ((ac__type_new_ *) 0)
33381   return 0;
33382 if (sizeof (ac__type_new_))
33383   return 0;
33384   ;
33385   return 0;
33386 }
33387 _ACEOF
33388 rm -f conftest.$ac_objext
33389 if { (ac_try="$ac_compile"
33390 case "(($ac_try" in
33391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33392   *) ac_try_echo=$ac_try;;
33393 esac
33394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33395   (eval "$ac_compile") 2>conftest.er1
33396   ac_status=$?
33397   grep -v '^ *+' conftest.er1 >conftest.err
33398   rm -f conftest.er1
33399   cat conftest.err >&5
33400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401   (exit $ac_status); } && {
33402          test -z "$ac_c_werror_flag" ||
33403          test ! -s conftest.err
33404        } && test -s conftest.$ac_objext; then
33405   ac_cv_type_off_t=yes
33406 else
33407   echo "$as_me: failed program was:" >&5
33408 sed 's/^/| /' conftest.$ac_ext >&5
33409
33410         ac_cv_type_off_t=no
33411 fi
33412
33413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33414 fi
33415 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33416 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33417 if test $ac_cv_type_off_t = yes; then
33418   :
33419 else
33420
33421 cat >>confdefs.h <<_ACEOF
33422 #define off_t long int
33423 _ACEOF
33424
33425 fi
33426
33427 { echo "$as_me:$LINENO: checking for ino_t" >&5
33428 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33429 if test "${ac_cv_type_ino_t+set}" = set; then
33430   echo $ECHO_N "(cached) $ECHO_C" >&6
33431 else
33432   cat >conftest.$ac_ext <<_ACEOF
33433 /* confdefs.h.  */
33434 _ACEOF
33435 cat confdefs.h >>conftest.$ac_ext
33436 cat >>conftest.$ac_ext <<_ACEOF
33437 /* end confdefs.h.  */
33438 $ac_includes_default
33439 typedef ino_t ac__type_new_;
33440 int
33441 main ()
33442 {
33443 if ((ac__type_new_ *) 0)
33444   return 0;
33445 if (sizeof (ac__type_new_))
33446   return 0;
33447   ;
33448   return 0;
33449 }
33450 _ACEOF
33451 rm -f conftest.$ac_objext
33452 if { (ac_try="$ac_compile"
33453 case "(($ac_try" in
33454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33455   *) ac_try_echo=$ac_try;;
33456 esac
33457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33458   (eval "$ac_compile") 2>conftest.er1
33459   ac_status=$?
33460   grep -v '^ *+' conftest.er1 >conftest.err
33461   rm -f conftest.er1
33462   cat conftest.err >&5
33463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464   (exit $ac_status); } && {
33465          test -z "$ac_c_werror_flag" ||
33466          test ! -s conftest.err
33467        } && test -s conftest.$ac_objext; then
33468   ac_cv_type_ino_t=yes
33469 else
33470   echo "$as_me: failed program was:" >&5
33471 sed 's/^/| /' conftest.$ac_ext >&5
33472
33473         ac_cv_type_ino_t=no
33474 fi
33475
33476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33477 fi
33478 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33479 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33480 if test $ac_cv_type_ino_t = yes; then
33481   :
33482 else
33483
33484 cat >>confdefs.h <<_ACEOF
33485 #define ino_t unsigned long
33486 _ACEOF
33487
33488 fi
33489
33490 { echo "$as_me:$LINENO: checking for dev_t" >&5
33491 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33492 if test "${ac_cv_type_dev_t+set}" = set; then
33493   echo $ECHO_N "(cached) $ECHO_C" >&6
33494 else
33495   cat >conftest.$ac_ext <<_ACEOF
33496 /* confdefs.h.  */
33497 _ACEOF
33498 cat confdefs.h >>conftest.$ac_ext
33499 cat >>conftest.$ac_ext <<_ACEOF
33500 /* end confdefs.h.  */
33501 $ac_includes_default
33502 typedef dev_t ac__type_new_;
33503 int
33504 main ()
33505 {
33506 if ((ac__type_new_ *) 0)
33507   return 0;
33508 if (sizeof (ac__type_new_))
33509   return 0;
33510   ;
33511   return 0;
33512 }
33513 _ACEOF
33514 rm -f conftest.$ac_objext
33515 if { (ac_try="$ac_compile"
33516 case "(($ac_try" in
33517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33518   *) ac_try_echo=$ac_try;;
33519 esac
33520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33521   (eval "$ac_compile") 2>conftest.er1
33522   ac_status=$?
33523   grep -v '^ *+' conftest.er1 >conftest.err
33524   rm -f conftest.er1
33525   cat conftest.err >&5
33526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527   (exit $ac_status); } && {
33528          test -z "$ac_c_werror_flag" ||
33529          test ! -s conftest.err
33530        } && test -s conftest.$ac_objext; then
33531   ac_cv_type_dev_t=yes
33532 else
33533   echo "$as_me: failed program was:" >&5
33534 sed 's/^/| /' conftest.$ac_ext >&5
33535
33536         ac_cv_type_dev_t=no
33537 fi
33538
33539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33540 fi
33541 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33542 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33543 if test $ac_cv_type_dev_t = yes; then
33544   :
33545 else
33546
33547 cat >>confdefs.h <<_ACEOF
33548 #define dev_t unsigned long
33549 _ACEOF
33550
33551 fi
33552
33553 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33554 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33555 if test "${ac_cv_type_daddr_t+set}" = set; then
33556   echo $ECHO_N "(cached) $ECHO_C" >&6
33557 else
33558   cat >conftest.$ac_ext <<_ACEOF
33559 /* confdefs.h.  */
33560 _ACEOF
33561 cat confdefs.h >>conftest.$ac_ext
33562 cat >>conftest.$ac_ext <<_ACEOF
33563 /* end confdefs.h.  */
33564 $ac_includes_default
33565 typedef daddr_t ac__type_new_;
33566 int
33567 main ()
33568 {
33569 if ((ac__type_new_ *) 0)
33570   return 0;
33571 if (sizeof (ac__type_new_))
33572   return 0;
33573   ;
33574   return 0;
33575 }
33576 _ACEOF
33577 rm -f conftest.$ac_objext
33578 if { (ac_try="$ac_compile"
33579 case "(($ac_try" in
33580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33581   *) ac_try_echo=$ac_try;;
33582 esac
33583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33584   (eval "$ac_compile") 2>conftest.er1
33585   ac_status=$?
33586   grep -v '^ *+' conftest.er1 >conftest.err
33587   rm -f conftest.er1
33588   cat conftest.err >&5
33589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590   (exit $ac_status); } && {
33591          test -z "$ac_c_werror_flag" ||
33592          test ! -s conftest.err
33593        } && test -s conftest.$ac_objext; then
33594   ac_cv_type_daddr_t=yes
33595 else
33596   echo "$as_me: failed program was:" >&5
33597 sed 's/^/| /' conftest.$ac_ext >&5
33598
33599         ac_cv_type_daddr_t=no
33600 fi
33601
33602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33603 fi
33604 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33605 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33606 if test $ac_cv_type_daddr_t = yes; then
33607   :
33608 else
33609
33610 cat >>confdefs.h <<_ACEOF
33611 #define daddr_t long
33612 _ACEOF
33613
33614 fi
33615
33616 { echo "$as_me:$LINENO: checking for major_t" >&5
33617 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33618 if test "${ac_cv_type_major_t+set}" = set; then
33619   echo $ECHO_N "(cached) $ECHO_C" >&6
33620 else
33621   cat >conftest.$ac_ext <<_ACEOF
33622 /* confdefs.h.  */
33623 _ACEOF
33624 cat confdefs.h >>conftest.$ac_ext
33625 cat >>conftest.$ac_ext <<_ACEOF
33626 /* end confdefs.h.  */
33627 $ac_includes_default
33628 typedef major_t ac__type_new_;
33629 int
33630 main ()
33631 {
33632 if ((ac__type_new_ *) 0)
33633   return 0;
33634 if (sizeof (ac__type_new_))
33635   return 0;
33636   ;
33637   return 0;
33638 }
33639 _ACEOF
33640 rm -f conftest.$ac_objext
33641 if { (ac_try="$ac_compile"
33642 case "(($ac_try" in
33643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644   *) ac_try_echo=$ac_try;;
33645 esac
33646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647   (eval "$ac_compile") 2>conftest.er1
33648   ac_status=$?
33649   grep -v '^ *+' conftest.er1 >conftest.err
33650   rm -f conftest.er1
33651   cat conftest.err >&5
33652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653   (exit $ac_status); } && {
33654          test -z "$ac_c_werror_flag" ||
33655          test ! -s conftest.err
33656        } && test -s conftest.$ac_objext; then
33657   ac_cv_type_major_t=yes
33658 else
33659   echo "$as_me: failed program was:" >&5
33660 sed 's/^/| /' conftest.$ac_ext >&5
33661
33662         ac_cv_type_major_t=no
33663 fi
33664
33665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33666 fi
33667 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33668 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33669 if test $ac_cv_type_major_t = yes; then
33670   :
33671 else
33672
33673 cat >>confdefs.h <<_ACEOF
33674 #define major_t int
33675 _ACEOF
33676
33677 fi
33678
33679 { echo "$as_me:$LINENO: checking for minor_t" >&5
33680 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33681 if test "${ac_cv_type_minor_t+set}" = set; then
33682   echo $ECHO_N "(cached) $ECHO_C" >&6
33683 else
33684   cat >conftest.$ac_ext <<_ACEOF
33685 /* confdefs.h.  */
33686 _ACEOF
33687 cat confdefs.h >>conftest.$ac_ext
33688 cat >>conftest.$ac_ext <<_ACEOF
33689 /* end confdefs.h.  */
33690 $ac_includes_default
33691 typedef minor_t ac__type_new_;
33692 int
33693 main ()
33694 {
33695 if ((ac__type_new_ *) 0)
33696   return 0;
33697 if (sizeof (ac__type_new_))
33698   return 0;
33699   ;
33700   return 0;
33701 }
33702 _ACEOF
33703 rm -f conftest.$ac_objext
33704 if { (ac_try="$ac_compile"
33705 case "(($ac_try" in
33706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33707   *) ac_try_echo=$ac_try;;
33708 esac
33709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33710   (eval "$ac_compile") 2>conftest.er1
33711   ac_status=$?
33712   grep -v '^ *+' conftest.er1 >conftest.err
33713   rm -f conftest.er1
33714   cat conftest.err >&5
33715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716   (exit $ac_status); } && {
33717          test -z "$ac_c_werror_flag" ||
33718          test ! -s conftest.err
33719        } && test -s conftest.$ac_objext; then
33720   ac_cv_type_minor_t=yes
33721 else
33722   echo "$as_me: failed program was:" >&5
33723 sed 's/^/| /' conftest.$ac_ext >&5
33724
33725         ac_cv_type_minor_t=no
33726 fi
33727
33728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33729 fi
33730 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33731 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33732 if test $ac_cv_type_minor_t = yes; then
33733   :
33734 else
33735
33736 cat >>confdefs.h <<_ACEOF
33737 #define minor_t int
33738 _ACEOF
33739
33740 fi
33741
33742 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33743 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33744 if test "${ac_cv_type_ssize_t+set}" = set; then
33745   echo $ECHO_N "(cached) $ECHO_C" >&6
33746 else
33747   cat >conftest.$ac_ext <<_ACEOF
33748 /* confdefs.h.  */
33749 _ACEOF
33750 cat confdefs.h >>conftest.$ac_ext
33751 cat >>conftest.$ac_ext <<_ACEOF
33752 /* end confdefs.h.  */
33753 $ac_includes_default
33754 typedef ssize_t ac__type_new_;
33755 int
33756 main ()
33757 {
33758 if ((ac__type_new_ *) 0)
33759   return 0;
33760 if (sizeof (ac__type_new_))
33761   return 0;
33762   ;
33763   return 0;
33764 }
33765 _ACEOF
33766 rm -f conftest.$ac_objext
33767 if { (ac_try="$ac_compile"
33768 case "(($ac_try" in
33769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33770   *) ac_try_echo=$ac_try;;
33771 esac
33772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33773   (eval "$ac_compile") 2>conftest.er1
33774   ac_status=$?
33775   grep -v '^ *+' conftest.er1 >conftest.err
33776   rm -f conftest.er1
33777   cat conftest.err >&5
33778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779   (exit $ac_status); } && {
33780          test -z "$ac_c_werror_flag" ||
33781          test ! -s conftest.err
33782        } && test -s conftest.$ac_objext; then
33783   ac_cv_type_ssize_t=yes
33784 else
33785   echo "$as_me: failed program was:" >&5
33786 sed 's/^/| /' conftest.$ac_ext >&5
33787
33788         ac_cv_type_ssize_t=no
33789 fi
33790
33791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33792 fi
33793 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33794 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33795 if test $ac_cv_type_ssize_t = yes; then
33796   :
33797 else
33798
33799 cat >>confdefs.h <<_ACEOF
33800 #define ssize_t int
33801 _ACEOF
33802
33803 fi
33804
33805 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33806 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33807 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33808   echo $ECHO_N "(cached) $ECHO_C" >&6
33809 else
33810   cat >conftest.$ac_ext <<_ACEOF
33811 /* confdefs.h.  */
33812 _ACEOF
33813 cat confdefs.h >>conftest.$ac_ext
33814 cat >>conftest.$ac_ext <<_ACEOF
33815 /* end confdefs.h.  */
33816 $ac_includes_default
33817 int
33818 main ()
33819 {
33820 static struct stat ac_aggr;
33821 if (ac_aggr.st_blocks)
33822 return 0;
33823   ;
33824   return 0;
33825 }
33826 _ACEOF
33827 rm -f conftest.$ac_objext
33828 if { (ac_try="$ac_compile"
33829 case "(($ac_try" in
33830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33831   *) ac_try_echo=$ac_try;;
33832 esac
33833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33834   (eval "$ac_compile") 2>conftest.er1
33835   ac_status=$?
33836   grep -v '^ *+' conftest.er1 >conftest.err
33837   rm -f conftest.er1
33838   cat conftest.err >&5
33839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840   (exit $ac_status); } && {
33841          test -z "$ac_c_werror_flag" ||
33842          test ! -s conftest.err
33843        } && test -s conftest.$ac_objext; then
33844   ac_cv_member_struct_stat_st_blocks=yes
33845 else
33846   echo "$as_me: failed program was:" >&5
33847 sed 's/^/| /' conftest.$ac_ext >&5
33848
33849         cat >conftest.$ac_ext <<_ACEOF
33850 /* confdefs.h.  */
33851 _ACEOF
33852 cat confdefs.h >>conftest.$ac_ext
33853 cat >>conftest.$ac_ext <<_ACEOF
33854 /* end confdefs.h.  */
33855 $ac_includes_default
33856 int
33857 main ()
33858 {
33859 static struct stat ac_aggr;
33860 if (sizeof ac_aggr.st_blocks)
33861 return 0;
33862   ;
33863   return 0;
33864 }
33865 _ACEOF
33866 rm -f conftest.$ac_objext
33867 if { (ac_try="$ac_compile"
33868 case "(($ac_try" in
33869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33870   *) ac_try_echo=$ac_try;;
33871 esac
33872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33873   (eval "$ac_compile") 2>conftest.er1
33874   ac_status=$?
33875   grep -v '^ *+' conftest.er1 >conftest.err
33876   rm -f conftest.er1
33877   cat conftest.err >&5
33878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879   (exit $ac_status); } && {
33880          test -z "$ac_c_werror_flag" ||
33881          test ! -s conftest.err
33882        } && test -s conftest.$ac_objext; then
33883   ac_cv_member_struct_stat_st_blocks=yes
33884 else
33885   echo "$as_me: failed program was:" >&5
33886 sed 's/^/| /' conftest.$ac_ext >&5
33887
33888         ac_cv_member_struct_stat_st_blocks=no
33889 fi
33890
33891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33892 fi
33893
33894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33895 fi
33896 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33897 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33898 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33899
33900 cat >>confdefs.h <<_ACEOF
33901 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33902 _ACEOF
33903
33904
33905 cat >>confdefs.h <<\_ACEOF
33906 #define HAVE_ST_BLOCKS 1
33907 _ACEOF
33908
33909 else
33910   case " $LIBOBJS " in
33911   *" fileblocks.$ac_objext "* ) ;;
33912   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33913  ;;
33914 esac
33915
33916 fi
33917
33918
33919 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33920 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33921 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33922   echo $ECHO_N "(cached) $ECHO_C" >&6
33923 else
33924   cat >conftest.$ac_ext <<_ACEOF
33925 /* confdefs.h.  */
33926 _ACEOF
33927 cat confdefs.h >>conftest.$ac_ext
33928 cat >>conftest.$ac_ext <<_ACEOF
33929 /* end confdefs.h.  */
33930 $ac_includes_default
33931 int
33932 main ()
33933 {
33934 static struct stat ac_aggr;
33935 if (ac_aggr.st_rdev)
33936 return 0;
33937   ;
33938   return 0;
33939 }
33940 _ACEOF
33941 rm -f conftest.$ac_objext
33942 if { (ac_try="$ac_compile"
33943 case "(($ac_try" in
33944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945   *) ac_try_echo=$ac_try;;
33946 esac
33947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948   (eval "$ac_compile") 2>conftest.er1
33949   ac_status=$?
33950   grep -v '^ *+' conftest.er1 >conftest.err
33951   rm -f conftest.er1
33952   cat conftest.err >&5
33953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954   (exit $ac_status); } && {
33955          test -z "$ac_c_werror_flag" ||
33956          test ! -s conftest.err
33957        } && test -s conftest.$ac_objext; then
33958   ac_cv_member_struct_stat_st_rdev=yes
33959 else
33960   echo "$as_me: failed program was:" >&5
33961 sed 's/^/| /' conftest.$ac_ext >&5
33962
33963         cat >conftest.$ac_ext <<_ACEOF
33964 /* confdefs.h.  */
33965 _ACEOF
33966 cat confdefs.h >>conftest.$ac_ext
33967 cat >>conftest.$ac_ext <<_ACEOF
33968 /* end confdefs.h.  */
33969 $ac_includes_default
33970 int
33971 main ()
33972 {
33973 static struct stat ac_aggr;
33974 if (sizeof ac_aggr.st_rdev)
33975 return 0;
33976   ;
33977   return 0;
33978 }
33979 _ACEOF
33980 rm -f conftest.$ac_objext
33981 if { (ac_try="$ac_compile"
33982 case "(($ac_try" in
33983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33984   *) ac_try_echo=$ac_try;;
33985 esac
33986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33987   (eval "$ac_compile") 2>conftest.er1
33988   ac_status=$?
33989   grep -v '^ *+' conftest.er1 >conftest.err
33990   rm -f conftest.er1
33991   cat conftest.err >&5
33992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33993   (exit $ac_status); } && {
33994          test -z "$ac_c_werror_flag" ||
33995          test ! -s conftest.err
33996        } && test -s conftest.$ac_objext; then
33997   ac_cv_member_struct_stat_st_rdev=yes
33998 else
33999   echo "$as_me: failed program was:" >&5
34000 sed 's/^/| /' conftest.$ac_ext >&5
34001
34002         ac_cv_member_struct_stat_st_rdev=no
34003 fi
34004
34005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34006 fi
34007
34008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34009 fi
34010 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34011 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34012 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34013
34014 cat >>confdefs.h <<_ACEOF
34015 #define HAVE_STRUCT_STAT_ST_RDEV 1
34016 _ACEOF
34017
34018
34019 cat >>confdefs.h <<\_ACEOF
34020 #define HAVE_ST_RDEV 1
34021 _ACEOF
34022
34023 fi
34024
34025
34026 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34027 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34028 if test "${ac_cv_struct_tm+set}" = set; then
34029   echo $ECHO_N "(cached) $ECHO_C" >&6
34030 else
34031   cat >conftest.$ac_ext <<_ACEOF
34032 /* confdefs.h.  */
34033 _ACEOF
34034 cat confdefs.h >>conftest.$ac_ext
34035 cat >>conftest.$ac_ext <<_ACEOF
34036 /* end confdefs.h.  */
34037 #include <sys/types.h>
34038 #include <time.h>
34039
34040 int
34041 main ()
34042 {
34043 struct tm tm;
34044                                      int *p = &tm.tm_sec;
34045                                      return !p;
34046   ;
34047   return 0;
34048 }
34049 _ACEOF
34050 rm -f conftest.$ac_objext
34051 if { (ac_try="$ac_compile"
34052 case "(($ac_try" in
34053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34054   *) ac_try_echo=$ac_try;;
34055 esac
34056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34057   (eval "$ac_compile") 2>conftest.er1
34058   ac_status=$?
34059   grep -v '^ *+' conftest.er1 >conftest.err
34060   rm -f conftest.er1
34061   cat conftest.err >&5
34062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34063   (exit $ac_status); } && {
34064          test -z "$ac_c_werror_flag" ||
34065          test ! -s conftest.err
34066        } && test -s conftest.$ac_objext; then
34067   ac_cv_struct_tm=time.h
34068 else
34069   echo "$as_me: failed program was:" >&5
34070 sed 's/^/| /' conftest.$ac_ext >&5
34071
34072         ac_cv_struct_tm=sys/time.h
34073 fi
34074
34075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34076 fi
34077 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34078 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34079 if test $ac_cv_struct_tm = sys/time.h; then
34080
34081 cat >>confdefs.h <<\_ACEOF
34082 #define TM_IN_SYS_TIME 1
34083 _ACEOF
34084
34085 fi
34086
34087 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34088 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34089 if test "${ac_cv_c_const+set}" = set; then
34090   echo $ECHO_N "(cached) $ECHO_C" >&6
34091 else
34092   cat >conftest.$ac_ext <<_ACEOF
34093 /* confdefs.h.  */
34094 _ACEOF
34095 cat confdefs.h >>conftest.$ac_ext
34096 cat >>conftest.$ac_ext <<_ACEOF
34097 /* end confdefs.h.  */
34098
34099 int
34100 main ()
34101 {
34102 /* FIXME: Include the comments suggested by Paul. */
34103 #ifndef __cplusplus
34104   /* Ultrix mips cc rejects this.  */
34105   typedef int charset[2];
34106   const charset cs;
34107   /* SunOS 4.1.1 cc rejects this.  */
34108   char const *const *pcpcc;
34109   char **ppc;
34110   /* NEC SVR4.0.2 mips cc rejects this.  */
34111   struct point {int x, y;};
34112   static struct point const zero = {0,0};
34113   /* AIX XL C 1.02.0.0 rejects this.
34114      It does not let you subtract one const X* pointer from another in
34115      an arm of an if-expression whose if-part is not a constant
34116      expression */
34117   const char *g = "string";
34118   pcpcc = &g + (g ? g-g : 0);
34119   /* HPUX 7.0 cc rejects these. */
34120   ++pcpcc;
34121   ppc = (char**) pcpcc;
34122   pcpcc = (char const *const *) ppc;
34123   { /* SCO 3.2v4 cc rejects this.  */
34124     char *t;
34125     char const *s = 0 ? (char *) 0 : (char const *) 0;
34126
34127     *t++ = 0;
34128     if (s) return 0;
34129   }
34130   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34131     int x[] = {25, 17};
34132     const int *foo = &x[0];
34133     ++foo;
34134   }
34135   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34136     typedef const int *iptr;
34137     iptr p = 0;
34138     ++p;
34139   }
34140   { /* AIX XL C 1.02.0.0 rejects this saying
34141        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34142     struct s { int j; const int *ap[3]; };
34143     struct s *b; b->j = 5;
34144   }
34145   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34146     const int foo = 10;
34147     if (!foo) return 0;
34148   }
34149   return !cs[0] && !zero.x;
34150 #endif
34151
34152   ;
34153   return 0;
34154 }
34155 _ACEOF
34156 rm -f conftest.$ac_objext
34157 if { (ac_try="$ac_compile"
34158 case "(($ac_try" in
34159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34160   *) ac_try_echo=$ac_try;;
34161 esac
34162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34163   (eval "$ac_compile") 2>conftest.er1
34164   ac_status=$?
34165   grep -v '^ *+' conftest.er1 >conftest.err
34166   rm -f conftest.er1
34167   cat conftest.err >&5
34168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169   (exit $ac_status); } && {
34170          test -z "$ac_c_werror_flag" ||
34171          test ! -s conftest.err
34172        } && test -s conftest.$ac_objext; then
34173   ac_cv_c_const=yes
34174 else
34175   echo "$as_me: failed program was:" >&5
34176 sed 's/^/| /' conftest.$ac_ext >&5
34177
34178         ac_cv_c_const=no
34179 fi
34180
34181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34182 fi
34183 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34184 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34185 if test $ac_cv_c_const = no; then
34186
34187 cat >>confdefs.h <<\_ACEOF
34188 #define const
34189 _ACEOF
34190
34191 fi
34192
34193
34194 { echo "$as_me:$LINENO: checking for char" >&5
34195 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34196 if test "${ac_cv_type_char+set}" = set; then
34197   echo $ECHO_N "(cached) $ECHO_C" >&6
34198 else
34199   cat >conftest.$ac_ext <<_ACEOF
34200 /* confdefs.h.  */
34201 _ACEOF
34202 cat confdefs.h >>conftest.$ac_ext
34203 cat >>conftest.$ac_ext <<_ACEOF
34204 /* end confdefs.h.  */
34205 $ac_includes_default
34206 typedef char ac__type_new_;
34207 int
34208 main ()
34209 {
34210 if ((ac__type_new_ *) 0)
34211   return 0;
34212 if (sizeof (ac__type_new_))
34213   return 0;
34214   ;
34215   return 0;
34216 }
34217 _ACEOF
34218 rm -f conftest.$ac_objext
34219 if { (ac_try="$ac_compile"
34220 case "(($ac_try" in
34221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34222   *) ac_try_echo=$ac_try;;
34223 esac
34224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34225   (eval "$ac_compile") 2>conftest.er1
34226   ac_status=$?
34227   grep -v '^ *+' conftest.er1 >conftest.err
34228   rm -f conftest.er1
34229   cat conftest.err >&5
34230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231   (exit $ac_status); } && {
34232          test -z "$ac_c_werror_flag" ||
34233          test ! -s conftest.err
34234        } && test -s conftest.$ac_objext; then
34235   ac_cv_type_char=yes
34236 else
34237   echo "$as_me: failed program was:" >&5
34238 sed 's/^/| /' conftest.$ac_ext >&5
34239
34240         ac_cv_type_char=no
34241 fi
34242
34243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34244 fi
34245 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34246 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34247
34248 # The cast to long int works around a bug in the HP C Compiler
34249 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34250 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34251 # This bug is HP SR number 8606223364.
34252 { echo "$as_me:$LINENO: checking size of char" >&5
34253 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34254 if test "${ac_cv_sizeof_char+set}" = set; then
34255   echo $ECHO_N "(cached) $ECHO_C" >&6
34256 else
34257   if test "$cross_compiling" = yes; then
34258   # Depending upon the size, compute the lo and hi bounds.
34259 cat >conftest.$ac_ext <<_ACEOF
34260 /* confdefs.h.  */
34261 _ACEOF
34262 cat confdefs.h >>conftest.$ac_ext
34263 cat >>conftest.$ac_ext <<_ACEOF
34264 /* end confdefs.h.  */
34265 $ac_includes_default
34266    typedef char ac__type_sizeof_;
34267 int
34268 main ()
34269 {
34270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34271 test_array [0] = 0
34272
34273   ;
34274   return 0;
34275 }
34276 _ACEOF
34277 rm -f conftest.$ac_objext
34278 if { (ac_try="$ac_compile"
34279 case "(($ac_try" in
34280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34281   *) ac_try_echo=$ac_try;;
34282 esac
34283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34284   (eval "$ac_compile") 2>conftest.er1
34285   ac_status=$?
34286   grep -v '^ *+' conftest.er1 >conftest.err
34287   rm -f conftest.er1
34288   cat conftest.err >&5
34289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34290   (exit $ac_status); } && {
34291          test -z "$ac_c_werror_flag" ||
34292          test ! -s conftest.err
34293        } && test -s conftest.$ac_objext; then
34294   ac_lo=0 ac_mid=0
34295   while :; do
34296     cat >conftest.$ac_ext <<_ACEOF
34297 /* confdefs.h.  */
34298 _ACEOF
34299 cat confdefs.h >>conftest.$ac_ext
34300 cat >>conftest.$ac_ext <<_ACEOF
34301 /* end confdefs.h.  */
34302 $ac_includes_default
34303    typedef char ac__type_sizeof_;
34304 int
34305 main ()
34306 {
34307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34308 test_array [0] = 0
34309
34310   ;
34311   return 0;
34312 }
34313 _ACEOF
34314 rm -f conftest.$ac_objext
34315 if { (ac_try="$ac_compile"
34316 case "(($ac_try" in
34317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34318   *) ac_try_echo=$ac_try;;
34319 esac
34320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34321   (eval "$ac_compile") 2>conftest.er1
34322   ac_status=$?
34323   grep -v '^ *+' conftest.er1 >conftest.err
34324   rm -f conftest.er1
34325   cat conftest.err >&5
34326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327   (exit $ac_status); } && {
34328          test -z "$ac_c_werror_flag" ||
34329          test ! -s conftest.err
34330        } && test -s conftest.$ac_objext; then
34331   ac_hi=$ac_mid; break
34332 else
34333   echo "$as_me: failed program was:" >&5
34334 sed 's/^/| /' conftest.$ac_ext >&5
34335
34336         ac_lo=`expr $ac_mid + 1`
34337                         if test $ac_lo -le $ac_mid; then
34338                           ac_lo= ac_hi=
34339                           break
34340                         fi
34341                         ac_mid=`expr 2 '*' $ac_mid + 1`
34342 fi
34343
34344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34345   done
34346 else
34347   echo "$as_me: failed program was:" >&5
34348 sed 's/^/| /' conftest.$ac_ext >&5
34349
34350         cat >conftest.$ac_ext <<_ACEOF
34351 /* confdefs.h.  */
34352 _ACEOF
34353 cat confdefs.h >>conftest.$ac_ext
34354 cat >>conftest.$ac_ext <<_ACEOF
34355 /* end confdefs.h.  */
34356 $ac_includes_default
34357    typedef char ac__type_sizeof_;
34358 int
34359 main ()
34360 {
34361 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34362 test_array [0] = 0
34363
34364   ;
34365   return 0;
34366 }
34367 _ACEOF
34368 rm -f conftest.$ac_objext
34369 if { (ac_try="$ac_compile"
34370 case "(($ac_try" in
34371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34372   *) ac_try_echo=$ac_try;;
34373 esac
34374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34375   (eval "$ac_compile") 2>conftest.er1
34376   ac_status=$?
34377   grep -v '^ *+' conftest.er1 >conftest.err
34378   rm -f conftest.er1
34379   cat conftest.err >&5
34380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381   (exit $ac_status); } && {
34382          test -z "$ac_c_werror_flag" ||
34383          test ! -s conftest.err
34384        } && test -s conftest.$ac_objext; then
34385   ac_hi=-1 ac_mid=-1
34386   while :; do
34387     cat >conftest.$ac_ext <<_ACEOF
34388 /* confdefs.h.  */
34389 _ACEOF
34390 cat confdefs.h >>conftest.$ac_ext
34391 cat >>conftest.$ac_ext <<_ACEOF
34392 /* end confdefs.h.  */
34393 $ac_includes_default
34394    typedef char ac__type_sizeof_;
34395 int
34396 main ()
34397 {
34398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34399 test_array [0] = 0
34400
34401   ;
34402   return 0;
34403 }
34404 _ACEOF
34405 rm -f conftest.$ac_objext
34406 if { (ac_try="$ac_compile"
34407 case "(($ac_try" in
34408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34409   *) ac_try_echo=$ac_try;;
34410 esac
34411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34412   (eval "$ac_compile") 2>conftest.er1
34413   ac_status=$?
34414   grep -v '^ *+' conftest.er1 >conftest.err
34415   rm -f conftest.er1
34416   cat conftest.err >&5
34417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34418   (exit $ac_status); } && {
34419          test -z "$ac_c_werror_flag" ||
34420          test ! -s conftest.err
34421        } && test -s conftest.$ac_objext; then
34422   ac_lo=$ac_mid; break
34423 else
34424   echo "$as_me: failed program was:" >&5
34425 sed 's/^/| /' conftest.$ac_ext >&5
34426
34427         ac_hi=`expr '(' $ac_mid ')' - 1`
34428                         if test $ac_mid -le $ac_hi; then
34429                           ac_lo= ac_hi=
34430                           break
34431                         fi
34432                         ac_mid=`expr 2 '*' $ac_mid`
34433 fi
34434
34435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34436   done
34437 else
34438   echo "$as_me: failed program was:" >&5
34439 sed 's/^/| /' conftest.$ac_ext >&5
34440
34441         ac_lo= ac_hi=
34442 fi
34443
34444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34445 fi
34446
34447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34448 # Binary search between lo and hi bounds.
34449 while test "x$ac_lo" != "x$ac_hi"; do
34450   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34451   cat >conftest.$ac_ext <<_ACEOF
34452 /* confdefs.h.  */
34453 _ACEOF
34454 cat confdefs.h >>conftest.$ac_ext
34455 cat >>conftest.$ac_ext <<_ACEOF
34456 /* end confdefs.h.  */
34457 $ac_includes_default
34458    typedef char ac__type_sizeof_;
34459 int
34460 main ()
34461 {
34462 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34463 test_array [0] = 0
34464
34465   ;
34466   return 0;
34467 }
34468 _ACEOF
34469 rm -f conftest.$ac_objext
34470 if { (ac_try="$ac_compile"
34471 case "(($ac_try" in
34472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34473   *) ac_try_echo=$ac_try;;
34474 esac
34475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34476   (eval "$ac_compile") 2>conftest.er1
34477   ac_status=$?
34478   grep -v '^ *+' conftest.er1 >conftest.err
34479   rm -f conftest.er1
34480   cat conftest.err >&5
34481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482   (exit $ac_status); } && {
34483          test -z "$ac_c_werror_flag" ||
34484          test ! -s conftest.err
34485        } && test -s conftest.$ac_objext; then
34486   ac_hi=$ac_mid
34487 else
34488   echo "$as_me: failed program was:" >&5
34489 sed 's/^/| /' conftest.$ac_ext >&5
34490
34491         ac_lo=`expr '(' $ac_mid ')' + 1`
34492 fi
34493
34494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34495 done
34496 case $ac_lo in
34497 ?*) ac_cv_sizeof_char=$ac_lo;;
34498 '') if test "$ac_cv_type_char" = yes; then
34499      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34500 See \`config.log' for more details." >&5
34501 echo "$as_me: error: cannot compute sizeof (char)
34502 See \`config.log' for more details." >&2;}
34503    { (exit 77); exit 77; }; }
34504    else
34505      ac_cv_sizeof_char=0
34506    fi ;;
34507 esac
34508 else
34509   cat >conftest.$ac_ext <<_ACEOF
34510 /* confdefs.h.  */
34511 _ACEOF
34512 cat confdefs.h >>conftest.$ac_ext
34513 cat >>conftest.$ac_ext <<_ACEOF
34514 /* end confdefs.h.  */
34515 $ac_includes_default
34516    typedef char ac__type_sizeof_;
34517 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34518 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34519 #include <stdio.h>
34520 #include <stdlib.h>
34521 int
34522 main ()
34523 {
34524
34525   FILE *f = fopen ("conftest.val", "w");
34526   if (! f)
34527     return 1;
34528   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34529     {
34530       long int i = longval ();
34531       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34532         return 1;
34533       fprintf (f, "%ld\n", i);
34534     }
34535   else
34536     {
34537       unsigned long int i = ulongval ();
34538       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34539         return 1;
34540       fprintf (f, "%lu\n", i);
34541     }
34542   return ferror (f) || fclose (f) != 0;
34543
34544   ;
34545   return 0;
34546 }
34547 _ACEOF
34548 rm -f conftest$ac_exeext
34549 if { (ac_try="$ac_link"
34550 case "(($ac_try" in
34551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34552   *) ac_try_echo=$ac_try;;
34553 esac
34554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34555   (eval "$ac_link") 2>&5
34556   ac_status=$?
34557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34559   { (case "(($ac_try" in
34560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34561   *) ac_try_echo=$ac_try;;
34562 esac
34563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34564   (eval "$ac_try") 2>&5
34565   ac_status=$?
34566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567   (exit $ac_status); }; }; then
34568   ac_cv_sizeof_char=`cat conftest.val`
34569 else
34570   echo "$as_me: program exited with status $ac_status" >&5
34571 echo "$as_me: failed program was:" >&5
34572 sed 's/^/| /' conftest.$ac_ext >&5
34573
34574 ( exit $ac_status )
34575 if test "$ac_cv_type_char" = yes; then
34576      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34577 See \`config.log' for more details." >&5
34578 echo "$as_me: error: cannot compute sizeof (char)
34579 See \`config.log' for more details." >&2;}
34580    { (exit 77); exit 77; }; }
34581    else
34582      ac_cv_sizeof_char=0
34583    fi
34584 fi
34585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34586 fi
34587 rm -f conftest.val
34588 fi
34589 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34590 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34591
34592
34593
34594 cat >>confdefs.h <<_ACEOF
34595 #define SIZEOF_CHAR $ac_cv_sizeof_char
34596 _ACEOF
34597
34598
34599 { echo "$as_me:$LINENO: checking for short int" >&5
34600 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34601 if test "${ac_cv_type_short_int+set}" = set; then
34602   echo $ECHO_N "(cached) $ECHO_C" >&6
34603 else
34604   cat >conftest.$ac_ext <<_ACEOF
34605 /* confdefs.h.  */
34606 _ACEOF
34607 cat confdefs.h >>conftest.$ac_ext
34608 cat >>conftest.$ac_ext <<_ACEOF
34609 /* end confdefs.h.  */
34610 $ac_includes_default
34611 typedef short int ac__type_new_;
34612 int
34613 main ()
34614 {
34615 if ((ac__type_new_ *) 0)
34616   return 0;
34617 if (sizeof (ac__type_new_))
34618   return 0;
34619   ;
34620   return 0;
34621 }
34622 _ACEOF
34623 rm -f conftest.$ac_objext
34624 if { (ac_try="$ac_compile"
34625 case "(($ac_try" in
34626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34627   *) ac_try_echo=$ac_try;;
34628 esac
34629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34630   (eval "$ac_compile") 2>conftest.er1
34631   ac_status=$?
34632   grep -v '^ *+' conftest.er1 >conftest.err
34633   rm -f conftest.er1
34634   cat conftest.err >&5
34635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636   (exit $ac_status); } && {
34637          test -z "$ac_c_werror_flag" ||
34638          test ! -s conftest.err
34639        } && test -s conftest.$ac_objext; then
34640   ac_cv_type_short_int=yes
34641 else
34642   echo "$as_me: failed program was:" >&5
34643 sed 's/^/| /' conftest.$ac_ext >&5
34644
34645         ac_cv_type_short_int=no
34646 fi
34647
34648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34649 fi
34650 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34651 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34652
34653 # The cast to long int works around a bug in the HP C Compiler
34654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34656 # This bug is HP SR number 8606223364.
34657 { echo "$as_me:$LINENO: checking size of short int" >&5
34658 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34659 if test "${ac_cv_sizeof_short_int+set}" = set; then
34660   echo $ECHO_N "(cached) $ECHO_C" >&6
34661 else
34662   if test "$cross_compiling" = yes; then
34663   # Depending upon the size, compute the lo and hi bounds.
34664 cat >conftest.$ac_ext <<_ACEOF
34665 /* confdefs.h.  */
34666 _ACEOF
34667 cat confdefs.h >>conftest.$ac_ext
34668 cat >>conftest.$ac_ext <<_ACEOF
34669 /* end confdefs.h.  */
34670 $ac_includes_default
34671    typedef short int ac__type_sizeof_;
34672 int
34673 main ()
34674 {
34675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34676 test_array [0] = 0
34677
34678   ;
34679   return 0;
34680 }
34681 _ACEOF
34682 rm -f conftest.$ac_objext
34683 if { (ac_try="$ac_compile"
34684 case "(($ac_try" in
34685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34686   *) ac_try_echo=$ac_try;;
34687 esac
34688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34689   (eval "$ac_compile") 2>conftest.er1
34690   ac_status=$?
34691   grep -v '^ *+' conftest.er1 >conftest.err
34692   rm -f conftest.er1
34693   cat conftest.err >&5
34694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695   (exit $ac_status); } && {
34696          test -z "$ac_c_werror_flag" ||
34697          test ! -s conftest.err
34698        } && test -s conftest.$ac_objext; then
34699   ac_lo=0 ac_mid=0
34700   while :; do
34701     cat >conftest.$ac_ext <<_ACEOF
34702 /* confdefs.h.  */
34703 _ACEOF
34704 cat confdefs.h >>conftest.$ac_ext
34705 cat >>conftest.$ac_ext <<_ACEOF
34706 /* end confdefs.h.  */
34707 $ac_includes_default
34708    typedef short int ac__type_sizeof_;
34709 int
34710 main ()
34711 {
34712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34713 test_array [0] = 0
34714
34715   ;
34716   return 0;
34717 }
34718 _ACEOF
34719 rm -f conftest.$ac_objext
34720 if { (ac_try="$ac_compile"
34721 case "(($ac_try" in
34722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34723   *) ac_try_echo=$ac_try;;
34724 esac
34725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34726   (eval "$ac_compile") 2>conftest.er1
34727   ac_status=$?
34728   grep -v '^ *+' conftest.er1 >conftest.err
34729   rm -f conftest.er1
34730   cat conftest.err >&5
34731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732   (exit $ac_status); } && {
34733          test -z "$ac_c_werror_flag" ||
34734          test ! -s conftest.err
34735        } && test -s conftest.$ac_objext; then
34736   ac_hi=$ac_mid; break
34737 else
34738   echo "$as_me: failed program was:" >&5
34739 sed 's/^/| /' conftest.$ac_ext >&5
34740
34741         ac_lo=`expr $ac_mid + 1`
34742                         if test $ac_lo -le $ac_mid; then
34743                           ac_lo= ac_hi=
34744                           break
34745                         fi
34746                         ac_mid=`expr 2 '*' $ac_mid + 1`
34747 fi
34748
34749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34750   done
34751 else
34752   echo "$as_me: failed program was:" >&5
34753 sed 's/^/| /' conftest.$ac_ext >&5
34754
34755         cat >conftest.$ac_ext <<_ACEOF
34756 /* confdefs.h.  */
34757 _ACEOF
34758 cat confdefs.h >>conftest.$ac_ext
34759 cat >>conftest.$ac_ext <<_ACEOF
34760 /* end confdefs.h.  */
34761 $ac_includes_default
34762    typedef short int ac__type_sizeof_;
34763 int
34764 main ()
34765 {
34766 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34767 test_array [0] = 0
34768
34769   ;
34770   return 0;
34771 }
34772 _ACEOF
34773 rm -f conftest.$ac_objext
34774 if { (ac_try="$ac_compile"
34775 case "(($ac_try" in
34776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34777   *) ac_try_echo=$ac_try;;
34778 esac
34779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34780   (eval "$ac_compile") 2>conftest.er1
34781   ac_status=$?
34782   grep -v '^ *+' conftest.er1 >conftest.err
34783   rm -f conftest.er1
34784   cat conftest.err >&5
34785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786   (exit $ac_status); } && {
34787          test -z "$ac_c_werror_flag" ||
34788          test ! -s conftest.err
34789        } && test -s conftest.$ac_objext; then
34790   ac_hi=-1 ac_mid=-1
34791   while :; do
34792     cat >conftest.$ac_ext <<_ACEOF
34793 /* confdefs.h.  */
34794 _ACEOF
34795 cat confdefs.h >>conftest.$ac_ext
34796 cat >>conftest.$ac_ext <<_ACEOF
34797 /* end confdefs.h.  */
34798 $ac_includes_default
34799    typedef short int ac__type_sizeof_;
34800 int
34801 main ()
34802 {
34803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34804 test_array [0] = 0
34805
34806   ;
34807   return 0;
34808 }
34809 _ACEOF
34810 rm -f conftest.$ac_objext
34811 if { (ac_try="$ac_compile"
34812 case "(($ac_try" in
34813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34814   *) ac_try_echo=$ac_try;;
34815 esac
34816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34817   (eval "$ac_compile") 2>conftest.er1
34818   ac_status=$?
34819   grep -v '^ *+' conftest.er1 >conftest.err
34820   rm -f conftest.er1
34821   cat conftest.err >&5
34822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823   (exit $ac_status); } && {
34824          test -z "$ac_c_werror_flag" ||
34825          test ! -s conftest.err
34826        } && test -s conftest.$ac_objext; then
34827   ac_lo=$ac_mid; break
34828 else
34829   echo "$as_me: failed program was:" >&5
34830 sed 's/^/| /' conftest.$ac_ext >&5
34831
34832         ac_hi=`expr '(' $ac_mid ')' - 1`
34833                         if test $ac_mid -le $ac_hi; then
34834                           ac_lo= ac_hi=
34835                           break
34836                         fi
34837                         ac_mid=`expr 2 '*' $ac_mid`
34838 fi
34839
34840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34841   done
34842 else
34843   echo "$as_me: failed program was:" >&5
34844 sed 's/^/| /' conftest.$ac_ext >&5
34845
34846         ac_lo= ac_hi=
34847 fi
34848
34849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34850 fi
34851
34852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34853 # Binary search between lo and hi bounds.
34854 while test "x$ac_lo" != "x$ac_hi"; do
34855   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34856   cat >conftest.$ac_ext <<_ACEOF
34857 /* confdefs.h.  */
34858 _ACEOF
34859 cat confdefs.h >>conftest.$ac_ext
34860 cat >>conftest.$ac_ext <<_ACEOF
34861 /* end confdefs.h.  */
34862 $ac_includes_default
34863    typedef short int ac__type_sizeof_;
34864 int
34865 main ()
34866 {
34867 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34868 test_array [0] = 0
34869
34870   ;
34871   return 0;
34872 }
34873 _ACEOF
34874 rm -f conftest.$ac_objext
34875 if { (ac_try="$ac_compile"
34876 case "(($ac_try" in
34877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34878   *) ac_try_echo=$ac_try;;
34879 esac
34880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34881   (eval "$ac_compile") 2>conftest.er1
34882   ac_status=$?
34883   grep -v '^ *+' conftest.er1 >conftest.err
34884   rm -f conftest.er1
34885   cat conftest.err >&5
34886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34887   (exit $ac_status); } && {
34888          test -z "$ac_c_werror_flag" ||
34889          test ! -s conftest.err
34890        } && test -s conftest.$ac_objext; then
34891   ac_hi=$ac_mid
34892 else
34893   echo "$as_me: failed program was:" >&5
34894 sed 's/^/| /' conftest.$ac_ext >&5
34895
34896         ac_lo=`expr '(' $ac_mid ')' + 1`
34897 fi
34898
34899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34900 done
34901 case $ac_lo in
34902 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34903 '') if test "$ac_cv_type_short_int" = yes; then
34904      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34905 See \`config.log' for more details." >&5
34906 echo "$as_me: error: cannot compute sizeof (short int)
34907 See \`config.log' for more details." >&2;}
34908    { (exit 77); exit 77; }; }
34909    else
34910      ac_cv_sizeof_short_int=0
34911    fi ;;
34912 esac
34913 else
34914   cat >conftest.$ac_ext <<_ACEOF
34915 /* confdefs.h.  */
34916 _ACEOF
34917 cat confdefs.h >>conftest.$ac_ext
34918 cat >>conftest.$ac_ext <<_ACEOF
34919 /* end confdefs.h.  */
34920 $ac_includes_default
34921    typedef short int ac__type_sizeof_;
34922 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34923 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34924 #include <stdio.h>
34925 #include <stdlib.h>
34926 int
34927 main ()
34928 {
34929
34930   FILE *f = fopen ("conftest.val", "w");
34931   if (! f)
34932     return 1;
34933   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34934     {
34935       long int i = longval ();
34936       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34937         return 1;
34938       fprintf (f, "%ld\n", i);
34939     }
34940   else
34941     {
34942       unsigned long int i = ulongval ();
34943       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34944         return 1;
34945       fprintf (f, "%lu\n", i);
34946     }
34947   return ferror (f) || fclose (f) != 0;
34948
34949   ;
34950   return 0;
34951 }
34952 _ACEOF
34953 rm -f conftest$ac_exeext
34954 if { (ac_try="$ac_link"
34955 case "(($ac_try" in
34956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34957   *) ac_try_echo=$ac_try;;
34958 esac
34959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34960   (eval "$ac_link") 2>&5
34961   ac_status=$?
34962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34964   { (case "(($ac_try" in
34965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34966   *) ac_try_echo=$ac_try;;
34967 esac
34968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34969   (eval "$ac_try") 2>&5
34970   ac_status=$?
34971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34972   (exit $ac_status); }; }; then
34973   ac_cv_sizeof_short_int=`cat conftest.val`
34974 else
34975   echo "$as_me: program exited with status $ac_status" >&5
34976 echo "$as_me: failed program was:" >&5
34977 sed 's/^/| /' conftest.$ac_ext >&5
34978
34979 ( exit $ac_status )
34980 if test "$ac_cv_type_short_int" = yes; then
34981      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34982 See \`config.log' for more details." >&5
34983 echo "$as_me: error: cannot compute sizeof (short int)
34984 See \`config.log' for more details." >&2;}
34985    { (exit 77); exit 77; }; }
34986    else
34987      ac_cv_sizeof_short_int=0
34988    fi
34989 fi
34990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34991 fi
34992 rm -f conftest.val
34993 fi
34994 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34995 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34996
34997
34998
34999 cat >>confdefs.h <<_ACEOF
35000 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35001 _ACEOF
35002
35003
35004 { echo "$as_me:$LINENO: checking for int" >&5
35005 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35006 if test "${ac_cv_type_int+set}" = set; then
35007   echo $ECHO_N "(cached) $ECHO_C" >&6
35008 else
35009   cat >conftest.$ac_ext <<_ACEOF
35010 /* confdefs.h.  */
35011 _ACEOF
35012 cat confdefs.h >>conftest.$ac_ext
35013 cat >>conftest.$ac_ext <<_ACEOF
35014 /* end confdefs.h.  */
35015 $ac_includes_default
35016 typedef int ac__type_new_;
35017 int
35018 main ()
35019 {
35020 if ((ac__type_new_ *) 0)
35021   return 0;
35022 if (sizeof (ac__type_new_))
35023   return 0;
35024   ;
35025   return 0;
35026 }
35027 _ACEOF
35028 rm -f conftest.$ac_objext
35029 if { (ac_try="$ac_compile"
35030 case "(($ac_try" in
35031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35032   *) ac_try_echo=$ac_try;;
35033 esac
35034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35035   (eval "$ac_compile") 2>conftest.er1
35036   ac_status=$?
35037   grep -v '^ *+' conftest.er1 >conftest.err
35038   rm -f conftest.er1
35039   cat conftest.err >&5
35040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041   (exit $ac_status); } && {
35042          test -z "$ac_c_werror_flag" ||
35043          test ! -s conftest.err
35044        } && test -s conftest.$ac_objext; then
35045   ac_cv_type_int=yes
35046 else
35047   echo "$as_me: failed program was:" >&5
35048 sed 's/^/| /' conftest.$ac_ext >&5
35049
35050         ac_cv_type_int=no
35051 fi
35052
35053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35054 fi
35055 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35056 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35057
35058 # The cast to long int works around a bug in the HP C Compiler
35059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35061 # This bug is HP SR number 8606223364.
35062 { echo "$as_me:$LINENO: checking size of int" >&5
35063 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35064 if test "${ac_cv_sizeof_int+set}" = set; then
35065   echo $ECHO_N "(cached) $ECHO_C" >&6
35066 else
35067   if test "$cross_compiling" = yes; then
35068   # Depending upon the size, compute the lo and hi bounds.
35069 cat >conftest.$ac_ext <<_ACEOF
35070 /* confdefs.h.  */
35071 _ACEOF
35072 cat confdefs.h >>conftest.$ac_ext
35073 cat >>conftest.$ac_ext <<_ACEOF
35074 /* end confdefs.h.  */
35075 $ac_includes_default
35076    typedef int ac__type_sizeof_;
35077 int
35078 main ()
35079 {
35080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35081 test_array [0] = 0
35082
35083   ;
35084   return 0;
35085 }
35086 _ACEOF
35087 rm -f conftest.$ac_objext
35088 if { (ac_try="$ac_compile"
35089 case "(($ac_try" in
35090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35091   *) ac_try_echo=$ac_try;;
35092 esac
35093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35094   (eval "$ac_compile") 2>conftest.er1
35095   ac_status=$?
35096   grep -v '^ *+' conftest.er1 >conftest.err
35097   rm -f conftest.er1
35098   cat conftest.err >&5
35099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100   (exit $ac_status); } && {
35101          test -z "$ac_c_werror_flag" ||
35102          test ! -s conftest.err
35103        } && test -s conftest.$ac_objext; then
35104   ac_lo=0 ac_mid=0
35105   while :; do
35106     cat >conftest.$ac_ext <<_ACEOF
35107 /* confdefs.h.  */
35108 _ACEOF
35109 cat confdefs.h >>conftest.$ac_ext
35110 cat >>conftest.$ac_ext <<_ACEOF
35111 /* end confdefs.h.  */
35112 $ac_includes_default
35113    typedef int ac__type_sizeof_;
35114 int
35115 main ()
35116 {
35117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35118 test_array [0] = 0
35119
35120   ;
35121   return 0;
35122 }
35123 _ACEOF
35124 rm -f conftest.$ac_objext
35125 if { (ac_try="$ac_compile"
35126 case "(($ac_try" in
35127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35128   *) ac_try_echo=$ac_try;;
35129 esac
35130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35131   (eval "$ac_compile") 2>conftest.er1
35132   ac_status=$?
35133   grep -v '^ *+' conftest.er1 >conftest.err
35134   rm -f conftest.er1
35135   cat conftest.err >&5
35136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35137   (exit $ac_status); } && {
35138          test -z "$ac_c_werror_flag" ||
35139          test ! -s conftest.err
35140        } && test -s conftest.$ac_objext; then
35141   ac_hi=$ac_mid; break
35142 else
35143   echo "$as_me: failed program was:" >&5
35144 sed 's/^/| /' conftest.$ac_ext >&5
35145
35146         ac_lo=`expr $ac_mid + 1`
35147                         if test $ac_lo -le $ac_mid; then
35148                           ac_lo= ac_hi=
35149                           break
35150                         fi
35151                         ac_mid=`expr 2 '*' $ac_mid + 1`
35152 fi
35153
35154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35155   done
35156 else
35157   echo "$as_me: failed program was:" >&5
35158 sed 's/^/| /' conftest.$ac_ext >&5
35159
35160         cat >conftest.$ac_ext <<_ACEOF
35161 /* confdefs.h.  */
35162 _ACEOF
35163 cat confdefs.h >>conftest.$ac_ext
35164 cat >>conftest.$ac_ext <<_ACEOF
35165 /* end confdefs.h.  */
35166 $ac_includes_default
35167    typedef int ac__type_sizeof_;
35168 int
35169 main ()
35170 {
35171 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35172 test_array [0] = 0
35173
35174   ;
35175   return 0;
35176 }
35177 _ACEOF
35178 rm -f conftest.$ac_objext
35179 if { (ac_try="$ac_compile"
35180 case "(($ac_try" in
35181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35182   *) ac_try_echo=$ac_try;;
35183 esac
35184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35185   (eval "$ac_compile") 2>conftest.er1
35186   ac_status=$?
35187   grep -v '^ *+' conftest.er1 >conftest.err
35188   rm -f conftest.er1
35189   cat conftest.err >&5
35190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191   (exit $ac_status); } && {
35192          test -z "$ac_c_werror_flag" ||
35193          test ! -s conftest.err
35194        } && test -s conftest.$ac_objext; then
35195   ac_hi=-1 ac_mid=-1
35196   while :; do
35197     cat >conftest.$ac_ext <<_ACEOF
35198 /* confdefs.h.  */
35199 _ACEOF
35200 cat confdefs.h >>conftest.$ac_ext
35201 cat >>conftest.$ac_ext <<_ACEOF
35202 /* end confdefs.h.  */
35203 $ac_includes_default
35204    typedef int ac__type_sizeof_;
35205 int
35206 main ()
35207 {
35208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35209 test_array [0] = 0
35210
35211   ;
35212   return 0;
35213 }
35214 _ACEOF
35215 rm -f conftest.$ac_objext
35216 if { (ac_try="$ac_compile"
35217 case "(($ac_try" in
35218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35219   *) ac_try_echo=$ac_try;;
35220 esac
35221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35222   (eval "$ac_compile") 2>conftest.er1
35223   ac_status=$?
35224   grep -v '^ *+' conftest.er1 >conftest.err
35225   rm -f conftest.er1
35226   cat conftest.err >&5
35227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228   (exit $ac_status); } && {
35229          test -z "$ac_c_werror_flag" ||
35230          test ! -s conftest.err
35231        } && test -s conftest.$ac_objext; then
35232   ac_lo=$ac_mid; break
35233 else
35234   echo "$as_me: failed program was:" >&5
35235 sed 's/^/| /' conftest.$ac_ext >&5
35236
35237         ac_hi=`expr '(' $ac_mid ')' - 1`
35238                         if test $ac_mid -le $ac_hi; then
35239                           ac_lo= ac_hi=
35240                           break
35241                         fi
35242                         ac_mid=`expr 2 '*' $ac_mid`
35243 fi
35244
35245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35246   done
35247 else
35248   echo "$as_me: failed program was:" >&5
35249 sed 's/^/| /' conftest.$ac_ext >&5
35250
35251         ac_lo= ac_hi=
35252 fi
35253
35254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35255 fi
35256
35257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35258 # Binary search between lo and hi bounds.
35259 while test "x$ac_lo" != "x$ac_hi"; do
35260   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35261   cat >conftest.$ac_ext <<_ACEOF
35262 /* confdefs.h.  */
35263 _ACEOF
35264 cat confdefs.h >>conftest.$ac_ext
35265 cat >>conftest.$ac_ext <<_ACEOF
35266 /* end confdefs.h.  */
35267 $ac_includes_default
35268    typedef int ac__type_sizeof_;
35269 int
35270 main ()
35271 {
35272 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35273 test_array [0] = 0
35274
35275   ;
35276   return 0;
35277 }
35278 _ACEOF
35279 rm -f conftest.$ac_objext
35280 if { (ac_try="$ac_compile"
35281 case "(($ac_try" in
35282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35283   *) ac_try_echo=$ac_try;;
35284 esac
35285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35286   (eval "$ac_compile") 2>conftest.er1
35287   ac_status=$?
35288   grep -v '^ *+' conftest.er1 >conftest.err
35289   rm -f conftest.er1
35290   cat conftest.err >&5
35291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292   (exit $ac_status); } && {
35293          test -z "$ac_c_werror_flag" ||
35294          test ! -s conftest.err
35295        } && test -s conftest.$ac_objext; then
35296   ac_hi=$ac_mid
35297 else
35298   echo "$as_me: failed program was:" >&5
35299 sed 's/^/| /' conftest.$ac_ext >&5
35300
35301         ac_lo=`expr '(' $ac_mid ')' + 1`
35302 fi
35303
35304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305 done
35306 case $ac_lo in
35307 ?*) ac_cv_sizeof_int=$ac_lo;;
35308 '') if test "$ac_cv_type_int" = yes; then
35309      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35310 See \`config.log' for more details." >&5
35311 echo "$as_me: error: cannot compute sizeof (int)
35312 See \`config.log' for more details." >&2;}
35313    { (exit 77); exit 77; }; }
35314    else
35315      ac_cv_sizeof_int=0
35316    fi ;;
35317 esac
35318 else
35319   cat >conftest.$ac_ext <<_ACEOF
35320 /* confdefs.h.  */
35321 _ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h.  */
35325 $ac_includes_default
35326    typedef int ac__type_sizeof_;
35327 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35328 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35329 #include <stdio.h>
35330 #include <stdlib.h>
35331 int
35332 main ()
35333 {
35334
35335   FILE *f = fopen ("conftest.val", "w");
35336   if (! f)
35337     return 1;
35338   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35339     {
35340       long int i = longval ();
35341       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35342         return 1;
35343       fprintf (f, "%ld\n", i);
35344     }
35345   else
35346     {
35347       unsigned long int i = ulongval ();
35348       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35349         return 1;
35350       fprintf (f, "%lu\n", i);
35351     }
35352   return ferror (f) || fclose (f) != 0;
35353
35354   ;
35355   return 0;
35356 }
35357 _ACEOF
35358 rm -f conftest$ac_exeext
35359 if { (ac_try="$ac_link"
35360 case "(($ac_try" in
35361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35362   *) ac_try_echo=$ac_try;;
35363 esac
35364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35365   (eval "$ac_link") 2>&5
35366   ac_status=$?
35367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35369   { (case "(($ac_try" in
35370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35371   *) ac_try_echo=$ac_try;;
35372 esac
35373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35374   (eval "$ac_try") 2>&5
35375   ac_status=$?
35376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377   (exit $ac_status); }; }; then
35378   ac_cv_sizeof_int=`cat conftest.val`
35379 else
35380   echo "$as_me: program exited with status $ac_status" >&5
35381 echo "$as_me: failed program was:" >&5
35382 sed 's/^/| /' conftest.$ac_ext >&5
35383
35384 ( exit $ac_status )
35385 if test "$ac_cv_type_int" = yes; then
35386      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35387 See \`config.log' for more details." >&5
35388 echo "$as_me: error: cannot compute sizeof (int)
35389 See \`config.log' for more details." >&2;}
35390    { (exit 77); exit 77; }; }
35391    else
35392      ac_cv_sizeof_int=0
35393    fi
35394 fi
35395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35396 fi
35397 rm -f conftest.val
35398 fi
35399 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35400 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35401
35402
35403
35404 cat >>confdefs.h <<_ACEOF
35405 #define SIZEOF_INT $ac_cv_sizeof_int
35406 _ACEOF
35407
35408
35409 { echo "$as_me:$LINENO: checking for long int" >&5
35410 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35411 if test "${ac_cv_type_long_int+set}" = set; then
35412   echo $ECHO_N "(cached) $ECHO_C" >&6
35413 else
35414   cat >conftest.$ac_ext <<_ACEOF
35415 /* confdefs.h.  */
35416 _ACEOF
35417 cat confdefs.h >>conftest.$ac_ext
35418 cat >>conftest.$ac_ext <<_ACEOF
35419 /* end confdefs.h.  */
35420 $ac_includes_default
35421 typedef long int ac__type_new_;
35422 int
35423 main ()
35424 {
35425 if ((ac__type_new_ *) 0)
35426   return 0;
35427 if (sizeof (ac__type_new_))
35428   return 0;
35429   ;
35430   return 0;
35431 }
35432 _ACEOF
35433 rm -f conftest.$ac_objext
35434 if { (ac_try="$ac_compile"
35435 case "(($ac_try" in
35436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35437   *) ac_try_echo=$ac_try;;
35438 esac
35439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35440   (eval "$ac_compile") 2>conftest.er1
35441   ac_status=$?
35442   grep -v '^ *+' conftest.er1 >conftest.err
35443   rm -f conftest.er1
35444   cat conftest.err >&5
35445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446   (exit $ac_status); } && {
35447          test -z "$ac_c_werror_flag" ||
35448          test ! -s conftest.err
35449        } && test -s conftest.$ac_objext; then
35450   ac_cv_type_long_int=yes
35451 else
35452   echo "$as_me: failed program was:" >&5
35453 sed 's/^/| /' conftest.$ac_ext >&5
35454
35455         ac_cv_type_long_int=no
35456 fi
35457
35458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35459 fi
35460 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35461 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35462
35463 # The cast to long int works around a bug in the HP C Compiler
35464 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35465 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35466 # This bug is HP SR number 8606223364.
35467 { echo "$as_me:$LINENO: checking size of long int" >&5
35468 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35469 if test "${ac_cv_sizeof_long_int+set}" = set; then
35470   echo $ECHO_N "(cached) $ECHO_C" >&6
35471 else
35472   if test "$cross_compiling" = yes; then
35473   # Depending upon the size, compute the lo and hi bounds.
35474 cat >conftest.$ac_ext <<_ACEOF
35475 /* confdefs.h.  */
35476 _ACEOF
35477 cat confdefs.h >>conftest.$ac_ext
35478 cat >>conftest.$ac_ext <<_ACEOF
35479 /* end confdefs.h.  */
35480 $ac_includes_default
35481    typedef long int ac__type_sizeof_;
35482 int
35483 main ()
35484 {
35485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35486 test_array [0] = 0
35487
35488   ;
35489   return 0;
35490 }
35491 _ACEOF
35492 rm -f conftest.$ac_objext
35493 if { (ac_try="$ac_compile"
35494 case "(($ac_try" in
35495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35496   *) ac_try_echo=$ac_try;;
35497 esac
35498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35499   (eval "$ac_compile") 2>conftest.er1
35500   ac_status=$?
35501   grep -v '^ *+' conftest.er1 >conftest.err
35502   rm -f conftest.er1
35503   cat conftest.err >&5
35504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505   (exit $ac_status); } && {
35506          test -z "$ac_c_werror_flag" ||
35507          test ! -s conftest.err
35508        } && test -s conftest.$ac_objext; then
35509   ac_lo=0 ac_mid=0
35510   while :; do
35511     cat >conftest.$ac_ext <<_ACEOF
35512 /* confdefs.h.  */
35513 _ACEOF
35514 cat confdefs.h >>conftest.$ac_ext
35515 cat >>conftest.$ac_ext <<_ACEOF
35516 /* end confdefs.h.  */
35517 $ac_includes_default
35518    typedef long int ac__type_sizeof_;
35519 int
35520 main ()
35521 {
35522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35523 test_array [0] = 0
35524
35525   ;
35526   return 0;
35527 }
35528 _ACEOF
35529 rm -f conftest.$ac_objext
35530 if { (ac_try="$ac_compile"
35531 case "(($ac_try" in
35532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35533   *) ac_try_echo=$ac_try;;
35534 esac
35535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35536   (eval "$ac_compile") 2>conftest.er1
35537   ac_status=$?
35538   grep -v '^ *+' conftest.er1 >conftest.err
35539   rm -f conftest.er1
35540   cat conftest.err >&5
35541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542   (exit $ac_status); } && {
35543          test -z "$ac_c_werror_flag" ||
35544          test ! -s conftest.err
35545        } && test -s conftest.$ac_objext; then
35546   ac_hi=$ac_mid; break
35547 else
35548   echo "$as_me: failed program was:" >&5
35549 sed 's/^/| /' conftest.$ac_ext >&5
35550
35551         ac_lo=`expr $ac_mid + 1`
35552                         if test $ac_lo -le $ac_mid; then
35553                           ac_lo= ac_hi=
35554                           break
35555                         fi
35556                         ac_mid=`expr 2 '*' $ac_mid + 1`
35557 fi
35558
35559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35560   done
35561 else
35562   echo "$as_me: failed program was:" >&5
35563 sed 's/^/| /' conftest.$ac_ext >&5
35564
35565         cat >conftest.$ac_ext <<_ACEOF
35566 /* confdefs.h.  */
35567 _ACEOF
35568 cat confdefs.h >>conftest.$ac_ext
35569 cat >>conftest.$ac_ext <<_ACEOF
35570 /* end confdefs.h.  */
35571 $ac_includes_default
35572    typedef long int ac__type_sizeof_;
35573 int
35574 main ()
35575 {
35576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35577 test_array [0] = 0
35578
35579   ;
35580   return 0;
35581 }
35582 _ACEOF
35583 rm -f conftest.$ac_objext
35584 if { (ac_try="$ac_compile"
35585 case "(($ac_try" in
35586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35587   *) ac_try_echo=$ac_try;;
35588 esac
35589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35590   (eval "$ac_compile") 2>conftest.er1
35591   ac_status=$?
35592   grep -v '^ *+' conftest.er1 >conftest.err
35593   rm -f conftest.er1
35594   cat conftest.err >&5
35595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596   (exit $ac_status); } && {
35597          test -z "$ac_c_werror_flag" ||
35598          test ! -s conftest.err
35599        } && test -s conftest.$ac_objext; then
35600   ac_hi=-1 ac_mid=-1
35601   while :; do
35602     cat >conftest.$ac_ext <<_ACEOF
35603 /* confdefs.h.  */
35604 _ACEOF
35605 cat confdefs.h >>conftest.$ac_ext
35606 cat >>conftest.$ac_ext <<_ACEOF
35607 /* end confdefs.h.  */
35608 $ac_includes_default
35609    typedef long int ac__type_sizeof_;
35610 int
35611 main ()
35612 {
35613 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35614 test_array [0] = 0
35615
35616   ;
35617   return 0;
35618 }
35619 _ACEOF
35620 rm -f conftest.$ac_objext
35621 if { (ac_try="$ac_compile"
35622 case "(($ac_try" in
35623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35624   *) ac_try_echo=$ac_try;;
35625 esac
35626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35627   (eval "$ac_compile") 2>conftest.er1
35628   ac_status=$?
35629   grep -v '^ *+' conftest.er1 >conftest.err
35630   rm -f conftest.er1
35631   cat conftest.err >&5
35632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633   (exit $ac_status); } && {
35634          test -z "$ac_c_werror_flag" ||
35635          test ! -s conftest.err
35636        } && test -s conftest.$ac_objext; then
35637   ac_lo=$ac_mid; break
35638 else
35639   echo "$as_me: failed program was:" >&5
35640 sed 's/^/| /' conftest.$ac_ext >&5
35641
35642         ac_hi=`expr '(' $ac_mid ')' - 1`
35643                         if test $ac_mid -le $ac_hi; then
35644                           ac_lo= ac_hi=
35645                           break
35646                         fi
35647                         ac_mid=`expr 2 '*' $ac_mid`
35648 fi
35649
35650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35651   done
35652 else
35653   echo "$as_me: failed program was:" >&5
35654 sed 's/^/| /' conftest.$ac_ext >&5
35655
35656         ac_lo= ac_hi=
35657 fi
35658
35659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35660 fi
35661
35662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35663 # Binary search between lo and hi bounds.
35664 while test "x$ac_lo" != "x$ac_hi"; do
35665   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35666   cat >conftest.$ac_ext <<_ACEOF
35667 /* confdefs.h.  */
35668 _ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h.  */
35672 $ac_includes_default
35673    typedef long int ac__type_sizeof_;
35674 int
35675 main ()
35676 {
35677 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35678 test_array [0] = 0
35679
35680   ;
35681   return 0;
35682 }
35683 _ACEOF
35684 rm -f conftest.$ac_objext
35685 if { (ac_try="$ac_compile"
35686 case "(($ac_try" in
35687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35688   *) ac_try_echo=$ac_try;;
35689 esac
35690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35691   (eval "$ac_compile") 2>conftest.er1
35692   ac_status=$?
35693   grep -v '^ *+' conftest.er1 >conftest.err
35694   rm -f conftest.er1
35695   cat conftest.err >&5
35696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697   (exit $ac_status); } && {
35698          test -z "$ac_c_werror_flag" ||
35699          test ! -s conftest.err
35700        } && test -s conftest.$ac_objext; then
35701   ac_hi=$ac_mid
35702 else
35703   echo "$as_me: failed program was:" >&5
35704 sed 's/^/| /' conftest.$ac_ext >&5
35705
35706         ac_lo=`expr '(' $ac_mid ')' + 1`
35707 fi
35708
35709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35710 done
35711 case $ac_lo in
35712 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35713 '') if test "$ac_cv_type_long_int" = yes; then
35714      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35715 See \`config.log' for more details." >&5
35716 echo "$as_me: error: cannot compute sizeof (long int)
35717 See \`config.log' for more details." >&2;}
35718    { (exit 77); exit 77; }; }
35719    else
35720      ac_cv_sizeof_long_int=0
35721    fi ;;
35722 esac
35723 else
35724   cat >conftest.$ac_ext <<_ACEOF
35725 /* confdefs.h.  */
35726 _ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h.  */
35730 $ac_includes_default
35731    typedef long int ac__type_sizeof_;
35732 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35733 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35734 #include <stdio.h>
35735 #include <stdlib.h>
35736 int
35737 main ()
35738 {
35739
35740   FILE *f = fopen ("conftest.val", "w");
35741   if (! f)
35742     return 1;
35743   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35744     {
35745       long int i = longval ();
35746       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35747         return 1;
35748       fprintf (f, "%ld\n", i);
35749     }
35750   else
35751     {
35752       unsigned long int i = ulongval ();
35753       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35754         return 1;
35755       fprintf (f, "%lu\n", i);
35756     }
35757   return ferror (f) || fclose (f) != 0;
35758
35759   ;
35760   return 0;
35761 }
35762 _ACEOF
35763 rm -f conftest$ac_exeext
35764 if { (ac_try="$ac_link"
35765 case "(($ac_try" in
35766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35767   *) ac_try_echo=$ac_try;;
35768 esac
35769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35770   (eval "$ac_link") 2>&5
35771   ac_status=$?
35772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35773   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35774   { (case "(($ac_try" in
35775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35776   *) ac_try_echo=$ac_try;;
35777 esac
35778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35779   (eval "$ac_try") 2>&5
35780   ac_status=$?
35781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35782   (exit $ac_status); }; }; then
35783   ac_cv_sizeof_long_int=`cat conftest.val`
35784 else
35785   echo "$as_me: program exited with status $ac_status" >&5
35786 echo "$as_me: failed program was:" >&5
35787 sed 's/^/| /' conftest.$ac_ext >&5
35788
35789 ( exit $ac_status )
35790 if test "$ac_cv_type_long_int" = yes; then
35791      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35792 See \`config.log' for more details." >&5
35793 echo "$as_me: error: cannot compute sizeof (long int)
35794 See \`config.log' for more details." >&2;}
35795    { (exit 77); exit 77; }; }
35796    else
35797      ac_cv_sizeof_long_int=0
35798    fi
35799 fi
35800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35801 fi
35802 rm -f conftest.val
35803 fi
35804 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35805 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35806
35807
35808
35809 cat >>confdefs.h <<_ACEOF
35810 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35811 _ACEOF
35812
35813
35814 { echo "$as_me:$LINENO: checking for long long int" >&5
35815 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35816 if test "${ac_cv_type_long_long_int+set}" = set; then
35817   echo $ECHO_N "(cached) $ECHO_C" >&6
35818 else
35819   cat >conftest.$ac_ext <<_ACEOF
35820 /* confdefs.h.  */
35821 _ACEOF
35822 cat confdefs.h >>conftest.$ac_ext
35823 cat >>conftest.$ac_ext <<_ACEOF
35824 /* end confdefs.h.  */
35825 $ac_includes_default
35826 typedef long long int ac__type_new_;
35827 int
35828 main ()
35829 {
35830 if ((ac__type_new_ *) 0)
35831   return 0;
35832 if (sizeof (ac__type_new_))
35833   return 0;
35834   ;
35835   return 0;
35836 }
35837 _ACEOF
35838 rm -f conftest.$ac_objext
35839 if { (ac_try="$ac_compile"
35840 case "(($ac_try" in
35841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35842   *) ac_try_echo=$ac_try;;
35843 esac
35844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35845   (eval "$ac_compile") 2>conftest.er1
35846   ac_status=$?
35847   grep -v '^ *+' conftest.er1 >conftest.err
35848   rm -f conftest.er1
35849   cat conftest.err >&5
35850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35851   (exit $ac_status); } && {
35852          test -z "$ac_c_werror_flag" ||
35853          test ! -s conftest.err
35854        } && test -s conftest.$ac_objext; then
35855   ac_cv_type_long_long_int=yes
35856 else
35857   echo "$as_me: failed program was:" >&5
35858 sed 's/^/| /' conftest.$ac_ext >&5
35859
35860         ac_cv_type_long_long_int=no
35861 fi
35862
35863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35864 fi
35865 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35866 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35867
35868 # The cast to long int works around a bug in the HP C Compiler
35869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35871 # This bug is HP SR number 8606223364.
35872 { echo "$as_me:$LINENO: checking size of long long int" >&5
35873 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35874 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35875   echo $ECHO_N "(cached) $ECHO_C" >&6
35876 else
35877   if test "$cross_compiling" = yes; then
35878   # Depending upon the size, compute the lo and hi bounds.
35879 cat >conftest.$ac_ext <<_ACEOF
35880 /* confdefs.h.  */
35881 _ACEOF
35882 cat confdefs.h >>conftest.$ac_ext
35883 cat >>conftest.$ac_ext <<_ACEOF
35884 /* end confdefs.h.  */
35885 $ac_includes_default
35886    typedef long long int ac__type_sizeof_;
35887 int
35888 main ()
35889 {
35890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35891 test_array [0] = 0
35892
35893   ;
35894   return 0;
35895 }
35896 _ACEOF
35897 rm -f conftest.$ac_objext
35898 if { (ac_try="$ac_compile"
35899 case "(($ac_try" in
35900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35901   *) ac_try_echo=$ac_try;;
35902 esac
35903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35904   (eval "$ac_compile") 2>conftest.er1
35905   ac_status=$?
35906   grep -v '^ *+' conftest.er1 >conftest.err
35907   rm -f conftest.er1
35908   cat conftest.err >&5
35909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910   (exit $ac_status); } && {
35911          test -z "$ac_c_werror_flag" ||
35912          test ! -s conftest.err
35913        } && test -s conftest.$ac_objext; then
35914   ac_lo=0 ac_mid=0
35915   while :; do
35916     cat >conftest.$ac_ext <<_ACEOF
35917 /* confdefs.h.  */
35918 _ACEOF
35919 cat confdefs.h >>conftest.$ac_ext
35920 cat >>conftest.$ac_ext <<_ACEOF
35921 /* end confdefs.h.  */
35922 $ac_includes_default
35923    typedef long long int ac__type_sizeof_;
35924 int
35925 main ()
35926 {
35927 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35928 test_array [0] = 0
35929
35930   ;
35931   return 0;
35932 }
35933 _ACEOF
35934 rm -f conftest.$ac_objext
35935 if { (ac_try="$ac_compile"
35936 case "(($ac_try" in
35937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35938   *) ac_try_echo=$ac_try;;
35939 esac
35940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35941   (eval "$ac_compile") 2>conftest.er1
35942   ac_status=$?
35943   grep -v '^ *+' conftest.er1 >conftest.err
35944   rm -f conftest.er1
35945   cat conftest.err >&5
35946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947   (exit $ac_status); } && {
35948          test -z "$ac_c_werror_flag" ||
35949          test ! -s conftest.err
35950        } && test -s conftest.$ac_objext; then
35951   ac_hi=$ac_mid; break
35952 else
35953   echo "$as_me: failed program was:" >&5
35954 sed 's/^/| /' conftest.$ac_ext >&5
35955
35956         ac_lo=`expr $ac_mid + 1`
35957                         if test $ac_lo -le $ac_mid; then
35958                           ac_lo= ac_hi=
35959                           break
35960                         fi
35961                         ac_mid=`expr 2 '*' $ac_mid + 1`
35962 fi
35963
35964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35965   done
35966 else
35967   echo "$as_me: failed program was:" >&5
35968 sed 's/^/| /' conftest.$ac_ext >&5
35969
35970         cat >conftest.$ac_ext <<_ACEOF
35971 /* confdefs.h.  */
35972 _ACEOF
35973 cat confdefs.h >>conftest.$ac_ext
35974 cat >>conftest.$ac_ext <<_ACEOF
35975 /* end confdefs.h.  */
35976 $ac_includes_default
35977    typedef long long int ac__type_sizeof_;
35978 int
35979 main ()
35980 {
35981 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35982 test_array [0] = 0
35983
35984   ;
35985   return 0;
35986 }
35987 _ACEOF
35988 rm -f conftest.$ac_objext
35989 if { (ac_try="$ac_compile"
35990 case "(($ac_try" in
35991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35992   *) ac_try_echo=$ac_try;;
35993 esac
35994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35995   (eval "$ac_compile") 2>conftest.er1
35996   ac_status=$?
35997   grep -v '^ *+' conftest.er1 >conftest.err
35998   rm -f conftest.er1
35999   cat conftest.err >&5
36000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36001   (exit $ac_status); } && {
36002          test -z "$ac_c_werror_flag" ||
36003          test ! -s conftest.err
36004        } && test -s conftest.$ac_objext; then
36005   ac_hi=-1 ac_mid=-1
36006   while :; do
36007     cat >conftest.$ac_ext <<_ACEOF
36008 /* confdefs.h.  */
36009 _ACEOF
36010 cat confdefs.h >>conftest.$ac_ext
36011 cat >>conftest.$ac_ext <<_ACEOF
36012 /* end confdefs.h.  */
36013 $ac_includes_default
36014    typedef long long int ac__type_sizeof_;
36015 int
36016 main ()
36017 {
36018 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36019 test_array [0] = 0
36020
36021   ;
36022   return 0;
36023 }
36024 _ACEOF
36025 rm -f conftest.$ac_objext
36026 if { (ac_try="$ac_compile"
36027 case "(($ac_try" in
36028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36029   *) ac_try_echo=$ac_try;;
36030 esac
36031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36032   (eval "$ac_compile") 2>conftest.er1
36033   ac_status=$?
36034   grep -v '^ *+' conftest.er1 >conftest.err
36035   rm -f conftest.er1
36036   cat conftest.err >&5
36037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36038   (exit $ac_status); } && {
36039          test -z "$ac_c_werror_flag" ||
36040          test ! -s conftest.err
36041        } && test -s conftest.$ac_objext; then
36042   ac_lo=$ac_mid; break
36043 else
36044   echo "$as_me: failed program was:" >&5
36045 sed 's/^/| /' conftest.$ac_ext >&5
36046
36047         ac_hi=`expr '(' $ac_mid ')' - 1`
36048                         if test $ac_mid -le $ac_hi; then
36049                           ac_lo= ac_hi=
36050                           break
36051                         fi
36052                         ac_mid=`expr 2 '*' $ac_mid`
36053 fi
36054
36055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36056   done
36057 else
36058   echo "$as_me: failed program was:" >&5
36059 sed 's/^/| /' conftest.$ac_ext >&5
36060
36061         ac_lo= ac_hi=
36062 fi
36063
36064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36065 fi
36066
36067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36068 # Binary search between lo and hi bounds.
36069 while test "x$ac_lo" != "x$ac_hi"; do
36070   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36071   cat >conftest.$ac_ext <<_ACEOF
36072 /* confdefs.h.  */
36073 _ACEOF
36074 cat confdefs.h >>conftest.$ac_ext
36075 cat >>conftest.$ac_ext <<_ACEOF
36076 /* end confdefs.h.  */
36077 $ac_includes_default
36078    typedef long long int ac__type_sizeof_;
36079 int
36080 main ()
36081 {
36082 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36083 test_array [0] = 0
36084
36085   ;
36086   return 0;
36087 }
36088 _ACEOF
36089 rm -f conftest.$ac_objext
36090 if { (ac_try="$ac_compile"
36091 case "(($ac_try" in
36092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36093   *) ac_try_echo=$ac_try;;
36094 esac
36095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36096   (eval "$ac_compile") 2>conftest.er1
36097   ac_status=$?
36098   grep -v '^ *+' conftest.er1 >conftest.err
36099   rm -f conftest.er1
36100   cat conftest.err >&5
36101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36102   (exit $ac_status); } && {
36103          test -z "$ac_c_werror_flag" ||
36104          test ! -s conftest.err
36105        } && test -s conftest.$ac_objext; then
36106   ac_hi=$ac_mid
36107 else
36108   echo "$as_me: failed program was:" >&5
36109 sed 's/^/| /' conftest.$ac_ext >&5
36110
36111         ac_lo=`expr '(' $ac_mid ')' + 1`
36112 fi
36113
36114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36115 done
36116 case $ac_lo in
36117 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36118 '') if test "$ac_cv_type_long_long_int" = yes; then
36119      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36120 See \`config.log' for more details." >&5
36121 echo "$as_me: error: cannot compute sizeof (long long int)
36122 See \`config.log' for more details." >&2;}
36123    { (exit 77); exit 77; }; }
36124    else
36125      ac_cv_sizeof_long_long_int=0
36126    fi ;;
36127 esac
36128 else
36129   cat >conftest.$ac_ext <<_ACEOF
36130 /* confdefs.h.  */
36131 _ACEOF
36132 cat confdefs.h >>conftest.$ac_ext
36133 cat >>conftest.$ac_ext <<_ACEOF
36134 /* end confdefs.h.  */
36135 $ac_includes_default
36136    typedef long long int ac__type_sizeof_;
36137 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36138 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36139 #include <stdio.h>
36140 #include <stdlib.h>
36141 int
36142 main ()
36143 {
36144
36145   FILE *f = fopen ("conftest.val", "w");
36146   if (! f)
36147     return 1;
36148   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36149     {
36150       long int i = longval ();
36151       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36152         return 1;
36153       fprintf (f, "%ld\n", i);
36154     }
36155   else
36156     {
36157       unsigned long int i = ulongval ();
36158       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36159         return 1;
36160       fprintf (f, "%lu\n", i);
36161     }
36162   return ferror (f) || fclose (f) != 0;
36163
36164   ;
36165   return 0;
36166 }
36167 _ACEOF
36168 rm -f conftest$ac_exeext
36169 if { (ac_try="$ac_link"
36170 case "(($ac_try" in
36171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36172   *) ac_try_echo=$ac_try;;
36173 esac
36174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36175   (eval "$ac_link") 2>&5
36176   ac_status=$?
36177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36179   { (case "(($ac_try" in
36180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36181   *) ac_try_echo=$ac_try;;
36182 esac
36183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36184   (eval "$ac_try") 2>&5
36185   ac_status=$?
36186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36187   (exit $ac_status); }; }; then
36188   ac_cv_sizeof_long_long_int=`cat conftest.val`
36189 else
36190   echo "$as_me: program exited with status $ac_status" >&5
36191 echo "$as_me: failed program was:" >&5
36192 sed 's/^/| /' conftest.$ac_ext >&5
36193
36194 ( exit $ac_status )
36195 if test "$ac_cv_type_long_long_int" = yes; then
36196      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36197 See \`config.log' for more details." >&5
36198 echo "$as_me: error: cannot compute sizeof (long long int)
36199 See \`config.log' for more details." >&2;}
36200    { (exit 77); exit 77; }; }
36201    else
36202      ac_cv_sizeof_long_long_int=0
36203    fi
36204 fi
36205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36206 fi
36207 rm -f conftest.val
36208 fi
36209 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36210 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36211
36212
36213
36214 cat >>confdefs.h <<_ACEOF
36215 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36216 _ACEOF
36217
36218
36219 { echo "$as_me:$LINENO: checking for int *" >&5
36220 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36221 if test "${ac_cv_type_int_p+set}" = set; then
36222   echo $ECHO_N "(cached) $ECHO_C" >&6
36223 else
36224   cat >conftest.$ac_ext <<_ACEOF
36225 /* confdefs.h.  */
36226 _ACEOF
36227 cat confdefs.h >>conftest.$ac_ext
36228 cat >>conftest.$ac_ext <<_ACEOF
36229 /* end confdefs.h.  */
36230 $ac_includes_default
36231 typedef int * ac__type_new_;
36232 int
36233 main ()
36234 {
36235 if ((ac__type_new_ *) 0)
36236   return 0;
36237 if (sizeof (ac__type_new_))
36238   return 0;
36239   ;
36240   return 0;
36241 }
36242 _ACEOF
36243 rm -f conftest.$ac_objext
36244 if { (ac_try="$ac_compile"
36245 case "(($ac_try" in
36246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36247   *) ac_try_echo=$ac_try;;
36248 esac
36249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36250   (eval "$ac_compile") 2>conftest.er1
36251   ac_status=$?
36252   grep -v '^ *+' conftest.er1 >conftest.err
36253   rm -f conftest.er1
36254   cat conftest.err >&5
36255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256   (exit $ac_status); } && {
36257          test -z "$ac_c_werror_flag" ||
36258          test ! -s conftest.err
36259        } && test -s conftest.$ac_objext; then
36260   ac_cv_type_int_p=yes
36261 else
36262   echo "$as_me: failed program was:" >&5
36263 sed 's/^/| /' conftest.$ac_ext >&5
36264
36265         ac_cv_type_int_p=no
36266 fi
36267
36268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36269 fi
36270 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36271 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36272
36273 # The cast to long int works around a bug in the HP C Compiler
36274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36276 # This bug is HP SR number 8606223364.
36277 { echo "$as_me:$LINENO: checking size of int *" >&5
36278 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36279 if test "${ac_cv_sizeof_int_p+set}" = set; then
36280   echo $ECHO_N "(cached) $ECHO_C" >&6
36281 else
36282   if test "$cross_compiling" = yes; then
36283   # Depending upon the size, compute the lo and hi bounds.
36284 cat >conftest.$ac_ext <<_ACEOF
36285 /* confdefs.h.  */
36286 _ACEOF
36287 cat confdefs.h >>conftest.$ac_ext
36288 cat >>conftest.$ac_ext <<_ACEOF
36289 /* end confdefs.h.  */
36290 $ac_includes_default
36291    typedef int * ac__type_sizeof_;
36292 int
36293 main ()
36294 {
36295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36296 test_array [0] = 0
36297
36298   ;
36299   return 0;
36300 }
36301 _ACEOF
36302 rm -f conftest.$ac_objext
36303 if { (ac_try="$ac_compile"
36304 case "(($ac_try" in
36305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36306   *) ac_try_echo=$ac_try;;
36307 esac
36308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36309   (eval "$ac_compile") 2>conftest.er1
36310   ac_status=$?
36311   grep -v '^ *+' conftest.er1 >conftest.err
36312   rm -f conftest.er1
36313   cat conftest.err >&5
36314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315   (exit $ac_status); } && {
36316          test -z "$ac_c_werror_flag" ||
36317          test ! -s conftest.err
36318        } && test -s conftest.$ac_objext; then
36319   ac_lo=0 ac_mid=0
36320   while :; do
36321     cat >conftest.$ac_ext <<_ACEOF
36322 /* confdefs.h.  */
36323 _ACEOF
36324 cat confdefs.h >>conftest.$ac_ext
36325 cat >>conftest.$ac_ext <<_ACEOF
36326 /* end confdefs.h.  */
36327 $ac_includes_default
36328    typedef int * ac__type_sizeof_;
36329 int
36330 main ()
36331 {
36332 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36333 test_array [0] = 0
36334
36335   ;
36336   return 0;
36337 }
36338 _ACEOF
36339 rm -f conftest.$ac_objext
36340 if { (ac_try="$ac_compile"
36341 case "(($ac_try" in
36342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36343   *) ac_try_echo=$ac_try;;
36344 esac
36345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36346   (eval "$ac_compile") 2>conftest.er1
36347   ac_status=$?
36348   grep -v '^ *+' conftest.er1 >conftest.err
36349   rm -f conftest.er1
36350   cat conftest.err >&5
36351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352   (exit $ac_status); } && {
36353          test -z "$ac_c_werror_flag" ||
36354          test ! -s conftest.err
36355        } && test -s conftest.$ac_objext; then
36356   ac_hi=$ac_mid; break
36357 else
36358   echo "$as_me: failed program was:" >&5
36359 sed 's/^/| /' conftest.$ac_ext >&5
36360
36361         ac_lo=`expr $ac_mid + 1`
36362                         if test $ac_lo -le $ac_mid; then
36363                           ac_lo= ac_hi=
36364                           break
36365                         fi
36366                         ac_mid=`expr 2 '*' $ac_mid + 1`
36367 fi
36368
36369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36370   done
36371 else
36372   echo "$as_me: failed program was:" >&5
36373 sed 's/^/| /' conftest.$ac_ext >&5
36374
36375         cat >conftest.$ac_ext <<_ACEOF
36376 /* confdefs.h.  */
36377 _ACEOF
36378 cat confdefs.h >>conftest.$ac_ext
36379 cat >>conftest.$ac_ext <<_ACEOF
36380 /* end confdefs.h.  */
36381 $ac_includes_default
36382    typedef int * ac__type_sizeof_;
36383 int
36384 main ()
36385 {
36386 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36387 test_array [0] = 0
36388
36389   ;
36390   return 0;
36391 }
36392 _ACEOF
36393 rm -f conftest.$ac_objext
36394 if { (ac_try="$ac_compile"
36395 case "(($ac_try" in
36396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36397   *) ac_try_echo=$ac_try;;
36398 esac
36399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36400   (eval "$ac_compile") 2>conftest.er1
36401   ac_status=$?
36402   grep -v '^ *+' conftest.er1 >conftest.err
36403   rm -f conftest.er1
36404   cat conftest.err >&5
36405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36406   (exit $ac_status); } && {
36407          test -z "$ac_c_werror_flag" ||
36408          test ! -s conftest.err
36409        } && test -s conftest.$ac_objext; then
36410   ac_hi=-1 ac_mid=-1
36411   while :; do
36412     cat >conftest.$ac_ext <<_ACEOF
36413 /* confdefs.h.  */
36414 _ACEOF
36415 cat confdefs.h >>conftest.$ac_ext
36416 cat >>conftest.$ac_ext <<_ACEOF
36417 /* end confdefs.h.  */
36418 $ac_includes_default
36419    typedef int * ac__type_sizeof_;
36420 int
36421 main ()
36422 {
36423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36424 test_array [0] = 0
36425
36426   ;
36427   return 0;
36428 }
36429 _ACEOF
36430 rm -f conftest.$ac_objext
36431 if { (ac_try="$ac_compile"
36432 case "(($ac_try" in
36433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36434   *) ac_try_echo=$ac_try;;
36435 esac
36436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36437   (eval "$ac_compile") 2>conftest.er1
36438   ac_status=$?
36439   grep -v '^ *+' conftest.er1 >conftest.err
36440   rm -f conftest.er1
36441   cat conftest.err >&5
36442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36443   (exit $ac_status); } && {
36444          test -z "$ac_c_werror_flag" ||
36445          test ! -s conftest.err
36446        } && test -s conftest.$ac_objext; then
36447   ac_lo=$ac_mid; break
36448 else
36449   echo "$as_me: failed program was:" >&5
36450 sed 's/^/| /' conftest.$ac_ext >&5
36451
36452         ac_hi=`expr '(' $ac_mid ')' - 1`
36453                         if test $ac_mid -le $ac_hi; then
36454                           ac_lo= ac_hi=
36455                           break
36456                         fi
36457                         ac_mid=`expr 2 '*' $ac_mid`
36458 fi
36459
36460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36461   done
36462 else
36463   echo "$as_me: failed program was:" >&5
36464 sed 's/^/| /' conftest.$ac_ext >&5
36465
36466         ac_lo= ac_hi=
36467 fi
36468
36469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36470 fi
36471
36472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36473 # Binary search between lo and hi bounds.
36474 while test "x$ac_lo" != "x$ac_hi"; do
36475   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36476   cat >conftest.$ac_ext <<_ACEOF
36477 /* confdefs.h.  */
36478 _ACEOF
36479 cat confdefs.h >>conftest.$ac_ext
36480 cat >>conftest.$ac_ext <<_ACEOF
36481 /* end confdefs.h.  */
36482 $ac_includes_default
36483    typedef int * ac__type_sizeof_;
36484 int
36485 main ()
36486 {
36487 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36488 test_array [0] = 0
36489
36490   ;
36491   return 0;
36492 }
36493 _ACEOF
36494 rm -f conftest.$ac_objext
36495 if { (ac_try="$ac_compile"
36496 case "(($ac_try" in
36497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36498   *) ac_try_echo=$ac_try;;
36499 esac
36500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36501   (eval "$ac_compile") 2>conftest.er1
36502   ac_status=$?
36503   grep -v '^ *+' conftest.er1 >conftest.err
36504   rm -f conftest.er1
36505   cat conftest.err >&5
36506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507   (exit $ac_status); } && {
36508          test -z "$ac_c_werror_flag" ||
36509          test ! -s conftest.err
36510        } && test -s conftest.$ac_objext; then
36511   ac_hi=$ac_mid
36512 else
36513   echo "$as_me: failed program was:" >&5
36514 sed 's/^/| /' conftest.$ac_ext >&5
36515
36516         ac_lo=`expr '(' $ac_mid ')' + 1`
36517 fi
36518
36519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36520 done
36521 case $ac_lo in
36522 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36523 '') if test "$ac_cv_type_int_p" = yes; then
36524      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36525 See \`config.log' for more details." >&5
36526 echo "$as_me: error: cannot compute sizeof (int *)
36527 See \`config.log' for more details." >&2;}
36528    { (exit 77); exit 77; }; }
36529    else
36530      ac_cv_sizeof_int_p=0
36531    fi ;;
36532 esac
36533 else
36534   cat >conftest.$ac_ext <<_ACEOF
36535 /* confdefs.h.  */
36536 _ACEOF
36537 cat confdefs.h >>conftest.$ac_ext
36538 cat >>conftest.$ac_ext <<_ACEOF
36539 /* end confdefs.h.  */
36540 $ac_includes_default
36541    typedef int * ac__type_sizeof_;
36542 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36543 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36544 #include <stdio.h>
36545 #include <stdlib.h>
36546 int
36547 main ()
36548 {
36549
36550   FILE *f = fopen ("conftest.val", "w");
36551   if (! f)
36552     return 1;
36553   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36554     {
36555       long int i = longval ();
36556       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36557         return 1;
36558       fprintf (f, "%ld\n", i);
36559     }
36560   else
36561     {
36562       unsigned long int i = ulongval ();
36563       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36564         return 1;
36565       fprintf (f, "%lu\n", i);
36566     }
36567   return ferror (f) || fclose (f) != 0;
36568
36569   ;
36570   return 0;
36571 }
36572 _ACEOF
36573 rm -f conftest$ac_exeext
36574 if { (ac_try="$ac_link"
36575 case "(($ac_try" in
36576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36577   *) ac_try_echo=$ac_try;;
36578 esac
36579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36580   (eval "$ac_link") 2>&5
36581   ac_status=$?
36582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36584   { (case "(($ac_try" in
36585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36586   *) ac_try_echo=$ac_try;;
36587 esac
36588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36589   (eval "$ac_try") 2>&5
36590   ac_status=$?
36591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36592   (exit $ac_status); }; }; then
36593   ac_cv_sizeof_int_p=`cat conftest.val`
36594 else
36595   echo "$as_me: program exited with status $ac_status" >&5
36596 echo "$as_me: failed program was:" >&5
36597 sed 's/^/| /' conftest.$ac_ext >&5
36598
36599 ( exit $ac_status )
36600 if test "$ac_cv_type_int_p" = yes; then
36601      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36602 See \`config.log' for more details." >&5
36603 echo "$as_me: error: cannot compute sizeof (int *)
36604 See \`config.log' for more details." >&2;}
36605    { (exit 77); exit 77; }; }
36606    else
36607      ac_cv_sizeof_int_p=0
36608    fi
36609 fi
36610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36611 fi
36612 rm -f conftest.val
36613 fi
36614 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36615 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36616
36617
36618
36619 cat >>confdefs.h <<_ACEOF
36620 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36621 _ACEOF
36622
36623
36624
36625 { echo "$as_me:$LINENO: checking for u_int type" >&5
36626 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36627 if test "${ac_cv_have_u_int+set}" = set; then
36628   echo $ECHO_N "(cached) $ECHO_C" >&6
36629 else
36630
36631        cat >conftest.$ac_ext <<_ACEOF
36632 /* confdefs.h.  */
36633 _ACEOF
36634 cat confdefs.h >>conftest.$ac_ext
36635 cat >>conftest.$ac_ext <<_ACEOF
36636 /* end confdefs.h.  */
36637
36638               #include <sys/types.h>
36639
36640 int
36641 main ()
36642 {
36643
36644               u_int a; a = 1;
36645
36646   ;
36647   return 0;
36648 }
36649 _ACEOF
36650 rm -f conftest.$ac_objext
36651 if { (ac_try="$ac_compile"
36652 case "(($ac_try" in
36653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36654   *) ac_try_echo=$ac_try;;
36655 esac
36656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36657   (eval "$ac_compile") 2>conftest.er1
36658   ac_status=$?
36659   grep -v '^ *+' conftest.er1 >conftest.err
36660   rm -f conftest.er1
36661   cat conftest.err >&5
36662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663   (exit $ac_status); } && {
36664          test -z "$ac_c_werror_flag" ||
36665          test ! -s conftest.err
36666        } && test -s conftest.$ac_objext; then
36667
36668               ac_cv_have_u_int="yes"
36669
36670 else
36671   echo "$as_me: failed program was:" >&5
36672 sed 's/^/| /' conftest.$ac_ext >&5
36673
36674
36675               ac_cv_have_u_int="no"
36676
36677
36678 fi
36679
36680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36681
36682
36683 fi
36684 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36685 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36686 if test "x$ac_cv_have_u_int" = "xyes" ; then
36687    cat >>confdefs.h <<\_ACEOF
36688 #define HAVE_U_INT 1
36689 _ACEOF
36690
36691    have_u_int=1
36692 fi
36693
36694 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36695 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36696 if test "${ac_cv_have_intmax_t+set}" = set; then
36697   echo $ECHO_N "(cached) $ECHO_C" >&6
36698 else
36699
36700        cat >conftest.$ac_ext <<_ACEOF
36701 /* confdefs.h.  */
36702 _ACEOF
36703 cat confdefs.h >>conftest.$ac_ext
36704 cat >>conftest.$ac_ext <<_ACEOF
36705 /* end confdefs.h.  */
36706
36707               #include <sys/types.h>
36708
36709 int
36710 main ()
36711 {
36712
36713               intmax_t a; a = 1;
36714
36715   ;
36716   return 0;
36717 }
36718 _ACEOF
36719 rm -f conftest.$ac_objext
36720 if { (ac_try="$ac_compile"
36721 case "(($ac_try" in
36722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36723   *) ac_try_echo=$ac_try;;
36724 esac
36725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36726   (eval "$ac_compile") 2>conftest.er1
36727   ac_status=$?
36728   grep -v '^ *+' conftest.er1 >conftest.err
36729   rm -f conftest.er1
36730   cat conftest.err >&5
36731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36732   (exit $ac_status); } && {
36733          test -z "$ac_c_werror_flag" ||
36734          test ! -s conftest.err
36735        } && test -s conftest.$ac_objext; then
36736
36737               ac_cv_have_intmax_t="yes"
36738
36739 else
36740   echo "$as_me: failed program was:" >&5
36741 sed 's/^/| /' conftest.$ac_ext >&5
36742
36743
36744               cat >conftest.$ac_ext <<_ACEOF
36745 /* confdefs.h.  */
36746 _ACEOF
36747 cat confdefs.h >>conftest.$ac_ext
36748 cat >>conftest.$ac_ext <<_ACEOF
36749 /* end confdefs.h.  */
36750
36751                      #include <stdint.h>
36752
36753 int
36754 main ()
36755 {
36756
36757                      intmax_t a; a = 1;
36758
36759   ;
36760   return 0;
36761 }
36762 _ACEOF
36763 rm -f conftest.$ac_objext
36764 if { (ac_try="$ac_compile"
36765 case "(($ac_try" in
36766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36767   *) ac_try_echo=$ac_try;;
36768 esac
36769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36770   (eval "$ac_compile") 2>conftest.er1
36771   ac_status=$?
36772   grep -v '^ *+' conftest.er1 >conftest.err
36773   rm -f conftest.er1
36774   cat conftest.err >&5
36775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36776   (exit $ac_status); } && {
36777          test -z "$ac_c_werror_flag" ||
36778          test ! -s conftest.err
36779        } && test -s conftest.$ac_objext; then
36780
36781                      ac_cv_have_intmax_t="yes"
36782
36783 else
36784   echo "$as_me: failed program was:" >&5
36785 sed 's/^/| /' conftest.$ac_ext >&5
36786
36787
36788                      ac_cv_have_intmax_t="no"
36789
36790
36791 fi
36792
36793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36794
36795
36796 fi
36797
36798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36799
36800
36801 fi
36802 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36803 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36804 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36805    cat >>confdefs.h <<\_ACEOF
36806 #define HAVE_INTMAX_T 1
36807 _ACEOF
36808
36809    have_intmax_t=1
36810 fi
36811
36812 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36813 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36814 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36815   echo $ECHO_N "(cached) $ECHO_C" >&6
36816 else
36817
36818        cat >conftest.$ac_ext <<_ACEOF
36819 /* confdefs.h.  */
36820 _ACEOF
36821 cat confdefs.h >>conftest.$ac_ext
36822 cat >>conftest.$ac_ext <<_ACEOF
36823 /* end confdefs.h.  */
36824
36825               #include <sys/types.h>
36826
36827 int
36828 main ()
36829 {
36830
36831               u_intmax_t a; a = 1;
36832
36833   ;
36834   return 0;
36835 }
36836 _ACEOF
36837 rm -f conftest.$ac_objext
36838 if { (ac_try="$ac_compile"
36839 case "(($ac_try" in
36840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36841   *) ac_try_echo=$ac_try;;
36842 esac
36843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36844   (eval "$ac_compile") 2>conftest.er1
36845   ac_status=$?
36846   grep -v '^ *+' conftest.er1 >conftest.err
36847   rm -f conftest.er1
36848   cat conftest.err >&5
36849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850   (exit $ac_status); } && {
36851          test -z "$ac_c_werror_flag" ||
36852          test ! -s conftest.err
36853        } && test -s conftest.$ac_objext; then
36854
36855               ac_cv_have_u_intmax_t="yes"
36856
36857 else
36858   echo "$as_me: failed program was:" >&5
36859 sed 's/^/| /' conftest.$ac_ext >&5
36860
36861
36862               cat >conftest.$ac_ext <<_ACEOF
36863 /* confdefs.h.  */
36864 _ACEOF
36865 cat confdefs.h >>conftest.$ac_ext
36866 cat >>conftest.$ac_ext <<_ACEOF
36867 /* end confdefs.h.  */
36868
36869                      #include <stdint.h>
36870
36871 int
36872 main ()
36873 {
36874
36875                     u_intmax_t a; a = 1;
36876
36877   ;
36878   return 0;
36879 }
36880 _ACEOF
36881 rm -f conftest.$ac_objext
36882 if { (ac_try="$ac_compile"
36883 case "(($ac_try" in
36884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36885   *) ac_try_echo=$ac_try;;
36886 esac
36887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36888   (eval "$ac_compile") 2>conftest.er1
36889   ac_status=$?
36890   grep -v '^ *+' conftest.er1 >conftest.err
36891   rm -f conftest.er1
36892   cat conftest.err >&5
36893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36894   (exit $ac_status); } && {
36895          test -z "$ac_c_werror_flag" ||
36896          test ! -s conftest.err
36897        } && test -s conftest.$ac_objext; then
36898
36899                     ac_cv_have_u_intmax_t="yes"
36900
36901 else
36902   echo "$as_me: failed program was:" >&5
36903 sed 's/^/| /' conftest.$ac_ext >&5
36904
36905
36906                     ac_cv_have_u_intmax_t="no"
36907
36908
36909 fi
36910
36911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36912
36913
36914 fi
36915
36916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36917
36918
36919 fi
36920 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36921 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36922 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36923    cat >>confdefs.h <<\_ACEOF
36924 #define HAVE_U_INTMAX_T 1
36925 _ACEOF
36926
36927    have_u_intmax_t=1
36928 fi
36929
36930 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36931 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36932 if test "${ac_cv_have_intxx_t+set}" = set; then
36933   echo $ECHO_N "(cached) $ECHO_C" >&6
36934 else
36935
36936        cat >conftest.$ac_ext <<_ACEOF
36937 /* confdefs.h.  */
36938 _ACEOF
36939 cat confdefs.h >>conftest.$ac_ext
36940 cat >>conftest.$ac_ext <<_ACEOF
36941 /* end confdefs.h.  */
36942
36943               #include <sys/types.h>
36944
36945 int
36946 main ()
36947 {
36948
36949               int8_t a; int16_t b; int32_t c; a = b = c = 1;
36950
36951   ;
36952   return 0;
36953 }
36954 _ACEOF
36955 rm -f conftest.$ac_objext
36956 if { (ac_try="$ac_compile"
36957 case "(($ac_try" in
36958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36959   *) ac_try_echo=$ac_try;;
36960 esac
36961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36962   (eval "$ac_compile") 2>conftest.er1
36963   ac_status=$?
36964   grep -v '^ *+' conftest.er1 >conftest.err
36965   rm -f conftest.er1
36966   cat conftest.err >&5
36967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968   (exit $ac_status); } && {
36969          test -z "$ac_c_werror_flag" ||
36970          test ! -s conftest.err
36971        } && test -s conftest.$ac_objext; then
36972
36973               ac_cv_have_intxx_t="yes"
36974
36975 else
36976   echo "$as_me: failed program was:" >&5
36977 sed 's/^/| /' conftest.$ac_ext >&5
36978
36979
36980               ac_cv_have_intxx_t="no"
36981
36982
36983 fi
36984
36985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36986
36987
36988 fi
36989 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36990 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36991 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36992    cat >>confdefs.h <<\_ACEOF
36993 #define HAVE_INTXX_T 1
36994 _ACEOF
36995
36996    have_intxx_t=1
36997 fi
36998
36999 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37000 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37001 if test "${ac_cv_have_int64_t+set}" = set; then
37002   echo $ECHO_N "(cached) $ECHO_C" >&6
37003 else
37004
37005        cat >conftest.$ac_ext <<_ACEOF
37006 /* confdefs.h.  */
37007 _ACEOF
37008 cat confdefs.h >>conftest.$ac_ext
37009 cat >>conftest.$ac_ext <<_ACEOF
37010 /* end confdefs.h.  */
37011
37012               #include <sys/types.h>
37013
37014 int
37015 main ()
37016 {
37017
37018               int64_t a; a = 1;
37019
37020   ;
37021   return 0;
37022 }
37023 _ACEOF
37024 rm -f conftest.$ac_objext
37025 if { (ac_try="$ac_compile"
37026 case "(($ac_try" in
37027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37028   *) ac_try_echo=$ac_try;;
37029 esac
37030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37031   (eval "$ac_compile") 2>conftest.er1
37032   ac_status=$?
37033   grep -v '^ *+' conftest.er1 >conftest.err
37034   rm -f conftest.er1
37035   cat conftest.err >&5
37036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37037   (exit $ac_status); } && {
37038          test -z "$ac_c_werror_flag" ||
37039          test ! -s conftest.err
37040        } && test -s conftest.$ac_objext; then
37041
37042               ac_cv_have_int64_t="yes"
37043
37044 else
37045   echo "$as_me: failed program was:" >&5
37046 sed 's/^/| /' conftest.$ac_ext >&5
37047
37048
37049               ac_cv_have_int64_t="no"
37050
37051
37052 fi
37053
37054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37055
37056
37057 fi
37058 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37059 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37060 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37061    cat >>confdefs.h <<\_ACEOF
37062 #define HAVE_INT64_T 1
37063 _ACEOF
37064
37065    have_int64_t=1
37066 fi
37067
37068 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37069 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37070 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37071   echo $ECHO_N "(cached) $ECHO_C" >&6
37072 else
37073
37074        cat >conftest.$ac_ext <<_ACEOF
37075 /* confdefs.h.  */
37076 _ACEOF
37077 cat confdefs.h >>conftest.$ac_ext
37078 cat >>conftest.$ac_ext <<_ACEOF
37079 /* end confdefs.h.  */
37080
37081               #include <sys/types.h>
37082
37083 int
37084 main ()
37085 {
37086
37087               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37088
37089   ;
37090   return 0;
37091 }
37092 _ACEOF
37093 rm -f conftest.$ac_objext
37094 if { (ac_try="$ac_compile"
37095 case "(($ac_try" in
37096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37097   *) ac_try_echo=$ac_try;;
37098 esac
37099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37100   (eval "$ac_compile") 2>conftest.er1
37101   ac_status=$?
37102   grep -v '^ *+' conftest.er1 >conftest.err
37103   rm -f conftest.er1
37104   cat conftest.err >&5
37105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37106   (exit $ac_status); } && {
37107          test -z "$ac_c_werror_flag" ||
37108          test ! -s conftest.err
37109        } && test -s conftest.$ac_objext; then
37110
37111              ac_cv_have_u_intxx_t="yes"
37112
37113 else
37114   echo "$as_me: failed program was:" >&5
37115 sed 's/^/| /' conftest.$ac_ext >&5
37116
37117
37118              ac_cv_have_u_intxx_t="no"
37119
37120
37121 fi
37122
37123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37124
37125
37126 fi
37127 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37128 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37129 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37130    cat >>confdefs.h <<\_ACEOF
37131 #define HAVE_U_INTXX_T 1
37132 _ACEOF
37133
37134    have_u_intxx_t=1
37135 fi
37136
37137 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37138 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37139 if test "${ac_cv_have_u_int64_t+set}" = set; then
37140   echo $ECHO_N "(cached) $ECHO_C" >&6
37141 else
37142
37143        cat >conftest.$ac_ext <<_ACEOF
37144 /* confdefs.h.  */
37145 _ACEOF
37146 cat confdefs.h >>conftest.$ac_ext
37147 cat >>conftest.$ac_ext <<_ACEOF
37148 /* end confdefs.h.  */
37149
37150               #include <sys/types.h>
37151
37152 int
37153 main ()
37154 {
37155
37156               u_int64_t a; a = 1;
37157
37158   ;
37159   return 0;
37160 }
37161 _ACEOF
37162 rm -f conftest.$ac_objext
37163 if { (ac_try="$ac_compile"
37164 case "(($ac_try" in
37165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37166   *) ac_try_echo=$ac_try;;
37167 esac
37168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37169   (eval "$ac_compile") 2>conftest.er1
37170   ac_status=$?
37171   grep -v '^ *+' conftest.er1 >conftest.err
37172   rm -f conftest.er1
37173   cat conftest.err >&5
37174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175   (exit $ac_status); } && {
37176          test -z "$ac_c_werror_flag" ||
37177          test ! -s conftest.err
37178        } && test -s conftest.$ac_objext; then
37179
37180              ac_cv_have_u_int64_t="yes"
37181
37182 else
37183   echo "$as_me: failed program was:" >&5
37184 sed 's/^/| /' conftest.$ac_ext >&5
37185
37186
37187              ac_cv_have_u_int64_t="no"
37188
37189
37190 fi
37191
37192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37193
37194
37195 fi
37196 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37197 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37198 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37199    cat >>confdefs.h <<\_ACEOF
37200 #define HAVE_U_INT64_T 1
37201 _ACEOF
37202
37203    have_u_int64_t=1
37204 fi
37205
37206 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37207     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37208 then
37209    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37210 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37211    cat >conftest.$ac_ext <<_ACEOF
37212 /* confdefs.h.  */
37213 _ACEOF
37214 cat confdefs.h >>conftest.$ac_ext
37215 cat >>conftest.$ac_ext <<_ACEOF
37216 /* end confdefs.h.  */
37217
37218           #include <sys/bitypes.h>
37219
37220 int
37221 main ()
37222 {
37223
37224           int8_t a; int16_t b; int32_t c;
37225           u_int8_t e; u_int16_t f; u_int32_t g;
37226           a = b = c = e = f = g = 1;
37227
37228   ;
37229   return 0;
37230 }
37231 _ACEOF
37232 rm -f conftest.$ac_objext
37233 if { (ac_try="$ac_compile"
37234 case "(($ac_try" in
37235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37236   *) ac_try_echo=$ac_try;;
37237 esac
37238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37239   (eval "$ac_compile") 2>conftest.er1
37240   ac_status=$?
37241   grep -v '^ *+' conftest.er1 >conftest.err
37242   rm -f conftest.er1
37243   cat conftest.err >&5
37244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37245   (exit $ac_status); } && {
37246          test -z "$ac_c_werror_flag" ||
37247          test ! -s conftest.err
37248        } && test -s conftest.$ac_objext; then
37249
37250           cat >>confdefs.h <<\_ACEOF
37251 #define HAVE_U_INTXX_T 1
37252 _ACEOF
37253
37254           cat >>confdefs.h <<\_ACEOF
37255 #define HAVE_INTXX_T 1
37256 _ACEOF
37257
37258           cat >>confdefs.h <<\_ACEOF
37259 #define HAVE_SYS_BITYPES_H 1
37260 _ACEOF
37261
37262           { echo "$as_me:$LINENO: result: yes" >&5
37263 echo "${ECHO_T}yes" >&6; }
37264
37265 else
37266   echo "$as_me: failed program was:" >&5
37267 sed 's/^/| /' conftest.$ac_ext >&5
37268
37269
37270           { echo "$as_me:$LINENO: result: no" >&5
37271 echo "${ECHO_T}no" >&6; }
37272
37273
37274 fi
37275
37276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37277 fi
37278
37279 if test -z "$have_u_intxx_t" ; then
37280    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37281 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37282 if test "${ac_cv_have_uintxx_t+set}" = set; then
37283   echo $ECHO_N "(cached) $ECHO_C" >&6
37284 else
37285
37286           cat >conftest.$ac_ext <<_ACEOF
37287 /* confdefs.h.  */
37288 _ACEOF
37289 cat confdefs.h >>conftest.$ac_ext
37290 cat >>conftest.$ac_ext <<_ACEOF
37291 /* end confdefs.h.  */
37292
37293                  #include <sys/types.h>
37294
37295 int
37296 main ()
37297 {
37298
37299                  uint8_t a; uint16_t b;
37300                  uint32_t c; a = b = c = 1;
37301
37302   ;
37303   return 0;
37304 }
37305 _ACEOF
37306 rm -f conftest.$ac_objext
37307 if { (ac_try="$ac_compile"
37308 case "(($ac_try" in
37309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37310   *) ac_try_echo=$ac_try;;
37311 esac
37312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37313   (eval "$ac_compile") 2>conftest.er1
37314   ac_status=$?
37315   grep -v '^ *+' conftest.er1 >conftest.err
37316   rm -f conftest.er1
37317   cat conftest.err >&5
37318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37319   (exit $ac_status); } && {
37320          test -z "$ac_c_werror_flag" ||
37321          test ! -s conftest.err
37322        } && test -s conftest.$ac_objext; then
37323
37324                 ac_cv_have_uintxx_t="yes"
37325
37326 else
37327   echo "$as_me: failed program was:" >&5
37328 sed 's/^/| /' conftest.$ac_ext >&5
37329
37330
37331                 ac_cv_have_uintxx_t="no"
37332
37333
37334 fi
37335
37336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37337
37338
37339 fi
37340 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37341 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37342    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37343       cat >>confdefs.h <<\_ACEOF
37344 #define HAVE_UINTXX_T 1
37345 _ACEOF
37346
37347    fi
37348 fi
37349
37350 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37351     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37352 then
37353    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37354 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37355    cat >conftest.$ac_ext <<_ACEOF
37356 /* confdefs.h.  */
37357 _ACEOF
37358 cat confdefs.h >>conftest.$ac_ext
37359 cat >>conftest.$ac_ext <<_ACEOF
37360 /* end confdefs.h.  */
37361
37362           #include <sys/bitypes.h>
37363
37364 int
37365 main ()
37366 {
37367
37368           int64_t a; u_int64_t b;
37369           a = b = 1;
37370
37371   ;
37372   return 0;
37373 }
37374 _ACEOF
37375 rm -f conftest.$ac_objext
37376 if { (ac_try="$ac_compile"
37377 case "(($ac_try" in
37378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37379   *) ac_try_echo=$ac_try;;
37380 esac
37381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37382   (eval "$ac_compile") 2>conftest.er1
37383   ac_status=$?
37384   grep -v '^ *+' conftest.er1 >conftest.err
37385   rm -f conftest.er1
37386   cat conftest.err >&5
37387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388   (exit $ac_status); } && {
37389          test -z "$ac_c_werror_flag" ||
37390          test ! -s conftest.err
37391        } && test -s conftest.$ac_objext; then
37392
37393           cat >>confdefs.h <<\_ACEOF
37394 #define HAVE_U_INT64_T 1
37395 _ACEOF
37396
37397           cat >>confdefs.h <<\_ACEOF
37398 #define HAVE_INT64_T 1
37399 _ACEOF
37400
37401           { echo "$as_me:$LINENO: result: yes" >&5
37402 echo "${ECHO_T}yes" >&6; }
37403
37404 else
37405   echo "$as_me: failed program was:" >&5
37406 sed 's/^/| /' conftest.$ac_ext >&5
37407
37408
37409           { echo "$as_me:$LINENO: result: no" >&5
37410 echo "${ECHO_T}no" >&6; }
37411
37412
37413 fi
37414
37415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37416 fi
37417
37418 if (test -z "$have_uintxx_t" && \
37419     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37420 then
37421    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37422 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37423    cat >conftest.$ac_ext <<_ACEOF
37424 /* confdefs.h.  */
37425 _ACEOF
37426 cat confdefs.h >>conftest.$ac_ext
37427 cat >>conftest.$ac_ext <<_ACEOF
37428 /* end confdefs.h.  */
37429
37430           #include <sys/bitypes.h>
37431
37432 int
37433 main ()
37434 {
37435
37436           uint8_t a; uint16_t b;
37437           uint32_t c; a = b = c = 1;
37438
37439   ;
37440   return 0;
37441 }
37442 _ACEOF
37443 rm -f conftest.$ac_objext
37444 if { (ac_try="$ac_compile"
37445 case "(($ac_try" in
37446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37447   *) ac_try_echo=$ac_try;;
37448 esac
37449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37450   (eval "$ac_compile") 2>conftest.er1
37451   ac_status=$?
37452   grep -v '^ *+' conftest.er1 >conftest.err
37453   rm -f conftest.er1
37454   cat conftest.err >&5
37455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37456   (exit $ac_status); } && {
37457          test -z "$ac_c_werror_flag" ||
37458          test ! -s conftest.err
37459        } && test -s conftest.$ac_objext; then
37460
37461           cat >>confdefs.h <<\_ACEOF
37462 #define HAVE_UINTXX_T 1
37463 _ACEOF
37464
37465           { echo "$as_me:$LINENO: result: yes" >&5
37466 echo "${ECHO_T}yes" >&6; }
37467
37468 else
37469   echo "$as_me: failed program was:" >&5
37470 sed 's/^/| /' conftest.$ac_ext >&5
37471
37472
37473           { echo "$as_me:$LINENO: result: no" >&5
37474 echo "${ECHO_T}no" >&6; }
37475
37476
37477 fi
37478
37479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37480 fi
37481
37482
37483
37484
37485
37486
37487
37488
37489
37490
37491
37492
37493
37494
37495 for ac_func in \
37496    fork \
37497    getcwd \
37498    gethostname \
37499    getpid \
37500    gettimeofday \
37501    setpgid \
37502    setpgrp \
37503    setsid \
37504    signal \
37505    strerror \
37506    strncmp \
37507    strncpy \
37508    vfprintf \
37509
37510 do
37511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37515   echo $ECHO_N "(cached) $ECHO_C" >&6
37516 else
37517   cat >conftest.$ac_ext <<_ACEOF
37518 /* confdefs.h.  */
37519 _ACEOF
37520 cat confdefs.h >>conftest.$ac_ext
37521 cat >>conftest.$ac_ext <<_ACEOF
37522 /* end confdefs.h.  */
37523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37525 #define $ac_func innocuous_$ac_func
37526
37527 /* System header to define __stub macros and hopefully few prototypes,
37528     which can conflict with char $ac_func (); below.
37529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37530     <limits.h> exists even on freestanding compilers.  */
37531
37532 #ifdef __STDC__
37533 # include <limits.h>
37534 #else
37535 # include <assert.h>
37536 #endif
37537
37538 #undef $ac_func
37539
37540 /* Override any GCC internal prototype to avoid an error.
37541    Use char because int might match the return type of a GCC
37542    builtin and then its argument prototype would still apply.  */
37543 #ifdef __cplusplus
37544 extern "C"
37545 #endif
37546 char $ac_func ();
37547 /* The GNU C library defines this for functions which it implements
37548     to always fail with ENOSYS.  Some functions are actually named
37549     something starting with __ and the normal name is an alias.  */
37550 #if defined __stub_$ac_func || defined __stub___$ac_func
37551 choke me
37552 #endif
37553
37554 int
37555 main ()
37556 {
37557 return $ac_func ();
37558   ;
37559   return 0;
37560 }
37561 _ACEOF
37562 rm -f conftest.$ac_objext conftest$ac_exeext
37563 if { (ac_try="$ac_link"
37564 case "(($ac_try" in
37565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37566   *) ac_try_echo=$ac_try;;
37567 esac
37568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37569   (eval "$ac_link") 2>conftest.er1
37570   ac_status=$?
37571   grep -v '^ *+' conftest.er1 >conftest.err
37572   rm -f conftest.er1
37573   cat conftest.err >&5
37574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37575   (exit $ac_status); } && {
37576          test -z "$ac_c_werror_flag" ||
37577          test ! -s conftest.err
37578        } && test -s conftest$ac_exeext &&
37579        $as_test_x conftest$ac_exeext; then
37580   eval "$as_ac_var=yes"
37581 else
37582   echo "$as_me: failed program was:" >&5
37583 sed 's/^/| /' conftest.$ac_ext >&5
37584
37585         eval "$as_ac_var=no"
37586 fi
37587
37588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37589       conftest$ac_exeext conftest.$ac_ext
37590 fi
37591 ac_res=`eval echo '${'$as_ac_var'}'`
37592                { echo "$as_me:$LINENO: result: $ac_res" >&5
37593 echo "${ECHO_T}$ac_res" >&6; }
37594 if test `eval echo '${'$as_ac_var'}'` = yes; then
37595   cat >>confdefs.h <<_ACEOF
37596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37597 _ACEOF
37598
37599 else
37600   echo 'configure: cannot find needed function.'; exit 1
37601
37602 fi
37603 done
37604
37605
37606
37607 for ac_func in fchdir
37608 do
37609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37613   echo $ECHO_N "(cached) $ECHO_C" >&6
37614 else
37615   cat >conftest.$ac_ext <<_ACEOF
37616 /* confdefs.h.  */
37617 _ACEOF
37618 cat confdefs.h >>conftest.$ac_ext
37619 cat >>conftest.$ac_ext <<_ACEOF
37620 /* end confdefs.h.  */
37621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37623 #define $ac_func innocuous_$ac_func
37624
37625 /* System header to define __stub macros and hopefully few prototypes,
37626     which can conflict with char $ac_func (); below.
37627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37628     <limits.h> exists even on freestanding compilers.  */
37629
37630 #ifdef __STDC__
37631 # include <limits.h>
37632 #else
37633 # include <assert.h>
37634 #endif
37635
37636 #undef $ac_func
37637
37638 /* Override any GCC internal prototype to avoid an error.
37639    Use char because int might match the return type of a GCC
37640    builtin and then its argument prototype would still apply.  */
37641 #ifdef __cplusplus
37642 extern "C"
37643 #endif
37644 char $ac_func ();
37645 /* The GNU C library defines this for functions which it implements
37646     to always fail with ENOSYS.  Some functions are actually named
37647     something starting with __ and the normal name is an alias.  */
37648 #if defined __stub_$ac_func || defined __stub___$ac_func
37649 choke me
37650 #endif
37651
37652 int
37653 main ()
37654 {
37655 return $ac_func ();
37656   ;
37657   return 0;
37658 }
37659 _ACEOF
37660 rm -f conftest.$ac_objext conftest$ac_exeext
37661 if { (ac_try="$ac_link"
37662 case "(($ac_try" in
37663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37664   *) ac_try_echo=$ac_try;;
37665 esac
37666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37667   (eval "$ac_link") 2>conftest.er1
37668   ac_status=$?
37669   grep -v '^ *+' conftest.er1 >conftest.err
37670   rm -f conftest.er1
37671   cat conftest.err >&5
37672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37673   (exit $ac_status); } && {
37674          test -z "$ac_c_werror_flag" ||
37675          test ! -s conftest.err
37676        } && test -s conftest$ac_exeext &&
37677        $as_test_x conftest$ac_exeext; then
37678   eval "$as_ac_var=yes"
37679 else
37680   echo "$as_me: failed program was:" >&5
37681 sed 's/^/| /' conftest.$ac_ext >&5
37682
37683         eval "$as_ac_var=no"
37684 fi
37685
37686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37687       conftest$ac_exeext conftest.$ac_ext
37688 fi
37689 ac_res=`eval echo '${'$as_ac_var'}'`
37690                { echo "$as_me:$LINENO: result: $ac_res" >&5
37691 echo "${ECHO_T}$ac_res" >&6; }
37692 if test `eval echo '${'$as_ac_var'}'` = yes; then
37693   cat >>confdefs.h <<_ACEOF
37694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37695 _ACEOF
37696  cat >>confdefs.h <<\_ACEOF
37697 #define HAVE_FCHDIR 1
37698 _ACEOF
37699
37700 fi
37701 done
37702
37703
37704 for ac_func in strtoll
37705 do
37706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37710   echo $ECHO_N "(cached) $ECHO_C" >&6
37711 else
37712   cat >conftest.$ac_ext <<_ACEOF
37713 /* confdefs.h.  */
37714 _ACEOF
37715 cat confdefs.h >>conftest.$ac_ext
37716 cat >>conftest.$ac_ext <<_ACEOF
37717 /* end confdefs.h.  */
37718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37720 #define $ac_func innocuous_$ac_func
37721
37722 /* System header to define __stub macros and hopefully few prototypes,
37723     which can conflict with char $ac_func (); below.
37724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37725     <limits.h> exists even on freestanding compilers.  */
37726
37727 #ifdef __STDC__
37728 # include <limits.h>
37729 #else
37730 # include <assert.h>
37731 #endif
37732
37733 #undef $ac_func
37734
37735 /* Override any GCC internal prototype to avoid an error.
37736    Use char because int might match the return type of a GCC
37737    builtin and then its argument prototype would still apply.  */
37738 #ifdef __cplusplus
37739 extern "C"
37740 #endif
37741 char $ac_func ();
37742 /* The GNU C library defines this for functions which it implements
37743     to always fail with ENOSYS.  Some functions are actually named
37744     something starting with __ and the normal name is an alias.  */
37745 #if defined __stub_$ac_func || defined __stub___$ac_func
37746 choke me
37747 #endif
37748
37749 int
37750 main ()
37751 {
37752 return $ac_func ();
37753   ;
37754   return 0;
37755 }
37756 _ACEOF
37757 rm -f conftest.$ac_objext conftest$ac_exeext
37758 if { (ac_try="$ac_link"
37759 case "(($ac_try" in
37760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37761   *) ac_try_echo=$ac_try;;
37762 esac
37763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37764   (eval "$ac_link") 2>conftest.er1
37765   ac_status=$?
37766   grep -v '^ *+' conftest.er1 >conftest.err
37767   rm -f conftest.er1
37768   cat conftest.err >&5
37769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770   (exit $ac_status); } && {
37771          test -z "$ac_c_werror_flag" ||
37772          test ! -s conftest.err
37773        } && test -s conftest$ac_exeext &&
37774        $as_test_x conftest$ac_exeext; then
37775   eval "$as_ac_var=yes"
37776 else
37777   echo "$as_me: failed program was:" >&5
37778 sed 's/^/| /' conftest.$ac_ext >&5
37779
37780         eval "$as_ac_var=no"
37781 fi
37782
37783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37784       conftest$ac_exeext conftest.$ac_ext
37785 fi
37786 ac_res=`eval echo '${'$as_ac_var'}'`
37787                { echo "$as_me:$LINENO: result: $ac_res" >&5
37788 echo "${ECHO_T}$ac_res" >&6; }
37789 if test `eval echo '${'$as_ac_var'}'` = yes; then
37790   cat >>confdefs.h <<_ACEOF
37791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37792 _ACEOF
37793  cat >>confdefs.h <<\_ACEOF
37794 #define HAVE_STRTOLL 1
37795 _ACEOF
37796
37797 fi
37798 done
37799
37800
37801 for ac_func in posix_fadvise
37802 do
37803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37807   echo $ECHO_N "(cached) $ECHO_C" >&6
37808 else
37809   cat >conftest.$ac_ext <<_ACEOF
37810 /* confdefs.h.  */
37811 _ACEOF
37812 cat confdefs.h >>conftest.$ac_ext
37813 cat >>conftest.$ac_ext <<_ACEOF
37814 /* end confdefs.h.  */
37815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37817 #define $ac_func innocuous_$ac_func
37818
37819 /* System header to define __stub macros and hopefully few prototypes,
37820     which can conflict with char $ac_func (); below.
37821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37822     <limits.h> exists even on freestanding compilers.  */
37823
37824 #ifdef __STDC__
37825 # include <limits.h>
37826 #else
37827 # include <assert.h>
37828 #endif
37829
37830 #undef $ac_func
37831
37832 /* Override any GCC internal prototype to avoid an error.
37833    Use char because int might match the return type of a GCC
37834    builtin and then its argument prototype would still apply.  */
37835 #ifdef __cplusplus
37836 extern "C"
37837 #endif
37838 char $ac_func ();
37839 /* The GNU C library defines this for functions which it implements
37840     to always fail with ENOSYS.  Some functions are actually named
37841     something starting with __ and the normal name is an alias.  */
37842 #if defined __stub_$ac_func || defined __stub___$ac_func
37843 choke me
37844 #endif
37845
37846 int
37847 main ()
37848 {
37849 return $ac_func ();
37850   ;
37851   return 0;
37852 }
37853 _ACEOF
37854 rm -f conftest.$ac_objext conftest$ac_exeext
37855 if { (ac_try="$ac_link"
37856 case "(($ac_try" in
37857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37858   *) ac_try_echo=$ac_try;;
37859 esac
37860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37861   (eval "$ac_link") 2>conftest.er1
37862   ac_status=$?
37863   grep -v '^ *+' conftest.er1 >conftest.err
37864   rm -f conftest.er1
37865   cat conftest.err >&5
37866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867   (exit $ac_status); } && {
37868          test -z "$ac_c_werror_flag" ||
37869          test ! -s conftest.err
37870        } && test -s conftest$ac_exeext &&
37871        $as_test_x conftest$ac_exeext; then
37872   eval "$as_ac_var=yes"
37873 else
37874   echo "$as_me: failed program was:" >&5
37875 sed 's/^/| /' conftest.$ac_ext >&5
37876
37877         eval "$as_ac_var=no"
37878 fi
37879
37880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37881       conftest$ac_exeext conftest.$ac_ext
37882 fi
37883 ac_res=`eval echo '${'$as_ac_var'}'`
37884                { echo "$as_me:$LINENO: result: $ac_res" >&5
37885 echo "${ECHO_T}$ac_res" >&6; }
37886 if test `eval echo '${'$as_ac_var'}'` = yes; then
37887   cat >>confdefs.h <<_ACEOF
37888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37889 _ACEOF
37890
37891 fi
37892 done
37893
37894
37895 for ac_func in fdatasync
37896 do
37897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37901   echo $ECHO_N "(cached) $ECHO_C" >&6
37902 else
37903   cat >conftest.$ac_ext <<_ACEOF
37904 /* confdefs.h.  */
37905 _ACEOF
37906 cat confdefs.h >>conftest.$ac_ext
37907 cat >>conftest.$ac_ext <<_ACEOF
37908 /* end confdefs.h.  */
37909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37911 #define $ac_func innocuous_$ac_func
37912
37913 /* System header to define __stub macros and hopefully few prototypes,
37914     which can conflict with char $ac_func (); below.
37915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37916     <limits.h> exists even on freestanding compilers.  */
37917
37918 #ifdef __STDC__
37919 # include <limits.h>
37920 #else
37921 # include <assert.h>
37922 #endif
37923
37924 #undef $ac_func
37925
37926 /* Override any GCC internal prototype to avoid an error.
37927    Use char because int might match the return type of a GCC
37928    builtin and then its argument prototype would still apply.  */
37929 #ifdef __cplusplus
37930 extern "C"
37931 #endif
37932 char $ac_func ();
37933 /* The GNU C library defines this for functions which it implements
37934     to always fail with ENOSYS.  Some functions are actually named
37935     something starting with __ and the normal name is an alias.  */
37936 #if defined __stub_$ac_func || defined __stub___$ac_func
37937 choke me
37938 #endif
37939
37940 int
37941 main ()
37942 {
37943 return $ac_func ();
37944   ;
37945   return 0;
37946 }
37947 _ACEOF
37948 rm -f conftest.$ac_objext conftest$ac_exeext
37949 if { (ac_try="$ac_link"
37950 case "(($ac_try" in
37951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37952   *) ac_try_echo=$ac_try;;
37953 esac
37954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37955   (eval "$ac_link") 2>conftest.er1
37956   ac_status=$?
37957   grep -v '^ *+' conftest.er1 >conftest.err
37958   rm -f conftest.er1
37959   cat conftest.err >&5
37960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37961   (exit $ac_status); } && {
37962          test -z "$ac_c_werror_flag" ||
37963          test ! -s conftest.err
37964        } && test -s conftest$ac_exeext &&
37965        $as_test_x conftest$ac_exeext; then
37966   eval "$as_ac_var=yes"
37967 else
37968   echo "$as_me: failed program was:" >&5
37969 sed 's/^/| /' conftest.$ac_ext >&5
37970
37971         eval "$as_ac_var=no"
37972 fi
37973
37974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37975       conftest$ac_exeext conftest.$ac_ext
37976 fi
37977 ac_res=`eval echo '${'$as_ac_var'}'`
37978                { echo "$as_me:$LINENO: result: $ac_res" >&5
37979 echo "${ECHO_T}$ac_res" >&6; }
37980 if test `eval echo '${'$as_ac_var'}'` = yes; then
37981   cat >>confdefs.h <<_ACEOF
37982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37983 _ACEOF
37984
37985 fi
37986 done
37987
37988
37989
37990 for ac_func in chflags
37991 do
37992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37996   echo $ECHO_N "(cached) $ECHO_C" >&6
37997 else
37998   cat >conftest.$ac_ext <<_ACEOF
37999 /* confdefs.h.  */
38000 _ACEOF
38001 cat confdefs.h >>conftest.$ac_ext
38002 cat >>conftest.$ac_ext <<_ACEOF
38003 /* end confdefs.h.  */
38004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38006 #define $ac_func innocuous_$ac_func
38007
38008 /* System header to define __stub macros and hopefully few prototypes,
38009     which can conflict with char $ac_func (); below.
38010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38011     <limits.h> exists even on freestanding compilers.  */
38012
38013 #ifdef __STDC__
38014 # include <limits.h>
38015 #else
38016 # include <assert.h>
38017 #endif
38018
38019 #undef $ac_func
38020
38021 /* Override any GCC internal prototype to avoid an error.
38022    Use char because int might match the return type of a GCC
38023    builtin and then its argument prototype would still apply.  */
38024 #ifdef __cplusplus
38025 extern "C"
38026 #endif
38027 char $ac_func ();
38028 /* The GNU C library defines this for functions which it implements
38029     to always fail with ENOSYS.  Some functions are actually named
38030     something starting with __ and the normal name is an alias.  */
38031 #if defined __stub_$ac_func || defined __stub___$ac_func
38032 choke me
38033 #endif
38034
38035 int
38036 main ()
38037 {
38038 return $ac_func ();
38039   ;
38040   return 0;
38041 }
38042 _ACEOF
38043 rm -f conftest.$ac_objext conftest$ac_exeext
38044 if { (ac_try="$ac_link"
38045 case "(($ac_try" in
38046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38047   *) ac_try_echo=$ac_try;;
38048 esac
38049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38050   (eval "$ac_link") 2>conftest.er1
38051   ac_status=$?
38052   grep -v '^ *+' conftest.er1 >conftest.err
38053   rm -f conftest.er1
38054   cat conftest.err >&5
38055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38056   (exit $ac_status); } && {
38057          test -z "$ac_c_werror_flag" ||
38058          test ! -s conftest.err
38059        } && test -s conftest$ac_exeext &&
38060        $as_test_x conftest$ac_exeext; then
38061   eval "$as_ac_var=yes"
38062 else
38063   echo "$as_me: failed program was:" >&5
38064 sed 's/^/| /' conftest.$ac_ext >&5
38065
38066         eval "$as_ac_var=no"
38067 fi
38068
38069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38070       conftest$ac_exeext conftest.$ac_ext
38071 fi
38072 ac_res=`eval echo '${'$as_ac_var'}'`
38073                { echo "$as_me:$LINENO: result: $ac_res" >&5
38074 echo "${ECHO_T}$ac_res" >&6; }
38075 if test `eval echo '${'$as_ac_var'}'` = yes; then
38076   cat >>confdefs.h <<_ACEOF
38077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38078 _ACEOF
38079
38080 fi
38081 done
38082
38083
38084
38085
38086
38087
38088 for ac_func in snprintf vsnprintf gethostid fseeko
38089 do
38090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38094   echo $ECHO_N "(cached) $ECHO_C" >&6
38095 else
38096   cat >conftest.$ac_ext <<_ACEOF
38097 /* confdefs.h.  */
38098 _ACEOF
38099 cat confdefs.h >>conftest.$ac_ext
38100 cat >>conftest.$ac_ext <<_ACEOF
38101 /* end confdefs.h.  */
38102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38104 #define $ac_func innocuous_$ac_func
38105
38106 /* System header to define __stub macros and hopefully few prototypes,
38107     which can conflict with char $ac_func (); below.
38108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38109     <limits.h> exists even on freestanding compilers.  */
38110
38111 #ifdef __STDC__
38112 # include <limits.h>
38113 #else
38114 # include <assert.h>
38115 #endif
38116
38117 #undef $ac_func
38118
38119 /* Override any GCC internal prototype to avoid an error.
38120    Use char because int might match the return type of a GCC
38121    builtin and then its argument prototype would still apply.  */
38122 #ifdef __cplusplus
38123 extern "C"
38124 #endif
38125 char $ac_func ();
38126 /* The GNU C library defines this for functions which it implements
38127     to always fail with ENOSYS.  Some functions are actually named
38128     something starting with __ and the normal name is an alias.  */
38129 #if defined __stub_$ac_func || defined __stub___$ac_func
38130 choke me
38131 #endif
38132
38133 int
38134 main ()
38135 {
38136 return $ac_func ();
38137   ;
38138   return 0;
38139 }
38140 _ACEOF
38141 rm -f conftest.$ac_objext conftest$ac_exeext
38142 if { (ac_try="$ac_link"
38143 case "(($ac_try" in
38144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38145   *) ac_try_echo=$ac_try;;
38146 esac
38147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38148   (eval "$ac_link") 2>conftest.er1
38149   ac_status=$?
38150   grep -v '^ *+' conftest.er1 >conftest.err
38151   rm -f conftest.er1
38152   cat conftest.err >&5
38153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38154   (exit $ac_status); } && {
38155          test -z "$ac_c_werror_flag" ||
38156          test ! -s conftest.err
38157        } && test -s conftest$ac_exeext &&
38158        $as_test_x conftest$ac_exeext; then
38159   eval "$as_ac_var=yes"
38160 else
38161   echo "$as_me: failed program was:" >&5
38162 sed 's/^/| /' conftest.$ac_ext >&5
38163
38164         eval "$as_ac_var=no"
38165 fi
38166
38167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38168       conftest$ac_exeext conftest.$ac_ext
38169 fi
38170 ac_res=`eval echo '${'$as_ac_var'}'`
38171                { echo "$as_me:$LINENO: result: $ac_res" >&5
38172 echo "${ECHO_T}$ac_res" >&6; }
38173 if test `eval echo '${'$as_ac_var'}'` = yes; then
38174   cat >>confdefs.h <<_ACEOF
38175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38176 _ACEOF
38177
38178 fi
38179 done
38180
38181
38182 { echo "$as_me:$LINENO: checking for va_copy" >&5
38183 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38184 if test "${ba_cv_va_copy+set}" = set; then
38185   echo $ECHO_N "(cached) $ECHO_C" >&6
38186 else
38187
38188        cat >conftest.$ac_ext <<_ACEOF
38189 /* confdefs.h.  */
38190 _ACEOF
38191 cat confdefs.h >>conftest.$ac_ext
38192 cat >>conftest.$ac_ext <<_ACEOF
38193 /* end confdefs.h.  */
38194
38195               #include <stdarg.h>
38196               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38197               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38198
38199 int
38200 main ()
38201 {
38202
38203               call_use_va_copy(1,2,3)
38204
38205   ;
38206   return 0;
38207 }
38208 _ACEOF
38209 rm -f conftest.$ac_objext conftest$ac_exeext
38210 if { (ac_try="$ac_link"
38211 case "(($ac_try" in
38212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38213   *) ac_try_echo=$ac_try;;
38214 esac
38215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38216   (eval "$ac_link") 2>conftest.er1
38217   ac_status=$?
38218   grep -v '^ *+' conftest.er1 >conftest.err
38219   rm -f conftest.er1
38220   cat conftest.err >&5
38221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38222   (exit $ac_status); } && {
38223          test -z "$ac_c_werror_flag" ||
38224          test ! -s conftest.err
38225        } && test -s conftest$ac_exeext &&
38226        $as_test_x conftest$ac_exeext; then
38227
38228               ba_cv_va_copy=yes,
38229
38230 else
38231   echo "$as_me: failed program was:" >&5
38232 sed 's/^/| /' conftest.$ac_ext >&5
38233
38234
38235               ba_cv_va_copy=no
38236
38237
38238 fi
38239
38240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38241       conftest$ac_exeext conftest.$ac_ext
38242
38243
38244 fi
38245 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38246 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38247 test $ba_cv_va_copy = yes &&
38248 cat >>confdefs.h <<\_ACEOF
38249 #define HAVE_VA_COPY 1
38250 _ACEOF
38251
38252
38253
38254
38255
38256
38257 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38258 do
38259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38263   echo $ECHO_N "(cached) $ECHO_C" >&6
38264 else
38265   cat >conftest.$ac_ext <<_ACEOF
38266 /* confdefs.h.  */
38267 _ACEOF
38268 cat confdefs.h >>conftest.$ac_ext
38269 cat >>conftest.$ac_ext <<_ACEOF
38270 /* end confdefs.h.  */
38271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38273 #define $ac_func innocuous_$ac_func
38274
38275 /* System header to define __stub macros and hopefully few prototypes,
38276     which can conflict with char $ac_func (); below.
38277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38278     <limits.h> exists even on freestanding compilers.  */
38279
38280 #ifdef __STDC__
38281 # include <limits.h>
38282 #else
38283 # include <assert.h>
38284 #endif
38285
38286 #undef $ac_func
38287
38288 /* Override any GCC internal prototype to avoid an error.
38289    Use char because int might match the return type of a GCC
38290    builtin and then its argument prototype would still apply.  */
38291 #ifdef __cplusplus
38292 extern "C"
38293 #endif
38294 char $ac_func ();
38295 /* The GNU C library defines this for functions which it implements
38296     to always fail with ENOSYS.  Some functions are actually named
38297     something starting with __ and the normal name is an alias.  */
38298 #if defined __stub_$ac_func || defined __stub___$ac_func
38299 choke me
38300 #endif
38301
38302 int
38303 main ()
38304 {
38305 return $ac_func ();
38306   ;
38307   return 0;
38308 }
38309 _ACEOF
38310 rm -f conftest.$ac_objext conftest$ac_exeext
38311 if { (ac_try="$ac_link"
38312 case "(($ac_try" in
38313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38314   *) ac_try_echo=$ac_try;;
38315 esac
38316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38317   (eval "$ac_link") 2>conftest.er1
38318   ac_status=$?
38319   grep -v '^ *+' conftest.er1 >conftest.err
38320   rm -f conftest.er1
38321   cat conftest.err >&5
38322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38323   (exit $ac_status); } && {
38324          test -z "$ac_c_werror_flag" ||
38325          test ! -s conftest.err
38326        } && test -s conftest$ac_exeext &&
38327        $as_test_x conftest$ac_exeext; then
38328   eval "$as_ac_var=yes"
38329 else
38330   echo "$as_me: failed program was:" >&5
38331 sed 's/^/| /' conftest.$ac_ext >&5
38332
38333         eval "$as_ac_var=no"
38334 fi
38335
38336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38337       conftest$ac_exeext conftest.$ac_ext
38338 fi
38339 ac_res=`eval echo '${'$as_ac_var'}'`
38340                { echo "$as_me:$LINENO: result: $ac_res" >&5
38341 echo "${ECHO_T}$ac_res" >&6; }
38342 if test `eval echo '${'$as_ac_var'}'` = yes; then
38343   cat >>confdefs.h <<_ACEOF
38344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38345 _ACEOF
38346
38347 fi
38348 done
38349
38350
38351 # If resolver functions are not in libc check for -lnsl or -lresolv.
38352 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38353 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38354 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38355   echo $ECHO_N "(cached) $ECHO_C" >&6
38356 else
38357   cat >conftest.$ac_ext <<_ACEOF
38358 /* confdefs.h.  */
38359 _ACEOF
38360 cat confdefs.h >>conftest.$ac_ext
38361 cat >>conftest.$ac_ext <<_ACEOF
38362 /* end confdefs.h.  */
38363 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38365 #define gethostbyname_r innocuous_gethostbyname_r
38366
38367 /* System header to define __stub macros and hopefully few prototypes,
38368     which can conflict with char gethostbyname_r (); below.
38369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38370     <limits.h> exists even on freestanding compilers.  */
38371
38372 #ifdef __STDC__
38373 # include <limits.h>
38374 #else
38375 # include <assert.h>
38376 #endif
38377
38378 #undef gethostbyname_r
38379
38380 /* Override any GCC internal prototype to avoid an error.
38381    Use char because int might match the return type of a GCC
38382    builtin and then its argument prototype would still apply.  */
38383 #ifdef __cplusplus
38384 extern "C"
38385 #endif
38386 char gethostbyname_r ();
38387 /* The GNU C library defines this for functions which it implements
38388     to always fail with ENOSYS.  Some functions are actually named
38389     something starting with __ and the normal name is an alias.  */
38390 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38391 choke me
38392 #endif
38393
38394 int
38395 main ()
38396 {
38397 return gethostbyname_r ();
38398   ;
38399   return 0;
38400 }
38401 _ACEOF
38402 rm -f conftest.$ac_objext conftest$ac_exeext
38403 if { (ac_try="$ac_link"
38404 case "(($ac_try" in
38405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38406   *) ac_try_echo=$ac_try;;
38407 esac
38408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38409   (eval "$ac_link") 2>conftest.er1
38410   ac_status=$?
38411   grep -v '^ *+' conftest.er1 >conftest.err
38412   rm -f conftest.er1
38413   cat conftest.err >&5
38414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38415   (exit $ac_status); } && {
38416          test -z "$ac_c_werror_flag" ||
38417          test ! -s conftest.err
38418        } && test -s conftest$ac_exeext &&
38419        $as_test_x conftest$ac_exeext; then
38420   ac_cv_func_gethostbyname_r=yes
38421 else
38422   echo "$as_me: failed program was:" >&5
38423 sed 's/^/| /' conftest.$ac_ext >&5
38424
38425         ac_cv_func_gethostbyname_r=no
38426 fi
38427
38428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38429       conftest$ac_exeext conftest.$ac_ext
38430 fi
38431 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38432 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38433 if test $ac_cv_func_gethostbyname_r = yes; then
38434   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38435 echo "${ECHO_T}using libc's resolver" >&6; }
38436 else
38437
38438 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38439 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38440 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38441   echo $ECHO_N "(cached) $ECHO_C" >&6
38442 else
38443   ac_check_lib_save_LIBS=$LIBS
38444 LIBS="-lnsl  $LIBS"
38445 cat >conftest.$ac_ext <<_ACEOF
38446 /* confdefs.h.  */
38447 _ACEOF
38448 cat confdefs.h >>conftest.$ac_ext
38449 cat >>conftest.$ac_ext <<_ACEOF
38450 /* end confdefs.h.  */
38451
38452 /* Override any GCC internal prototype to avoid an error.
38453    Use char because int might match the return type of a GCC
38454    builtin and then its argument prototype would still apply.  */
38455 #ifdef __cplusplus
38456 extern "C"
38457 #endif
38458 char gethostbyname_r ();
38459 int
38460 main ()
38461 {
38462 return gethostbyname_r ();
38463   ;
38464   return 0;
38465 }
38466 _ACEOF
38467 rm -f conftest.$ac_objext conftest$ac_exeext
38468 if { (ac_try="$ac_link"
38469 case "(($ac_try" in
38470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38471   *) ac_try_echo=$ac_try;;
38472 esac
38473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38474   (eval "$ac_link") 2>conftest.er1
38475   ac_status=$?
38476   grep -v '^ *+' conftest.er1 >conftest.err
38477   rm -f conftest.er1
38478   cat conftest.err >&5
38479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480   (exit $ac_status); } && {
38481          test -z "$ac_c_werror_flag" ||
38482          test ! -s conftest.err
38483        } && test -s conftest$ac_exeext &&
38484        $as_test_x conftest$ac_exeext; then
38485   ac_cv_lib_nsl_gethostbyname_r=yes
38486 else
38487   echo "$as_me: failed program was:" >&5
38488 sed 's/^/| /' conftest.$ac_ext >&5
38489
38490         ac_cv_lib_nsl_gethostbyname_r=no
38491 fi
38492
38493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38494       conftest$ac_exeext conftest.$ac_ext
38495 LIBS=$ac_check_lib_save_LIBS
38496 fi
38497 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38498 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38499 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38500   cat >>confdefs.h <<_ACEOF
38501 #define HAVE_LIBNSL 1
38502 _ACEOF
38503
38504   LIBS="-lnsl $LIBS"
38505
38506 fi
38507
38508
38509 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38510 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38511 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38512   echo $ECHO_N "(cached) $ECHO_C" >&6
38513 else
38514   ac_check_lib_save_LIBS=$LIBS
38515 LIBS="-lresolv  $LIBS"
38516 cat >conftest.$ac_ext <<_ACEOF
38517 /* confdefs.h.  */
38518 _ACEOF
38519 cat confdefs.h >>conftest.$ac_ext
38520 cat >>conftest.$ac_ext <<_ACEOF
38521 /* end confdefs.h.  */
38522
38523 /* Override any GCC internal prototype to avoid an error.
38524    Use char because int might match the return type of a GCC
38525    builtin and then its argument prototype would still apply.  */
38526 #ifdef __cplusplus
38527 extern "C"
38528 #endif
38529 char gethostbyname_r ();
38530 int
38531 main ()
38532 {
38533 return gethostbyname_r ();
38534   ;
38535   return 0;
38536 }
38537 _ACEOF
38538 rm -f conftest.$ac_objext conftest$ac_exeext
38539 if { (ac_try="$ac_link"
38540 case "(($ac_try" in
38541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38542   *) ac_try_echo=$ac_try;;
38543 esac
38544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38545   (eval "$ac_link") 2>conftest.er1
38546   ac_status=$?
38547   grep -v '^ *+' conftest.er1 >conftest.err
38548   rm -f conftest.er1
38549   cat conftest.err >&5
38550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38551   (exit $ac_status); } && {
38552          test -z "$ac_c_werror_flag" ||
38553          test ! -s conftest.err
38554        } && test -s conftest$ac_exeext &&
38555        $as_test_x conftest$ac_exeext; then
38556   ac_cv_lib_resolv_gethostbyname_r=yes
38557 else
38558   echo "$as_me: failed program was:" >&5
38559 sed 's/^/| /' conftest.$ac_ext >&5
38560
38561         ac_cv_lib_resolv_gethostbyname_r=no
38562 fi
38563
38564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38565       conftest$ac_exeext conftest.$ac_ext
38566 LIBS=$ac_check_lib_save_LIBS
38567 fi
38568 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38569 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38570 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38571   cat >>confdefs.h <<_ACEOF
38572 #define HAVE_LIBRESOLV 1
38573 _ACEOF
38574
38575   LIBS="-lresolv $LIBS"
38576
38577 fi
38578
38579 fi
38580
38581
38582
38583 for ac_func in inet_pton
38584 do
38585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38589   echo $ECHO_N "(cached) $ECHO_C" >&6
38590 else
38591   cat >conftest.$ac_ext <<_ACEOF
38592 /* confdefs.h.  */
38593 _ACEOF
38594 cat confdefs.h >>conftest.$ac_ext
38595 cat >>conftest.$ac_ext <<_ACEOF
38596 /* end confdefs.h.  */
38597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38599 #define $ac_func innocuous_$ac_func
38600
38601 /* System header to define __stub macros and hopefully few prototypes,
38602     which can conflict with char $ac_func (); below.
38603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38604     <limits.h> exists even on freestanding compilers.  */
38605
38606 #ifdef __STDC__
38607 # include <limits.h>
38608 #else
38609 # include <assert.h>
38610 #endif
38611
38612 #undef $ac_func
38613
38614 /* Override any GCC internal prototype to avoid an error.
38615    Use char because int might match the return type of a GCC
38616    builtin and then its argument prototype would still apply.  */
38617 #ifdef __cplusplus
38618 extern "C"
38619 #endif
38620 char $ac_func ();
38621 /* The GNU C library defines this for functions which it implements
38622     to always fail with ENOSYS.  Some functions are actually named
38623     something starting with __ and the normal name is an alias.  */
38624 #if defined __stub_$ac_func || defined __stub___$ac_func
38625 choke me
38626 #endif
38627
38628 int
38629 main ()
38630 {
38631 return $ac_func ();
38632   ;
38633   return 0;
38634 }
38635 _ACEOF
38636 rm -f conftest.$ac_objext conftest$ac_exeext
38637 if { (ac_try="$ac_link"
38638 case "(($ac_try" in
38639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38640   *) ac_try_echo=$ac_try;;
38641 esac
38642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38643   (eval "$ac_link") 2>conftest.er1
38644   ac_status=$?
38645   grep -v '^ *+' conftest.er1 >conftest.err
38646   rm -f conftest.er1
38647   cat conftest.err >&5
38648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649   (exit $ac_status); } && {
38650          test -z "$ac_c_werror_flag" ||
38651          test ! -s conftest.err
38652        } && test -s conftest$ac_exeext &&
38653        $as_test_x conftest$ac_exeext; then
38654   eval "$as_ac_var=yes"
38655 else
38656   echo "$as_me: failed program was:" >&5
38657 sed 's/^/| /' conftest.$ac_ext >&5
38658
38659         eval "$as_ac_var=no"
38660 fi
38661
38662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38663       conftest$ac_exeext conftest.$ac_ext
38664 fi
38665 ac_res=`eval echo '${'$as_ac_var'}'`
38666                { echo "$as_me:$LINENO: result: $ac_res" >&5
38667 echo "${ECHO_T}$ac_res" >&6; }
38668 if test `eval echo '${'$as_ac_var'}'` = yes; then
38669   cat >>confdefs.h <<_ACEOF
38670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38671 _ACEOF
38672  cat >>confdefs.h <<\_ACEOF
38673 #define HAVE_INET_PTON 1
38674 _ACEOF
38675
38676 fi
38677 done
38678
38679
38680 for ac_func in inet_ntop
38681 do
38682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38686   echo $ECHO_N "(cached) $ECHO_C" >&6
38687 else
38688   cat >conftest.$ac_ext <<_ACEOF
38689 /* confdefs.h.  */
38690 _ACEOF
38691 cat confdefs.h >>conftest.$ac_ext
38692 cat >>conftest.$ac_ext <<_ACEOF
38693 /* end confdefs.h.  */
38694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38696 #define $ac_func innocuous_$ac_func
38697
38698 /* System header to define __stub macros and hopefully few prototypes,
38699     which can conflict with char $ac_func (); below.
38700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38701     <limits.h> exists even on freestanding compilers.  */
38702
38703 #ifdef __STDC__
38704 # include <limits.h>
38705 #else
38706 # include <assert.h>
38707 #endif
38708
38709 #undef $ac_func
38710
38711 /* Override any GCC internal prototype to avoid an error.
38712    Use char because int might match the return type of a GCC
38713    builtin and then its argument prototype would still apply.  */
38714 #ifdef __cplusplus
38715 extern "C"
38716 #endif
38717 char $ac_func ();
38718 /* The GNU C library defines this for functions which it implements
38719     to always fail with ENOSYS.  Some functions are actually named
38720     something starting with __ and the normal name is an alias.  */
38721 #if defined __stub_$ac_func || defined __stub___$ac_func
38722 choke me
38723 #endif
38724
38725 int
38726 main ()
38727 {
38728 return $ac_func ();
38729   ;
38730   return 0;
38731 }
38732 _ACEOF
38733 rm -f conftest.$ac_objext conftest$ac_exeext
38734 if { (ac_try="$ac_link"
38735 case "(($ac_try" in
38736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38737   *) ac_try_echo=$ac_try;;
38738 esac
38739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38740   (eval "$ac_link") 2>conftest.er1
38741   ac_status=$?
38742   grep -v '^ *+' conftest.er1 >conftest.err
38743   rm -f conftest.er1
38744   cat conftest.err >&5
38745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746   (exit $ac_status); } && {
38747          test -z "$ac_c_werror_flag" ||
38748          test ! -s conftest.err
38749        } && test -s conftest$ac_exeext &&
38750        $as_test_x conftest$ac_exeext; then
38751   eval "$as_ac_var=yes"
38752 else
38753   echo "$as_me: failed program was:" >&5
38754 sed 's/^/| /' conftest.$ac_ext >&5
38755
38756         eval "$as_ac_var=no"
38757 fi
38758
38759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38760       conftest$ac_exeext conftest.$ac_ext
38761 fi
38762 ac_res=`eval echo '${'$as_ac_var'}'`
38763                { echo "$as_me:$LINENO: result: $ac_res" >&5
38764 echo "${ECHO_T}$ac_res" >&6; }
38765 if test `eval echo '${'$as_ac_var'}'` = yes; then
38766   cat >>confdefs.h <<_ACEOF
38767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38768 _ACEOF
38769  cat >>confdefs.h <<\_ACEOF
38770 #define HAVE_INET_NTOP 1
38771 _ACEOF
38772
38773 fi
38774 done
38775
38776
38777 for ac_func in gethostbyname2
38778 do
38779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38783   echo $ECHO_N "(cached) $ECHO_C" >&6
38784 else
38785   cat >conftest.$ac_ext <<_ACEOF
38786 /* confdefs.h.  */
38787 _ACEOF
38788 cat confdefs.h >>conftest.$ac_ext
38789 cat >>conftest.$ac_ext <<_ACEOF
38790 /* end confdefs.h.  */
38791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38793 #define $ac_func innocuous_$ac_func
38794
38795 /* System header to define __stub macros and hopefully few prototypes,
38796     which can conflict with char $ac_func (); below.
38797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38798     <limits.h> exists even on freestanding compilers.  */
38799
38800 #ifdef __STDC__
38801 # include <limits.h>
38802 #else
38803 # include <assert.h>
38804 #endif
38805
38806 #undef $ac_func
38807
38808 /* Override any GCC internal prototype to avoid an error.
38809    Use char because int might match the return type of a GCC
38810    builtin and then its argument prototype would still apply.  */
38811 #ifdef __cplusplus
38812 extern "C"
38813 #endif
38814 char $ac_func ();
38815 /* The GNU C library defines this for functions which it implements
38816     to always fail with ENOSYS.  Some functions are actually named
38817     something starting with __ and the normal name is an alias.  */
38818 #if defined __stub_$ac_func || defined __stub___$ac_func
38819 choke me
38820 #endif
38821
38822 int
38823 main ()
38824 {
38825 return $ac_func ();
38826   ;
38827   return 0;
38828 }
38829 _ACEOF
38830 rm -f conftest.$ac_objext conftest$ac_exeext
38831 if { (ac_try="$ac_link"
38832 case "(($ac_try" in
38833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38834   *) ac_try_echo=$ac_try;;
38835 esac
38836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38837   (eval "$ac_link") 2>conftest.er1
38838   ac_status=$?
38839   grep -v '^ *+' conftest.er1 >conftest.err
38840   rm -f conftest.er1
38841   cat conftest.err >&5
38842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843   (exit $ac_status); } && {
38844          test -z "$ac_c_werror_flag" ||
38845          test ! -s conftest.err
38846        } && test -s conftest$ac_exeext &&
38847        $as_test_x conftest$ac_exeext; then
38848   eval "$as_ac_var=yes"
38849 else
38850   echo "$as_me: failed program was:" >&5
38851 sed 's/^/| /' conftest.$ac_ext >&5
38852
38853         eval "$as_ac_var=no"
38854 fi
38855
38856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38857       conftest$ac_exeext conftest.$ac_ext
38858 fi
38859 ac_res=`eval echo '${'$as_ac_var'}'`
38860                { echo "$as_me:$LINENO: result: $ac_res" >&5
38861 echo "${ECHO_T}$ac_res" >&6; }
38862 if test `eval echo '${'$as_ac_var'}'` = yes; then
38863   cat >>confdefs.h <<_ACEOF
38864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38865 _ACEOF
38866  cat >>confdefs.h <<\_ACEOF
38867 #define HAVE_GETHOSTBYNAME2 1
38868 _ACEOF
38869
38870 fi
38871 done
38872
38873
38874 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38875 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38876 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38877   echo $ECHO_N "(cached) $ECHO_C" >&6
38878 else
38879
38880        cat >conftest.$ac_ext <<_ACEOF
38881 /* confdefs.h.  */
38882 _ACEOF
38883 cat confdefs.h >>conftest.$ac_ext
38884 cat >>conftest.$ac_ext <<_ACEOF
38885 /* end confdefs.h.  */
38886
38887               #include <sys/socket.h>
38888
38889 int
38890 main ()
38891 {
38892
38893               struct sockaddr s; s.sa_len;
38894
38895   ;
38896   return 0;
38897 }
38898 _ACEOF
38899 rm -f conftest.$ac_objext
38900 if { (ac_try="$ac_compile"
38901 case "(($ac_try" in
38902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38903   *) ac_try_echo=$ac_try;;
38904 esac
38905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38906   (eval "$ac_compile") 2>conftest.er1
38907   ac_status=$?
38908   grep -v '^ *+' conftest.er1 >conftest.err
38909   rm -f conftest.er1
38910   cat conftest.err >&5
38911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38912   (exit $ac_status); } && {
38913          test -z "$ac_c_werror_flag" ||
38914          test ! -s conftest.err
38915        } && test -s conftest.$ac_objext; then
38916
38917              ac_cv_struct_sockaddr_sa_len=yes
38918
38919 else
38920   echo "$as_me: failed program was:" >&5
38921 sed 's/^/| /' conftest.$ac_ext >&5
38922
38923         ac_cv_struct_sockaddr_sa_len=no
38924
38925
38926 fi
38927
38928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38929
38930
38931 fi
38932 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38933 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38934
38935 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38936
38937 cat >>confdefs.h <<\_ACEOF
38938 #define HAVE_SA_LEN 1
38939 _ACEOF
38940
38941 fi
38942
38943
38944 for ac_func in strftime
38945 do
38946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38950   echo $ECHO_N "(cached) $ECHO_C" >&6
38951 else
38952   cat >conftest.$ac_ext <<_ACEOF
38953 /* confdefs.h.  */
38954 _ACEOF
38955 cat confdefs.h >>conftest.$ac_ext
38956 cat >>conftest.$ac_ext <<_ACEOF
38957 /* end confdefs.h.  */
38958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38960 #define $ac_func innocuous_$ac_func
38961
38962 /* System header to define __stub macros and hopefully few prototypes,
38963     which can conflict with char $ac_func (); below.
38964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38965     <limits.h> exists even on freestanding compilers.  */
38966
38967 #ifdef __STDC__
38968 # include <limits.h>
38969 #else
38970 # include <assert.h>
38971 #endif
38972
38973 #undef $ac_func
38974
38975 /* Override any GCC internal prototype to avoid an error.
38976    Use char because int might match the return type of a GCC
38977    builtin and then its argument prototype would still apply.  */
38978 #ifdef __cplusplus
38979 extern "C"
38980 #endif
38981 char $ac_func ();
38982 /* The GNU C library defines this for functions which it implements
38983     to always fail with ENOSYS.  Some functions are actually named
38984     something starting with __ and the normal name is an alias.  */
38985 #if defined __stub_$ac_func || defined __stub___$ac_func
38986 choke me
38987 #endif
38988
38989 int
38990 main ()
38991 {
38992 return $ac_func ();
38993   ;
38994   return 0;
38995 }
38996 _ACEOF
38997 rm -f conftest.$ac_objext conftest$ac_exeext
38998 if { (ac_try="$ac_link"
38999 case "(($ac_try" in
39000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39001   *) ac_try_echo=$ac_try;;
39002 esac
39003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39004   (eval "$ac_link") 2>conftest.er1
39005   ac_status=$?
39006   grep -v '^ *+' conftest.er1 >conftest.err
39007   rm -f conftest.er1
39008   cat conftest.err >&5
39009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39010   (exit $ac_status); } && {
39011          test -z "$ac_c_werror_flag" ||
39012          test ! -s conftest.err
39013        } && test -s conftest$ac_exeext &&
39014        $as_test_x conftest$ac_exeext; then
39015   eval "$as_ac_var=yes"
39016 else
39017   echo "$as_me: failed program was:" >&5
39018 sed 's/^/| /' conftest.$ac_ext >&5
39019
39020         eval "$as_ac_var=no"
39021 fi
39022
39023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39024       conftest$ac_exeext conftest.$ac_ext
39025 fi
39026 ac_res=`eval echo '${'$as_ac_var'}'`
39027                { echo "$as_me:$LINENO: result: $ac_res" >&5
39028 echo "${ECHO_T}$ac_res" >&6; }
39029 if test `eval echo '${'$as_ac_var'}'` = yes; then
39030   cat >>confdefs.h <<_ACEOF
39031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39032 _ACEOF
39033
39034 else
39035   # strftime is in -lintl on SCO UNIX.
39036 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39037 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39038 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39039   echo $ECHO_N "(cached) $ECHO_C" >&6
39040 else
39041   ac_check_lib_save_LIBS=$LIBS
39042 LIBS="-lintl  $LIBS"
39043 cat >conftest.$ac_ext <<_ACEOF
39044 /* confdefs.h.  */
39045 _ACEOF
39046 cat confdefs.h >>conftest.$ac_ext
39047 cat >>conftest.$ac_ext <<_ACEOF
39048 /* end confdefs.h.  */
39049
39050 /* Override any GCC internal prototype to avoid an error.
39051    Use char because int might match the return type of a GCC
39052    builtin and then its argument prototype would still apply.  */
39053 #ifdef __cplusplus
39054 extern "C"
39055 #endif
39056 char strftime ();
39057 int
39058 main ()
39059 {
39060 return strftime ();
39061   ;
39062   return 0;
39063 }
39064 _ACEOF
39065 rm -f conftest.$ac_objext conftest$ac_exeext
39066 if { (ac_try="$ac_link"
39067 case "(($ac_try" in
39068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39069   *) ac_try_echo=$ac_try;;
39070 esac
39071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39072   (eval "$ac_link") 2>conftest.er1
39073   ac_status=$?
39074   grep -v '^ *+' conftest.er1 >conftest.err
39075   rm -f conftest.er1
39076   cat conftest.err >&5
39077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078   (exit $ac_status); } && {
39079          test -z "$ac_c_werror_flag" ||
39080          test ! -s conftest.err
39081        } && test -s conftest$ac_exeext &&
39082        $as_test_x conftest$ac_exeext; then
39083   ac_cv_lib_intl_strftime=yes
39084 else
39085   echo "$as_me: failed program was:" >&5
39086 sed 's/^/| /' conftest.$ac_ext >&5
39087
39088         ac_cv_lib_intl_strftime=no
39089 fi
39090
39091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39092       conftest$ac_exeext conftest.$ac_ext
39093 LIBS=$ac_check_lib_save_LIBS
39094 fi
39095 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39096 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39097 if test $ac_cv_lib_intl_strftime = yes; then
39098   cat >>confdefs.h <<\_ACEOF
39099 #define HAVE_STRFTIME 1
39100 _ACEOF
39101
39102 LIBS="-lintl $LIBS"
39103 fi
39104
39105 fi
39106 done
39107
39108
39109 for ac_func in vprintf
39110 do
39111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39115   echo $ECHO_N "(cached) $ECHO_C" >&6
39116 else
39117   cat >conftest.$ac_ext <<_ACEOF
39118 /* confdefs.h.  */
39119 _ACEOF
39120 cat confdefs.h >>conftest.$ac_ext
39121 cat >>conftest.$ac_ext <<_ACEOF
39122 /* end confdefs.h.  */
39123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39125 #define $ac_func innocuous_$ac_func
39126
39127 /* System header to define __stub macros and hopefully few prototypes,
39128     which can conflict with char $ac_func (); below.
39129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39130     <limits.h> exists even on freestanding compilers.  */
39131
39132 #ifdef __STDC__
39133 # include <limits.h>
39134 #else
39135 # include <assert.h>
39136 #endif
39137
39138 #undef $ac_func
39139
39140 /* Override any GCC internal prototype to avoid an error.
39141    Use char because int might match the return type of a GCC
39142    builtin and then its argument prototype would still apply.  */
39143 #ifdef __cplusplus
39144 extern "C"
39145 #endif
39146 char $ac_func ();
39147 /* The GNU C library defines this for functions which it implements
39148     to always fail with ENOSYS.  Some functions are actually named
39149     something starting with __ and the normal name is an alias.  */
39150 #if defined __stub_$ac_func || defined __stub___$ac_func
39151 choke me
39152 #endif
39153
39154 int
39155 main ()
39156 {
39157 return $ac_func ();
39158   ;
39159   return 0;
39160 }
39161 _ACEOF
39162 rm -f conftest.$ac_objext conftest$ac_exeext
39163 if { (ac_try="$ac_link"
39164 case "(($ac_try" in
39165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39166   *) ac_try_echo=$ac_try;;
39167 esac
39168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39169   (eval "$ac_link") 2>conftest.er1
39170   ac_status=$?
39171   grep -v '^ *+' conftest.er1 >conftest.err
39172   rm -f conftest.er1
39173   cat conftest.err >&5
39174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39175   (exit $ac_status); } && {
39176          test -z "$ac_c_werror_flag" ||
39177          test ! -s conftest.err
39178        } && test -s conftest$ac_exeext &&
39179        $as_test_x conftest$ac_exeext; then
39180   eval "$as_ac_var=yes"
39181 else
39182   echo "$as_me: failed program was:" >&5
39183 sed 's/^/| /' conftest.$ac_ext >&5
39184
39185         eval "$as_ac_var=no"
39186 fi
39187
39188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39189       conftest$ac_exeext conftest.$ac_ext
39190 fi
39191 ac_res=`eval echo '${'$as_ac_var'}'`
39192                { echo "$as_me:$LINENO: result: $ac_res" >&5
39193 echo "${ECHO_T}$ac_res" >&6; }
39194 if test `eval echo '${'$as_ac_var'}'` = yes; then
39195   cat >>confdefs.h <<_ACEOF
39196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39197 _ACEOF
39198
39199 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39200 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39201 if test "${ac_cv_func__doprnt+set}" = set; then
39202   echo $ECHO_N "(cached) $ECHO_C" >&6
39203 else
39204   cat >conftest.$ac_ext <<_ACEOF
39205 /* confdefs.h.  */
39206 _ACEOF
39207 cat confdefs.h >>conftest.$ac_ext
39208 cat >>conftest.$ac_ext <<_ACEOF
39209 /* end confdefs.h.  */
39210 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39212 #define _doprnt innocuous__doprnt
39213
39214 /* System header to define __stub macros and hopefully few prototypes,
39215     which can conflict with char _doprnt (); below.
39216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39217     <limits.h> exists even on freestanding compilers.  */
39218
39219 #ifdef __STDC__
39220 # include <limits.h>
39221 #else
39222 # include <assert.h>
39223 #endif
39224
39225 #undef _doprnt
39226
39227 /* Override any GCC internal prototype to avoid an error.
39228    Use char because int might match the return type of a GCC
39229    builtin and then its argument prototype would still apply.  */
39230 #ifdef __cplusplus
39231 extern "C"
39232 #endif
39233 char _doprnt ();
39234 /* The GNU C library defines this for functions which it implements
39235     to always fail with ENOSYS.  Some functions are actually named
39236     something starting with __ and the normal name is an alias.  */
39237 #if defined __stub__doprnt || defined __stub____doprnt
39238 choke me
39239 #endif
39240
39241 int
39242 main ()
39243 {
39244 return _doprnt ();
39245   ;
39246   return 0;
39247 }
39248 _ACEOF
39249 rm -f conftest.$ac_objext conftest$ac_exeext
39250 if { (ac_try="$ac_link"
39251 case "(($ac_try" in
39252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39253   *) ac_try_echo=$ac_try;;
39254 esac
39255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39256   (eval "$ac_link") 2>conftest.er1
39257   ac_status=$?
39258   grep -v '^ *+' conftest.er1 >conftest.err
39259   rm -f conftest.er1
39260   cat conftest.err >&5
39261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262   (exit $ac_status); } && {
39263          test -z "$ac_c_werror_flag" ||
39264          test ! -s conftest.err
39265        } && test -s conftest$ac_exeext &&
39266        $as_test_x conftest$ac_exeext; then
39267   ac_cv_func__doprnt=yes
39268 else
39269   echo "$as_me: failed program was:" >&5
39270 sed 's/^/| /' conftest.$ac_ext >&5
39271
39272         ac_cv_func__doprnt=no
39273 fi
39274
39275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39276       conftest$ac_exeext conftest.$ac_ext
39277 fi
39278 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39279 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39280 if test $ac_cv_func__doprnt = yes; then
39281
39282 cat >>confdefs.h <<\_ACEOF
39283 #define HAVE_DOPRNT 1
39284 _ACEOF
39285
39286 fi
39287
39288 fi
39289 done
39290
39291
39292 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39293 # for constant arguments.  Useless!
39294 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39295 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39296 if test "${ac_cv_working_alloca_h+set}" = set; then
39297   echo $ECHO_N "(cached) $ECHO_C" >&6
39298 else
39299   cat >conftest.$ac_ext <<_ACEOF
39300 /* confdefs.h.  */
39301 _ACEOF
39302 cat confdefs.h >>conftest.$ac_ext
39303 cat >>conftest.$ac_ext <<_ACEOF
39304 /* end confdefs.h.  */
39305 #include <alloca.h>
39306 int
39307 main ()
39308 {
39309 char *p = (char *) alloca (2 * sizeof (int));
39310                           if (p) return 0;
39311   ;
39312   return 0;
39313 }
39314 _ACEOF
39315 rm -f conftest.$ac_objext conftest$ac_exeext
39316 if { (ac_try="$ac_link"
39317 case "(($ac_try" in
39318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39319   *) ac_try_echo=$ac_try;;
39320 esac
39321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39322   (eval "$ac_link") 2>conftest.er1
39323   ac_status=$?
39324   grep -v '^ *+' conftest.er1 >conftest.err
39325   rm -f conftest.er1
39326   cat conftest.err >&5
39327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328   (exit $ac_status); } && {
39329          test -z "$ac_c_werror_flag" ||
39330          test ! -s conftest.err
39331        } && test -s conftest$ac_exeext &&
39332        $as_test_x conftest$ac_exeext; then
39333   ac_cv_working_alloca_h=yes
39334 else
39335   echo "$as_me: failed program was:" >&5
39336 sed 's/^/| /' conftest.$ac_ext >&5
39337
39338         ac_cv_working_alloca_h=no
39339 fi
39340
39341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39342       conftest$ac_exeext conftest.$ac_ext
39343 fi
39344 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39345 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39346 if test $ac_cv_working_alloca_h = yes; then
39347
39348 cat >>confdefs.h <<\_ACEOF
39349 #define HAVE_ALLOCA_H 1
39350 _ACEOF
39351
39352 fi
39353
39354 { echo "$as_me:$LINENO: checking for alloca" >&5
39355 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39356 if test "${ac_cv_func_alloca_works+set}" = set; then
39357   echo $ECHO_N "(cached) $ECHO_C" >&6
39358 else
39359   cat >conftest.$ac_ext <<_ACEOF
39360 /* confdefs.h.  */
39361 _ACEOF
39362 cat confdefs.h >>conftest.$ac_ext
39363 cat >>conftest.$ac_ext <<_ACEOF
39364 /* end confdefs.h.  */
39365 #ifdef __GNUC__
39366 # define alloca __builtin_alloca
39367 #else
39368 # ifdef _MSC_VER
39369 #  include <malloc.h>
39370 #  define alloca _alloca
39371 # else
39372 #  ifdef HAVE_ALLOCA_H
39373 #   include <alloca.h>
39374 #  else
39375 #   ifdef _AIX
39376  #pragma alloca
39377 #   else
39378 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39379 char *alloca ();
39380 #    endif
39381 #   endif
39382 #  endif
39383 # endif
39384 #endif
39385
39386 int
39387 main ()
39388 {
39389 char *p = (char *) alloca (1);
39390                                     if (p) return 0;
39391   ;
39392   return 0;
39393 }
39394 _ACEOF
39395 rm -f conftest.$ac_objext conftest$ac_exeext
39396 if { (ac_try="$ac_link"
39397 case "(($ac_try" in
39398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39399   *) ac_try_echo=$ac_try;;
39400 esac
39401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39402   (eval "$ac_link") 2>conftest.er1
39403   ac_status=$?
39404   grep -v '^ *+' conftest.er1 >conftest.err
39405   rm -f conftest.er1
39406   cat conftest.err >&5
39407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39408   (exit $ac_status); } && {
39409          test -z "$ac_c_werror_flag" ||
39410          test ! -s conftest.err
39411        } && test -s conftest$ac_exeext &&
39412        $as_test_x conftest$ac_exeext; then
39413   ac_cv_func_alloca_works=yes
39414 else
39415   echo "$as_me: failed program was:" >&5
39416 sed 's/^/| /' conftest.$ac_ext >&5
39417
39418         ac_cv_func_alloca_works=no
39419 fi
39420
39421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39422       conftest$ac_exeext conftest.$ac_ext
39423 fi
39424 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39425 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39426
39427 if test $ac_cv_func_alloca_works = yes; then
39428
39429 cat >>confdefs.h <<\_ACEOF
39430 #define HAVE_ALLOCA 1
39431 _ACEOF
39432
39433 else
39434   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39435 # that cause trouble.  Some versions do not even contain alloca or
39436 # contain a buggy version.  If you still want to use their alloca,
39437 # use ar to extract alloca.o from them instead of compiling alloca.c.
39438
39439 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39440
39441 cat >>confdefs.h <<\_ACEOF
39442 #define C_ALLOCA 1
39443 _ACEOF
39444
39445
39446 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39447 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39448 if test "${ac_cv_os_cray+set}" = set; then
39449   echo $ECHO_N "(cached) $ECHO_C" >&6
39450 else
39451   cat >conftest.$ac_ext <<_ACEOF
39452 /* confdefs.h.  */
39453 _ACEOF
39454 cat confdefs.h >>conftest.$ac_ext
39455 cat >>conftest.$ac_ext <<_ACEOF
39456 /* end confdefs.h.  */
39457 #if defined CRAY && ! defined CRAY2
39458 webecray
39459 #else
39460 wenotbecray
39461 #endif
39462
39463 _ACEOF
39464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39465   $EGREP "webecray" >/dev/null 2>&1; then
39466   ac_cv_os_cray=yes
39467 else
39468   ac_cv_os_cray=no
39469 fi
39470 rm -f conftest*
39471
39472 fi
39473 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39474 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39475 if test $ac_cv_os_cray = yes; then
39476   for ac_func in _getb67 GETB67 getb67; do
39477     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39481   echo $ECHO_N "(cached) $ECHO_C" >&6
39482 else
39483   cat >conftest.$ac_ext <<_ACEOF
39484 /* confdefs.h.  */
39485 _ACEOF
39486 cat confdefs.h >>conftest.$ac_ext
39487 cat >>conftest.$ac_ext <<_ACEOF
39488 /* end confdefs.h.  */
39489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39491 #define $ac_func innocuous_$ac_func
39492
39493 /* System header to define __stub macros and hopefully few prototypes,
39494     which can conflict with char $ac_func (); below.
39495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39496     <limits.h> exists even on freestanding compilers.  */
39497
39498 #ifdef __STDC__
39499 # include <limits.h>
39500 #else
39501 # include <assert.h>
39502 #endif
39503
39504 #undef $ac_func
39505
39506 /* Override any GCC internal prototype to avoid an error.
39507    Use char because int might match the return type of a GCC
39508    builtin and then its argument prototype would still apply.  */
39509 #ifdef __cplusplus
39510 extern "C"
39511 #endif
39512 char $ac_func ();
39513 /* The GNU C library defines this for functions which it implements
39514     to always fail with ENOSYS.  Some functions are actually named
39515     something starting with __ and the normal name is an alias.  */
39516 #if defined __stub_$ac_func || defined __stub___$ac_func
39517 choke me
39518 #endif
39519
39520 int
39521 main ()
39522 {
39523 return $ac_func ();
39524   ;
39525   return 0;
39526 }
39527 _ACEOF
39528 rm -f conftest.$ac_objext conftest$ac_exeext
39529 if { (ac_try="$ac_link"
39530 case "(($ac_try" in
39531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39532   *) ac_try_echo=$ac_try;;
39533 esac
39534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39535   (eval "$ac_link") 2>conftest.er1
39536   ac_status=$?
39537   grep -v '^ *+' conftest.er1 >conftest.err
39538   rm -f conftest.er1
39539   cat conftest.err >&5
39540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541   (exit $ac_status); } && {
39542          test -z "$ac_c_werror_flag" ||
39543          test ! -s conftest.err
39544        } && test -s conftest$ac_exeext &&
39545        $as_test_x conftest$ac_exeext; then
39546   eval "$as_ac_var=yes"
39547 else
39548   echo "$as_me: failed program was:" >&5
39549 sed 's/^/| /' conftest.$ac_ext >&5
39550
39551         eval "$as_ac_var=no"
39552 fi
39553
39554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39555       conftest$ac_exeext conftest.$ac_ext
39556 fi
39557 ac_res=`eval echo '${'$as_ac_var'}'`
39558                { echo "$as_me:$LINENO: result: $ac_res" >&5
39559 echo "${ECHO_T}$ac_res" >&6; }
39560 if test `eval echo '${'$as_ac_var'}'` = yes; then
39561
39562 cat >>confdefs.h <<_ACEOF
39563 #define CRAY_STACKSEG_END $ac_func
39564 _ACEOF
39565
39566     break
39567 fi
39568
39569   done
39570 fi
39571
39572 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39573 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39574 if test "${ac_cv_c_stack_direction+set}" = set; then
39575   echo $ECHO_N "(cached) $ECHO_C" >&6
39576 else
39577   if test "$cross_compiling" = yes; then
39578   ac_cv_c_stack_direction=0
39579 else
39580   cat >conftest.$ac_ext <<_ACEOF
39581 /* confdefs.h.  */
39582 _ACEOF
39583 cat confdefs.h >>conftest.$ac_ext
39584 cat >>conftest.$ac_ext <<_ACEOF
39585 /* end confdefs.h.  */
39586 $ac_includes_default
39587 int
39588 find_stack_direction ()
39589 {
39590   static char *addr = 0;
39591   auto char dummy;
39592   if (addr == 0)
39593     {
39594       addr = &dummy;
39595       return find_stack_direction ();
39596     }
39597   else
39598     return (&dummy > addr) ? 1 : -1;
39599 }
39600
39601 int
39602 main ()
39603 {
39604   return find_stack_direction () < 0;
39605 }
39606 _ACEOF
39607 rm -f conftest$ac_exeext
39608 if { (ac_try="$ac_link"
39609 case "(($ac_try" in
39610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39611   *) ac_try_echo=$ac_try;;
39612 esac
39613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39614   (eval "$ac_link") 2>&5
39615   ac_status=$?
39616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39618   { (case "(($ac_try" in
39619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39620   *) ac_try_echo=$ac_try;;
39621 esac
39622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39623   (eval "$ac_try") 2>&5
39624   ac_status=$?
39625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39626   (exit $ac_status); }; }; then
39627   ac_cv_c_stack_direction=1
39628 else
39629   echo "$as_me: program exited with status $ac_status" >&5
39630 echo "$as_me: failed program was:" >&5
39631 sed 's/^/| /' conftest.$ac_ext >&5
39632
39633 ( exit $ac_status )
39634 ac_cv_c_stack_direction=-1
39635 fi
39636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39637 fi
39638
39639
39640 fi
39641 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39642 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39643
39644 cat >>confdefs.h <<_ACEOF
39645 #define STACK_DIRECTION $ac_cv_c_stack_direction
39646 _ACEOF
39647
39648
39649 fi
39650
39651 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39652 # -lseq on Dynix/PTX, -lgen on Unixware.
39653 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39654 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39655 if test "${ac_cv_search_getmntent+set}" = set; then
39656   echo $ECHO_N "(cached) $ECHO_C" >&6
39657 else
39658   ac_func_search_save_LIBS=$LIBS
39659 cat >conftest.$ac_ext <<_ACEOF
39660 /* confdefs.h.  */
39661 _ACEOF
39662 cat confdefs.h >>conftest.$ac_ext
39663 cat >>conftest.$ac_ext <<_ACEOF
39664 /* end confdefs.h.  */
39665
39666 /* Override any GCC internal prototype to avoid an error.
39667    Use char because int might match the return type of a GCC
39668    builtin and then its argument prototype would still apply.  */
39669 #ifdef __cplusplus
39670 extern "C"
39671 #endif
39672 char getmntent ();
39673 int
39674 main ()
39675 {
39676 return getmntent ();
39677   ;
39678   return 0;
39679 }
39680 _ACEOF
39681 for ac_lib in '' sun seq gen; do
39682   if test -z "$ac_lib"; then
39683     ac_res="none required"
39684   else
39685     ac_res=-l$ac_lib
39686     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39687   fi
39688   rm -f conftest.$ac_objext conftest$ac_exeext
39689 if { (ac_try="$ac_link"
39690 case "(($ac_try" in
39691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39692   *) ac_try_echo=$ac_try;;
39693 esac
39694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39695   (eval "$ac_link") 2>conftest.er1
39696   ac_status=$?
39697   grep -v '^ *+' conftest.er1 >conftest.err
39698   rm -f conftest.er1
39699   cat conftest.err >&5
39700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701   (exit $ac_status); } && {
39702          test -z "$ac_c_werror_flag" ||
39703          test ! -s conftest.err
39704        } && test -s conftest$ac_exeext &&
39705        $as_test_x conftest$ac_exeext; then
39706   ac_cv_search_getmntent=$ac_res
39707 else
39708   echo "$as_me: failed program was:" >&5
39709 sed 's/^/| /' conftest.$ac_ext >&5
39710
39711
39712 fi
39713
39714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39715       conftest$ac_exeext
39716   if test "${ac_cv_search_getmntent+set}" = set; then
39717   break
39718 fi
39719 done
39720 if test "${ac_cv_search_getmntent+set}" = set; then
39721   :
39722 else
39723   ac_cv_search_getmntent=no
39724 fi
39725 rm conftest.$ac_ext
39726 LIBS=$ac_func_search_save_LIBS
39727 fi
39728 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39729 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39730 ac_res=$ac_cv_search_getmntent
39731 if test "$ac_res" != no; then
39732   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39733   ac_cv_func_getmntent=yes
39734
39735 cat >>confdefs.h <<\_ACEOF
39736 #define HAVE_GETMNTENT 1
39737 _ACEOF
39738
39739 else
39740   ac_cv_func_getmntent=no
39741 fi
39742
39743
39744 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39745 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39746 if test "${ac_cv_func_closedir_void+set}" = set; then
39747   echo $ECHO_N "(cached) $ECHO_C" >&6
39748 else
39749   if test "$cross_compiling" = yes; then
39750   ac_cv_func_closedir_void=yes
39751 else
39752   cat >conftest.$ac_ext <<_ACEOF
39753 /* confdefs.h.  */
39754 _ACEOF
39755 cat confdefs.h >>conftest.$ac_ext
39756 cat >>conftest.$ac_ext <<_ACEOF
39757 /* end confdefs.h.  */
39758 $ac_includes_default
39759 #include <$ac_header_dirent>
39760 #ifndef __cplusplus
39761 int closedir ();
39762 #endif
39763
39764 int
39765 main ()
39766 {
39767 return closedir (opendir (".")) != 0;
39768   ;
39769   return 0;
39770 }
39771 _ACEOF
39772 rm -f conftest$ac_exeext
39773 if { (ac_try="$ac_link"
39774 case "(($ac_try" in
39775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39776   *) ac_try_echo=$ac_try;;
39777 esac
39778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39779   (eval "$ac_link") 2>&5
39780   ac_status=$?
39781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39783   { (case "(($ac_try" in
39784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39785   *) ac_try_echo=$ac_try;;
39786 esac
39787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39788   (eval "$ac_try") 2>&5
39789   ac_status=$?
39790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39791   (exit $ac_status); }; }; then
39792   ac_cv_func_closedir_void=no
39793 else
39794   echo "$as_me: program exited with status $ac_status" >&5
39795 echo "$as_me: failed program was:" >&5
39796 sed 's/^/| /' conftest.$ac_ext >&5
39797
39798 ( exit $ac_status )
39799 ac_cv_func_closedir_void=yes
39800 fi
39801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39802 fi
39803
39804
39805 fi
39806 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39807 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39808 if test $ac_cv_func_closedir_void = yes; then
39809
39810 cat >>confdefs.h <<\_ACEOF
39811 #define CLOSEDIR_VOID 1
39812 _ACEOF
39813
39814 fi
39815
39816 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39817 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39818 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39819   echo $ECHO_N "(cached) $ECHO_C" >&6
39820 else
39821   if test "$cross_compiling" = yes; then
39822   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39823 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39824    { (exit 1); exit 1; }; }
39825 else
39826   cat >conftest.$ac_ext <<_ACEOF
39827 /* confdefs.h.  */
39828 _ACEOF
39829 cat confdefs.h >>conftest.$ac_ext
39830 cat >>conftest.$ac_ext <<_ACEOF
39831 /* end confdefs.h.  */
39832 $ac_includes_default
39833 int
39834 main ()
39835 {
39836 /* If this system has a BSD-style setpgrp which takes arguments,
39837   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39838   exit successfully. */
39839   return setpgrp (1,1) != -1;
39840   ;
39841   return 0;
39842 }
39843 _ACEOF
39844 rm -f conftest$ac_exeext
39845 if { (ac_try="$ac_link"
39846 case "(($ac_try" in
39847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39848   *) ac_try_echo=$ac_try;;
39849 esac
39850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39851   (eval "$ac_link") 2>&5
39852   ac_status=$?
39853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39855   { (case "(($ac_try" in
39856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39857   *) ac_try_echo=$ac_try;;
39858 esac
39859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39860   (eval "$ac_try") 2>&5
39861   ac_status=$?
39862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39863   (exit $ac_status); }; }; then
39864   ac_cv_func_setpgrp_void=no
39865 else
39866   echo "$as_me: program exited with status $ac_status" >&5
39867 echo "$as_me: failed program was:" >&5
39868 sed 's/^/| /' conftest.$ac_ext >&5
39869
39870 ( exit $ac_status )
39871 ac_cv_func_setpgrp_void=yes
39872 fi
39873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39874 fi
39875
39876
39877 fi
39878 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39879 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39880 if test $ac_cv_func_setpgrp_void = yes; then
39881
39882 cat >>confdefs.h <<\_ACEOF
39883 #define SETPGRP_VOID 1
39884 _ACEOF
39885
39886 fi
39887             # AC_FUNC_FNMATCH    dnl use local version
39888
39889 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39890 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39891 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39892   echo $ECHO_N "(cached) $ECHO_C" >&6
39893 else
39894   ac_check_lib_save_LIBS=$LIBS
39895 LIBS="-lintl  $LIBS"
39896 cat >conftest.$ac_ext <<_ACEOF
39897 /* confdefs.h.  */
39898 _ACEOF
39899 cat confdefs.h >>conftest.$ac_ext
39900 cat >>conftest.$ac_ext <<_ACEOF
39901 /* end confdefs.h.  */
39902
39903 /* Override any GCC internal prototype to avoid an error.
39904    Use char because int might match the return type of a GCC
39905    builtin and then its argument prototype would still apply.  */
39906 #ifdef __cplusplus
39907 extern "C"
39908 #endif
39909 char gettext ();
39910 int
39911 main ()
39912 {
39913 return gettext ();
39914   ;
39915   return 0;
39916 }
39917 _ACEOF
39918 rm -f conftest.$ac_objext conftest$ac_exeext
39919 if { (ac_try="$ac_link"
39920 case "(($ac_try" in
39921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39922   *) ac_try_echo=$ac_try;;
39923 esac
39924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39925   (eval "$ac_link") 2>conftest.er1
39926   ac_status=$?
39927   grep -v '^ *+' conftest.er1 >conftest.err
39928   rm -f conftest.er1
39929   cat conftest.err >&5
39930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39931   (exit $ac_status); } && {
39932          test -z "$ac_c_werror_flag" ||
39933          test ! -s conftest.err
39934        } && test -s conftest$ac_exeext &&
39935        $as_test_x conftest$ac_exeext; then
39936   ac_cv_lib_intl_gettext=yes
39937 else
39938   echo "$as_me: failed program was:" >&5
39939 sed 's/^/| /' conftest.$ac_ext >&5
39940
39941         ac_cv_lib_intl_gettext=no
39942 fi
39943
39944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39945       conftest$ac_exeext conftest.$ac_ext
39946 LIBS=$ac_check_lib_save_LIBS
39947 fi
39948 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39949 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39950 if test $ac_cv_lib_intl_gettext = yes; then
39951   LIBS="$LIBS -lintl"
39952 fi
39953
39954
39955
39956 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39957 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39958 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39959   echo $ECHO_N "(cached) $ECHO_C" >&6
39960 else
39961   ac_check_lib_save_LIBS=$LIBS
39962 LIBS="-lsun  $LIBS"
39963 cat >conftest.$ac_ext <<_ACEOF
39964 /* confdefs.h.  */
39965 _ACEOF
39966 cat confdefs.h >>conftest.$ac_ext
39967 cat >>conftest.$ac_ext <<_ACEOF
39968 /* end confdefs.h.  */
39969
39970 /* Override any GCC internal prototype to avoid an error.
39971    Use char because int might match the return type of a GCC
39972    builtin and then its argument prototype would still apply.  */
39973 #ifdef __cplusplus
39974 extern "C"
39975 #endif
39976 char getpwnam ();
39977 int
39978 main ()
39979 {
39980 return getpwnam ();
39981   ;
39982   return 0;
39983 }
39984 _ACEOF
39985 rm -f conftest.$ac_objext conftest$ac_exeext
39986 if { (ac_try="$ac_link"
39987 case "(($ac_try" in
39988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39989   *) ac_try_echo=$ac_try;;
39990 esac
39991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39992   (eval "$ac_link") 2>conftest.er1
39993   ac_status=$?
39994   grep -v '^ *+' conftest.er1 >conftest.err
39995   rm -f conftest.er1
39996   cat conftest.err >&5
39997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998   (exit $ac_status); } && {
39999          test -z "$ac_c_werror_flag" ||
40000          test ! -s conftest.err
40001        } && test -s conftest$ac_exeext &&
40002        $as_test_x conftest$ac_exeext; then
40003   ac_cv_lib_sun_getpwnam=yes
40004 else
40005   echo "$as_me: failed program was:" >&5
40006 sed 's/^/| /' conftest.$ac_ext >&5
40007
40008         ac_cv_lib_sun_getpwnam=no
40009 fi
40010
40011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40012       conftest$ac_exeext conftest.$ac_ext
40013 LIBS=$ac_check_lib_save_LIBS
40014 fi
40015 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40016 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40017 if test $ac_cv_lib_sun_getpwnam = yes; then
40018   cat >>confdefs.h <<_ACEOF
40019 #define HAVE_LIBSUN 1
40020 _ACEOF
40021
40022   LIBS="-lsun $LIBS"
40023
40024 fi
40025
40026
40027
40028 for ac_header in zlib.h
40029 do
40030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40032   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40035   echo $ECHO_N "(cached) $ECHO_C" >&6
40036 fi
40037 ac_res=`eval echo '${'$as_ac_Header'}'`
40038                { echo "$as_me:$LINENO: result: $ac_res" >&5
40039 echo "${ECHO_T}$ac_res" >&6; }
40040 else
40041   # Is the header compilable?
40042 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40044 cat >conftest.$ac_ext <<_ACEOF
40045 /* confdefs.h.  */
40046 _ACEOF
40047 cat confdefs.h >>conftest.$ac_ext
40048 cat >>conftest.$ac_ext <<_ACEOF
40049 /* end confdefs.h.  */
40050 $ac_includes_default
40051 #include <$ac_header>
40052 _ACEOF
40053 rm -f conftest.$ac_objext
40054 if { (ac_try="$ac_compile"
40055 case "(($ac_try" in
40056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40057   *) ac_try_echo=$ac_try;;
40058 esac
40059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40060   (eval "$ac_compile") 2>conftest.er1
40061   ac_status=$?
40062   grep -v '^ *+' conftest.er1 >conftest.err
40063   rm -f conftest.er1
40064   cat conftest.err >&5
40065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40066   (exit $ac_status); } && {
40067          test -z "$ac_c_werror_flag" ||
40068          test ! -s conftest.err
40069        } && test -s conftest.$ac_objext; then
40070   ac_header_compiler=yes
40071 else
40072   echo "$as_me: failed program was:" >&5
40073 sed 's/^/| /' conftest.$ac_ext >&5
40074
40075         ac_header_compiler=no
40076 fi
40077
40078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40080 echo "${ECHO_T}$ac_header_compiler" >&6; }
40081
40082 # Is the header present?
40083 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40085 cat >conftest.$ac_ext <<_ACEOF
40086 /* confdefs.h.  */
40087 _ACEOF
40088 cat confdefs.h >>conftest.$ac_ext
40089 cat >>conftest.$ac_ext <<_ACEOF
40090 /* end confdefs.h.  */
40091 #include <$ac_header>
40092 _ACEOF
40093 if { (ac_try="$ac_cpp conftest.$ac_ext"
40094 case "(($ac_try" in
40095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40096   *) ac_try_echo=$ac_try;;
40097 esac
40098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40099   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40100   ac_status=$?
40101   grep -v '^ *+' conftest.er1 >conftest.err
40102   rm -f conftest.er1
40103   cat conftest.err >&5
40104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105   (exit $ac_status); } >/dev/null && {
40106          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40107          test ! -s conftest.err
40108        }; then
40109   ac_header_preproc=yes
40110 else
40111   echo "$as_me: failed program was:" >&5
40112 sed 's/^/| /' conftest.$ac_ext >&5
40113
40114   ac_header_preproc=no
40115 fi
40116
40117 rm -f conftest.err conftest.$ac_ext
40118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40119 echo "${ECHO_T}$ac_header_preproc" >&6; }
40120
40121 # So?  What about this header?
40122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40123   yes:no: )
40124     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40128     ac_header_preproc=yes
40129     ;;
40130   no:yes:* )
40131     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40133     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40134 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40135     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40137     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40138 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40141     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40143
40144     ;;
40145 esac
40146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40149   echo $ECHO_N "(cached) $ECHO_C" >&6
40150 else
40151   eval "$as_ac_Header=\$ac_header_preproc"
40152 fi
40153 ac_res=`eval echo '${'$as_ac_Header'}'`
40154                { echo "$as_me:$LINENO: result: $ac_res" >&5
40155 echo "${ECHO_T}$ac_res" >&6; }
40156
40157 fi
40158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40159   cat >>confdefs.h <<_ACEOF
40160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40161 _ACEOF
40162
40163 fi
40164
40165 done
40166
40167 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40168 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40169 if test "${ac_cv_lib_z_deflate+set}" = set; then
40170   echo $ECHO_N "(cached) $ECHO_C" >&6
40171 else
40172   ac_check_lib_save_LIBS=$LIBS
40173 LIBS="-lz  $LIBS"
40174 cat >conftest.$ac_ext <<_ACEOF
40175 /* confdefs.h.  */
40176 _ACEOF
40177 cat confdefs.h >>conftest.$ac_ext
40178 cat >>conftest.$ac_ext <<_ACEOF
40179 /* end confdefs.h.  */
40180
40181 /* Override any GCC internal prototype to avoid an error.
40182    Use char because int might match the return type of a GCC
40183    builtin and then its argument prototype would still apply.  */
40184 #ifdef __cplusplus
40185 extern "C"
40186 #endif
40187 char deflate ();
40188 int
40189 main ()
40190 {
40191 return deflate ();
40192   ;
40193   return 0;
40194 }
40195 _ACEOF
40196 rm -f conftest.$ac_objext conftest$ac_exeext
40197 if { (ac_try="$ac_link"
40198 case "(($ac_try" in
40199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40200   *) ac_try_echo=$ac_try;;
40201 esac
40202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40203   (eval "$ac_link") 2>conftest.er1
40204   ac_status=$?
40205   grep -v '^ *+' conftest.er1 >conftest.err
40206   rm -f conftest.er1
40207   cat conftest.err >&5
40208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209   (exit $ac_status); } && {
40210          test -z "$ac_c_werror_flag" ||
40211          test ! -s conftest.err
40212        } && test -s conftest$ac_exeext &&
40213        $as_test_x conftest$ac_exeext; then
40214   ac_cv_lib_z_deflate=yes
40215 else
40216   echo "$as_me: failed program was:" >&5
40217 sed 's/^/| /' conftest.$ac_ext >&5
40218
40219         ac_cv_lib_z_deflate=no
40220 fi
40221
40222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40223       conftest$ac_exeext conftest.$ac_ext
40224 LIBS=$ac_check_lib_save_LIBS
40225 fi
40226 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40227 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40228 if test $ac_cv_lib_z_deflate = yes; then
40229   FDLIBS="-lz"
40230 fi
40231
40232 have_zlib=no
40233 if test x$FDLIBS = x-lz; then
40234    cat >>confdefs.h <<\_ACEOF
40235 #define HAVE_LIBZ 1
40236 _ACEOF
40237
40238    have_zlib=yes
40239 fi
40240
40241 support_acl=yes
40242 # Check whether --enable-acl was given.
40243 if test "${enable_acl+set}" = set; then
40244   enableval=$enable_acl;
40245        if test x$enableval = xno; then
40246           support_acl=no
40247        fi
40248
40249
40250 fi
40251
40252
40253 have_acl=no
40254 have_extended_acl=no
40255 if test x$support_acl = xyes; then
40256    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40257   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40258 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40259 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40260   echo $ECHO_N "(cached) $ECHO_C" >&6
40261 fi
40262 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40263 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40264 else
40265   # Is the header compilable?
40266 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40267 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40268 cat >conftest.$ac_ext <<_ACEOF
40269 /* confdefs.h.  */
40270 _ACEOF
40271 cat confdefs.h >>conftest.$ac_ext
40272 cat >>conftest.$ac_ext <<_ACEOF
40273 /* end confdefs.h.  */
40274 $ac_includes_default
40275 #include <sys/acl.h>
40276 _ACEOF
40277 rm -f conftest.$ac_objext
40278 if { (ac_try="$ac_compile"
40279 case "(($ac_try" in
40280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40281   *) ac_try_echo=$ac_try;;
40282 esac
40283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40284   (eval "$ac_compile") 2>conftest.er1
40285   ac_status=$?
40286   grep -v '^ *+' conftest.er1 >conftest.err
40287   rm -f conftest.er1
40288   cat conftest.err >&5
40289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290   (exit $ac_status); } && {
40291          test -z "$ac_c_werror_flag" ||
40292          test ! -s conftest.err
40293        } && test -s conftest.$ac_objext; then
40294   ac_header_compiler=yes
40295 else
40296   echo "$as_me: failed program was:" >&5
40297 sed 's/^/| /' conftest.$ac_ext >&5
40298
40299         ac_header_compiler=no
40300 fi
40301
40302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40304 echo "${ECHO_T}$ac_header_compiler" >&6; }
40305
40306 # Is the header present?
40307 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40308 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40309 cat >conftest.$ac_ext <<_ACEOF
40310 /* confdefs.h.  */
40311 _ACEOF
40312 cat confdefs.h >>conftest.$ac_ext
40313 cat >>conftest.$ac_ext <<_ACEOF
40314 /* end confdefs.h.  */
40315 #include <sys/acl.h>
40316 _ACEOF
40317 if { (ac_try="$ac_cpp conftest.$ac_ext"
40318 case "(($ac_try" in
40319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40320   *) ac_try_echo=$ac_try;;
40321 esac
40322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40324   ac_status=$?
40325   grep -v '^ *+' conftest.er1 >conftest.err
40326   rm -f conftest.er1
40327   cat conftest.err >&5
40328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329   (exit $ac_status); } >/dev/null && {
40330          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40331          test ! -s conftest.err
40332        }; then
40333   ac_header_preproc=yes
40334 else
40335   echo "$as_me: failed program was:" >&5
40336 sed 's/^/| /' conftest.$ac_ext >&5
40337
40338   ac_header_preproc=no
40339 fi
40340
40341 rm -f conftest.err conftest.$ac_ext
40342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40343 echo "${ECHO_T}$ac_header_preproc" >&6; }
40344
40345 # So?  What about this header?
40346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40347   yes:no: )
40348     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40349 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40350     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40351 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40352     ac_header_preproc=yes
40353     ;;
40354   no:yes:* )
40355     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40356 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40357     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40358 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40359     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40360 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40361     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40362 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40363     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40364 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40365     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40366 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40367
40368     ;;
40369 esac
40370 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40371 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40372 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40373   echo $ECHO_N "(cached) $ECHO_C" >&6
40374 else
40375   ac_cv_header_sys_acl_h=$ac_header_preproc
40376 fi
40377 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40378 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40379
40380 fi
40381 if test $ac_cv_header_sys_acl_h = yes; then
40382
40383 cat >>confdefs.h <<\_ACEOF
40384 #define HAVE_SYS_ACL_H 1
40385 _ACEOF
40386
40387 fi
40388
40389
40390    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40391 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40392 if test "${ac_cv_func_acl_get_file+set}" = set; then
40393   echo $ECHO_N "(cached) $ECHO_C" >&6
40394 else
40395   cat >conftest.$ac_ext <<_ACEOF
40396 /* confdefs.h.  */
40397 _ACEOF
40398 cat confdefs.h >>conftest.$ac_ext
40399 cat >>conftest.$ac_ext <<_ACEOF
40400 /* end confdefs.h.  */
40401 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40403 #define acl_get_file innocuous_acl_get_file
40404
40405 /* System header to define __stub macros and hopefully few prototypes,
40406     which can conflict with char acl_get_file (); below.
40407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40408     <limits.h> exists even on freestanding compilers.  */
40409
40410 #ifdef __STDC__
40411 # include <limits.h>
40412 #else
40413 # include <assert.h>
40414 #endif
40415
40416 #undef acl_get_file
40417
40418 /* Override any GCC internal prototype to avoid an error.
40419    Use char because int might match the return type of a GCC
40420    builtin and then its argument prototype would still apply.  */
40421 #ifdef __cplusplus
40422 extern "C"
40423 #endif
40424 char acl_get_file ();
40425 /* The GNU C library defines this for functions which it implements
40426     to always fail with ENOSYS.  Some functions are actually named
40427     something starting with __ and the normal name is an alias.  */
40428 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40429 choke me
40430 #endif
40431
40432 int
40433 main ()
40434 {
40435 return acl_get_file ();
40436   ;
40437   return 0;
40438 }
40439 _ACEOF
40440 rm -f conftest.$ac_objext conftest$ac_exeext
40441 if { (ac_try="$ac_link"
40442 case "(($ac_try" in
40443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40444   *) ac_try_echo=$ac_try;;
40445 esac
40446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40447   (eval "$ac_link") 2>conftest.er1
40448   ac_status=$?
40449   grep -v '^ *+' conftest.er1 >conftest.err
40450   rm -f conftest.er1
40451   cat conftest.err >&5
40452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40453   (exit $ac_status); } && {
40454          test -z "$ac_c_werror_flag" ||
40455          test ! -s conftest.err
40456        } && test -s conftest$ac_exeext &&
40457        $as_test_x conftest$ac_exeext; then
40458   ac_cv_func_acl_get_file=yes
40459 else
40460   echo "$as_me: failed program was:" >&5
40461 sed 's/^/| /' conftest.$ac_ext >&5
40462
40463         ac_cv_func_acl_get_file=no
40464 fi
40465
40466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40467       conftest$ac_exeext conftest.$ac_ext
40468 fi
40469 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40470 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40471 if test $ac_cv_func_acl_get_file = yes; then
40472
40473           have_acl=yes
40474
40475 else
40476
40477           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40478 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40479 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40480   echo $ECHO_N "(cached) $ECHO_C" >&6
40481 else
40482   ac_check_lib_save_LIBS=$LIBS
40483 LIBS="-lacl  $LIBS"
40484 cat >conftest.$ac_ext <<_ACEOF
40485 /* confdefs.h.  */
40486 _ACEOF
40487 cat confdefs.h >>conftest.$ac_ext
40488 cat >>conftest.$ac_ext <<_ACEOF
40489 /* end confdefs.h.  */
40490
40491 /* Override any GCC internal prototype to avoid an error.
40492    Use char because int might match the return type of a GCC
40493    builtin and then its argument prototype would still apply.  */
40494 #ifdef __cplusplus
40495 extern "C"
40496 #endif
40497 char acl_get_file ();
40498 int
40499 main ()
40500 {
40501 return acl_get_file ();
40502   ;
40503   return 0;
40504 }
40505 _ACEOF
40506 rm -f conftest.$ac_objext conftest$ac_exeext
40507 if { (ac_try="$ac_link"
40508 case "(($ac_try" in
40509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40510   *) ac_try_echo=$ac_try;;
40511 esac
40512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40513   (eval "$ac_link") 2>conftest.er1
40514   ac_status=$?
40515   grep -v '^ *+' conftest.er1 >conftest.err
40516   rm -f conftest.er1
40517   cat conftest.err >&5
40518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40519   (exit $ac_status); } && {
40520          test -z "$ac_c_werror_flag" ||
40521          test ! -s conftest.err
40522        } && test -s conftest$ac_exeext &&
40523        $as_test_x conftest$ac_exeext; then
40524   ac_cv_lib_acl_acl_get_file=yes
40525 else
40526   echo "$as_me: failed program was:" >&5
40527 sed 's/^/| /' conftest.$ac_ext >&5
40528
40529         ac_cv_lib_acl_acl_get_file=no
40530 fi
40531
40532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40533       conftest$ac_exeext conftest.$ac_ext
40534 LIBS=$ac_check_lib_save_LIBS
40535 fi
40536 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40537 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40538 if test $ac_cv_lib_acl_acl_get_file = yes; then
40539
40540                  have_acl=yes;
40541                  FDLIBS="-lacl $FDLIBS"
40542
40543 else
40544
40545                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40546 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40547 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40548   echo $ECHO_N "(cached) $ECHO_C" >&6
40549 else
40550   ac_check_lib_save_LIBS=$LIBS
40551 LIBS="-lpacl  $LIBS"
40552 cat >conftest.$ac_ext <<_ACEOF
40553 /* confdefs.h.  */
40554 _ACEOF
40555 cat confdefs.h >>conftest.$ac_ext
40556 cat >>conftest.$ac_ext <<_ACEOF
40557 /* end confdefs.h.  */
40558
40559 /* Override any GCC internal prototype to avoid an error.
40560    Use char because int might match the return type of a GCC
40561    builtin and then its argument prototype would still apply.  */
40562 #ifdef __cplusplus
40563 extern "C"
40564 #endif
40565 char acl_get_file ();
40566 int
40567 main ()
40568 {
40569 return acl_get_file ();
40570   ;
40571   return 0;
40572 }
40573 _ACEOF
40574 rm -f conftest.$ac_objext conftest$ac_exeext
40575 if { (ac_try="$ac_link"
40576 case "(($ac_try" in
40577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40578   *) ac_try_echo=$ac_try;;
40579 esac
40580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40581   (eval "$ac_link") 2>conftest.er1
40582   ac_status=$?
40583   grep -v '^ *+' conftest.er1 >conftest.err
40584   rm -f conftest.er1
40585   cat conftest.err >&5
40586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40587   (exit $ac_status); } && {
40588          test -z "$ac_c_werror_flag" ||
40589          test ! -s conftest.err
40590        } && test -s conftest$ac_exeext &&
40591        $as_test_x conftest$ac_exeext; then
40592   ac_cv_lib_pacl_acl_get_file=yes
40593 else
40594   echo "$as_me: failed program was:" >&5
40595 sed 's/^/| /' conftest.$ac_ext >&5
40596
40597         ac_cv_lib_pacl_acl_get_file=no
40598 fi
40599
40600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40601       conftest$ac_exeext conftest.$ac_ext
40602 LIBS=$ac_check_lib_save_LIBS
40603 fi
40604 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40605 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40606 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40607
40608                         have_acl=yes;
40609                         FDLIBS="-lpacl $FDLIBS"
40610
40611 else
40612
40613                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40614 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40615 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40616   echo $ECHO_N "(cached) $ECHO_C" >&6
40617 else
40618   ac_check_lib_save_LIBS=$LIBS
40619 LIBS="-lsec  $LIBS"
40620 cat >conftest.$ac_ext <<_ACEOF
40621 /* confdefs.h.  */
40622 _ACEOF
40623 cat confdefs.h >>conftest.$ac_ext
40624 cat >>conftest.$ac_ext <<_ACEOF
40625 /* end confdefs.h.  */
40626
40627 /* Override any GCC internal prototype to avoid an error.
40628    Use char because int might match the return type of a GCC
40629    builtin and then its argument prototype would still apply.  */
40630 #ifdef __cplusplus
40631 extern "C"
40632 #endif
40633 char acltotext ();
40634 int
40635 main ()
40636 {
40637 return acltotext ();
40638   ;
40639   return 0;
40640 }
40641 _ACEOF
40642 rm -f conftest.$ac_objext conftest$ac_exeext
40643 if { (ac_try="$ac_link"
40644 case "(($ac_try" in
40645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40646   *) ac_try_echo=$ac_try;;
40647 esac
40648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40649   (eval "$ac_link") 2>conftest.er1
40650   ac_status=$?
40651   grep -v '^ *+' conftest.er1 >conftest.err
40652   rm -f conftest.er1
40653   cat conftest.err >&5
40654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40655   (exit $ac_status); } && {
40656          test -z "$ac_c_werror_flag" ||
40657          test ! -s conftest.err
40658        } && test -s conftest$ac_exeext &&
40659        $as_test_x conftest$ac_exeext; then
40660   ac_cv_lib_sec_acltotext=yes
40661 else
40662   echo "$as_me: failed program was:" >&5
40663 sed 's/^/| /' conftest.$ac_ext >&5
40664
40665         ac_cv_lib_sec_acltotext=no
40666 fi
40667
40668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40669       conftest$ac_exeext conftest.$ac_ext
40670 LIBS=$ac_check_lib_save_LIBS
40671 fi
40672 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40673 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40674 if test $ac_cv_lib_sec_acltotext = yes; then
40675
40676                                have_acl=yes;
40677                                FDLIBS="-lsec $FDLIBS"
40678
40679                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40680 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40681 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40682   echo $ECHO_N "(cached) $ECHO_C" >&6
40683 else
40684   ac_check_lib_save_LIBS=$LIBS
40685 LIBS="-lsec  $LIBS"
40686 cat >conftest.$ac_ext <<_ACEOF
40687 /* confdefs.h.  */
40688 _ACEOF
40689 cat confdefs.h >>conftest.$ac_ext
40690 cat >>conftest.$ac_ext <<_ACEOF
40691 /* end confdefs.h.  */
40692
40693 /* Override any GCC internal prototype to avoid an error.
40694    Use char because int might match the return type of a GCC
40695    builtin and then its argument prototype would still apply.  */
40696 #ifdef __cplusplus
40697 extern "C"
40698 #endif
40699 char acl_totext ();
40700 int
40701 main ()
40702 {
40703 return acl_totext ();
40704   ;
40705   return 0;
40706 }
40707 _ACEOF
40708 rm -f conftest.$ac_objext conftest$ac_exeext
40709 if { (ac_try="$ac_link"
40710 case "(($ac_try" in
40711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40712   *) ac_try_echo=$ac_try;;
40713 esac
40714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40715   (eval "$ac_link") 2>conftest.er1
40716   ac_status=$?
40717   grep -v '^ *+' conftest.er1 >conftest.err
40718   rm -f conftest.er1
40719   cat conftest.err >&5
40720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40721   (exit $ac_status); } && {
40722          test -z "$ac_c_werror_flag" ||
40723          test ! -s conftest.err
40724        } && test -s conftest$ac_exeext &&
40725        $as_test_x conftest$ac_exeext; then
40726   ac_cv_lib_sec_acl_totext=yes
40727 else
40728   echo "$as_me: failed program was:" >&5
40729 sed 's/^/| /' conftest.$ac_ext >&5
40730
40731         ac_cv_lib_sec_acl_totext=no
40732 fi
40733
40734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40735       conftest$ac_exeext conftest.$ac_ext
40736 LIBS=$ac_check_lib_save_LIBS
40737 fi
40738 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
40739 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
40740 if test $ac_cv_lib_sec_acl_totext = yes; then
40741
40742                                       have_extended_acl=yes
40743
40744
40745 fi
40746
40747
40748
40749 fi
40750
40751
40752
40753 fi
40754
40755
40756
40757 fi
40758
40759
40760
40761 fi
40762
40763    if test $have_acl = yes; then
40764       cat >>confdefs.h <<\_ACEOF
40765 #define HAVE_ACL 1
40766 _ACEOF
40767
40768    fi
40769
40770    if test $have_extended_acl = yes; then
40771       cat >>confdefs.h <<\_ACEOF
40772 #define HAVE_EXTENDED_ACL 1
40773 _ACEOF
40774
40775    fi
40776 fi
40777
40778 support_xattr=yes
40779 # Check whether --enable-xattr was given.
40780 if test "${enable_xattr+set}" = set; then
40781   enableval=$enable_xattr;
40782        if test x$enableval = xno; then
40783           support_acl=no
40784        fi
40785
40786
40787 fi
40788
40789
40790 have_xattr=no
40791 if test x$support_xattr = xyes; then
40792    if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40793   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40794 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40795 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40796   echo $ECHO_N "(cached) $ECHO_C" >&6
40797 fi
40798 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40799 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40800 else
40801   # Is the header compilable?
40802 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
40803 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
40804 cat >conftest.$ac_ext <<_ACEOF
40805 /* confdefs.h.  */
40806 _ACEOF
40807 cat confdefs.h >>conftest.$ac_ext
40808 cat >>conftest.$ac_ext <<_ACEOF
40809 /* end confdefs.h.  */
40810 $ac_includes_default
40811 #include <sys/xattr.h>
40812 _ACEOF
40813 rm -f conftest.$ac_objext
40814 if { (ac_try="$ac_compile"
40815 case "(($ac_try" in
40816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40817   *) ac_try_echo=$ac_try;;
40818 esac
40819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40820   (eval "$ac_compile") 2>conftest.er1
40821   ac_status=$?
40822   grep -v '^ *+' conftest.er1 >conftest.err
40823   rm -f conftest.er1
40824   cat conftest.err >&5
40825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40826   (exit $ac_status); } && {
40827          test -z "$ac_c_werror_flag" ||
40828          test ! -s conftest.err
40829        } && test -s conftest.$ac_objext; then
40830   ac_header_compiler=yes
40831 else
40832   echo "$as_me: failed program was:" >&5
40833 sed 's/^/| /' conftest.$ac_ext >&5
40834
40835         ac_header_compiler=no
40836 fi
40837
40838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40840 echo "${ECHO_T}$ac_header_compiler" >&6; }
40841
40842 # Is the header present?
40843 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
40844 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
40845 cat >conftest.$ac_ext <<_ACEOF
40846 /* confdefs.h.  */
40847 _ACEOF
40848 cat confdefs.h >>conftest.$ac_ext
40849 cat >>conftest.$ac_ext <<_ACEOF
40850 /* end confdefs.h.  */
40851 #include <sys/xattr.h>
40852 _ACEOF
40853 if { (ac_try="$ac_cpp conftest.$ac_ext"
40854 case "(($ac_try" in
40855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40856   *) ac_try_echo=$ac_try;;
40857 esac
40858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40860   ac_status=$?
40861   grep -v '^ *+' conftest.er1 >conftest.err
40862   rm -f conftest.er1
40863   cat conftest.err >&5
40864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40865   (exit $ac_status); } >/dev/null && {
40866          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40867          test ! -s conftest.err
40868        }; then
40869   ac_header_preproc=yes
40870 else
40871   echo "$as_me: failed program was:" >&5
40872 sed 's/^/| /' conftest.$ac_ext >&5
40873
40874   ac_header_preproc=no
40875 fi
40876
40877 rm -f conftest.err conftest.$ac_ext
40878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40879 echo "${ECHO_T}$ac_header_preproc" >&6; }
40880
40881 # So?  What about this header?
40882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40883   yes:no: )
40884     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
40885 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40886     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
40887 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
40888     ac_header_preproc=yes
40889     ;;
40890   no:yes:* )
40891     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
40892 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
40893     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
40894 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
40895     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
40896 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
40897     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
40898 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40899     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
40900 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
40901     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
40902 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
40903
40904     ;;
40905 esac
40906 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40907 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40908 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40909   echo $ECHO_N "(cached) $ECHO_C" >&6
40910 else
40911   ac_cv_header_sys_xattr_h=$ac_header_preproc
40912 fi
40913 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40914 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40915
40916 fi
40917 if test $ac_cv_header_sys_xattr_h = yes; then
40918
40919 cat >>confdefs.h <<\_ACEOF
40920 #define HAVE_SYS_XATTR_H 1
40921 _ACEOF
40922
40923 fi
40924
40925
40926
40927
40928
40929 for ac_func in llistxattr lgetxattr lsetxattr
40930 do
40931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40935   echo $ECHO_N "(cached) $ECHO_C" >&6
40936 else
40937   cat >conftest.$ac_ext <<_ACEOF
40938 /* confdefs.h.  */
40939 _ACEOF
40940 cat confdefs.h >>conftest.$ac_ext
40941 cat >>conftest.$ac_ext <<_ACEOF
40942 /* end confdefs.h.  */
40943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40945 #define $ac_func innocuous_$ac_func
40946
40947 /* System header to define __stub macros and hopefully few prototypes,
40948     which can conflict with char $ac_func (); below.
40949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40950     <limits.h> exists even on freestanding compilers.  */
40951
40952 #ifdef __STDC__
40953 # include <limits.h>
40954 #else
40955 # include <assert.h>
40956 #endif
40957
40958 #undef $ac_func
40959
40960 /* Override any GCC internal prototype to avoid an error.
40961    Use char because int might match the return type of a GCC
40962    builtin and then its argument prototype would still apply.  */
40963 #ifdef __cplusplus
40964 extern "C"
40965 #endif
40966 char $ac_func ();
40967 /* The GNU C library defines this for functions which it implements
40968     to always fail with ENOSYS.  Some functions are actually named
40969     something starting with __ and the normal name is an alias.  */
40970 #if defined __stub_$ac_func || defined __stub___$ac_func
40971 choke me
40972 #endif
40973
40974 int
40975 main ()
40976 {
40977 return $ac_func ();
40978   ;
40979   return 0;
40980 }
40981 _ACEOF
40982 rm -f conftest.$ac_objext conftest$ac_exeext
40983 if { (ac_try="$ac_link"
40984 case "(($ac_try" in
40985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40986   *) ac_try_echo=$ac_try;;
40987 esac
40988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40989   (eval "$ac_link") 2>conftest.er1
40990   ac_status=$?
40991   grep -v '^ *+' conftest.er1 >conftest.err
40992   rm -f conftest.er1
40993   cat conftest.err >&5
40994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40995   (exit $ac_status); } && {
40996          test -z "$ac_c_werror_flag" ||
40997          test ! -s conftest.err
40998        } && test -s conftest$ac_exeext &&
40999        $as_test_x conftest$ac_exeext; then
41000   eval "$as_ac_var=yes"
41001 else
41002   echo "$as_me: failed program was:" >&5
41003 sed 's/^/| /' conftest.$ac_ext >&5
41004
41005         eval "$as_ac_var=no"
41006 fi
41007
41008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41009       conftest$ac_exeext conftest.$ac_ext
41010 fi
41011 ac_res=`eval echo '${'$as_ac_var'}'`
41012                { echo "$as_me:$LINENO: result: $ac_res" >&5
41013 echo "${ECHO_T}$ac_res" >&6; }
41014 if test `eval echo '${'$as_ac_var'}'` = yes; then
41015   cat >>confdefs.h <<_ACEOF
41016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41017 _ACEOF
41018
41019           have_xattr=yes
41020           cat >>confdefs.h <<\_ACEOF
41021 #define HAVE_LLISTXATTR 1
41022 _ACEOF
41023
41024           cat >>confdefs.h <<\_ACEOF
41025 #define HAVE_LGETXATTR 1
41026 _ACEOF
41027
41028           cat >>confdefs.h <<\_ACEOF
41029 #define HAVE_LSETXATTR 1
41030 _ACEOF
41031
41032
41033 else
41034
41035
41036
41037
41038 for ac_func in listxattr getxattr setxattr
41039 do
41040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41044   echo $ECHO_N "(cached) $ECHO_C" >&6
41045 else
41046   cat >conftest.$ac_ext <<_ACEOF
41047 /* confdefs.h.  */
41048 _ACEOF
41049 cat confdefs.h >>conftest.$ac_ext
41050 cat >>conftest.$ac_ext <<_ACEOF
41051 /* end confdefs.h.  */
41052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41054 #define $ac_func innocuous_$ac_func
41055
41056 /* System header to define __stub macros and hopefully few prototypes,
41057     which can conflict with char $ac_func (); below.
41058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41059     <limits.h> exists even on freestanding compilers.  */
41060
41061 #ifdef __STDC__
41062 # include <limits.h>
41063 #else
41064 # include <assert.h>
41065 #endif
41066
41067 #undef $ac_func
41068
41069 /* Override any GCC internal prototype to avoid an error.
41070    Use char because int might match the return type of a GCC
41071    builtin and then its argument prototype would still apply.  */
41072 #ifdef __cplusplus
41073 extern "C"
41074 #endif
41075 char $ac_func ();
41076 /* The GNU C library defines this for functions which it implements
41077     to always fail with ENOSYS.  Some functions are actually named
41078     something starting with __ and the normal name is an alias.  */
41079 #if defined __stub_$ac_func || defined __stub___$ac_func
41080 choke me
41081 #endif
41082
41083 int
41084 main ()
41085 {
41086 return $ac_func ();
41087   ;
41088   return 0;
41089 }
41090 _ACEOF
41091 rm -f conftest.$ac_objext conftest$ac_exeext
41092 if { (ac_try="$ac_link"
41093 case "(($ac_try" in
41094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41095   *) ac_try_echo=$ac_try;;
41096 esac
41097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41098   (eval "$ac_link") 2>conftest.er1
41099   ac_status=$?
41100   grep -v '^ *+' conftest.er1 >conftest.err
41101   rm -f conftest.er1
41102   cat conftest.err >&5
41103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41104   (exit $ac_status); } && {
41105          test -z "$ac_c_werror_flag" ||
41106          test ! -s conftest.err
41107        } && test -s conftest$ac_exeext &&
41108        $as_test_x conftest$ac_exeext; then
41109   eval "$as_ac_var=yes"
41110 else
41111   echo "$as_me: failed program was:" >&5
41112 sed 's/^/| /' conftest.$ac_ext >&5
41113
41114         eval "$as_ac_var=no"
41115 fi
41116
41117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41118       conftest$ac_exeext conftest.$ac_ext
41119 fi
41120 ac_res=`eval echo '${'$as_ac_var'}'`
41121                { echo "$as_me:$LINENO: result: $ac_res" >&5
41122 echo "${ECHO_T}$ac_res" >&6; }
41123 if test `eval echo '${'$as_ac_var'}'` = yes; then
41124   cat >>confdefs.h <<_ACEOF
41125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41126 _ACEOF
41127
41128                   have_xattr=yes
41129                   cat >>confdefs.h <<\_ACEOF
41130 #define HAVE_LISTXATTR 1
41131 _ACEOF
41132
41133                   cat >>confdefs.h <<\_ACEOF
41134 #define HAVE_GETXATTR 1
41135 _ACEOF
41136
41137                   cat >>confdefs.h <<\_ACEOF
41138 #define HAVE_SETXATTR 1
41139 _ACEOF
41140
41141
41142
41143 fi
41144 done
41145
41146
41147
41148 fi
41149 done
41150
41151
41152    if test $have_xattr = yes; then
41153       cat >>confdefs.h <<\_ACEOF
41154 #define HAVE_XATTR 1
41155 _ACEOF
41156
41157    fi
41158 fi
41159
41160 PTHREAD_LIB=""
41161 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
41162 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
41163 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
41164   echo $ECHO_N "(cached) $ECHO_C" >&6
41165 else
41166   ac_check_lib_save_LIBS=$LIBS
41167 LIBS="-lpthread  $LIBS"
41168 cat >conftest.$ac_ext <<_ACEOF
41169 /* confdefs.h.  */
41170 _ACEOF
41171 cat confdefs.h >>conftest.$ac_ext
41172 cat >>conftest.$ac_ext <<_ACEOF
41173 /* end confdefs.h.  */
41174
41175 /* Override any GCC internal prototype to avoid an error.
41176    Use char because int might match the return type of a GCC
41177    builtin and then its argument prototype would still apply.  */
41178 #ifdef __cplusplus
41179 extern "C"
41180 #endif
41181 char pthread_create ();
41182 int
41183 main ()
41184 {
41185 return pthread_create ();
41186   ;
41187   return 0;
41188 }
41189 _ACEOF
41190 rm -f conftest.$ac_objext conftest$ac_exeext
41191 if { (ac_try="$ac_link"
41192 case "(($ac_try" in
41193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41194   *) ac_try_echo=$ac_try;;
41195 esac
41196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41197   (eval "$ac_link") 2>conftest.er1
41198   ac_status=$?
41199   grep -v '^ *+' conftest.er1 >conftest.err
41200   rm -f conftest.er1
41201   cat conftest.err >&5
41202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203   (exit $ac_status); } && {
41204          test -z "$ac_c_werror_flag" ||
41205          test ! -s conftest.err
41206        } && test -s conftest$ac_exeext &&
41207        $as_test_x conftest$ac_exeext; then
41208   ac_cv_lib_pthread_pthread_create=yes
41209 else
41210   echo "$as_me: failed program was:" >&5
41211 sed 's/^/| /' conftest.$ac_ext >&5
41212
41213         ac_cv_lib_pthread_pthread_create=no
41214 fi
41215
41216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41217       conftest$ac_exeext conftest.$ac_ext
41218 LIBS=$ac_check_lib_save_LIBS
41219 fi
41220 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
41221 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
41222 if test $ac_cv_lib_pthread_pthread_create = yes; then
41223   PTHREAD_LIB="-lpthread"
41224 else
41225
41226        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
41227 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
41228 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
41229   echo $ECHO_N "(cached) $ECHO_C" >&6
41230 else
41231   ac_check_lib_save_LIBS=$LIBS
41232 LIBS="-lpthreads  $LIBS"
41233 cat >conftest.$ac_ext <<_ACEOF
41234 /* confdefs.h.  */
41235 _ACEOF
41236 cat confdefs.h >>conftest.$ac_ext
41237 cat >>conftest.$ac_ext <<_ACEOF
41238 /* end confdefs.h.  */
41239
41240 /* Override any GCC internal prototype to avoid an error.
41241    Use char because int might match the return type of a GCC
41242    builtin and then its argument prototype would still apply.  */
41243 #ifdef __cplusplus
41244 extern "C"
41245 #endif
41246 char pthread_create ();
41247 int
41248 main ()
41249 {
41250 return pthread_create ();
41251   ;
41252   return 0;
41253 }
41254 _ACEOF
41255 rm -f conftest.$ac_objext conftest$ac_exeext
41256 if { (ac_try="$ac_link"
41257 case "(($ac_try" in
41258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41259   *) ac_try_echo=$ac_try;;
41260 esac
41261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41262   (eval "$ac_link") 2>conftest.er1
41263   ac_status=$?
41264   grep -v '^ *+' conftest.er1 >conftest.err
41265   rm -f conftest.er1
41266   cat conftest.err >&5
41267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268   (exit $ac_status); } && {
41269          test -z "$ac_c_werror_flag" ||
41270          test ! -s conftest.err
41271        } && test -s conftest$ac_exeext &&
41272        $as_test_x conftest$ac_exeext; then
41273   ac_cv_lib_pthreads_pthread_create=yes
41274 else
41275   echo "$as_me: failed program was:" >&5
41276 sed 's/^/| /' conftest.$ac_ext >&5
41277
41278         ac_cv_lib_pthreads_pthread_create=no
41279 fi
41280
41281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41282       conftest$ac_exeext conftest.$ac_ext
41283 LIBS=$ac_check_lib_save_LIBS
41284 fi
41285 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
41286 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
41287 if test $ac_cv_lib_pthreads_pthread_create = yes; then
41288   PTHREAD_LIB="-lpthreads"
41289 else
41290
41291               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
41292 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
41293 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
41294   echo $ECHO_N "(cached) $ECHO_C" >&6
41295 else
41296   ac_check_lib_save_LIBS=$LIBS
41297 LIBS="-lc_r  $LIBS"
41298 cat >conftest.$ac_ext <<_ACEOF
41299 /* confdefs.h.  */
41300 _ACEOF
41301 cat confdefs.h >>conftest.$ac_ext
41302 cat >>conftest.$ac_ext <<_ACEOF
41303 /* end confdefs.h.  */
41304
41305 /* Override any GCC internal prototype to avoid an error.
41306    Use char because int might match the return type of a GCC
41307    builtin and then its argument prototype would still apply.  */
41308 #ifdef __cplusplus
41309 extern "C"
41310 #endif
41311 char pthread_create ();
41312 int
41313 main ()
41314 {
41315 return pthread_create ();
41316   ;
41317   return 0;
41318 }
41319 _ACEOF
41320 rm -f conftest.$ac_objext conftest$ac_exeext
41321 if { (ac_try="$ac_link"
41322 case "(($ac_try" in
41323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41324   *) ac_try_echo=$ac_try;;
41325 esac
41326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41327   (eval "$ac_link") 2>conftest.er1
41328   ac_status=$?
41329   grep -v '^ *+' conftest.er1 >conftest.err
41330   rm -f conftest.er1
41331   cat conftest.err >&5
41332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41333   (exit $ac_status); } && {
41334          test -z "$ac_c_werror_flag" ||
41335          test ! -s conftest.err
41336        } && test -s conftest$ac_exeext &&
41337        $as_test_x conftest$ac_exeext; then
41338   ac_cv_lib_c_r_pthread_create=yes
41339 else
41340   echo "$as_me: failed program was:" >&5
41341 sed 's/^/| /' conftest.$ac_ext >&5
41342
41343         ac_cv_lib_c_r_pthread_create=no
41344 fi
41345
41346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41347       conftest$ac_exeext conftest.$ac_ext
41348 LIBS=$ac_check_lib_save_LIBS
41349 fi
41350 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
41351 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
41352 if test $ac_cv_lib_c_r_pthread_create = yes; then
41353   PTHREAD_LIB="-lc_r"
41354 else
41355
41356                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
41357 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
41358 if test "${ac_cv_func_pthread_create+set}" = set; then
41359   echo $ECHO_N "(cached) $ECHO_C" >&6
41360 else
41361   cat >conftest.$ac_ext <<_ACEOF
41362 /* confdefs.h.  */
41363 _ACEOF
41364 cat confdefs.h >>conftest.$ac_ext
41365 cat >>conftest.$ac_ext <<_ACEOF
41366 /* end confdefs.h.  */
41367 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
41368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41369 #define pthread_create innocuous_pthread_create
41370
41371 /* System header to define __stub macros and hopefully few prototypes,
41372     which can conflict with char pthread_create (); below.
41373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41374     <limits.h> exists even on freestanding compilers.  */
41375
41376 #ifdef __STDC__
41377 # include <limits.h>
41378 #else
41379 # include <assert.h>
41380 #endif
41381
41382 #undef pthread_create
41383
41384 /* Override any GCC internal prototype to avoid an error.
41385    Use char because int might match the return type of a GCC
41386    builtin and then its argument prototype would still apply.  */
41387 #ifdef __cplusplus
41388 extern "C"
41389 #endif
41390 char pthread_create ();
41391 /* The GNU C library defines this for functions which it implements
41392     to always fail with ENOSYS.  Some functions are actually named
41393     something starting with __ and the normal name is an alias.  */
41394 #if defined __stub_pthread_create || defined __stub___pthread_create
41395 choke me
41396 #endif
41397
41398 int
41399 main ()
41400 {
41401 return pthread_create ();
41402   ;
41403   return 0;
41404 }
41405 _ACEOF
41406 rm -f conftest.$ac_objext conftest$ac_exeext
41407 if { (ac_try="$ac_link"
41408 case "(($ac_try" in
41409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41410   *) ac_try_echo=$ac_try;;
41411 esac
41412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41413   (eval "$ac_link") 2>conftest.er1
41414   ac_status=$?
41415   grep -v '^ *+' conftest.er1 >conftest.err
41416   rm -f conftest.er1
41417   cat conftest.err >&5
41418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41419   (exit $ac_status); } && {
41420          test -z "$ac_c_werror_flag" ||
41421          test ! -s conftest.err
41422        } && test -s conftest$ac_exeext &&
41423        $as_test_x conftest$ac_exeext; then
41424   ac_cv_func_pthread_create=yes
41425 else
41426   echo "$as_me: failed program was:" >&5
41427 sed 's/^/| /' conftest.$ac_ext >&5
41428
41429         ac_cv_func_pthread_create=no
41430 fi
41431
41432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41433       conftest$ac_exeext conftest.$ac_ext
41434 fi
41435 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
41436 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
41437
41438
41439
41440 fi
41441
41442
41443
41444 fi
41445
41446
41447
41448 fi
41449
41450
41451
41452 cat >>confdefs.h <<\_ACEOF
41453 #define FDLIBS 1
41454 _ACEOF
41455
41456
41457 CFLAGS=${CFLAGS--O}
41458
41459 if test x$have_gcc = xyes ; then
41460    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41461    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41462 fi
41463 LDFLAGS=${LDFLAGS--O}
41464 DB_LIBS="${SQL_LFLAGS}"
41465 CPPFLAGS="$CPPFLAGS"
41466 CFLAGS="$CFLAGS"
41467
41468
41469
41470
41471
41472
41473
41474
41475
41476
41477
41478
41479
41480
41481
41482
41483 OBJLIST=
41484
41485
41486 lld="lld"
41487 llu="llu"
41488
41489 WCFLAGS=
41490 WLDFLAGS=
41491
41492 PFILES="platforms/Makefile"
41493 PSCMD="ps -e"
41494 WIN32=
41495 MACOSX=
41496 hostname=`uname -n | cut -d '.' -f 1`
41497 if test x${hostname} = x ; then
41498    hostname="localhost"
41499 fi
41500 case "$DISTNAME" in
41501 aix)
41502    DISTVER=`uname -r`
41503    PSCMD="ps -e -o pid,comm"
41504    PFILES="${PFILES} \
41505       platforms/aix/Makefile"
41506    TAPEDRIVE="/dev/rmt0.1"
41507   ;;
41508 alpha)
41509    DISTVER=`uname -r`
41510    PTHREAD_LIB="-lpthread -lexc"
41511    if test "${CC}" = "gcc" ; then
41512       lld="lld"
41513       llu="llu"
41514    else
41515       lld="ld"
41516       llu="lu"
41517    fi
41518    TAPEDRIVE="/dev/nrmt0"
41519   ;;
41520 bsdi)
41521    DISTVER=`uname -a |awk '{print $3}'`
41522    TAPEDRIVE="/dev/nrmt0"
41523    PTHREAD_LIB="-pthread"
41524    CFLAGS="${CFLAGS} -pthread"
41525    PSCMD="ps -ax -o pid,command"
41526    lld="qd"
41527    llu="qu"
41528    PFILES="${PFILES} \
41529        platforms/bsdi/Makefile \
41530        platforms/bsdi/bacula-fd \
41531        platforms/bsdi/bacula-sd \
41532        platforms/bsdi/bacula-dir"
41533    largefile_support="yes"
41534   ;;
41535 cygwin)
41536    DISTVER=`uname -a |awk '{print $3}'`
41537    TAPEDRIVE="/dev/nrst0"
41538    WIN32=win32
41539    WCFLAGS="-mwindows"
41540    WLDFLAGS="-mwindows"
41541   ;;
41542 darwin)
41543    DISTVER=`uname -r`
41544    TAPEDRIVE="/dev/nst0"
41545    PSCMD="ps -e -o pid,command"
41546    MACOSX=macosx
41547    PFILES="${PFILES} \
41548       platforms/darwin/Makefile"
41549   ;;
41550 debian)
41551       ping -c 1 $hostname 2>&1 1>/dev/null
41552    if test ! $? = 0; then
41553       hostname="localhost"
41554    fi
41555    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
41556       DISTNAME="ubuntu"
41557    fi
41558    DISTVER=`cat /etc/debian_version`
41559    if test -f /etc/lsb-release ; then
41560       . /etc/lsb-release
41561       if test "x$DISTRIB_ID" != "x" ; then
41562          DISTNAME=$DISTRIB_ID
41563       fi
41564       if test "x$DISTRIB_RELEASE" != "x" ; then
41565          DISTVER=$DISTRIB_RELEASE
41566       fi
41567    fi
41568    if test "$DISTNAME" = "Ubuntu" ; then
41569       DISTNAME="ubuntu"
41570    fi
41571    TAPEDRIVE="/dev/nst0"
41572    PSCMD="ps -e -o pid,command"
41573    if test "$DISTNAME" = "ubuntu" ; then
41574       PFILES="${PFILES} \
41575          platforms/ubuntu/Makefile \
41576          platforms/ubuntu/bacula-fd \
41577          platforms/ubuntu/bacula-sd \
41578          platforms/ubuntu/bacula-dir"
41579    else
41580       PFILES="${PFILES} \
41581          platforms/debian/Makefile \
41582          platforms/debian/bacula-fd \
41583          platforms/debian/bacula-sd \
41584          platforms/debian/bacula-dir"
41585    fi
41586   ;;
41587 freebsd)
41588       ping -c 1 $hostname 2>&1 1>/dev/null
41589    if test ! $? = 0; then
41590       hostname="localhost"
41591    fi
41592    DISTVER=`uname -a |awk '{print $3}'`
41593    VER=`echo $DISTVER | cut -c 1`
41594    if test x$VER = x4 ; then
41595       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41596       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41597    fi
41598    lld="qd"
41599    llu="qu"
41600    TAPEDRIVE="/dev/nrsa0"
41601    PSCMD="ps -ax -o pid,command"
41602    PFILES="${PFILES} \
41603        platforms/freebsd/Makefile \
41604        platforms/freebsd/bacula-fd \
41605        platforms/freebsd/bacula-sd \
41606        platforms/freebsd/bacula-dir"
41607    largefile_support="yes"
41608   ;;
41609 hpux)
41610    PSCMD="UNIX95=1; ps -e -o pid,comm"
41611    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41612    DISTVER=`uname -r`
41613    TAPEDRIVE="/dev/rmt/0hnb"
41614    PTHREAD_LIB="-lpthread"
41615    cat >>confdefs.h <<\_ACEOF
41616 #define _INCLUDE_LONGLONG 1
41617 _ACEOF
41618
41619   ;;
41620 irix)
41621    DISTVER=`uname -r`
41622    TAPEDRIVE="/dev/rmt/0cbn"
41623    PSCMD="ps -e -o pid,comm"
41624    PFILES="${PFILES} \
41625        platforms/irix/Makefile \
41626        platforms/irix/bacula-fd \
41627        platforms/irix/bacula-sd \
41628        platforms/irix/bacula-dir"
41629   ;;
41630 netbsd)
41631    DISTVER=`uname -a |awk '{print $3}'`
41632    lld="qd"
41633    llu="qu"
41634    TAPEDRIVE="/dev/nrst0"
41635    PSCMD="ps -ax -o pid,command"
41636    PTHREAD_LIB="-pthread"
41637    CFLAGS="${CFLAGS} -pthread"
41638   ;;
41639 openbsd)
41640    DISTVER=`uname -a |awk '{print $3}'`
41641    lld="qd"
41642    llu="qu"
41643    TAPEDRIVE="/dev/nrst0"
41644    PSCMD="ps -ax -o pid,command"
41645    PTHREAD_LIB="-pthread"
41646    CFLAGS="${CFLAGS} -pthread"
41647    PFILES="${PFILES} \
41648        platforms/openbsd/Makefile \
41649        platforms/openbsd/bacula-fd \
41650        platforms/openbsd/bacula-sd \
41651        platforms/openbsd/bacula-dir"
41652   ;;
41653 redhat)
41654       ping -c 1 $hostname 2>&1 1>/dev/null
41655    if test ! $? = 0; then
41656       hostname="localhost"
41657    fi
41658    if test -f /etc/whitebox-release ; then
41659       f=/etc/whitebox-release
41660    else
41661       f=/etc/redhat-release
41662    fi
41663    if test `cat $f | grep release |\
41664          cut -f 3 -d ' '`x = "Enterprise"x ; then
41665       DISTVER="Enterprise "`cat $f | grep release |\
41666           cut -f 6 -d ' '`
41667    else
41668        DISTVER=`cat /etc/redhat-release | grep release |\
41669            cut -f 5 -d ' '`
41670    fi
41671    TAPEDRIVE="/dev/nst0"
41672    PSCMD="ps -e -o pid,command"
41673    PFILES="${PFILES} \
41674        platforms/redhat/Makefile \
41675        platforms/redhat/bacula-fd \
41676        platforms/redhat/bacula-sd \
41677        platforms/redhat/bacula-dir \
41678        platforms/redhat/bacula.spec \
41679        "
41680   ;;
41681 mandrake)
41682       ping -c 1 $hostname 2>&1 1>/dev/null
41683    if test ! $? = 0; then
41684       hostname="localhost"
41685    fi
41686    DISTVER=`cat /etc/mandrake-release | grep release |\
41687       cut -f 5 -d ' '`
41688    TAPEDRIVE="/dev/nst0"
41689    PSCMD="ps -e -o pid,command"
41690    PFILES="${PFILES} \
41691        platforms/mandrake/Makefile \
41692        platforms/mandrake/bacula-fd \
41693        platforms/mandrake/bacula-sd \
41694        platforms/mandrake/bacula-dir \
41695        platforms/mandrake/bacula.spec \
41696        "
41697   ;;
41698 gentoo)
41699       ping -c 1 $hostname 2>&1 1>/dev/null
41700    if test ! $? = 0; then
41701       hostname="localhost"
41702    fi
41703    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41704    TAPEDRIVE="/dev/nst0"
41705    PSCMD="ps -e -o pid,command"
41706    PFILES="${PFILES} \
41707        platforms/gentoo/Makefile \
41708     platforms/gentoo/bacula-init \
41709        platforms/gentoo/bacula-fd \
41710        platforms/gentoo/bacula-sd \
41711        platforms/gentoo/bacula-dir"
41712   ;;
41713 slackware)
41714       ping -c 1 $hostname 2>&1 1>/dev/null
41715    if test ! $? = 0; then
41716       hostname="localhost"
41717    fi
41718    DISTVER=`cat /etc/slackware-version`
41719    TAPEDRIVE="/dev/nst0"
41720    PSCMD="ps -e -o pid,command"
41721    PFILES="${PFILES} \
41722        platforms/slackware/Makefile \
41723        platforms/slackware/rc.bacula-fd \
41724        platforms/slackware/rc.bacula-sd \
41725        platforms/slackware/rc.bacula-dir\
41726        platforms/slackware/functions.bacula"
41727   ;;
41728 solaris)
41729    DISTVER=`uname -r`
41730    TAPEDRIVE="/dev/rmt/0cbn"
41731    PSCMD="ps -e -o pid,comm"
41732    PFILES="${PFILES} \
41733        platforms/solaris/Makefile \
41734        platforms/solaris/bacula-fd \
41735        platforms/solaris/bacula-sd \
41736        platforms/solaris/bacula-dir"
41737    if test x$DISTVER = x5.6 ; then
41738        cat >>confdefs.h <<\_ACEOF
41739 #define HAVE_OLD_SOCKOPT 1
41740 _ACEOF
41741
41742    fi
41743    LIBS="$LIBS -lresolv"
41744   ;;
41745 suse)
41746       ping -c 1 $hostname 2>&1 1>/dev/null
41747    if test ! $? = 0; then
41748       hostname="localhost"
41749    fi
41750    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41751        cut -f 3 -d ' '`
41752    TAPEDRIVE="/dev/nst0"
41753    PSCMD="ps -e -o pid,command"
41754    PFILES="${PFILES} \
41755        platforms/suse/Makefile \
41756        platforms/suse/bacula-fd \
41757        platforms/suse/bacula-sd \
41758        platforms/suse/bacula-dir \
41759        platforms/suse/bacula \
41760        platforms/suse/bacula.spec"
41761   ;;
41762 suse5)
41763       ping -c 1 $hostname 2>&1 1>/dev/null
41764    if test ! $? = 0; then
41765       hostname="localhost"
41766    fi
41767    DISTNAME=suse
41768    DISTVER=5.x
41769    TAPEDRIVE="/dev/nst0"
41770    PSCMD="ps -e -o pid,command"
41771    PFILES="${PFILES} \
41772        platforms/suse/Makefile \
41773        platforms/suse/bacula-fd \
41774        platforms/suse/bacula-sd \
41775        platforms/suse/bacula-dir"
41776   ;;
41777 unknown)
41778    DISTVER=unknown
41779    TAPEDRIVE="/dev/nst0"
41780   ;;
41781 *)
41782   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41783   ;;
41784 esac
41785
41786
41787
41788 LIBS="$PTHREAD_LIB $LIBS"
41789
41790 cat >>confdefs.h <<_ACEOF
41791 #define lld "$lld"
41792 _ACEOF
41793
41794 cat >>confdefs.h <<_ACEOF
41795 #define llu "$llu"
41796 _ACEOF
41797
41798
41799
41800
41801
41802
41803
41804
41805 MCOMMON=./autoconf/Make.common
41806
41807
41808 if test "x${subsysdir}" = "x${sbindir}" ; then
41809    echo " "
41810    echo " "
41811    echo "You have set both --sbindir and --with-subsys-dir"
41812    echo "  equal to: ${subsysdir} "
41813    echo "This is not permitted. Please reconfigure."
41814    echo " "
41815    echo "Aborting configuration ..."
41816    echo " "
41817    echo " "
41818    exit 1
41819 fi
41820
41821 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
41822
41823 ac_config_commands="$ac_config_commands default"
41824
41825 cat >confcache <<\_ACEOF
41826 # This file is a shell script that caches the results of configure
41827 # tests run on this system so they can be shared between configure
41828 # scripts and configure runs, see configure's option --config-cache.
41829 # It is not useful on other systems.  If it contains results you don't
41830 # want to keep, you may remove or edit it.
41831 #
41832 # config.status only pays attention to the cache file if you give it
41833 # the --recheck option to rerun configure.
41834 #
41835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41837 # following values.
41838
41839 _ACEOF
41840
41841 # The following way of writing the cache mishandles newlines in values,
41842 # but we know of no workaround that is simple, portable, and efficient.
41843 # So, we kill variables containing newlines.
41844 # Ultrix sh set writes to stderr and can't be redirected directly,
41845 # and sets the high bit in the cache file unless we assign to the vars.
41846 (
41847   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41848     eval ac_val=\$$ac_var
41849     case $ac_val in #(
41850     *${as_nl}*)
41851       case $ac_var in #(
41852       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41854       esac
41855       case $ac_var in #(
41856       _ | IFS | as_nl) ;; #(
41857       *) $as_unset $ac_var ;;
41858       esac ;;
41859     esac
41860   done
41861
41862   (set) 2>&1 |
41863     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41864     *${as_nl}ac_space=\ *)
41865       # `set' does not quote correctly, so add quotes (double-quote
41866       # substitution turns \\\\ into \\, and sed turns \\ into \).
41867       sed -n \
41868         "s/'/'\\\\''/g;
41869           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41870       ;; #(
41871     *)
41872       # `set' quotes correctly as required by POSIX, so do not add quotes.
41873       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41874       ;;
41875     esac |
41876     sort
41877 ) |
41878   sed '
41879      /^ac_cv_env_/b end
41880      t clear
41881      :clear
41882      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41883      t end
41884      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41885      :end' >>confcache
41886 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41887   if test -w "$cache_file"; then
41888     test "x$cache_file" != "x/dev/null" &&
41889       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41890 echo "$as_me: updating cache $cache_file" >&6;}
41891     cat confcache >$cache_file
41892   else
41893     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41894 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41895   fi
41896 fi
41897 rm -f confcache
41898
41899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41900 # Let make expand exec_prefix.
41901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41902
41903 DEFS=-DHAVE_CONFIG_H
41904
41905 ac_libobjs=
41906 ac_ltlibobjs=
41907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41908   # 1. Remove the extension, and $U if already installed.
41909   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41910   ac_i=`echo "$ac_i" | sed "$ac_script"`
41911   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41912   #    will be set to the directory where LIBOBJS objects are built.
41913   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41914   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41915 done
41916 LIBOBJS=$ac_libobjs
41917
41918 LTLIBOBJS=$ac_ltlibobjs
41919
41920
41921
41922 : ${CONFIG_STATUS=./config.status}
41923 ac_clean_files_save=$ac_clean_files
41924 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41925 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41926 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41927 cat >$CONFIG_STATUS <<_ACEOF
41928 #! $SHELL
41929 # Generated by $as_me.
41930 # Run this file to recreate the current configuration.
41931 # Compiler output produced by configure, useful for debugging
41932 # configure, is in config.log if it exists.
41933
41934 debug=false
41935 ac_cs_recheck=false
41936 ac_cs_silent=false
41937 SHELL=\${CONFIG_SHELL-$SHELL}
41938 _ACEOF
41939
41940 cat >>$CONFIG_STATUS <<\_ACEOF
41941 ## --------------------- ##
41942 ## M4sh Initialization.  ##
41943 ## --------------------- ##
41944
41945 # Be more Bourne compatible
41946 DUALCASE=1; export DUALCASE # for MKS sh
41947 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41948   emulate sh
41949   NULLCMD=:
41950   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41951   # is contrary to our usage.  Disable this feature.
41952   alias -g '${1+"$@"}'='"$@"'
41953   setopt NO_GLOB_SUBST
41954 else
41955   case `(set -o) 2>/dev/null` in
41956   *posix*) set -o posix ;;
41957 esac
41958
41959 fi
41960
41961
41962
41963
41964 # PATH needs CR
41965 # Avoid depending upon Character Ranges.
41966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41969 as_cr_digits='0123456789'
41970 as_cr_alnum=$as_cr_Letters$as_cr_digits
41971
41972 # The user is always right.
41973 if test "${PATH_SEPARATOR+set}" != set; then
41974   echo "#! /bin/sh" >conf$$.sh
41975   echo  "exit 0"   >>conf$$.sh
41976   chmod +x conf$$.sh
41977   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41978     PATH_SEPARATOR=';'
41979   else
41980     PATH_SEPARATOR=:
41981   fi
41982   rm -f conf$$.sh
41983 fi
41984
41985 # Support unset when possible.
41986 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41987   as_unset=unset
41988 else
41989   as_unset=false
41990 fi
41991
41992
41993 # IFS
41994 # We need space, tab and new line, in precisely that order.  Quoting is
41995 # there to prevent editors from complaining about space-tab.
41996 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41997 # splitting by setting IFS to empty value.)
41998 as_nl='
41999 '
42000 IFS=" ""        $as_nl"
42001
42002 # Find who we are.  Look in the path if we contain no directory separator.
42003 case $0 in
42004   *[\\/]* ) as_myself=$0 ;;
42005   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42006 for as_dir in $PATH
42007 do
42008   IFS=$as_save_IFS
42009   test -z "$as_dir" && as_dir=.
42010   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42011 done
42012 IFS=$as_save_IFS
42013
42014      ;;
42015 esac
42016 # We did not find ourselves, most probably we were run as `sh COMMAND'
42017 # in which case we are not to be found in the path.
42018 if test "x$as_myself" = x; then
42019   as_myself=$0
42020 fi
42021 if test ! -f "$as_myself"; then
42022   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42023   { (exit 1); exit 1; }
42024 fi
42025
42026 # Work around bugs in pre-3.0 UWIN ksh.
42027 for as_var in ENV MAIL MAILPATH
42028 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42029 done
42030 PS1='$ '
42031 PS2='> '
42032 PS4='+ '
42033
42034 # NLS nuisances.
42035 for as_var in \
42036   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42037   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42038   LC_TELEPHONE LC_TIME
42039 do
42040   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42041     eval $as_var=C; export $as_var
42042   else
42043     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42044   fi
42045 done
42046
42047 # Required to use basename.
42048 if expr a : '\(a\)' >/dev/null 2>&1 &&
42049    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42050   as_expr=expr
42051 else
42052   as_expr=false
42053 fi
42054
42055 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42056   as_basename=basename
42057 else
42058   as_basename=false
42059 fi
42060
42061
42062 # Name of the executable.
42063 as_me=`$as_basename -- "$0" ||
42064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42065          X"$0" : 'X\(//\)$' \| \
42066          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42067 echo X/"$0" |
42068     sed '/^.*\/\([^/][^/]*\)\/*$/{
42069             s//\1/
42070             q
42071           }
42072           /^X\/\(\/\/\)$/{
42073             s//\1/
42074             q
42075           }
42076           /^X\/\(\/\).*/{
42077             s//\1/
42078             q
42079           }
42080           s/.*/./; q'`
42081
42082 # CDPATH.
42083 $as_unset CDPATH
42084
42085
42086
42087   as_lineno_1=$LINENO
42088   as_lineno_2=$LINENO
42089   test "x$as_lineno_1" != "x$as_lineno_2" &&
42090   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
42091
42092   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42093   # uniformly replaced by the line number.  The first 'sed' inserts a
42094   # line-number line after each line using $LINENO; the second 'sed'
42095   # does the real work.  The second script uses 'N' to pair each
42096   # line-number line with the line containing $LINENO, and appends
42097   # trailing '-' during substitution so that $LINENO is not a special
42098   # case at line end.
42099   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42100   # scripts with optimization help from Paolo Bonzini.  Blame Lee
42101   # E. McMahon (1931-1989) for sed's syntax.  :-)
42102   sed -n '
42103     p
42104     /[$]LINENO/=
42105   ' <$as_myself |
42106     sed '
42107       s/[$]LINENO.*/&-/
42108       t lineno
42109       b
42110       :lineno
42111       N
42112       :loop
42113       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42114       t loop
42115       s/-\n.*//
42116     ' >$as_me.lineno &&
42117   chmod +x "$as_me.lineno" ||
42118     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
42119    { (exit 1); exit 1; }; }
42120
42121   # Don't try to exec as it changes $[0], causing all sort of problems
42122   # (the dirname of $[0] is not the place where we might find the
42123   # original and so on.  Autoconf is especially sensitive to this).
42124   . "./$as_me.lineno"
42125   # Exit status is that of the last command.
42126   exit
42127 }
42128
42129
42130 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42131   as_dirname=dirname
42132 else
42133   as_dirname=false
42134 fi
42135
42136 ECHO_C= ECHO_N= ECHO_T=
42137 case `echo -n x` in
42138 -n*)
42139   case `echo 'x\c'` in
42140   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
42141   *)   ECHO_C='\c';;
42142   esac;;
42143 *)
42144   ECHO_N='-n';;
42145 esac
42146
42147 if expr a : '\(a\)' >/dev/null 2>&1 &&
42148    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42149   as_expr=expr
42150 else
42151   as_expr=false
42152 fi
42153
42154 rm -f conf$$ conf$$.exe conf$$.file
42155 if test -d conf$$.dir; then
42156   rm -f conf$$.dir/conf$$.file
42157 else
42158   rm -f conf$$.dir
42159   mkdir conf$$.dir
42160 fi
42161 echo >conf$$.file
42162 if ln -s conf$$.file conf$$ 2>/dev/null; then
42163   as_ln_s='ln -s'
42164   # ... but there are two gotchas:
42165   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42166   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42167   # In both cases, we have to default to `cp -p'.
42168   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42169     as_ln_s='cp -p'
42170 elif ln conf$$.file conf$$ 2>/dev/null; then
42171   as_ln_s=ln
42172 else
42173   as_ln_s='cp -p'
42174 fi
42175 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42176 rmdir conf$$.dir 2>/dev/null
42177
42178 if mkdir -p . 2>/dev/null; then
42179   as_mkdir_p=:
42180 else
42181   test -d ./-p && rmdir ./-p
42182   as_mkdir_p=false
42183 fi
42184
42185 if test -x / >/dev/null 2>&1; then
42186   as_test_x='test -x'
42187 else
42188   if ls -dL / >/dev/null 2>&1; then
42189     as_ls_L_option=L
42190   else
42191     as_ls_L_option=
42192   fi
42193   as_test_x='
42194     eval sh -c '\''
42195       if test -d "$1"; then
42196         test -d "$1/.";
42197       else
42198         case $1 in
42199         -*)set "./$1";;
42200         esac;
42201         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
42202         ???[sx]*):;;*)false;;esac;fi
42203     '\'' sh
42204   '
42205 fi
42206 as_executable_p=$as_test_x
42207
42208 # Sed expression to map a string onto a valid CPP name.
42209 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42210
42211 # Sed expression to map a string onto a valid variable name.
42212 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42213
42214
42215 exec 6>&1
42216
42217 # Save the log message, to keep $[0] and so on meaningful, and to
42218 # report actual input values of CONFIG_FILES etc. instead of their
42219 # values after options handling.
42220 ac_log="
42221 This file was extended by $as_me, which was
42222 generated by GNU Autoconf 2.61.  Invocation command line was
42223
42224   CONFIG_FILES    = $CONFIG_FILES
42225   CONFIG_HEADERS  = $CONFIG_HEADERS
42226   CONFIG_LINKS    = $CONFIG_LINKS
42227   CONFIG_COMMANDS = $CONFIG_COMMANDS
42228   $ $0 $@
42229
42230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42231 "
42232
42233 _ACEOF
42234
42235 cat >>$CONFIG_STATUS <<_ACEOF
42236 # Files that config.status was made for.
42237 config_files="$ac_config_files"
42238 config_headers="$ac_config_headers"
42239 config_commands="$ac_config_commands"
42240
42241 _ACEOF
42242
42243 cat >>$CONFIG_STATUS <<\_ACEOF
42244 ac_cs_usage="\
42245 \`$as_me' instantiates files from templates according to the
42246 current configuration.
42247
42248 Usage: $0 [OPTIONS] [FILE]...
42249
42250   -h, --help       print this help, then exit
42251   -V, --version    print version number and configuration settings, then exit
42252   -q, --quiet      do not print progress messages
42253   -d, --debug      don't remove temporary files
42254       --recheck    update $as_me by reconfiguring in the same conditions
42255   --file=FILE[:TEMPLATE]
42256                    instantiate the configuration file FILE
42257   --header=FILE[:TEMPLATE]
42258                    instantiate the configuration header FILE
42259
42260 Configuration files:
42261 $config_files
42262
42263 Configuration headers:
42264 $config_headers
42265
42266 Configuration commands:
42267 $config_commands
42268
42269 Report bugs to <bug-autoconf@gnu.org>."
42270
42271 _ACEOF
42272 cat >>$CONFIG_STATUS <<_ACEOF
42273 ac_cs_version="\\
42274 config.status
42275 configured by $0, generated by GNU Autoconf 2.61,
42276   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42277
42278 Copyright (C) 2006 Free Software Foundation, Inc.
42279 This config.status script is free software; the Free Software Foundation
42280 gives unlimited permission to copy, distribute and modify it."
42281
42282 ac_pwd='$ac_pwd'
42283 srcdir='$srcdir'
42284 INSTALL='$INSTALL'
42285 _ACEOF
42286
42287 cat >>$CONFIG_STATUS <<\_ACEOF
42288 # If no file are specified by the user, then we need to provide default
42289 # value.  By we need to know if files were specified by the user.
42290 ac_need_defaults=:
42291 while test $# != 0
42292 do
42293   case $1 in
42294   --*=*)
42295     ac_option=`expr "X$1" : 'X\([^=]*\)='`
42296     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42297     ac_shift=:
42298     ;;
42299   *)
42300     ac_option=$1
42301     ac_optarg=$2
42302     ac_shift=shift
42303     ;;
42304   esac
42305
42306   case $ac_option in
42307   # Handling of the options.
42308   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42309     ac_cs_recheck=: ;;
42310   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42311     echo "$ac_cs_version"; exit ;;
42312   --debug | --debu | --deb | --de | --d | -d )
42313     debug=: ;;
42314   --file | --fil | --fi | --f )
42315     $ac_shift
42316     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42317     ac_need_defaults=false;;
42318   --header | --heade | --head | --hea )
42319     $ac_shift
42320     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42321     ac_need_defaults=false;;
42322   --he | --h)
42323     # Conflict between --help and --header
42324     { echo "$as_me: error: ambiguous option: $1
42325 Try \`$0 --help' for more information." >&2
42326    { (exit 1); exit 1; }; };;
42327   --help | --hel | -h )
42328     echo "$ac_cs_usage"; exit ;;
42329   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42330   | -silent | --silent | --silen | --sile | --sil | --si | --s)
42331     ac_cs_silent=: ;;
42332
42333   # This is an error.
42334   -*) { echo "$as_me: error: unrecognized option: $1
42335 Try \`$0 --help' for more information." >&2
42336    { (exit 1); exit 1; }; } ;;
42337
42338   *) ac_config_targets="$ac_config_targets $1"
42339      ac_need_defaults=false ;;
42340
42341   esac
42342   shift
42343 done
42344
42345 ac_configure_extra_args=
42346
42347 if $ac_cs_silent; then
42348   exec 6>/dev/null
42349   ac_configure_extra_args="$ac_configure_extra_args --silent"
42350 fi
42351
42352 _ACEOF
42353 cat >>$CONFIG_STATUS <<_ACEOF
42354 if \$ac_cs_recheck; then
42355   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42356   CONFIG_SHELL=$SHELL
42357   export CONFIG_SHELL
42358   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42359 fi
42360
42361 _ACEOF
42362 cat >>$CONFIG_STATUS <<\_ACEOF
42363 exec 5>>config.log
42364 {
42365   echo
42366   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42367 ## Running $as_me. ##
42368 _ASBOX
42369   echo "$ac_log"
42370 } >&5
42371
42372 _ACEOF
42373 cat >>$CONFIG_STATUS <<_ACEOF
42374 #
42375 # INIT-COMMANDS
42376 #
42377
42378
42379 # The HP-UX ksh and POSIX shell print the target directory to stdout
42380 # if CDPATH is set.
42381 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42382
42383 sed_quote_subst='$sed_quote_subst'
42384 double_quote_subst='$double_quote_subst'
42385 delay_variable_subst='$delay_variable_subst'
42386 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
42387 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
42388 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
42389 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
42390 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
42391 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
42392 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
42393 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
42394 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
42395 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
42396 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
42397 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
42398 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
42399 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
42400 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
42401 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
42402 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
42403 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
42404 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
42405 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
42406 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
42407 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
42408 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
42409 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
42410 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
42411 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
42412 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
42413 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42414 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
42415 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
42416 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
42417 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
42418 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42419 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
42420 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
42421 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42422 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42423 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42424 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
42425 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42426 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
42427 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
42428 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
42429 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
42430 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"`'
42431 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"`'
42432 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
42433 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
42434 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
42435 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
42436 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
42437 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
42438 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
42439 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
42440 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
42441 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
42442 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
42443 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
42444 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
42445 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
42446 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
42447 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
42448 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42449 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42450 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
42451 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
42452 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42453 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42454 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
42455 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42456 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42457 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42458 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42459 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42460 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42461 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
42462 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42463 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42464 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42465 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
42466 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
42467 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
42468 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
42469 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
42470 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42471 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
42472 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
42473 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
42474 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
42475 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
42476 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42477 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42478 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42479 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42480 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
42481 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
42482 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
42483 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
42484 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
42485 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42486 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42487 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
42488 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42489 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
42490 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42491 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42492 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42493 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42494 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
42495 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
42496 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42497 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42498 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
42499 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
42500 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
42501 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
42502 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
42503 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
42504 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
42505 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42506 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42507 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
42508 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
42509 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
42510 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42511 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42512 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42513 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42514 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42515 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42516 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42517 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42518 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42519 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42520 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42521 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42522 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42523 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42524 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42525 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42526 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42527 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42528 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42529 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42530 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42531 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42532 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42533 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42534 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42535 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42536 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42537 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42538 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42539 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42540 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42541 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42542 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42543 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42544 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42545 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42546 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42547 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42548 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42549 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42550 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42551 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42552 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42553 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42554 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42555 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42556 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42557
42558 LTCC='$LTCC'
42559 LTCFLAGS='$LTCFLAGS'
42560 compiler='$compiler_DEFAULT'
42561
42562 # Quote evaled strings.
42563 for var in SED \
42564 GREP \
42565 EGREP \
42566 FGREP \
42567 LD \
42568 NM \
42569 LN_S \
42570 lt_SP2NL \
42571 lt_NL2SP \
42572 reload_flag \
42573 OBJDUMP \
42574 deplibs_check_method \
42575 file_magic_cmd \
42576 AR \
42577 AR_FLAGS \
42578 STRIP \
42579 RANLIB \
42580 CC \
42581 CFLAGS \
42582 compiler \
42583 lt_cv_sys_global_symbol_pipe \
42584 lt_cv_sys_global_symbol_to_cdecl \
42585 lt_cv_sys_global_symbol_to_c_name_address \
42586 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42587 SHELL \
42588 ECHO \
42589 lt_prog_compiler_no_builtin_flag \
42590 lt_prog_compiler_wl \
42591 lt_prog_compiler_pic \
42592 lt_prog_compiler_static \
42593 lt_cv_prog_compiler_c_o \
42594 need_locks \
42595 DSYMUTIL \
42596 NMEDIT \
42597 LIPO \
42598 OTOOL \
42599 OTOOL64 \
42600 shrext_cmds \
42601 export_dynamic_flag_spec \
42602 whole_archive_flag_spec \
42603 compiler_needs_object \
42604 with_gnu_ld \
42605 allow_undefined_flag \
42606 no_undefined_flag \
42607 hardcode_libdir_flag_spec \
42608 hardcode_libdir_flag_spec_ld \
42609 hardcode_libdir_separator \
42610 fix_srcfile_path \
42611 exclude_expsyms \
42612 include_expsyms \
42613 file_list_spec \
42614 variables_saved_for_relink \
42615 libname_spec \
42616 library_names_spec \
42617 soname_spec \
42618 finish_eval \
42619 old_striplib \
42620 striplib \
42621 compiler_lib_search_dirs \
42622 predep_objects \
42623 postdep_objects \
42624 predeps \
42625 postdeps \
42626 compiler_lib_search_path \
42627 LD_CXX \
42628 compiler_CXX \
42629 lt_prog_compiler_no_builtin_flag_CXX \
42630 lt_prog_compiler_wl_CXX \
42631 lt_prog_compiler_pic_CXX \
42632 lt_prog_compiler_static_CXX \
42633 lt_cv_prog_compiler_c_o_CXX \
42634 export_dynamic_flag_spec_CXX \
42635 whole_archive_flag_spec_CXX \
42636 compiler_needs_object_CXX \
42637 with_gnu_ld_CXX \
42638 allow_undefined_flag_CXX \
42639 no_undefined_flag_CXX \
42640 hardcode_libdir_flag_spec_CXX \
42641 hardcode_libdir_flag_spec_ld_CXX \
42642 hardcode_libdir_separator_CXX \
42643 fix_srcfile_path_CXX \
42644 exclude_expsyms_CXX \
42645 include_expsyms_CXX \
42646 file_list_spec_CXX \
42647 compiler_lib_search_dirs_CXX \
42648 predep_objects_CXX \
42649 postdep_objects_CXX \
42650 predeps_CXX \
42651 postdeps_CXX \
42652 compiler_lib_search_path_CXX; do
42653     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42654     *[\\\\\\\`\\"\\\$]*)
42655       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42656       ;;
42657     *)
42658       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42659       ;;
42660     esac
42661 done
42662
42663 # Double-quote double-evaled strings.
42664 for var in reload_cmds \
42665 old_postinstall_cmds \
42666 old_postuninstall_cmds \
42667 old_archive_cmds \
42668 extract_expsyms_cmds \
42669 old_archive_from_new_cmds \
42670 old_archive_from_expsyms_cmds \
42671 archive_cmds \
42672 archive_expsym_cmds \
42673 module_cmds \
42674 module_expsym_cmds \
42675 export_symbols_cmds \
42676 prelink_cmds \
42677 postinstall_cmds \
42678 postuninstall_cmds \
42679 finish_cmds \
42680 sys_lib_search_path_spec \
42681 sys_lib_dlsearch_path_spec \
42682 old_archive_cmds_CXX \
42683 old_archive_from_new_cmds_CXX \
42684 old_archive_from_expsyms_cmds_CXX \
42685 archive_cmds_CXX \
42686 archive_expsym_cmds_CXX \
42687 module_cmds_CXX \
42688 module_expsym_cmds_CXX \
42689 export_symbols_cmds_CXX \
42690 prelink_cmds_CXX; do
42691     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42692     *[\\\\\\\`\\"\\\$]*)
42693       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42694       ;;
42695     *)
42696       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42697       ;;
42698     esac
42699 done
42700
42701 # Fix-up fallback echo if it was mangled by the above quoting rules.
42702 case \$lt_ECHO in
42703 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42704   ;;
42705 esac
42706
42707 ac_aux_dir='$ac_aux_dir'
42708 xsi_shell='$xsi_shell'
42709 lt_shell_append='$lt_shell_append'
42710
42711 # See if we are running on zsh, and set the options which allow our
42712 # commands through without removal of \ escapes INIT.
42713 if test -n "\${ZSH_VERSION+set}" ; then
42714    setopt NO_GLOB_SUBST
42715 fi
42716
42717
42718     PACKAGE='$PACKAGE'
42719     VERSION='$VERSION'
42720     TIMESTAMP='$TIMESTAMP'
42721     RM='$RM'
42722     ofile='$ofile'
42723
42724
42725
42726
42727
42728 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42729     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42730     # from automake.
42731     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42732     # Capture the value of LINGUAS because we need it to compute CATALOGS.
42733     LINGUAS="${LINGUAS-%UNSET%}"
42734
42735
42736 _ACEOF
42737
42738 cat >>$CONFIG_STATUS <<\_ACEOF
42739
42740 # Handling of arguments.
42741 for ac_config_target in $ac_config_targets
42742 do
42743   case $ac_config_target in
42744     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42745     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42746     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42747     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42748     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42749     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42750     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42751     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42752     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42753     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42754     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42755     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42756     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42757     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42758     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42759     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42760     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42761     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42762     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42763     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42764     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42765     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42766     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42767     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42768     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42769     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42770     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42771     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42772     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42773     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42774     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42775     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42776     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42777     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42778     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42779     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42780     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42781     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42782     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42783     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42784     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42785     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42786     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42787     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42788     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42789     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42790     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42791     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42792     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42793     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42794     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42795     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42796     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42797     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42798     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42799     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42800     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42801     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42802     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42803     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42804     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42805     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42806     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42807     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42808     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42809     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42810     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42811     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42812     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42813     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42814     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42815     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42816     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42817     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42818     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42819     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42820     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42821     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42822     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42823     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42824     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42825     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42826     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42827     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42828     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42829     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42830     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42831     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42832     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42833     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42834     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42835     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42836     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42837     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42838     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42839     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42840     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42841     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42842     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42843     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42844     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42845     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42846     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42847     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42848     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42849     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42850     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
42851     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
42852     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42853     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42854     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42855     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42856     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42857     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42858     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42859
42860   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42861 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42862    { (exit 1); exit 1; }; };;
42863   esac
42864 done
42865
42866
42867 # If the user did not use the arguments to specify the items to instantiate,
42868 # then the envvar interface is used.  Set only those that are not.
42869 # We use the long form for the default assignment because of an extremely
42870 # bizarre bug on SunOS 4.1.3.
42871 if $ac_need_defaults; then
42872   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42873   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42874   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42875 fi
42876
42877 # Have a temporary directory for convenience.  Make it in the build tree
42878 # simply because there is no reason against having it here, and in addition,
42879 # creating and moving files from /tmp can sometimes cause problems.
42880 # Hook for its removal unless debugging.
42881 # Note that there is a small window in which the directory will not be cleaned:
42882 # after its creation but before its name has been assigned to `$tmp'.
42883 $debug ||
42884 {
42885   tmp=
42886   trap 'exit_status=$?
42887   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42888 ' 0
42889   trap '{ (exit 1); exit 1; }' 1 2 13 15
42890 }
42891 # Create a (secure) tmp directory for tmp files.
42892
42893 {
42894   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42895   test -n "$tmp" && test -d "$tmp"
42896 }  ||
42897 {
42898   tmp=./conf$$-$RANDOM
42899   (umask 077 && mkdir "$tmp")
42900 } ||
42901 {
42902    echo "$me: cannot create a temporary directory in ." >&2
42903    { (exit 1); exit 1; }
42904 }
42905
42906 #
42907 # Set up the sed scripts for CONFIG_FILES section.
42908 #
42909
42910 # No need to generate the scripts if there are no CONFIG_FILES.
42911 # This happens for instance when ./config.status config.h
42912 if test -n "$CONFIG_FILES"; then
42913
42914 _ACEOF
42915
42916 # Create sed commands to just substitute file output variables.
42917
42918 # Remaining file output variables are in a fragment that also has non-file
42919 # output varibles.
42920
42921
42922
42923 ac_delim='%!_!# '
42924 for ac_last_try in false false false false false :; do
42925   cat >conf$$subs.sed <<_ACEOF
42926 SHELL!$SHELL$ac_delim
42927 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42928 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42929 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42930 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42931 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42932 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42933 exec_prefix!$exec_prefix$ac_delim
42934 prefix!$prefix$ac_delim
42935 program_transform_name!$program_transform_name$ac_delim
42936 bindir!$bindir$ac_delim
42937 sbindir!$sbindir$ac_delim
42938 libexecdir!$libexecdir$ac_delim
42939 datarootdir!$datarootdir$ac_delim
42940 datadir!$datadir$ac_delim
42941 sysconfdir!$sysconfdir$ac_delim
42942 sharedstatedir!$sharedstatedir$ac_delim
42943 localstatedir!$localstatedir$ac_delim
42944 includedir!$includedir$ac_delim
42945 oldincludedir!$oldincludedir$ac_delim
42946 docdir!$docdir$ac_delim
42947 infodir!$infodir$ac_delim
42948 htmldir!$htmldir$ac_delim
42949 dvidir!$dvidir$ac_delim
42950 pdfdir!$pdfdir$ac_delim
42951 psdir!$psdir$ac_delim
42952 libdir!$libdir$ac_delim
42953 localedir!$localedir$ac_delim
42954 mandir!$mandir$ac_delim
42955 DEFS!$DEFS$ac_delim
42956 ECHO_C!$ECHO_C$ac_delim
42957 ECHO_N!$ECHO_N$ac_delim
42958 ECHO_T!$ECHO_T$ac_delim
42959 LIBS!$LIBS$ac_delim
42960 build_alias!$build_alias$ac_delim
42961 host_alias!$host_alias$ac_delim
42962 target_alias!$target_alias$ac_delim
42963 BUILD_DIR!$BUILD_DIR$ac_delim
42964 TOP_DIR!$TOP_DIR$ac_delim
42965 TRUEPRG!$TRUEPRG$ac_delim
42966 FALSEPRG!$FALSEPRG$ac_delim
42967 VERSION!$VERSION$ac_delim
42968 DATE!$DATE$ac_delim
42969 LSMDATE!$LSMDATE$ac_delim
42970 BACULA!$BACULA$ac_delim
42971 post_host!$post_host$ac_delim
42972 CC!$CC$ac_delim
42973 CFLAGS!$CFLAGS$ac_delim
42974 LDFLAGS!$LDFLAGS$ac_delim
42975 CPPFLAGS!$CPPFLAGS$ac_delim
42976 ac_ct_CC!$ac_ct_CC$ac_delim
42977 EXEEXT!$EXEEXT$ac_delim
42978 OBJEXT!$OBJEXT$ac_delim
42979 CXX!$CXX$ac_delim
42980 CXXFLAGS!$CXXFLAGS$ac_delim
42981 ac_ct_CXX!$ac_ct_CXX$ac_delim
42982 CPP!$CPP$ac_delim
42983 GREP!$GREP$ac_delim
42984 EGREP!$EGREP$ac_delim
42985 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42986 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42987 INSTALL_DATA!$INSTALL_DATA$ac_delim
42988 MV!$MV$ac_delim
42989 REMOVE!$REMOVE$ac_delim
42990 CP!$CP$ac_delim
42991 SED!$SED$ac_delim
42992 ECHO!$ECHO$ac_delim
42993 CMP!$CMP$ac_delim
42994 TBL!$TBL$ac_delim
42995 AR!$AR$ac_delim
42996 OPENSSL!$OPENSSL$ac_delim
42997 MTX!$MTX$ac_delim
42998 DD!$DD$ac_delim
42999 MKISOFS!$MKISOFS$ac_delim
43000 PYTHON!$PYTHON$ac_delim
43001 GROWISOFS!$GROWISOFS$ac_delim
43002 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
43003 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
43004 PKGCONFIG!$PKGCONFIG$ac_delim
43005 QMAKE!$QMAKE$ac_delim
43006 QMAKEQT4!$QMAKEQT4$ac_delim
43007 WXCONFIG!$WXCONFIG$ac_delim
43008 WXFLAGS!$WXFLAGS$ac_delim
43009 CDRECORD!$CDRECORD$ac_delim
43010 PIDOF!$PIDOF$ac_delim
43011 AWK!$AWK$ac_delim
43012 ARFLAGS!$ARFLAGS$ac_delim
43013 MAKE_SHELL!$MAKE_SHELL$ac_delim
43014 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
43015 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
43016 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
43017 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
43018 LIBTOOL!$LIBTOOL$ac_delim
43019 build!$build$ac_delim
43020 _ACEOF
43021
43022   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
43023     break
43024   elif $ac_last_try; then
43025     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43026 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43027    { (exit 1); exit 1; }; }
43028   else
43029     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43030   fi
43031 done
43032
43033 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43034 if test -n "$ac_eof"; then
43035   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43036   ac_eof=`expr $ac_eof + 1`
43037 fi
43038
43039 cat >>$CONFIG_STATUS <<_ACEOF
43040 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43042 /^[      ]*@MCOMMON@[    ]*$/{
43043 r $MCOMMON
43044 d
43045 }
43046 _ACEOF
43047 sed '
43048 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43049 s/^/s,@/; s/!/@,|#_!!_#|/
43050 :n
43051 t n
43052 s/'"$ac_delim"'$/,g/; t
43053 s/$/\\/; p
43054 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43055 ' >>$CONFIG_STATUS <conf$$subs.sed
43056 rm -f conf$$subs.sed
43057 cat >>$CONFIG_STATUS <<_ACEOF
43058 CEOF$ac_eof
43059 _ACEOF
43060
43061
43062 ac_delim='%!_!# '
43063 for ac_last_try in false false false false false :; do
43064   cat >conf$$subs.sed <<_ACEOF
43065 build_cpu!$build_cpu$ac_delim
43066 build_vendor!$build_vendor$ac_delim
43067 build_os!$build_os$ac_delim
43068 host!$host$ac_delim
43069 host_cpu!$host_cpu$ac_delim
43070 host_vendor!$host_vendor$ac_delim
43071 host_os!$host_os$ac_delim
43072 FGREP!$FGREP$ac_delim
43073 LD!$LD$ac_delim
43074 DUMPBIN!$DUMPBIN$ac_delim
43075 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
43076 NM!$NM$ac_delim
43077 LN_S!$LN_S$ac_delim
43078 OBJDUMP!$OBJDUMP$ac_delim
43079 STRIP!$STRIP$ac_delim
43080 RANLIB!$RANLIB$ac_delim
43081 lt_ECHO!$lt_ECHO$ac_delim
43082 DSYMUTIL!$DSYMUTIL$ac_delim
43083 NMEDIT!$NMEDIT$ac_delim
43084 LIPO!$LIPO$ac_delim
43085 OTOOL!$OTOOL$ac_delim
43086 OTOOL64!$OTOOL64$ac_delim
43087 CXXCPP!$CXXCPP$ac_delim
43088 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
43089 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
43090 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
43091 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
43092 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
43093 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
43094 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
43095 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
43096 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
43097 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
43098 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
43099 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
43100 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
43101 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
43102 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
43103 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
43104 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
43105 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
43106 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
43107 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
43108 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
43109 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
43110 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
43111 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
43112 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
43113 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
43114 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
43115 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
43116 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
43117 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
43118 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
43119 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
43120 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
43121 SET_MAKE!$SET_MAKE$ac_delim
43122 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
43123 USE_NLS!$USE_NLS$ac_delim
43124 MSGFMT!$MSGFMT$ac_delim
43125 GMSGFMT!$GMSGFMT$ac_delim
43126 XGETTEXT!$XGETTEXT$ac_delim
43127 MSGMERGE!$MSGMERGE$ac_delim
43128 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
43129 LIBICONV!$LIBICONV$ac_delim
43130 LTLIBICONV!$LTLIBICONV$ac_delim
43131 INTLLIBS!$INTLLIBS$ac_delim
43132 LIBINTL!$LIBINTL$ac_delim
43133 LTLIBINTL!$LTLIBINTL$ac_delim
43134 POSUB!$POSUB$ac_delim
43135 GLIBC2!$GLIBC2$ac_delim
43136 ALLOCA!$ALLOCA$ac_delim
43137 GLIBC21!$GLIBC21$ac_delim
43138 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
43139 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
43140 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
43141 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
43142 INTLBISON!$INTLBISON$ac_delim
43143 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
43144 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
43145 CATOBJEXT!$CATOBJEXT$ac_delim
43146 DATADIRNAME!$DATADIRNAME$ac_delim
43147 INSTOBJEXT!$INSTOBJEXT$ac_delim
43148 GENCAT!$GENCAT$ac_delim
43149 INTLOBJS!$INTLOBJS$ac_delim
43150 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
43151 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
43152 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
43153 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
43154 GNOME_LIBS!$GNOME_LIBS$ac_delim
43155 GNOME_DIR!$GNOME_DIR$ac_delim
43156 BAT_DIR!$BAT_DIR$ac_delim
43157 QWT_INC!$QWT_INC$ac_delim
43158 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
43159 QWT_LIB!$QWT_LIB$ac_delim
43160 QWT!$QWT$ac_delim
43161 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
43162 _ACEOF
43163
43164   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43165     break
43166   elif $ac_last_try; then
43167     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43168 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43169    { (exit 1); exit 1; }; }
43170   else
43171     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43172   fi
43173 done
43174
43175 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43176 if test -n "$ac_eof"; then
43177   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43178   ac_eof=`expr $ac_eof + 1`
43179 fi
43180
43181 cat >>$CONFIG_STATUS <<_ACEOF
43182 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43184 _ACEOF
43185 sed '
43186 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43187 s/^/s,@/; s/!/@,|#_!!_#|/
43188 :n
43189 t n
43190 s/'"$ac_delim"'$/,g/; t
43191 s/$/\\/; p
43192 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43193 ' >>$CONFIG_STATUS <conf$$subs.sed
43194 rm -f conf$$subs.sed
43195 cat >>$CONFIG_STATUS <<_ACEOF
43196 CEOF$ac_eof
43197 _ACEOF
43198
43199
43200 ac_delim='%!_!# '
43201 for ac_last_try in false false false false false :; do
43202   cat >conf$$subs.sed <<_ACEOF
43203 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
43204 WX_DIR!$WX_DIR$ac_delim
43205 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
43206 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
43207 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
43208 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
43209 STATIC_FD!$STATIC_FD$ac_delim
43210 STATIC_SD!$STATIC_SD$ac_delim
43211 STATIC_DIR!$STATIC_DIR$ac_delim
43212 STATIC_CONS!$STATIC_CONS$ac_delim
43213 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
43214 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
43215 ALL_DIRS!$ALL_DIRS$ac_delim
43216 DIRD_DIR!$DIRD_DIR$ac_delim
43217 DIR_TOOLS!$DIR_TOOLS$ac_delim
43218 STORED_DIR!$STORED_DIR$ac_delim
43219 CONS_INC!$CONS_INC$ac_delim
43220 CONS_OBJ!$CONS_OBJ$ac_delim
43221 CONS_SRC!$CONS_SRC$ac_delim
43222 CONS_LIBS!$CONS_LIBS$ac_delim
43223 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
43224 READLINE_SRC!$READLINE_SRC$ac_delim
43225 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
43226 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
43227 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
43228 OPENSSL_INC!$OPENSSL_INC$ac_delim
43229 working_dir!$working_dir$ac_delim
43230 archivedir!$archivedir$ac_delim
43231 scriptdir!$scriptdir$ac_delim
43232 plugindir!$plugindir$ac_delim
43233 dump_email!$dump_email$ac_delim
43234 job_email!$job_email$ac_delim
43235 smtp_host!$smtp_host$ac_delim
43236 piddir!$piddir$ac_delim
43237 subsysdir!$subsysdir$ac_delim
43238 baseport!$baseport$ac_delim
43239 dir_port!$dir_port$ac_delim
43240 fd_port!$fd_port$ac_delim
43241 sd_port!$sd_port$ac_delim
43242 dir_password!$dir_password$ac_delim
43243 fd_password!$fd_password$ac_delim
43244 sd_password!$sd_password$ac_delim
43245 mon_dir_password!$mon_dir_password$ac_delim
43246 mon_fd_password!$mon_fd_password$ac_delim
43247 mon_sd_password!$mon_sd_password$ac_delim
43248 db_name!$db_name$ac_delim
43249 db_user!$db_user$ac_delim
43250 db_password!$db_password$ac_delim
43251 db_port!$db_port$ac_delim
43252 dir_user!$dir_user$ac_delim
43253 dir_group!$dir_group$ac_delim
43254 sd_user!$sd_user$ac_delim
43255 sd_group!$sd_group$ac_delim
43256 fd_user!$fd_user$ac_delim
43257 fd_group!$fd_group$ac_delim
43258 SBINPERM!$SBINPERM$ac_delim
43259 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
43260 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
43261 SQL_BINDIR!$SQL_BINDIR$ac_delim
43262 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
43263 uncomment_dbi!$uncomment_dbi$ac_delim
43264 DB_PROG!$DB_PROG$ac_delim
43265 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
43266 cats!$cats$ac_delim
43267 DB_TYPE!$DB_TYPE$ac_delim
43268 GETCONF!$GETCONF$ac_delim
43269 XMKMF!$XMKMF$ac_delim
43270 X_CFLAGS!$X_CFLAGS$ac_delim
43271 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
43272 X_LIBS!$X_LIBS$ac_delim
43273 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
43274 LIBOBJS!$LIBOBJS$ac_delim
43275 FDLIBS!$FDLIBS$ac_delim
43276 DEBUG!$DEBUG$ac_delim
43277 DINCLUDE!$DINCLUDE$ac_delim
43278 DLIB!$DLIB$ac_delim
43279 DB_LIBS!$DB_LIBS$ac_delim
43280 WCFLAGS!$WCFLAGS$ac_delim
43281 WLDFLAGS!$WLDFLAGS$ac_delim
43282 WRAPLIBS!$WRAPLIBS$ac_delim
43283 OBJLIST!$OBJLIST$ac_delim
43284 hostname!$hostname$ac_delim
43285 TAPEDRIVE!$TAPEDRIVE$ac_delim
43286 PSCMD!$PSCMD$ac_delim
43287 WIN32!$WIN32$ac_delim
43288 MACOSX!$MACOSX$ac_delim
43289 DISTNAME!$DISTNAME$ac_delim
43290 DISTVER!$DISTVER$ac_delim
43291 LTLIBOBJS!$LTLIBOBJS$ac_delim
43292 _ACEOF
43293
43294   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
43295     break
43296   elif $ac_last_try; then
43297     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43298 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43299    { (exit 1); exit 1; }; }
43300   else
43301     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43302   fi
43303 done
43304
43305 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43306 if test -n "$ac_eof"; then
43307   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43308   ac_eof=`expr $ac_eof + 1`
43309 fi
43310
43311 cat >>$CONFIG_STATUS <<_ACEOF
43312 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
43313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43314 _ACEOF
43315 sed '
43316 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43317 s/^/s,@/; s/!/@,|#_!!_#|/
43318 :n
43319 t n
43320 s/'"$ac_delim"'$/,g/; t
43321 s/$/\\/; p
43322 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43323 ' >>$CONFIG_STATUS <conf$$subs.sed
43324 rm -f conf$$subs.sed
43325 cat >>$CONFIG_STATUS <<_ACEOF
43326 :end
43327 s/|#_!!_#|//g
43328 CEOF$ac_eof
43329 _ACEOF
43330
43331
43332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43334 # trailing colons and then remove the whole line if VPATH becomes empty
43335 # (actually we leave an empty line to preserve line numbers).
43336 if test "x$srcdir" = x.; then
43337   ac_vpsub='/^[  ]*VPATH[        ]*=/{
43338 s/:*\$(srcdir):*/:/
43339 s/:*\${srcdir}:*/:/
43340 s/:*@srcdir@:*/:/
43341 s/^\([^=]*=[     ]*\):*/\1/
43342 s/:*$//
43343 s/^[^=]*=[       ]*$//
43344 }'
43345 fi
43346
43347 cat >>$CONFIG_STATUS <<\_ACEOF
43348 fi # test -n "$CONFIG_FILES"
43349
43350
43351 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
43352 do
43353   case $ac_tag in
43354   :[FHLC]) ac_mode=$ac_tag; continue;;
43355   esac
43356   case $ac_mode$ac_tag in
43357   :[FHL]*:*);;
43358   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43359 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43360    { (exit 1); exit 1; }; };;
43361   :[FH]-) ac_tag=-:-;;
43362   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43363   esac
43364   ac_save_IFS=$IFS
43365   IFS=:
43366   set x $ac_tag
43367   IFS=$ac_save_IFS
43368   shift
43369   ac_file=$1
43370   shift
43371
43372   case $ac_mode in
43373   :L) ac_source=$1;;
43374   :[FH])
43375     ac_file_inputs=
43376     for ac_f
43377     do
43378       case $ac_f in
43379       -) ac_f="$tmp/stdin";;
43380       *) # Look for the file first in the build tree, then in the source tree
43381          # (if the path is not absolute).  The absolute path cannot be DOS-style,
43382          # because $ac_f cannot contain `:'.
43383          test -f "$ac_f" ||
43384            case $ac_f in
43385            [\\/$]*) false;;
43386            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43387            esac ||
43388            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43389 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43390    { (exit 1); exit 1; }; };;
43391       esac
43392       ac_file_inputs="$ac_file_inputs $ac_f"
43393     done
43394
43395     # Let's still pretend it is `configure' which instantiates (i.e., don't
43396     # use $as_me), people would be surprised to read:
43397     #    /* config.h.  Generated by config.status.  */
43398     configure_input="Generated from "`IFS=:
43399           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
43400     if test x"$ac_file" != x-; then
43401       configure_input="$ac_file.  $configure_input"
43402       { echo "$as_me:$LINENO: creating $ac_file" >&5
43403 echo "$as_me: creating $ac_file" >&6;}
43404     fi
43405
43406     case $ac_tag in
43407     *:-:* | *:-) cat >"$tmp/stdin";;
43408     esac
43409     ;;
43410   esac
43411
43412   ac_dir=`$as_dirname -- "$ac_file" ||
43413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43414          X"$ac_file" : 'X\(//\)[^/]' \| \
43415          X"$ac_file" : 'X\(//\)$' \| \
43416          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43417 echo X"$ac_file" |
43418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43419             s//\1/
43420             q
43421           }
43422           /^X\(\/\/\)[^/].*/{
43423             s//\1/
43424             q
43425           }
43426           /^X\(\/\/\)$/{
43427             s//\1/
43428             q
43429           }
43430           /^X\(\/\).*/{
43431             s//\1/
43432             q
43433           }
43434           s/.*/./; q'`
43435   { as_dir="$ac_dir"
43436   case $as_dir in #(
43437   -*) as_dir=./$as_dir;;
43438   esac
43439   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43440     as_dirs=
43441     while :; do
43442       case $as_dir in #(
43443       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
43444       *) as_qdir=$as_dir;;
43445       esac
43446       as_dirs="'$as_qdir' $as_dirs"
43447       as_dir=`$as_dirname -- "$as_dir" ||
43448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43449          X"$as_dir" : 'X\(//\)[^/]' \| \
43450          X"$as_dir" : 'X\(//\)$' \| \
43451          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43452 echo X"$as_dir" |
43453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43454             s//\1/
43455             q
43456           }
43457           /^X\(\/\/\)[^/].*/{
43458             s//\1/
43459             q
43460           }
43461           /^X\(\/\/\)$/{
43462             s//\1/
43463             q
43464           }
43465           /^X\(\/\).*/{
43466             s//\1/
43467             q
43468           }
43469           s/.*/./; q'`
43470       test -d "$as_dir" && break
43471     done
43472     test -z "$as_dirs" || eval "mkdir $as_dirs"
43473   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43474 echo "$as_me: error: cannot create directory $as_dir" >&2;}
43475    { (exit 1); exit 1; }; }; }
43476   ac_builddir=.
43477
43478 case "$ac_dir" in
43479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43480 *)
43481   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43482   # A ".." for each directory in $ac_dir_suffix.
43483   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
43484   case $ac_top_builddir_sub in
43485   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43486   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43487   esac ;;
43488 esac
43489 ac_abs_top_builddir=$ac_pwd
43490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43491 # for backward compatibility:
43492 ac_top_builddir=$ac_top_build_prefix
43493
43494 case $srcdir in
43495   .)  # We are building in place.
43496     ac_srcdir=.
43497     ac_top_srcdir=$ac_top_builddir_sub
43498     ac_abs_top_srcdir=$ac_pwd ;;
43499   [\\/]* | ?:[\\/]* )  # Absolute name.
43500     ac_srcdir=$srcdir$ac_dir_suffix;
43501     ac_top_srcdir=$srcdir
43502     ac_abs_top_srcdir=$srcdir ;;
43503   *) # Relative name.
43504     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43505     ac_top_srcdir=$ac_top_build_prefix$srcdir
43506     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43507 esac
43508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43509
43510
43511   case $ac_mode in
43512   :F)
43513   #
43514   # CONFIG_FILE
43515   #
43516
43517   case $INSTALL in
43518   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43519   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43520   esac
43521 _ACEOF
43522
43523 cat >>$CONFIG_STATUS <<\_ACEOF
43524 # If the template does not know about datarootdir, expand it.
43525 # FIXME: This hack should be removed a few years after 2.60.
43526 ac_datarootdir_hack=; ac_datarootdir_seen=
43527
43528 case `sed -n '/datarootdir/ {
43529   p
43530   q
43531 }
43532 /@datadir@/p
43533 /@docdir@/p
43534 /@infodir@/p
43535 /@localedir@/p
43536 /@mandir@/p
43537 ' $ac_file_inputs` in
43538 *datarootdir*) ac_datarootdir_seen=yes;;
43539 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43540   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43541 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43542 _ACEOF
43543 cat >>$CONFIG_STATUS <<_ACEOF
43544   ac_datarootdir_hack='
43545   s&@datadir@&$datadir&g
43546   s&@docdir@&$docdir&g
43547   s&@infodir@&$infodir&g
43548   s&@localedir@&$localedir&g
43549   s&@mandir@&$mandir&g
43550     s&\\\${datarootdir}&$datarootdir&g' ;;
43551 esac
43552 _ACEOF
43553
43554 # Neutralize VPATH when `$srcdir' = `.'.
43555 # Shell code in configure.ac might set extrasub.
43556 # FIXME: do we really want to maintain this feature?
43557 cat >>$CONFIG_STATUS <<_ACEOF
43558   sed "$ac_vpsub
43559 $extrasub
43560 _ACEOF
43561 cat >>$CONFIG_STATUS <<\_ACEOF
43562 :t
43563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43564 s&@configure_input@&$configure_input&;t t
43565 s&@top_builddir@&$ac_top_builddir_sub&;t t
43566 s&@srcdir@&$ac_srcdir&;t t
43567 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43568 s&@top_srcdir@&$ac_top_srcdir&;t t
43569 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43570 s&@builddir@&$ac_builddir&;t t
43571 s&@abs_builddir@&$ac_abs_builddir&;t t
43572 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43573 s&@INSTALL@&$ac_INSTALL&;t t
43574 $ac_datarootdir_hack
43575 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
43576
43577 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43578   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43579   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43580   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43581 which seems to be undefined.  Please make sure it is defined." >&5
43582 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43583 which seems to be undefined.  Please make sure it is defined." >&2;}
43584
43585   rm -f "$tmp/stdin"
43586   case $ac_file in
43587   -) cat "$tmp/out"; rm -f "$tmp/out";;
43588   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43589   esac
43590  ;;
43591   :H)
43592   #
43593   # CONFIG_HEADER
43594   #
43595 _ACEOF
43596
43597 # Transform confdefs.h into a sed script `conftest.defines', that
43598 # substitutes the proper values into config.h.in to produce config.h.
43599 rm -f conftest.defines conftest.tail
43600 # First, append a space to every undef/define line, to ease matching.
43601 echo 's/$/ /' >conftest.defines
43602 # Then, protect against being on the right side of a sed subst, or in
43603 # an unquoted here document, in config.status.  If some macros were
43604 # called several times there might be several #defines for the same
43605 # symbol, which is useless.  But do not sort them, since the last
43606 # AC_DEFINE must be honored.
43607 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43608 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43609 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43610 # PARAMS is the parameter list in the macro definition--in most cases, it's
43611 # just an empty string.
43612 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
43613 ac_dB='\\)[      (].*,\\1define\\2'
43614 ac_dC=' '
43615 ac_dD=' ,'
43616
43617 uniq confdefs.h |
43618   sed -n '
43619         t rset
43620         :rset
43621         s/^[     ]*#[    ]*define[       ][      ]*//
43622         t ok
43623         d
43624         :ok
43625         s/[\\&,]/\\&/g
43626         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43627         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43628   ' >>conftest.defines
43629
43630 # Remove the space that was appended to ease matching.
43631 # Then replace #undef with comments.  This is necessary, for
43632 # example, in the case of _POSIX_SOURCE, which is predefined and required
43633 # on some systems where configure will not decide to define it.
43634 # (The regexp can be short, since the line contains either #define or #undef.)
43635 echo 's/ $//
43636 s,^[     #]*u.*,/* & */,' >>conftest.defines
43637
43638 # Break up conftest.defines:
43639 ac_max_sed_lines=50
43640
43641 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43642 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43643 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43644 # et cetera.
43645 ac_in='$ac_file_inputs'
43646 ac_out='"$tmp/out1"'
43647 ac_nxt='"$tmp/out2"'
43648
43649 while :
43650 do
43651   # Write a here document:
43652     cat >>$CONFIG_STATUS <<_ACEOF
43653     # First, check the format of the line:
43654     cat >"\$tmp/defines.sed" <<\\CEOF
43655 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
43656 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
43657 b
43658 :def
43659 _ACEOF
43660   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43661   echo 'CEOF
43662     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43663   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43664   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43665   grep . conftest.tail >/dev/null || break
43666   rm -f conftest.defines
43667   mv conftest.tail conftest.defines
43668 done
43669 rm -f conftest.defines conftest.tail
43670
43671 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43672 cat >>$CONFIG_STATUS <<\_ACEOF
43673   if test x"$ac_file" != x-; then
43674     echo "/* $configure_input  */" >"$tmp/config.h"
43675     cat "$ac_result" >>"$tmp/config.h"
43676     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43677       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43678 echo "$as_me: $ac_file is unchanged" >&6;}
43679     else
43680       rm -f $ac_file
43681       mv "$tmp/config.h" $ac_file
43682     fi
43683   else
43684     echo "/* $configure_input  */"
43685     cat "$ac_result"
43686   fi
43687   rm -f "$tmp/out12"
43688  ;;
43689
43690   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43691 echo "$as_me: executing $ac_file commands" >&6;}
43692  ;;
43693   esac
43694
43695
43696   case $ac_file$ac_mode in
43697     "libtool":C)
43698
43699     # See if we are running on zsh, and set the options which allow our
43700     # commands through without removal of \ escapes.
43701     if test -n "${ZSH_VERSION+set}" ; then
43702       setopt NO_GLOB_SUBST
43703     fi
43704
43705     cfgfile="${ofile}T"
43706     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43707     $RM "$cfgfile"
43708
43709     cat <<_LT_EOF >> "$cfgfile"
43710 #! $SHELL
43711
43712 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43713 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43714 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43715 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43716 #
43717 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43718 #                 2006, 2007, 2008 Free Software Foundation, Inc.
43719 #   Written by Gordon Matzigkeit, 1996
43720 #
43721 #   This file is part of GNU Libtool.
43722 #
43723 # GNU Libtool is free software; you can redistribute it and/or
43724 # modify it under the terms of the GNU General Public License as
43725 # published by the Free Software Foundation; either version 2 of
43726 # the License, or (at your option) any later version.
43727 #
43728 # As a special exception to the GNU General Public License,
43729 # if you distribute this file as part of a program or library that
43730 # is built using GNU Libtool, you may include this file under the
43731 # same distribution terms that you use for the rest of that program.
43732 #
43733 # GNU Libtool is distributed in the hope that it will be useful,
43734 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43735 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43736 # GNU General Public License for more details.
43737 #
43738 # You should have received a copy of the GNU General Public License
43739 # along with GNU Libtool; see the file COPYING.  If not, a copy
43740 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43741 # obtained by writing to the Free Software Foundation, Inc.,
43742 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43743
43744
43745 # The names of the tagged configurations supported by this script.
43746 available_tags="CXX "
43747
43748 # ### BEGIN LIBTOOL CONFIG
43749
43750 # Which release of libtool.m4 was used?
43751 macro_version=$macro_version
43752 macro_revision=$macro_revision
43753
43754 # Whether or not to build shared libraries.
43755 build_libtool_libs=$enable_shared
43756
43757 # Whether or not to build static libraries.
43758 build_old_libs=$enable_static
43759
43760 # What type of objects to build.
43761 pic_mode=$pic_mode
43762
43763 # Whether or not to optimize for fast installation.
43764 fast_install=$enable_fast_install
43765
43766 # The host system.
43767 host_alias=$host_alias
43768 host=$host
43769 host_os=$host_os
43770
43771 # The build system.
43772 build_alias=$build_alias
43773 build=$build
43774 build_os=$build_os
43775
43776 # A sed program that does not truncate output.
43777 SED=$lt_SED
43778
43779 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43780 Xsed="\$SED -e 1s/^X//"
43781
43782 # A grep program that handles long lines.
43783 GREP=$lt_GREP
43784
43785 # An ERE matcher.
43786 EGREP=$lt_EGREP
43787
43788 # A literal string matcher.
43789 FGREP=$lt_FGREP
43790
43791 # A BSD- or MS-compatible name lister.
43792 NM=$lt_NM
43793
43794 # Whether we need soft or hard links.
43795 LN_S=$lt_LN_S
43796
43797 # What is the maximum length of a command?
43798 max_cmd_len=$max_cmd_len
43799
43800 # Object file suffix (normally "o").
43801 objext=$ac_objext
43802
43803 # Executable file suffix (normally "").
43804 exeext=$exeext
43805
43806 # whether the shell understands "unset".
43807 lt_unset=$lt_unset
43808
43809 # turn spaces into newlines.
43810 SP2NL=$lt_lt_SP2NL
43811
43812 # turn newlines into spaces.
43813 NL2SP=$lt_lt_NL2SP
43814
43815 # How to create reloadable object files.
43816 reload_flag=$lt_reload_flag
43817 reload_cmds=$lt_reload_cmds
43818
43819 # An object symbol dumper.
43820 OBJDUMP=$lt_OBJDUMP
43821
43822 # Method to check whether dependent libraries are shared objects.
43823 deplibs_check_method=$lt_deplibs_check_method
43824
43825 # Command to use when deplibs_check_method == "file_magic".
43826 file_magic_cmd=$lt_file_magic_cmd
43827
43828 # The archiver.
43829 AR=$lt_AR
43830 AR_FLAGS=$lt_AR_FLAGS
43831
43832 # A symbol stripping program.
43833 STRIP=$lt_STRIP
43834
43835 # Commands used to install an old-style archive.
43836 RANLIB=$lt_RANLIB
43837 old_postinstall_cmds=$lt_old_postinstall_cmds
43838 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43839
43840 # A C compiler.
43841 LTCC=$lt_CC
43842
43843 # LTCC compiler flags.
43844 LTCFLAGS=$lt_CFLAGS
43845
43846 # Take the output of nm and produce a listing of raw symbols and C names.
43847 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43848
43849 # Transform the output of nm in a proper C declaration.
43850 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43851
43852 # Transform the output of nm in a C name address pair.
43853 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43854
43855 # Transform the output of nm in a C name address pair when lib prefix is needed.
43856 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43857
43858 # The name of the directory that contains temporary libtool files.
43859 objdir=$objdir
43860
43861 # Shell to use when invoking shell scripts.
43862 SHELL=$lt_SHELL
43863
43864 # An echo program that does not interpret backslashes.
43865 ECHO=$lt_ECHO
43866
43867 # Used to examine libraries when file_magic_cmd begins with "file".
43868 MAGIC_CMD=$MAGIC_CMD
43869
43870 # Must we lock files when doing compilation?
43871 need_locks=$lt_need_locks
43872
43873 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43874 DSYMUTIL=$lt_DSYMUTIL
43875
43876 # Tool to change global to local symbols on Mac OS X.
43877 NMEDIT=$lt_NMEDIT
43878
43879 # Tool to manipulate fat objects and archives on Mac OS X.
43880 LIPO=$lt_LIPO
43881
43882 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43883 OTOOL=$lt_OTOOL
43884
43885 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43886 OTOOL64=$lt_OTOOL64
43887
43888 # Old archive suffix (normally "a").
43889 libext=$libext
43890
43891 # Shared library suffix (normally ".so").
43892 shrext_cmds=$lt_shrext_cmds
43893
43894 # The commands to extract the exported symbol list from a shared archive.
43895 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43896
43897 # Variables whose values should be saved in libtool wrapper scripts and
43898 # restored at link time.
43899 variables_saved_for_relink=$lt_variables_saved_for_relink
43900
43901 # Do we need the "lib" prefix for modules?
43902 need_lib_prefix=$need_lib_prefix
43903
43904 # Do we need a version for libraries?
43905 need_version=$need_version
43906
43907 # Library versioning type.
43908 version_type=$version_type
43909
43910 # Shared library runtime path variable.
43911 runpath_var=$runpath_var
43912
43913 # Shared library path variable.
43914 shlibpath_var=$shlibpath_var
43915
43916 # Is shlibpath searched before the hard-coded library search path?
43917 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43918
43919 # Format of library name prefix.
43920 libname_spec=$lt_libname_spec
43921
43922 # List of archive names.  First name is the real one, the rest are links.
43923 # The last name is the one that the linker finds with -lNAME
43924 library_names_spec=$lt_library_names_spec
43925
43926 # The coded name of the library, if different from the real name.
43927 soname_spec=$lt_soname_spec
43928
43929 # Command to use after installation of a shared archive.
43930 postinstall_cmds=$lt_postinstall_cmds
43931
43932 # Command to use after uninstallation of a shared archive.
43933 postuninstall_cmds=$lt_postuninstall_cmds
43934
43935 # Commands used to finish a libtool library installation in a directory.
43936 finish_cmds=$lt_finish_cmds
43937
43938 # As "finish_cmds", except a single script fragment to be evaled but
43939 # not shown.
43940 finish_eval=$lt_finish_eval
43941
43942 # Whether we should hardcode library paths into libraries.
43943 hardcode_into_libs=$hardcode_into_libs
43944
43945 # Compile-time system search path for libraries.
43946 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43947
43948 # Run-time system search path for libraries.
43949 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43950
43951 # Whether dlopen is supported.
43952 dlopen_support=$enable_dlopen
43953
43954 # Whether dlopen of programs is supported.
43955 dlopen_self=$enable_dlopen_self
43956
43957 # Whether dlopen of statically linked programs is supported.
43958 dlopen_self_static=$enable_dlopen_self_static
43959
43960 # Commands to strip libraries.
43961 old_striplib=$lt_old_striplib
43962 striplib=$lt_striplib
43963
43964
43965 # The linker used to build libraries.
43966 LD=$lt_LD
43967
43968 # Commands used to build an old-style archive.
43969 old_archive_cmds=$lt_old_archive_cmds
43970
43971 # A language specific compiler.
43972 CC=$lt_compiler
43973
43974 # Is the compiler the GNU compiler?
43975 with_gcc=$GCC
43976
43977 # Compiler flag to turn off builtin functions.
43978 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43979
43980 # How to pass a linker flag through the compiler.
43981 wl=$lt_lt_prog_compiler_wl
43982
43983 # Additional compiler flags for building library objects.
43984 pic_flag=$lt_lt_prog_compiler_pic
43985
43986 # Compiler flag to prevent dynamic linking.
43987 link_static_flag=$lt_lt_prog_compiler_static
43988
43989 # Does compiler simultaneously support -c and -o options?
43990 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43991
43992 # Whether or not to add -lc for building shared libraries.
43993 build_libtool_need_lc=$archive_cmds_need_lc
43994
43995 # Whether or not to disallow shared libs when runtime libs are static.
43996 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43997
43998 # Compiler flag to allow reflexive dlopens.
43999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
44000
44001 # Compiler flag to generate shared objects directly from archives.
44002 whole_archive_flag_spec=$lt_whole_archive_flag_spec
44003
44004 # Whether the compiler copes with passing no objects directly.
44005 compiler_needs_object=$lt_compiler_needs_object
44006
44007 # Create an old-style archive from a shared archive.
44008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
44009
44010 # Create a temporary old-style archive to link instead of a shared archive.
44011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
44012
44013 # Commands used to build a shared archive.
44014 archive_cmds=$lt_archive_cmds
44015 archive_expsym_cmds=$lt_archive_expsym_cmds
44016
44017 # Commands used to build a loadable module if different from building
44018 # a shared archive.
44019 module_cmds=$lt_module_cmds
44020 module_expsym_cmds=$lt_module_expsym_cmds
44021
44022 # Whether we are building with GNU ld or not.
44023 with_gnu_ld=$lt_with_gnu_ld
44024
44025 # Flag that allows shared libraries with undefined symbols to be built.
44026 allow_undefined_flag=$lt_allow_undefined_flag
44027
44028 # Flag that enforces no undefined symbols.
44029 no_undefined_flag=$lt_no_undefined_flag
44030
44031 # Flag to hardcode \$libdir into a binary during linking.
44032 # This must work even if \$libdir does not exist
44033 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44034
44035 # If ld is used when linking, flag to hardcode \$libdir into a binary
44036 # during linking.  This must work even if \$libdir does not exist.
44037 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
44038
44039 # Whether we need a single "-rpath" flag with a separated argument.
44040 hardcode_libdir_separator=$lt_hardcode_libdir_separator
44041
44042 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44043 # DIR into the resulting binary.
44044 hardcode_direct=$hardcode_direct
44045
44046 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44047 # DIR into the resulting binary and the resulting library dependency is
44048 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44049 # library is relocated.
44050 hardcode_direct_absolute=$hardcode_direct_absolute
44051
44052 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44053 # into the resulting binary.
44054 hardcode_minus_L=$hardcode_minus_L
44055
44056 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44057 # into the resulting binary.
44058 hardcode_shlibpath_var=$hardcode_shlibpath_var
44059
44060 # Set to "yes" if building a shared library automatically hardcodes DIR
44061 # into the library and all subsequent libraries and executables linked
44062 # against it.
44063 hardcode_automatic=$hardcode_automatic
44064
44065 # Set to yes if linker adds runtime paths of dependent libraries
44066 # to runtime path list.
44067 inherit_rpath=$inherit_rpath
44068
44069 # Whether libtool must link a program against all its dependency libraries.
44070 link_all_deplibs=$link_all_deplibs
44071
44072 # Fix the shell variable \$srcfile for the compiler.
44073 fix_srcfile_path=$lt_fix_srcfile_path
44074
44075 # Set to "yes" if exported symbols are required.
44076 always_export_symbols=$always_export_symbols
44077
44078 # The commands to list exported symbols.
44079 export_symbols_cmds=$lt_export_symbols_cmds
44080
44081 # Symbols that should not be listed in the preloaded symbols.
44082 exclude_expsyms=$lt_exclude_expsyms
44083
44084 # Symbols that must always be exported.
44085 include_expsyms=$lt_include_expsyms
44086
44087 # Commands necessary for linking programs (against libraries) with templates.
44088 prelink_cmds=$lt_prelink_cmds
44089
44090 # Specify filename containing input files.
44091 file_list_spec=$lt_file_list_spec
44092
44093 # How to hardcode a shared library path into an executable.
44094 hardcode_action=$hardcode_action
44095
44096 # The directories searched by this compiler when creating a shared library.
44097 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
44098
44099 # Dependencies to place before and after the objects being linked to
44100 # create a shared library.
44101 predep_objects=$lt_predep_objects
44102 postdep_objects=$lt_postdep_objects
44103 predeps=$lt_predeps
44104 postdeps=$lt_postdeps
44105
44106 # The library search path used internally by the compiler when linking
44107 # a shared library.
44108 compiler_lib_search_path=$lt_compiler_lib_search_path
44109
44110 # ### END LIBTOOL CONFIG
44111
44112 _LT_EOF
44113
44114   case $host_os in
44115   aix3*)
44116     cat <<\_LT_EOF >> "$cfgfile"
44117 # AIX sometimes has problems with the GCC collect2 program.  For some
44118 # reason, if we set the COLLECT_NAMES environment variable, the problems
44119 # vanish in a puff of smoke.
44120 if test "X${COLLECT_NAMES+set}" != Xset; then
44121   COLLECT_NAMES=
44122   export COLLECT_NAMES
44123 fi
44124 _LT_EOF
44125     ;;
44126   esac
44127
44128
44129 ltmain="$ac_aux_dir/ltmain.sh"
44130
44131
44132   # We use sed instead of cat because bash on DJGPP gets confused if
44133   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
44134   # text mode, it properly converts lines to CR/LF.  This bash problem
44135   # is reportedly fixed, but why not run on old versions too?
44136   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
44137     || (rm -f "$cfgfile"; exit 1)
44138
44139   case $xsi_shell in
44140   yes)
44141     cat << \_LT_EOF >> "$cfgfile"
44142
44143 # func_dirname file append nondir_replacement
44144 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
44145 # otherwise set result to NONDIR_REPLACEMENT.
44146 func_dirname ()
44147 {
44148   case ${1} in
44149     */*) func_dirname_result="${1%/*}${2}" ;;
44150     *  ) func_dirname_result="${3}" ;;
44151   esac
44152 }
44153
44154 # func_basename file
44155 func_basename ()
44156 {
44157   func_basename_result="${1##*/}"
44158 }
44159
44160 # func_dirname_and_basename file append nondir_replacement
44161 # perform func_basename and func_dirname in a single function
44162 # call:
44163 #   dirname:  Compute the dirname of FILE.  If nonempty,
44164 #             add APPEND to the result, otherwise set result
44165 #             to NONDIR_REPLACEMENT.
44166 #             value returned in "$func_dirname_result"
44167 #   basename: Compute filename of FILE.
44168 #             value retuned in "$func_basename_result"
44169 # Implementation must be kept synchronized with func_dirname
44170 # and func_basename. For efficiency, we do not delegate to
44171 # those functions but instead duplicate the functionality here.
44172 func_dirname_and_basename ()
44173 {
44174   case ${1} in
44175     */*) func_dirname_result="${1%/*}${2}" ;;
44176     *  ) func_dirname_result="${3}" ;;
44177   esac
44178   func_basename_result="${1##*/}"
44179 }
44180
44181 # func_stripname prefix suffix name
44182 # strip PREFIX and SUFFIX off of NAME.
44183 # PREFIX and SUFFIX must not contain globbing or regex special
44184 # characters, hashes, percent signs, but SUFFIX may contain a leading
44185 # dot (in which case that matches only a dot).
44186 func_stripname ()
44187 {
44188   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
44189   # positional parameters, so assign one to ordinary parameter first.
44190   func_stripname_result=${3}
44191   func_stripname_result=${func_stripname_result#"${1}"}
44192   func_stripname_result=${func_stripname_result%"${2}"}
44193 }
44194
44195 # func_opt_split
44196 func_opt_split ()
44197 {
44198   func_opt_split_opt=${1%%=*}
44199   func_opt_split_arg=${1#*=}
44200 }
44201
44202 # func_lo2o object
44203 func_lo2o ()
44204 {
44205   case ${1} in
44206     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
44207     *)    func_lo2o_result=${1} ;;
44208   esac
44209 }
44210
44211 # func_xform libobj-or-source
44212 func_xform ()
44213 {
44214   func_xform_result=${1%.*}.lo
44215 }
44216
44217 # func_arith arithmetic-term...
44218 func_arith ()
44219 {
44220   func_arith_result=$(( $* ))
44221 }
44222
44223 # func_len string
44224 # STRING may not start with a hyphen.
44225 func_len ()
44226 {
44227   func_len_result=${#1}
44228 }
44229
44230 _LT_EOF
44231     ;;
44232   *) # Bourne compatible functions.
44233     cat << \_LT_EOF >> "$cfgfile"
44234
44235 # func_dirname file append nondir_replacement
44236 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
44237 # otherwise set result to NONDIR_REPLACEMENT.
44238 func_dirname ()
44239 {
44240   # Extract subdirectory from the argument.
44241   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
44242   if test "X$func_dirname_result" = "X${1}"; then
44243     func_dirname_result="${3}"
44244   else
44245     func_dirname_result="$func_dirname_result${2}"
44246   fi
44247 }
44248
44249 # func_basename file
44250 func_basename ()
44251 {
44252   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
44253 }
44254
44255
44256 # func_stripname prefix suffix name
44257 # strip PREFIX and SUFFIX off of NAME.
44258 # PREFIX and SUFFIX must not contain globbing or regex special
44259 # characters, hashes, percent signs, but SUFFIX may contain a leading
44260 # dot (in which case that matches only a dot).
44261 # func_strip_suffix prefix name
44262 func_stripname ()
44263 {
44264   case ${2} in
44265     .*) func_stripname_result=`$ECHO "X${3}" \
44266            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
44267     *)  func_stripname_result=`$ECHO "X${3}" \
44268            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
44269   esac
44270 }
44271
44272 # sed scripts:
44273 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
44274 my_sed_long_arg='1s/^-[^=]*=//'
44275
44276 # func_opt_split
44277 func_opt_split ()
44278 {
44279   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
44280   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
44281 }
44282
44283 # func_lo2o object
44284 func_lo2o ()
44285 {
44286   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
44287 }
44288
44289 # func_xform libobj-or-source
44290 func_xform ()
44291 {
44292   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
44293 }
44294
44295 # func_arith arithmetic-term...
44296 func_arith ()
44297 {
44298   func_arith_result=`expr "$@"`
44299 }
44300
44301 # func_len string
44302 # STRING may not start with a hyphen.
44303 func_len ()
44304 {
44305   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
44306 }
44307
44308 _LT_EOF
44309 esac
44310
44311 case $lt_shell_append in
44312   yes)
44313     cat << \_LT_EOF >> "$cfgfile"
44314
44315 # func_append var value
44316 # Append VALUE to the end of shell variable VAR.
44317 func_append ()
44318 {
44319   eval "$1+=\$2"
44320 }
44321 _LT_EOF
44322     ;;
44323   *)
44324     cat << \_LT_EOF >> "$cfgfile"
44325
44326 # func_append var value
44327 # Append VALUE to the end of shell variable VAR.
44328 func_append ()
44329 {
44330   eval "$1=\$$1\$2"
44331 }
44332
44333 _LT_EOF
44334     ;;
44335   esac
44336
44337
44338   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
44339     || (rm -f "$cfgfile"; exit 1)
44340
44341   mv -f "$cfgfile" "$ofile" ||
44342     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44343   chmod +x "$ofile"
44344
44345
44346     cat <<_LT_EOF >> "$ofile"
44347
44348 # ### BEGIN LIBTOOL TAG CONFIG: CXX
44349
44350 # The linker used to build libraries.
44351 LD=$lt_LD_CXX
44352
44353 # Commands used to build an old-style archive.
44354 old_archive_cmds=$lt_old_archive_cmds_CXX
44355
44356 # A language specific compiler.
44357 CC=$lt_compiler_CXX
44358
44359 # Is the compiler the GNU compiler?
44360 with_gcc=$GCC_CXX
44361
44362 # Compiler flag to turn off builtin functions.
44363 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
44364
44365 # How to pass a linker flag through the compiler.
44366 wl=$lt_lt_prog_compiler_wl_CXX
44367
44368 # Additional compiler flags for building library objects.
44369 pic_flag=$lt_lt_prog_compiler_pic_CXX
44370
44371 # Compiler flag to prevent dynamic linking.
44372 link_static_flag=$lt_lt_prog_compiler_static_CXX
44373
44374 # Does compiler simultaneously support -c and -o options?
44375 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
44376
44377 # Whether or not to add -lc for building shared libraries.
44378 build_libtool_need_lc=$archive_cmds_need_lc_CXX
44379
44380 # Whether or not to disallow shared libs when runtime libs are static.
44381 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
44382
44383 # Compiler flag to allow reflexive dlopens.
44384 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
44385
44386 # Compiler flag to generate shared objects directly from archives.
44387 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
44388
44389 # Whether the compiler copes with passing no objects directly.
44390 compiler_needs_object=$lt_compiler_needs_object_CXX
44391
44392 # Create an old-style archive from a shared archive.
44393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
44394
44395 # Create a temporary old-style archive to link instead of a shared archive.
44396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
44397
44398 # Commands used to build a shared archive.
44399 archive_cmds=$lt_archive_cmds_CXX
44400 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
44401
44402 # Commands used to build a loadable module if different from building
44403 # a shared archive.
44404 module_cmds=$lt_module_cmds_CXX
44405 module_expsym_cmds=$lt_module_expsym_cmds_CXX
44406
44407 # Whether we are building with GNU ld or not.
44408 with_gnu_ld=$lt_with_gnu_ld_CXX
44409
44410 # Flag that allows shared libraries with undefined symbols to be built.
44411 allow_undefined_flag=$lt_allow_undefined_flag_CXX
44412
44413 # Flag that enforces no undefined symbols.
44414 no_undefined_flag=$lt_no_undefined_flag_CXX
44415
44416 # Flag to hardcode \$libdir into a binary during linking.
44417 # This must work even if \$libdir does not exist
44418 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
44419
44420 # If ld is used when linking, flag to hardcode \$libdir into a binary
44421 # during linking.  This must work even if \$libdir does not exist.
44422 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
44423
44424 # Whether we need a single "-rpath" flag with a separated argument.
44425 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
44426
44427 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44428 # DIR into the resulting binary.
44429 hardcode_direct=$hardcode_direct_CXX
44430
44431 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44432 # DIR into the resulting binary and the resulting library dependency is
44433 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44434 # library is relocated.
44435 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
44436
44437 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44438 # into the resulting binary.
44439 hardcode_minus_L=$hardcode_minus_L_CXX
44440
44441 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44442 # into the resulting binary.
44443 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
44444
44445 # Set to "yes" if building a shared library automatically hardcodes DIR
44446 # into the library and all subsequent libraries and executables linked
44447 # against it.
44448 hardcode_automatic=$hardcode_automatic_CXX
44449
44450 # Set to yes if linker adds runtime paths of dependent libraries
44451 # to runtime path list.
44452 inherit_rpath=$inherit_rpath_CXX
44453
44454 # Whether libtool must link a program against all its dependency libraries.
44455 link_all_deplibs=$link_all_deplibs_CXX
44456
44457 # Fix the shell variable \$srcfile for the compiler.
44458 fix_srcfile_path=$lt_fix_srcfile_path_CXX
44459
44460 # Set to "yes" if exported symbols are required.
44461 always_export_symbols=$always_export_symbols_CXX
44462
44463 # The commands to list exported symbols.
44464 export_symbols_cmds=$lt_export_symbols_cmds_CXX
44465
44466 # Symbols that should not be listed in the preloaded symbols.
44467 exclude_expsyms=$lt_exclude_expsyms_CXX
44468
44469 # Symbols that must always be exported.
44470 include_expsyms=$lt_include_expsyms_CXX
44471
44472 # Commands necessary for linking programs (against libraries) with templates.
44473 prelink_cmds=$lt_prelink_cmds_CXX
44474
44475 # Specify filename containing input files.
44476 file_list_spec=$lt_file_list_spec_CXX
44477
44478 # How to hardcode a shared library path into an executable.
44479 hardcode_action=$hardcode_action_CXX
44480
44481 # The directories searched by this compiler when creating a shared library.
44482 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
44483
44484 # Dependencies to place before and after the objects being linked to
44485 # create a shared library.
44486 predep_objects=$lt_predep_objects_CXX
44487 postdep_objects=$lt_postdep_objects_CXX
44488 predeps=$lt_predeps_CXX
44489 postdeps=$lt_postdeps_CXX
44490
44491 # The library search path used internally by the compiler when linking
44492 # a shared library.
44493 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
44494
44495 # ### END LIBTOOL TAG CONFIG: CXX
44496 _LT_EOF
44497
44498  ;;
44499     "default-1":C)
44500     for ac_file in $CONFIG_FILES; do
44501       # Support "outfile[:infile[:infile...]]"
44502       case "$ac_file" in
44503         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44504       esac
44505       # PO directories have a Makefile.in generated from Makefile.in.in.
44506       case "$ac_file" in */Makefile.in)
44507         # Adjust a relative srcdir.
44508         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44509         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44510         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44511         # In autoconf-2.13 it is called $ac_given_srcdir.
44512         # In autoconf-2.50 it is called $srcdir.
44513         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44514         case "$ac_given_srcdir" in
44515           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44516           /*) top_srcdir="$ac_given_srcdir" ;;
44517           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
44518         esac
44519         # Treat a directory as a PO directory if and only if it has a
44520         # POTFILES.in file. This allows packages to have multiple PO
44521         # directories under different names or in different locations.
44522         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44523           rm -f "$ac_dir/POTFILES"
44524           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44525           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44526           POMAKEFILEDEPS="POTFILES.in"
44527           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44528           # on $ac_dir but don't depend on user-specified configuration
44529           # parameters.
44530           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44531             # The LINGUAS file contains the set of available languages.
44532             if test -n "$OBSOLETE_ALL_LINGUAS"; then
44533               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44534             fi
44535             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44536             # Hide the ALL_LINGUAS assigment from automake.
44537             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44538             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44539           else
44540             # The set of available languages was given in configure.in.
44541             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44542           fi
44543           # Compute POFILES
44544           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44545           # Compute UPDATEPOFILES
44546           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44547           # Compute DUMMYPOFILES
44548           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44549           # Compute GMOFILES
44550           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44551           case "$ac_given_srcdir" in
44552             .) srcdirpre= ;;
44553             *) srcdirpre='$(srcdir)/' ;;
44554           esac
44555           POFILES=
44556           UPDATEPOFILES=
44557           DUMMYPOFILES=
44558           GMOFILES=
44559           for lang in $ALL_LINGUAS; do
44560             POFILES="$POFILES $srcdirpre$lang.po"
44561             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44562             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44563             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44564           done
44565           # CATALOGS depends on both $ac_dir and the user's LINGUAS
44566           # environment variable.
44567           INST_LINGUAS=
44568           if test -n "$ALL_LINGUAS"; then
44569             for presentlang in $ALL_LINGUAS; do
44570               useit=no
44571               if test "%UNSET%" != "$LINGUAS"; then
44572                 desiredlanguages="$LINGUAS"
44573               else
44574                 desiredlanguages="$ALL_LINGUAS"
44575               fi
44576               for desiredlang in $desiredlanguages; do
44577                 # Use the presentlang catalog if desiredlang is
44578                 #   a. equal to presentlang, or
44579                 #   b. a variant of presentlang (because in this case,
44580                 #      presentlang can be used as a fallback for messages
44581                 #      which are not translated in the desiredlang catalog).
44582                 case "$desiredlang" in
44583                   "$presentlang"*) useit=yes;;
44584                 esac
44585               done
44586               if test $useit = yes; then
44587                 INST_LINGUAS="$INST_LINGUAS $presentlang"
44588               fi
44589             done
44590           fi
44591           CATALOGS=
44592           if test -n "$INST_LINGUAS"; then
44593             for lang in $INST_LINGUAS; do
44594               CATALOGS="$CATALOGS $lang.gmo"
44595             done
44596           fi
44597           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44598           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"
44599           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44600             if test -f "$f"; then
44601               case "$f" in
44602                 *.orig | *.bak | *~) ;;
44603                 *) cat "$f" >> "$ac_dir/Makefile" ;;
44604               esac
44605             fi
44606           done
44607         fi
44608         ;;
44609       esac
44610     done ;;
44611     "default":C)
44612  ;;
44613
44614   esac
44615 done # for ac_tag
44616
44617
44618 { (exit 0); exit 0; }
44619 _ACEOF
44620 chmod +x $CONFIG_STATUS
44621 ac_clean_files=$ac_clean_files_save
44622
44623
44624 # configure is writing to config.log, and then calls config.status.
44625 # config.status does its own redirection, appending to config.log.
44626 # Unfortunately, on DOS this fails, as config.log is still kept open
44627 # by configure, so config.status won't be able to write to it; its
44628 # output is simply discarded.  So we exec the FD to /dev/null,
44629 # effectively closing config.log, so it can be properly (re)opened and
44630 # appended to by config.status.  When coming back to configure, we
44631 # need to make the FD available again.
44632 if test "$no_create" != yes; then
44633   ac_cs_success=:
44634   ac_config_status_args=
44635   test "$silent" = yes &&
44636     ac_config_status_args="$ac_config_status_args --quiet"
44637   exec 5>/dev/null
44638   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44639   exec 5>>config.log
44640   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44641   # would make configure fail if this is the last instruction.
44642   $ac_cs_success || { (exit 1); exit 1; }
44643 fi
44644
44645
44646 if test "${support_bat}" = "yes" ; then
44647    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44648       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44649       exit 1
44650    fi
44651
44652    QMAKEBIN="qmake"
44653
44654    if test "x$QMAKEQT4" != "xnone"; then
44655        QMAKEBIN=qmake-qt4
44656    fi
44657
44658    cd src/qt-console
44659    chmod 755 install_conf_file build-depkgs-qt-console
44660    echo "Creating bat Makefile"
44661    $QMAKEBIN
44662    make clean
44663    cd ${BUILD_DIR}
44664 fi
44665
44666 if test X"$GCC" = "Xyes" ; then
44667   echo "Doing make of dependencies"
44668   ${MAKE:-make} depend
44669 fi
44670
44671 cd scripts
44672 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44673 chmod 755 dvd-handler dvd-simulator
44674 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44675 cd ..
44676
44677 c=updatedb
44678 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
44679 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
44680
44681 c=src/cats
44682
44683 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
44684 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
44685
44686 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
44687 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
44688
44689 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
44690 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
44691
44692 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
44693 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
44694
44695 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
44696 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
44697
44698 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
44699 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
44700
44701 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44702 chmod 755 $c/sqlite
44703 chmod 755 $c/mysql
44704
44705 chmod 755 src/win32/build-depkgs-mingw32
44706
44707 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44708    largefile_support="yes"
44709 fi
44710
44711 if test X"$GCC" = "Xyes" ; then
44712                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44713    if test "x${CCVERSION}" = "x" ; then
44714       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44715    fi
44716    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44717    if test x"${CXXVERSION}" = x ; then
44718       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44719    fi
44720 fi
44721
44722 # clean up any old junk
44723 echo " "
44724 echo "Cleaning up"
44725 echo " "
44726 make clean
44727
44728 if test "x${db_type}" = "xInternal" ; then
44729    echo " "
44730    echo " "
44731    echo "You have not specified either --enable-client-only or one of the"
44732    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44733    echo "  This is not permitted. Please reconfigure."
44734    echo " "
44735    echo "Aborting the configuration ..."
44736    echo " "
44737    echo " "
44738    exit 1
44739 fi
44740
44741 echo "
44742 Configuration on `date`:
44743
44744    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44745    Bacula version:          ${BACULA} ${VERSION} (${DATE})
44746    Source code location:    ${srcdir}
44747    Install binaries:        ${sbindir}
44748    Install libraries:       ${libdir}
44749    Install config files:    ${sysconfdir}
44750    Scripts directory:       ${scriptdir}
44751    Archive directory:       ${archivedir}
44752    Working directory:       ${working_dir}
44753    PID directory:           ${piddir}
44754    Subsys directory:        ${subsysdir}
44755    Man directory:           ${mandir}
44756    Data directory:          ${datarootdir}
44757    Plugin directory:        ${plugindir}
44758    C Compiler:              ${CC} ${CCVERSION}
44759    C++ Compiler:            ${CXX} ${CXXVERSION}
44760    Compiler flags:          ${WCFLAGS} ${CFLAGS}
44761    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
44762    Libraries:               ${LIBS}
44763    Statically Linked Tools: ${support_static_tools}
44764    Statically Linked FD:    ${support_static_fd}
44765    Statically Linked SD:    ${support_static_sd}
44766    Statically Linked DIR:   ${support_static_dir}
44767    Statically Linked CONS:  ${support_static_cons}
44768    Database type:           ${db_type}
44769    Database port:           ${db_port}
44770    Database lib:            ${DB_LIBS}
44771    Database name:           ${db_name}
44772    Database user:           ${db_user}
44773
44774    Job Output Email:        ${job_email}
44775    Traceback Email:         ${dump_email}
44776    SMTP Host Address:       ${smtp_host}
44777
44778    Director Port:           ${dir_port}
44779    File daemon Port:        ${fd_port}
44780    Storage daemon Port:     ${sd_port}
44781
44782    Director User:           ${dir_user}
44783    Director Group:          ${dir_group}
44784    Storage Daemon User:     ${sd_user}
44785    Storage DaemonGroup:     ${sd_group}
44786    File Daemon User:        ${fd_user}
44787    File Daemon Group:       ${fd_group}
44788
44789    SQL binaries Directory   ${SQL_BINDIR}
44790
44791    Large file support:      $largefile_support
44792    Bacula conio support:    ${got_conio} ${CONS_LIBS}
44793    readline support:        ${got_readline} ${PRTREADLINE_SRC}
44794    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
44795    TLS support:             ${support_tls}
44796    Encryption support:      ${support_crypto}
44797    ZLIB support:            ${have_zlib}
44798    enable-smartalloc:       ${support_smartalloc}
44799    bat support:             ${support_bat} ${QWT_LDFLAGS}
44800    enable-gnome:            ${support_gnome} ${gnome_version}
44801    enable-bwx-console:      ${support_wx_console} ${wx_version}
44802    enable-tray-monitor:     ${support_tray_monitor}
44803    client-only:             ${build_client_only}
44804    build-dird:              ${build_dird}
44805    build-stored:            ${build_stored}
44806    ACL support:             ${have_acl}
44807    XATTR support:           ${have_xattr}
44808    Python support:          ${support_python} ${PYTHON_LIBS}
44809    Batch insert enabled:    ${support_batch_insert}
44810
44811   " > config.out
44812
44813 cat config.out